@xysfe/actui 1.5.50 → 1.5.51
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.
- package/es/GoldFinanceChart/index.js +1 -1
- package/es/GoldFinanceChart/style.css +1 -1
- package/es/index.js +1 -1
- package/es/style.css +1 -1
- package/lib/GoldFinanceChart/index.js +1 -1
- package/lib/GoldFinanceChart/style.css +1 -1
- package/lib/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldFinanceChart=e():t.GoldFinanceChart=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=1901)}({0:function(t,e){var i=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i)},1:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){var n=i(25),r=i(3)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},107:function(t,e,i){var n=i(100),r=i(3)("iterator"),o=i(17);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},11:function(t,e,i){var n=i(44),r=i(30);t.exports=function(t){return n(r(t))}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},121:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(143);e.default=n.a},1256:function(t,e,i){"use strict";var n=i(75),r=i.n(n),o=i(142),a=i.n(o),s=i(6),l=i(1903),u=i(1910),h=i(1917);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}},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.costTableVisible=!0},validateData:function(){if(!(this.tables&&this.tables.colsType&&this.chartConfig&&Object(s.o)(this.chartConfig)))return!1;for(var t=0,e=0,i=0,n=0;n<this.chartConfig.length;n++){var r=this.chartConfig[n];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&&(i+=1))}return 1===t&&e>=1&&1===i},findTablesIndex:function(t,e){if(Object(s.o)(e))for(var i=0;i<e.length;i++)if(Number(e[i])===Number(t))return i},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,i=void 0,n=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,r,o,a){e=r,i=a,n=o}),{firstParamColsType:e,secondParamColsType:i,operator:n}},getExpressionData:function(t,e,i){var n=this.analysisExpression(t),r=n.firstParamColsType,o=n.secondParamColsType,a=n.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,u=[];if(i.colsType.forEach(function(t,e){Number(t)===Number(r)&&(s=e),Number(t)===Number(o)&&(l=e)}),void 0!==s&&void 0!==l)return i.rows.forEach(function(t,e){var i=void 0;switch(a){case"+":i=t[s]+t[l];break;case"-":i=t[s]-t[l];break;case"/":i=t[s]/t[l];break;case"*":i=t[s]*t[l]}u.push(Number(i).toFixed(1))}),u}},initConfig:function(t,e){if(t&&e){for(var i=[],n=[],r=[],o=this.isCps?Object(s.c)(l.b):Object(s.c)(l.a),u=Object(s.c)(o.showType2),h=Object(s.c)(o.showType3),c=t,p=Array.isArray(c),f=0,c=p?c:a()(c);;){var d;if(p){if(f>=c.length)break;d=c[f++]}else{if(f=c.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,T=g.boxConfig;if(!(2!==_||S&&T)){u.length||(u=Object(s.c)(o.showType2));var M=u.shift();S=M.lineStyle,T=M.boxConfig}if(3===_&&!S){h.length||(h=Object(s.c)(o.showType3));S=h.shift().lineStyle}r.push(x),y={showType:_,colsType:v,name:x,titleName:b,problemText:g.problemText,tableRowIndex:m,lineStyle:S,boxConfig:T,tipsText:g.tipsText},w&&(y.expressionData=w),i.push(y)}}var C=e.rows.map(function(t){for(var e=[],r=i,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&&n.push(t[u.tableRowIndex]),e.push(t[u.tableRowIndex])}return e});return C.unshift(r),{chartConfig:i,dataSource:C,xAxisData:n}}}},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}}}},1257:function(t,e,i){"use strict";var n=i(75),r=i.n(n),o=i(1912),a=i(6);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,i){t.setSelectIndex(i[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 i=this.$refs.num[e],n=this.$refs.colorBlock[e];for(i.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(i).width)>parseInt(getComputedStyle(n).width)+10))break;var r=parseInt(getComputedStyle(i).fontSize);if(r<=12)break;i.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(t).length){var e=t.chartConfig,i=t.dataSource,n=t.xAxisData;this.chartConfig=e,this.dataSource=i,this.xAxisData=n,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1258:function(t,e,i){"use strict";var n=i(75),r=i.n(n),o=i(142),a=i.n(o),s=i(6),l=i(1914);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],i=parseFloat(getComputedStyle(e,null).fontSize);if(i>12)return t*i;var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=n/375*10;return n?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=[],i=this.getXAxisName(),n=this.getTooltipName(),r=0;r<this.chartConfig.length;r++){var o=this.chartConfig[r];if([2,3].includes(o.showType)){var u={};Object(s.o)(o.lineStyle.areaStyleColor)?u.color=new l.graphic.LinearGradient(0,0,0,1,o.lineStyle.areaStyleColor):Object(s.z)(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:i,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 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,i,n,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,i=Array.isArray(e),r=0,e=i?e:a()(e);;){var o;if(i){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===n){var l=s.encode.y[0],u=s.value[l];return n+"<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),this.chart.getZr().on("mousemove",function(e){var i=[e.offsetX,e.offsetY],n=t.chart.convertFromPixel("grid",i);t.chart.containPixel("grid",i)&&t.index!==Math.round(n[0])&&t.setIndex(Math.round(n[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})}}}}},1259:function(t,e,i){"use strict";var n=i(121);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 i=document.querySelector(".cost-scroll");i&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new n.default(i,{})})}}}}},13:function(t,e,i){var n=i(1),r=i(0),o=i(38),a=i(7),s=i(5),l=function(t,e,i){var u,h,c,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?n:d?n[e]:(n[e]||{}).prototype;f&&(i=e);for(u in i)(h=!p&&x&&void 0!==x[u])&&s(m,u)||(c=h?x[u]:i[u],m[u]=f&&"function"!=typeof x[u]?i[u]:y&&h?o(c,n):v&&x[u]==c?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?o(Function.call,c):c,g&&((m.virtual||(m.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},14:function(t,e,i){var n=i(47),r=i(33);t.exports=Object.keys||function(t){return n(t,r)}},142:function(t,e,i){t.exports={default:i(176),__esModule:!0}},143:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function r(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r=0;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}function o(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==N&&("standard"===N?"transitionEnd"===t?"transitionend":t:N+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function u(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function h(t){for(var e=0,i=0;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function c(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function f(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1}function d(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}function g(t){function e(){a=document.createEvent("Event"),a.initEvent(i,s,l),r(a,o)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=void 0,s=!0,l=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(i,r({bubbles:s,cancelable:l},o))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function y(t){g(t,"dblclick")}function v(t,e){e.firstChild?m(t,e.firstChild):e.appendChild(t)}function m(t,e){e.parentNode.insertBefore(t,e)}function _(t,e){t.removeChild(e)}function x(t,e,i,n,r,o,a){var s=t-e,l=Math.abs(s)/i,u=a.deceleration,h=a.itemHeight,c=a.swipeBounceTime,p=a.wheel,f=a.swipeTime,d=f,g=p?4:15,y=t+l/u*(s<0?-1:1);return p&&h&&(y=Math.round(y/h)*h),y<n?(y=o?Math.max(n-o/4,n-o/g*l):n,d=c):y>r&&(y=o?Math.min(r+o/4,r+o/g*l):r,d=c),{destination:Math.round(y),duration:d}}function b(){}function w(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function M(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function C(t){if(t&&t.classList)return t.classList.contains("tombstone")}function I(t,e){var i=this;this.options=e,S("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),S("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),S("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("scroll",function(){i.onScroll()}),this.scroller.on("resize",function(){i.onResize()}),this.onResize()}function A(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||w("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||w("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var k=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),D=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},P="undefined"!=typeof window,O=P&&navigator.userAgent.toLowerCase(),L=O&&/wechatdevtools/.test(O),E=O&&O.indexOf("android")>0,R=P&&document.createElement("div").style,N=function(){if(!P)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==R[t[e]])return e;return!1}(),z=s("transform"),B=P&&s("perspective")in R,F=P&&("ontouchstart"in window||L),H=!1!==z,V=P&&s("transition")in R,Y={transform:z,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},X=1,W={touchstart:X,touchmove:X,touchend:X,mousedown:2,mousemove:2,mouseup:2},G={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:F,disableTouch:!F,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},U={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},j=function(){return P?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:b}(),q=function(){return P?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:b}(),Z=1,K=-1,Q=1,J=-1,$=1,tt=3;M.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},M.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},M.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[Y.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},M.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[Y.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var r=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=r+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var o=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=o+"px",n=this.maxPosX+this.indicatorWidth-o}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[Y.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},M.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[Y.transitionDuration]=t+"ms"},M.prototype.transitionTimingFunction=function(t){this.indicatorStyle[Y.transitionTimingFunction]=t},M.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},M.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(l),this.scroller.trigger("beforeScrollStart")},M.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var r=this.x+i,o=this.y+n;this._pos(r,o)},M.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(u);var e=this.scroller.options.snap;if(e){var i=e.speed,n=e.easing,r=void 0===n?U.bounce:n,o=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-o.x),1e3),Math.min(Math.abs(this.scroller.y-o.y),1e3)),300);this.scroller.x===o.x&&this.scroller.y===o.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=o,this.scroller.scrollTo(o.x,o.y,a,r))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},M.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},M.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},M.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},M.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},M.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t),this._handleMoveEvents(t)},M.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},M.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var et=2e3;I.prototype.onScroll=function(){var t=-this.scroller.y,e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;var i=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),n=this.anchorItem.index,r=i.index;e<0?(n-=30,r+=10):(n-=10,r+=30),this.fill(n,r),this.maybeRequestContent()},I.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},I.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},I.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var i=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=i,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},I.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},I.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},I.prototype.resetMore=function(){this.hasMore=!0},I.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,n=0;n<i;n++){var r=this.items[n].node,o=this.items[n].data;r&&!C(r)||o||(t||(t=n),r&&this.scrollerEl.removeChild(r))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},I.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(C(i)?(this.tombstones.push(i),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(i)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},I.prototype._createDOMNodes=function(t){for(var e={},i=this.firstAttachedItem;i<this.lastAttachedItem;i++){for(;this.items.length<=i;)this._addItem();var n=this.items[i].node,r=this.items[i].data;if(n){if(!C(n)||!r)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var o=r?this.options.render(r,t.pop()):this._getTombStone();o.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(o),this.items[i].node=o}return e},I.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},I.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},I.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,i=this.anchorItem.index;i>this.firstAttachedItem;)e-=this.items[i-1].height||this.tombstoneHeight,i--;return e},I.prototype._setupAnimations=function(t,e){var i=this;for(var n in t){var r=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+r[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,r[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var o=this.firstAttachedItem;o<this.lastAttachedItem;o++){var a=t[o];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[o].width/this.tombstoneWidth+", "+this.items[o].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[o].top&&(a||(this.items[o].node.style.transition=""),this.items[o].node.style.transform="translateY("+e+"px)"),this.items[o].top=e,e+=this.items[o].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",i.tombstones.push(n[0])}},200)},I.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},I.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},I.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var i=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;n=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=n,e-=n*this.tombstoneHeight,{index:i,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=o(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=r({},G,t),this.translateZ=this.options.HWCompositing&&B?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&V,this.options.useTransform=this.options.useTransform&&H,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),F&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,Y.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1,i=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,i,{get:function(){return e},set:function(i){e=i;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],r=e&&!t.pulling?"none":"auto",o=0;o<n.length;o++)n[o].style.pointerEvents=r}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,i=new MutationObserver(function(i){if(!t._shouldNotRefresh()){for(var n=!1,r=!1,o=0;o<i.length;o++){var a=i[o];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){r=!0;break}}n?t.refresh():r&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,n),this.on("destroy",function(){i.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){i=p(this.scroller);var t=i.width,o=i.height;n===t&&r===o||this.refresh(),n=t,r=o,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),n=i.width,r=i.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(f(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=p(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var i=p(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var n=this.options.wheel;n?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=h(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(A),function(t){t.prototype._start=function(t){var e=W[t.type];if((e===X||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=n(),this.options.wheel&&(this.target=t.target),this.stop();var i=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&W[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,r=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=r;var o=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&o<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(o>a+this.options.directionLockThreshold?this.directionLocked="h":a>=o+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);r=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,r=this.hasVerticalScroll?r:0,this.movingDirectionX=i>0?J:i<0?Q:0,this.movingDirectionY=r>0?K:r<0?Z:0;var l=this.x+i,u=this.y+r,h=!1,c=!1,p=!1,f=!1,d=this.options.bounce;!1!==d&&(h=void 0===d.top||d.top,c=void 0===d.bottom||d.bottom,p=void 0===d.left||d.left,f=void 0===d.right||d.right),(l>this.minScrollX||l<this.maxScrollX)&&(l=l>this.minScrollX&&p||l<this.maxScrollX&&f?this.x+i/3:l>this.minScrollX?this.minScrollX:this.maxScrollX),(u>this.minScrollY||u<this.maxScrollY)&&(u=u>this.minScrollY&&h||u<this.maxScrollY&&c?this.y+r/3:u>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(l,u),s-this.startTime>this.options.momentumLimitTime&&(this.startTime=s,this.startX=this.x,this.startY=this.y,this.options.probeType===$&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>$&&this.trigger("scroll",{x:this.x,y:this.y});var g=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,y=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,v=this.pointX-g,m=this.pointY-y;(v>document.documentElement.clientWidth-this.options.momentumLimitDistance||v<this.options.momentumLimitDistance||m<this.options.momentumLimitDistance||m>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&W[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),r=e-this.absStartX,o=i-this.absStartY;if(this.directionX=r>0?J:r<0?Q:0,this.directionY=o>0?K:o<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,U.bounce)){this._translate(e,i),this.endTime=n();var a=this.endTime-this.startTime,s=Math.abs(e-this.startX),l=Math.abs(i-this.startY);if(this._events.flick&&a<this.options.flickLimitTime&&s<this.options.flickLimitDistance&&l<this.options.flickLimitDistance)return void this.trigger("flick");var u=0;if(this.options.momentum&&a<this.options.momentumLimitTime&&(l>this.options.momentumLimitDistance||s>this.options.momentumLimitDistance)){var h=!1,c=!1,p=!1,d=!1,g=this.options.bounce;!1!==g&&(h=void 0===g.top||g.top,c=void 0===g.bottom||g.bottom,p=void 0===g.left||g.left,d=void 0===g.right||g.right);var y=this.directionX===J&&p||this.directionX===Q&&d?this.wrapperWidth:0,v=this.directionY===K&&h||this.directionY===Z&&c?this.wrapperHeight:0,m=this.hasHorizontalScroll?x(this.x,this.startX,a,this.maxScrollX,this.minScrollX,y,this.options):{destination:e,duration:0},_=this.hasVerticalScroll?x(this.y,this.startY,a,this.maxScrollY,this.minScrollY,v,this.options):{destination:i,duration:0};e=m.destination,i=_.destination,u=Math.max(m.duration,_.duration),this.isInTransition=!0}else this.options.wheel&&(i=Math.round(i/this.itemHeight)*this.itemHeight,u=this.options.wheel.adjustTime||400);var b=U.swipe;if(this.options.snap){var w=this._nearestSnap(e,i);this.currentPage=w,u=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-w.x),1e3),Math.min(Math.abs(i-w.y),1e3)),300),e=w.x,i=w.y,this.directionX=0,this.directionY=0,b=this.options.snap.easing||U.bounce}if(e!==this.x||i!==this.y)return(e>this.minScrollX||e<this.maxScrollX||i>this.minScrollY||i<this.maxScrollY)&&(b=U.swipeBounce),void this.scrollTo(e,i,u,b);this.options.wheel&&(this.selectedIndex=Math.round(Math.abs(this.y/this.itemHeight))),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var e=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.classList.contains(this.options.wheel.wheelWrapperClass)){var i=Math.abs(Math.round(this.y/this.itemHeight)),r=Math.round((this.pointY+c(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[i+r]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,U.swipe),!0}if(!e){var o=this.options.dblclick,a=!1;if(o&&this.lastClickTime){var s=o.delay,l=void 0===s?300:s;n()-this.lastClickTime<l&&(a=!0,y(t))}return this.options.tap&&d(t,this.options.tap),this.options.click&&!f(t.target,this.options.preventDefaultException)&&g(t),this.lastClickTime=a?null:n(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(E&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var i=e.getComputedPosition();if(e.trigger("scroll",i),!e.isInTransition)return void e.trigger("scrollEnd",i);e.probeTimer=j(t)}q(this.probeTimer),this.probeTimer=j(t);var e=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[Y.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[Y.transitionDuration]=t+"ms";if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[Y.transitionTimingFunction]=t,this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[Y.transitionTimingFunction]=t;if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===Z)&&!this.resetPosition(this.options.bounceTime,U.bounce)&&(this.isInTransition=!1,this.options.probeType!==tt&&this.trigger("scrollEnd",{x:this.x,y:this.y})))},t.prototype._translate=function(t,e,i){if(S(!o(t)&&!o(e),"Translate x or y is null or undefined."),o(i)&&(i=this.scale),this.options.useTransform?this.scrollerStyle[Y.transform]="translate("+t+"px,"+e+"px) scale("+i+")"+this.translateZ:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.options.wheel)for(var n=this.options.wheel.rotate,r=void 0===n?25:n,a=0;a<this.items.length;a++){var s=r*(e/this.itemHeight+a);this.items[a].style[Y.transform]="rotateX("+s+"deg)"}if(this.x=t,this.y=e,this.setScale(i),this.indicators)for(var l=0;l<this.indicators.length;l++)this.indicators[l].updatePosition()},t.prototype._animate=function(t,e,i,r){function o(){var f=n();if(f>=p)return a.isAnimating=!1,a._translate(t,e,h),a.trigger("scroll",{x:a.x,y:a.y}),void(a.pulling||a.resetPosition(a.options.bounceTime)||a.trigger("scrollEnd",{x:a.x,y:a.y}));f=(f-c)/i;var d=r(f),g=(t-s)*d+s,y=(e-l)*d+l,v=(h-u)*d+u;a._translate(g,y,v),a.isAnimating&&(a.animateTimer=j(o)),a.options.probeType===tt&&a.trigger("scroll",{x:a.x,y:a.y})}var a=this,s=this.x,l=this.y,u=this.lastScale,h=this.scale,c=n(),p=c+i;this.isAnimating=!0,q(this.animateTimer),o()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,i,n)},t.prototype.scrollTo=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.bounce;this.isInTransition=this.options.useTransition&&i>0&&(t!==this.x||e!==this.y),!i||this.options.useTransition?(this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e),i&&this.options.probeType===tt&&this._startProbe(),i||t===this.x&&e===this.y||(this.trigger("scroll",{x:t,y:e}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,U.bounce)||this.trigger("scrollEnd",{x:t,y:e})),this.options.wheel&&(e>this.minScrollY?this.selectedIndex=0:e<this.maxScrollY?this.selectedIndex=this.items.length-1:this.selectedIndex=Math.round(Math.abs(e/this.itemHeight)))):this._animate(t,e,i,n.fn)},t.prototype.scrollToElement=function(t,e,i,n,r){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var o=h(t);o.left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,!0===i&&(i=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),o.left-=i||0,o.top-=n||0,o.left=o.left>this.minScrollX?this.minScrollX:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=o.top>this.minScrollY?this.minScrollY:o.top<this.maxScrollY?this.maxScrollY:o.top,this.options.wheel&&(o.top=Math.round(o.top/this.itemHeight)*this.itemHeight),this.scrollTo(o.left,o.top,e,r)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);var r=this.y,o=Math.round(r);return!this.hasVerticalScroll||o>this.minScrollY?r=this.minScrollY:o<this.maxScrollY&&(r=this.maxScrollY),(i!==this.x||r!==this.y)&&(this.scrollTo(i,r,t,e),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),e=void 0,i=void 0;return this.options.useTransform?(t=t[Y.transform].split(")")[0].split(", "),e=+(t[12]||t[4]),i=+(t[13]||t[5])):(e=+t.left.replace(/[^-\d.]/g,""),i=+t.top.replace(/[^-\d.]/g,"")),{x:e,y:i}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,q(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,q(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),q(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(A),function(t){t.prototype.on=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(D(e)),r=0;r<i;r++){var o=n[r],a=k(o,2),s=a[0],l=a[1];s&&s.apply(l,[].slice.call(arguments,1))}}}(A),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var e=this.options.snap;if(e.loop){var i=this.scroller.children;i.length>1?(v(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0))):e.loop=!1}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,r=e.stepY||t.wrapperHeight,o=0,a=void 0,s=void 0,l=void 0,u=0,h=void 0,c=0,f=void 0,d=void 0;if(n)for(h=n.length,f=-1;u<h;u++)d=p(n[u]),(0===u||d.left<=p(n[u-1]).left)&&(c=0,f++),t.pages[c]||(t.pages[c]=[]),o=Math.max(-d.left,t.maxScrollX),a=Math.max(-d.top,t.maxScrollY),s=o-Math.round(d.width/2),l=a-Math.round(d.height/2),t.pages[c][f]={x:o,y:a,width:d.width,height:d.height,cx:s,cy:l},o>t.maxScrollX&&c++;else for(s=Math.round(i/2),l=Math.round(r/2);o>-t.scrollerWidth;){for(t.pages[u]=[],h=0,a=0;a>-t.scrollerHeight;)t.pages[u][h]={x:Math.max(o,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:i,height:r,cx:o-s,cy:a-l},a-=r,h++;o-=i,u++}t._checkSnapLoop();var g=e._loopX?1:0,y=e._loopY?1:0;t._goToPage(t.currentPage.pageX||g,t.currentPage.pageY||y,0);var v=e.threshold;v%1==0?(t.snapThresholdX=v,t.snapThresholdY=v):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*v),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*v))}}),this.on("scrollEnd",function(){e.loop&&(e._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(_(t.scroller,i[i.length-1]),_(t.scroller,i[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&w("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);for(var n=this.pages.length;i<n;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var r=0;r<n;r++)if(e>=this.pages[0][r].cy){e=this.pages[0][r].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),r===this.currentPage.pageY&&(r+=this.directionY,r<0?r=0:r>=this.pages[0].length&&(r=this.pages[0].length-1),e=this.pages[0][r].y),{x:t,y:e,pageX:i,pageY:r}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],r=this.options.snap;if(r&&this.pages&&this.pages.length&&(n=n||r.easing||U.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var o=this.pages[t][e].x,a=this.pages[t][e].y;i=void 0===i?r.speed||Math.max(Math.max(Math.min(Math.abs(o-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):i,this.currentPage={x:o,y:a,pageX:t,pageY:e},this.scrollTo(o,a,i,n)}},t.prototype.goToPage=function(t,e,i,n){var r=this.options.snap;if(r&&this.pages&&this.pages.length){if(r.loop){var o=void 0;r._loopX?(o=this.pages.length-2,t>=o?t=o-1:t<0&&(t=0),t+=1):(o=this.pages[0].length-2,e>=o?e=o-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)}},t.prototype.prev=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?r({},this.currentPage,{pageX:this.currentPage.pageX-1}):r({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(A),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,w("wheel option selectedIndex is required!"))}}(A),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,r=e.interactive,o=void 0!==r&&r;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:T("horizontal"),direction:"horizontal",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.options.scrollY&&(a={el:T("vertical"),direction:"vertical",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.on("refresh",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].refresh()}),n&&(this.on("scrollEnd",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollCancel",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0)}),this.on("beforeScrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0,!0)})),this.on("destroy",function(){t._removeScrollBars()})},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}(A),function(t){t.prototype._initPullDown=function(){this.options.probeType=tt},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,e=t.threshold,i=void 0===e?90:e,n=t.stop,r=void 0===n?40:n;return!(this.directionY!==K||this.y<i)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,r,this.options.bounceTime,U.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,U.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1}}(A),function(t){t.prototype._initPullUp=function(){this.options.probeType=tt,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var e=this,i=this.options.pullUpLoad.threshold,n=void 0===i?0:i;this.movingDirectionY===Z&&t.y<=this.maxScrollY+n&&(this.once("scrollEnd",function(){e.pullupWatching=!1}),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",function(){t._watchPullUp()}):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}(A),function(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(l),this.on("destroy",function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(u)}),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var e=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var i=this.options.mouseWheel,n=i.speed,r=void 0===n?20:n,o=i.invert,a=void 0!==o&&o,s=i.easeTime,l=void 0===s?300:s;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){e.options.snap||l||e.trigger("scrollEnd",{x:e.x,y:e.y}),e.firstWheelOpreation=!0},400);var u=void 0,h=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(u=-t.deltaX*r,h=-t.deltaY*r):(u=-t.deltaX,h=-t.deltaY);break;case"wheelDeltaX"in t:u=t.wheelDeltaX/120*r,h=t.wheelDeltaY/120*r;break;case"wheelDelta"in t:u=h=t.wheelDelta/120*r;break;case"detail"in t:u=h=-t.detail/3*r;break;default:return}var c=a?-1:1;u*=c,h*=c,this.hasVerticalScroll||(u=h,h=0);var p=void 0,f=void 0;if(this.options.snap)return p=this.currentPage.pageX,f=this.currentPage.pageY,u>0?p--:u<0&&p++,h>0?f--:h<0&&f++,void this._goToPage(p,f);p=this.x+Math.round(this.hasHorizontalScroll?u:0),f=this.y+Math.round(this.hasVerticalScroll?h:0),this.movingDirectionX=this.directionX=u>0?-1:u<0?1:0,this.movingDirectionY=this.directionY=h>0?-1:h<0?1:0,p>this.minScrollX?p=this.minScrollX:p<this.maxScrollX&&(p=this.maxScrollX),f>this.minScrollY?f=this.minScrollY:f<this.maxScrollY&&(f=this.maxScrollY);var d=this.y===f;this.scrollTo(p,f,l,U.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),d&&(this.mouseWheelEndTimer=setTimeout(function(){e.trigger("scrollEnd",{x:e.x,y:e.y})},l))}}}(A),function(t){t.prototype._initZoom=function(){var t=this.options.zoom,e=t.start,i=void 0===e?1:e,n=t.min,r=void 0===n?1:n,o=t.max,a=void 0===o?4:o;this.scale=Math.min(Math.max(i,r),a),this.setScale(this.scale),this.scrollerStyle[Y.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;var r=t/(n||this.scale);this.setScale(t),this.refresh();var o=Math.round(this.startX-(e-this.relativeX)*(r-1)),a=Math.round(this.startY-(i-this.relativeY)*(r-1));o>this.minScrollX?o=this.minScrollX:o<this.maxScrollX&&(o=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===o&&this.y===a||this.scrollTo(o,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){var n=c(this.wrapper),r=n.left,o=n.top,a=e+r-this.x,s=i+o-this.y;this._zoomTo(t,a,s)},t.prototype._zoomStart=function(t){var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),r=Math.abs(e.pageY-i.pageY);this.startDistance=a(n,r),this.startScale=this.scale;var o=c(this.wrapper),s=o.left,l=o.top;this.originX=Math.abs(e.pageX+i.pageX)/2+s-this.x,this.originY=Math.abs(e.pageY+i.pageY)/2+l-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&W[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),r=Math.abs(e.pageY-i.pageY),o=a(n,r),s=o/this.startDistance*this.startScale;this.scaled=!0;var l=this.options.zoom,u=l.min,h=void 0===u?1:u,c=l.max,p=void 0===c?4:c;s<h?s=.5*h*Math.pow(2,s/h):s>p&&(s=2*p*Math.pow(.5,p/s));var f=s/this.startScale,d=this.startX-(this.originX-this.relativeX)*(f-1),g=this.startY-(this.originY-this.relativeY)*(f-1);this.setScale(s),this.scrollTo(d,g,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&W[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var e=this.options.zoom,i=e.min,n=void 0===i?1:i,r=e.max,o=void 0===r?4:r,a=this.scale>o?o:this.scale<n?n:this.scale;this._zoomTo(a,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(A),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-et,this.infiniteScroller=new I(this,this.options.infinity)}}(A),A.Version="1.12.6",e.a=A},15:function(t,e){t.exports=!0},17:function(t,e){t.exports={}},176:function(t,e,i){i(52),i(51),t.exports=i(177)},177:function(t,e,i){var n=i(9),r=i(107);t.exports=i(0).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},18:function(t,e,i){"use strict";function n(t,e){return function(i,n){var a=this,s=Object(r.a)(i),l=Object(o.a)(e,t,s,n),u=l.$parent,h=l.remove,c=l.show,p=l.hide;return l.remove=function(){l.$removed=!0,h&&h.call(this),u.destroy()},l.show=function(){return c&&c.call.apply(c,[this].concat(Array.prototype.slice.call(arguments))),this},l.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},a._isVue&&a.$once("hook:beforeDestroy",function(){l.$removed||l.remove()}),l}}e.a=n;var r=i(97),o=i(99)},19:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1901:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(18),r=i(1902);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createGoldFinanceChart=Object(n.a)(r.a,t)},e.default=r.a},1902:function(t,e,i){"use strict";var n=i(1256),r=i(1920),o=i(2),a=Object(o.a)(n.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},1903:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return o});var n={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:i(1904),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:i(1905),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(1906),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:i(1907),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:i(1908),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(1909),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61岁的比值",9:"当前年龄与41岁的比值",10:"当前年龄与18岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},1904:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAgRJREFUSEtjZCACNDAwMMWbeomx/2MWYPj/jxFFCyPT/59Mfz8sPL3tVQMDwz9CxqFqRlP9StuB5w87tywhQ5DlWX5+fSx29cAXXHpwWvjM2E2D4T8rXgfhdAjj7/9SZ3fdwCaPYeAZY2NWqf8SKqT4CpfaZ4wv7picPfsbWR7FQmpaBrME3VIUC58ZeWtSw2foZkid23odJga3kFCcMfLzMYmunzWRmZ/HGdnAvx+/7H0dmJb//+Mn3CkUKU7BFhJKjRIHVkxl5OVxxOf7/5+/7H/hEJGNSw0s9YItxBeUkqc3HWVgYhIEG3TwJAPD7OUMDP//Q8xlZGRgSI1kYLA3h/D//Xv/3NTPGpeloKBlBGXqNCNvdWyKUHwWX8TA8OcvdrNYmBkYFvaB5fD5dNa5rTcZ75t6SbD/ZYT4AAmA4kxi37IrYCF8lsH0IFn6wilKB1uc/mT+/57xmbGvBkZxxcDAILZvxWRwAgEF46xlxCXe9CgGBjtzBlBCeuUUkYuhiZHpPyOu+JM8u+UaWENMASLOCFkLitMlE8Cqnhv7aGFTTtjC6HxC1qDKL5041CykepBSM9GkRYHzJN5EQ/dsQfeMD0pSdC3aQBbSvfAG+5JAk4Kq1RMs59K1AgZZSvcmBrUtJdiIQi4UCcUp3gKWlGYiskGEUi82S8luCCMbRs2mPgATfE9ommN9bQAAAABJRU5ErkJggg=="},1905:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAflJREFUSEtjZCAKNDBlhZaIMbH8E/j3j5ERWQsT0/////4wfZi2uucVA0PDP0LGoWhGV5wV+oqHgYlTlpAhKPL/vj+etlrsCy49OC1MC/6kwcKC6htiLf7z5///WWv5bmBTj2FhWtp/VpaPX1SINRyfuj/8PHdmzWL8jawGxUJqWgazBN1SFAuzwj9rUsNn6GZMW8l7HSYGt5BQnPHyMTDV9nFP5OZhdEY28OuX/3ubi77mf/7EgDOFIscp2EJCqbFnLs9UTm4GR3y+//6VYX9J8pdsnGqgqRdiIZ6gnLyM5ygTE4MgSN2V8z8Zdm36xvD/P8RYUBp28+Ni0DFkB/P//WN4nxv1xRqXpaCgZWRgaGDKCi9Wx6YI2Wf9ze8Z/v3FbhQTMwNDYS3YTQz4fDptZe9NxqzQLxIMTP8hqpEAKM46ZvFcAQnhswymBdnSirQvOljj9B/je8acyE8a6MUVyJCuOdyTQQkEFIw7N34jKvG6+0OCF5SQylK+5qJrAhWDjLjib+oKnmsgDX2N7+FxRshWUJwW1UMCKzviixY29QQt7G14T8geFPnihqFmIdWDlP6Jht7Zgu4ZfwCKtgEovEG+pGv1BMu5dK2Awb6kYnsG5gm8TQxqW0qwEYVcKBKKU3wFLEnNRGSDCDU9sFpKbkMY1TDqNfUBayRb+GkJOFQAAAAASUVORK5CYII="},1906:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},1907:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAfxJREFUSEvVlrkvBFEcx79v7cQRLI1odBLr6MSxVCKOgtY/oEBEWFEim1CJWBsRFP4BrcYRUWER3boSnU7DIo7M2ifzxjBvd+Y9Ky+bmG7md3zmd733I/jFQ0PwoKChDPneEiQo4Uy8hOI18YCX0zsSQlLmjjdO0aah2kL4iipkTjh5/OmWhM6f3WxcgXS+3o8cTfhDrj/yoVMycXblJE9zSNfqNbxolRlF5aZcoN+QgTPdLuaASmEWJQXKA8PN1UoiS3FCgtFL69M3UFozzedB/0YEecXtnL+3xz2s941Cj7t3qK2mDCjtxqGdZeQWtQmjf3/ax0rnsKvOV/eaQFEqRw8OQDylzFFsE9idBSg1/RICdEwCdb3mO03eI9La6joSweglYUPta65yVLJHttgCJBPOvjxeYOzQlIkijUevCZ1rKIeWY0Zgf4yaDW/F2CcRzLKxQ5e76xxrqn/cE7oU8KcdV4aTwe0l1iBGGndmfte8XdNAbQ9gNNJq10iakZdQ4lq/saMLZhBu+qmZDGvUNHhsai0GapzU5cCFRhmGl4+f/Deg8pSqbJrOKXMmhU2T9bHI9uCzEymbRxsDylYJ1Yc3g8pWCpXXkzW5wtRmNv6ctuMFzKJUuc9YSNGKoRwqW6LseZDWVJTiTNZEDirrXifoXxdhHqxu1f8E1v4qfGBe9yAAAAAASUVORK5CYII="},1908:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAghJREFUSEtjZCACNDAwMJUkeIn9Y2AWYPz7jxFZy39mpv9MDH8/9CzY9qqBgeEfIeNQNKMrfhXqwMPJwS1LyBBk+e8/vj4WW33gCy49OC38FOmmwcjCitdBuAz9/+f3f77lu25gk8cw8H+aMeuX7xIqpPgKl1oezhd3GGed/Y0sjxofVLQMZgm6pSgWfo711qSGz9DN4F289TpMDG4hwTjj42Pi7pw1kZGbxxkllX79svdreVo+w6dPOFMocpyCLSSUGnmmr5jKwM3jiNf3X7/s/5IZkY1LDSz1gi3EF5Q8CzYdZWBiEgSp+3VwD8P32RMZGP7/h5jLyMjAmZrPwGbvAuH/+/f+S4KfNS5LQUHLCMrUxbHe6tgUIfvsY3wAA8OfP9jNYmFh4F+4ASKHx6e9i7feZPyS4CXx/y8j2AcogI+PiWfKsisgMbyWwTQhWfolJ0oHW5wyMv9/z/gpwVcDvbgCmcE9fcVkUAIBB+OsCUQlXs70AgY2OxeG/6CElBmRi64JVAwy4oo/nkVbroF9F+OLiDNC1jIyMvAv2QxW9SXORwubcsIWRvsQsgZFnn/plqFmIbWDlKqJJq0AnCfxJhq6Zwu6Z3y6F20gC+leeIMspWv1BMu5dK2AQZZSsz0D8wTeJga1LSXYiEIuFAnGKZ4SlqRmIrI5hFIvNjvJbggjG0bNpj4ANlBfOpfc/OcAAAAASUVORK5CYII="},1909:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},1910:function(t,e,i){"use strict";function n(t){s||i(1911)}var r=i(1257),o=i(1916),a=i(2),s=!1,l=n,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},1911:function(t,e){},1912:function(t,e,i){"use strict";function n(t){s||i(1913)}var r=i(1258),o=i(1915),a=i(2),s=!1,l=n,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},1913:function(t,e){},1914:function(t,e,i){!function(t,i){i(e)}(0,function(t){"use strict";function e(t,e){function i(){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):(i.prototype=e.prototype,new i)}function i(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;o>r;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||e)}function n(t,e){Cy[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,i=my.call(t);if("[object Array]"===i){if(!W(t)){e=[];for(var n=0,r=t.length;r>n;n++)e[n]=a(t[n])}}else if(vy[i]){if(!W(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var n=0,r=t.length;r>n;n++)e[n]=a(t[n])}}}else if(!yy[i]&&!W(t)&&!P(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=a(t[s]))}return e}function s(t,e,i){if(!A(e)||!A(t))return i?a(e):t;for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],o=e[n];!A(o)||!A(r)||S(o)||S(r)||P(o)||P(r)||k(o)||k(r)||W(o)||W(r)?!i&&n in t||(t[n]=a(e[n])):s(r,o,i)}return t}function l(t,e){for(var i=t[0],n=1,r=t.length;r>n;n++)i=s(i,t[n],e);return i}function u(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function h(t,e,i){for(var n=x(e),r=0;r<n.length;r++){var o=n[r];(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function c(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i}return-1}function p(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var r in n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function f(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}else h(t,e,i)}function d(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function g(t,e,i){if(t&&e)if(t.forEach&&t.forEach===xy)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;r>n;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function y(t,e,i){if(!t)return[];if(!e)return F(t);if(t.map&&t.map===Sy)return t.map(e,i);for(var n=[],r=0,o=t.length;o>r;r++)n.push(e.call(i,t[r],r,t));return n}function v(t,e,i,n){if(t&&e){for(var r=0,o=t.length;o>r;r++)i=e.call(n,i,t[r],r,t);return i}}function m(t,e,i){if(!t)return[];if(!e)return F(t);if(t.filter&&t.filter===by)return t.filter(e,i);for(var n=[],r=0,o=t.length;o>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}function _(t,e,i){if(t&&e)for(var n=0,r=t.length;r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function x(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}function b(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(wy.call(arguments)))}}function w(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];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 T(t){return"function"==typeof t}function M(t){return"string"==typeof t}function C(t){return"[object String]"===my.call(t)}function I(t){return"number"==typeof t}function A(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function k(t){return!!yy[my.call(t)]}function D(t){return!!vy[my.call(t)]}function P(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function O(t){return null!=t.colorStops}function L(t){return null!=t.image}function E(t){return"[object RegExp]"===my.call(t)}function R(t){return t!==t}function N(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=t.length;n>i;i++)if(null!=t[i])return t[i]}function z(t,e){return null!=t?t:e}function B(t,e,i){return null!=t?t:null!=e?e:i}function F(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return wy.apply(t,e)}function H(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 V(t,e){if(!t)throw new Error(e)}function Y(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function X(t){t[Dy]=!0}function W(t){return t[Dy]}function G(t){return new Py(t)}function U(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var r=t.length,n=0;n<e.length;n++)i[n+r]=e[n];return i}function j(t,e){var i;if(Object.create)i=Object.create(t);else{var n=function(){};n.prototype=t,i=new n}return e&&u(i,e),i}function q(t,e){return t.hasOwnProperty(e)}function Z(){}function K(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Q(t,e){return t[0]=e[0],t[1]=e[1],t}function J(t){return[t[0],t[1]]}function $(t,e,i){return t[0]=e,t[1]=i,t}function tt(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function et(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function it(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function nt(t){return Math.sqrt(rt(t))}function rt(t){return t[0]*t[0]+t[1]*t[1]}function ot(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function at(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function st(t,e){return t[0]*e[0]+t[1]*e[1]}function lt(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function ut(t,e){var i=nt(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function ht(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ct(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,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function dt(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function gt(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function yt(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function vt(t,e,i,n,r,o){var a=n+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Vy);return t[i][l]}for(var u=n|1<<i,h=i+1;n&1<<h;)h++;for(var c=0,p=0,f=0;s>p;p++){var d=1<<p;d&r||(c+=(f%2?-1:1)*t[i][p]*vt(t,e-1,h,u,r|d,o),f++)}return o[a]=c,c}function mt(t,e){var i=[[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]]],n={},r=vt(i,8,0,0,0,n);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(i,7,0===a?1:0,1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}function _t(t,e,i,n,r){return xt(Xy,e,n,r,!0)&&xt(t,i,Xy[0],Xy[1])}function xt(t,e,i,n,r){if(e.getBoundingClientRect&&gy.domSupported&&!St(e)){var o=e[Yy]||(e[Yy]={}),a=bt(e,o),s=wt(a,o,r);if(s)return s(t,i,n),!0}return!1}function bt(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["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",n[l]+":0",r[u]+":0",n[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return i}function wt(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,f=h.top;a.push(p,f),l=l&&o&&p===o[c]&&f===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[n]=i?mt(s,a):mt(a,s))}function St(t){return"CANVAS"===t.nodeName.toUpperCase()}function Tt(t,e,i,n){return i=i||{},n||!gy.canvasSupported?Mt(t,e,i):gy.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):Mt(t,e,i),i}function Mt(t,e,i){if(gy.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(St(t)){var o=t.getBoundingClientRect();return i.zrX=n-o.left,void(i.zrY=r-o.top)}if(xt(Uy,t,n,r))return i.zrX=Uy[0],void(i.zrY=Uy[1])}i.zrX=i.zrY=0}function Ct(t){return t||window.event}function It(t,e,i){if(e=Ct(e),null!=e.zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&Tt(t,r,e,i)}else{Tt(t,e,e,i);var o=At(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Gy.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function At(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,n=t.deltaY;return null==i||null==n?e:3*Math.abs(0!==n?n:i)*(n>0?-1:0>n?1:i>0?-1:1)}function kt(t,e,i,n){Wy?t.addEventListener(e,i,n):t.attachEvent("on"+e,i)}function Dt(t,e,i,n){Wy?t.removeEventListener(e,i,n):t.detachEvent("on"+e,i)}function Pt(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function Ot(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Lt(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:Et}}function Et(){jy(this.event)}function Rt(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,r=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1;n.silent&&(r=!0)}var s=n.__hostTarget;n=s||n.parent}return!r||Ky}return!1}function Nt(t,e,i){var n=t.painter;return 0>e||e>n.getWidth()||0>i||i>n.getHeight()}function zt(t){for(var e=0;t>=iv;)e|=1&t,t>>=1;return t+e}function Bt(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;i>r&&n(t[r],t[r-1])<0;)r++;Ft(t,e,r)}else for(;i>r&&n(t[r],t[r-1])>=0;)r++;return r-e}function Ft(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function Ht(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var o,a=t[n],s=e,l=n;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Vt(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){for(s=n-r;s>l&&o(t,e[i+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[i+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 h=a+(l-a>>>1);o(t,e[i+h])>0?a=h+1:l=h}return l}function Yt(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){for(s=r+1;s>l&&o(t,e[i+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=n-r;s>l&&o(t,e[i+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 h=a+(l-a>>>1);o(t,e[i+h])<0?l=h:a=h+1}return l}function Xt(t,e){function i(t,e){l[c]=t,u[c]=e,c+=1}function n(){for(;c>1;){var t=c-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(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(i){var n=l[i],r=u[i],o=l[i+1],h=u[i+1];u[i]=r+h,i===c-3&&(l[i+1]=l[i+2],u[i+1]=u[i+2]),c--;var p=Yt(t[o],t,n,r,0,e);n+=p,0!==(r-=p)&&0!==(h=Vt(t[n+r-1],t,o,h,h-1,e))&&(h>=r?a(n,r,o,h):s(n,r,o,h))}function a(i,n,r,o){var a=0;for(a=0;n>a;a++)p[a]=t[i+a];var s=0,l=r,u=i;if(t[u++]=t[l++],0!=--o){if(1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var c,f,d,g=h;;){c=0,f=0,d=!1;do{if(e(t[l],p[s])<0){if(t[u++]=t[l++],f++,c=0,0==--o){d=!0;break}}else if(t[u++]=p[s++],c++,f=0,1==--n){d=!0;break}}while(g>(c|f));if(d)break;do{if(0!==(c=Yt(t[l],p,s,n,0,e))){for(a=0;c>a;a++)t[u+a]=p[s+a];if(u+=c,s+=c,1>=(n-=c)){d=!0;break}}if(t[u++]=t[l++],0==--o){d=!0;break}if(0!==(f=Vt(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==--n){d=!0;break}g--}while(c>=nv||f>=nv);if(d)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===n)throw new Error;for(a=0;n>a;a++)t[u+a]=p[s+a]}}else for(a=0;n>a;a++)t[u+a]=p[s+a]}function s(i,n,r,o){var a=0;for(a=0;o>a;a++)p[a]=t[r+a];var s=i+n-1,l=o-1,u=r+o-1,c=0,f=0;if(t[u--]=t[s--],0!=--n){if(1===o){for(u-=n,s-=n,f=u+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];return void(t[u]=p[l])}for(var d=h;;){var g=0,y=0,v=!1;do{if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,y=0,0==--n){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=n-Yt(p[l],t,i,n,n-1,e))){for(u-=g,s-=g,n-=g,f=u+1,c=s+1,a=g-1;a>=0;a--)t[f+a]=t[c+a];if(0===n){v=!0;break}}if(t[u--]=p[l--],1==--o){v=!0;break}if(0!==(y=o-Vt(t[s],p,0,o,o-1,e))){for(u-=y,l-=y,o-=y,f=u+1,c=l+1,a=0;y>a;a++)t[f+a]=p[c+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0==--n){v=!0;break}d--}while(g>=nv||y>=nv);if(v)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=n,s-=n,f=u+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];t[u]=p[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}var l,u,h=nv,c=0,p=[];return l=[],u=[],{mergeRuns:n,forceMergeRuns:r,pushRun:i}}function Wt(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(2>r)){var o=0;if(iv>r)return o=Bt(t,i,n,e),void Ht(t,i,n,i+o,e);var a=Xt(t,e),s=zt(r);do{if(o=Bt(t,i,n,e),s>o){var l=r;l>s&&(l=s),Ht(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}function Gt(){av||(av=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ut(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function jt(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 Kt(t){var e=t;return jt(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Qt(t){var e=t;return Zt(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Jt(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function $t(t,e,i){return t+(e-t)*i}function te(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,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 ie(t,e){yv&&ee(yv,e),yv=gv.put(t,yv||e.slice())}function ne(t,e){if(t){e=e||[];var i=gv.get(t);if(i)return ee(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in dv)return ee(e,dv[n]),ie(t,e),e;var r=n.length;if("#"!==n.charAt(0)){var o=n.indexOf("("),a=n.indexOf(")");if(-1!==o&&a+1===r){var s=n.substr(0,o),l=n.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=Qt(l.pop());case"rgb":return 3!==l.length?void te(e,0,0,0,1):(te(e,Kt(l[0]),Kt(l[1]),Kt(l[2]),u),ie(t,e),e);case"hsla":return 4!==l.length?void te(e,0,0,0,1):(l[3]=Qt(l[3]),re(l,e),ie(t,e),e);case"hsl":return 3!==l.length?void te(e,0,0,0,1):(re(l,e),ie(t,e),e);default:return}}te(e,0,0,0,1)}else{if(4===r||5===r){var h=parseInt(n.slice(1,4),16);return h>=0&&4095>=h?(te(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseInt(n.slice(4),16)/15:1),ie(t,e),e):void te(e,0,0,0,1)}if(7===r||9===r){var h=parseInt(n.slice(1,7),16);return h>=0&&16777215>=h?(te(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseInt(n.slice(7),16)/255:1),ie(t,e),e):void te(e,0,0,0,1)}}}}function re(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=Qt(t[1]),r=Qt(t[2]),o=.5>=r?r*(n+1):r+n-r*n,a=2*r-o;return e=e||[],te(e,jt(255*Jt(a,o,i+1/3)),jt(255*Jt(a,o,i)),jt(255*Jt(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function oe(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+a):l/(2-s-a);var h=((s-n)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;n===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function ae(t,e){var i=ne(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:i[n]<0&&(i[n]=0);return pe(i,4===i.length?"rgba":"rgb")}}function se(t){var e=ne(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function le(t,e,i){if(e&&e.length&&t>=0&&1>=t){i=i||[];var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=e[r],s=e[o],l=n-r;return i[0]=jt($t(a[0],s[0],l)),i[1]=jt($t(a[1],s[1],l)),i[2]=jt($t(a[2],s[2],l)),i[3]=Zt($t(a[3],s[3],l)),i}}function ue(t,e,i){if(e&&e.length&&t>=0&&1>=t){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=ne(e[r]),s=ne(e[o]),l=n-r,u=pe([jt($t(a[0],s[0],l)),jt($t(a[1],s[1],l)),jt($t(a[2],s[2],l)),Zt($t(a[3],s[3],l))],"rgba");return i?{color:u,leftIndex:r,rightIndex:o,value:n}:u}}function he(t,e,i,n){var r=ne(t);return t?(r=oe(r),null!=e&&(r[0]=qt(e)),null!=i&&(r[1]=Qt(i)),null!=n&&(r[2]=Qt(n)),pe(re(r),"rgba")):void 0}function ce(t,e){var i=ne(t);return i&&null!=e?(i[3]=Zt(e),pe(i,"rgba")):void 0}function pe(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}function fe(t,e){var i=ne(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[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,i){return(e-t)*i+t}function ye(t,e,i){return i>.5?e:t}function ve(t,e,i,n){for(var r=e.length,o=0;r>o;o++)t[o]=ge(e[o],i[o],n)}function me(t,e,i,n){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],i[a][s],n)}}function _e(t,e,i,n){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+i[o]*n;return t}function xe(t,e,i,n){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]+i[a][s]*n}return t}function be(t,e,i){var n=t,r=e;if(n.push&&r.push){var o=n.length,a=r.length;if(o!==a){if(o>a)n.length=a;else for(var s=o;a>s;s++)n.push(1===i?r[s]:xv.call(r[s]))}for(var l=n[0]&&n[0].length,s=0;s<n.length;s++)if(1===i)isNaN(n[s])&&(n[s]=r[s]);else for(var u=0;l>u;u++)isNaN(n[s][u])&&(n[s][u]=r[s][u])}}function we(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;i>n;n++)if(t[n]!==e[n])return!1;return!0}function Se(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function Te(t,e,i,n,r,o,a,s){for(var l=e.length,u=0;l>u;u++)t[u]=Se(e[u],i[u],n[u],r[u],o,a,s)}function Me(t,e,i,n,r,o,a,s){for(var l=e.length,u=e[0].length,h=0;l>h;h++){t[h]||(t[1]=[]);for(var c=0;u>c;c++)t[h][c]=Se(e[h][c],i[h][c],n[h][c],r[h][c],o,a,s)}}function Ce(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;e>n;n++)i.push(xv.call(t[n]));return i}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 Ae(t){return d(t&&t[0])?2:1}function ke(t){var e=t.pointerType;return"pen"===e||"touch"===e}function De(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 Pe(t){t&&(t.zrByTouch=!0)}function Oe(t,e){return It(t.dom,new kv(t,e),!0)}function Le(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}function Ee(t,e){var i=e.domHandlers;gy.pointerEventsSupported?g(Cv.pointer,function(n){Ne(e,n,function(e){i[n].call(t,e)})}):(gy.touchEventsSupported&&g(Cv.touch,function(n){Ne(e,n,function(r){i[n].call(t,r),De(e)})}),g(Cv.mouse,function(n){Ne(e,n,function(r){r=Ct(r),e.touching||i[n].call(t,r)})}))}function Re(t,e){function i(i){function n(n){n=Ct(n),Le(t,n.target)||(n=Oe(t,n),e.domHandlers[i].call(t,n))}Ne(e,i,n,{capture:!0})}gy.pointerEventsSupported?g(Iv.pointer,i):gy.touchEventsSupported||g(Iv.mouse,i)}function Ne(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,kt(t.domTarget,e,i,n)}function ze(t){var e=t.mounted;for(var i in e)e.hasOwnProperty(i)&&Dt(t.domTarget,i,e[i],t.listenerOpts[i]);t.mounted={}}function Be(){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 He(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 Ve(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ye(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Xe(t,e,i){var n=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+a*u,t[1]=-n*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function We(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function Ge(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}function Ue(t){var e=Be();return He(e,t),e}function je(t){return t>Xv||-Xv>t}function qe(t,e){return Rv||(Rv=Ay().getContext("2d")),Nv!==e&&(Nv=Rv.font=e||sm),Rv.measureText(t)}function Ze(t,e){e=e||sm;var i=am[e];i||(i=am[e]=new fv(500));var n=i.get(t);return null==n&&(n=lm.measureText(t,e).width,i.put(t,n)),n}function Ke(t,e,i,n){var r=Ze(t,e),o=ti(e),a=Je(0,r,i),s=$e(0,o,n);return new om(a,s,r,o)}function Qe(t,e,i,n){var r=((t||"")+"").split("\n");if(1===r.length)return Ke(r[0],e,i,n);for(var o=new om(0,0,0,0),a=0;a<r.length;a++){var s=Ke(r[a],e,i,n);0===a?o.copy(s):o.union(s)}return o}function Je(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function $e(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function ti(t){return Ze("国",t)}function ei(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ii(t,e,i){var n=e.position||"inside",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/2,l=i.x,u=i.y,h="left",c="top";if(n instanceof Array)l+=ei(n[0],i.width),u+=ei(n[1],i.height),h=null,c=null;else switch(n){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function ni(t,e,i,n,r){i=i||{};var o=[];si(t,"",t,e,i,n,o,r);var a=o.length,s=!1,l=i.done,u=i.aborted,h=function(){s=!0,0>=--a&&(s?l&&l():u&&u())},c=function(){0>=--a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&i.during&&o[0].during(function(t,e){i.during(e)});for(var p=0;p<o.length;p++){var f=o[p];h&&f.done(h),c&&f.aborted(c),f.start(i.easing,i.force)}return o}function ri(t,e,i){for(var n=0;i>n;n++)t[n]=e[n]}function oi(t){return d(t[0])}function ai(t,e,i){if(d(e[i]))if(d(t[i])||(t[i]=[]),D(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),ri(t[i],e[i],n))}else{var r=e[i],o=t[i],a=r.length;if(oi(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?ri(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else ri(o,r,a);o.length=r.length}else t[i]=e[i]}function si(t,e,i,n,r,o,a,s){for(var l=[],u=[],h=x(n),p=r.duration,f=r.delay,g=r.additive,y=r.setToFinal,v=!A(o),m=0;m<h.length;m++){var _=h[m];if(null!=i[_]&&null!=n[_]&&(v||o[_]))if(A(n[_])&&!d(n[_])){if(e){s||(i[_]=n[_],t.updateDuringAnimation(e));continue}si(t,_,i[_],n[_],r,o&&o[_],a,s)}else l.push(_),u.push(_);else s||(i[_]=n[_],t.updateDuringAnimation(e),u.push(_))}var b=l.length;if(b>0||r.force&&!a.length){for(var w=t.animators,S=[],T=0;T<w.length;T++)w[T].targetName===e&&S.push(w[T]);if(!g&&S.length)for(var T=0;T<S.length;T++){var M=S[T].stopTracks(u);if(M){var C=c(w,S[T]);w.splice(C,1)}}var I=void 0,k=void 0,D=void 0;if(s){k={},y&&(I={});for(var T=0;b>T;T++){var _=l[T];k[_]=i[_],y?I[_]=n[_]:i[_]=n[_]}}else if(y){D={};for(var T=0;b>T;T++){var _=l[T];D[_]=Ce(i[_]),ai(i,n,_)}}var P=new Sv(i,!1,g?S:null);P.targetName=e,r.scope&&(P.scope=r.scope),y&&I&&P.whenWithKeys(0,I,l),D&&P.whenWithKeys(0,D,l),P.whenWithKeys(null==p?500:p,s?k:n,l).delay(f||0),t.addAnimator(P,e),a.push(P)}}function li(t){delete mm[t]}function ui(t){if(!t)return!1;if("string"==typeof t)return fe(t,1)<Bv;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;n>r;r++)i+=fe(e[r].color,1);return i/=n,Bv>i}return!1}function hi(t,e){var i=new _m(r(),t,e);return mm[i.id]=i,i}function ci(t){t.dispose()}function pi(){for(var t in mm)mm.hasOwnProperty(t)&&mm[t].dispose();mm={}}function fi(t){return mm[t]}function di(t,e){vm[t]=e}function gi(t){return t.replace(/^\s+|\s+$/g,"")}function yi(t,e,i,n){var r=e[0],o=e[1],a=i[0],s=i[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(n)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 vi(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?gi(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function mi(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),wm),t=(+t).toFixed(e),i?t:+t}function _i(t){return t.sort(function(t,e){return t-e}),t}function xi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,i=0;15>i;i++,e*=10)if(Math.round(t*e)/e===t)return i;return bi(t)}function bi(t){var e=t.toString().toLowerCase(),i=e.indexOf("e"),n=i>0?+e.slice(i+1):0,r=i>0?i:e.length,o=e.indexOf("."),a=0>o?0:r-1-o;return Math.max(0,a-n)}function wi(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Si(t,e,i){if(!t[e])return 0;var n=v(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var r=Math.pow(10,i),o=y(t,function(t){return(isNaN(t)?0:t)/n*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 h=Number.NEGATIVE_INFINITY,c=null,p=0,f=u.length;f>p;++p)u[p]>h&&(h=u[p],c=p);++s[c],u[c]=0,++l}return s[e]/r}function Ti(t,e){var i=Math.max(xi(t),xi(e)),n=t+e;return i>wm?n:mi(n,i)}function Mi(t){var e=2*Math.PI;return(t%e+e)%e}function Ci(t){return t>-bm&&bm>t}function Ii(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 i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,e[7]?+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 Ai(t){return Math.pow(10,ki(t))}function ki(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 Di(t,e){var i,n=ki(t),r=Math.pow(10,n),o=t/r;return i=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=i*r,n>=-20?+t.toFixed(0>n?-n:0):t}function Pi(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],o=i-n;return o?r+o*(t[n]-r):r}function Oi(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]==(n?-1:1)||!n&&e(t,i,1))}t.sort(function(t,i){return e(t,i,0)?-1:1});for(var i=-1/0,n=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>s;s++)o[s]<=i&&(o[s]=i,a[s]=s?1:1-n),i=o[s],n=a[s];o[0]===o[1]&&a[0]*a[1]!=1?t.splice(r,1):r++}return t}function Li(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!=typeof t||t.indexOf("x")<=0)?e:NaN}function Ei(t){return!isNaN(Li(t))}function Ri(){return Math.round(9*Math.random())}function Ni(t,e){return 0===e?t:Ni(e,t%e)}function zi(t,e){return null==t?e:null==e?t:t*e/Ni(t,e)}function Bi(t){throw new Error(t)}function Fi(t){return t instanceof Array?t:null==t?[]:[t]}function Hi(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;r>n;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Vi(t){return!A(t)||S(t)||t instanceof Date?t:t.value}function Yi(t){return A(t)&&!(t instanceof Array)}function Xi(t,e,i){var n="normalMerge"===i,r="replaceMerge"===i,o="replaceAll"===i;t=t||[],e=(e||[]).slice();var a=G();g(e,function(t,i){return A(t)?void 0:void(e[i]=null)});var s=Wi(t,a,i);return(n||r)&&Gi(s,t,a,e),n&&Ui(s,e),n||r?ji(s,e,r):o&&qi(s,e),Zi(s),s}function Wi(t,e,i){var n=[];if("replaceAll"===i)return n;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||tn(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function Gi(t,e,i,n){g(n,function(r,o){if(r&&null!=r.id){var a=Qi(r.id),s=i.get(a);if(null!=s){var l=t[s];V(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],n[o]=null}}})}function Ui(t,e){g(e,function(i,n){if(i&&null!=i.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==i.id)&&!tn(i)&&!tn(o)&&Ki("name",o,i))return t[r].newOption=i,void(e[n]=null)}})}function ji(t,e,i){g(e,function(e){if(e){for(var n,r=0;(n=t[r])&&(n.newOption||tn(n.existing)||n.existing&&null!=e.id&&!Ki("id",e,n.existing));)r++;n?(n.newOption=e,n.brandNew=i):t.push({newOption:e,brandNew:i,existing:null,keyInfo:null}),r++}})}function qi(t,e){g(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function Zi(t){var e=G();g(t,function(t){var i=t.existing;i&&e.set(i.id,t)}),g(t,function(t){var i=t.newOption;V(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),g(t,function(t,i){var n=t.existing,r=t.newOption,o=t.keyInfo;if(A(r)){if(o.name=null!=r.name?Qi(r.name):n?n.name:Tm+i,n)o.id=Qi(n.id);else if(null!=r.id)o.id=Qi(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 Ki(t,e,i){var n=Ji(e[t],null),r=Ji(i[t],null);return null!=n&&null!=r&&n===r}function Qi(t){return Ji(t,"")}function Ji(t,e){if(null==t)return e;var i=typeof t;return"string"===i?t:"number"===i||C(t)?t+"":e}function $i(t){var e=t.name;return!(!e||!e.indexOf(Tm))}function tn(t){return t&&null!=t.id&&0===Qi(t.id).indexOf(Mm)}function en(t,e,i){g(t,function(t){var n=t.newOption;A(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=nn(e,n,t.existing,i))})}function nn(t,e,i,n){return e.type?e.type:i?i.subType:n.determineSubType(t,e)}function rn(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 on(){var t="__ec_inner_"+Im++;return function(e){return e[t]||(e[t]={})}}function an(t,e,i){var n=sn(e,i),r=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=a,l=i?i.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,n){var r=ln(t,n,e,{useDefault:l===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});s[n+"Models"]=r.models,s[n+"Model"]=r.models[0]}),s}function sn(t,e){var i;if(M(t)){var n={};n[t+"Index"]=0,i=n}else i=t;var r=G(),o={},a=!1;return g(i,function(t,i){if("dataIndex"===i||"dataIndexInside"===i)return void(o[i]=t);var n=i.match(/^(\w+)(Index|Id|Name)$/)||[],s=n[1],l=(n[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&c(e.includeMainTypes,s)<0)){a=a||!!s;(r.get(s)||r.set(s,{}))[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function ln(t,e,i,n){n=n||Am;var r=i.index,o=i.id,a=i.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(V(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(V(n.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 un(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function hn(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function cn(t){return"auto"===t?gy.domSupported?"html":"richText":t||"html"}function pn(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if("number"==typeof n){var a=ge(i||0,n,r);return mi(a,o?Math.max(xi(i||0),xi(n)):e)}if("string"==typeof n)return 1>r?i:n;for(var s=[],l=i,u=n,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var p=t.getDimensionInfo(c);if(p&&"ordinal"===p.type)s[c]=(1>r&&l?l:u)[c];else{var f=l&&l[c]?l[c]:0,d=u[c],a=ge(f,d,r);s[c]=mi(a,o?Math.max(xi(f),xi(d)):e)}}return s}function fn(t){var e={main:"",sub:""};if(t){var i=t.split(km);e.main=i[0]||"",e.sub=i[1]||""}return e}function dn(t){V(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function gn(t){return!(!t||!t[Pm])}function yn(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(vn(n)){return j(e.prototype,new(n.bind.apply(n,i([void 0],r))))}n.apply(this,arguments)}}var n=this;return e[Pm]=!0,u(e.prototype,t),e.extend=this.extend,e.superCall=_n,e.superApply=xn,p(e,this),e.superClass=n,e}}function vn(t){return"function"==typeof t&&/^class\s/.test(Function.prototype.toString.call(t))}function mn(t,e){t.extend=e.extend}function _n(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function xn(t,e,i){return this.superClass.prototype[e].apply(t,i)}function bn(t){function e(t){var e=i[t.main];return e&&e[Dm]||(e=i[t.main]={},e[Dm]=!0),e}var i={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){dn(n),t.prototype.type=n;var r=fn(n);if(r.sub){if(r.sub!==Dm){var o=e(r);o[r.sub]=t}}else i[r.main]=t}return t},t.getClass=function(t,e,n){var r=i[t];if(r&&r[Dm]&&(r=e?r[e]:null),n&&!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=fn(t),n=[],r=i[e.main];return r&&r[Dm]?g(r,function(t,e){e!==Dm&&n.push(t)}):n.push(r),n},t.hasClass=function(t){var e=fn(t);return!!i[e.main]},t.getAllClassMainTypes=function(){var t=[];return g(i,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){var e=fn(t),n=i[e.main];return n&&n[Dm]}}function wn(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(n&&c(n,s)>=0||r&&c(r,s)<0)){var l=i.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function Sn(t){if("string"==typeof t){var e=Nm.get(t);return e&&e.image}return t}function Tn(t,e,i,n,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=Nm.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?(e=o.image,!Cn(e)&&o.pending.push(a)):(e=new Image,e.onload=e.onerror=Mn,Nm.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Mn(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function Cn(t){return t&&t.width&&t.height}function In(t,e,i,n,r){if(!e)return"";var o=(t+"").split("\n");r=An(e,i,n,r);for(var a=0,s=o.length;s>a;a++)o[a]=kn(o[a],r);return o.join("\n")}function An(t,e,i,n){n=n||{};var r=u({},n);r.font=e,i=z(i,"..."),r.maxIterations=z(n.maxIterations,2);var o=r.minChar=z(n.minChar,0);r.cnCharWidth=Ze("国",e);var a=r.ascCharWidth=Ze("a",e);r.placeholder=z(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var h=Ze(i,e);return h>s&&(i="",h=0),s=t-h,r.ellipsis=i,r.ellipsisWidth=h,r.contentWidth=s,r.containerWidth=t,r}function kn(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=Ze(t,n);if(i>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Dn(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Ze(t,n)}return""===t&&(t=e.placeholder),t}function Dn(t,e,i,n){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?i:n}return o}function Pn(t,e){null!=t&&(t+="");var i,n=e.overflow,r=e.padding,o=e.font,a="truncate"===n,s=ti(o),l=z(e.lineHeight,s),u="truncate"===e.lineOverflow,h=e.width;i=null!=h&&"break"===n||"breakAll"===n?t?Nn(t,e.font,h,"breakAll"===n,0).lines:[]:t?t.split("\n"):[];var c=i.length*l,p=z(e.height,c);if(c>p&&u){var f=Math.floor(p/l);i=i.slice(0,f)}var d=p,g=h;if(r&&(d+=r[0]+r[2],null!=g&&(g+=r[1]+r[3])),t&&a&&null!=g)for(var y=An(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<i.length;v++)i[v]=kn(i[v],y);if(null==h){for(var m=0,v=0;v<i.length;v++)m=Math.max(Ze(i[v],o),m);h=m}return{lines:i,height:p,outerHeight:d,lineHeight:l,calculatedLineHeight:s,contentHeight:c,width:h}}function On(t,e){function i(t,e,i){t.width=e,t.lineHeight=i,p+=i,f=Math.max(f,e)}var n=new Hm;if(null!=t&&(t+=""),!t)return n;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=zm.lastIndex=0;null!=(r=zm.exec(t));){var h=r.index;h>u&&Ln(n,t.substring(u,h),e,l),Ln(n,r[2],e,l,r[1]),u=zm.lastIndex}u<t.length&&Ln(n,t.substring(u,t.length),e,l);var c=[],p=0,f=0,d=e.padding,g="truncate"===s,y="truncate"===e.lineOverflow;t:for(var v=0;v<n.lines.length;v++){for(var m=n.lines[v],_=0,x=0,b=0;b<m.tokens.length;b++){var w=m.tokens[b],S=w.styleName&&e.rich[w.styleName]||{},T=w.textPadding=S.padding,M=T?T[1]+T[3]:0,C=w.font=S.font||e.font;w.contentHeight=ti(C);var I=z(S.height,w.contentHeight);if(w.innerHeight=I,T&&(I+=T[0]+T[2]),w.height=I,w.lineHeight=B(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),i(m,x,_),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var A=S.width,k=null==A||"auto"===A;if("string"==typeof A&&"%"===A.charAt(A.length-1))w.percentWidth=A,c.push(w),w.contentWidth=Ze(w.text,C);else{if(k){var D=S.backgroundColor,P=D&&D.image;P&&(P=Sn(P),Cn(P)&&(w.width=Math.max(w.width,P.width*I/P.height)))}var O=g&&null!=o?o-x:null;null!=O&&O<w.width?!k||M>O?(w.text="",w.width=w.contentWidth=0):(w.text=In(w.text,O-M,C,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=Ze(w.text,C)):w.contentWidth=Ze(w.text,C)}w.width+=M,x+=w.width,S&&(_=Math.max(_,w.lineHeight))}i(m,x,_)}n.outerWidth=n.width=z(o,f),n.outerHeight=n.height=z(a,p),n.contentHeight=p,n.contentWidth=f,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]);for(var v=0;v<c.length;v++){var w=c[v],L=w.percentWidth;w.width=parseInt(L,10)/100*n.width}return n}function Ln(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},u=t.lines,h=l.font||i.font,c=!1;if(n){var p=l.padding,f=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var d=ei(l.width,n.width)+f;u.length>0&&d+n.accumWidth>n.width&&(o=e.split("\n"),c=!0),n.accumWidth=d}else{var g=Nn(e,h,n.width,n.breakAll,n.accumWidth);n.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 Bm;if(m.styleName=r,m.text=v,m.isLineHolder=!v&&!s,m.width="number"==typeof l.width?l.width:a?a[y]:Ze(v,h),y||c)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 En(t){var e=t.charCodeAt(0);return e>=33&&255>=e}function Rn(t){return!En(t)||!!Vm[t]}function Nn(t,e,i,n,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<t.length;c++){var p=t.charAt(c);if("\n"!==p){var f=Ze(p,e),d=!n&&!Rn(p);(o.length?h+f>i:r+h+f>i)?h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=p,u+=f,s="",h=u):(l&&(s+=l,h+=u,l="",u=0),o.push(s),a.push(h),s=p,h=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(h+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function zn(t,e,i){return qm.copy(t.getBoundingRect()),t.transform&&qm.applyTransform(t.transform),Zm.width=e,Zm.height=i,!qm.intersect(Zm)}function Bn(t){return t>-Jm&&Jm>t}function Fn(t){return t>Jm||-Jm>t}function Hn(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function Vn(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function Yn(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,f=0;if(Bn(h)&&Bn(c))if(Bn(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[f++]=d)}else{var g=c*c-4*h*p;if(Bn(g)){var y=c/h,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=Qm(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-Km(-_,e_):Km(_,e_),x=0>x?-Km(-x,e_):Km(x,e_);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[f++]=d)}else{var b=(2*h*s-3*a*c)/(2*Qm(h*h*h)),w=Math.acos(b)/3,S=Qm(h),T=Math.cos(w),d=(-s-2*S*T)/(3*a),v=(-s+S*(T+t_*Math.sin(w)))/(3*a),M=(-s+S*(T-t_*Math.sin(w)))/(3*a);d>=0&&1>=d&&(o[f++]=d),v>=0&&1>=v&&(o[f++]=v),M>=0&&1>=M&&(o[f++]=M)}}return f}function Xn(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Bn(a)){if(Fn(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(Bn(h))r[0]=-o/(2*a);else if(h>0){var c=Qm(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function Wn(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=n}function Gn(t,e,i,n,r,o,a,s,l,u,h){var c,p,f,d,g,y=.005,v=1/0;i_[0]=l,i_[1]=u;for(var m=0;1>m;m+=.05)n_[0]=Hn(t,i,r,a,m),n_[1]=Hn(e,n,o,s,m),d=Ny(i_,n_),v>d&&(c=m,v=d);v=1/0;for(var _=0;32>_&&!($m>y);_++)p=c-y,f=c+y,n_[0]=Hn(t,i,r,a,p),n_[1]=Hn(e,n,o,s,p),d=Ny(n_,i_),p>=0&&v>d?(c=p,v=d):(r_[0]=Hn(t,i,r,a,f),r_[1]=Hn(e,n,o,s,f),g=Ny(r_,i_),1>=f&&v>g?(c=f,v=g):y*=.5);return h&&(h[0]=Hn(t,i,r,a,c),h[1]=Hn(e,n,o,s,c)),Qm(v)}function Un(t,e,i,n,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,f=1;l>=f;f++){var d=f*p,g=Hn(t,i,r,a,d),y=Hn(e,n,o,s,d),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function jn(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function qn(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function Zn(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(Bn(o)){if(Fn(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(Bn(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=Qm(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function Kn(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function Qn(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function Jn(t,e,i,n,r,o,a,s,l){var u,h=.005,c=1/0;i_[0]=a,i_[1]=s;for(var p=0;1>p;p+=.05){n_[0]=jn(t,i,r,p),n_[1]=jn(e,n,o,p);var f=Ny(i_,n_);c>f&&(u=p,c=f)}c=1/0;for(var d=0;32>d&&!($m>h);d++){var g=u-h,y=u+h;n_[0]=jn(t,i,r,g),n_[1]=jn(e,n,o,g);var f=Ny(n_,i_);if(g>=0&&c>f)u=g,c=f;else{r_[0]=jn(t,i,r,y),r_[1]=jn(e,n,o,y);var v=Ny(r_,i_);1>=y&&c>v?(u=y,c=v):h*=.5}}return l&&(l[0]=jn(t,i,r,u),l[1]=jn(e,n,o,u)),Qm(c)}function $n(t,e,i,n,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var p=c*h,f=jn(t,i,r,p),d=jn(e,n,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,i){if(0!==t.length){for(var n=t[0],r=n[0],o=n[0],a=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],r=o_(r,n[0]),o=a_(o,n[0]),a=o_(a,n[1]),s=a_(s,n[1]);e[0]=r,e[1]=a,i[0]=o,i[1]=s}}function er(t,e,i,n,r,o){r[0]=o_(t,i),r[1]=o_(e,n),o[0]=a_(t,i),o[1]=a_(e,n)}function ir(t,e,i,n,r,o,a,s,l,u){var h=Xn,c=Hn,p=h(t,i,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=c(t,i,r,a,f_[f]);l[0]=o_(d,l[0]),u[0]=a_(d,u[0])}p=h(e,n,o,s,d_);for(var f=0;p>f;f++){var g=c(e,n,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 nr(t,e,i,n,r,o,a,s){var l=Kn,u=jn,h=a_(o_(l(t,i,r),1),0),c=a_(o_(l(e,n,o),1),0),p=u(t,i,r,h),f=u(e,n,o,c);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,i,n,r,o,a,s,l){var u=gt,h=yt,c=Math.abs(r-o);if(1e-4>c%u_&&c>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(h_[0]=l_(r)*i+t,h_[1]=s_(r)*n+e,c_[0]=l_(o)*i+t,c_[1]=s_(o)*n+e,u(s,h_,c_),h(l,h_,c_),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)*i+t,p_[1]=s_(f)*n+e,u(s,p_,s),h(l,p_,l))}function or(t){return Math.round(t/A_*1e8)/1e8%2*A_}function ar(t,e){var i=or(t[0]);0>i&&(i+=k_);var n=i-t[0],r=t[1];r+=n,!e&&r-i>=k_?r=i+k_:e&&i-r>=k_?r=i-k_:!e&&i>r?r=i+(k_-or(i-r)):e&&r>i&&(r=i-(k_-or(r-i))),t[0]=i,t[1]=r}function sr(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>n+s||e-s>a&&n-s>a||o>t+s&&o>i+s||t-s>o&&i-s>o)return!1;if(t===i)return Math.abs(o-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var h=l*o-a+u;return s/2*s/2>=h*h/(l*l+1)}function lr(t,e,i,n,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;return!(h>e+c&&h>n+c&&h>o+c&&h>s+c||e-c>h&&n-c>h&&o-c>h&&s-c>h||u>t+c&&u>i+c&&u>r+c&&u>a+c||t-c>u&&i-c>u&&r-c>u&&a-c>u)&&c/2>=Gn(t,e,i,n,r,o,a,s,u,h,null)}function ur(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>n+u&&l>o+u||e-u>l&&n-u>l&&o-u>l||s>t+u&&s>i+u&&s>r+u||t-u>s&&i-u>s&&r-u>s)&&u/2>=Jn(t,e,i,n,r,o,s,l,null)}function hr(t){return t%=L_,0>t&&(t+=L_),t}function cr(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>i||i>h+u)return!1;if(Math.abs(n-r)%E_<1e-4)return!0;if(o){var c=n;n=hr(r),r=hr(c)}else n=hr(n),r=hr(r);n>r&&(r+=E_);var p=Math.atan2(l,s);return 0>p&&(p+=E_),p>=n&&r>=p||p+E_>=n&&r>=p+E_}function pr(t,e,i,n,r,o){if(o>e&&o>n||e>o&&n>o)return 0;if(n===e)return 0;var a=(o-e)/(n-e),s=e>n?1:-1;(1===a||0===a)&&(s=e>n?.5:-.5);var l=a*(i-t)+t;return l===r?1/0:l>r?s:0}function fr(t,e){return Math.abs(t-e)<z_}function dr(){var t=F_[0];F_[0]=F_[1],F_[1]=t}function gr(t,e,i,n,r,o,a,s,l,u){if(u>e&&u>n&&u>o&&u>s||e>u&&n>u&&o>u&&s>u)return 0;var h=Yn(e,n,o,s,u,B_);if(0===h)return 0;for(var c=0,p=-1,f=void 0,d=void 0,g=0;h>g;g++){var y=B_[g],v=0===y||1===y?.5:1;l>Hn(t,i,r,a,y)||(0>p&&(p=Xn(e,n,o,s,F_),F_[1]<F_[0]&&p>1&&dr(),f=Hn(e,n,o,s,F_[0]),p>1&&(d=Hn(e,n,o,s,F_[1]))),c+=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 c}function yr(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||e>s&&n>s&&o>s)return 0;var l=Zn(e,n,o,s,B_);if(0===l)return 0;var u=Kn(e,n,o);if(u>=0&&1>=u){for(var h=0,c=jn(e,n,o,u),p=0;l>p;p++){var f=0===B_[p]||1===B_[p]?.5:1,d=jn(t,i,r,B_[p]);a>d||(h+=B_[p]<u?e>c?f:-f:c>o?f:-f)}return h}var f=0===B_[0]||1===B_[0]?.5:1,d=jn(t,i,r,B_[0]);return a>d?0:e>o?f:-f}function vr(t,e,i,n,r,o,a,s){if((s-=e)>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);B_[0]=-l,B_[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(u>=N_-1e-4){n=0,r=N_;var h=o?1:-1;return a>=B_[0]+t&&a<=B_[1]+t?h:0}if(n>r){var c=n;n=r,r=c}0>n&&(n+=N_,r+=N_);for(var p=0,f=0;2>f;f++){var d=B_[f];if(d+t>a){var g=Math.atan2(s,d),h=o?1:-1;0>g&&(g=N_+g),(g>=n&&r>=g||g+N_>=n&&r>=g+N_)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function mr(t,e,i,n,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,f=0,d=0;l>d;){var g=s[d++],y=1===d;switch(g===R_.M&&d>1&&(i||(u+=pr(h,c,p,f,n,r))),y&&(h=s[d],c=s[d+1],p=h,f=c),g){case R_.M:p=s[d++],f=s[d++],h=p,c=f;break;case R_.L:if(i){if(sr(h,c,s[d],s[d+1],e,n,r))return!0}else u+=pr(h,c,s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case R_.C:if(i){if(lr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,n,r))return!0}else u+=gr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case R_.Q:if(i){if(ur(h,c,s[d++],s[d++],s[d],s[d+1],e,n,r))return!0}else u+=yr(h,c,s[d++],s[d++],s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case R_.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(h,c,o,a,n,r);var T=(n-v)*x/_+v;if(i){if(cr(v,m,x,b,b+w,S,e,T,r))return!0}else u+=vr(v,m,x,b,b+w,S,T,r);h=Math.cos(b+w)*_+v,c=Math.sin(b+w)*x+m;break;case R_.R:p=h=s[d++],f=c=s[d++];var M=s[d++],C=s[d++];if(o=p+M,a=f+C,i){if(sr(p,f,o,f,e,n,r)||sr(o,f,o,a,e,n,r)||sr(o,a,p,a,e,n,r)||sr(p,a,p,f,e,n,r))return!0}else u+=pr(o,f,o,a,n,r),u+=pr(p,a,p,f,n,r);break;case R_.Z:if(i){if(sr(h,c,p,f,e,n,r))return!0}else u+=pr(h,c,p,f,n,r);h=p,c=f}}return i||fr(c,f)||(u+=pr(h,c,p,f,n,r)||0),0!==u}function _r(t,e,i){return mr(t,0,!1,e,i)}function xr(t,e,i,n){return mr(t,e,!0,i,n)}function br(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function wr(t,e){var i,n,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?i=n=r=o=h:h instanceof Array?1===h.length?i=n=r=o=h[0]:2===h.length?(i=r=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[3]):i=n=r=o=0;var c;i+n>l&&(c=i+n,i*=l/c,n*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),n+r>u&&(c=n+r,n*=u/c,r*=u/c),i+o>u&&(c=i+o,i*=u/c,o*=u/c),t.moveTo(a+i,s),t.lineTo(a+l-n,s),0!==n&&t.arc(a+l-n,s+n,n,-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+i),0!==i&&t.arc(a+i,s+i,i,Math.PI,1.5*Math.PI)}function Sr(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;return s?(Z_(2*n)===Z_(2*r)&&(t.x1=t.x2=Mr(n,s,!0)),Z_(2*o)===Z_(2*a)&&(t.y1=t.y2=Mr(o,s,!0)),t):t}}function Tr(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;return s?(t.x=Mr(n,s,!0),t.y=Mr(r,s,!0),t.width=Math.max(Mr(n+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Mr(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Mr(t,e,i){if(!e)return t;var n=Z_(2*t);return(n+Z_(e))%2==0?n/2:(n+(i?1:-1))/2}function Cr(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||ix[e]?e:"left";var i=t.verticalAlign;"center"===i&&(i="middle"),t.verticalAlign=null==i||nx[i]?i:"top";t.padding&&(t.padding=H(t.padding))}}function Ar(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function kr(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Dr(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function Pr(t){var e=t.text;return null!=e&&(e+=""),e}function Or(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Lr(t){return null!=t&&"none"!==t}function Er(t){if("string"!=typeof t)return t;var e=bx.get(t);return e||(e=ae(t,-.1),bx.put(t,e)),e}function Rr(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function Nr(t){Rr(t,"emphasis",cx)}function zr(t){t.hoverState===cx&&Rr(t,"normal",ux)}function Br(t){Rr(t,"blur",hx)}function Fr(t){t.hoverState===hx&&Rr(t,"normal",ux)}function Hr(t){t.selected=!0}function Vr(t){t.selected=!1}function Yr(t,e,i){e(t,i)}function Xr(t,e,i){Yr(t,e,i),t.isGroup&&t.traverse(function(t){Yr(t,e,i)})}function Wr(t,e){switch(e){case"emphasis":t.hoverState=cx;break;case"normal":t.hoverState=ux;break;case"blur":t.hoverState=hx;break;case"select":t.selected=!0}}function Gr(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?n&&n[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(i)<0&&"style"===u.targetName&&u.saveFinalToTarget(o,e)}return o}function Ur(t,e,i,n){var r=i&&c(i,"select")>=0,o=!1;if(t instanceof X_){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)){n=n||{};var h=n.style||{};"inherit"===h.fill?(o=!0,n=u({},n),h=u({},h),h.fill=s):!Lr(h.fill)&&Lr(s)?(o=!0,n=u({},n),h=u({},h),h.fill=Er(s)):!Lr(h.stroke)&&Lr(l)&&(o||(n=u({},n),h=u({},h)),h.stroke=Er(l)),n.style=h}}if(n&&null==n.z2){o||(n=u({},n));var p=t.z2EmphasisLift;n.z2=t.z2+(null!=p?p:dx)}return n}function jr(t,e,i){if(i&&null==i.z2){i=u({},i);var n=t.z2SelectLift;i.z2=t.z2+(null!=n?n:gx)}return i}function qr(t,e,i){var n=c(t.currentStates,e)>=0,r=t.style.opacity,o=n?null:Gr(t,["opacity"],e,{opacity:1});i=i||{};var a=i.style||{};return null==a.opacity&&(i=u({},i),a=u({opacity:n?r:.1*o.opacity},a),i.style=a),i}function Zr(t,e){var i=this.states[t];if(this.style){if("emphasis"===t)return Ur(this,t,e,i);if("blur"===t)return qr(this,t,i);if("select"===t)return jr(this,t,i)}return i}function Kr(t){t.stateProxy=Zr;var e=t.getTextContent(),i=t.getTextGuideLine();e&&(e.stateProxy=Zr),i&&(i.stateProxy=Zr)}function Qr(t,e){!oo(t,e)&&!t.__highByOuter&&Xr(t,Nr)}function Jr(t,e){!oo(t,e)&&!t.__highByOuter&&Xr(t,zr)}function $r(t,e){t.__highByOuter|=1<<(e||0),Xr(t,Nr)}function to(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Xr(t,zr)}function eo(t){Xr(t,Br)}function io(t){Xr(t,Fr)}function no(t){Xr(t,Hr)}function ro(t){Xr(t,Vr)}function oo(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ao(t){t.getModel().eachComponent(function(e,i){("series"===e?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i)).group.traverse(function(t){Fr(t)})})}function so(t,e,i,n){function r(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&io(n)}}var o=n.getModel();if(i=i||"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 h=u&&s?u===s:o;if(!("series"===i&&!o||"coordinateSystem"===i&&!h||"series"===e&&o)){if(n.getViewOfSeriesModel(t).group.traverse(function(t){Br(t)}),d(e))r(t.getData(),e);else if(A(e))for(var c=x(e),p=0;p<c.length;p++)r(t.getData(c[p]),e[c[p]]);l.push(t)}}),o.eachComponent(function(t,e){if("series"!==t){var i=n.getViewOfComponentModel(e);i&&i.blurSeries&&i.blurSeries(l,o)}})}}function lo(t,e,i){if(null!=t&&null!=e){var n=i.getModel().getComponent(t,e);if(n){var r=i.getViewOfComponentModel(n);r&&r.focusBlurEnabled&&r.group.traverse(function(t){Br(t)})}}}function uo(t,e,i){var n=t.seriesIndex,r=t.getData(e.dataType),o=rn(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(n,u.focus,u.blurScope,i)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&so(n,h,c,i)}}function ho(t,e,i,n){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return r;var o=n.getModel().getComponent(t,e);if(!o)return r;var a=n.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(i),u=0;u<l.length;u++)if("self"===rx(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function co(t,e,i){var n=rx(t),r=ho(n.componentMainType,n.componentIndex,n.componentHighDownName,i),o=r.dispatchers,a=r.focusSelf;o?(a&&lo(n.componentMainType,n.componentIndex,i),g(o,function(t){return Qr(t,e)})):(so(n.seriesIndex,n.focus,n.blurScope,i),"self"===n.focus&&lo(n.componentMainType,n.componentIndex,i),Qr(t,e))}function po(t,e,i){ao(i);var n=rx(t),r=ho(n.componentMainType,n.componentIndex,n.componentHighDownName,i).dispatchers;r?g(r,function(t){return Jr(t,e)}):Jr(t,e)}function fo(t,e){if(So(e)){var i=e.dataType,n=t.getData(i),r=rn(n,e);S(r)||(r=[r]),t[e.type===xx?"toggleSelect":e.type===mx?"select":"unselect"](r,i)}}function go(t){g(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){t.isSelected(i,n)?no(e):ro(e)})})}function yo(t){var e=[];return t.eachSeries(function(t){g(t.getAllData(),function(i){var n=(i.data,i.type),r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),e.push(o)}})}),e}function vo(t,e,i){xo(t,!0),Xr(t,Kr),mo(t,e,i)}function mo(t,e,i){var n=rx(t);null!=e?(n.focus=e,n.blurScope=i):n.focus&&(n.focus=null)}function _o(t,e,i,n){i=i||"itemStyle";for(var r=0;r<Sx.length;r++){var o=Sx[r],a=e.getModel([o,i]);t.ensureState(o).style=n?n(a):a[Tx[i]]()}}function xo(t,e){var i=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!i||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!i)}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 To(t){var e=t.type;return e===yx||e===vx}function Mo(t){var e=lx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var i=t.states.select||{};e.selectFill=i.style&&i.style.fill||null,e.selectStroke=i.style&&i.style.stroke||null}function Co(t,e){if(e){var i,n,r,o,a,s,l=t.data,u=t.len(),h=Mx.M,c=Mx.C,p=Mx.L,f=Mx.R,d=Mx.A,g=Mx.Q;for(r=0,o=0;u>r;){switch(i=l[r++],o=r,n=0,i){case h:case p:n=1;break;case c:n=3;break;case g:n=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=Ax(-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;n>a;a++){var b=Cx[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 Ao(t,e){return(t[0]*e[0]+t[1]*e[1])/(Io(t)*Io(e))}function ko(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ao(t,e))}function Do(t,e,i,n,r,o,a,s,l,u,h){var c=l*(Ox/180),p=Px(c)*(t-i)/2+Dx(c)*(e-n)/2,f=-1*Dx(c)*(t-i)/2+Px(c)*(e-n)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=kx(d),s*=kx(d));var g=(r===o?-1:1)*kx((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+i)/2+Px(c)*y-Dx(c)*v,_=(e+n)/2+Dx(c)*y+Px(c)*v,x=ko([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=ko(b,w);if(Ao(b,w)<=-1&&(S=Ox),Ao(b,w)>=1&&(S=0),0>S){var T=Math.round(S/Ox*1e6)/1e6;S=2*Ox+T%2*Ox}h.addData(u,m,_,a,s,x,S,c,o)}function Po(t){var e=new O_;if(!t)return e;var i,n=0,r=0,o=n,a=r,s=O_.CMD,l=t.match(Lx);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,f=h.match(Ex)||[],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,T=n,M=r,C=void 0,I=void 0;switch(c){case"l":n+=f[y++],r+=f[y++],p=s.L,e.addData(p,n,r);break;case"L":n=f[y++],r=f[y++],p=s.L,e.addData(p,n,r);break;case"m":n+=f[y++],r+=f[y++],p=s.M,e.addData(p,n,r),o=n,a=r,c="l";break;case"M":n=f[y++],r=f[y++],p=s.M,e.addData(p,n,r),o=n,a=r,c="L";break;case"h":n+=f[y++],p=s.L,e.addData(p,n,r);break;case"H":n=f[y++],p=s.L,e.addData(p,n,r);break;case"v":r+=f[y++],p=s.L,e.addData(p,n,r);break;case"V":r=f[y++],p=s.L,e.addData(p,n,r);break;case"C":p=s.C,e.addData(p,f[y++],f[y++],f[y++],f[y++],f[y++],f[y++]),n=f[y-2],r=f[y-1];break;case"c":p=s.C,e.addData(p,f[y++]+n,f[y++]+r,f[y++]+n,f[y++]+r,f[y++]+n,f[y++]+r),n+=f[y-2],r+=f[y-1];break;case"S":v=n,m=r,C=e.len(),I=e.data,i===s.C&&(v+=n-I[C-4],m+=r-I[C-3]),p=s.C,T=f[y++],M=f[y++],n=f[y++],r=f[y++],e.addData(p,v,m,T,M,n,r);break;case"s":v=n,m=r,C=e.len(),I=e.data,i===s.C&&(v+=n-I[C-4],m+=r-I[C-3]),p=s.C,T=n+f[y++],M=r+f[y++],n+=f[y++],r+=f[y++],e.addData(p,v,m,T,M,n,r);break;case"Q":T=f[y++],M=f[y++],n=f[y++],r=f[y++],p=s.Q,e.addData(p,T,M,n,r);break;case"q":T=f[y++]+n,M=f[y++]+r,n+=f[y++],r+=f[y++],p=s.Q,e.addData(p,T,M,n,r);break;case"T":v=n,m=r,C=e.len(),I=e.data,i===s.Q&&(v+=n-I[C-4],m+=r-I[C-3]),n=f[y++],r=f[y++],p=s.Q,e.addData(p,v,m,n,r);break;case"t":v=n,m=r,C=e.len(),I=e.data,i===s.Q&&(v+=n-I[C-4],m+=r-I[C-3]),n+=f[y++],r+=f[y++],p=s.Q,e.addData(p,v,m,n,r);break;case"A":_=f[y++],x=f[y++],b=f[y++],w=f[y++],S=f[y++],T=n,M=r,n=f[y++],r=f[y++],p=s.A,Do(T,M,n,r,w,S,_,x,b,p,e);break;case"a":_=f[y++],x=f[y++],b=f[y++],w=f[y++],S=f[y++],T=n,M=r,n+=f[y++],r+=f[y++],p=s.A,Do(T,M,n,r,w,S,_,x,b,p,e)}}("z"===c||"Z"===c)&&(p=s.Z,e.addData(p),n=o,r=a),i=p}return e.toStatic(),e}function Oo(t){return null!=t.setData}function Lo(t,e){var i=Po(t),n=u({},e);return n.buildPath=function(t){if(Oo(t)){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;i.rebuildPath(e,1)}},n.applyTransform=function(t){Co(i,t),this.dirtyShape()},n}function Eo(t,e){return new Rx(Lo(t,e))}function Ro(t,i){var n=Lo(t,i);return function(t){function i(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return e(i,t),i}(Rx)}function No(t,e){for(var i=[],n=t.length,r=0;n>r;r++){var o=t[r];i.push(o.getUpdatedPathProxy(!0))}var a=new X_(e);return a.createPathProxy(),a.buildPath=function(t){if(Oo(t)){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function zo(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,h=a-r,c=s-o,p=c*l-h*u;return Kx>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function Bo(t,e,i,n,r,o,a){var s=t-i,l=e-n,u=(a?o:-o)/jx(s*s+l*l),h=u*l,c=-u*s,p=t+h,f=e+c,d=i+h,g=n+c,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)*jx(qx(0,b*b*x-w*w)),T=(w*_-m*S)/x,M=(-w*m-_*S)/x,C=(w*_+m*S)/x,I=(-w*m+_*S)/x,A=T-y,k=M-v,D=C-y,P=I-v;return A*A+k*k>D*D+P*P&&(T=C,M=I),{cx:T,cy:M,x01:-h,y01:-c,x11:T*(r/b-1),y11:M*(r/b-1)}}function Fo(t,e){var i=qx(e.r,0),n=qx(e.r0||0,0),r=i>0,o=n>0;if(r||o){if(r||(i=n,n=0),n>i){var a=i;i=n,n=a}var s,l=!!e.clockwise,u=e.startAngle,h=e.endAngle;if(u===h)s=0;else{var c=[u,h];ar(c,!l),s=Ux(c[0]-c[1])}var p=e.cx,f=e.cy,d=e.cornerRadius||0,g=e.innerCornerRadius||0;if(i>Kx)if(s>Vx-Kx)t.moveTo(p+i*Xx(u),f+i*Yx(u)),t.arc(p,f,i,u,h,!l),n>Kx&&(t.moveTo(p+n*Xx(h),f+n*Yx(h)),t.arc(p,f,n,h,u,l));else{var y=Ux(i-n)/2,v=Zx(y,d),m=Zx(y,g),_=m,x=v,b=i*Xx(u),w=i*Yx(u),S=n*Xx(h),T=n*Yx(h),M=void 0,C=void 0,I=void 0,A=void 0;if((v>Kx||m>Kx)&&(M=i*Xx(h),C=i*Yx(h),I=n*Xx(u),A=n*Yx(u),Hx>s)){var k=zo(b,w,I,A,M,C,S,T);if(k){var D=b-k[0],P=w-k[1],O=M-k[0],L=C-k[1],E=1/Yx(Wx((D*O+P*L)/(jx(D*D+P*P)*jx(O*O+L*L)))/2),R=jx(k[0]*k[0]+k[1]*k[1]);_=Zx(m,(n-R)/(E-1)),x=Zx(v,(i-R)/(E+1))}}if(s>Kx)if(x>Kx){var N=Bo(I,A,b,w,i,x,l),z=Bo(M,C,S,T,i,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,Gx(N.y01,N.x01),Gx(z.y01,z.x01),!l):(t.arc(p+N.cx,f+N.cy,x,Gx(N.y01,N.x01),Gx(N.y11,N.x11),!l),t.arc(p,f,i,Gx(N.cy+N.y11,N.cx+N.x11),Gx(z.cy+z.y11,z.cx+z.x11),!l),t.arc(p+z.cx,f+z.cy,x,Gx(z.y11,z.x11),Gx(z.y01,z.x01),!l))}else t.moveTo(p+b,f+w),t.arc(p,f,i,u,h,!l);else t.moveTo(p+b,f+w);if(n>Kx&&s>Kx)if(_>Kx){var N=Bo(S,T,M,C,n,-_,l),z=Bo(b,w,I,A,n,-_,l);t.lineTo(p+N.cx+N.x01,f+N.cy+N.y01),m>_?t.arc(p+N.cx,f+N.cy,_,Gx(N.y01,N.x01),Gx(z.y01,z.x01),!l):(t.arc(p+N.cx,f+N.cy,_,Gx(N.y01,N.x01),Gx(N.y11,N.x11),!l),t.arc(p,f,n,Gx(N.cy+N.y11,N.cx+N.x11),Gx(z.cy+z.y11,z.cx+z.x11),l),t.arc(p+z.cx,f+z.cy,_,Gx(z.y11,z.x11),Gx(z.y01,z.x01),!l))}else t.lineTo(p+S,f+T),t.arc(p,f,n,h,u,l);else t.lineTo(p+S,f+T)}else t.moveTo(p,f);t.closePath()}}function Ho(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function Vo(t,e){for(var i=t.length,n=[],r=0,o=1;i>o;o++)r+=ht(t[o-1],t[o]);var a=r/2;a=i>a?i:a;for(var o=0;a>o;o++){var s=o/(a-1)*(e?i:i-1),l=Math.floor(s),u=s-l,h=void 0,c=t[l%i],p=void 0,f=void 0;e?(h=t[(l-1+i)%i],p=t[(l+1)%i],f=t[(l+2)%i]):(h=t[0===l?l:l-1],p=t[l>i-2?i-1:l+1],f=t[l>i-3?i-1:l+2]);var d=u*u,g=u*d;n.push([Ho(h[0],c[0],p[0],f[0],u,d,g),Ho(h[1],c[1],p[1],f[1],u,d,g)])}return n}function Yo(t,e,i,n){var r,o,a,s,l=[],u=[],h=[],c=[];if(n){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,n[0]),yt(s,s,n[1])}for(var p=0,f=t.length;f>p;p++){var d=t[p];if(i)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]}it(u,o,r),lt(u,u,e);var g=ht(d,r),y=ht(d,o),v=g+y;0!==v&&(g/=v,y/=v),lt(h,u,-g),lt(c,u,y);var m=tt([],d,h),_=tt([],d,c);n&&(yt(m,m,a),gt(m,m,s),yt(_,_,a),gt(_,_,s)),l.push(m),l.push(_)}return i&&l.push(l.shift()),l}function Xo(t,e,i){var n=e.smooth,r=e.points;if(r&&r.length>=2){if(n&&"spline"!==n){var o=Yo(r,n,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(i?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===n&&(r=Vo(r,i)),t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}function Wo(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?Vn:Hn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Vn:Hn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?qn:jn)(t.x1,t.cpx1,t.x2,e),(i?qn:jn)(t.y1,t.cpy1,t.y2,e)]}function Go(t,e,i,n,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,h=void 0,c=void 0;n?(u=z(n.duration,200),h=z(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),"function"==typeof c&&(c=c(i,r)),"function"==typeof u&&(u=u(i));return{duration:u||0,delay:c,easing:h}}return null}function Uo(t,e,i,n,r,o,a){var s,l=!1;"function"==typeof r?(a=o,o=r,r=null):A(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 h=Go(t,n,r,u?s||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c=h.duration,p=h.delay,f=h.easing,d={duration:c,delay:p||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(i,d):e.animateTo(i,d)}else e.stopAnimation(),!l&&e.attr(i),a&&a(1),o&&o()}function jo(t,e,i,n,r,o){Uo("update",t,e,i,n,r,o)}function qo(t,e,i,n,r,o){Uo("init",t,e,i,n,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 Ko(t,e,i,n,r,o){Zo(t)||Uo("remove",t,e,i,n,r,o)}function Qo(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),Ko(t,{style:{opacity:0}},e,i,n)}function Jo(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Qo(t,e,i,n)}):Qo(t,e,i,n)}function $o(t){Tb(t).oldStyle=t.style}function ta(t){return X_.extend(t)}function ea(t,e){return Ab(t,e)}function ia(t,e){Ib[t]=e}function na(t){return Ib.hasOwnProperty(t)?Ib[t]:void 0}function ra(t,e,i,n){var r=Eo(t,e);return i&&("center"===n&&(i=aa(i,r.getBoundingRect())),sa(r,i)),r}function oa(t,e,i){var n=new q_({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(aa(e,r))}}});return n}function aa(t,e){var i,n=e.width/e.height,r=t.height*n;return r<=t.width?i=t.height:(r=t.width,i=r/n),{x:t.x+t.width/2-r/2,y:t.y+t.height/2-i/2,width:r,height:i}}function sa(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function la(t){return Sr(t.shape,t.shape,t.style),t}function ua(t){return Tr(t.shape,t.shape,t.style),t}function ha(t,e){for(var i=Fe([]);t&&t!==e;)Ve(i,t.getLocalTransform(),i),t=t.parent;return i}function ca(t,e,i){return e&&!d(e)&&(e=qv.getLocalTransform(e)),i&&(e=Ge([],e)),dt([],t,e)}function pa(t,e,i){var n=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?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return o=ca(o,e,i),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,i){function n(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=n(t);t.attr(n(e)),jo(t,o,i,rx(t).dataIndex)}}})}}function ya(t,e){return y(t,function(t){var i=t[0];i=Mb(i,e.x),i=Cb(i,e.x+e.width);var n=t[1];return n=Mb(n,e.y),n=Cb(n,e.y+e.height),[i,n]})}function va(t,e){var i=Mb(t.x,e.x),n=Cb(t.x+t.width,e.x+e.width),r=Mb(t.y,e.y),o=Cb(t.y+t.height,e.y+e.height);return n>=i&&o>=r?{x:i,y:r,width:n-i,height:o-r}:void 0}function ma(t,e,i){var n=u({rectHover:!0},e),r=n.style={strokeNoScale:!0};return i=i||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),h(r,i),new q_(n)):ra(t.replace("path://",""),n,i,"center"):void 0}function _a(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(xa(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function xa(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,h=a-r,c=s-o,p=ba(h,c,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,h,c)/p;return!(0>y||y>1)}function ba(t,e,i,n){return t*n-i*e}function wa(t){return 1e-6>=t&&t>=-1e-6}function Sa(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,r=M(e)?{formatter:e}:e,o=i.mainType,a=i.componentIndex,s={componentType:o,name:n,$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:n,option:h({content:n,formatterParams:s},r)}}function Ta(t,e){for(var i=0;i<px.length;i++){var n=px[i],r=e[n],o=t.ensureState(n);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 Ma(t,e,i){var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(n=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==n&&(n=T(t.defaultText)?t.defaultText(o,t,i):t.defaultText);for(var l={normal:n},u=0;u<px.length;u++){var h=px[u],c=e[h];l[h]=z(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,n)}return l}function Ca(t,e,i,n){i=i||Ob;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=Ma(i,e),h=e.normal,c=!!h.getShallow("show"),p=Aa(h,n&&n.normal,i,!1,!r);p.text=u.normal,r||t.setTextConfig(ka(h,i,!1));for(var a=0;a<px.length;a++){var f=px[a],s=e[f];if(s){var d=l.ensureState(f),g=!!z(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Aa(s,n&&n[f],i,!0,!r),d.style.text=u[f],!r){t.ensureState(f).textConfig=ka(s,i,!0)}}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(p.x=l.style.x),null!=l.style.y&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),i.enableTextSetter&&(Nb(l).setLabelText=function(t){var n=Ma(i,e,t);Ta(l,n)})}else l&&(l.ignore=!0);t.dirty()}function Ia(t,e){e=e||"label";for(var i={normal:t.getModel(e)},n=0;n<px.length;n++){var r=px[n];i[r]=t.getModel([r,e])}return i}function Aa(t,e,i,n,r){var o={};return Da(o,t,i,n,r),e&&u(o,e),o}function ka(t,e,i){e=e||{};var n,r={},o=t.getShallow("rotate"),a=z(t.getShallow("distance"),i?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(i?null:"inside"),"outside"===n&&(n=e.defaultOutsidePosition||"top"),null!=n&&(r.position=n),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 Da(t,e,i,n,r){i=i||Ob;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Pa(e);if(l){o={};for(var u in l)if(l.hasOwnProperty(u)){var h=e.getModel(["rich",u]);Oa(o[u]={},h,s,i,n,r,!1,!0)}}o&&(t.rich=o);var c=e.get("overflow");c&&(t.overflow=c);var p=e.get("minMargin");null!=p&&(t.margin=p),Oa(t,e,s,i,n,r,!0,!1)}function Pa(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||Ob).rich;if(i){e=e||{};for(var n=x(i),r=0;r<n.length;r++){e[n[r]]=1}}t=t.parentModel}return e}function Oa(t,e,i,n,r,o,a,s){i=!r&&i||Ob;var l=n&&n.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=z(e.getShallow("opacity"),i.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===h||"auto"===h)&&(h=l||null),o||(u=u||i.color,h=h||i.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var p=z(e.getShallow("textBorderWidth"),i.textBorderWidth);null!=p&&(t.lineWidth=p);var f=z(e.getShallow("textBorderType"),i.textBorderType);null!=f&&(t.lineDash=f);var d=z(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),r||null!=c||s||(c=n&&n.defaultOpacity),null!=c&&(t.opacity=c),r||o||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<Lb.length;g++){var y=Lb[g],v=z(e.getShallow(y),i[y]);null!=v&&(t[y]=v)}for(var g=0;g<Eb.length;g++){var y=Eb[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||!n.disableBox){for(var g=0;g<Rb.length;g++){var y=Rb[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 i=e&&e.getModel("textStyle");return Y([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function Ea(t,e,i,n,r){function o(n){var o=pn(i,a.precision,l,u,n);a.interpolatedValue=1===n?null:o;var h=Ma({labelDataIndex:e,labelFetcher:r,defaultText:s?s(o):o+""},a.statesModels,o);Ta(t,h)}var a=Nb(t);if(a.valueAnimation){var s=a.defaultInterpolatedText,l=z(a.interpolatedValue,a.prevValue),u=a.value;(null==a.prevValue?qo:jo)(t,{},n,e,null,o)}}function Ra(t){return[t||"",jb++].join("_")}function Na(t,e){return s(s({},t,!0),e,!0)}function za(t,e){t=t.toUpperCase(),tw[t]=new Ub(e),$b[t]=e}function Ba(t){if(M(t)){var e=$b[t.toUpperCase()]||{};return t===Kb||t===Qb?a(e):s(a(e),a($b[Jb]),!1)}return s(a(t),a($b[Jb]),!1)}function Fa(t){return tw[t]}function Ha(){return tw[Jb]}function Va(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ya(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 Xa(t){return t===Ya(t)}function Wa(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ga(t,e,i,n){var r=Ii(t),o=r[Za(i)](),a=r[Ka(i)]()+1,s=Math.floor((a-1)/4)+1,l=r[Qa(i)](),u=r["get"+(i?"UTC":"")+"Day"](),h=r[Ja(i)](),c=(h-1)%12+1,p=r[$a(i)](),f=r[ts(i)](),d=r[es(i)](),g=n instanceof Ub?n:Fa(n||ew)||Ha(),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,Va(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Va(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Va(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Va(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Va(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Va(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Va(d,3)).replace(/{S}/g,d+"")}function Ua(t,e,i,n,r){var o=null;if("string"==typeof i)o=i;else if("function"==typeof i)o=i(t.value,e,{level:t.level});else{var a=u({},sw);if(t.level>0)for(var s=0;s<hw.length;++s)a[hw[s]]="{primary|"+a[hw[s]]+"}";var l=i?!1===i.inherit?i:h(i,a):a,c=ja(t.value,r);if(l[c])o=l[c];else if(l.inherit){for(var p=cw.indexOf(c),s=p-1;s>=0;--s)if(l[c]){o=l[c];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 Ga(new Date(t.value),o,r,n)}function ja(t,e){var i=Ii(t),n=i[Ka(e)]()+1,r=i[Qa(e)](),o=i[Ja(e)](),a=i[$a(e)](),s=i[ts(e)](),l=i[es(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,f=p&&1===r;return f&&1===n?"year":f?"month":p?"day":c?"hour":h?"minute":u?"second":"millisecond"}function qa(t,e,i){var n="number"==typeof t?Ii(t):t;switch(e=e||ja(t,i)){case"year":return n[Za(i)]();case"half-year":return n[Ka(i)]()>=6?1:0;case"quarter":return Math.floor((n[Ka(i)]()+1)/4);case"month":return n[Ka(i)]();case"day":return n[Qa(i)]();case"half-day":return n[Ja(i)]()/24;case"hour":return n[Ja(i)]();case"minute":return n[$a(i)]();case"second":return n[ts(i)]();case"millisecond":return n[es(i)]()}}function Za(t){return t?"getUTCFullYear":"getFullYear"}function Ka(t){return t?"getUTCMonth":"getMonth"}function Qa(t){return t?"getUTCDate":"getDate"}function Ja(t){return t?"getUTCHours":"getHours"}function $a(t){return t?"getUTCMinutes":"getMinutes"}function ts(t){return t?"getUTCSeconds":"getSeconds"}function es(t){return t?"getUTCMilliseconds":"getMilliseconds"}function is(t){return t?"setUTCFullYear":"setFullYear"}function ns(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,i,n,r,o,a,s){return new ex({style:{text:t,font:e,align:i,verticalAlign:n,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}function hs(t){if(!Ei(t))return M(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function cs(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,i){function n(t){return t&&Y(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?Ii(t):t;if(!isNaN(+s))return Ga(s,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",i);if(a)return"-"}if("ordinal"===e)return C(t)?n(t):I(t)&&r(t)?t+"":"-";var l=Li(t);return r(l)?hs(l):C(t)?n(t):"-"}function ds(t,e,i){S(e)||(e=[e]);var n=e.length;if(!n)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;n>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(yw(gw[l],s),i?ps(u):u)}return t}function gs(t,e){var i=M(t)?{color:t,extraCssText:e}:t||{},n=i.color,r=i.type;e=i.extraCssText;var o=i.renderMode||"html";return n?"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(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ps(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(i.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function ys(t,e,i){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=Ii(e),r=i?"UTC":"",o=n["get"+r+"FullYear"](),a=n["get"+r+"Month"]()+1,s=n["get"+r+"Date"](),l=n["get"+r+"Hours"](),u=n["get"+r+"Minutes"](),h=n["get"+r+"Seconds"](),c=n["get"+r+"Milliseconds"]();return t=t.replace("MM",Va(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",Va(s,2)).replace("d",s).replace("hh",Va(l,2)).replace("h",l).replace("mm",Va(u,2)).replace("m",u).replace("ss",Va(h,2)).replace("s",h).replace("SSS",Va(c,3))}function vs(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ms(t,e){return e=e||"transparent",M(t)?t:A(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function _s(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,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);h=o+g,h>n||l.newline?(o=0,h=g,a+=s+i,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(d?-d.y+p.y:0);c=a+y,c>r||l.newline?(o+=s+i,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+i:a=c+i)})}function xs(t,e,i){i=pw(i||0);var n=e.width,r=e.height,o=vi(t.left,n),a=vi(t.top,r),s=vi(t.right,n),l=vi(t.bottom,r),u=vi(t.width,n),h=vi(t.height,r),c=i[2]+i[0],p=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/r?u=.8*n:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=n-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-i[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=n-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var d=new om(o+i[3],a+i[0],u,h);return d.margin=i,d}function bs(t){var e=t.layoutMode||t.constructor.layoutMode;return A(e)?e:e?{type:e}:null}function ws(t,e,i){function n(i,n){var a={},l=0,u={},h=0;if(vw(i,function(e){u[e]=t[e]}),vw(i,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[n])return o(e,i[1])?u[i[2]]=null:o(e,i[2])&&(u[i[1]]=null),u;if(2!==h&&l){if(l>=2)return a;for(var c=0;c<i.length;c++){var p=i[c];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,i){vw(t,function(t){e[t]=i[t]})}var s=i&&i.ignoreSize;!S(s)&&(s=[s,s]);var l=n(_w[0],0),u=n(_w[1],1);a(_w[0],t,l),a(_w[1],t,u)}function Ss(t){return Ts({},t)}function Ts(t,e){return e&&t&&vw(mw,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function Ms(t){var e=[];return g(ww.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=y(e,function(t){return fn(t).main}),"dataset"!==t&&c(e,"dataset")<=0&&e.unshift("dataset"),e}function Cs(t){Bw(t).datasetMap=G()}function Is(t,e,i){function n(t,e,i){for(var n=0;i>n;n++)t.push(e+n)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=As(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,p=Bw(c).datasetMap,f=a.uid+"_"+i.seriesLayoutBy;t=t.slice(),g(t,function(e,i){var n=A(e)?e:t[i]={name:e};"ordinal"===n.type&&null==s&&(s=i,l=r(n)),o[n.name]=[]});var d=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});return g(t,function(t,e){var i=t.name,a=r(t);if(null==s){var l=d.valueWayDim;n(o[i],l,a),n(h,l,a),d.valueWayDim+=a}else if(s===e)n(o[i],0,a),n(u,0,a);else{var l=d.categoryWayDim;n(o[i],l,a),n(h,l,a),d.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function As(t){return t.get("data",!0)?void 0:ln(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Am).models[0]}function ks(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?ln(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Am).models:[]}function Ds(t,e){return Ps(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ps(t,e,i,n,r,o){function a(t){var e=M(t);return null!=t&&isFinite(t)&&""!==t?e?zw.Might:zw.Not:e&&"-"!==t?zw.Must:void 0}var s;if(D(t))return zw.Not;var l,u;if(n){var h=n[o];A(h)?(l=h.name,u=h.type):M(h)&&(l=h)}if(null!=u)return"ordinal"===u?zw.Must:zw.Not;if(e===Dw){var c=t;if(i===Nw){for(var p=c[o],f=0;f<(p||[]).length&&5>f;f++)if(null!=(s=a(p[r+f])))return s}else for(var f=0;f<c.length&&5>f;f++){var d=c[r+f];if(d&&null!=(s=a(d[o])))return s}}else if(e===Pw){var g=t;if(!l)return zw.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===Ow){var v=t;if(!l)return zw.Not;var p=v[l];if(!p||D(p))return zw.Not;for(var f=0;f<p.length&&5>f;f++)if(null!=(s=a(p[f])))return s}else if(e===kw)for(var m=t,f=0;f<m.length&&5>f;f++){var y=m[f],_=Vi(y);if(!S(_))return zw.Not;if(null!=(s=a(_[o])))return s}return zw.Not}function Os(t,e,i){var n=Fw.get(e);if(!n)return i;var r=n(t);return r?i.concat(r):i}function Ls(t,e){for(var i=t.length,n=0;i>n;n++)if(t[n].length>e)return t[n];return t[i-1]}function Es(t,e,i,n,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 h=null!=a&&n?Ls(n,a):i;if((h=h||i)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}function Rs(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function Ns(t,e){if(e){var i=e.seriesIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}function zs(t,e){var i=t.color&&!t.colorLayer;g(e,function(e,n){"colorLayer"===n&&i||ww.hasClass(n)||("object"==typeof e?t[n]=t[n]?s(t[n],e,!1):a(e):null==t[n]&&(t[n]=e))})}function Bs(t,e,i){if(S(e)){var n=G();return g(e,function(t){if(null!=t){null!=Ji(t,null)&&n.set(t,!0)}}),m(i,function(e){return e&&n.get(e[t])})}var r=Ji(e,null);return m(i,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 Hs(t){var e=G();return t&&g(Fi(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Vs(t,e,i){function n(t){g(e,function(e){e(t,i)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||c)&&(t.options=t.media=null),o=t),c&&S(h)&&g(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),n(o),g(u,function(t){return n(t)}),g(a,function(t){return n(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function Ys(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return g(t,function(t,e){var i=e.match(tS);if(i&&i[1]&&i[2]){var o=i[1],a=i[2].toLowerCase();Xs(n[a],t,o)||(r=!1)}}),r}function Xs(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function Ws(t,e){return t.join(",")===e.join(",")}function Gs(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=rS.length;n>i;i++){var r=rS[i],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 Us(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,h(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function js(t){Us(t,"itemStyle"),Us(t,"lineStyle"),Us(t,"areaStyle"),Us(t,"label"),Us(t,"labelLine"),Us(t,"upperLabel"),Us(t,"edgeLabel")}function qs(t,e){var i=nS(t)&&t[e],n=nS(i)&&i.textStyle;if(n)for(var r=0,o=Cm.length;o>r;r++){var a=Cm[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}function Zs(t){t&&(js(t),qs(t,"label"),t.emphasis&&qs(t.emphasis,"label"))}function Ks(t){if(nS(t)){Gs(t),js(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&&(Gs(e),Zs(e));var i=t.markLine;i&&(Gs(i),Zs(i));var n=t.markArea;n&&Zs(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!D(o))for(var a=0;a<o.length;a++)Zs(o[a]);g(t.categories,function(t){js(t)})}if(r&&!D(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((i=t.markLine)&&i.data)for(var l=i.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?(Us(t.breadcrumb,"itemStyle"),g(t.levels,function(t){js(t)})):"tree"===t.type&&js(t.leaves)}}function Qs(t){return S(t)?t:t?[t]:[]}function Js(t){return(S(t)?t[0]:t)||{}}function $s(t,e){iS(Qs(t.series),function(t){nS(t)&&Ks(t)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),iS(i,function(e){iS(Qs(t[e]),function(t){t&&(qs(t,"axisLabel"),qs(t.axisPointer,"label"))})}),iS(Qs(t.parallel),function(t){var e=t&&t.parallelAxisDefault;qs(e,"axisLabel"),qs(e&&e.axisPointer,"label")}),iS(Qs(t.calendar),function(t){Us(t,"itemStyle"),qs(t,"dayLabel"),qs(t,"monthLabel"),qs(t,"yearLabel")}),iS(Qs(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)}),iS(Qs(t.geo),function(t){nS(t)&&(Zs(t),iS(Qs(t.regions),function(t){Zs(t)}))}),iS(Qs(t.timeline),function(t){Zs(t),Us(t,"label"),Us(t,"itemStyle"),Us(t,"controlStyle",!0);var e=t.data;S(e)&&g(e,function(t){A(t)&&(Us(t,"label"),Us(t,"itemStyle"))})}),iS(Qs(t.toolbox),function(t){Us(t,"iconStyle"),iS(t.feature,function(t){Us(t,"iconStyle")})}),qs(Js(t.axisPointer),"label"),qs(Js(t.tooltip).axisPointer,"label")}function tl(t,e){for(var i=e.split(","),n=t,r=0;r<i.length&&null!=(n=n&&n[i[r]]);r++);return n}function el(t,e,i,n){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];(n||null==a[o[s]])&&(a[o[s]]=i)}function il(t){t&&g(oS,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function nl(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<sS.length;i++){var n=sS[i][1],r=sS[i][0];null!=e[n]&&(e[r]=e[n])}}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 i=0;i<t.length;i++)e(t[i]),t[i]&&sl(t[i].children,e)}function ll(t,e){$s(t,e),t.series=Fi(t.series),g(t.series,function(t){if(A(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 i=t.data;if(i&&!D(i))for(var n=0;n<i.length;n++)rl(i[n]);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){nl(t),nl(t.backgroundStyle),nl(t.emphasis);var i=t.data;if(i&&!D(i))for(var n=0;n<i.length;n++)"object"==typeof i[n]&&(nl(i[n]),nl(i[n]&&i[n].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&&h(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),il(t)}}),t.dataRange&&(t.visualMap=t.dataRange),g(aS,function(e){var i=t[e];i&&(S(i)||(i=[i]),g(i,function(t){il(t)}))})}function ul(t){var e=G();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),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;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(hl)}function hl(t){g(t,function(e,i){var n=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(o,function(o,l,u){var h=a.get(e.stackedDimension,u);if(isNaN(h))return r;var c,p;s?p=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var f=NaN,d=i-1;d>=0;d--){var g=t[d];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,c)),p>=0){var y=g.data.getByRawIndex(g.stackResultDimension,p);if(h>=0&&y>0||0>=h&&0>y){h=Ti(h,y),f=y;break}}}return n[0]=h,n[1]=f,n})})}function cl(t){return t instanceof lS}function pl(t,e,i){i=i||gl(t);var n=e.seriesLayoutBy,r=yl(t,i,n,e.sourceHeader,e.dimensions);return new lS({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:a(e)})}function fl(t){return new lS({data:t,sourceFormat:D(t)?Lw:kw})}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=Ew;if(D(t))e=Lw;else if(S(t)){0===t.length&&(e=Dw);for(var i=0,n=t.length;n>i;i++){var r=t[i];if(null!=r){if(S(r)){e=Dw;break}if(A(r)){e=Pw;break}}}}else if(A(t))for(var o in t)if(q(t,o)&&d(t[o])){e=Ow;break}return e}function yl(t,e,i,n,r){var o,a;if(!t)return{dimensionsDefine:ml(r),startIndex:a,dimensionsDetectedCount:o};if(e===Dw){var s=t;"auto"===n||null==n?_l(function(t){null!=t&&"-"!==t&&(M(t)?null==a&&(a=1):a=0)},i,s,10):a=I(n)?n:n?1:0,r||1!==a||(r=[],_l(function(t,e){r[e]=null!=t?t+"":""},i,s,1/0)),o=r?r.length:i===Nw?s.length:s[0]?s[0].length:null}else if(e===Pw)r||(r=vl(t));else if(e===Ow)r||(r=[],g(t,function(t,e){r.push(e)}));else if(e===kw){var l=Vi(t[0]);o=S(l)&&l.length||1}return{startIndex:a,dimensionsDefine:ml(r),dimensionsDetectedCount:o}}function vl(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e){var n=[];return g(e,function(t,e){n.push(e)}),n}}function ml(t){if(t){var e=G();return y(t,function(t){t=A(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var n=e.get(i.name);return n?i.name+="-"+n.count++:e.set(i.name,{count:1}),i})}}function _l(t,e,i,n){if(e===Nw)for(var r=0;r<i.length&&n>r;r++)t(i[r]?i[r][0]:null,r);else for(var o=i[0]||[],r=0;r<o.length&&n>r;r++)t(o[r],r)}function xl(t){var e=t.sourceFormat;return e===Pw||e===Ow}function bl(t,e){return cS[Tl(t,e)]}function wl(t,e){return fS[Tl(t,e)]}function Sl(t){return gS[t]}function Tl(t,e){return t===Dw?t+"_"+e:t}function Ml(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=i){var a=t.getDimensionIndex(i),s=r.getDimensionProperty(a);return Sl(o)(n,a,s)}var l=n;return o===kw&&(l=Vi(n)),l}}}function Cl(t){var e,i;return A(t)?t.type&&(i=t):e=t,{markupText:e,markupFragment:i}}function Il(t){return new mS(t)}function Al(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+Ii(t)),null==t||""===t?NaN:+t)}function kl(t,e){var i=new wS,n=t.data,r=i.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==Rw&&Bi("");var a=[],s={},l=t.dimensionsDefine;if(l)g(l,function(t,e){var i=t.name,n={index:e,name:i,displayName:t.displayName};if(a.push(n),null!=i){q(s,i)&&Bi(""),s[i]=n}});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var h=bl(r,Rw);e.__isBuiltIn&&(i.getRawDataItem=function(t){return h(n,o,a,t)},i.getRawData=ky(Dl,null,t)),i.cloneRawData=ky(Pl,null,t);var c=wl(r,Rw);i.count=ky(c,null,n,o,a);var p=Sl(r);i.retrieveValue=function(t,e){var i=h(n,o,a,t);return f(i,e)};var f=i.retrieveValueFromItem=function(t,e){if(null!=t){var i=a[e];return i?p(t,e,i.name):void 0}};return i.getDimensionInfo=ky(Ol,null,a,s),i.cloneAllDimensionInfo=ky(Ll,null,a),i}function Dl(t){zl(t.sourceFormat)||Bi("");return t.data}function Pl(t){var e=t.sourceFormat,i=t.data;if(!zl(e)){Bi("")}if(e===Dw){for(var n=[],r=0,o=i.length;o>r;r++)n.push(i[r].slice());return n}if(e===Pw){for(var n=[],r=0,o=i.length;o>r;r++)n.push(u({},i[r]));return n}}function Ol(t,e,i){return null!=i?"number"==typeof i||!isNaN(i)&&!q(e,i)?t[i]:q(e,i)?e[i]:void 0:void 0}function Ll(t){return a(t)}function El(t){t=a(t);var e=t.type;e||Bi("");var i=e.split(":");2!==i.length&&Bi("");var n=!1;"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,SS.set(e,t)}function Rl(t,e,i){var n=Fi(t),r=n.length;r||Bi("");for(var o=0,a=r;a>o;o++){e=Nl(n[o],e),o!==a-1&&(e.length=Math.max(e.length,1))}return e}function Nl(t,e){e.length||Bi(""),A(t)||Bi("");var i=t.type,n=SS.get(i);n||Bi("");var r=y(e,function(t){return kl(t,n)});return y(Fi(n.transform({upstream:r[0],upstreamList:r,config:a(t.config)})),function(t,i){A(t)||Bi(""),t.data||Bi(""),zl(gl(t.data))||Bi("");var n,r=e[0];if(r&&0===i&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),n={seriesLayoutBy:Rw,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else n={seriesLayoutBy:Rw,sourceHeader:0,dimensions:t.dimensions};return pl(t.data,n,null)})}function zl(t){return t===Dw||t===Pw}function Bl(t){return t>65535?MS:CS}function Fl(){return[1/0,-1/0]}function Hl(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Vl(t,e,i,n,r){var o=kS[i||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==n){for(var l=new o(n),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(n)}function Yl(t){t.option.transform&&X(t.option.transform)}function Xl(t){return"series"===t.mainType}function Wl(t){throw new Error(t)}function Gl(t,e){var i=t.color||"#6e7079",n=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(n+"")+"px;color:"+ps(i)+";font-weight:"+ps(r+""),valueStyle:"font-size:"+ps(a+"")+"px;color:"+ps(o)+";font-weight:"+ps(s+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function Ul(t,e){return e.type=t,e}function jl(t){return q(RS,t.type)&&RS[t.type]}function ql(t,e,i,n){var r=[],o=e.blocks||[];V(!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=Kl(e);return g(o,function(e,i){var o=jl(e).build(t,e,i>0?u.html:0,n);null!=o&&r.push(o)}),r.length?"richText"===t.renderMode?r.join(u.richText):Ql(r.join(""),i):void 0}function Zl(t,e,i,n,r,o){if(t){var a=jl(t);a.planLayout(t);var s={useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e};return a.build(s,t,0,o)}}function Kl(t){var e=t.__gapLevelBetweenSubBlocks;return{html:LS[e],richText:ES[e]}}function Ql(t,e){return'<div style="margin: '+e+"px 0 0;"+OS+';">'+t+'<div style="clear:both"></div></div>'}function Jl(t,e,i){return'<span style="'+i+";"+(e?"margin-left:2px":"")+'">'+ps(t)+"</span>"}function $l(t,e,i,n){var r=i?"10px":"20px";return'<span style="'+(e?"float:right;margin-left:"+r:"")+";"+n+'">'+y(t,function(t){return ps(t)}).join(" ")+"</span>"}function tu(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function eu(t,e,i,n,r){var o=[r],a=n?10:20;return i&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}function iu(t,e){return ms(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function nu(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}function ru(t){var e,i,n,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=S(c),f=iu(o,a);if(h>1||p&&!h){var d=ou(c,o,a,u,f);e=d.inlineValues,i=d.inlineValueTypes,n=d.blocks,r=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Ml(l,a,u[0]),i=g.type}else r=e=p?c[0]:c;var y=$i(o),v=y&&o.name||"",m=l.getName(a),_=s?v:m;return Ul("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[Ul("nameValue",{markerType:"item",markerColor:f,name:_,noName:!Y(_),value:e,valueType:i})].concat(n||[])})}function ou(t,e,i,n,r){function o(t,e){var i=a.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(s?h.push(Ul("nameValue",{markerType:"subItem",markerColor:r,name:i.displayName,value:t,valueType:i.type})):(l.push(t),u.push(i.type)))}var a=e.getData(),s=v(t,function(t,e,i){var n=a.getDimensionInfo(i);return t=t||n&&!1!==n.tooltip&&null!=n.displayName},!1),l=[],u=[],h=[];return n.length?g(n,function(t){o(Ml(a,i,t),t)}):g(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function au(t,e){return t.getName(e)||t.getId(e)}function su(t){var e=t.name;$i(t)||(t.name=lu(t)||e)}function lu(t){var e=t.getRawData(),i=e.mapDimensionsAll("seriesName"),n=[];return g(i,function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)}),n.join(" ")}function uu(t){return t.model.getRawData().count()}function hu(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),cu}function cu(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pu(t,e){g(U(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(i){t.wrapMethod(i,w(fu,e))})}function fu(t,e){var i=du(t);return i&&i.setOutputEnd((e||this).count()),e}function du(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}function gu(){var t=on();return function(e){var i=t(e),n=e.pipelineContext,r=!!i.large,o=!!i.progressiveRender,a=i.large=!(!n||!n.large),s=i.progressiveRender=!(!n||!n.progressiveRender);return!(r===a&&o===s)&&"reset"}}function yu(t,e,i){t&&("emphasis"===e?$r:to)(t,i)}function vu(t,e,i){var n=rn(t,e),r=e&&null!=e.highlightKey?wo(e.highlightKey):null;null!=n?g(Fi(n),function(e){yu(t.getItemGraphicEl(e),i,r)}):t.eachItemGraphicEl(function(t){yu(t,i,r)})}function mu(t){return VS(t.model)}function _u(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&HS(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),WS[l]}function xu(t,e,i){function n(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=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||i;l=null,o=r-(d?u:h)-f,clearTimeout(c),d?c=setTimeout(n,f):o>=0?n():c=setTimeout(n,-o),u=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){l=t},p}function bu(t,e,i,n){var r=t[e];if(r){var o=r[GS]||r,a=r[jS];if(r[US]!==i||a!==n){if(null==i||!n)return t[e]=o;r=t[e]=xu(o,i,"debounce"===n),r[GS]=o,r[jS]=n,r[US]=i}return r}}function wu(t,e){var i=t.visualStyleMapper||ZS[e];return i||(console.warn("Unkown style type '"+e+"'."),ZS.itemStyle)}function Su(t,e){var i=t.visualDrawType||KS[e];return i||(console.warn("Unkown style type '"+e+"'."),"fill")}function Tu(t,e){e=e||{},h(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 i=new gm,n=new J_({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);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});i.add(o);var a;return e.showSpinner&&(a=new pb({shape:{startAngle:-eT/2,endAngle:-eT/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*eT/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*eT/2}).delay(300).start("circularInOut"),i.add(a)),i.resize=function(){var i=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(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),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}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}function Mu(t){t.overallReset(t.ecModel,t.api,t.payload)}function Cu(t){return t.overallProgress&&Iu}function Iu(){this.agent.dirty(),this.getDownstream().dirty()}function Au(){this.agent&&this.agent.dirty()}function ku(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Du(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Fi(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?y(e,function(t,e){return Pu(e)}):nT}function Pu(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function Ou(t){return t.data.count()}function Lu(t){XS=null;try{t(rT,oT)}catch(t){}return XS}function Eu(t,e){for(var i in e.prototype)t[i]=Z}function Ru(t,e,i){switch(i){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,i)}}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 zu(t,e,i,n,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,n=r.selected,a=0;a<n.length;a++)if(n[a].seriesIndex===e){var s=t.getData(),l=rn(s,r.fromActionPayload);i.trigger(o,{type:o,seriesId:t.id,name:s.getName(S(l)?l[0]:l),selected:u({},t.option.selectedMap)})}})}function Bu(t,e,i){t.on("selectchanged",function(t){var n=i.getModel();t.isFromClick?(zu("map","selectchanged",e,n,t),zu("pie","selectchanged",e,n,t)):"select"===t.fromAction?(zu("map","selected",e,n,t),zu("pie","selected",e,n,t)):"unselect"===t.fromAction&&(zu("map","unselected",e,n,t),zu("pie","unselected",e,n,t))})}function Fu(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}function Hu(t,e){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw()}}function Vu(t,e,i,n,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,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?ra(t.slice(7),{},new om(e,i,n,r),a?"center":"cover"):new IT({shape:{symbolType:t,x:e,y:i,width:n,height:r}}),l.__isEmptyBrush=s,l.setColor=Hu,o&&l.setColor(o),l}function Yu(t){return S(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Xu(t,e){return null!=t?(S(t)||(t=[t,t]),[vi(t[0],e[0])||0,vi(z(t[1],t[0]),e[1])||0]):void 0}function Wu(t,e,i){var n=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||(n=n*i.width+i.x,r=r*i.width+i.x,o=o*i.height+i.y,a=a*i.height+i.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(n,o,r,a)}function Gu(t,e,i){var n=i.width,r=i.height,o=Math.min(n,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*n+i.x,s=s*r+i.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}function Uu(t,e,i){for(var n="radial"===e.type?Gu(t,e,i):Wu(t,e,i),r=e.colorStops,o=0;o<r.length;o++)n.addColorStop(r[o].offset,r[o].color);return n}function ju(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;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 Ku(t){return"string"==typeof t&&"none"!==t}function Qu(t){var e=t.fill;return null!=e&&"none"!==e}function Ju(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function $u(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function th(t,e,i){var n=Tn(e.image,e.__image,i);if(Cn(n)){var r=t.createPattern(n,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 eh(t,e,i,n){var r=Zu(i),o=Qu(i),a=i.strokePercent,s=1>a,l=!e.path;e.silent&&!s||!l||e.createPathProxy();var u=e.path||AT;if(!n){var h=i.fill,c=i.stroke,p=o&&!!h.colorStops,f=r&&!!c.colorStops,d=o&&!!h.image,g=r&&!!c.image,v=void 0,m=void 0,_=void 0,x=void 0,b=void 0;(p||f)&&(b=e.getBoundingRect()),p&&(v=e.__dirty?Uu(t,h,b):e.__canvasFillGradient,e.__canvasFillGradient=v),f&&(m=e.__dirty?Uu(t,c,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=m),d&&(_=e.__dirty||!e.__canvasFillPattern?th(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=_),g&&(x=e.__dirty||!e.__canvasStrokePattern?th(t,c,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=i.lineDash&&i.lineWidth>0&&qu(i.lineDash,i.lineWidth),S=i.lineDashOffset,T=!!t.setLineDash,M=e.getGlobalScale();if(u.setScale(M[0],M[1],e.segmentIgnoreThreshold),w){var C=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;C&&1!==C&&(w=y(w,function(t){return t/C}),S/=C)}var I=!0;(l||e.__dirty&ov||w&&!T&&r)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),I=!1),u.reset(),w&&!T&&(u.setLineDash(w),u.setLineDashOffset(S)),e.buildPath(u,e.shape,n),u.toStatic(),e.pathUpdated()),I&&u.rebuildPath(t,s?a:1),w&&T&&(t.setLineDash(w),t.lineDashOffset=S),n||(i.strokeFirst?(r&&$u(t,i),o&&Ju(t,i)):(o&&Ju(t,i),r&&$u(t,i))),w&&T&&t.setLineDash([])}function ih(t,e,i){var n=e.__image=Tn(i.image,e.__image,e,e.onload);if(n&&Cn(n)){var r=i.x||0,o=i.y||0,a=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),i.sWidth&&i.sHeight){var u=i.sx||0,h=i.sy||0;t.drawImage(n,u,h,i.sWidth,i.sHeight,r,o,a,s)}else if(i.sx&&i.sy){var u=i.sx,h=i.sy,c=a-u,p=s-h;t.drawImage(n,u,h,c,p,r,o,a,s)}else t.drawImage(n,r,o,a,s)}}function nh(t,e,i){var n=i.text;if(null!=n&&(n+=""),n){t.font=i.font||sm,t.textAlign=i.textAlign,t.textBaseline=i.textBaseline;var r=void 0;if(t.setLineDash){var o=i.lineDash&&i.lineWidth>0&&qu(i.lineDash,i.lineWidth),a=i.lineDashOffset;if(o){var s=i.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}}i.strokeFirst?(Zu(i)&&t.strokeText(n,i.x,i.y),Qu(i)&&t.fillText(n,i.x,i.y)):(Qu(i)&&t.fillText(n,i.x,i.y),Zu(i)&&t.strokeText(n,i.x,i.y)),r&&t.setLineDash([])}}function rh(t,e,i,n,r){var o=!1;if(!n&&(i=i||{},e===i))return!1;if(n||e.opacity!==i.opacity){o||(ch(t,r),o=!0);var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Xm.opacity:a}(n||e.blend!==i.blend)&&(o||(ch(t,r),o=!0),t.globalCompositeOperation=e.blend||Xm.blend);for(var s=0;s<kT.length;s++){var l=kT[s];(n||e[l]!==i[l])&&(o||(ch(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==i.shadowColor)&&(o||(ch(t,r),o=!0),t.shadowColor=e.shadowColor||Xm.shadowColor),o}function oh(t,e,i,n,r){var o=ph(e,r.inHover),a=n?null:i&&ph(i,r.inHover)||{};if(o===a)return!1;var s=rh(t,o,a,n,r);if((n||o.fill!==a.fill)&&(s||(ch(t,r),s=!0),Ku(o.fill)&&(t.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||(ch(t,r),s=!0),Ku(o.stroke)&&(t.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||(ch(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||(ch(t,r),s=!0),t.lineWidth=u)}for(var h=0;h<DT.length;h++){var c=DT[h],p=c[0];(n||o[p]!==a[p])&&(s||(ch(t,r),s=!0),t[p]=o[p]||c[1])}return s}function ah(t,e,i,n,r){return rh(t,ph(e,r.inHover),i&&ph(i,r.inHover),n,r)}function sh(t,e){var i=e.transform,n=t.dpr||1;i?t.setTransform(n*i[0],n*i[1],n*i[2],n*i[3],n*i[4],n*i[5]):t.setTransform(n,0,0,n,0,0)}function lh(t,e,i){for(var n=!1,r=0;r<t.length;r++){var o=t[r];n=n||o.isZeroArea(),sh(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}i.allClipped=n}function uh(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 hh(t){var e=Qu(t),i=Zu(t);return!(t.lineDash||!(+e^+i)||e&&"string"!=typeof t.fill||i&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function ch(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function ph(t,e){return e?t.__hoverStyle||t.style:t.style}function fh(t,e){dh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function dh(t,e,i,n){var r=e.transform;if(!e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1))return e.__dirty&=~rv,void(e.__isRendered=!1);var o=e.__clipPaths,a=i.prevElClipPaths,s=!1,l=!1;if((!a||ju(o,a))&&(a&&a.length&&(ch(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length&&(ch(t,i),t.save(),lh(o,t,i),s=!0),i.prevElClipPaths=o),i.allClipped)return void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=i.prevEl;u||(l=s=!0);var h=e instanceof X_&&e.autoBatch&&hh(e.style);s||uh(r,u.transform)?(ch(t,i),sh(t,e)):h||ch(t,i);var c=ph(e,i.inHover);e instanceof X_?(i.lastDrawType!==PT&&(l=!0,i.lastDrawType=PT),oh(t,e,u,l,i),h&&(i.batchFill||i.batchStroke)||t.beginPath(),eh(t,e,c,h),h&&(i.batchFill=c.fill||"",i.batchStroke=c.stroke||"")):e instanceof G_?(i.lastDrawType!==LT&&(l=!0,i.lastDrawType=LT),oh(t,e,u,l,i),nh(t,e,c)):e instanceof q_?(i.lastDrawType!==OT&&(l=!0,i.lastDrawType=OT),ah(t,e,u,l,i),ih(t,e,c)):e instanceof Sb&&(i.lastDrawType!==ET&&(l=!0,i.lastDrawType=ET),gh(t,e,i)),h&&n&&ch(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),i.prevEl=e,e.__dirty=0,e.__isRendered=!0}function gh(t,e,i){var n=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover};for(o=e.getCursor(),a=n.length;a>o;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),dh(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=r.length;h>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),dh(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function yh(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),r="svg"===n.painter.type;t.dirty&&RT.delete(t);var o=RT.get(t);if(o)return o;var a=h(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=[i],o=!0,s=0;s<zT.length;++s){var l=a[zT[s]],u=typeof l;if(null!=l&&!S(l)&&"string"!==u&&"number"!==u&&"boolean"!==u){o=!1;break}e.push(l)}var h;if(o){h=e.join(",")+(r?"-svg":"");var c=NT.get(h);c&&(r?t.svgElement=c:t.image=c)}var p,f=mh(a.dashArrayX),d=_h(a.dashArrayY),g=vh(a.symbol),y=xh(f),v=bh(d),m=!r&&Ay(),_=r&&n.painter.createSVGElement("g"),x=function(){for(var t=1,e=0,i=y.length;i>e;++e)t=zi(t,y[e]);for(var n=1,e=0,i=g.length;i>e;++e)n=zi(n,g[e].length);t*=n;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*i,m.height=x.height*i,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 h=l/2%g.length,c=0,y=0,b=0;c<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),T=c+f[u][y]*S,M=o+d[s]*S,C=f[u][y]*a.symbolSize,I=d[s]*a.symbolSize,A=b/2%g[h].length;!function(t,e,o,s,l){var u=r?1:i,h=Vu(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);r?_.appendChild(n.painter.paintOne(h)):fh(p,h)}(T,M,C,I,g[h][A])}c+=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&&NT.put(h,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/i,RT.set(t,s),t.dirty=!1,s}function vh(t){if(!t||0===t.length)return[["rect"]];if("string"==typeof t)return[[t]];for(var e=!0,i=0;i<t.length;++i)if("string"!=typeof t[i]){e=!1;break}if(e)return vh([t]);for(var n=[],i=0;i<t.length;++i)n.push("string"==typeof t[i]?[t[i]]:t[i]);return n}function mh(t){if(!t||0===t.length)return[[0,0]];if("number"==typeof t){var e=Math.ceil(t);return[[e,e]]}for(var i=!0,n=0;n<t.length;++n)if("number"!=typeof t[n]){i=!1;break}if(i)return mh([t]);for(var r=[],n=0;n<t.length;++n)if("number"==typeof t[n]){var e=Math.ceil(t[n]);r.push([e,e])}else{var e=y(t[n],function(t){return Math.ceil(t)});r.push(e.length%2==1?e.concat(e):e)}return r}function _h(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 i=y(t,function(t){return Math.ceil(t)});return t.length%2?i.concat(i):i}function xh(t){return y(t,function(t){return bh(t)})}function bh(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}function wh(t,e){t.eachRawSeries(function(i){if(!t.isSeriesFiltered(i)){var n=i.getData();n.hasItemVisual()&&n.each(function(t){var i=n.getItemVisual(t,"decal");if(i){n.ensureUniqueItemVisual(t,"style").decal=yh(i,e)}});var r=n.getVisual("decal");if(r){n.getVisual("style").decal=yh(r,e)}}})}function Sh(t){if(M(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 Th(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function Mh(t,e){for(var i=t.firstChild;i;){if(1===i.nodeType&&"stop"===i.nodeName.toLocaleLowerCase()){var n=i.getAttribute("offset"),r=void 0;r=n&&n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var o={};Eh(i,o,o);var a=o.stopColor||i.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}i=i.nextSibling}}function Ch(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),h(e.__inheritedStyle,t.__inheritedStyle))}function Ih(t){for(var e=Oh(t),i=[],n=0;n<e.length;n+=2){var r=parseFloat(e[n]),o=parseFloat(e[n+1]);i.push([r,o])}return i}function Ah(t,e,i,n,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(Lh(t,e),Eh(t,a,s),n||Rh(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=Dh(o,"fill",a.fill,i)),null!=a.stroke&&(o.style.stroke=Dh(o,"stroke",a.stroke,i)),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(Oh(a.lineDash),function(t){return parseFloat(t)})),("hidden"===a.visibility||"collapse"===a.visibility)&&(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function kh(t,e){var i=e.__selfStyle;if(i){var n=i.textBaseline,r=n;n&&"auto"!==n?"baseline"===n?r="alphabetic":"before-edge"===n||"text-before-edge"===n?r="top":"after-edge"===n||"text-after-edge"===n?r="bottom":("central"===n||"mathematical"===n)&&(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 Dh(t,e,i,n){var r=i&&i.match(WT);if(r){var o=Y(r[1]);return void n.push([t,e,o])}return"none"===i&&(i=null),i}function Ph(t,e){for(var i=0;i<e.length;i++){var n=e[i];n[0].style[n[1]]=t[n[2]]}}function Oh(t){return t.match(GT)||[]}function Lh(t,e){var i=t.getAttribute("transform");if(i){i=i.replace(/,/g," ");var n=[],r=null;i.replace(UT,function(t,e,i){return n.push(e,i),""});for(var o=n.length-1;o>0;o-=2){var a=n[o],s=n[o-1],l=Oh(a);switch(r=r||Be(),s){case"translate":Ye(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":We(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Xe(r,r,-parseFloat(l[0])*jT);break;case"skewX":Ve(r,[1,0,Math.tan(parseFloat(l[0])*jT),1,0,0],r);break;case"skewY":Ve(r,[1,Math.tan(parseFloat(l[0])*jT),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 Eh(t,e,i){var n=t.getAttribute("style");if(n){qT.lastIndex=0;for(var r;null!=(r=qT.exec(n));){var o=r[1],a=q(BT,o)?BT[o]:null;a&&(e[a]=r[2]);var s=q(HT,o)?HT[o]:null;s&&(i[s]=r[2])}}}function Rh(t,e,i){for(var n=0;n<FT.length;n++){var r=FT[n],o=t.getAttribute(r);null!=o&&(e[BT[r]]=o)}for(var n=0;n<VT.length;n++){var r=VT[n],o=t.getAttribute(r);null!=o&&(i[HT[r]]=o)}}function Nh(t,e){var i=e.width/t.width,n=e.height/t.height,r=Math.min(i,n);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 zh(t,e){return(new YT).parse(t,e)}function Bh(t,e){return Math.abs(t-e)<ZT}function Fh(t,e,i){var n=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];n+=pr(r[0],r[1],a[0],a[1],e,i),r=a}var s=t[0];return Bh(r[0],s[0])&&Bh(r[1],s[1])||(n+=pr(r[0],r[1],s[0],s[1],e,i)),0!==n}function Hh(t){t.silent=!1,t.isGroup&&t.traverse(function(t){t.silent=!1})}function Vh(t){var e=[],i=G();return g(t,function(t){if(null==t.namedFrom){var n=new $T(t.name,t.el);e.push(n),i.set(t.name,n)}}),{regions:e,regionsMap:i}}function Yh(t){if(!t.UTF8Encoding)return t;var e=t,i=e.UTF8Scale;null==i&&(i=1024);for(var n=e.features,r=0;r<n.length;r++){var o=n[r],a=o.geometry;if("Polygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)s[l]=Xh(s[l],a.encodeOffsets[l],i);else if("MultiPolygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)for(var u=s[l],h=0;h<u.length;h++)u[h]=Xh(u[h],a.encodeOffsets[l][h],i)}return e.UTF8Encoding=!1,e}function Xh(t,e,i){for(var n=[],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,n.push([s/i,l/i])}return n}function Wh(t,e){return t=Yh(t),y(m(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,n=t.geometry,r=[];if("Polygon"===n.type){var o=n.coordinates;r.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if("MultiPolygon"===n.type){var o=n.coordinates;g(o,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})})}var a=new JT(i[e||"name"],r,i.cp);return a.properties=i,a})}function Gh(t,e){if("china"===t){for(var i=0;i<e.length;i++)if(e[i].name===nM)return;e.push(new JT(nM,y(rM,function(t){return{type:"polygon",exterior:t}}),iM))}}function Uh(t,e){if("china"===t){var i=sM[e.name];if(i){var n=e.getCenter();n[0]+=i[0]/10.5,n[1]+=-i[1]/14,e.setCenter(n)}}}function jh(t,e){if("world"===t){var i=lM[e.name];if(i){var n=[i[0],i[1]];e.setCenter(n)}}}function qh(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:uM[0]})}function Zh(t){for(var e,i=0;i<t.length;i++){var n=t[i].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function Kh(t){return M(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}function Qh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.isDisposed()?void 0:$h(this,t,e)}}function Jh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return $h(this,t,e)}}function $h(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),Hy.prototype[e].apply(t,i)}function tc(t,e,i){var n=rc(t);if(n)return n;var r=new UM(t,e,i);return r.id="ec_"+rC++,iC[r.id]=r,un(t,aC,r.id),XM(r),fM.trigger("afterinit",r),r}function ec(t){if(S(t)){var e=t;t=null,g(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+oC++,g(e,function(e){e.group=t})}return nC[t]=!0,t}function ic(t){nC[t]=!1}function nc(t){"string"==typeof t?t=iC[t]:t instanceof UM||(t=rc(t)),t instanceof UM&&!t.isDisposed()&&t.dispose()}function rc(t){return iC[hn(t,aC)]}function oc(t){return iC[t]}function ac(t,e){tC[t]=e}function sc(t){c(JM,t)<0&&JM.push(t)}function lc(t,e){vc(QM,t,e,yM)}function uc(t){cc("afterinit",t)}function hc(t){cc("afterupdate",t)}function cc(t,e){fM.on(t,e)}function pc(t,e,i){"function"==typeof e&&(i=e,e="");var n=A(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,KM[e]||(V(SM.test(n)&&SM.test(e)),ZM[n]||(ZM[n]={action:i,actionInfo:t}),KM[e]=n)}function fc(t,e){$w.register(t,e)}function dc(t){var e=$w.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function gc(t,e){vc($M,t,e,vM,"layout")}function yc(t,e){vc($M,t,e,mM,"visual")}function vc(t,e,i,n,r){if((T(e)||A(e))&&(i=e,e=n),!(c(lC,i)>=0)){lC.push(i);var o=iT.wrapStageHandler(i,r);o.__prio=e,o.__raw=i,t.push(o)}}function mc(t,e){eC[t]=e}function _c(t){n("createCanvas",t)}function xc(t,e,i){pM.registerMap(t,e,i)}function bc(t){return pM.getMapForUser(t)}function wc(t){return null==t?0:t.length||1}function Sc(t){return t}function Tc(t,e){var i={},n=i.encode={},r=G(),o=[],a=[],s={};g(t.dimensions,function(e){var i=t.getDimensionInfo(e),l=i.coordDim;if(l){var u=i.coordDimIndex;Mc(n,l)[u]=e,i.isExtraCoord||(r.set(l,1),Ic(i.type)&&(o[0]=e),Mc(s,l)[u]=t.getDimensionIndex(i.name)),i.defaultTooltip&&a.push(e)}Aw.each(function(t,e){var r=Mc(n,e),o=i.otherDims[e];null!=o&&!1!==o&&(r[o]=i.name)})});var l=[],u={};r.each(function(t,e){var i=n[e];u[e]=i[0],l=l.concat(i)}),i.dataDimsOnCoord=l,i.dataDimIndicesOnCoord=y(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),i.encodeFirstDimNotExtra=u;var h=n.label;h&&h.length&&(o=h.slice());var c=n.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=a,i.userOutput=new _C(s,e),i}function Mc(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Cc(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Ic(t){return!("ordinal"===t||"time"===t)}function Ac(t){return t instanceof SC}function kc(t){for(var e=G(),i=0;i<(t||[]).length;i++){var n=t[i],r=A(n)?n.name:n;null!=r&&null==e.get(r)&&e.set(r,i)}return e}function Dc(t){var e=bC(t);return e.dimNameMap||(e.dimNameMap=kc(t.dimensionsDefine))}function Pc(t){return t>30}function Oc(t,e){return Lc(t,e).dimensions}function Lc(t,e){function i(t){var e=m[t];if(0>e){var i=a[t],n=A(i)?i:{name:i},r=new xC,o=n.name;null!=o&&null!=d.get(o)&&(r.name=r.displayName=o),null!=n.type&&(r.type=n.type),null!=n.displayName&&(r.displayName=n.displayName);var s=l.length;return m[t]=s,r.storeDimIndex=t,l.push(r),r}return l[e]}function n(t,e,i){null!=Aw.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}cl(t)||(t=fl(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=G(),l=[],c=Rc(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&Pc(c),f=a===t.dimensionsDefine,d=f?Dc(t):kc(a),y=e.encodeDefine;!y&&e.encodeDefaulter&&(y=e.encodeDefaulter(t,c));for(var v=G(y),m=new IS(c),_=0;_<m.length;_++)m[_]=-1;if(!p)for(var _=0;c>_;_++)i(_);v.each(function(t,e){var r=Fi(t).slice();if(1===r.length&&!M(r[0])&&r[0]<0)return void v.set(e,!1);var o=v.set(e,[]);g(r,function(t,r){var a=M(t)?d.get(t):t;null!=a&&c>a&&(o[r]=a,n(i(a),e,r))})});var x=0;g(o,function(t){var e,r,o,a;if(M(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=Fi(l),!l.length)for(var p=0;p<(r&&r.length||1);p++){for(;c>x&&null!=i(x).coordDim;)x++;c>x&&l.push(x++)}g(l,function(t,s){var l=i(t);if(f&&null!=a.type&&(l.type=a.type),n(h(l,a),e,s),null==l.name&&r){var u=r[s];!A(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&h(l.otherDims,o)})}});var b=e.generateCoord,w=e.generateCoordCount,S=null!=w;w=b?w||1:0;var T=b||"value";if(p)g(l,function(t){r(t)}),l.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var C=0;c>C;C++){var I=i(C),k=I.coordDim;null==k&&(I.coordDim=Nc(T,s,S),I.coordDimIndex=0,(!b||0>=w)&&(I.isExtraCoord=!0),w--),r(I),null!=I.type||Ds(t,C)!==zw.Must&&(!I.isExtraCoord||null==I.otherDims.itemName&&null==I.otherDims.seriesName)||(I.type="ordinal")}return Ec(l),new SC({source:t,dimensions:l,fullDimensionCount:c,dimensionOmitted:p})}function Ec(t){for(var e=G(),i=0;i<t.length;i++){var n=t[i],r=n.name,o=e.get(r)||0;o>0&&(n.name=r+(o-1)),o++,e.set(r,o)}}function Rc(t,e,i,n){var r=Math.max(t.dimensionsDetectedCount||1,e.length,i.length,n||0);return g(e,function(t){var e;A(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function Nc(t,e,i){var n=e.data;if(i||n.hasOwnProperty(t)){for(var r=0;n.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}function zc(t){var e=t.get("coordinateSystem"),i=new DC(e),n=PC[e];return n?(n(t,i,i.axisMap,i.categoryAxisMap),i):void 0}function Bc(t){return"category"===t.get("type")}function Fc(t,e,i){i=i||{};var n,r,o,a=i.byIndex,s=i.stackedCoordDimension;Hc(e)?n=e:(r=e.schema,n=r.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get("stack"));if(g(n,function(t,e){M(t)&&(n[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){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,d=u.type,y=0;g(n,function(t){t.coordDim===f&&y++});var v={name:h,coordDim:f,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},m={name:c,coordDim:c,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(c,d),m.storeDimIndex=o.ensureCalculationDimension(h,d)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(n.push(v),n.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Hc(t){return!Ac(t.schema)}function Vc(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Yc(t,e){return Vc(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Xc(t,e){var i,n=t.get("coordinateSystem"),r=$w.get(n);return e&&e.coordSysDims&&(i=y(e.coordSysDims,function(t){var i={name:t},n=e.axisMap.get(t);if(n){var r=n.get("type");i.type=Cc(r)}return i})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Wc(t,e,i){var n,r;return i&&g(t,function(t,o){var a=t.coordDim,s=i.categoryAxisMap.get(a);s&&(null==n&&(n=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==n||(t[n].otherDims.itemName=0),n}function Gc(t,e,i){i=i||{};var n,r=e.getSourceManager(),o=!1;t?(o=!0,n=fl(t)):(n=r.getSource(),o=n.sourceFormat===kw);var a=zc(e),s=Xc(e,a),l=i.useEncodeDefaulter,u=T(l)?l:l?w(Is,s,e):null,h={coordDimensions:s,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=Lc(n,h),p=Wc(c.dimensions,i.createInvertedIndices,a),f=o?null:r.getSharedDataStore(c),d=Fc(e,{schema:c,store:f}),g=new kC(c,e);g.setCalculationInfo(d);var y=null!=p&&Uc(n)?function(t,e,i,n){return n===p?i:this.defaultDimValueGetter(t,e,i,n)}:null;return g.hasItemOption=!1,g.initData(o?n:f,null,y),g}function Uc(t){if(t.sourceFormat===kw){var e=jc(t.data||[]);return null!=e&&!S(Vi(e))}}function jc(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function qc(t){return A(t)&&null!=t.value?t.value:t+""}function Zc(t,e,i,n){var r={},o=t[1]-t[0],a=r.interval=Di(o/e,!0);null!=i&&i>a&&(a=r.interval=i),null!=n&&a>n&&(a=r.interval=n);var s=r.intervalPrecision=Kc(a);return Jc(r.niceTickExtent=[RC(Math.ceil(t[0]/a)*a,s),RC(Math.floor(t[1]/a)*a,s)],t),r}function Kc(t){return xi(t)+2}function Qc(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Jc(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Qc(t,0,e),Qc(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function $c(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 ip(t){return t.get("stack")||FC+t.seriesIndex}function np(t){return t.dim+t.index}function rp(t,e){var i=[];return e.eachSeriesByType(t,function(t){up(t)&&!hp(t)&&i.push(t)}),i}function op(t){var e={};g(t,function(t){var i=t.coordinateSystem,n=i.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),o=n.dim+"_"+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),s=r.getStore(),l=0,u=s.count();u>l;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var i={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];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))}i[n]=o}}return i}function ap(t){var e=op(t),i=[];return g(t,function(t){var n,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)n=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]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);n=l?u/c*l:u}else{var p=t.getData();n=Math.abs(a[1]-a[0])/p.count()}var f=vi(t.get("barWidth"),n),d=vi(t.get("barMaxWidth"),n),g=vi(t.get("barMinWidth")||1,n),y=t.get("barGap"),v=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:f,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:np(o),stackId:ip(t)})}),sp(i)}function sp(t){var e={};g(t,function(t){var i=t.axisKey,n=t.bandWidth,r=e[i]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[i]=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 h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var i={};return g(e,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=x(n).length;o=Math.max(35-4*a,15)+"%"}var s=vi(o,r),l=vi(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),g(n,function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){var n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,u-=n+l*n,h--}else{var n=c;e&&n>e&&(n=Math.min(e,u)),i&&i>n&&(n=i),n!==c&&(t.width=n,u-=n+l*n,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,f=0;g(n,function(t){t.width||(t.width=c),p=t,f+=t.width*(1+l)}),p&&(f-=p.width*l);var d=-f/2;g(n,function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+l)})}),i}function lp(t,e,i){if(t&&e){var n=t[np(e)];return null!=n&&null!=i?n[ip(i)]:n}}function up(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function hp(t){return t.pipelineContext&&t.pipelineContext.large}function cp(t,e,i,n){var r=Ii(e),o=Ii(i),a=function(t){return qa(r,t,n)===qa(o,t,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},p=function(){return c()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();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?nw:iw,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function yp(t){return Di(t,!0)}function vp(t,e,i){var n=new Date(t);switch(Ya(e)){case"year":case"month":n[ns(i)](0);case"day":n[rs(i)](1);case"hour":n[os(i)](0);case"minute":n[as(i)](0);case"second":n[ss(i)](0),n[ls(i)](0)}return n.getTime()}function mp(t,e,i,n){function r(t,e,i,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();i>u&&u<=n[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}for(var o=cw,a=0,s=[],l=[],u=0,h=0,c=0;c<o.length&&a++<1e4;++c){var p=Ya(o[c]);if(Xa(o[c])){!function(t,o,a){var s=[],l=!o.length;if(!cp(Ya(t),n[0],n[1],i)){l&&(o=[{value:vp(new Date(n[0]),t,i)},{value:n[1]}]);for(var u=0;u<o.length-1;u++){var h=o[u].value,c=o[u+1].value;if(h!==c){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(i),d=is(i);break;case"half-year":case"quarter":case"month":p=fp(e),f=Ka(i),d=ns(i);break;case"week":case"half-week":case"day":p=pp(e,31),f=Qa(i),d=rs(i),g=!0;break;case"half-day":case"quarter-day":case"hour":p=dp(e),f=Ja(i),d=os(i);break;case"minute":p=gp(e,!0),f=$a(i),d=as(i);break;case"second":p=gp(e,!1),f=ts(i),d=ss(i);break;case"millisecond":p=yp(e),f=es(i),d=ls(i)}r(p,h,c,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[c],s[s.length-1]||[],l);if(p!==(o[c+1]?Ya(o[c+1]):null)){if(l.length){h=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>=n[0]&&g<=n[1]&&u++)}var v=(n[1]-n[0])/e;if(u>1.5*v&&h>v/1.5)break;if(s.push(f),u>v||t===o[c])break}l=[]}}}for(var _=m(y(s,function(t){return m(t,function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd})}),function(t){return t.length>0}),x=[],b=_.length-1,c=0;c<_.length;++c)for(var w=_[c],S=0;S<w.length;++S)x.push({value:w[S].value,level:b-c});x.sort(function(t,e){return t.value-e.value});for(var T=[],c=0;c<x.length;++c)(0===c||x[c].value!==x[c-1].value)&&T.push(x[c]);return T}function _p(t,e){return GC(t,xi(e))}function xp(t,e,i){var n=t.rawExtentInfo;return n||(n=new JC(t,e,i),t.rawExtentInfo=n,n)}function bp(t,e){return null==e?null:R(e)?NaN:t.parse(e)}function wp(t,e){var i=t.type,n=xp(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var r=n.min,o=n.max,a=e.ecModel;if(a&&"time"===i){var s=rp("bar",a),l=!1;if(g(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=ap(s),h=Sp(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function Sp(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],a=lp(n,i.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,h=e-t,c=1-(s+l)/o,p=h/c-h;return e+=p*(l/u),t-=p*(s/u),{min:t,max:e}}function Tp(t,e){var i=wp(t,e),n=i.extent,r=e.get("splitNumber");t instanceof KC&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.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 Mp(t,e){if(e=e||t.get("type"))switch(e){case"category":return new NC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new VC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(OC.getClass(e)||BC)}}function Cp(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)}function Ip(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(i,n){return t.scale.getFormattedLabel(i,n,e)}}(e):"string"==typeof e?function(e){return function(i){var n=t.scale.getLabel(i);return e.replace("{value}",null!=n?n:"")}}(e):"function"==typeof e?function(e){return function(n,r){return null!=i&&(r=n.value-i),e(Ap(t,n),r,null!=n.level?{level:n.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Ap(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function kp(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,r,o=i.getExtent();i instanceof NC?r=i.count():(n=i.getTicks(),r=n.length);var a,s=t.getLabelModel(),l=Ip(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;r>h;h+=u){var c=n?n[h]:{value:o[0]+h},p=l(c,h),f=s.getTextRect(p),d=Dp(f,s.get("rotate")||0);a?a.union(d):a=d}return a}}function Dp(t,e){var i=e*Math.PI/180,n=t.width,r=t.height,o=n*Math.abs(Math.cos(i))+Math.abs(r*Math.sin(i)),a=n*Math.abs(Math.sin(i))+Math.abs(r*Math.cos(i));return new om(t.x,t.y,o,a)}function Pp(t){var e=t.get("interval");return null==e?"auto":e}function Op(t){return"category"===t.type&&0===Pp(t.getLabelModel())}function Lp(t,e){var i={};return g(t.mapDimensionsAll(e),function(e){i[Yc(t,e)]=!0}),x(i)}function Ep(t){return Gc(null,t)}function Rp(t,e){var i=e;e instanceof Ub||(i=new Ub(e));var n=Mp(i);return n.setExtent(t[0],t[1]),Tp(n,i),n}function Np(t){f(t,eI)}function zp(t,e){return e=e||{},Aa(t,null,null,"normal"!==e.state)}function Bp(t){return S(t)?void g(t,function(t){Bp(t)}):void(c(rI,t)>=0||(rI.push(t),T(t)&&(t={install:t}),t.install(oI)))}function Fp(t){return"category"===t.type?Vp(t):Wp(t)}function Hp(t,e){return"category"===t.type?Xp(t,e):{ticks:y(t.scale.getTicks(),function(t){return t.value})}}function Vp(t){var e=t.getLabelModel(),i=Yp(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function Yp(t,e){var i=Gp(t,"labels"),n=Pp(e),r=Up(i,n);if(r)return r;var o,a;return T(n)?o=Jp(t,n):(a="auto"===n?qp(t):n,o=Qp(t,a)),jp(i,n,{labels:o,labelCategoryInterval:a})}function Xp(t,e){var i=Gp(t,"ticks"),n=Pp(e),r=Up(i,n);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),T(n))o=Jp(t,n,!0);else if("auto"===n){var s=Yp(t,t.getLabelModel());a=s.labelCategoryInterval,o=y(s.labels,function(t){return t.tickValue})}else a=n,o=Qp(t,a,!0);return jp(i,n,{ticks:o,tickCategoryInterval:a})}function Wp(t){var e=t.scale.getTicks(),i=Ip(t);return{labels:y(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Gp(t,e){return cI(t)[e]||(cI(t)[e]=[])}function Up(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function jp(t,e,i){return t.push({key:e,value:i}),i}function qp(t){var e=cI(t).autoInterval;return null!=e?e:cI(t).autoInterval=t.calculateCategoryInterval()}function Zp(t){var e=Kp(t),i=Ip(t),n=(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),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),p=0,f=0;l<=o[1];l+=s){var d=0,g=0,y=Qe(i({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/h,m=f/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(v,m))),x=cI(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 Kp(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 Qp(t,e,i){function n(t){var e={value:t};l.push(i?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),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var p=Op(t),f=s.get("showMinLabel")||p,d=s.get("showMaxLabel")||p;f&&h!==a[0]&&n(a[0]);for(var g=h;g<=a[1];g+=u)n(g);return d&&g-u!==a[1]&&n(a[1]),l}function Jp(t,e,i){var n=t.scale,r=Ip(t),o=[];return g(n.getTicks(),function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&o.push(i?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function $p(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function tf(t,e,i,n){function r(t,e){return t=mi(t),e=mi(e),c?t>e:e>t}var o=e.length;if(t.onBand&&!i&&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,h=(e[o-1].coord-e[0].coord)/u;g(e,function(t){t.coord-=h/2});s=1+t.scale.getExtent()[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var c=l[0]>l[1];r(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift()),n&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(n?a.coord=l[1]:e.pop()),n&&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=BS.extend(t);return BS.registerClass(e),e}function of(t){var e=YS.extend(t);return YS.registerClass(e),e}function af(t,e,i,n,r){var o=i.width,a=i.height;switch(t){case"top":n.set(i.x+o/2,i.y-e),r.set(0,-1);break;case"bottom":n.set(i.x+o/2,i.y+a+e),r.set(0,1);break;case"left":n.set(i.x-e,i.y+a/2),r.set(-1,0);break;case"right":n.set(i.x+o+e,i.y+a/2),r.set(1,0)}}function sf(t,e,i,n,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*i+t,c=s*i+e;if(Math.abs(n-r)%dI<1e-4)return l[0]=h,l[1]=c,u-i;if(o){var p=n;n=hr(r),r=hr(p)}else n=hr(n),r=hr(r);n>r&&(r+=dI);var f=Math.atan2(s,a);if(0>f&&(f+=dI),f>=n&&r>=f||f+dI>=n&&r>=f+dI)return l[0]=h,l[1]=c,u-i;var d=i*Math.cos(n)+t,g=i*Math.sin(n)+e,y=i*Math.cos(r)+t,v=i*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,i,n,r,o,a,s){var l=r-t,u=o-e,h=i-t,c=n-e,p=Math.sqrt(h*h+c*c);h/=p,c/=p;var f=l*h+u*c,d=f/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var g=a[0]=t+d*h,y=a[1]=e+d*c;return Math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function uf(t,e,i,n,r,o,a){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n);var s=t+i,l=e+n,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function hf(t,e,i){var n=uf(e.x,e.y,e.width,e.height,t.x,t.y,vI);return i.set(vI[0],vI[1]),n}function cf(t,e,i){for(var n,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,p=t.y,f=0;f<h.length;){var d=h[f++];1===f&&(o=h[f],a=h[f+1],s=o,l=a);var g=u;switch(d){case gI.M:s=h[f++],l=h[f++],o=s,a=l;break;case gI.L:g=lf(o,a,h[f],h[f+1],c,p,vI,!0),o=h[f++],a=h[f++];break;case gI.C:g=Gn(o,a,h[f++],h[f++],h[f++],h[f++],h[f],h[f+1],c,p,vI),o=h[f++],a=h[f++];break;case gI.Q:g=Jn(o,a,h[f++],h[f++],h[f],h[f+1],c,p,vI),o=h[f++],a=h[f++];break;case gI.A:var y=h[f++],v=h[f++],m=h[f++],_=h[f++],x=h[f++],b=h[f++];f+=1;var w=!!(1-h[f++]);n=Math.cos(x)*m+y,r=Math.sin(x)*_+v,1>=f&&(s=n,l=r);g=sf(y,v,_,x,x+b,w,(c-y)*_/m+y,p,vI),o=Math.cos(x+b)*m+y,a=Math.sin(x+b)*_+v;break;case gI.R:s=o=h[f++],l=a=h[f++];g=uf(s,l,h[f++],h[f++],c,p,vI);break;case gI.Z:g=lf(o,a,s,l,c,p,vI,!0),o=s,a=l}u>g&&(u=g,i.set(vI[0],vI[1]))}return u}function pf(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||yI,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&Ge([],h),p=e.get("length2")||0;u&&xI.copy(u);for(var f=0;f<a.length;f++){af(a[f],0,s,mI,bI),Kv.scaleAndAdd(_I,mI,bI,p),_I.transform(c);var d=t.getBoundingRect(),g=u?u.distance(_I):t instanceof X_?cf(_I,t.path,xI):hf(_I,d,xI);l>g&&(l=g,_I.transform(h),xI.transform(h),xI.toArray(o[0]),_I.toArray(o[1]),mI.toArray(o[2]))}ff(o,e.get("minTurnAngle")),i.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]),Kv.sub(bI,mI,_I),Kv.sub(wI,xI,_I);var i=bI.len(),n=wI.len();if(!(.001>i||.001>n)){bI.scale(1/i),wI.scale(1/n);if(bI.dot(wI)>Math.cos(e)){var r=lf(_I.x,_I.y,xI.x,xI.y,mI.x,mI.y,SI,!1);TI.fromArray(SI),TI.scaleAndAdd(wI,r/Math.tan(Math.PI-e));var o=xI.x!==_I.x?(TI.x-_I.x)/(xI.x-_I.x):(TI.y-_I.y)/(xI.y-_I.y);if(isNaN(o))return;0>o?Kv.copy(TI,_I):o>1&&Kv.copy(TI,xI),TI.toArray(t[1])}}}}function df(t,e,i,n){var r="normal"===i,o=r?t:t.ensureState(i);o.ignore=e;var a=n.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function gf(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),i>0&&n.length>=3){var r=Ry(n[0],n[1]),o=Ry(n[1],n[2]);if(!r||!o)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var a=Math.min(r,o)*i,s=ft([],n[1],n[0],a/r),l=ft([],n[1],n[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],n[2][0],n[2][1])}else for(var h=1;h<n.length;h++)t.lineTo(n[h][0],n[h][1])}function yf(t,e,i){var n=t.getTextGuideLine(),r=t.getTextContent();if(!r)return void(n&&t.removeTextGuideLine());for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<fx.length;l++){var u=fx[l],c=e[u],p="normal"===u;if(c){var f=c.get("show");if((p?s:z(r.states[u]&&r.states[u].ignore,s))||!z(f,a)){var d=p?n:n&&n.states.normal;d&&(d.ignore=!0);continue}n||(n=new rb,t.setTextGuideLine(n),p||!s&&a||df(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),df(n,!1,u,c)}}if(n){h(n.style,i),n.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,n.buildPath=gf}}function vf(t,e){e=e||"labelLine";for(var i={normal:t.getModel(e)},n=0;n<px.length;n++){var r=px[n];i[r]=t.getModel([r,e])}return i}function mf(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];if(!n.defaultAttr.ignore){var r=n.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 h=s?new bb(a,o):null;e.push({label:r,labelLine:n.labelLine,rect:u,localRect:a,obb:h,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return e}function _f(t,e,i,n,r,o){function a(){b=S.rect[e]-n,w=r-T.rect[e]-T.rect[i]}function s(t,e,i){if(0>t){var n=Math.min(e,-t);if(n>0){l(n*i,0,c);var r=n+t;0>r&&u(-r*i,1)}else u(-t*i,1)}}function l(i,n,r){0!==i&&(d=!0);for(var o=n;r>o;o++){var a=t[o];a.rect[e]+=i,a.label[e]+=i}}function u(n,r){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[i],0);o.push(h),a+=h}if(a){var p=Math.min(Math.abs(n)/a,r);if(n>0)for(var s=0;c-1>s;s++){var f=o[s]*p;l(f,0,s+1)}else for(var s=c-1;s>0;s--){var f=o[s-1]*p;l(-f,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var i=Math.ceil(t/(c-1)),n=0;c-1>n;n++)if(e>0?l(i,0,n+1):l(-i,c-n-1,c),0>=(t-=i))return}var c=t.length;if(!(2>c)){t.sort(function(t,i){return t.rect[e]-i.rect[e]});for(var p,f=0,d=!1,g=[],y=0,v=0;c>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]+_[i]}y>0&&o&&l(-y/c,0,c);var b,w,S=t[0],T=t[c-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&&h(-b),0>w&&h(w),d}}function xf(t,e,i,n){return _f(t,"x","width",e,i,n)}function bf(t,e,i,n){return _f(t,"y","height",e,i,n)}function wf(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var i=[];t.sort(function(t,e){return e.priority-t.priority});for(var n=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,h=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var c=o.obb,p=!1,f=0;f<i.length;f++){var d=i[f];if(n.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new bb(d.localRect,d.transform)),c||(c=new bb(s,l)),c.intersect(d.obb)){p=!0;break}}}p?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),i.push(o))}}function Sf(t){if(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].slice());return e}}function Tf(t,e){var i=t.label,n=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:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:Sf(n&&n.shape.points)}}function Mf(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null!=e[r]&&(t[r]=e[r])}}function Cf(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e){var i=PI(e).labelManager;i||(i=PI(e).labelManager=new DI),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=PI(e).labelManager;i.updatedSeries.forEach(function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function If(){return!1}function Af(t,e,i){var n=Ay(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}function kf(t){return parseInt(t,10)}function Df(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function Pf(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}function Of(t){t.registerPainter("canvas",EI)}function Lf(t){t.registerComponentModel(RI),t.registerComponentView(NI)}function Ef(t,e){var i=t.mapDimensionsAll("defaultedLabel"),n=i.length;if(1===n){var r=Ml(t,e,i[0]);return null!=r?r+"":null}if(n){for(var o=[],a=0;a<i.length;a++)o.push(Ml(t,e,i[a]));return o.join(" ")}}function Rf(t,e){var i=t.mapDimensionsAll("defaultedLabel");if(!S(e))return e+"";for(var n=[],r=0;r<i.length;r++){var o=t.getDimensionIndex(i[r]);o>=0&&n.push(e[o])}return n.join(" ")}function Nf(t,e){this.parent.drift(t,e)}function zf(t,e,i,n){return!(!e||isNaN(e[0])||isNaN(e[1])||n.isIgnore&&n.isIgnore(i)||n.clipShape&&!n.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(i,"symbol"))}function Bf(t){return null==t||A(t)||(t={isIgnore:t}),t||{}}function Ff(t){var e=t.hostModel,i=e.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),hoverScale:i.get("scale"),labelStatesModels:Ia(e),cursorStyle:e.get("cursor")}}function Hf(t,e,i){var n=t.getBaseAxis(),r=t.getOtherAxis(n),o=Vf(r,i),a=n.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=y(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,f=e.getCalculationInfo("stackResultDimension");return Vc(e,c[0])&&(p=!0,c[0]=f),Vc(e,c[1])&&(p=!0,c[1]=f),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Vf(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function Yf(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function Xf(t){return S(t)?HI?new Float32Array(t):t:new VI(t)}function Wf(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}function Gf(t,e,i,n,r,o,a){for(var s=Wf(t,e),l=[],u=[],h=[],c=[],p=[],f=[],d=[],g=Hf(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],T=y[b+1],M=v[w],C=v[w+1];(isNaN(S)||isNaN(T))&&(S=M,T=C),l.push(S,T),u.push(M,C),h.push(i[b],i[b+1]),c.push(n[w],n[w+1]),d.push(e.getRawIndex(_.idx1));break;case"+":var I=_.idx,A=g.dataDimsForPoint,k=r.dataToPoint([e.get(A[0],I),e.get(A[1],I)]);w=2*I,l.push(k[0],k[1]),u.push(v[w],v[w+1]);var D=Yf(g,r,e,I);h.push(D[0],D[1]),c.push(n[w],n[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 P=l.length,O=Xf(P),L=Xf(P),E=Xf(P),R=Xf(P),N=[],m=0;m<f.length;m++){var z=f[m],B=2*m,F=2*z;O[B]=l[F],O[B+1]=l[F+1],L[B]=u[F],L[B+1]=u[F+1],E[B]=h[F],E[B+1]=h[F+1],R[B]=c[F],R[B+1]=c[F+1],N[m]=p[z]}return{current:O,next:L,stackedOnCurrent:E,stackedOnNext:R,status:N}}function Uf(t,e){return isNaN(t)||isNaN(e)}function jf(t,e,i,n,r,o,a,s,l){for(var u,h,c,p,f,d,g=i,y=0;n>y;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(Uf(v,m)){if(l){g+=o;continue}break}if(g===i)t[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var _=v-u,x=m-h;if(.5>_*_+x*x){g+=o;continue}if(a>0){var b=g+o,w=e[2*b],S=e[2*b+1],T=y+1;if(l)for(;Uf(w,S)&&n>T;)T++,b+=o,w=e[2*b],S=e[2*b+1];var M=.5,C=0,I=0,A=void 0,k=void 0;if(T>=n||Uf(w,S))f=v,d=m;else{C=w-u,I=S-h;var D=v-u,P=w-v,O=m-h,L=S-m,E=void 0,R=void 0;"x"===s?(E=Math.abs(D),R=Math.abs(P),f=v-E*a,d=m,A=v+E*a,k=m):"y"===s?(E=Math.abs(O),R=Math.abs(L),f=v,d=m-E*a,A=v,k=m+E*a):(E=Math.sqrt(D*D+O*O),R=Math.sqrt(P*P+L*L),M=R/(R+E),f=v-C*a*(1-M),d=m-I*a*(1-M),A=v+C*a*M,k=m+I*a*M,A=YI(A,XI(w,v)),k=YI(k,XI(S,m)),A=XI(A,YI(w,v)),k=XI(k,YI(S,m)),C=A-v,I=k-m,f=v-C*E/R,d=m-I*E/R,f=YI(f,XI(u,v)),d=YI(d,XI(h,m)),f=XI(f,YI(u,v)),d=XI(d,YI(h,m)),C=v-f,I=m-d,A=v+C*R/E,k=m+I*R/E)}t.bezierCurveTo(c,p,f,d,v,m),c=A,p=k}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}function qf(t,e,i,n,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=i.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=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&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);qo(c,{shape:{width:l,height:u,x:a,y:s}},i,null,n,"function"==typeof r?function(t){r(t,c)}:null)}return c}function Zf(t,e,i){var n=t.getArea(),r=mi(n.r0,1),o=mi(n.r,1),a=new Jx({shape:{cx:mi(t.cx,1),cy:mi(t.cy,1),r0:r,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){"angle"===t.getBaseAxis().dim?a.shape.endAngle=n.startAngle:a.shape.r=r,qo(a,{shape:{endAngle:n.endAngle,r:o}},i)}return a}function Kf(t,e){return t.type===e}function Qf(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return!0}}function Jf(t){for(var e=1/0,i=1/0,n=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),r=Math.max(s,r))}return[[e,i],[n,r]]}function $f(t,e){var i=Jf(t),n=i[0],r=i[1],o=Jf(e),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(n[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,i){if(!i.valueDim)return[];for(var n=e.count(),r=Xf(2*n),o=0;n>o;o++){var a=Yf(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function id(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.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]),i){case"end":s[r]=u[r],s[1-r]=l[1-r],o.push(s[0],s[1]);break;case"middle":var h=(l[r]+u[r])/2,c=[];s[r]=c[r]=h,s[1-r]=l[1-r],c[1-r]=u[1-r],o.push(s[0],s[1]),o.push(c[0],c[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 nd(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,r,o=i.length-1;o>=0;o--){var a=t.getDimensionInfo(i[o].dimension);if("x"===(n=a&&a.coordDim)||"y"===n){r=i[o];break}}if(r){var s=e.getAxis(n),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}}),h=u.length,c=r.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=u[0].coord-10,f=u[h-1].coord+10,d=f-p;if(.001>d)return"transparent";g(u,function(t){t.offset=(t.coord-p)/d}),u.push({offset:h?u[h-1].offset:.5,color:c[1]||"transparent"}),u.unshift({offset:h?u[0].offset:.5,color:c[0]||"transparent"});var v=new gb(0,0,0,0,u,!0);return v[n]=p,v[n+"2"]=f,v}}}function rd(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.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 i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*BI.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)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,i){for(var n,r,o=t.length/2,a="x"===i?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>=n&&r>=e||n>=e&&e>=r){l=u;break}s=u,n=r}else n=r;return{range:[s,l],t:(e-n)/(r-n)}}function hd(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 cd(t,e,i,n){if(Kf(e,"cartesian2d")){var r=n.getModel("endLabel"),o=r.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},l=hd(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),h=qf(e,i,n,function(){var e=t._endLabel;e&&i&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=h.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=2*p):(c.x-=p,c.width+=2*p)}return l&&l(1,h),h}return Zf(e,i,n)}function pd(t,e){var i=e.getBaseAxis(),n=i.isHorizontal(),r=i.inverse,o=n?r?"right":"left":"center",a=n?"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 i=t.getData(),n=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(n){var a=y(n.dimensions,function(t){return i.mapDimension(t)}).slice(0,2),s=a.length,l=i.getCalculationInfo("stackResultDimension");Vc(i,a[0])&&(a[0]=l),Vc(i,a[1])&&(a[1]=l);var u=i.getStore(),h=i.getDimensionIndex(a[0]),c=i.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var i=t.end-t.start,r=o&&Xf(i*s),a=[],l=[],p=t.start,f=0;p<t.end;p++){var d=void 0;if(1===s){var g=u.get(h,p);d=n.dataToPoint(g,null,l)}else a[0]=u.get(h,p),a[1]=u.get(c,p),d=n.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,i){var n=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=n.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(p>1){"lttb"===r&&t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/p));var f=void 0;"string"==typeof r?f=ZI[r]:"function"==typeof r&&(f=r),f&&t.setData(n.downSample(n.mapDimension(l.dim),1/p,f,KI))}}}}}function gd(t){t.registerChartView(qI),t.registerSeriesModel(zI),t.registerLayout(fd("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dd("line"))}function yd(t,i,n,r){g(oA,function(o,a){var l=s(s({},rA[a],!0),r,!0),u=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i+"Axis."+a,e}return e(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var i=bs(this),n=i?Ss(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=vd(t),i&&ws(t,n,i)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=EC.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=i+"Axis."+a,n.defaultOption=l,n}(n);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(i+"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,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=n.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[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]]:c[0],"x"===u?d[p[l]]:c[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(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function xd(t){return"cartesian2d"===t.get("coordinateSystem")}function bd(t){var e={xAxisModel:null,yAxisModel:null};return g(e,function(i,n){var r=n.replace(/Model$/,""),o=t.getReferringComponents(r,Am).models[0];e[n]=o}),e}function wd(t,e){return t.getCoordSysModel()===e}function Sd(t,e,i,n){function r(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=i.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)Td(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&Td(a[h])&&!n[r(a[h])]){o=a[h];break}o&&(n[r(o)]=!0)}}function Td(t){return t&&"category"!==t.type&&"time"!==t.type&&Cp(t)}function Md(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function Cd(t,e,i,n){var r,o,a=Mi(i-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Ci(a-cA/2)?(o=l?"bottom":"top",r="center"):Ci(a-1.5*cA)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*cA>a&&a>cA/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Id(t,e,i){if(!Op(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],i=i||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],h=i[1],c=i[i.length-1],p=i[i.length-2];!1===n?(Ad(o),Ad(u)):kd(o,a)&&(n?(Ad(a),Ad(h)):(Ad(o),Ad(u))),!1===r?(Ad(s),Ad(c)):kd(l,s)&&(r?(Ad(l),Ad(p)):(Ad(s),Ad(c)))}}function Ad(t){t&&(t.ignore=!0)}function kd(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var r=Fe([]);return Xe(r,r,-t.rotation),i.applyTransform(Ve([],r,t.getLocalTransform())),n.applyTransform(Ve([],r,e.getLocalTransform())),i.intersect(n)}}function Dd(t){return"middle"===t||"center"===t}function Pd(t,e,i,n,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]=i,e&&(dt(a,a,e),dt(s,s,e));var h=new sb({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});h.anid=r+"_"+t[l].tickValue,o.push(h)}return o}function Od(t,e,i,n){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),u=r.getTicksCoords(),c=Pd(u,e.transform,l,h(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<c.length;p++)t.add(c[p]);return c}}function Ld(t,e,i,n){var r=i.axis,o=i.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),u=h(s.getLineStyle(),h(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var p=Pd(a[c],e.transform,l,u,"minorticks_"+c),f=0;f<p.length;f++)t.add(p[f])}}function Ed(t,e,i,n){var r=i.axis;if(N(n.axisLabelShow,i.get(["axisLabel","show"]))&&!r.scale.isBlank()){var o=i.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(N(n.labelRotate,o.get("rotate"))||0)*cA/180,u=pA.innerTextLayout(n.rotation,l,n.labelDirection),h=i.getCategories&&i.getCategories(!0),c=[],p=pA.isLabelSilent(i),f=i.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(h&&h[d]){var m=h[d];A(m)&&m.textStyle&&(v=new Ub(m.textStyle,o,i.ecModel))}var _=v.getTextColor()||i.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(d),b=new ex({x:x,y:n.labelOffset+n.labelDirection*a,rotation:u.rotation,silent:p,z2:10,style:Aa(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=pA.makeAxisEventDataBase(i);w.targetType="axisLabel",w.value=y,rx(b).eventData=w}e.add(b),b.updateTransform(),c.push(b),t.add(b),b.decomposeTransform()}),c}}function Rd(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Nd(i,t,e),i.seriesInvolved&&Bd(i,t),i}function Nd(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];g(i.getCoordinateSystems(),function(i){function s(n,s,l){var h=l.model.getModel("axisPointer",r),p=h.get("show");if(p&&("auto"!==p||n||Wd(h))){null==s&&(s=h.get("triggerTooltip")),h=n?zd(l,c,r,e,n,s):h;var f=h.get("snap"),d=Gd(l.model),g=s||f||"category"===l.type,y=t.axesInfo[d]={key:d,axis:l,coordSys:i,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:Wd(h),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(i.axisPointerEnabled){var l=Gd(i.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=i;var h=i.model,c=h.getModel("tooltip",n);if(g(i.getAxes(),w(s,!1,null)),i.getTooltipAxes&&n&&c.get("show")){var p="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),d=i.getTooltipAxes(c.get(["axisPointer","axis"]));(p||f)&&g(d.baseAxes,w(s,!f||"cross",p)),f&&g(d.otherAxes,w(s,"cross",!1))}}})}function zd(t,e,i,n,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 c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===r){var p=s.get(["label","show"]);if(c.show=null==p||p,!o){var f=u.lineStyle=s.get("crossStyle");f&&h(c,f.textStyle)}}return t.model.getModel("axisPointer",new Ub(u,i,n))}function Bd(t,e){e.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&g(t.coordSysAxesInfo[Gd(i.model)],function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}function Fd(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Hd(o[n+"AxisId"],i.id)||Hd(o[n+"AxisIndex"],i.componentIndex)||Hd(o[n+"AxisName"],i.name))return r}}function Hd(t,e){return"all"===t||S(t)&&c(t,e)>=0||t===e}function Vd(t){var e=Yd(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=Wd(i);null==o&&(r.status=s?"show":"hide");var l=n.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 Yd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Gd(t)]}function Xd(t){var e=Yd(t);return e&&e.axisPointerModel}function Wd(t){return!!t.get(["handle","show"])}function Gd(t){return t.type+"||"+t.id}function Ud(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,p=yA(t).splitAreaColors,f=G(),d=0;if(p)for(var g=0;g<u.length;g++){var y=p.get(u[g].tickValue);if(null!=y){d=(y+(c-1)*g)%c;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,T=void 0;r.isHorizontal()?(x=v,b=l.y,w=_-x,T=l.height,v=x+w):(x=l.x,b=v,w=l.width,T=_-b,v=b+T);var M=u[g-1].tickValue;null!=M&&f.set(M,d),e.add(new J_({anid:null!=M?"area_"+M:null,shape:{x:x,y:b,width:w,height:T},style:h({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}yA(t).splitAreaColors=f}}}function jd(t){yA(t).splitAreaColors=null}function qd(t){t.registerComponentView(SA),t.registerComponentModel(QI),t.registerCoordinateSystem("cartesian2d",hA),yd(t,"x",JI,TA),yd(t,"y",JI,TA),t.registerComponentView(bA),t.registerComponentView(wA),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Zd(t,e){var i=pw(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new J_({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}function Kd(t,e,i,n,r,o,a){for(var s=e.getModel("itemStyle"),l=Xb.concat([["decal"]]),u={},h=0;h<l.length;++h){var c=l[h][l[h].length-1],p=l[h][0],f=s.getShallow(c);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:n).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=Hb.concat([["inactiveColor"],["inactiveWidth"]]),y={},h=0;h<g.length;++h){var c=g[h][1],p=g[h][0],f=d.getShallow(c);"inherit"===f?y[p]=n[p]:"auto"===f&&"lineWidth"===p?y.lineWidth=n.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=i.get("inactiveColor"),y.lineWidth=i.get("inactiveWidth")}return{itemStyle:u,lineStyle:y}}function Qd(t){var e=t.icon||"roundRect",i=Vu(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.rotation=(t.iconRotate||0)*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i}function Jd(t,e,i,n){eg(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),tg(t,e,i,n)}function $d(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,r=i.length;r>n&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function tg(t,e,i,n){$d(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function eg(t,e,i,n){$d(i)||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function ig(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function ng(t,e,i){var n,r={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name)),g(i.getData(),function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);r[e]=r.hasOwnProperty(e)?r[e]&&n:n}})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function rg(t){t.registerAction("legendToggleSelect","legendselectchanged",w(ng,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",w(ng,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",w(ng,"inverseSelect")),t.registerAction("legendSelect","legendselected",w(ng,"select")),t.registerAction("legendUnSelect","legendunselected",w(ng,"unSelect"))}function og(t){t.registerComponentModel(CA),t.registerComponentView(DA),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,ig),t.registerSubTypeDefaulter("legend",function(){return"plain"}),rg(t)}function ag(t,e,i){var n=t.getOrient(),r=[1,1];r[n.index]=0,ws(e,i,{type:"box",ignoreSize:!!r})}function sg(t){t.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})})}function lg(t){Bp(og),t.registerComponentModel(PA),t.registerComponentView(RA),sg(t)}function ug(t,e,i,n){hg(NA(i).lastProp,n)||(NA(i).lastProp=n,e?jo(i,n,t):(i.stopAnimation(),i.attr(n)))}function hg(t,e){if(A(t)&&A(e)){var i=!0;return g(e,function(e,n){i=i&&hg(t[n],e)}),!!i}return t===e}function cg(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,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}function dg(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function gg(t,e,i,n,r){var o=i.get("value"),a=vg(o,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),s=i.getModel("label"),l=pw(s.get("padding")||0),u=s.getFont(),h=Qe(a,u),c=r.position,p=h.width+l[1]+l[3],f=h.height+l[0]+l[2],d=r.align;"right"===d&&(c[0]-=p),"center"===d&&(c[0]-=p/2);var g=r.verticalAlign;"bottom"===g&&(c[1]-=f),"middle"===g&&(c[1]-=f/2),yg(c,p,f,n);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Aa(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function yg(t,e,i,n){var r=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function vg(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Ap(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};g(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)}),M(a)?o=a.replace("{value}",o):T(a)&&(o=a(s))}return o}function mg(t,e,i){var n=Be();return Xe(n,n,i.rotation),Ye(n,n,i.position),ca([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function _g(t,e,i,n,r,o){var a=pA.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get(["label","margin"]),gg(e,n,r,o,{position:mg(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function xg(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function bg(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function wg(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Sg(t){return"x"===t.dim?0:1}function Tg(t,e,i){if(!gy.node){var n=e.getZr();XA(n).records||(XA(n).records={}),Mg(n,e);(XA(n).records[t]||(XA(n).records[t]={})).handler=i}}function Mg(t,e){function i(i,n){t.on(i,function(i){var r=kg(e);WA(XA(t).records,function(t){t&&n(t,i,r.dispatchAction)}),Cg(r.pendings,e)})}XA(t).initialized||(XA(t).initialized=!0,i("click",w(Ag,"click")),i("mousemove",w(Ag,"mousemove")),i("globalout",Ig))}function Cg(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function Ig(t,e,i){t.handler("leave",null,i)}function Ag(t,e,i,n){e.handler(t,i,n)}function kg(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function Dg(t,e){if(!gy.node){var i=e.getZr();(XA(i).records||{})[t]&&(XA(i).records[t]=null)}}function Pg(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=rn(o,t);if(null==a||0>a||S(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,p=u.dim,f="x"===c||"radius"===c?1:0,d=o.mapDimension(p),g=[];g[f]=o.get(d,a),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(g)||[]}else n=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),n=[v.x+v.width/2,v.y+v.height/2]}return{point:n,el:s}}function Og(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||ky(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Yg(r)&&(r=Pg({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Yg(r),u=o.axesInfo,h=s.axesInfo,c="leave"===n||Yg(r),p={},f={},d={list:[],map:{}},y={showPointer:w(Rg,f),showTooltip:w(Ng,d)};g(s.coordSysMap,function(t,e){var i=l||t.containPoint(r);g(s.coordSysAxesInfo[e],function(t){var e=t.axis,n=Hg(u,t);if(!c&&i&&(!u||n)){var o=n&&n.value;null!=o||l||(o=e.pointToData(r)),null!=o&&Lg(t,o,y,!1,p)}})});var v={};return g(h,function(t,e){var i=t.linkGroup;i&&!f[e]&&g(i.axesInfo,function(e,n){var r=f[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,Vg(e),Vg(t)))),v[t.key]=o}})}),g(v,function(t,e){Lg(h[e],t,y,!0,p)}),zg(f,h,p),Bg(d,r,t,a),Fg(h,a,i),p}}function Lg(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var a=Eg(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&u(r,s[0]),!n&&t.snap&&o.containData(l)&&null!=l&&(e=l),i.showPointer(t,e,s),i.showTooltip(t,a,l)}}function Eg(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return g(e.seriesModels,function(e){var l,u,h=e.getData().mapDimensionsAll(n);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,i);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===i.type?.5:null),!u.length)return;l=e.getData().get(h[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 Rg(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Ng(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Gd(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function zg(t,e,i){var n=i.axesInfo=[];g(e,function(e,i){var r=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function Bg(t,e,i,n){if(Yg(e)||!t.list.length)return void n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function Fg(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",o=UA(n)[r]||{},a=UA(n)[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&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Hg(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Vg(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function Yg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Xg(t){gA.registerAxisPointerClass("CartesianAxisPointer",HA),t.registerComponentModel(YA),t.registerComponentView(GA),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=Rd(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Og)}function Wg(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Gg(t){if(gy.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;n>i;i++)if(t[i]in e)return t[i]}function Ug(t,e){if(!t)return e;e=cs(e,!0);var i=t.indexOf(e);return t=-1===i?e:"-"+t.slice(0,i)+"-"+e,t.toLowerCase()}function jg(t,e){var i=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return i?e?i[e]:i:null}function qg(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function Zg(t,e,i){if(!M(i)||"inside"===i)return"";var n=t.get("backgroundColor"),r=t.get("borderWidth");e=ms(e);var o,a=qg(i),s=Math.max(1.5*Math.round(r),6),l="",u=QA+":";c(["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 h=o*Math.PI/180,p=s+r,f=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h));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:"+n+";"].join("")+'"></div>'}function Kg(t,e){var i="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+i,r="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+i,r+=gy.transformSupported?","+QA+n:",left"+n+",top"+n),KA+":"+r}function Qg(t,e,i){var n=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!gy.transformSupported)return i?"top:"+r+";left:"+n+";":[["top",r],["left",n]];var o=gy.transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+r+(o?",0":"")+")";return i?"top:0;left:0;"+QA+":"+a+";":[["top",0],["left",0],[qA,a]]}function Jg(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/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(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function $g(t,e,i){var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=nu(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return n.push("box-shadow:"+p),e&&r&&n.push(Kg(r,i)),o&&(gy.canvasSupported?n.push("background-color:"+o):(n.push("background-color:#"+se(o)),n.push("filter:alpha(opacity=70)"))),g(["width","color","radius"],function(e){var i="border-"+e,r=cs(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))}),n.push(Jg(h)),null!=c&&n.push("padding:"+pw(c).join("px ")+"px"),n.join(";")+";"}function ty(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&_t(t,a,document.body,n,r)}else{t[0]=n,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 iy(t){var e=ey(t.shadowBlur||0),i=ey(t.shadowOffsetX||0),n=ey(t.shadowOffsetY||0);return{left:ey(e-i),right:ey(e+i),top:ey(e-n),bottom:ey(e+n)}}function ny(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ry(t,e,i){var n,r=e.ecModel;i?(n=new Ub(i,r,r),n=new Ub(e.option,n,r)):n=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Ub&&(a=a.get("tooltip",!0)),M(a)&&(a={formatter:a}),a&&(n=new Ub(a,n,r)))}return n}function oy(t,e){return t.dispatchAction||ky(e.dispatchAction,e)}function ay(t,e,i,n,r,o,a){var s=i.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>n?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function sy(t,e,i,n,r){var o=i.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,n)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function ly(t,e,i,n){var r=i[0],o=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/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+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}function uy(t){return"center"===t||"middle"===t}function hy(t,e,i){var n=sn(t).queryOptionMap,r=n.keys()[0];if(r&&"series"!==r){var o=ln(e,r,n.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s;return i.getViewOfComponentModel(a).group.traverse(function(e){var i=rx(e).tooltipConfig;return i&&i.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function cy(t){Bp(Xg),t.registerComponentModel(jA),t.registerComponentView(ok),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 i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(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 i=e.browser,n=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);n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1],i.newEdge=+o[1].split(".")[0]>18),a&&(i.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(i.ie&&"transition"in s||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||i.ie&&+i.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,Ty=function(){}.constructor,My=Ty?Ty.prototype:null,Cy={},Iy=2311,Ay=function(){return Cy.createCanvas()};Cy.createCanvas=function(){return document.createElement("canvas")};var ky=My&&T(My.bind)?My.call.bind(My.bind):b,Dy="__ec_primitive__",Py=function(){function t(e){function i(t,e){n?r.set(t,e):r.set(e,t)}this.data={};var n=S(e);this.data={};var r=this;e instanceof t?e.each(i):e&&g(e,i)}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 i in this.data)this.data.hasOwnProperty(i)&&t.call(e,this.data[i],i)},t.prototype.keys=function(){return x(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}(),Oy=(Object.freeze||Object)({$override:n,guid:r,logError:o,clone:a,merge:s,mergeAll:l,extend:u,defaults:h,createCanvas:Ay,indexOf:c,inherits:p,mixin:f,isArrayLike:d,each:g,map:y,reduce:v,filter:m,find:_,keys:x,bind:ky,curry:w,isArray:S,isFunction:T,isString:M,isStringSafe:C,isNumber:I,isObject:A,isBuiltInObject:k,isTypedArray:D,isDom:P,isGradientObject:O,isImagePatternObject:L,isRegExp:E,eqNaN:R,retrieve:N,retrieve2:z,retrieve3:B,slice:F,normalizeCssArray:H,assert:V,trim:Y,setAsPrimitive:X,isPrimitive:W,HashMap:Py,createHashMap:G,concatArray:U,createObject:j,hasOwn:q,noop:Z}),Ly=nt,Ey=rt,Ry=ht,Ny=ct,zy=(Object.freeze||Object)({create:K,copy:Q,clone:J,set:$,add:tt,scaleAndAdd:et,sub:it,len:nt,length:Ly,lenSquare:rt,lengthSquare:Ey,mul:ot,div:at,dot:st,scale:lt,normalize:ut,distance:ht,dist:Ry,distanceSquare:ct,distSquare:Ny,negate:pt,lerp:ft,applyTransform:dt,min:gt,max:yt}),By=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 By(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.handler.dispatchToElement(new By(e,t),"drag",t.event);var a=this.handler.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new By(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new By(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new By(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new By(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Hy=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!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===i)return this;var s={h:i,query:e,ctx:n||this,callAtLast:i.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 i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;o>r;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},t.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;a>s;s++){var l=n[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=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=e[o-1],s=n.length,l=0;s>l;l++){var u=n[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}(),Vy=Math.log(2),Yy="___zrEVENTSAVED",Xy=[],Wy="undefined"!=typeof window&&!!window.addEventListener,Gy=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Uy=[],jy=Wy?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,i){return this._doTrack(t,e,i),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;a>o;o++){var s=n[o],l=Tt(i,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 i=Zy[e](this._track,t);if(i)return i}},t}(),Zy={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=Pt(n)/Pt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Ot(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Ky="silent",Qy=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(i,t),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(Hy),Jy=function(){function t(t,e){this.x=t,this.y=e}return t}(),$y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tv=function(t){function i(e,i,n,r){var o=t.call(this)||this;return o._hovered=new Jy(0,0),o.storage=e,o.painter=i,o.painterRoot=r,n=n||new Qy,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new Fy(o),o}return e(i,t),i.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(g($y,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},i.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=Nt(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=n?new Jy(e,i):this.findHover(e,i),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)},i.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})},i.prototype.resize=function(){this._hovered=new Jy(0,0)},i.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},i.prototype.dispatchToElement=function(t,e,i){t=t||{};var n=t.target;if(!n||!n.silent){for(var r="on"+e,o=Lt(e,t,i);n&&(n[r]&&(o.cancelBubble=!!n[r].call(n,o)),n.trigger(e,o),n=n.__hostTarget?n.__hostTarget:n.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)}))}},i.prototype.findHover=function(t,e,i){for(var n=this.storage.getDisplayList(),r=new Jy(t,e),o=n.length-1;o>=0;o--){var a=void 0;if(n[o]!==i&&!n[o].ignore&&(a=Rt(n[o],t,e))&&(!r.topTarget&&(r.topTarget=n[o]),a!==Ky)){r.target=n[o];break}}return r},i.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new qy);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r;var o=new Jy;o.target=n.target,this.dispatchToElement(o,r,n.event)}},i}(Hy);g(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){tv.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=Nt(this,r,o);if("mouseup"===t&&a||(i=this.findHover(r,o),n=i.target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Ry(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var ev,iv=32,nv=7,rv=1,ov=4,av=!1,sv=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ut}return t.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;r>n;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,gy.canvasSupported&&Wt(i,Ut)},t.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var r=n,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,i)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Gt(),u.z=0),isNaN(u.z2)&&(Gt(),u.z2=0),isNaN(u.zlevel)&&(Gt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,i)}},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,i=t.length;i>e;e++)this.delRoot(t[e]);else{var n=c(this._roots,t);n>=0&&this._roots.splice(n,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,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4):i*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}},hv=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 i=(t-this._startTime-this._pausedTime)/this._life;0>i&&(i=0),i=Math.min(i,1);var n=this.easing,r="string"==typeof n?uv[n]:n,o="function"==typeof r?r(i):i;if(this.onframe&&this.onframe(o),1===i){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}(),cv=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 cv(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,i=t.next;e?e.next=i:this.head=i,i?i.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 i=this._list,n=this._map,r=null;if(null==n[t]){var o=i.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new cv(e),a.key=t,i.insertEntry(a),n[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.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:ne,lift:ae,toHex:se,fastLerp:le,fastMapToColor:vv,lerp:ue,mapToColor:mv,modifyHSL:he,modifyAlpha:ce,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 i=this.keyframes,n=i.length;if(this.interpolable)if(d(e)){var r=Ae(e);if(n>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(n>0){var o=i[n-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=ne(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&&n>0){var o=i[n-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 i=this.arrDim,n=e.length,r=e[n-1],o=0;n>o;o++)e[o].percent=e[o].time/this.maxTime,i>0&&o!==n-1&&be(e[o].value,r.value,i);if(t&&this.needsAnimate()&&t.needsAnimate()&&i===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;for(var a=e[0].value,o=0;n>o;o++)0===i?e[o].additiveValue=this.isValueColor?_e([],e[o].value,a,-1):e[o].value-a:1===i?e[o].additiveValue=_e([],e[o].value,a,-1):2===i&&(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 i,n=null!=this._additiveTrack,r=n?"additiveValue":"value",o=this.keyframes,a=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor;if(0>e)i=0;else if(e<this._lastFramePercent){var h=Math.min(this._lastFrame+1,a-1);for(i=h;i>=0&&!(o[i].percent<=e);i--);i=Math.min(i,a-2)}else{for(i=this._lastFrame;a>i&&!(o[i].percent>e);i++);i=Math.min(i-1,a-2)}var c=o[i+1],p=o[i];if(p&&c){this._lastFrame=i,this._lastFramePercent=e;var f=c.percent-p.percent;if(0!==f){var d=(e-p.percent)/f,g=n?this._additiveValue:u?bv:t[s];if((l>0||u)&&!g&&(g=this._additiveValue=[]),this.useSpline){var y=o[i][r],v=o[0===i?i:i-1][r],m=o[i>a-2?a-1:i+1][r],_=o[i>a-3?a-1:i+2][r];if(l>0)1===l?Te(g,v,y,m,_,d,d*d,d*d*d):Me(g,v,y,m,_,d,d*d,d*d*d);else if(u)Te(g,v,y,m,_,d,d*d,d*d*d),n||(t[s]=Ie(g));else{var x=void 0;x=this.interpolable?Se(v,y,m,_,d,d*d,d*d*d):m,n?this._additiveValue=x:t[s]=x}}else if(l>0)1===l?ve(g,p[r],c[r],d):me(g,p[r],c[r],d);else if(u)ve(g,p[r],c[r],d),n||(t[s]=Ie(g));else{var x=void 0;x=this.interpolable?ge(p[r],c[r],d):ye(p[r],c[r],d),n?this._additiveValue=x:t[s]=x}n&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,i=this.propName,n=this._additiveValue;0===e?this.isValueColor?(ne(t[i],bv),_e(bv,bv,n,1),t[i]=Ie(bv)):t[i]=t[i]+n:1===e?_e(t[i],t[i],n,1):2===e&&xe(t[i],t[i],n,1)},t}(),Sv=function(){function t(t,e,i){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&&i?void o("Can' use additive animation on looped animation."):void(this._additiveAnimators=i)}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,i){for(var n=this._tracks,r=0;r<i.length;r++){var o=i[r],a=n[o];if(!a){a=n[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,Ce(s)),this._trackKeys.push(o)}a.addKeyframe(t,Ce(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,i=0;e>i;i++)t[i].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 i=0;i<e.length;i++)e[i].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var r=i[n].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t,e){if(!(this._started>0)){this._started=1;for(var i=this,n=[],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())n.push(a);else if(!a.interpolable){var u=l[l.length-1];u&&(i._target[a.propName]=u.value)}}if(n.length||e){var h=new hv({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){i._started=2;var e=i._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(i._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(i._target,t);var a=i._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](i._target,t)},ondestroy:function(){i._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&"spline"!==t&&(h.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 i=this._tracks,n=this._trackKeys,r=0;r<t.length;r++){var o=i[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<n.length;r++)if(!i[n[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r&&!r.isFinished()){var o=r.keyframes,a=o[o.length-1];if(a){var s=Ce(a.value);r.isValueColor&&(s=Ie(s)),t[n]=s}}}}},t.prototype.__changeFinalValue=function(t,e){e=e||x(t);for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[n]),r.prepare(r.getAdditiveTrack())}}}},t}(),Tv=function(t){function i(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i.onframe=e.onframe||function(){},i}return e(i,t),i.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},i.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},i.prototype.removeClip=function(t){if(t.animation){var e=t.prev,i=t.next;e?e.next=i:this._clipsHead=i,i?i.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},i.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},i.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,i=e-this._time,n=this._clipsHead;n;){var r=n.next;n.step(e,i)?(n.ondestroy&&n.ondestroy(),this.removeClip(n),n=r):n=r}this._time=e,t||(this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){function t(){e._running&&(lv(t),!e._paused&&e.update())}var e=this;this._running=!0,lv(t)},i.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},i.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},i.prototype.isFinished=function(){return null==this._clipsHead},i.prototype.animate=function(t,e){e=e||{},this.start();var i=new Sv(t,e.loop);return this.addAnimator(i),i},i}(Hy),Mv=gy.domSupported,Cv=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 i=t.replace("mouse","pointer");return e.hasOwnProperty(i)?i:t})}}(),Iv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Av=!1,kv=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}(),Dv={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){Av=!0,t=It(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Av||(t=It(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=It(this.dom,t),Pe(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Dv.mousemove.call(this,t),Dv.mousedown.call(this,t)},touchmove:function(t){t=It(this.dom,t),Pe(t),this.handler.processGesture(t,"change"),Dv.mousemove.call(this,t)},touchend:function(t){t=It(this.dom,t),Pe(t),this.handler.processGesture(t,"end"),Dv.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Dv.click.call(this,t)},pointerdown:function(t){Dv.mousedown.call(this,t)},pointermove:function(t){ke(t)||Dv.mousemove.call(this,t)},pointerup:function(t){Dv.mouseup.call(this,t)},pointerout:function(t){ke(t)||Dv.mouseout.call(this,t)}};g(["click","dblclick","contextmenu"],function(t){Dv[t]=function(e){e=It(this.dom,e),this.trigger(t,e)}});var Pv={pointermove:function(t){ke(t)||Pv.mousemove.call(this,t)},pointerup:function(t){Pv.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))}},Ov=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Lv=function(t){function i(e,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new Ov(e,Dv),Mv&&(n._globalHandlerScope=new Ov(document,Pv)),Ee(n,n._localHandlerScope),n}return e(i,t),i.prototype.dispose=function(){ze(this._localHandlerScope),Mv&&ze(this._globalHandlerScope)},i.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},i.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Mv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Re(this,e):ze(e)}},i}(Hy),Ev=1;"undefined"!=typeof window&&(Ev=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Rv,Nv,zv=Ev,Bv=.4,Fv="#333",Hv="#ccc",Vv=(Object.freeze||Object)({create:Be,identity:Fe,copy:He,mul:Ve,translate:Ye,rotate:Xe,scale:We,invert:Ge,clone:Ue}),Yv=Fe,Xv=5e-5,Wv=[],Gv=[],Uv=Be(),jv=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 je(this.rotation)||je(this.x)||je(this.y)||je(this.scaleX-1)||je(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;return e||t?(i=i||Be(),e?this.getLocalTransform(i):Yv(i),t&&(e?Ve(i,t,i):He(i,t)),this.transform=i,void this._resolveGlobalScaleRatio(i)):void(i&&Yv(i))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Wv);var i=Wv[0]<0?-1:1,n=Wv[1]<0?-1:1,r=((Wv[0]-i)*e+i)/Wv[0]||0,o=((Wv[1]-n)*e+n)/Wv[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Be(),Ge(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],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),r=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ve(Gv,t.invTransform,e),e=Gv);var i=this.originX,n=this.originY;(i||n)&&(Uv[4]=i,Uv[5]=n,Ve(Gv,e,Uv),Gv[4]-=i,Gv[5]-=n,e=Gv),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 i=[t,e],n=this.invTransform;return n&&dt(i,i,n),i},t.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&dt(i,i,n),i},t.prototype.getLineScale=function(){var t=this.transform;return t&&jv(t[0]-1)>1e-10&&jv(t[3]-1)>1e-10?Math.sqrt(jv(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){for(var e=this,i=0;i<Zv.length;i++){var n=Zv[i];e[n]=t[n]}},t.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=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,h=t.skewY?Math.tan(-t.skewY):0;return i||n?(e[4]=-i*r-u*n*o,e[5]=-n*o-h*i*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=h*r,e[2]=u*o,a&&Xe(e,e,a),e[4]+=i+s,e[5]+=n+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"],Kv=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,i=this.y-t.y;return Math.sqrt(e*e+i*i)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},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,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+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,i){t.x=e,t.y=i},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,i){t.x=e.x+i.x,t.y=e.y+i.y},t.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},t.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},t.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},t.lerp=function(t,e,i,n){var r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},t}(),Qv=Math.min,Jv=Math.max,$v=new Kv,tm=new Kv,em=new Kv,im=new Kv,nm=new Kv,rm=new Kv,om=function(){function t(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return t.prototype.union=function(t){var e=Qv(t.x,this.x),i=Qv(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)-i:t.height,this.x=e,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=Be();return Ye(r,r,[-e.x,-e.y]),We(r,r,[i,n]),Ye(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,i){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,r=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||r>u||h>s||a>c);if(i){var f=1/0,d=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,y),x=Math.min(v,m);l>o||r>u?_>d&&(d=_,y>g?Kv.set(rm,-g,0):Kv.set(rm,y,0)):f>_&&(f=_,y>g?Kv.set(nm,g,0):Kv.set(nm,-y,0)),h>s||a>c?x>d&&(d=x,m>v?Kv.set(rm,0,-v):Kv.set(rm,0,m)):f>_&&(f=_,m>v?Kv.set(nm,0,v):Kv.set(nm,0,-m))}return i&&Kv.copy(i,p?nm:rm),p},t.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.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,i,n){if(!n)return void(e!==i&&t.copy(e,i));if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],o=n[3],a=n[4],s=n[5];return e.x=i.x*r+a,e.y=i.y*o+s,e.width=i.width*r,e.height=i.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))}$v.x=em.x=i.x,$v.y=im.y=i.y,tm.x=im.x=i.x+i.width,tm.y=em.y=i.y+i.height,$v.transform(n),im.transform(n),tm.transform(n),em.transform(n),e.x=Qv($v.x,tm.x,em.x,im.x),e.y=Qv($v.y,tm.y,em.y,im.y);var l=Jv($v.x,tm.x,em.x,im.x),u=Jv($v.y,tm.y,em.y,im.y);e.width=l-e.x,e.height=u-e.y},t}(),am={},sm="12px sans-serif",lm={measureText:qe},um="__zr_normal__",hm=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],cm={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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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 i=this.textConfig,n=i.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=n?this:null;var l=!1;if(r.copyTransform(e),null!=i.position){var u=fm;u.copy(i.layoutRect?i.layoutRect:this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pm,i,u):ii(pm,i,u),r.x=pm.x,r.y=pm.y,o=pm.align,a=pm.verticalAlign;var h=i.origin;if(h&&null!=i.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=ei(h[0],u.width),p=ei(h[1],u.height)),l=!0,r.originX=-r.x+c+(n?0:u.x),r.originY=-r.y+p+(n?0:u.y)}}null!=i.rotation&&(r.rotation=i.rotation);var f=i.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var d=null==i.inside?"string"==typeof i.position&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;d&&this.canBeInsideText()?(y=i.insideFill,v=i.insideStroke,(null==y||"auto"===y)&&(y=this.getInsideTextFill()),(null==v||"auto"===v)&&(v=this.getInsideTextStroke(y),m=!0)):(y=i.outsideFill,v=i.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()?Hv:Fv},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&ne(t);e||(e=[255,255,255,1]);for(var i=e[3],n=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*i+(n?0:255)*(1-i);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(A(t))for(var i=t,n=x(i),r=0;r<n.length;r++){var o=n[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],r=n.__fromStateTransition;if(!r||r===um){var o=n.targetName,a=o?e[o]:e;n.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,hm)},t.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];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,i,n){var r=t===um;if(this.hasState()||!r){var a=this.currentStates,s=this.stateTransition;if(!(c(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||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,i,u),p&&p.useState(t,e,i,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,i){if(t.length){var n=[],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&&n.push(u)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(n),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,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&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=c(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),r=c(n,t),o=c(n,e)>=0;r>=0?o?n.splice(r,1):n[r]=e:i&&!o&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var r=t[n];u(i,r),r.textConfig&&(e=e||{},u(e,r.textConfig))}return e&&(i.textConfig=e),i},t.prototype._applyStateObj=function(t,e,i,n,r,o){var a=!(e&&n);e&&e.textConfig?(this.textConfig=u({},n?this.textConfig:i.textConfig),u(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig);for(var s={},l=!1,h=0;h<hm.length;h++){var c=hm[h],p=r&&cm[c];e&&null!=e[c]?p?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=i[c]&&(p?(l=!0,s[c]=i[c]):this[c]=i[c])}if(!r)for(var h=0;h<this.animators.length;h++){var f=this.animators[h],d=f.targetName;f.__changeFinalValue(d?(e||i)[d]:e||i)}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,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),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 i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);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 i=t?this[t]:this;if(!i)return void o('Property "'+t+'" is not existed in element '+this.id);var n=new Sv(i,e);return this.addAnimator(n,t),n},t.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var e=n.animators,i=c(e,t);i>=0&&e.splice(i,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,r=[],o=0;n>o;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,i){ni(this,t,e,i)},t.prototype.animateFrom=function(t,e,i){ni(this,t,e,i,!0)},t.prototype._transitionState=function(t,e,i,n){for(var r=ni(this,e,i,n),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,i){r[t+e+i]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+i+"' instead"),r[t+e+i]=!0)}function i(t,i,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(n,t,{get:function(){if(e(t,r,o),!this[i]){a(this,this[i]=[])}return this[i]},set:function(n){e(t,r,o),this[r]=n[0],this[o]=n[1],this[i]=n,a(this,n)}})}var n=t.prototype;n.type="element",n.name="",n.ignore=!1,n.silent=!1,n.isGroup=!1,n.draggable=!1,n.dragging=!1,n.ignoreClip=!1,n.__inHover=!1,n.__dirty=rv;var r={};Object.defineProperty&&(!gy.browser.ie||gy.browser.version>8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();f(dm,Hy),f(dm,qv);var gm=function(t){function i(e){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return e(i,t),i.prototype.childrenRef=function(){return this._children},i.prototype.children=function(){return this._children.slice()},i.prototype.childAt=function(t){return this._children[t]},i.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},i.prototype.childCount=function(){return this._children.length},i.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},i.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},i.prototype.replace=function(t,e){var i=c(this._children,t);return i>=0&&this.replaceAt(e,i),this},i.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];if(t&&t!==this&&t.parent!==this&&t!==n){i[e]=t,n.parent=null;var r=this.__zr;r&&n.removeSelfFromZr(r),this._doAdd(t)}return this},i.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()},i.prototype.remove=function(t){var e=this.__zr,i=this._children,n=c(i,t);return 0>n?this:(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},i.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},i.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},i.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&n.traverse(t,e)}return this},i.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){this._children[i].addSelfToZr(e)}},i.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){this._children[i].removeSelfFromZr(e)}},i.prototype.getBoundingRect=function(t){for(var e=new om(0,0,0,0),i=t||this._children,n=[],r=null,o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(n);l?(om.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},i}(dm);gm.prototype.type="group";var ym=!gy.canvasSupported,vm={},mm={},_m=function(){function t(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var r=new sv,o=i.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.");i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var a=new vm[o](e,r,i,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 Tv({stage:{update:function(){return n._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=ui(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,i=(new Date).getTime();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=(new Date).getTime();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):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,i){return this.handler.on(t,e,i),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,li(this.id)},t}(),xm=(Object.freeze||Object)({init:hi,dispose:ci,disposeAll:pi,getInstance:fi,registerPainter:di,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)?)?)?)?)?$/,Tm=("undefined"!=typeof console&&console.warn&&console.log,"series\0"),Mm="\0_ec_\0",Cm=["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=Ri(),Am={useDefault:!0,enableAll:!1,enableNone:!1},km=".",Dm="___EC__COMPONENT__CONTAINER___",Pm="___EC__EXTENDED_CLASS___",Om=Math.round(10*Math.random()),Lm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Em=wn(Lm),Rm=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Em(this,t,e)},t}(),Nm=new fv(50),zm=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Bm=function(){function t(){}return t}(),Fm=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Hm=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}(),Vm=v(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Ym="__zr_style_"+Math.round(10*Math.random()),Xm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Wm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xm[Ym]=!0;var Gm=["z","z2","invisible"],Um=["invisible"],jm=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype._init=function(e){for(var i=x(e),n=0;n<i.length;n++){var r=i[n];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},i.prototype.beforeBrush=function(){},i.prototype.afterBrush=function(){},i.prototype.innerBeforeBrush=function(){},i.prototype.innerAfterBrush=function(){},i.prototype.shouldBePainted=function(t,e,i,n){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&zn(this,t,e)||r&&!r[0]&&!r[3])return!1;if(i&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},i.prototype.contain=function(t,e){return this.rectContain(t,e)},i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.rectContain=function(t,e){var i=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(i[0],i[1])},i.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,i=this.getBoundingRect(),n=this.style,r=n.shadowBlur||0,o=n.shadowOffsetX||0,a=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new om(0,0,0,0)),e?om.applyTransform(t,i,e):t.copy(i),(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},i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new om(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},i.prototype.animateStyle=function(t){return this.animate("style",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},i.prototype.attrKV=function(e,i){"style"!==e?t.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:u(this.style,t),this.dirtyStyle(),this},i.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},i.prototype.dirty=function(){this.dirtyStyle()},i.prototype.styleChanged=function(){return!!(2&this.__dirty)},i.prototype.styleUpdated=function(){this.__dirty&=-3},i.prototype.createStyle=function(t){return j(Xm,t)},i.prototype.useStyle=function(t){t[Ym]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},i.prototype.isStyleObject=function(t){return t[Ym]},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Gm)},i.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r);if(i&&i.style?o?r?s=i.style:(s=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(s,i.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:n.style),this._mergeStyle(s,i.style)):l&&(s=n.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=x(u),c=0;c<h.length;c++){var p=h[c];p in s&&(s[p]=s[p],this.style[p]=u[p])}for(var f=x(s),c=0;c<f.length;c++){var p=f[c];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var d=this.__inHover?Um:Gm,c=0;c<d.length;c++){var p=d[c];i&&null!=i[p]?this[p]=i[p]:l&&null!=n[p]&&(this[p]=n[p])}},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},i.prototype._mergeStyle=function(t,e){return u(t,e),t},i.prototype.getAnimationStyleProps=function(){return Wm},i.initDefaultProps=function(){var t=i.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}(),i}(dm),qm=new om(0,0,0,0),Zm=new om(0,0,0,0),Km=Math.pow,Qm=Math.sqrt,Jm=1e-8,$m=1e-4,t_=Qm(3),e_=1/3,i_=K(),n_=K(),r_=K(),o_=Math.min,a_=Math.max,s_=Math.sin,l_=Math.cos,u_=2*Math.PI,h_=K(),c_=K(),p_=K(),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,T_=Math.cos,M_=Math.sin,C_=Math.sqrt,I_=Math.abs,A_=Math.PI,k_=2*A_,D_="undefined"!=typeof Float32Array,P_=[],O_=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,i){(i=i||0)>0&&(this._ux=I_(i/zv/t)||0,this._uy=I_(i/zv/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 i=I_(t-this._xi),n=I_(e-this._yi),r=i>this._ux||n>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=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(g_.C,t,e,i,n,r,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,i,n,r,o):this._ctx.bezierCurveTo(t,e,i,n,r,o)),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(g_.Q,t,e,i,n),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},t.prototype.arc=function(t,e,i,n,r,o){this._drawPendingPt(),P_[0]=n,P_[1]=r,ar(P_,o),n=P_[0],r=P_[1];var a=r-n;return this.addData(g_.A,t,e,i,i,n,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=T_(r)*i+t,this._yi=M_(r)*i+e,this},t.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},t.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(g_.R,t,e,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(g_.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},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,i=0;i<t.length;i++)e+=t[i];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||!D_||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();D_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},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 i,n,r=this._dashSum,o=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,h=t-l,c=e-u,p=C_(h*h+c*c),f=l,d=u,g=o.length;for(h/=p,c/=p,0>s&&(s=r+s),s%=r,f-=s*h,d-=s*c;h>0&&t>=f||0>h&&f>=t||0===h&&(c>0&&e>=d||0>c&&d>=e);)n=this._dashIdx,i=o[n],f+=h*i,d+=c*i,this._dashIdx=(n+1)%g,h>0&&l>f||0>h&&f>l||c>0&&u>d||0>c&&d>u||a[n%2?"moveTo":"lineTo"](h>=0?w_(f,t):S_(f,t),c>=0?w_(d,e):S_(d,e));h=f-t,c=d-e,this._dashOffset=-C_(h*h+c*c)},t.prototype._dashedBezierTo=function(t,e,i,n,r,o){var a,s,l,u,h,c=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=Hn(g,t,i,r,a+.1)-Hn(g,t,i,r,a),l=Hn(y,e,n,o,a+.1)-Hn(y,e,n,o,a),v+=C_(s*s+l*l);for(;_>m&&!((x+=d[m])>f);m++);for(a=(x-f)/v;1>=a;)u=Hn(g,t,i,r,a),h=Hn(y,e,n,o,a),m%2?c.moveTo(u,h):c.lineTo(u,h),a+=d[m]/v,m=(m+1)%_;m%2!=0&&c.lineTo(r,o),s=r-u,l=o-h,this._dashOffset=-C_(s*s+l*l)},t.prototype._dashedQuadraticTo=function(t,e,i,n){var r=i,o=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,o)},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,D_&&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,i=0,n=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=e[t],n=e[t+1],r=i,o=n),a){case g_.M:i=r=e[t++],n=o=e[t++],x_[0]=r,x_[1]=o,b_[0]=r,b_[1]=o;break;case g_.L:er(i,n,e[t],e[t+1],x_,b_),i=e[t++],n=e[t++];break;case g_.C:ir(i,n,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],x_,b_),i=e[t++],n=e[t++];break;case g_.Q:nr(i,n,e[t++],e[t++],e[t],e[t+1],x_,b_),i=e[t++],n=e[t++];break;case g_.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],p=e[t++],f=e[t++]+p;t+=1;var d=!e[t++];s&&(r=T_(p)*h+l,o=M_(p)*c+u),rr(l,u,h,c,p,f,d,x_,b_),i=T_(f)*h+l,n=M_(f)*c+u;break;case g_.R:r=i=e[t++],o=n=e[t++];er(r,o,r+e[t++],o+e[t++],x_,b_);break;case g_.Z:i=r,n=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,i=this._ux,n=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;e>c;){var p=t[c++],f=1===c;f&&(r=t[c],o=t[c+1],a=r,s=o);var d=-1;switch(p){case g_.M:r=a=t[c++],o=s=t[c++];break;case g_.L:var g=t[c++],y=t[c++],v=g-r,m=y-o;(I_(v)>i||I_(m)>n||c===e-1)&&(d=Math.sqrt(v*v+m*m),r=g,o=y);break;case g_.C:var _=t[c++],x=t[c++],g=t[c++],y=t[c++],b=t[c++],w=t[c++];d=Un(r,o,_,x,g,y,b,w,10),r=b,o=w;break;case g_.Q:var _=t[c++],x=t[c++],g=t[c++],y=t[c++];d=$n(r,o,_,x,g,y,10),r=g,o=y;break;case g_.A:var S=t[c++],T=t[c++],M=t[c++],C=t[c++],I=t[c++],A=t[c++],k=A+I;c+=1,t[c++],f&&(a=T_(I)*M+S,s=M_(I)*C+T),d=S_(M,C)*w_(k_,Math.abs(A)),r=T_(k)*M+S,o=M_(k)*C+T;break;case g_.R:a=r=t[c++],s=o=t[c++];d=2*t[c++]+2*t[c++];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[h++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var i,n,r,o,a,s,l,u,h,c,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,h=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],i=r,n=o),w!==g_.L&&x>0&&(t.lineTo(c,p),x=0),w){case g_.M:i=r=f[b++],n=o=f[b++],t.moveTo(r,o);break;case g_.L:a=f[b++],s=f[b++];var T=I_(a-r),M=I_(s-o);if(T>d||M>g){if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=C}t.lineTo(a,s),r=a,o=s,x=0}else{var A=T*T+M*M;A>x&&(c=a,p=s,x=A)}break;case g_.C:var k=f[b++],D=f[b++],P=f[b++],O=f[b++],L=f[b++],E=f[b++];if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;Wn(r,k,P,L,I,y_),Wn(o,D,O,E,I,v_),t.bezierCurveTo(y_[1],v_[1],y_[2],v_[2],y_[3],v_[3]);break t}m+=C}t.bezierCurveTo(k,D,P,O,L,E),r=L,o=E;break;case g_.Q:var k=f[b++],D=f[b++],P=f[b++],O=f[b++];if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;Qn(r,k,P,I,y_),Qn(o,D,O,I,v_),t.quadraticCurveTo(y_[1],v_[1],y_[2],v_[2]);break t}m+=C}t.quadraticCurveTo(k,D,P,O),r=P,o=O;break;case g_.A:var R=f[b++],N=f[b++],z=f[b++],B=f[b++],F=f[b++],H=f[b++],V=f[b++],Y=!f[b++],X=z>B?z:B,W=I_(z-B)>.001,G=F+H,U=!1;if(v){var C=l[_++];m+C>h&&(G=F+H*(h-m)/C,U=!0),m+=C}if(W&&t.ellipse?t.ellipse(R,N,z,B,V,F,G,Y):t.arc(R,N,X,F,G,Y),U)break t;S&&(i=T_(F)*z+R,n=M_(F)*B+N),r=T_(G)*z+R,o=M_(G)*B+N;break;case g_.R:i=r=f[b],n=o=f[b+1],a=f[b++],s=f[b++];var j=f[b++],q=f[b++];if(v){var C=l[_++];if(m+C>h){var Z=h-m;t.moveTo(a,s),t.lineTo(a+w_(Z,j),s),Z-=j,Z>0&&t.lineTo(a+j,s+w_(Z,q)),Z-=q,Z>0&&t.lineTo(a+S_(j-Z,0),s+q),(Z-=j)>0&&t.lineTo(a,s+S_(q-Z,0));break t}m+=C}t.rect(a,s,j,q);break;case g_.Z:if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+i*I,o*(1-I)+n*I);break t}m+=C}t.closePath(),r=i,o=n}}},t.prototype.clone=function(){var e=new t,i=this.data;return e.data=i.slice?i.slice():Array.prototype.slice.call(i),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,E_=2*Math.PI,R_=O_.CMD,N_=2*Math.PI,z_=1e-4,B_=[-1,-1,-1],F_=[-1,-1],H_=h({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xm),V_={style:h({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Wm.style)},Y_=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],X_=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.update=function(){var e=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var r=this._decalEl=this._decalEl||new i;r.buildPath===i.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<Y_.length;++s)r[Y_[s]]=this[Y_[s]];r.__dirty|=rv}else this._decalEl&&(this._decalEl=null)},i.prototype.getDecalElement=function(){return this._decalEl},i.prototype._init=function(e){var i=x(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var r=0;r<i.length;r++){var o=i[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({})},i.prototype.getDefaultStyle=function(){return null},i.prototype.getDefaultShape=function(){return{}},i.prototype.canBeInsideText=function(){return this.hasFill()},i.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(M(t)){var e=fe(t,0);return e>.5?Fv:e>.2?"#eee":Hv}if(t)return Hv}return Fv},i.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(M(e)){var i=this.__zr;if(!(!i||!i.isDarkMode())===fe(t,0)<Bv)return e}},i.prototype.buildPath=function(){},i.prototype.pathUpdated=function(){this.__dirty&=~ov},i.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},i.prototype.createPathProxy=function(){this.path=new O_(!1)},i.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},i.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},i.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var r=this.path;(n||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||i){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},i.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.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},i.prototype.dirtyShape=function(){this.__dirty|=ov,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(t){return this.animate("shape",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(e,i){"shape"===e?this.setShape(i):t.prototype.attrKV.call(this,e,i)},i.prototype.setShape=function(t,e){var i=this.shape;return i||(i=this.shape={}),"string"==typeof t?i[t]=e:u(i,t),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(this.__dirty&ov)},i.prototype.createStyle=function(t){return j(H_,t)},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=u({},this.shape))},i.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r);if(i&&i.shape?o?r?s=i.shape:(s=u({},n.shape),u(s,i.shape)):(s=u({},r?this.shape:n.shape),u(s,i.shape)):l&&(s=n.shape),s)if(o){this.shape=u({},this.shape);for(var h={},c=x(s),p=0;p<c.length;p++){var f=c[p];"object"==typeof s[f]?this.shape[f]=s[f]:h[f]=s[f]}this._transitionState(e,{shape:h},a)}else this.shape=s,this.dirtyShape()},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},i.prototype.getAnimationStyleProps=function(){return V_},i.prototype.isZeroArea=function(){return!1},i.extend=function(t){var n=function(i){function n(e){var n=i.call(this,e)||this;return t.init&&t.init.call(n,e),n}return e(n,i),n.prototype.getDefaultStyle=function(){return a(t.style)},n.prototype.getDefaultShape=function(){return a(t.shape)},n}(i);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},i.initDefaultProps=function(){var t=i.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=2|rv|ov}(),i}(jm),W_=h({strokeFirst:!0,font:sm,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},H_),G_=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},i.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},i.prototype.createStyle=function(t){return j(W_,t)},i.prototype.setBoundingRect=function(t){this._rect=t},i.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var i=Qe(e,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},i.initDefaultProps=function(){i.prototype.dirtyRectTolerance=10}(),i}(jm);G_.prototype.type="tspan";var U_=h({x:0,y:0},Xm),j_={style:h({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Wm.style)},q_=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.createStyle=function(t){return j(U_,t)},i.prototype._getSize=function(t){var e=this.style,i=e[t];if(null!=i)return i;var n=br(e.image)?e.image:this.__image;if(!n)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?n[t]:n[t]/n[r]*o},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return j_},i.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},i}(jm);q_.prototype.type="image";var Z_=Math.round,K_=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Q_={},J_=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new K_},i.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Tr(Q_,e,this.style);i=a.x,n=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else i=e.x,n=e.y,r=e.width,o=e.height;e.r?wr(t,e):t.rect(i,n,r,o)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(X_);J_.prototype.type="rect";var $_={fill:"#000"},tx={style:h({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},Wm.style)},ex=function(t){function i(e){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=$_,i.attr(e),i}return e(i,t),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},i.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},i.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},i.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},i.prototype._updateSubTexts=function(){this._childCursor=0,Cr(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},i.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},i.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},i.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new om(0,0,0,0),e=this._children,i=[],n=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(i);s?(t.copy(a),t.applyTransform(s),n=n||t.clone(),n.union(t)):(n=n||a.clone(),n.union(a))}this._rect=n||t}return this._rect},i.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||$_},i.prototype.setTextContent=function(){throw new Error("Can't attach text on another text")},i.prototype._mergeStyle=function(t,e){if(!e)return t;var i=e.rich,n=t.rich||i&&{};return u(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n),t},i.prototype._mergeRich=function(t,e){for(var i=x(e),n=0;n<i.length;n++){var r=i[n];t[r]=t[r]||{},u(t[r],e[r])}},i.prototype.getAnimationStyleProps=function(){return tx},i.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},i.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||sm,i=t.padding,n=Pr(t),r=Pn(n,t),o=Or(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.lines,u=r.lineHeight,h=this._defaultStyle,c=t.x||0,p=t.y||0,f=t.align||h.align||"left",d=t.verticalAlign||h.verticalAlign||"top",g=c,y=$e(p,r.contentHeight,d);if(o||i){var v=r.width;i&&(v+=i[1]+i[3]);var m=Je(c,v,f),_=$e(p,s,d);o&&this._renderBackground(t,t,m,_,v,s)}y+=u/2,i&&(g=Dr(c,f,i),"top"===d?y+=i[0]:"bottom"===d&&(y-=i[2]));for(var x=0,b=!1,w=(kr("fill"in t?t.fill:(b=!0,h.fill))),S=(Ar("stroke"in t?t.stroke:a||h.autoStroke&&!b?null:(x=2,h.stroke))),T=t.textShadowBlur>0,M=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=r.calculatedLineHeight,I=0;I<l.length;I++){var A=this._getOrCreateChild(G_),k=A.createStyle();A.useStyle(k),k.text=l[I],k.x=g,k.y=y,f&&(k.textAlign=f),k.textBaseline="middle",k.opacity=t.opacity,k.strokeFirst=!0,T&&(k.shadowBlur=t.textShadowBlur||0,k.shadowColor=t.textShadowColor||"transparent",k.shadowOffsetX=t.textShadowOffsetX||0,k.shadowOffsetY=t.textShadowOffsetY||0),S&&(k.stroke=S,k.lineWidth=t.lineWidth||x,k.lineDash=t.lineDash,k.lineDashOffset=t.lineDashOffset||0),w&&(k.fill=w),k.font=e,y+=u,M&&A.setBoundingRect(new om(Je(k.x,t.width,k.textAlign),$e(k.y,C,k.textBaseline),t.width,C))}},i.prototype._updateRichTexts=function(){var t=this.style,e=Pr(t),i=On(e,t),n=i.width,r=i.outerWidth,o=i.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,h=t.align||u.align,c=t.verticalAlign||u.verticalAlign,p=Je(s,r,h),f=$e(l,o,c),d=p,g=f;a&&(d+=a[3],g+=a[0]);var y=d+n;Or(t)&&this._renderBackground(t,t,p,f,r,o);for(var v=!!t.backgroundColor,m=0;m<i.lines.length;m++){for(var _=i.lines[m],x=_.tokens,b=x.length,w=_.lineHeight,S=_.width,T=0,M=d,C=y,I=b-1,A=void 0;b>T&&(A=x[T],!A.align||"left"===A.align);)this._placeToken(A,t,w,g,M,"left",v),S-=A.width,M+=A.width,T++;for(;I>=0&&(A=x[I],"right"===A.align);)this._placeToken(A,t,w,g,C,"right",v),S-=A.width,C-=A.width,I--;for(M+=(n-(M-d)-(y-C)-S)/2;I>=T;)A=x[T],this._placeToken(A,t,w,g,M+A.width/2,"center",v),M+=A.width,T++;g+=w}},i.prototype._placeToken=function(t,e,i,n,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=n+i/2;"top"===l?u=n+t.height/2:"bottom"===l&&(u=n+i-t.height/2),!t.isLineHolder&&Or(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 h=!!s.backgroundColor,c=t.textPadding;c&&(r=Dr(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(G_),f=p.createStyle();p.useStyle(f);var d=this._defaultStyle,g=!1,y=0,v=kr("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,d.fill)),m=Ar("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||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=B(s.opacity,e.opacity,1),m&&(f.lineWidth=B(s.lineWidth,e.lineWidth,y),f.lineDash=z(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),$e(f.y,b,f.textBaseline),x,b))},i.prototype._renderBackground=function(t,e,i,n,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,f=t.borderRadius,d=this;if(p||t.lineHeight||u&&h){a=this._getOrCreateChild(J_),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=i,g.y=n,g.width=r,g.height=o,g.r=f,a.dirtyShape()}if(p){var y=a.style;y.fill=l||null,y.fillOpacity=z(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(q_),s.onload=function(){d.dirtyStyle()};var v=s.style;v.image=l.image,v.x=i,v.y=n,v.width=r,v.height=o}if(u&&h){var y=a.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=z(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=B(t.opacity,e.opacity,1)},i.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var i="";i="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,i,t.fontFamily||"sans-serif"].join(" ")}return e&&Y(e)||t.textFont||t.font},i}(jm),ix={left:!0,right:1,center:1},nx={top:1,bottom:1,middle:1},rx=on(),ox=function(t,e,i,n){if(n){var r=rx(n);r.dataIndex=i,r.dataType=e,r.seriesIndex=t,"group"===n.type&&n.traverse(function(n){var r=rx(n);r.seriesIndex=t,r.dataIndex=i,r.dataType=e})}},ax=1,sx={},lx=on(),ux=0,hx=1,cx=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"],Tx={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Mx=O_.CMD,Cx=[[],[],[]],Ix=Math.sqrt,Ax=Math.atan2,kx=Math.sqrt,Dx=Math.sin,Px=Math.cos,Ox=Math.PI,Lx=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ex=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Rx=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.applyTransform=function(){},i}(X_),Nx=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),zx=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new Nx},i.prototype.buildPath=function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},i}(X_);zx.prototype.type="circle";var Bx=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Fx=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new Bx},i.prototype.buildPath=function(t,e){var i=.5522848,n=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*i,l=a*i;t.moveTo(n-o,r),t.bezierCurveTo(n-o,r-l,n-s,r-a,n,r-a),t.bezierCurveTo(n+s,r-a,n+o,r-l,n+o,r),t.bezierCurveTo(n+o,r+l,n+s,r+a,n,r+a),t.bezierCurveTo(n-s,r+a,n-o,r+l,n-o,r),t.closePath()},i}(X_);Fx.prototype.type="ellipse";var Hx=Math.PI,Vx=2*Hx,Yx=Math.sin,Xx=Math.cos,Wx=Math.acos,Gx=Math.atan2,Ux=Math.abs,jx=Math.sqrt,qx=Math.max,Zx=Math.min,Kx=1e-4,Qx=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 i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new Qx},i.prototype.buildPath=function(t,e){Fo(t,e)},i.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},i}(X_);Jx.prototype.type="sector";var $x=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),tb=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new $x},i.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},i}(X_);tb.prototype.type="ring";var eb=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),ib=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new eb},i.prototype.buildPath=function(t,e){Xo(t,e,!0)},i}(X_);ib.prototype.type="polygon";var nb=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),rb=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new nb},i.prototype.buildPath=function(t,e){Xo(t,e,!1)},i}(X_);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 i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new ab},i.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Sr(ob,e,this.style);i=a.x1,n=a.y1,r=a.x2,o=a.y2}else i=e.x1,n=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(i,n),1>s&&(r=i*(1-s)+r*s,o=n*(1-s)+o*s),t.lineTo(r,o))},i.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},i}(X_);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}(),hb=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new ub},i.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(i,n),null==l||null==u?(1>h&&(Qn(i,a,r,h,lb),a=lb[1],r=lb[2],Qn(n,s,o,h,lb),s=lb[1],o=lb[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(Wn(i,a,l,r,h,lb),a=lb[1],l=lb[2],r=lb[3],Wn(n,s,u,o,h,lb),s=lb[1],u=lb[2],o=lb[3]),t.bezierCurveTo(a,s,l,u,r,o)))},i.prototype.pointAt=function(t){return Wo(this.shape,t,!1)},i.prototype.tangentAt=function(t){var e=Wo(this.shape,t,!0);return ut(e,e)},i}(X_);hb.prototype.type="bezier-curve";var cb=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 i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new cb},i.prototype.buildPath=function(t,e){var i=e.cx,n=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+i,u*r+n),t.arc(i,n,r,o,a,!s)},i}(X_);pb.prototype.type="arc";var fb=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(i,t),i.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},i.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},i.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},i.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},i.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),X_.prototype.getBoundingRect.call(this)},i}(X_),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 i(e,i,n,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==i?0:i,s.x2=null==n?1:n,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return e(i,t),i}(db),yb=function(t){function i(e,i,n,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==i?.5:i,a.r=null==n?.5:n,a.type="radial",a.global=o||!1,a}return e(i,t),i}(db),vb=[0,0],mb=[0,0],_b=new Kv,xb=new Kv,bb=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;4>i;i++)this._corners[i]=new Kv;for(var i=0;2>i;i++)this._axes[i]=new Kv;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,s),i[3].set(r,s),e)for(var l=0;4>l;l++)i[l].transform(e);Kv.sub(n[0],i[1],i[0]),Kv.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;2>l;l++)this._origin[l]=n[l].dot(i[0])},t.prototype.intersect=function(t,e){var i=!0,n=!e;return _b.set(1/0,1/0),xb.set(0,0),!this._intersectCheckOneSide(this,t,_b,xb,n,1)&&(i=!1,n)?i:!this._intersectCheckOneSide(t,this,_b,xb,n,-1)&&(i=!1,n)?i:(n||Kv.copy(e,i?_b:xb),i)},t.prototype._intersectCheckOneSide=function(t,e,i,n,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]),h=Math.abs(vb[0]-mb[1]);Math.min(u,h)>n.len()&&(h>u?Kv.scale(n,l,-u*o):Kv.scale(n,l,h*o))}else if(i){var u=Math.abs(mb[0]-vb[1]),h=Math.abs(vb[0]-mb[1]);Math.min(u,h)<i.len()&&(h>u?Kv.scale(i,l,u*o):Kv.scale(i,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(n)+r[t];a=Math.min(u,a),s=Math.max(u,s)}i[0]=a,i[1]=s},t}(),wb=[],Sb=function(t){function i(){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(i,t),i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.useStyle=function(){this.style={}},i.prototype.getCursor=function(){return this._cursor},i.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},i.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},i.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},i.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},i.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},i.prototype.getDisplayables=function(){return this._displayables},i.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},i.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])},i.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}},i.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 i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(wb)),t.union(n)}this._rect=t}return this._rect},i.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++){var r=this._displayables[n];if(r.contain(t,e))return!0}return!1},i}(jm),Tb=on(),Mb=Math.max,Cb=Math.min,Ib={},Ab=Ro,kb=No,Db=Mr;ia("circle",zx),ia("ellipse",Fx),ia("sector",Jx),ia("ring",tb),ia("polygon",ib),ia("polyline",rb),ia("rect",J_),ia("line",sb),ia("bezierCurve",hb),ia("arc",pb);var Pb=(Object.freeze||Object)({updateProps:jo,initProps:qo,removeElement:Ko,removeElementWithFadeOut:Jo,isElementRemoved:Zo,extendShape:ta,extendPath:ea,registerShape:ia,getShapeClass:na,makePath:ra,makeImage:oa,mergePath:kb,resizePath:sa,subPixelOptimizeLine:la,subPixelOptimizeRect:ua,subPixelOptimize:Db,getTransform:ha,applyTransform:ca,transformDirection:pa,groupTransition:ga,clipPointsByRect:ya,clipRectByRect:va,createIcon:ma,linePolygonIntersect:_a,lineLineIntersect:xa,setTooltipConfig:Sa,Group:gm,Image:q_,Text:ex,Circle:zx,Ellipse:Fx,Sector:Jx,Ring:tb,Polygon:ib,Polyline:rb,Rect:J_,Line:sb,BezierCurve:hb,Arc:pb,IncrementalDisplayable:Sb,CompoundPath:fb,LinearGradient:gb,RadialGradient:yb,BoundingRect:om,OrientedBoundingRect:bb,Point:Kv,Path:X_}),Ob={},Lb=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Eb=["align","lineHeight","width","height","tag","verticalAlign"],Rb=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],Nb=on(),zb=["textStyle","color"],Bb=new ex,Fb=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(zb):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 Bb.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")}),Bb.update(),Bb.getBoundingRect()},t}(),Hb=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Vb=wn(Hb),Yb=function(){function t(){}return t.prototype.getLineStyle=function(t){return Vb(this,t)},t}(),Xb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Wb=wn(Xb),Gb=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Wb(this,t,e)},t}(),Ub=function(){function t(t,e,i){this.parentModel=e,this.ecModel=i,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 i=this.option,n=null==i?i:i[t];if(null==n&&!e){var r=this.parentModel;r&&(n=r.getShallow(t))}return n},t.prototype.getModel=function(e,i){var n=null!=e,r=n?this.parsePath(e):null,o=n?this._doGet(r):this.option;return i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,i,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 i=this.option;if(!t)return i;for(var n=0;n<t.length&&(!t[n]||null!=(i=i&&"object"==typeof i?i[t[n]]:null));n++);return null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},t}();yn(Ub),function(t){var e=["__\0is_clz",Om++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}(Ub),f(Ub,Yb),f(Ub,Gb),f(Ub,Rm),f(Ub,Fb);var jb=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:""}}}},Kb="ZH",Qb="EN",Jb=Qb,$b={},tw={},ew=gy.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Kb)>-1?Kb:Jb}():Jb;za(Qb,qb),za(Kb,Zb);var iw=1e3,nw=60*iw,rw=60*nw,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},hw=["year","month","day","hour","minute","second","millisecond"],cw=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],pw=H,fw=/([&<>"'])/g,dw={"&":"&","<":"<",">":">",'"':""","'":"'"},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"),on()),ww=function(t){function i(e,i,n){var r=t.call(this,e,i,n)||this;return r.uid=Ra("ec_cpt_model"),r}return e(i,t),i.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=bs(this),n=i?Ss(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),i&&ws(t,n,i)},i.prototype.mergeOption=function(t){s(this.option,t,!0);var e=bs(this);e&&ws(this.option,t,e)},i.prototype.optionUpdated=function(){},i.prototype.getDefaultOption=function(){var t=this.constructor;if(!gn(t))return t.defaultOption;var e=bw(this);if(!e.defaultOption){for(var i=[],n=t;n;){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},a=i.length-1;a>=0;a--)o=s(o,i[a],!0);e.defaultOption=o}return e.defaultOption},i.prototype.getReferringComponents=function(t,e){var i=t+"Index",n=t+"Id";return ln(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},e)},i.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")}},i.protoInitialize=function(){var t=i.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),i}(Ub);mn(ww,Ub),bn(ww),function(t){var e={};t.registerSubTypeDefaulter=function(t,i){var n=fn(t);e[n.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var o=fn(i).main;t.hasSubTypes(i)&&e[o]&&(r=e[o](n))}return r}}(ww),function(t,e){function i(t){var i={},o=[];return g(t,function(a){var s=n(i,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),g(u,function(t){c(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);c(e.successor,t)<0&&e.successor.push(a)})}),{graph:i,noEntryList:o}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var i=[];return g(t,function(t){c(e,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,r){function o(t){0===--l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=i(e),l=s.graph,u=s.noEntryList,h={};for(g(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],f=!!h[c];f&&(n.call(r,c,p.originalDeps.slice()),delete h[c]),g(p.successor,f?a:o)}g(h,function(){throw new Error("")})}}}(ww,Ms);var Sw="";"undefined"!=typeof navigator&&(Sw=navigator.platform||"");var Tw,Mw,Cw="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:Cw,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Cw,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Cw,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Cw,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Cw,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Cw,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},Aw=G(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),kw="original",Dw="arrayRows",Pw="objectRows",Ow="keyedColumns",Lw="typedArray",Ew="unknown",Rw="column",Nw="row",zw={Must:1,Might:2,Not:3},Bw=on(),Fw=G(),Hw=on(),Vw=(on(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,i){var n=Fi(this.get("color",!0)),r=this.get("colorLayer",!0);return Es(this,Hw,n,r,t,e,i)},t.prototype.clearColorPalette=function(){Rs(this,Hw)},t}()),Yw="\0_ec_inner",Xw=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new Ub(n),this._locale=new Ub(r),this._optionManager=o},i.prototype.setOption=function(t,e,i){var n=Hs(e);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},i.prototype.resetOption=function(t,e){return this._resetOption(t,Hs(e))},i.prototype._resetOption=function(t,e){var i=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Mw(this,r),i=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(i=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&g(a,function(t){i=!0,this._mergeOption(t,e)},this)}return i},i.prototype.mergeOption=function(t){this._mergeOption(t,null)},i.prototype._mergeOption=function(t,e){function i(e){var i=Os(this,e,Fi(t[e])),a=r.get(e),s=a?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",l=Xi(a,i,s);en(l,e,ww),n[e]=null,r.set(e,null),o.set(e,0);var h=[],p=[],f=0;g(l,function(t,i){var n=t.existing,r=t.newOption;if(r){var o="series"===e,a=ww.getClass(e,t.keyInfo.subType,!o);if(!a)return;if(n&&n.constructor===a)n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1);else{var s=u({componentIndex:i},t.keyInfo);n=new a(r,this,this,s),u(n,s),t.brandNew&&(n.__requireNewView=!0),n.init(r,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(h.push(n.option),p.push(n),f++):(h.push(void 0),p.push(void 0))},this),n[e]=h,r.set(e,p),o.set(e,f),"series"===e&&Tw(this)}var n=this.option,r=this._componentsMap,o=this._componentsCount,l=[],h=G(),c=e&&e.replaceMergeMainTypeMap;Cs(this),g(t,function(t,e){null!=t&&(ww.hasClass(e)?e&&(l.push(e),h.set(e,!0)):n[e]=null==n[e]?a(t):s(n[e],t,!0))}),c&&c.each(function(t,e){ww.hasClass(e)&&!h.get(e)&&(l.push(e),h.set(e,!0))}),ww.topologicalTravel(l,ww.getAllClassMainTypes(),i,this),this._seriesIndices||Tw(this)},i.prototype.getOption=function(){var t=a(this.option);return g(t,function(e,i){if(ww.hasClass(i)){for(var n=Fi(e),r=n.length,o=!1,a=r-1;a>=0;a--)n[a]&&!tn(n[a])?o=!0:(n[a]=null,!o&&r--);n.length=r,t[i]=n}}),delete t[Yw],t},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.setUpdatePayload=function(t){this._payload=t},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){var n=i[e||0];if(n)return n;if(null==e)for(var r=0;r<i.length;r++)if(i[r])return i[r]}},i.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;return null!=i?(a=[],g(Fi(i),function(t){o[t]&&a.push(o[t])})):a=null!=n?Bs("id",n,o):null!=r?Bs("name",r,o):m(o,function(t){return!!t}),Fs(a,t)},i.prototype.findComponents=function(t){var e=t.query,i=t.mainType,n=function(t){var e=i+"Index",n=i+"Id",r=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[r]?null:{mainType:i,index:t[e],id:t[n],name:t[r]}}(e),r=n?this.queryComponents(n):m(this._componentsMap.get(i),function(t){return!!t});return function(e){return t.filter?m(e,t.filter):e}(Fs(r,t))},i.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(T(t)){var r=e,o=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&o.call(r,e,n,n.componentIndex)}})}else for(var a=M(t)?n.get(t):A(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},i.prototype.getSeriesByName=function(t){var e=Ji(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},i.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},i.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},i.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},i.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},i.prototype.eachSeries=function(t,e){g(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},i.prototype.eachRawSeries=function(t,e){g(this._componentsMap.get("series"),function(i){i&&t.call(e,i,i.componentIndex)})},i.prototype.eachSeriesByType=function(t,e,i){g(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)},this)},i.prototype.eachRawSeriesByType=function(t,e,i){return g(this.getSeriesByType(t),e,i)},i.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},i.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},i.prototype.filterSeries=function(t,e){var i=[];g(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=G(i)},i.prototype.restoreData=function(t){Tw(this);var e=this._componentsMap,i=[];e.each(function(t,e){ww.hasClass(e)&&i.push(e)}),ww.topologicalTravel(i,ww.getAllClassMainTypes(),function(i){g(e.get(i),function(e){!e||"series"===i&&Ns(e,t)||e.restoreData()})})},i.internalField=function(){Tw=function(t){var e=t._seriesIndices=[];g(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=G(e)},Mw=function(t,e){t.option={},t.option[Yw]=1,t._componentsMap=G({series:[]}),t._componentsCount=G();var i=e.aria;A(i)&&null==i.enabled&&(i.enabled=!0),zs(e,t._theme.option),s(e,Iw,!1),t._mergeOption(e,null)}}(),i}(Ub);f(Xw,Vw);var Ww,Gw,Uw,jw,qw,Zw,Kw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Qw=function(){function t(t){g(Kw,function(e){this[e]=ky(t[e],t)},this)}return t}(),Jw={},$w=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var i=[];g(Jw,function(n){var r=n.create(t,e);i=i.concat(r||[])}),this._coordinateSystems=i},t.prototype.update=function(t,e){g(this._coordinateSystems,function(i){i.update&&i.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(Fi(t.series),function(t){t&&t.data&&D(t.data)&&X(t.data)}),g(Fi(t.dataset),function(t){t&&t.source&&D(t.source)&&X(t.source)})),t=a(t);var i=this._optionBackup,n=Vs(t,e,!i);this._newBaseOption=n.baseOption,i?(n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},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,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=a(i[n.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),i=this._mediaList,n=this._mediaDefault,r=[],o=[];if(!i.length&&!n)return o;for(var s=0,l=i.length;l>s;s++)Ys(i[s].query,t,e)&&r.push(s);return!r.length&&n&&(r=[-1]),r.length&&!Ws(r,this._currentMediaIndices)&&(o=y(r,function(t){return a(-1===t?n.option:i[t].option)})),this._currentMediaIndices=r,o},t}(),iS=g,nS=A,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===Ow?{}:[]),this.sourceFormat=t.sourceFormat||Ew,this.seriesLayoutBy=t.seriesLayoutBy||Rw,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&Ds(this,i)===zw.Must&&(n.type="ordinal")}}return t}(),uS=function(){function t(t,e){var i=cl(t)?t:fl(t);this._source=i;var n=this._data=i.data;i.sourceFormat===Lw&&(this._offset=0,this._dimSize=e,this._data=n),qw(this,n,i)}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,h=o.dimensionsDefine;if(u(t,jw[Tl(a,s)]),a===Lw)t.getItem=i,t.count=r,t.fillStorage=n;else{var c=bl(a,s);t.getItem=ky(c,null,e,l,h);var p=wl(a,s);t.count=ky(p,null,e,l,h)}};var i=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,r=n*t,o=0;n>o;o++)e[o]=i[r+o];return e},n=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=i[a],p=0;h>p;p++){var f=r[p*o+a];c[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[Dw+"_"+Rw]={pure:!0,appendData:t},e[Dw+"_"+Nw]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Pw]={pure:!0,appendData:t},e[Ow]={pure:!0,appendData:function(t){var e=this._data;g(t,function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},e[kw]={appendData:t},e[Lw]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},jw=e}(),t}(),hS=function(t,e,i,n){return t[n]},cS=(Ww={},Ww[Dw+"_"+Rw]=function(t,e,i,n){return t[n+e]},Ww[Dw+"_"+Nw]=function(t,e,i,n,r){n+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},Ww[Pw]=hS,Ww[Ow]=function(t,e,i,n,r){for(var o=r||[],a=0;a<i.length;a++){var s=i[a].name,l=t[s];o[a]=l?l[n]:null}return o},Ww[kw]=hS,Ww),pS=function(t){return t.length},fS=(Gw={},Gw[Dw+"_"+Rw]=function(t,e){return Math.max(0,t.length-e)},Gw[Dw+"_"+Nw]=function(t,e){var i=t[0];return i?Math.max(0,i.length-e):0},Gw[Pw]=pS,Gw[Ow]=function(t,e,i){var n=i[0].name,r=t[n];return r?r.length:0},Gw[kw]=pS,Gw),dS=function(t,e){return t[e]},gS=(Uw={},Uw[Dw]=dS,Uw[Pw]=function(t,e,i){return t[i]},Uw[Ow]=dS,Uw[kw]=function(t,e){var i=Vi(t);return i instanceof Array?i[e]:i},Uw[Lw]=dS,Uw),yS=/\{@(.+?)\}/g,vS=function(){function t(){}return t.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),l=s&&s[i.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,p=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,i,n,r,o){e=e||"normal";var a=this.getData(i),s=this.getDataParams(t,i);if(o&&(s.value=o.interpolatedValue),null!=n&&S(s.value)&&(s.value=s.value[n]),!r){r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if("function"==typeof r)return s.status=e,s.dimensionIndex=n,r(s);if("string"==typeof r){return ds(r,s).replace(yS,function(e,i){var n=i.length,r=i;"["===r.charAt(0)&&"]"===r.charAt(n-1)&&(r=+r.slice(1,n-1));var s=Ml(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 Ml(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 i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(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 h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||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,i,n,r){_S.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:_S.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),S(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},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 i>n?n++:null}function e(){var t=n%a*r+Math.ceil(n/a),e=n>=i?null:o>t?t:n;return n++,e}var i,n,r,o,a,s={reset:function(l,u,h,c){n=l,i=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),xS=(G({number:function(t){return parseFloat(t)},time:function(t){return+Ii(t)},trim:function(t){return"string"==typeof t?Y(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){Bi("")}this._opFn=xS[t],this._rvalFloat=Li(e)}t.prototype.evaluate=function(t){return"number"==typeof t?this._opFn(t,this._rvalFloat):this._opFn(Li(t),this._rvalFloat)}}(),function(){function t(t,e){var i="desc"===t;this._resultLT=i?1:-1,null==e&&(e=i?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var i=typeof t,n=typeof e,r="number"===i?t:Li(t),o="number"===n?e:Li(e),a=isNaN(r),s=isNaN(o);if(a&&(r=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===i,u="string"===n;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=Li(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i===this._rvalTypeof||"number"!==i&&"number"!==this._rvalTypeof||(e=Li(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 Al(t,e)},t}()),SS=G(),TS="undefined",MS=typeof Uint32Array===TS?Array:Uint32Array,CS=typeof Uint16Array===TS?Array:Uint16Array,IS=typeof Int32Array===TS?Array:Int32Array,AS=typeof Float64Array===TS?Array:Float64Array,kS={float:AS,int:IS,ordinal:Array,number:Array,time:AS},DS=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=G()}return t.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),r=this.defaultDimValueGetter=Zw[n.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[],xl(n),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 i=this._calcDimNameToIdx,n=this._dimensions,r=i.get(t);if(null!=r){if(n[r].type===e)return r}else r=n.length;return n[r]={type:e},i.set(t,r),this._chunks[r]=new kS[e||"float"](this._rawCount),this._rawExtent[r]=Fl(),r},t.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],r=this._rawExtent,o=n.ordinalOffset||0,a=i.length;0===o&&(r[t]=Fl());for(var s=r[t],l=o;a>l;l++){var u=i[l]=e.parseAndCollect(i[l]);s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1])}n.ordinalMeta=e,n.ordinalOffset=a,n.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,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),n>i&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;r>l;l++){var u=n[l];Vl(i,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var p=c-a,f=0;r>f;f++){var u=n[f],d=Zw.arrayRows.call(this,t[p]||h,u.property,p,f);i[f][c]=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,i){for(var n=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 h=o[u];s[u]||(s[u]=Fl()),Vl(r,u,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,r,s);else for(var c=[],p=t;e>p;p++){c=n.getItem(p,c);for(var f=0;a>f;f++){var d=r[f],g=this._dimValueGetter(c,l[f],p,f);d[p]=g;var v=s[f];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!n.persistent&&n.clean&&n.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 i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)n.push(r)}else n=t;for(var r=0,o=n.length;o>r;r++)i.push(this.get(n[r],e));return i},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,r=this.count();r>n;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var i=e.sort(function(t,e){return t-e}),n=this.count();return 0===n?0:n%2==1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;r>=n;){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,r=n[t],o=[];if(!r)return o;null==i&&(i=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),p=e-r[c],f=Math.abs(p);i>=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 i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;n>r;r++)t[r]=e[r]}else t=new i(e.buffer,0,n)}else{var i=Bl(this._rawCount);t=new i(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 i=this.clone(),n=i.count(),r=Bl(i._rawCount),o=new r(n),a=[],s=t.length,l=0,u=t[0],h=i._chunks,c=0;n>c;c++){var p=void 0,f=i.getRawIndex(c);if(0===s)p=e(c);else if(1===s){var d=h[u][f];p=e(d,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][f];a[g]=c,p=e.apply(null,a)}p&&(o[l++]=f)}return n>l&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=x(t),r=n.length;if(!r)return this;var o=e.count(),a=Bl(e._rawCount),s=new a(o),l=0,u=n[0],h=t[u][0],c=t[u][1],p=e._chunks,f=!1;if(!e._indices){var d=0;if(1===r){for(var g=p[n[0]],y=0;i>y;y++){var v=g[y];(v>=h&&c>=v||isNaN(v))&&(s[l++]=d),d++}f=!0}else if(2===r){for(var g=p[n[0]],m=p[n[1]],_=t[n[1]][0],b=t[n[1]][1],y=0;i>y;y++){var v=g[y],w=m[y];(v>=h&&c>=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[n[0]][S];(v>=h&&c>=v||isNaN(v))&&(s[l++]=S)}else for(var y=0;o>y;y++){for(var T=!0,S=e.getRawIndex(y),M=0;r>M;M++){var C=n[M],v=p[C][S];(v<t[C][0]||v>t[C][1])&&(T=!1)}T&&(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 i=this.clone(t);return this._updateDims(i,t,e),i},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,i){for(var n=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 h=0;a>h;h++){for(var c=t.getRawIndex(h),p=0;o>p;p++)s[p]=n[e[p]][c];s[o]=h;var f=i&&i.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=n[d];v&&(v[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var i,n,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(Bl(this._rawCount))(Math.ceil(l/h)+2);p[u++]=c;for(var f=1;l-1>f;f+=h){for(var d=Math.min(f+h,l-1),g=Math.min(f+2*h,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+h,l),S=f-1,T=s[c];i=-1,r=b;for(var m=b;w>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(n=Math.abs((S-y)*(x-T)-(S-m)*(v-T)))>i&&(i=n,r=_)}p[u++]=r,c=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,i,n){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=Fl(),c=new(Bl(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=i(a),v=this.getRawIndex(Math.min(f+n(a,y)||0,u-1));l[v]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getRawIndex(r);switch(i){case 0:e(r);break;case 1:e(n[t[0]][a],r);break;case 2:e(n[t[0]][a],n[t[1]][a],r);break;default:for(var s=0,l=[];i>s;s++)l[s]=n[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Fl();if(!e)return i;var n,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(n=this._extent[t])return n.slice();n=i;for(var o=n[0],a=n[1],s=0;r>s;s++){var l=this.getRawIndex(s),u=e[l];o>u&&(o=u),u>a&&(a=u)}return n=[o,a],this._extent[t]=n,n},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,r=0;r<n.length;r++)i.push(n[r][e]);return i},t.prototype.clone=function(e,i){var n=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++)n._chunks[a]=o[a]?Hl(r[a]):r[a];else n._chunks=r;return this._copyCommonProps(n),i||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},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 i=this._indices.length;e=new t(i);for(var n=0;i>n;n++)e[n]=this._indices[n]}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,i,n){return Al(t[n],this._dimensions[n])}Zw={arrayRows:t,objectRows:function(t,e,i,n){return Al(t[e],this._dimensions[n])},keyedColumns:t,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return Al(r instanceof Array?r[n]:r,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}}}(),t}(),PS=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,i=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length;if(Xl(i)){var o=i,a=void 0,s=void 0,l=void 0;if(r){var u=n[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=D(a)?Lw:kw,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=z(h.seriesLayoutBy,c.seriesLayoutBy)||null,f=z(h.sourceHeader,c.sourceHeader)||null,d=z(h.dimensions,c.dimensions);t=p!==c.seriesLayoutBy||!!f!=!!c.sourceHeader||d?[pl(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:d},s)]:[]}else{var g=i;if(r){var y=this._applyTransform(n);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,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(null!=n){1!==t.length&&Wl("")}var r,o=[],a=[];return g(t,function(t){t.prepareSource();var e=t.getSource(n||0);null==n||e||Wl(""),o.push(e),a.push(t._getVersionSign())}),i?r=Rl(i,o,{datasetIndex:e.componentIndex}):null!=n&&(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 i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[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,i){var n=this._storeList,r=n[0];r||(r=n[0]={});var o=r[i];if(!o){var a=this._getUpstreamSourceManagers()[0];Xl(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,i):(o=new DS,o.initData(new uS(e,t.length),t)),r[i]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Xl(t)){var e=As(t);return e?[e.getSourceManager()]:[]}return y(ks(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;if(Xl(n))t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=n;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),i=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},t}(),OS="line-height:1",LS=[0,10,20,30],ES=["","\n","\n\n","\n\n\n"],RS={section:{planLayout:function(t){var e=t.blocks.length,i=e>1||e>0&&!t.noHeader,n=0;g(t.blocks,function(t){jl(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=n&&(n=e+(!i||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=n},build:function(t,e,i,n){var r=e.noHeader,o=Kl(e),a=ql(t,e,r?i:o.html,n);if(r)return a;var s=fs(e.header,"ordinal",t.useUTC),l=Gl(n,t.renderMode).nameStyle;return"richText"===t.renderMode?tu(t,s,l)+o.richText+a:Ql('<div style="'+l+";"+OS+';">'+ps(s)+"</div>"+a,i)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,i,n){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,h=t.useUTC;if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":fs(l,"ordinal",h),f=e.valueType,d=a?[]:S(u)?y(u,function(t,e){return fs(t,S(f)?f[e]:f,h)}):[fs(u,S(f)?f[0]:f,h)],g=!s||!o,v=!s&&o,m=Gl(n,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":c)+(o?"":tu(t,p,_))+(a?"":eu(t,d,g,v,x)):Ql((s?"":c)+(o?"":Jl(p,!s,_))+(a?"":$l(d,g,v,x)),i)}}}},NS=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ri()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,r=gs({color:e,type:t,renderMode:i,markerId:n});return M(r)?r:(this.richTextStyles[n]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};S(e)?g(e,function(t){return u(i,t)}):u(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},t}(),zS=on(),BS=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(i,t),i.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=Il({count:uu,reset:hu}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),(zS(this).sourceManager=new PS(this)).prepareSource();var n=this.getInitialData(t,i);pu(n,this),this.dataTask.context.data=n,zS(this).dataBeforeProcessed=n,su(this),this._initSelectedMapFromData(n)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=bs(this),n=i?Ss(t):{},r=this.subType;ww.hasClass(r)&&(r+="Series"),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),Hi(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&ws(t,n,i)},i.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var i=bs(this);i&&ws(this.option,t,i);var n=zS(this).sourceManager;n.dirty(),n.prepareSource();var r=this.getInitialData(t,e);pu(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,zS(this).dataBeforeProcessed=r,su(this),this._initSelectedMapFromData(r)},i.prototype.fillDataTextStyle=function(t){if(t&&!D(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Hi(t[i],"label",e)},i.prototype.getInitialData=function(){},i.prototype.appendData=function(t){this.getRawData().appendData(t.data)},i.prototype.getData=function(t){var e=du(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return zS(this).data},i.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},i.prototype.setData=function(t){var e=du(this);if(e){var i=e.context;i.outputData=t,e!==this.dataTask&&(i.data=t)}zS(this).data=t},i.prototype.getEncode=function(){var t=this.get("encode",!0);return t?G(t):void 0},i.prototype.getSourceManager=function(){return zS(this).sourceManager},i.prototype.getSource=function(){return this.getSourceManager().getSource()},i.prototype.getRawData=function(){return zS(this).dataBeforeProcessed},i.prototype.getColorBy=function(){return this.get("colorBy")||"series"},i.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},i.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},i.prototype.formatTooltip=function(t,e){return ru({series:this,dataIndex:t,multipleSeries:e})},i.prototype.isAnimationEnabled=function(){if(gy.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel,r=Vw.prototype.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},i.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},i.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i)for(var n=this.getData(e),r=0;r<t.length;r++){var o=t[r],a=au(n,o);i[a]=!1,this._selectedDataIndicesMap[a]=-1}},i.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},i.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=x(t),i=[],n=0;n<e.length;n++){var r=t[e[n]];r>=0&&i.push(r)}return i},i.prototype.isSelected=function(t,e){var i=this.option.selectedMap;return!!i&&(i[au(this.getData(e),t)]||!1)},i.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},i.prototype._innerSelect=function(t,e){var i,n,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 h=e[o-1],u=au(t,h);this.option.selectedMap=(i={},i[u]=!0,i),this._selectedDataIndicesMap=(n={},n[u]=t.getRawIndex(h),n)}},i.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(i){var n=t.getRawDataItem(i);n&&n.selected&&e.push(i)}),e.length>0&&this._innerSelect(t,e)}},i.registerClass=function(t){return ww.registerClass(t)},i.protoInitialize=function(){var t=i.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),i}(ww);f(BS,vS),f(BS,Vw),mn(BS,ww);var FS=function(){function t(){this.group=new gm,this.uid=Ra("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}();yn(FS),bn(FS);var HS=on(),VS=gu(),YS=function(){function t(){this.group=new gm,this.uid=Ra("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,i,n){vu(t.getData(),n,"emphasis")},t.prototype.downplay=function(t,e,i,n){vu(t.getData(),n,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},t.markUpdateMethod=function(t,e){HS(t).updateMethod=e},t.protoInitialize=function(){t.prototype.type="chart"}(),t}();yn(YS),bn(YS);var XS,WS={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)}}},GS="\0__throttleOriginMethod",US="\0__throttleRate",jS="\0__throttleType",qS=on(),ZS={itemStyle:wn(Xb,!0),lineStyle:wn(Hb,!0)},KS={lineStyle:"stroke",itemStyle:"fill"},QS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=wu(t,n),a=o(r),s=r.getShallow("decal");s&&(i.setVisual("decal",s),s.dirty=!0);var l=Su(t,n),h=a[l],c=T(h)?h:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||p){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,i.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 i.setVisual("style",a),i.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c?(i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=u({},a);r[l]=c(n),e.setItemVisual(i,"style",r)}}):void 0}},JS=new Ub,$S={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=wu(t,n),o=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(t,e){var i=t.getRawDataItem(e);if(i&&i[n]){JS.option=i[n];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}}}},tT={performRawSeries:!0,overallReset:function(t){var e=G();t.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+i,r=e.get(n);r||(r={},e.set(n,r)),qS(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var i=e.getRawData(),n={},r=e.getData(),o=qS(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Su(e,a);r.each(function(t){var e=r.getRawIndex(t);n[e]=t}),i.each(function(t){var a=n[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=i.getName(t)||t+"",h=i.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}},eT=Math.PI,iT=function(){function t(t,e,i,n){this._stageTaskMap=G(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}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 i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=r?i.step:null,a=n&&n.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 i=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=G();t.eachSeries(function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;g(this._allHandlers,function(n){var r=t.get(n.uid)||t.set(n.uid,{});V(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)},this)},t.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,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,i){this._performStageTasks(this._visualHandlers,t,e,i)},t.prototype._performStageTasks=function(t,e,i,n){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var o=!1,a=this;g(t,function(t){if(!n.visualType||n.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){r(n,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,i);var p=a.getPerformArgs(u,n.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){r(n,s)&&s.dirty();var l=a.getPerformArgs(s,n.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,i),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,i,n){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||Il({plan:ku,reset:Du,count:Ou}));l.context={model:e,ecModel:i,api:n,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=G(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(r):l?i.eachRawSeriesByType(l,r):u&&u(i,n).each(r)},t.prototype._createOverallStageTask=function(t,e,i,n){function r(t){var e=t.uid,i=l.set(e,s&&s.get(e)||(p=!0,Il({reset:Cu,onDirty:Au})));i.context={model:t,overallProgress:c},i.agent=a,i.__block=c,o._pipe(t,i)}var o=this,a=e.overallTask=e.overallTask||Il({reset:Mu});a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=G(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1;V(!t.createOnAllSeries,""),u?i.eachRawSeriesByType(u,r):h?h(i,n).each(r):(c=!1,g(i.getSeries(),r)),p&&a.dirty()},t.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return T(t)&&(t={overallReset:t,seriesType:Lu(t)}),t.uid=Ra("stageHandler"),e&&(t.visualType=e),t},t}(),nT=Pu(0),rT={},oT={};Eu(rT,Xw),Eu(oT,Qw),rT.eachSeriesByType=rT.eachRawSeriesByType=function(t){XS=t},rT.eachComponent=function(t){"series"===t.mainType&&t.subType&&(XS=t.subType)};var aT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],sT={color:aT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],aT]},lT="#B9B8CE",uT="#100C2A",hT=function(){return{axisLine:{lineStyle:{color:lT}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},cT=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],pT={darkMode:!0,color:cT,backgroundColor:uT,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:lT}},textStyle:{color:lT},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:lT}},dataZoom:{borderColor:"#71708A",textStyle:{color:lT},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:lT}},timeline:{lineStyle:{color:lT},label:{color:lT},controlStyle:{color:lT,borderColor:lT}},calendar:{itemStyle:{color:uT},dayLabel:{color:lT},monthLabel:{color:lT},yearLabel:{color:lT}},timeAxis:hT(),logAxis:hT(),valueAxis:hT(),categoryAxis:hT(),line:{symbol:"circle"},graph:{color:cT},gauge:{title:{color:lT},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:lT},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};pT.categoryAxis.splitLine.show=!1;var fT=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},i={},n={};if(M(t)){var r=fn(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],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},t.prototype.filter=function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,o=n.packedEvent,a=n.model,s=n.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return i(l,a,"mainType")&&i(l,a,"subType")&&i(l,a,"index","componentIndex")&&i(l,a,"name")&&i(l,a,"id")&&i(u,o,"name")&&i(u,o,"dataIndex")&&i(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),dT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function i(e,i){var n=t.getRawValue(i),a=t.getDataParams(i);u&&e.setItemVisual(i,"symbol",r(n,a)),h&&e.setItemVisual(i,"symbolSize",o(n,a)),c&&e.setItemVisual(i,"symbolRotate",s(n,a)),p&&e.setItemVisual(i,"symbolOffset",l(n,a))}var n=t.getData();if(t.legendIcon&&n.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=T(r),h=T(o),c=T(s),p=T(l),f=u||h||c||p,d=!u&&r?r:t.defaultSymbol,g=h?null:o,y=c?null:s,v=p?null:l;if(n.setVisual({legendIcon:t.legendIcon||d,symbol:d,symbolSize:g,symbolKeepAspect:a,symbolRotate:y,symbolOffset:v}),!e.isSeriesFiltered(t))return{dataEach:f?i:null}}}},gT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function i(t,e){var i=t.getItemModel(e),n=i.getShallow("symbol",!0),r=i.getShallow("symbolSize",!0),o=i.getShallow("symbolRotate",!0),a=i.getShallow("symbolOffset",!0),s=i.getShallow("symbolKeepAspect",!0);null!=n&&t.setItemVisual(e,"symbol",n),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?i:null}}}},yT=Math.round(9*Math.random()),vT="function"==typeof Object.defineProperty,mT=function(){function t(){this._id="__ec_inner_"+yT++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var i=this._guard(t);return vT?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[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}(),_T=X_.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),xT=X_.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),bT=X_.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),f=.6*a,d=.7*a;t.moveTo(i-h,l+s),t.arc(i,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+h-c*f,l+s+p*f,i,n-d,i,n),t.bezierCurveTo(i,n-d,i-h+c*f,l+s+p*f,i-h,l+s),t.closePath()}}),wT=X_.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),ST={line:sb,rect:J_,roundRect:J_,square:J_,circle:zx,diamond:xT,pin:bT,arrow:wT,triangle:_T},TT={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},MT={};g(ST,function(t,e){MT[e]=new t});for(var CT,IT=X_.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=ii(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=MT[n];r||(n="rect",r=MT[n]),TT[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}}),AT=new O_(!0),kT=["shadowBlur","shadowOffsetX","shadowOffsetY"],DT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],PT=1,OT=2,LT=3,ET=4,RT=new mT,NT=new fv(100),zT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],BT={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"},FT=x(BT),HT={"alignment-baseline":"textBaseline","stop-color":"stopColor"},VT=x(HT),YT=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var i=Sh(t);if(!i)throw new Error("Illegal svg");this._defsUsePending=[];var n=new gm;this._root=n;var r=[],o=i.getAttribute("viewBox")||"",a=parseFloat(i.getAttribute("width")||e.width),s=parseFloat(i.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),Ah(i,n,null,!0,!1);for(var l=i.firstChild;l;)this._parseNode(l,n,r,null,!1,!1),l=l.nextSibling;Ph(this._defs,this._defsUsePending),this._defsUsePending=[];var u,h;if(o){var c=Oh(o);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&null!=a&&null!=s&&(h=Nh(u,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=n;n=new gm,n.add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return e.ignoreRootClip||null==a||null==s||n.setClipPath(new J_({shape:{x:0,y:0,width:a,height:s}})),{root:n,width:a,height:s,viewBoxRect:u,viewBoxTransform:h,named:r}},t.prototype._parseNode=function(t,e,i,n,r,o){var a,s=t.nodeName.toLowerCase(),l=n;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=CT[s];if(u&&q(CT,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};i.push(c),"g"===s&&(l=c)}else n&&i.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:a});e.add(a)}}var p=XT[s];if(p&&q(XT,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,i,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var i=new G_({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),kh(i,e);var n=i.style,r=n.fontSize;r&&9>r&&(n.fontSize=9,i.scaleX*=r/9,i.scaleY*=r/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var a=i.getBoundingRect();return this._textX+=a.width,e.add(i),i},t.internalField=function(){CT={g:function(t,e){var i=new gm;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new J_;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(t,e){var i=new zx;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),i.silent=!0,i},line:function(t,e){var i=new sb;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(t,e){var i=new Fx;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(t,e){var i,n=t.getAttribute("points");n&&(i=Ih(n));var r=new ib({shape:{points:i||[]},silent:!0});return Ch(e,r),Ah(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var i,n=t.getAttribute("points");n&&(i=Ih(n));var r=new rb({shape:{points:i||[]},silent:!0});return Ch(e,r),Ah(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var i=new q_;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),i.silent=!0,i},text:function(t,e){var i=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(n)+parseFloat(o);var a=new gm;return Ch(e,a),Ah(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var i=t.getAttribute("x"),n=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=n&&(this._textY=parseFloat(n));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new gm;return Ch(e,a),Ah(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var i=t.getAttribute("d")||"",n=Eo(i);return Ch(e,n),Ah(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),t}(),XT={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),i=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new gb(e,i,n,r);return Th(t,o),Mh(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),i=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),r=new yb(e,i,n);return Th(t,r),Mh(t,r),r}},WT=/^url\(\s*#(.*?)\)/,GT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,UT=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,jT=Math.PI/180,qT=/([^\s:;]+)\s*:\s*([^:;]+)/g,ZT=1e-8,KT=[],QT=function(){function t(t){this.name=t}return t.prototype.getCenter=function(){},t}(),JT=function(t){function i(e,i,n){var r=t.call(this,e)||this;if(r.type="geoJSON",r.geometries=i,n)n=[n[0],n[1]];else{var o=r.getBoundingRect();n=[o.x+o.width/2,o.y+o.height/2]}return r._center=n,r}return e(i,t),i.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],n=[-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(i,i,r),yt(n,n,o)}return 0===s&&(i[0]=i[1]=n[0]=n[1]=0),this._rect=new om(i[0],i[1],n[0]-i[0],n[1]-i[1])},i.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;r>n;n++)if("polygon"===i[n].type){var o=i[n].exterior,a=i[n].interiors;if(Fh(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(Fh(a[s],t[0],t[1]))continue t;return!0}}return!1},i.prototype.transformTo=function(t,e,i,n){var r=this.getBoundingRect(),o=r.width/r.height;i?n||(n=i/o):i=o*n;for(var a=new om(t,e,i,n),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var h=l[u].exterior,c=l[u].interiors,p=0;p<h.length;p++)dt(h[p],h[p],s);for(var f=0;f<(c?c.length:0);f++)for(var p=0;p<c[f].length;p++)dt(c[f][p],c[f][p],s)}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},i.prototype.cloneShallow=function(t){null==t&&(t=this.name);var e=new i(t,this.geometries,this._center);return e._rect=this._rect,e.transformTo=null,e},i.prototype.getCenter=function(){return this._center},i.prototype.setCenter=function(t){this._center=t},i}(QT),$T=function(t){function i(e,i){var n=t.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return e(i,t),i.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this._calculateCenter()),t},i.prototype._calculateCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),i=[e.x+e.width/2,e.y+e.height/2],n=Fe(KT),r=t;r&&!r.isGeoSVGGraphicRoot;)Ve(n,r.getLocalTransform(),n),r=r.parent;return Ge(n,n),dt(i,i,n),i},i}(QT),tM=G(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),eM=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=G(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Sh(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=Vh(t.named),i=e.regions,n=e.regionsMap;this._regions=i,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,i;try{e=t&&zh(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=e.root,V(null!=i)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var n=new gm;n.add(i),n.isGeoSVGGraphicRoot=!0;var r=e.width,o=e.height,a=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,h=void 0,c=void 0;if(null!=r?(l=0,h=r):a&&(l=a.x,h=a.width),null!=o?(u=0,c=o):a&&(u=a.y,c=a.height),null==l||null==u){var p=i.getBoundingRect();null==l&&(l=p.x,h=p.width),null==u&&(u=p.y,c=p.height)}s=this._boundingRect=new om(l,u,h,c)}if(a){var f=Nh(a,s);i.scaleX=i.scaleY=f.scale,i.x=f.x,i.y=f.y}n.setClipPath(new J_({shape:s.plain()}));var d=[];return g(e.named,function(t){null!=tM.get(t.svgNodeTagLower)&&(d.push(t),Hh(t.el))}),{root:n,boundingRect:s,named:d}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,i),i)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);i&&(e.removeKey(t),this._freedGraphics.push(i))},t}(),iM=[126,25],nM="南海诸岛",rM=[[[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]]],oM=0;oM<rM.length;oM++)for(var aM=0;aM<rM[oM].length;aM++)rM[oM][aM][0]/=10.5,rM[oM][aM][1]/=-14,rM[oM][aM][0]+=iM[0],rM[oM][aM][1]+=iM[1];var sM={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},lM={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]},uM=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],hM=function(){function t(t,e,i){this.type="geoJSON",this._parsedMap=G(),this._mapName=t,this._specialAreas=i,this._geoJSON=Kh(e)}return t.prototype.load=function(t,e){e=e||"name";var i=this._parsedMap.get(e);if(!i){var n=this._parseToRegions(e);i=this._parsedMap.set(e,{regions:n,boundingRect:Zh(n)})}var r=G(),o=[];return g(i.regions,function(e){var i=e.name;t&&t.hasOwnProperty(i)&&(e=e.cloneShallow(i=t[i])),o.push(e),r.set(i,e)}),{regions:o,boundingRect:i.boundingRect||new om(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,i=this._mapName,n=this._geoJSON;try{e=n?Wh(n,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return Gh(i,e),g(e,function(t){var e=t.name;Uh(i,t),jh(i,t),qh(i,t);var n=this._specialAreas&&this._specialAreas[e];n&&t.transformTo(n.left,n.top,n.width,n.height)},this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}(),cM=G(),pM={registerMap:function(t,e,i){if(e.svg){var n=new eM(t,e.svg);cM.set(t,n)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?i=e.specialAreas:r=e;var n=new hM(t,r,i);cM.set(t,n)}},getGeoResource:function(t){return cM.get(t)},getMapForUser:function(t){var e=cM.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,i){var n=cM.get(t);if(n)return n.load(e,i)}},fM=new Hy,dM="undefined"!=typeof window,gM={zrender:"5.2.0"},yM=2e3,vM=1e3,mM=3e3,_M={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:vM,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:mM,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},xM="__flagInMainProcess",bM="__pendingUpdate",wM="__needsUpdateStatus",SM=/^[a-zA-Z0-9_]+$/,TM="__connectUpdateStatus",MM=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i}(Hy),CM=MM.prototype;CM.on=Jh("on"),CM.off=Jh("off");var IM,AM,kM,DM,PM,OM,LM,EM,RM,NM,zM,BM,FM,HM,VM,YM,XM,WM,GM,UM=function(t){function i(e,i,n){function r(t,e){return t.__prio-e.__prio}var o=t.call(this,new fT)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],n=n||{},"string"==typeof i&&(i=tC[i]),o._dom=e;var s=o._zr=hi(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,useDirtyRect:null!=n.useDirtyRect&&n.useDirtyRect});o._throttledZrFlush=xu(ky(s.flush,s),17),i=a(i),i&&ll(i,!0),o._theme=i,o._locale=Ba(n.locale||ew),o._coordSysMgr=new $w;var l=o._api=YM(o);return Wt($M,r),Wt(QM,r),o._scheduler=new iT(o,l,QM,$M),o._messageCenter=new MM,o._initEvents(),o.resize=ky(o.resize,o),s.animation.on("frame",o._onframe,o),NM(s,o),zM(s,o),X(o),o}return e(i,t),i.prototype._onframe=function(){if(!this._disposed){GM(this);var t=this._scheduler;if(this[bM]){var e=this[bM].silent;this[xM]=!0,IM(this),DM.update.call(this,null,this[bM].updateParams),this._zr.flush(),this[xM]=!1,this[bM]=null,EM.call(this,e),RM.call(this,e)}else if(t.unfinished){var i=1,n=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),OM(this,n),t.performVisualTasks(n),VM(this,this._model,r,"remain",{}),i-=+new Date-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.setOption=function(t,e,i){if(!this._disposed){var n,r,o;if(A(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[xM]=!0,!this._model||e){var a=new eS(this._api),s=this._theme,l=this._model=new Xw;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},JM);var u={seriesTransition:o,optionChanged:!0};i?(this[bM]={silent:n,updateParams:u},this[xM]=!1,this.getZr().wakeUp()):(IM(this),DM.update.call(this,null,u),this._zr.flush(),this[bM]=null,this[xM]=!1,EM.call(this,n),RM.call(this,n))}},i.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||dM&&window.devicePixelRatio||1},i.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},i.prototype.getSvgDataURL=function(){if(gy.svgSupported){var t=this._zr;return g(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},i.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;g(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return g(n,function(t){t.group.ignore=!1}),o}},i.prototype.getConnectedDataURL=function(t){if(!this._disposed&&gy.canvasSupported){var e="svg"===t.type,i=this.group,n=Math.min,r=Math.max,o=1/0;if(nC[i]){var s=o,l=o,u=-o,h=-o,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();g(iC,function(o){if(o.group===i){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(a(t)),f=o.getDom().getBoundingClientRect();s=n(f.left,s),l=n(f.top,l),u=r(f.right,u),h=r(f.bottom,h),c.push({dom:p,left:f.left,top:f.top})}}),s*=p,l*=p,u*=p,h*=p;var f=u-s,d=h-l,y=Ay(),v=hi(y,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:d}),e){var m="";return g(c,function(t){var e=t.left-s,i=t.top-l;m+='<g transform="translate('+e+","+i+')">'+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(c,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)}},i.prototype.convertToPixel=function(t,e){return PM(this,"convertToPixel",t,e)},i.prototype.convertFromPixel=function(t,e){return PM(this,"convertFromPixel",t,e)},i.prototype.containPixel=function(t,e){if(!this._disposed){var i;return g(an(this._model,t),function(t,n){n.indexOf("Models")>=0&&g(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i=i||!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i=i||o.containPoint(e,t))}},this)},this),!!i}},i.prototype.getVisual=function(t,e){var i=this._model,n=an(i,t,{defaultMainType:"series"}),r=n.seriesModel,o=r.getData(),a=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?o.indexOfRawIndex(n.dataIndex):null;return null!=a?Ru(o,a,e):Nu(o,e)},i.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},i.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},i.prototype._initEvents=function(){var t=this;g(qM,function(e){var i=function(i){var n,r=t.getModel(),o=i.target;if("globalout"===e?n={}:o&&Fu(o,function(t){var e=rx(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(n=u({},e.eventData),!0):void 0},!0),n){var a=n.componentType,s=n.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),h=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=i,n.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:h},t.trigger(e,n)}};i.zrEventfulCallAtLast=!0,t._zr.on(e,i,t)}),g(KM,function(e,i){t._messageCenter.on(i,function(t){this.trigger(i,t)},t)}),g(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),Bu(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,un(this.getDom(),aC,"");var t=this,e=t._api,i=t._model;g(t._componentsViews,function(t){t.dispose(i,e)}),g(t._chartsViews,function(t){t.dispose(i,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 iC[t.id]}},i.prototype.resize=function(t){if(!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[bM]&&(null==n&&(n=this[bM].silent),i=!0,this[bM]=null),this[xM]=!0,i&&IM(this),DM.update.call(this,{type:"resize",animation:u({duration:0},t&&t.animation)}),this[xM]=!1,EM.call(this,n),RM.call(this,n)}}},i.prototype.showLoading=function(t,e){if(!this._disposed&&(A(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),eC[t])){var i=eC[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(t){var e=u({},t);return e.type=KM[t.type],e},i.prototype.dispatchAction=function(t,e){if(!this._disposed&&(A(e)||(e={silent:!!e}),ZM[t.type]&&this._model)){if(this[xM])return void this._pendingActions.push(t);var i=e.silent;LM.call(this,t,i);var n=e.flush;n?this._zr.flush():!1!==n&&gy.browser.weChat&&this._throttledZrFlush(),EM.call(this,i),RM.call(this,i)}},i.prototype.updateLabelLayout=function(){fM.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},i.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function t(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===cx&&t.states.emphasis?e.push("emphasis"):t.hoverState===hx&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){var i=t._zr,n=i.storage,r=0;n.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!gy.node&&!gy.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function n(t,e){var i=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||(t.style.blend=i),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.style.blend=i})})}function r(t,e){t.preventAutoZ||o(e.group,t.get("z")||0,t.get("zlevel")||0,-1/0)}function o(t,e,i,n){var r=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=Math.max(o(s[l],e,i,n),n);else t.z=e,t.zlevel=i,n=Math.max(t.z2,n);if(r&&(r.z=e,r.zlevel=i,isFinite(n)&&(r.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=i,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function a(t,e){e.group.traverse(function(t){if(!Zo(t)){var e=t.getTextContent(),i=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function s(e,i){var n=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;i.group.traverse(function(e){if(e.states&&e.states.emphasis){if(Zo(e))return;if(e instanceof X_&&Mo(e),e.__dirty){var i=e.prevStates;i&&e.useStates(i)}if(r){e.stateTransition=a;var n=e.getTextContent(),o=e.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}IM=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),AM(t,!0),AM(t,!1),e.plan()},AM=function(t,e){function i(t){var i=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!i&&a[u];if(!h){var c=fn(t.type);h=new(e?FS.getClass(c.main,c.sub):YS.getClass(c.sub)),h.init(n,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(h,t,n,l)}for(var n=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?n.eachComponent(function(t,e){"series"!==t&&i(e)}):n.eachSeries(i);for(var u=0;u<o.length;){var h=o[u];h.__alive?u++:(!e&&h.renderTask.dispose(),s.remove(h.group),h.dispose(n,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},kM=function(t,e,i,n,r){function o(n){n&&n.__alive&&n[e]&&n[e](n.__model,a,t._api,i)}var a=t._model;if(a.setUpdatePayload(i),!n)return void g([].concat(t._componentsViews).concat(t._chartsViews),o);var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var u,h=i.excludeSeriesId;null!=h&&(u=G(),g(Fi(h),function(t){var e=Ji(t,null);null!=e&&u.set(e,!0)})),To(i)&&ao(t._api),a&&a.eachComponent(l,function(e){if(!u||null===u.get(e.id))if(To(i))if(e instanceof BS)i.type!==yx||i.notBlur||uo(e,i,t._api);else{var n=ho(e.mainType,e.componentIndex,i.name,t._api),r=n.focusSelf,o=n.dispatchers;i.type===yx&&r&&!i.notBlur&&lo(e.mainType,e.componentIndex,t._api),o&&g(o,function(t){i.type===yx?$r(t):to(t)})}else So(i)&&e instanceof BS&&(fo(e,i,t._api),go(e),WM(t))},t),a&&a.eachComponent(l,function(e){u&&null!==u.get(e.id)||o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)},DM={prepareAndUpdate:function(t){IM(this),DM.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var i=this._model,n=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;if(i){i.setUpdatePayload(t),a.restoreData(i,t),a.performSeriesTasks(i),o.create(i,n),a.performDataProcessorTasks(i,t),OM(this,i),o.update(i,n),BM(i),a.performVisualTasks(i,t),FM(this,i,n,t,e);var s=i.get("backgroundColor")||"transparent",l=i.get("darkMode");if(gy.canvasSupported)r.setBackgroundColor(s),null!=l&&"auto"!==l&&r.setDarkMode(l);else{var u=ne(s);s=pe(u,"rgb"),0===u[3]&&(s="transparent")}fM.trigger("afterupdate",i,n)}},updateTransform:function(t){var e=this,i=this._model,n=this._api;if(i){i.setUpdatePayload(t);var r=[];i.eachComponent(function(o,a){if("series"!==o){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,n,t);l&&l.update&&r.push(s)}else r.push(s)}});var o=G();i.eachSeries(function(r){var a=e._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,i,n,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),BM(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:o}),VM(this,i,n,t,{},o),fM.trigger("afterupdate",i,n)}},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),YS.markUpdateMethod(t,"updateView"),BM(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),FM(this,e,this._api,t,{}),fM.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries(function(t){t.getData().clearAllVisual()}),YS.markUpdateMethod(t,"updateVisual"),BM(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent(function(n,r){if("series"!==n){var o=e.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,e._api,t)}}),i.eachSeries(function(n){e._chartsMap[n.__viewId].updateVisual(n,i,e._api,t)}),fM.trigger("afterupdate",i,this._api))},updateLayout:function(t){DM.update.call(this,t)}},PM=function(t,e,i,n){if(!t._disposed)for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=an(o,i),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,n)))return r}},OM=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},LM=function(t,e){var i=this,n=this.getModel(),r=t.type,o=t.escapeConnect,a=ZM[r],s=a.actionInfo,l=(s.update||"update").split(":"),c=l.pop(),p=null!=l[0]&&fn(l[0]);this[xM]=!0;var f=[t],d=!1;t.batch&&(d=!0,f=y(t.batch,function(e){return e=h(u({},e),t),e.batch=null,e}));var v,m=[],_=So(t),x=To(t);if(g(f,function(e){if(v=a.action(e,i._model,i._api),v=v||u({},e),v.type=s.event||v.type,m.push(v),x){var n=sn(t),r=n.queryOptionMap,o=n.mainTypeSpecified,l=o?r.keys()[0]:"series";kM(i,c,e,l),WM(i)}else _?(kM(i,c,e,"series"),WM(i)):p&&kM(i,c,e,p.main,p.sub)}),"none"===c||x||_||p||(this[bM]?(IM(this),DM.update.call(this,t),this[bM]=null):DM[c].call(this,t)),v=d?{type:s.event||r,escapeConnect:o,batch:m}:m[0],this[xM]=!1,!e){var b=this._messageCenter;if(b.trigger(v.type,v),_){var w={type:"selectchanged",escapeConnect:o,selected:yo(n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};b.trigger(w.type,w)}}},EM=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();LM.call(this,i,t)}},RM=function(t){!t&&this.trigger("updated")},NM=function(t,e){t.on("rendered",function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[bM]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},zM=function(t,e){t.on("mouseover",function(t){var i=t.target,n=Fu(i,bo);n&&(co(n,t,e._api),WM(e))}).on("mouseout",function(t){var i=t.target,n=Fu(i,bo);n&&(po(n,t,e._api),WM(e))}).on("click",function(t){var i=t.target,n=Fu(i,function(t){return null!=rx(t).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",o=rx(n);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},BM=function(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})},FM=function(t,e,i,n,r){HM(t,e,i,n,r),g(t._chartsViews,function(t){t.__alive=!1}),VM(t,e,i,n,r),g(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},HM=function(t,e,i,n,o,l){g(l||t._componentsViews,function(t){var o=t.__model;a(o,t),t.render(o,e,i,n),r(o,t),s(o,t)})},VM=function(t,e,o,l,h,c){var p=t._scheduler;h=u(h||{},{updatedSeries:e.getSeries()}),fM.trigger("series:beforeupdate",e,o,h);var f=!1;e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var r=i.renderTask;p.updatePayload(r,l),a(e,i),c&&c.get(e.uid)&&r.dirty(),r.perform(p.getPerformArgs(r))&&(f=!0),i.group.silent=!!e.get("silent"),n(e,i),go(e)}),p.unfinished=f||p.unfinished,fM.trigger("series:layoutlabels",e,o,h),fM.trigger("series:transition",e,o,h),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];r(e,i),s(e,i)}),i(t,e),fM.trigger("series:afterupdate",e,o,h)},WM=function(t){t[wM]=!0,t.getZr().wakeUp()},GM=function(e){e[wM]&&(e.getZr().storage.traverse(function(e){Zo(e)||t(e)}),e[wM]=!1)},YM=function(t){return new(function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return e(n,i),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},n.prototype.enterEmphasis=function(e,i){$r(e,i),WM(t)},n.prototype.leaveEmphasis=function(e,i){to(e,i),WM(t)},n.prototype.enterBlur=function(e){eo(e),WM(t)},n.prototype.leaveBlur=function(e){io(e),WM(t)},n.prototype.enterSelect=function(e){no(e),WM(t)},n.prototype.leaveSelect=function(e){ro(e),WM(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)},n}(Qw))(t)},XM=function(t){function e(t,e){for(var i=0;i<t.length;i++){t[i][TM]=e}}g(KM,function(i,n){t._messageCenter.on(n,function(i){if(nC[t.group]&&0!==t[TM]){if(i&&i.escapeConnect)return;var n=t.makeActionFromEvent(i),r=[];g(iC,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),g(r,function(t){1!==t[TM]&&t.dispatchAction(n)}),e(r,2)}})})}}(),i}(Hy),jM=UM.prototype;jM.on=Qh("on"),jM.off=Qh("off"),jM.one=function(t,e,i){function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}var r=this;this.on.call(this,t,n,i)};var qM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],ZM={},KM={},QM=[],JM=[],$M=[],tC={},eC={},iC={},nC={},rC=+new Date-0,oC=+new Date-0,aC="_echarts_instance_",sC=ic,lC=[],uC=El;yc(2e3,QS),yc(4500,$S),yc(4500,tT),yc(2e3,dT),yc(4500,gT),yc(7e3,wh),sc(ll),lc(900,ul),mc("default",Tu),pc({type:yx,event:yx,update:yx},Z),pc({type:vx,event:vx,update:vx},Z),pc({type:mx,event:mx,update:mx},Z),pc({type:_x,event:_x,update:_x},Z),pc({type:xx,event:xx,update:xx},Z),ac("light",sT),ac("dark",pT);var hC,cC,pC,fC,dC,gC,yC,vC={},mC=function(){function t(t,e,i,n,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||Sc,this._newKeyGetter=n||Sc,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,i={},n=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=n[o],s=i[a],l=wc(s);if(l>1){var u=s.shift();1===s.length&&(i[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=i[s],u=n[s],h=wc(l),c=wc(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),n[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),n[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),n[s]=null;else if(h>1)for(var p=0;h>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=wc(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[n]=null}},t.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[n](t[o],o);if(r||(i[o]=a),e){var s=e[a],l=wc(s);0===l?(e[a]=o,r&&i.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),_C=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}(),xC=function(){function t(t){this.otherDims={},null!=t&&u(this,t)}return t}(),bC=on(),wC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SC=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=Dc(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return z(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),i=!Pc(t),n="",r=[],o=0,a=0;t>o;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(n+=i?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),n+="$",n+=wC[l]||"f",u&&(n+=u.uid),n+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,n].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(n=r.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}(),TC=A,MC=y,CC="undefined"==typeof Int32Array?Array:Int32Array,IC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AC=["_approximateExtent"],kC=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 i,n=!1;Ac(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<i.length;u++){var h=i[u],c=M(h)?new xC({name:h}):h instanceof xC?h:new xC(h),p=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0);var f=c.otherDims=c.otherDims||{};o.push(p),r[p]=c,null!=l[p]&&(s=!0),c.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),n&&(c.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var d=this._dimIdxToName=G();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 i=this._dimIdxToName.get(e);if(null!=i)return i;var n=this._schema.getSourceDimension(e);return n?n.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var i=this._getDimInfo(t);return i?i.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 i=this._dimSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[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,i){var n,r=this;if(t instanceof DS&&(n=t),!n){var o=this.dimensions,a=cl(t)||d(t)?new uS(t,o.length):t;n=new DS;var s=MC(o,function(t){return{type:r._dimInfos[t].type,property:t}});n.initData(a,s,i)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=Tc(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 i=this._store.appendValues(t,e.length),n=i.start,r=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=n;r>a;a++){var s=a-n;this._nameList[a]=e[s],o&&yC(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.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 i=this._store,n=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(n.getSource().sourceFormat===kw&&!n.pure)for(var a=[],s=t;e>s;s++){var l=n.getItem(s,a);if(!this.hasItemOption&&Yi(l)&&(this.hasItemOption=!0),l){var u=l.name;null==r[s]&&null!=u&&(r[s]=Ji(u,null));var h=l.id;null==o[s]&&null!=h&&(o[s]=Ji(h,null))}}if(this._shouldMakeIdFromName())for(var s=t;e>s;s++)yC(this,s);hC(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){TC(t)?u(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return null==i&&null!=this._nameDimIdx&&(i=pC(this,this._nameDimIdx,e)),null==i&&(i=""),i},t.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},t.prototype.getId=function(t){return cC(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];return n?i.get(n.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];return n?i.getByRawIndex(n.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 i=this,n=this._store;return S(t)?n.getValues(MC(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;n>i;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();i>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 i=t&&this._invertedIndicesMap[t],n=i[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},t.prototype.each=function(t,e,i){"function"==typeof t&&(i=e,e=t,t=[]);var n=i||this,r=MC(fC(t),this._getStoreDimIndex,this);this._store.each(r,n?ky(e,n):e)},t.prototype.filterSelf=function(t,e,i){"function"==typeof t&&(i=e,e=t,t=[]);var n=i||this,r=MC(fC(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,n?ky(e,n):e),this},t.prototype.selectRange=function(t){var e=this,i={},n=[];return g(x(t),function(r){var o=e._getStoreDimIndex(r);i[o]=t[r],n.push(o)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(t,e,i){"function"==typeof t&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},t.prototype.map=function(t,e,i,n){var r=i||n||this,o=MC(fC(t),this._getStoreDimIndex,this),a=gC(this);return a._store=this._store.map(o,r?ky(e,r):e),a},t.prototype.modify=function(t,e,i,n){var r=i||n||this,o=MC(fC(t),this._getStoreDimIndex,this);this._store.modify(o,r?ky(e,r):e)},t.prototype.downSample=function(t,e,i,n){var r=gC(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),r},t.prototype.lttbDownSample=function(t,e){var i=gC(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new Ub(i,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new mC(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return cC(t,e)},function(t){return cC(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||{},TC(t)?u(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return null==n?this.getVisual(e):n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var r=n[e];return null==r&&(r=this.getVisual(e),S(r)?r=r.slice():TC(r)&&(r=u({},r)),n[e]=r),r},t.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,TC(e)?u(n,e):n[e]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(TC(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);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,i){this._itemLayouts[t]=i?u(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;ox(i,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(i,n){i&&t&&t.call(e,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:MC(this.dimensions,this._getDimInfo,this),this.hostModel)),dC(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(F(arguments)))})},t.internalField=function(){hC=function(t){var e=t._invertedIndicesMap;g(e,function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new CC(o.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(var s=0;s<a.count();s++)i[a.get(r.storeDimIndex,s)]=s}})},pC=function(t,e,i){return Ji(t._getCategory(e,i),null)},cC=function(t,e){var i=t._idList[e];return null==i&&null!=t._idDimIdx&&(i=pC(t,t._idDimIdx,e)),null==i&&(i="e\0\0"+e),i},fC=function(t){return S(t)||(t=null!=t?[t]:[]),t},gC=function(e){var i=new t(e._schema?e._schema:MC(e.dimensions,e._getDimInfo,e),e.hostModel);return dC(i,e),i},dC=function(t,e){g(IC.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,g(AC,function(i){t[i]=a(e[i])}),t._calculationInfo=u({},e._calculationInfo)},yC=function(t,e){var i=t._nameList,n=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];if(null==a&&null!=r&&(i[e]=a=pC(t,r,e)),null==s&&null!=o&&(n[e]=s=pC(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),n[e]=s}}}(),t}(),DC=function(){function t(t){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=t}return t}(),PC={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis",Am).models[0],o=t.getReferringComponents("yAxis",Am).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),Bc(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),Bc(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis",Am).models[0];e.coordSysDims=["single"],i.set("single",r),Bc(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar",Am).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),Bc(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),Bc(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){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];i.set(l,s),Bc(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},OC=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 i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[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}();bn(OC);var LC=0,EC=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++LC}return t.createByAxisModel=function(e){var i=e.option,n=i.data,r=n&&y(n,qc);return new t({categories:r,needCollect:!r,deduplication:!1!==i.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=G(this.categories))},t}(),RC=mi,NC=function(t){function i(e){var i=t.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new EC({})),S(n)&&(n=new EC({categories:y(n,function(t){return A(t)?t.value:t})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return e(i,t),i.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},i.prototype.contain=function(t){return t=this.parse(t),$c(t,this._extent)&&null!=this._ordinalMeta.categories[t]},i.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),tp(t,this._extent)},i.prototype.scale=function(t){return t=Math.round(ep(t,this._extent)),this.getRawOrdinalNumber(t)},i.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},i.prototype.getMinorTicks=function(){},i.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];i[r]=s,n[s]=r}for(var l=0;o>r;++r){for(;null!=n[l];)l++;i.push(l),n[l]=r}},i.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},i.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},i.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[e];return null==i?"":i+""}},i.prototype.count=function(){return this._extent[1]-this._extent[0]+1},i.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},i.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.niceTicks=function(){},i.prototype.niceExtent=function(){},i.type="ordinal",i}(OC);OC.registerClass(NC);var zC=mi,BC=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(i,t),i.prototype.parse=function(t){return t},i.prototype.contain=function(t){return $c(t,this._extent)},i.prototype.normalize=function(t){return tp(t,this._extent)},i.prototype.scale=function(t){return ep(t,this._extent)},i.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},i.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])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Kc(t)},i.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;i[0]<n[0]&&o.push(t?{value:zC(n[0]-e,r)}:{value:i[0]});for(var a=n[0];a<=n[1]&&(o.push({value:a}),(a=zC(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:n[1];return i[1]>s&&o.push(t?{value:zC(s+e,r)}:{value:i[1]}),o},i.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=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,h=u/t;t-1>s;){var c=zC(a.value+(s+1)*h);c>n[0]&&c<n[1]&&l.push(c),s++}i.push(l)}return i},i.prototype.getLabel=function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=xi(t.value)||0:"auto"===i&&(i=this._intervalPrecision),hs(zC(t.value,i,!0))},i.prototype.niceTicks=function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){0>r&&(r=-r,n.reverse());var o=Zc(n,t,e,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},i.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=zC(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=zC(Math.ceil(e[1]/r)*r))},i.type="interval",i}(OC);OC.registerClass(BC);var FC="__ec_stack_",HC=("undefined"!=typeof Float32Array?Float32Array:Array,gu(),function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i}),VC=function(t){function i(e){var i=t.call(this,e)||this;return i.type="time",i}return e(i,t),i.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ga(t.value,uw[Wa(Ya(this._minLevelUnit))]||uw.second,e,this.getSetting("locale"))},i.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC");return Ua(t,e,i,this.getSetting("locale"),n)},i.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];if(!t)return i;i.push({value:e[0],level:0});var n=this.getSetting("useUTC"),r=mp(this._minLevelUnit,this._approxInterval,n,e);return i=i.concat(r),i.push({value:e[1],level:0}),i},i.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 i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-ow}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},i.prototype.niceTicks=function(t,e,i){t=t||10;var n=this._extent,r=n[1]-n[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=i&&this._approxInterval>i&&(this._approxInterval=i);var o=YC.length,a=Math.min(HC(YC,this._approxInterval,0,o),o-1);this._interval=YC[a][1],this._minLevelUnit=YC[Math.max(a-1,0)][0]},i.prototype.parse=function(t){return"number"==typeof t?t:+Ii(t)},i.prototype.contain=function(t){return $c(this.parse(t),this._extent)},i.prototype.normalize=function(t){return tp(this.parse(t),this._extent)},i.prototype.scale=function(t){return ep(t,this._extent)},i.type="time",i}(BC),YC=[["second",iw],["minute",nw],["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]];OC.registerClass(VC);var XC=OC.prototype,WC=BC.prototype,GC=mi,UC=Math.floor,jC=Math.ceil,qC=Math.pow,ZC=Math.log,KC=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new BC,e._interval=0,e}return e(i,t),i.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return y(WC.getTicks.call(this,t),function(t){var e=t.value,r=mi(qC(this.base,e));return r=e===i[0]&&this._fixMin?_p(r,n[0]):r,r=e===i[1]&&this._fixMax?_p(r,n[1]):r,{value:r}},this)},i.prototype.setExtent=function(t,e){var i=this.base;t=ZC(t)/ZC(i),e=ZC(e)/ZC(i),WC.setExtent.call(this,t,e)},i.prototype.getExtent=function(){var t=this.base,e=XC.getExtent.call(this);e[0]=qC(t,e[0]),e[1]=qC(t,e[1]);var i=this._originalScale,n=i.getExtent();return this._fixMin&&(e[0]=_p(e[0],n[0])),this._fixMax&&(e[1]=_p(e[1],n[1])),e},i.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=ZC(t[0])/ZC(e),t[1]=ZC(t[1])/ZC(e),XC.unionExtent.call(this,t)},i.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},i.prototype.niceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=Ai(i),r=t/i*n;for(.5>=r&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[mi(jC(e[0]/n)*n),mi(UC(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},i.prototype.niceExtent=function(t){WC.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},i.prototype.parse=function(t){return t},i.prototype.contain=function(t){return t=ZC(t)/ZC(this.base),$c(t,this._extent)},i.prototype.normalize=function(t){return t=ZC(t)/ZC(this.base),tp(t,this._extent)},i.prototype.scale=function(t){return t=ep(t,this._extent),qC(this.base,t)},i.type="log",i}(OC),QC=KC.prototype;QC.getMinorTicks=WC.getMinorTicks,QC.getLabel=WC.getLabel,OC.registerClass(KC);var JC=function(){function t(t,e,i){this._prepareParams(t,e,i)}return t.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type;this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);T(r)?this._modelMinNum=bp(t,r({min:i[0],max:i[1]})):"dataMin"!==r&&(this._modelMinNum=bp(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(T(o)?this._modelMaxNum=bp(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=bp(t,o)),n)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]:[ei(s[0],1),ei(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,r=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?n?0:NaN:e-r[0]*o),null==s&&(s=t?n?n-1:NaN:i+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),a>s&&(a=NaN,s=NaN);var h=R(a)||R(s)||t&&!n;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[tI[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[$C[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),$C={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}(),iI={isDimensionStacked:Vc,enableDataStack:Fc,getStackedDimension:Yc},nI=(Object.freeze||Object)({createList:Ep,getLayoutRect:xs,dataStack:iI,createScale:Rp,mixinAxisModelCommonMethods:Np,getECData:rx,createTextStyle:zp,createDimensions:Oc,createSymbol:Vu,enableHoverEmphasis:vo}),rI=[],oI={registerPreprocessor:sc,registerProcessor:lc,registerPostInit:uc,registerPostUpdate:hc,registerUpdateLifecycle:cc,registerAction:pc,registerCoordinateSystem:fc,registerLayout:gc,registerVisual:yc,registerTransform:uC,registerLoading:mc,registerMap:xc,PRIORITY:_M,ComponentModel:ww,ComponentView:FS,SeriesModel:BS,ChartView:YS,registerComponentModel:function(t){ww.registerClass(t)},registerComponentView:function(t){FS.registerClass(t)},registerSeriesModel:function(t){BS.registerClass(t)},registerChartView:function(t){YS.registerClass(t)},registerSubTypeDefaulter:function(t,e){ww.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){di(t,e)}},aI=(Object.freeze||Object)({linearMap:yi,round:mi,asc:_i,getPrecision:xi,getPrecisionSafe:bi,getPixelPrecision:wi,getPercentWithPrecision:Si,MAX_SAFE_INTEGER:9007199254740991,remRadian:Mi,isRadianAroundZero:Ci,parseDate:Ii,quantity:Ai,quantityExponent:ki,nice:Di,quantile:Pi,reformIntervals:Oi,isNumeric:Ei,numericToNumber:Li}),sI=(Object.freeze||Object)({parse:Ii,format:Ga}),lI=(Object.freeze||Object)({extendShape:ta,extendPath:ea,makePath:ra,makeImage:oa,mergePath:kb,resizePath:sa,createIcon:ma,updateProps:jo,initProps:qo,getTransform:ha,clipPointsByRect:ya,clipRectByRect:va,registerShape:ia,getShapeClass:na,Group:gm,Image:q_,Text:ex,Circle:zx,Ellipse:Fx,Sector:Jx,Ring:tb,Polygon:ib,Polyline:rb,Rect:J_,Line:sb,BezierCurve:hb,Arc:pb,IncrementalDisplayable:Sb,CompoundPath:fb,LinearGradient:gb,RadialGradient:yb,BoundingRect:om}),uI=(Object.freeze||Object)({addCommas:hs,toCamelCase:cs,normalizeCssArray:pw,encodeHTML:ps,formatTpl:ds,getTooltipMarker:gs,formatTime:ys,capitalFirst:vs,truncateText:In,getTextRect:us}),hI=(Object.freeze||Object)({map:y,each:g,indexOf:c,inherits:p,reduce:v,filter:m,bind:ky,curry:w,isArray:S,isString:M,isObject:A,isFunction:T,extend:u,defaults:h,clone:a,merge:s}),cI=on(),pI=[0,1],fI=function(){function t(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return t.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=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 wi(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},t.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),$p(i,n.count())),yi(t,pI,i,e)},t.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),$p(i,n.count()));var r=yi(t,i,pI,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=Hp(this,e),n=i.ticks,r=y(n,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(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},t.prototype.calculateCategoryInterval=function(){return Zp(this)},t}(),dI=2*Math.PI,gI=O_.CMD,yI=["top","right","bottom","left"],vI=[],mI=new Kv,_I=new Kv,xI=new Kv,bI=new Kv,wI=new Kv,SI=[],TI=new Kv,MI=["align","verticalAlign","width","height","fontSize"],CI=new qv,II=on(),AI=on(),kI=["x","y","rotation"],DI=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,i,n,r){var o=n.style,a=n.__hostTarget,s=a.textConfig||{},l=n.getComputedTransform(),u=n.getBoundingRect().plain();om.applyTransform(u,u,l),l?CI.setLocalTransform(l):(CI.x=CI.y=CI.rotation=CI.originX=CI.originY=0,CI.scaleX=CI.scaleY=1);var h,c=n.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();om.applyTransform(h,h,p)}var f=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:f,seriesModel:i,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:f&&f.ignore,x:CI.x,y:CI.y,scaleX:CI.scaleX,scaleY:CI.scaleY,rotation:CI.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,n=i.get("labelLayout");(T(n)||x(n).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,i,r,n)})},t.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),i=t.getHeight(),n=0;n<this._labelList.length;n++){var r=this._labelList[n],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0;l="function"==typeof r.layoutOption?r.layoutOption(Tf(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 h=!1;if(null!=l.x?(o.x=vi(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=vi(l.y,i),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints){var c=a.getTextGuideLine();c&&(c.setShape({points:l.labelLinePoints}),h=!1)}II(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var p=0;p<MI.length;p++){var f=MI[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(),i=t.getHeight(),n=mf(this._labelList),r=m(n,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=m(n,function(t){return"shiftY"===t.layoutOption.moveOverlap});xf(r,0,e),bf(o,0,i),wf(m(n,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;g(this._chartViewList,function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,r=i.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore)return!0;var o=!n,a=e.getTextContent();!o&&a&&(o=II(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,i),r&&t._animateLabels(e,i)})})},t.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=rx(t),r=n.dataIndex;if(i&&null!=r){var o=e.getData(n.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var h=a.getModel("labelLine");yf(t,vf(a),s),pf(t,h)}},t.prototype._animateLabels=function(t,e){var i=t.getTextContent(),n=t.getTextGuideLine();if(i&&!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!Zo(t)){var r=II(i),o=r.oldLayout,a=rx(t),s=a.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},u=e.getData(a.dataType);if(o){i.attr(o);var h=t.prevStates;h&&(c(h,"select")>=0&&i.attr(r.oldLayoutSelect),c(h,"emphasis")>=0&&i.attr(r.oldLayoutEmphasis)),jo(i,l,e,s)}else if(i.attr(l),!Nb(i).valueAnimation){var p=z(i.style.opacity,1);i.style.opacity=0,qo(i,{style:{opacity:p}},e,s)}if(r.oldLayout=l,i.states.select){var f=r.oldLayoutSelect={};Mf(f,l,kI),Mf(f,i.states.select,kI)}if(i.states.emphasis){var d=r.oldLayoutEmphasis={};Mf(d,l,kI),Mf(d,i.states.emphasis,kI)}Ea(i,s,u,e,e)}if(n&&!n.ignore&&!n.invisible){var r=AI(n),o=r.oldLayout,g={points:n.shape.points};o?(n.attr({shape:o}),jo(n,{shape:g},e)):(n.setShape(g),n.style.strokePercent=0,qo(n,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),PI=on();Bp(Cf);var OI=function(t){function i(e,i,n){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;n=n||zv,"string"==typeof e?o=Af(e,i,n):A(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=i,r.config=null,r.dpr=n,r}return e(i,t),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Af("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},i.prototype.createRepaintRects=function(t,e,i,n){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 i=!1,n=1/0,r=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(t)){var c=new om(0,0,0,0);c.copy(h),c.union(t),o[u]=c,i=!0;break}if(s){l.copy(t),l.union(h);var p=t.width*t.height,f=h.width*h.height,d=l.width*l.height,g=d-p-f;n>g&&(n=g,r=u)}}if(s&&(o[r].union(t),i=!0),!i){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 h=t[u];if(h){var c=h.shouldBePainted(i,n,!0,!0),p=h.__isRendered&&(h.__dirty&rv||!c)?h.getPrevPaintRect():null;p&&r(p);var f=c&&(h.__dirty&rv||!h.__isRendered)?h.getPaintRect():null;f&&r(f)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h=e[u],c=h.shouldBePainted(i,n,!0,!0);if(h&&(!c||!h.__zr)&&h.__isRendered){var p=h.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},i.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},i.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i&&this.ctxBack.scale(i,i))},i.prototype.clear=function(t,e,i){function n(t,i,n,r){if(o.clearRect(t,i,n,r),e&&"transparent"!==e){var a=void 0;O(e)?(a=e.__canvasGradient||Uu(o,e,{x:0,y:0,width:n,height:r}),e.__canvasGradient=a):L(e)&&(a=th(o,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,i,n,r),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(p,t,i,n,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,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h));var p=this.domBack;!i||l?n(0,0,a,s):i.length&&g(i,function(t){n(t.x*h,t.y*h,t.width*h,t.height*h)})},i}(Hy),LI=314159,EI=function(){function t(t,e,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=u({},i||{}),this.dpr=i.devicePixelRatio||zv,this._singleCanvas=n,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(n){var s=t,l=s.width,h=s.height;null!=i.width&&(l=i.width),null!=i.height&&(h=i.height),this.dpr=i.devicePixelRatio||1,s.width=l*this.dpr,s.height=h*this.dpr,this._width=l,this._height=h;var c=new OI(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[LI]=c,c.zlevel=LI,o.push(LI),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=Pf(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),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var r=0;r<n.length;r++){var o=n[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,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(i||(i=this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx,n.save()),dh(n,a,r,o===e-1))}n&&n.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){fh(t,e)},t.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,i),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,i,n)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(LI).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},t.prototype._doPaintList=function(t,e,i){for(var n=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||i)&&r.push(l)}for(var u=!0,h=!1,c=this,p=0;p<r.length;p++)!function(a){var s=r[a],l=s.ctx,p=o&&s.createRepaintRects(t,e,c._width,c._height),f=i?s.__startIndex:s.__drawIndex,d=!i&&s.incremental&&Date.now,g=d&&Date.now(),y=s.zlevel===c._zlevelList[0]?c._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&&!i||s.clear(!1,y,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=s.__startIndex);var m,_=function(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(m=f;m<s.__endIndex;m++){var r=t[m];if(r.__inHover&&(h=!0),n._doPaintEl(r,s,o,e,i,m===s.__endIndex-1),d){if(Date.now()-g>15)break}}i.prevElClipPaths&&l.restore()};if(p)if(0===p.length)m=s.__endIndex;else for(var x=c.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:h}},t.prototype._doPaintEl=function(t,e,i,n,r,o){var a=e.ctx;if(i){var s=t.getPaintRect();(!n||s&&s.intersect(n))&&(dh(a,t,r,o),t.setPrevPaintRect(s))}else dh(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=LI);var i=this._layers[t];return i||(i=new OI("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?s(i,this._layerConfig[t],!0):this._layerConfig[t-.01]&&s(i,this._layerConfig[t-.01],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},t.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,a=this._domRoot,s=null,l=-1;if(i[t])return void o("ZLevel "+t+" has been used already");if(!Df(e))return void o("Layer of zlevel "+t+" is not valid");if(r>0&&t>n[0]){for(l=0;r-1>l&&!(n[l]<t&&n[l+1]>t);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[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 i=this._zlevelList,n=0;n<i.length;n++){var r=i[n];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],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 i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var r,a,s=null,l=0;for(a=0;a<t.length;a++){var n=t[a],u=n.zlevel,h=void 0;r!==u&&(r=u,l=0),n.incremental?(h=this.getLayer(u+.001,this._needsManuallyCompositing),h.incremental=!0,l=1):h=this.getLayer(u+(l>0?.01:0),this._needsManuallyCompositing),h.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==a&&(h.__dirty=!0),h.__startIndex=a,h.__drawIndex=h.incremental?-1:a,e(a),s=h),n.__dirty&rv&&!n.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__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 i=this._layerConfig;i[t]?s(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===t||r===t+.01){s(this._layers[r],i[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(c(i,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.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 OI("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.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];dh(i,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,i=["width","height"][t],n=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[n]||kf(s[i])||kf(a.style[i]))-(kf(s[r])||0)-(kf(s[o])||0)|0},t.prototype.pathToImage=function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,h=t.hasStroke()?o.lineWidth:0,c=Math.max(h/2,-s+a),p=Math.max(h/2,s+a),f=Math.max(h/2,-l+a),d=Math.max(h/2,l+a),g=r.width+c+p,y=r.height+f+d;i.width=g*e,i.height=y*e,n.scale(e,e),n.clearRect(0,0,g,y),n.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=c-r.x,t.y=f-r.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&dh(n,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new q_({style:{x:0,y:0,image:i}});return u(t,v),m},t}(),RI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(i,t),i.prototype.init=function(e,i,n){t.prototype.init.call(this,e,i,n),this._sourceManager=new PS(this),Yl(this)},i.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),Yl(this)},i.prototype.optionUpdated=function(){this._sourceManager.dirty()},i.prototype.getSourceManager=function(){return this._sourceManager},i.type="dataset",i.defaultOption={seriesLayoutBy:Rw},i}(ww),NI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(i,t),i.type="dataset",i}(FS);Bp([Of,Lf]),Bp(Cf);var zI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.hasSymbolVisual=!0,e}return e(i,t),i.prototype.getInitialData=function(){return Gc(null,this,{useEncodeDefaulter:!0})},i.prototype.getLegendIcon=function(t){var e=new gm,i=Vu("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===n?"circle":n,a=.8*t.itemHeight,s=Vu(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},i.type="series.line",i.dependencies=["grid","polar"],i.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"}},i}(BS),BI=function(t){function i(e,i,n,r){var o=t.call(this)||this;return o.updateData(e,i,n,r),o}return e(i,t),i.prototype._createSymbol=function(t,e,i,n,r){this.removeAll();var o=Vu(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=Nf,this._symbolType=t,this.add(o)},i.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},i.prototype.getSymbolType=function(){return this._symbolType},i.prototype.getSymbolPath=function(){return this.childAt(0)},i.prototype.highlight=function(){$r(this.childAt(0))},i.prototype.downplay=function(){to(this.childAt(0))},i.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},i.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},i.prototype.updateData=function(t,e,n,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=i.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,h)}else{var c=this.childAt(0);c.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(p):jo(c,p,a,e),$o(c)}if(this._updateCommon(t,e,s,n,r),l){var c=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,qo(c,p,a,e)}}u&&this.childAt(0).stopAnimation("remove"),this._seriesModel=a},i.prototype._updateCommon=function(t,e,i,n,r){function o(e){return C?t.getName(e):Ef(t,e)}var a,s,l,h,c,p,f,d,g=this.childAt(0),y=t.hostModel;if(n&&(a=n.emphasisItemStyle,s=n.blurItemStyle,l=n.selectItemStyle,h=n.focus,c=n.blurScope,p=n.labelStatesModels,f=n.hoverScale,d=n.cursorStyle),!n||t.hasItemOption){var v=n&&n.itemModel?n.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(),h=m.get("focus"),c=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=Xu(t.getItemVisual(e,"symbolOffset"),i);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 T=t.getItemVisual(e,"liftZ"),M=this._z2;null!=T?null==M&&(this._z2=g.z2,g.z2+=T):null!=M&&(g.z2=M,this._z2=null);var C=r&&r.useNameLabel;Ca(g,p,{labelFetcher:y,labelDataIndex:e,defaultText:o,inheritColor:w,defaultOpacity:b.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=g.ensureState("emphasis");if(I.style=a,g.ensureState("select").style=l,g.ensureState("blur").style=s,f){var A=Math.max(1.1,3/this._sizeY);I.scaleX=this._sizeX*A,I.scaleY=this._sizeY*A}this.setSymbolScale(1),vo(this,h,c)},i.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},i.prototype.fadeOut=function(t,e){var i=this.childAt(0),n=this._seriesModel,r=rx(this).dataIndex,o=e&&e.animation;if(this.silent=i.silent=!0,e&&e.fadeLabel){var a=i.getTextContent();a&&Ko(a,{style:{opacity:0}},n,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ko(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:r,cb:t,removeOpt:o})},i.getSymbolSize=function(t,e){return Yu(t.getItemVisual(e,"symbolSize"))},i}(gm),FI=function(){function t(t){this.group=new gm,this._SymbolCtor=t||BI}return t.prototype.updateData=function(t,e){e=Bf(e);var i=this.group,n=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||i.removeAll(),t.diff(r).add(function(n){var r=u(n);if(zf(t,r,n,e)){var a=new o(t,n,s,l);a.setPosition(r),t.setItemGraphicEl(n,a),i.add(a)}}).update(function(h,c){var p=r.getItemGraphicEl(c),f=u(h);if(!zf(t,f,h,e))return void i.remove(p);var d=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==d)i.remove(p),p=new o(t,h,s,l),p.setPosition(f);else{p.updateData(t,h,s,l);var y={x:f[0],y:f[1]};a?p.attr(y):jo(p,y,n)}i.add(p),t.setItemGraphicEl(h,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){i.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,i){var n=t._getSymbolPoint(i);e.setPosition(n),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ff(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}i=Bf(i);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(zf(e,o,r,i)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(n),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a)}}},t.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()},t}(),HI="undefined"!=typeof Float32Array,VI=HI?Float32Array:Array,YI=Math.min,XI=Math.max,WI=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),GI=function(t){function i(e){var i=t.call(this,e)||this;return i.type="ec-polyline",i}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new WI},i.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;r>0&&Uf(i[2*r-2],i[2*r-1]);r--);for(;r>n&&Uf(i[2*n],i[2*n+1]);n++);}for(;r>n;)n+=jf(t,i,n,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},i.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,r=this.path,o=r.data,a=O_.CMD,s="x"===e,l=[],u=0;u<o.length;){var h=o[u++],c=void 0,p=void 0,f=void 0,d=void 0,g=void 0,y=void 0,v=void 0;switch(h){case a.M:i=o[u++],n=o[u++];break;case a.L:if(c=o[u++],p=o[u++],1>=(v=s?(t-i)/(c-i):(t-n)/(p-n))&&v>=0){var m=s?(p-n)*v+n:(c-i)*v+i;return s?[t,m]:[m,t]}i=c,n=p;break;case a.C:c=o[u++],p=o[u++],f=o[u++],d=o[u++],g=o[u++],y=o[u++];var _=s?Yn(i,c,f,g,t,l):Yn(n,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?Hn(n,p,d,y,b):Hn(i,c,f,g,b);return s?[t,m]:[m,t]}}i=g,n=y}}},i}(X_),UI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i}(WI),jI=function(t){function i(e){var i=t.call(this,e)||this;return i.type="ec-polygon",i}return e(i,t),i.prototype.getDefaultShape=function(){return new UI},i.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Uf(i[2*o-2],i[2*o-1]);o--);for(;o>r&&Uf(i[2*r],i[2*r+1]);r++);}for(;o>r;){var s=jf(t,i,r,o,o,1,e.smooth,a,e.connectNulls);jf(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},i}(X_),qI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.init=function(){var t=new gm,e=new FI;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},i.prototype.render=function(t,e,i){var n=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="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=Hf(r,a,_),b=m&&ed(r,a,x),w=t.get("showSymbol"),S=w&&!c&&rd(t,a,r),T=this._data;T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),T.setItemGraphicEl(e,null))}),w||f.remove(),o.add(y);var M,C=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(M=r.getArea(),null!=M.width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=nd(a,r)||a.getVisual("style")[a.getVisual("drawType")];d&&p.type===r.type&&C===this._step?(m&&!g?g=this._newPolygon(u,b):g&&!m&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,ms(I)),y.setClipPath(cd(this,r,!1,t)),w&&f.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Qf(this._stackedOnPoints,b)&&Qf(this._points,u)||(v?this._doUpdateAnimation(a,b,r,i,C,_):(C&&(u=id(u,r,C),b&&(b=id(b,r,C))),d.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:b})))):(w&&f.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,M),C&&(u=id(u,r,C),b&&(b=id(b,r,C))),d=this._newPolyline(u),m&&(g=this._newPolygon(u,b)),c||this._initOrUpdateEndLabel(t,r,ms(I)),y.setClipPath(cd(this,r,!0,t)));var A=t.get(["emphasis","focus"]),k=t.get(["emphasis","blurScope"]);if(d.useStyle(h(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,A,k);var D=td(t.get("smooth")),P=t.get("smoothMonotone"),O=t.get("connectNulls");if(d.setShape({smooth:D,smoothMonotone:P,connectNulls:O}),g){var L=a.getCalculationInfo("stackedOnSeries"),E=0;g.useStyle(h(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(E=td(L.get("smooth"))),g.setShape({smooth:D,stackedOnSmooth:E,smoothMonotone:P,connectNulls:O}),_o(g,t,"areaStyle"),rx(g).seriesIndex=t.seriesIndex,vo(g,A,k)}var R=function(t){n._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=R)}),this._polyline.onHoverStateChange=R,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=C,this._valueOrigin=_},i.prototype.dispose=function(){},i.prototype.highlight=function(t,e,i,n){var r=t.getData(),o=rn(r,n);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 h=t.get("zlevel"),c=t.get("z");s=new BI(r,o),s.x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else YS.prototype.highlight.call(this,t,e,i,n)},i.prototype.downplay=function(t,e,i,n){var r=t.getData(),o=rn(r,n);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 YS.prototype.downplay.call(this,t,e,i,n)},i.prototype._changePolyState=function(t){var e=this._polygon;Wr(this._polyline,t),e&&Wr(e,t)},i.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new GI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},i.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new jI({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},i.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="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,h="function"==typeof u?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,f=void 0,d=void 0;if(i)if(r){var g=i,y=e.pointToCoord(c);n?(p=g.startAngle,f=g.endAngle,d=-y[1]/180*Math.PI):(p=g.r0,f=g.r,d=y[0])}else{var v=i;n?(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+h,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}})},i.prototype._initOrUpdateEndLabel=function(t,e,i){var n=t.getModel("endLabel");if(hd(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&&(Ca(o,Ia(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,i){return null!=i?Rf(r,i):Ef(r,t)},enableTextSetter:!0},pd(n,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(t,e,i,n,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=i.getLayout("points"),h=i.hostModel,c=h.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,T=S[1]-S[0],M=void 0;if(T>=1){if(T>1&&!c){var C=ld(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),r&&(M=h.getRawValue(S[0]))}else{var C=l.getPointOn(m,b);C&&s.attr({x:C[0]+_,y:C[1]+x});var I=h.getRawValue(S[0]),A=h.getRawValue(S[1]);r&&(M=pn(i,p,I,A,w.t))}n.lastFrameIndex=S[0]}else{var k=1===t||n.lastFrameIndex>0?S[0]:0,C=ld(u,k);r&&(M=h.getRawValue(k)),s.attr({x:C[0]+_,y:C[1]+x})}r&&Nb(s).setLabelText(M)}},i.prototype._doUpdateAnimation=function(t,e,i,n,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=Gf(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin),h=u.current,c=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(r&&(h=id(u.current,i,r),c=id(u.stackedOnCurrent,i,r),p=id(u.next,i,r),f=id(u.stackedOnNext,i,r)),$f(h,p)>3e3||s&&$f(c,f)>3e3)return a.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:f}));a.shape.__points=u.current,a.shape.points=h;var d={shape:{points:p}};u.current!==h&&(d.shape.__points=u.next),a.stopAnimation(),jo(a,d,l),s&&(s.setShape({points:h,stackedOnPoints:c}),s.stopAnimation(),jo(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 i=g[e].el,n=2*g[e].ptIdx;i.x=t[n],i.y=t[n+1],i.markRedraw()}})},i.prototype.remove=function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t.remove(i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},i.type="line",i}(YS),ZI={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},KI=function(t){return Math.round(t.length/2)};Bp(gd);var QI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.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"},i}(ww),JI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Am).models[0]},i.type="cartesian2dAxis",i}(ww);f(JI,eI);var $I={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)"]}}},tA=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},$I),eA=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}}},$I),iA=s({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eA),nA=h({scale:!0,logBase:10},eA),rA={category:tA,value:eA,time:iA,log:nA},oA={value:1,category:1,time:1,log:1},aA=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}(),sA=["x","y"],lA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=sA,e}return e(i,t),i.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 i=t.getExtent(),n=e.getExtent(),r=this.dataToPoint([i[0],n[0]]),o=this.dataToPoint([i[1],n[1]]),a=i[1]-i[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-i[0]*l,c=r[1]-n[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=Ge([],p)}}},i.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},i.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},i.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},i.prototype.dataToPoint=function(t,e,i){i=i||[];var n=t[0],r=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return dt(i,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(n,e)),i[1]=a.toGlobalCoord(a.dataToCoord(r,e)),i},i.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.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},i.prototype.pointToData=function(t,e){var i=[];if(this._invTransform)return dt(i,t,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),e),i[1]=r.coordToData(r.toLocalCoord(t[1]),e),i},i.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},i.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-i,o=Math.max(e[0],e[1])-n;return new om(i,n,r,o)},i}(aA),uA=function(t){function i(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(i,t),i.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},i.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},i.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},i.prototype.setCategorySortInfo=function(t){return"category"===this.type&&(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},i}(fI),hA=function(){function t(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sA,this._initCartesian(t,e,i),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),g(i.x,function(t){Tp(t.scale,t.model)}),g(i.y,function(t){Tp(t.scale,t.model)});var n={};g(i.x,function(t){Sd(i,"y",t,n)}),g(i.y,function(t){Sd(i,"x",t,n)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,i){function n(){g(s,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),Md(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!i&&t.get("containLabel"),a=xs(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;n(),o&&(g(s,function(t){if(!t.model.get(["axisLabel","inside"])){var e=kp(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]);a[i]-=e[i]+n,"top"===t.position?a.y+=e.height+n:"left"===t.position&&(a.x+=e.width+n)}}}),n()),g(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var i=this._axesMap[t];return null!=i?i[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}A(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",Am).models[0],o=t.yAxisModel||n&&n.getReferringComponents("yAxis",Am).models[0],a=t.gridModel,s=this._coordsList;if(n)e=n.coordinateSystem,c(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)i=this.getAxis("x",r.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:i}},t.prototype.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},t.prototype._initCartesian=function(t,e){function i(e){return function(i,n){if(wd(i,t)){var l=i.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 uA(e,Mp(i),[0,0],i.get("type"),l),h="category"===u.type;u.onBand=h&&i.get("boundaryGap"),u.inverse=i.get("inverse"),i.axis=u,u.model=i,u.grid=r,u.index=n,r._axesList.push(u),a[e][n]=u,s[e]++}}}var n=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),s.x&&s.y?(this._axesMap=a,void g(a.x,function(e,i){g(a.y,function(r,o){var a="x"+i+"y"+o,s=new lA(a);s.master=n,s.model=t,n._coordsMap[a]=s,n._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})):(this._axesMap={},void(this._axesList=[]))},t.prototype._updateScale=function(t,e){function i(t,e){g(Lp(t,e.dim),function(i){e.scale.unionExtentFromData(t,i)})}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 n=bd(t),r=n.xAxisModel,o=n.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&&(i(s,l),i(s,u))}},this)},t.prototype.getTooltipAxes=function(t){var e=[],i=[];return g(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);c(e,r)<0&&e.push(r),c(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},t.create=function(e,i){var n=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,i);a.name="grid_"+o,a.resize(r,i,!0),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(t){if(xd(t)){var e=bd(t),i=e.xAxisModel,n=e.yAxisModel,r=i.getCoordSysModel(),o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(i.componentIndex,n.componentIndex)}}),n},t.dimensions=sA,t}(),cA=Math.PI,pA=function(){function t(t,e){this.group=new gm,this.opt=e,this.axisModel=t,h(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new gm({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return t.prototype.hasBuilder=function(t){return!!fA[t]},t.prototype.add=function(t){fA[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,i){var n,r,o=Mi(e-t);return Ci(o)?(r=i>0?"top":"bottom",n="center"):Ci(o-cA)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&cA>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,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}(),fA={axisLine:function(t,e,i,n){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=n.transform,s=[o[0],0],l=[o[1],0];a&&(dt(s,s,a),dt(l,l,a));var h=u({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new sb({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",i.add(c);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=Xu(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,n){if("none"!==p[n]&&null!=p[n]){var r=Vu(p[n],-y/2,-v/2,y,v,h.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}),i.add(r)}})}}},axisTickLabel:function(t,e,i,n){var r=Od(i,n,e,t);Id(e,Ed(i,n,e,t),r),Ld(i,n,e,t.tickDirection)},axisName:function(t,e,i,n){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,h=e.axis.getExtent(),c=h[0]>h[1]?-1:1,p=["start"===a?h[0]-c*u:"end"===a?h[1]+c*u:(h[0]+h[1])/2,Dd(a)?t.labelOffset+s*u:0],f=e.get("nameRotate");null!=f&&(f=f*cA/180);var d;Dd(a)?o=pA.innerTextLayout(t.rotation,null!=f?f:t.rotation,s):(o=Cd(t.rotation,a,f||0,h),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:pA.isLabelSilent(e),style:Aa(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=pA.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,rx(_).eventData=x}n.add(_),_.updateTransform(),i.add(_),_.decomposeTransform()}}},dA={},gA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.render=function(e,i,n){this.axisPointerClass&&Vd(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},i.prototype.updateAxisPointer=function(t,e,i){this._doUpdateAxisPointerClass(t,i,!1)},i.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},i.prototype.dispose=function(e,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},i.prototype._doUpdateAxisPointerClass=function(t,e,n){var r=i.getAxisPointerClass(this.axisPointerClass);if(r){var o=Xd(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,n):this._disposeAxisPointer(e)}},i.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},i.registerAxisPointerClass=function(t,e){dA[t]=e},i.getAxisPointerClass=function(t){return t&&dA[t]},i.type="axis",i}(FS),yA=on(),vA=["axisLine","axisTickLabel","axisName"],mA=["splitArea","splitLine","minorSplitLine"],_A=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.axisPointerClass="CartesianAxisPointer",e}return e(i,t),i.prototype.render=function(e,i,n,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 pA(e,u({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),i=0;i<t.length;i++){var n=t[i].getOtherAxis(e.axis).type;if("value"===n||"log"===n)return!0}return!1}},s));g(vA,l.add,l),this._axisGroup.add(l.getGroup()),g(mA,function(t){e.get([t,"show"])&&xA[t](this,this._axisGroup,e,a)},this);r&&"changeAxisOrder"===r.type&&r.isInitSort||ga(o,this._axisGroup,e),t.prototype.render.call(this,e,i,n,r)}},i.prototype.remove=function(){jd(this)},i.type="cartesianAxis",i}(gA),xA={splitLine:function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=S(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=r.isHorizontal(),c=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=c++%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:h({stroke:s[m]},g),silent:!0}))}}},minorSplitLine:function(t,e,i,n){var r=i.axis,o=i.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var h=[],c=[],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?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g),e.add(new sb({anid:"minor_line_"+u[f][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:p,silent:!0}))}},splitArea:function(t,e,i,n){Ud(t,e,i,n)}},bA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="xAxis",i}(_A),wA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=bA.type,e}return e(i,t),i.type="yAxis",i}(_A),SA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return e(i,t),i.prototype.render=function(t){this.group.removeAll(),t.get("show")&&this.group.add(new J_({shape:t.coordinateSystem.getRect(),style:h({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},i.type="grid",i}(FS),TA={offset:0};Bp(qd);var MA=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},CA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.layoutMode={type:"box",ignoreSize:!0},e}return e(i,t),i.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},i.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},i.prototype._updateSelector=function(t){var e=t.selector,i=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),S(e)&&g(e,function(t,n){M(t)&&(t={type:t}),e[n]=s(t,MA(i,t.type))})},i.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},i.prototype._updateData=function(t){var e=[],i=[];t.eachRawSeries(function(n){var r=n.name;i.push(r);var o;if(n.legendVisualProvider){var a=n.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(n)||(i=i.concat(s)),s.length?e=e.concat(s):o=!0}else o=!0;o&&$i(n)&&e.push(n.name)}),this._availableNames=i;var n=this.get("data")||e,r=y(n,function(t){return("string"==typeof t||"number"==typeof t)&&(t={name:t}),new Ub(t,this,this.ecModel)},this);this._data=r},i.prototype.getData=function(){return this._data},i.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},i.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},i.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},i.prototype.allSelect=function(){var t=this._data,e=this.option.selected;g(t,function(t){e[t.get("name",!0)]=!0})},i.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;g(t,function(t){var i=t.get("name",!0);e.hasOwnProperty(i)||(e[i]=!0),e[i]=!e[i]})},i.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&c(this._availableNames,t)>=0},i.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},i.type="legend.plain",i.dependencies=["series"],i.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}},i}(ww),IA=w,AA=g,kA=gm,DA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.newlineDisabled=!1,e}return e(i,t),i.prototype.init=function(){this.group.add(this._contentGroup=new kA),this.group.add(this._selectorGroup=new kA),this._isFirstRender=!0},i.prototype.getContentGroup=function(){return this._contentGroup},i.prototype.getSelectorGroup=function(){return this._selectorGroup},i.prototype.render=function(t,e,i){var n=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,i,a,o,s);var l=t.getBoxLayoutParams(),u={width:i.getWidth(),height:i.getHeight()},c=t.get("padding"),p=xs(l,u,c),f=this.layoutInner(t,r,p,n,a,s),d=xs(h({width:f.width,height:f.height},l),u,c);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))}},i.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},i.prototype.renderInner=function(t,e,i,n,r,o,a){var s=this.getContentGroup(),l=G(),u=e.get("selectedMode"),h=[];i.eachRawSeries(function(t){!t.get("legendHoverLink")&&h.push(t.id)}),AA(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var c=new kA;return c.newline=!0,void s.add(c)}var p=i.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",IA(Jd,a,null,n,h)).on("mouseover",IA(tg,p.name,null,n,h)).on("mouseout",IA(eg,p.name,null,n,h)),l.set(a,!0)}else i.eachRawSeries(function(i){if(!l.get(a)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(a))return;var c=s.indexOfName(a),p=s.getItemVisual(c,"style"),f=s.getItemVisual(c,"legendIcon"),d=ne(p.fill);d&&0===d[3]&&(d[3]=.2,p.fill=pe(d,"rgba"));this._createItem(i,a,o,r,e,t,{},p,f,u).on("click",IA(Jd,null,a,n,h)).on("mouseover",IA(tg,null,a,n,h)).on("mouseout",IA(eg,null,a,n,h)),l.set(a,!0)}},this)},this),r&&this._createSelector(r,e,n,o,a)},i.prototype._createSelector=function(t,e,i){var n=this.getSelectorGroup();AA(t,function(t){var r=t.type,o=new ex({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});n.add(o),Ca(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),vo(o)})},i.prototype._createItem=function(t,e,i,n,r,o,a,s,l,u){var h=t.visualDrawType,c=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),d=n.get("symbolRotate"),g=n.get("icon");l=g||l||"roundRect";var y=r.getModel("lineStyle"),v=Kd(l,n,y,a,s,h,f),m=new kA,_=n.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(Qd({itemWidth:c,itemHeight:p,icon:l,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle}))}else m.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:l,iconRotate:d,itemStyle:v.itemStyle,lineStyle:v.lineStyle}));var b="left"===o?c+5:-5,w=o,S=r.get("formatter"),T=e;"string"==typeof S&&S?T=S.replace("{name}",null!=e?e:""):"function"==typeof S&&(T=S(e));var M=n.get("inactiveColor");m.add(new ex({style:Aa(_,{text:T,x:b,y:p/2,fill:f?_.getTextColor():M,align:w,verticalAlign:"middle"})}));var C=new J_({shape:m.getBoundingRect(),invisible:!0}),I=n.getModel("tooltip");return I.get("show")&&Sa({el:C,componentModel:r,itemName:e,itemTooltipOption:I.option}),m.add(C),m.eachChild(function(t){t.silent=!0}),C.silent=!u,this.getContentGroup().add(m),vo(m),m.__legendDataIndex=i,m},i.prototype.layoutInner=function(t,e,i,n,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();xw(t.get("orient"),a,t.get("itemGap"),i.width,i.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){xw("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.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?c[f]+=l[d]+p:u[f]+=h[d]+p,c[1-f]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[d]=l[d]+p+h[d],v[g]=Math.max(l[g],h[g]),v[y]=Math.min(0,h[y]+c[1-f]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},i.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},i.type="legend.plain",i}(FS),PA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},i.prototype.init=function(e,i,n){var r=Ss(e);t.prototype.init.call(this,e,i,n),ag(this,e,r)},i.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),ag(this,this.option,e)},i.type="legend.scroll",i.defaultOption=Na(CA.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}),i}(CA),OA=gm,LA=["width","height"],EA=["x","y"],RA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.newlineDisabled=!0,e._currentIndex=0,e}return e(i,t),i.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new OA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new OA)},i.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},i.prototype.renderInner=function(e,i,n,r,o,a,s){function l(t,e){var n=t+"DataIndex",o=ma(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:ky(u._pageGo,u,n,i,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,h.add(o)}var u=this;t.prototype.renderInner.call(this,e,i,n,r,o,a,s);var h=this._controllerGroup,c=i.get("pageIconSize",!0),p=S(c)?c:[c,c];l("pagePrev",0);var f=i.getModel("pageTextStyle");h.add(new ex({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),l("pageNext",1)},i.prototype.layoutInner=function(t,e,i,n,r,o){var s=this.getSelectorGroup(),l=t.getOrient().index,u=LA[l],h=EA[l],c=LA[1-l],p=EA[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(i);r&&(y[u]=i[u]-d[u]-f);var v=this._layoutContentAndController(t,n,y,l,u,c,p,h);if(r){if("end"===o)g[l]+=v[u]+f;else{var m=d[u]+f;g[l]-=m,v[h]-=m}v[u]+=d[u]+f,g[1-l]+=v[p]+v[c]/2-d[c]/2,v[c]=Math.max(v[c],d[c]),v[p]=Math.min(v[p],d[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()}return v},i.prototype._layoutContentAndController=function(t,e,i,n,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;xw(t.get("orient"),l,t.get("itemGap"),n?i.width:null,n?null:i.height),xw("horizontal",h,t.get("pageButtonItemGap",!0));var c=l.getBoundingRect(),p=h.getBoundingRect(),f=this._showController=c[r]>i[r],d=[-c.x,-c.y];e||(d[n]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=z(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(f){"end"===t.get("pageButtonPosition",!0)?y[n]+=i[r]-p[r]:g[n]+=p[r]+v}y[1-n]+=c[o]/2-p[o]/2,l.setPosition(d),u.setPosition(g),h.setPosition(y);var m={x:0,y:0};if(m[r]=f?i[r]:c[r],m[o]=Math.max(c[o],p[o]),m[a]=Math.min(0,p[a]+y[1-n]),u.__rectSize=i[r],f){var _={x:0,y:0};_[r]=Math.max(i[r]-p[r]-v,0),_[o]=m[o],u.setClipPath(new J_({shape:_})),u.__rectSize=_[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&jo(l,{x:x.contentPosition[0],y:x.contentPosition[1]},f?t:null),this._updatePageInfoView(t,x),m},i.prototype._pageGo=function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},i.prototype._updatePageInfoView=function(t,e){var i=this._controllerGroup;g(["pagePrev","pageNext"],function(n){var r=n+"DataIndex",o=null!=e[r],a=i.childOfName(n);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")});var n=i.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;n&&r&&n.setStyle("text",M(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},i.prototype._getPageInfo=function(t){function e(t){if(t){var e=t.getBoundingRect(),i=e[l]+t[l];return{s:i,e:i+e[s],i:t.__legendDataIndex}}}function i(t,e){return t.e>=e&&t.s<=e+o}var n=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=LA[a],l=EA[a],u=this._findTargetItemIndex(n),h=r.children(),c=h[u],p=h.length,f=p?1:0,d={contentPosition:[r.x,r.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var g=e(c);d.contentPosition[a]=-g.s;for(var y=u+1,v=g,m=g,_=null;p>=y;++y)_=e(h[y]),(!_&&m.e>v.s+o||_&&!i(_,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(h[y]),_&&i(m,_.s)||!(v.i<m.i)||(m=v,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=v.i),++d.pageCount,++d.pageIndex),v=_;return d},i.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,i;return this.getContentGroup().eachChild(function(n,r){var o=n.__legendDataIndex;null==i&&null!=o&&(i=r),o===t&&(e=r)}),null!=e?e:i},i.type="legend.scroll",i}(DA);Bp(lg);var NA=on(),zA=a,BA=ky,FA=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||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,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=w(ug,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new gm,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.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 i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var s=Yd(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var i=e.pointer;if(i){var n=NA(t).pointerEl=new Pb[i.type](zA(e.pointer));t.add(n)}},t.prototype.createLabelEl=function(t,e,i,n){if(e.label){var r=NA(t).labelEl=new ex(zA(e.label));t.add(r),cg(r,n)}},t.prototype.updatePointerEl=function(t,e,i){var n=NA(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,i,n){var r=NA(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{x:e.label.x,y:e.label.y}),cg(r,n))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,r=e.getModel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return n&&i.remove(n),void(this._handle=null);var a;this._handle||(a=!0,n=this._handle=ma(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){jy(t.event)},onmousedown:BA(this._onHandleDragMove,this,0,0),drift:BA(this._onHandleDragMove,this),ondragend:BA(this._onHandleDragEnd,this)}),i.add(n)),fg(n,e,!1),n.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");S(s)||(s=[s,s]),n.scaleX=s[0]/2,n.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 i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(pg(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(pg(n)),NA(i).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(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},t}(),HA=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=wg(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=dg(n),c=VA[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}_g(e,t,_d(a.model,i),i,n,r)},i.prototype.getHandleTransform=function(t,e,i){var n=_d(e.axis.grid.model,e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=mg(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(t,e,i){var n=i.axis,r=n.grid,o=n.getGlobalExtent(!0),a=wg(r,n).getOtherAxis(n).getGlobalExtent(),s="x"===n.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,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}},i}(FA),VA={line:function(t,e,i){return{type:"Line",subPixelOptimize:!0,shape:xg([e,i[0]],[e,i[1]],Sg(t))}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:bg([e-n/2,i[0]],[n,r],Sg(t))}}},YA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="axisPointer",i.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}},i}(ww),XA=on(),WA=g,GA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.render=function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";Tg("axisPointer",i,function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},i.prototype.remove=function(t,e){Dg("axisPointer",e)},i.prototype.dispose=function(t,e){Dg("axisPointer",e)},i.type="axisPointer",i}(FS),UA=on(),jA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="tooltip",i.dependencies=["axisPointer"],i.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}},i}(ww),qA=Gg(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ZA=Gg(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),KA=Ug(ZA,"transition"),QA=Ug(qA,"transform"),JA="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(gy.transform3dSupported?"will-change:transform;":""),$A=function(){function t(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,gy.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;ty(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;It(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,i=jg(e,"position"),n=e.style;"absolute"!==n.position&&"absolute"!==i&&(n.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 i=this.el,n=i.style,r=this._styleCoord;i.innerHTML?n.cssText=JA+$g(t,!this._firstShow,this._longHide)+Qg(r[0],r[1],!0)+"border-color:"+ms(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,n,r){var o=this.el;if(null==t)return void(o.innerHTML="");var a="";if(M(r)&&"item"===i.get("trigger")&&!Wg(i)&&(a=Zg(i,n,r)),M(t))o.innerHTML=t+a;else if(t){o.innerHTML="",S(t)||(t=[t]);for(var s=0;s<t.length;s++)P(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 i=this._styleCoord;if(ty(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]){var n=this.el.style;g(Qg(i[0],i[1]),function(t){n[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(ky(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),tk=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),ny(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,i,n){A(t)&&Bi(""),this.el&&this._zr.remove(this.el);var r=i.getModel("textStyle");this.el=new ex({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:i.get("backgroundColor"),borderRadius:i.get("borderRadius"),borderWidth:1,borderColor:n,shadowColor:i.get("shadowColor"),shadowBlur:i.get("shadowBlur"),shadowOffsetX:i.get("shadowOffsetX"),shadowOffsetY:i.get("shadowOffsetY"),textShadowColor:r.get("textShadowColor"),textShadowBlur:r.get("textShadowBlur")||0,textShadowOffsetX:r.get("textShadowOffsetX")||0,textShadowOffsetY:r.get("textShadowOffsetY")||0,fill:i.get(["textStyle","color"]),padding:nu(i,"richText"),verticalAlign:"top",align:"left"},z:i.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(),i=iy(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},t.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;ny(n,this._zr,t,e),t=n[0],e=n[1];var r=i.style,o=ey(r.borderWidth||0),a=iy(r);i.x=t+o+a.left,i.y=e+o+a.top,i.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(ky(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),ek=ky,ik=g,nk=vi,rk=new J_({shape:{x:-1,y:-1,width:2,height:2}}),ok=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.init=function(t,e){if(!gy.node){var i=t.getComponent("tooltip"),n=i.get("renderMode");this._renderMode=cn(n),this._tooltipContent="richText"===this._renderMode?new tk(e):new $A(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},i.prototype.render=function(t,e,i){if(!gy.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},i.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");Tg("itemTooltip",this._api,ek(function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))},this))},i.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(t,e,i,n){if(n.from!==this.uid&&!gy.node){var r=oy(n,i);this._ticket="";var o=n.dataByCoordSys,a=hy(n,e,i);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:n.position,positionDefault:"bottom"},r)}else if(n.tooltip&&null!=n.x&&null!=n.y){var l=rk;l.x=n.x,l.y=n.y,l.update(),rx(l).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:l},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var u=Pg(n,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:n.position,positionDefault:"bottom"},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},i.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(oy(n,i))},i.prototype._manuallyAxisShowTip=function(t,e,i,n){var r=n.seriesIndex,o=n.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 i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}}},i.prototype._tryShow=function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;if(n&&n.length)this._showAxisTooltip(n,t);else if(i){this._lastDataByCoordSys=null;var r,o;Fu(i,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)}},i.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=ky(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},i.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=ry([e.tooltipOption],n),a=this._renderMode,s=[],l=Ul("section",{blocks:[],noHeader:!0}),u=[],h=new NS;ik(t,function(t){ik(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value;if(e&&null!=n){var r=vg(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),o=Ul("section",{header:r,noHeader:!Y(r),sortBlocks:!0,blocks:[]});l.blocks.push(o),g(t.seriesDataIndices,function(l){var c=i.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=c.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Ap(e.axis,{value:n}),f.axisValueLabel=r,f.marker=h.makeTooltipMarker("item",ms(f.color),a);var d=Cl(c.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 c=e.position,p=o.get("order"),f=Zl(l,h,a,p,i.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,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],c,null,h)})},i.prototype._showSeriesItemTooltip=function(t,e,i){var n=this._ecModel,r=rx(e),o=r.seriesIndex,a=n.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,p=t.positionDefault,f=ry([h.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),c);var v=Cl(s.formatTooltip(l,!1,u)),m=f.get("order"),_=v.markupFragment?Zl(v.markupFragment,y,c,m,n.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)}),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},i.prototype._showComponentItemTooltip=function(t,e,i){var n=rx(e),r=n.tooltipConfig,o=r.option||{};if(M(o)){var s=o;o={content:s,formatter:s}}var l=[o],u=this._ecModel.getComponent(n.componentMainType,n.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=ry(l,this._tooltipModel,h?{position:h}:null),p=c.get("content"),f=Math.random()+"",d=new NS;this._showOrMove(c,function(){var i=a(c.get("formatterParams")||{});this._showTooltipContent(c,p,i,f,t.offsetX,t.offsetY,t.position,e,d)}),i({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(t,e,i,n,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],i,t.get("trigger"),t.get("borderColor")),f=p.color;if(h)if(M(h)){var d=t.ecModel.get("useUTC"),g=S(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=h,y&&(c=Ga(g.axisValue,c,d)),c=ds(c,i,!0)}else if(T(h)){var v=ek(function(e,n){e===this._ticket&&(u.setContent(n,l,t,f,a),this._updatePosition(t,a,r,o,u,i,s))},this);this._ticket=n,c=h(i,n,v)}else c=h;u.setContent(c,l,t,f,a),u.show(t,f),this._updatePosition(t,a,r,o,u,i,s)}},i.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||S(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:S(e)?void 0:{color:n||e.color||e.borderColor}},i.prototype._updatePosition=function(t,e,i,n,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),T(e)&&(e=e([i,n],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),S(e))i=nk(e[0],s),n=nk(e[1],l);else if(A(e)){var f=e;f.width=u[0],f.height=u[1];var d=xs(f,{width:s,height:l});i=d.x,n=d.y,h=null,c=null}else if(M(e)&&a){var g=ly(e,p,u,t.get("borderWidth"));i=g[0],n=g[1]}else{var g=ay(i,n,r,s,l,h?null:20,c?null:20);i=g[0],n=g[1]}if(h&&(i-=uy(h)?u[0]/2:"right"===h?u[0]:0),c&&(n-=uy(c)?u[1]/2:"bottom"===c?u[1]:0),Wg(t)){var g=sy(i,n,r,s,l);i=g[0],n=g[1]}r.moveTo(i,n)},i.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&ik(i,function(i,o){var a=i.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];(r=r&&a.length===l.length)&&ik(a,function(t,i){var o=l[i]||{},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&&ik(a,function(t,e){var i=s[e];r=r&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}),n&&g(t.seriesDataIndices,function(t){var i=t.seriesIndex,o=e[i],a=n[i];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},i.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},i.prototype.dispose=function(t,e){gy.node||(this._tooltipContent.dispose(),Dg("itemTooltip",e))},i.type="tooltip",i}(FS);Bp(cy),t.version="5.2.0",t.dependencies=gM,t.PRIORITY=_M,t.init=tc,t.connect=ec,t.disConnect=ic,t.disconnect=sC,t.dispose=nc,t.getInstanceByDom=rc,t.getInstanceById=oc,t.registerTheme=ac,t.registerPreprocessor=sc,t.registerProcessor=lc,t.registerPostInit=uc,t.registerPostUpdate=hc,t.registerUpdateLifecycle=cc,t.registerAction=pc,t.registerCoordinateSystem=fc,t.getCoordinateSystemDimensions=dc,t.registerLayout=gc,t.registerVisual=yc,t.registerLoading=mc,t.setCanvasCreator=_c,t.registerMap=xc,t.getMap=bc,t.registerTransform=uC,t.dataTool=vC,t.registerLocale=za,t.zrender=xm,t.matrix=Vv,t.vector=zy,t.zrUtil=Oy,t.color=_v,t.helper=nI,t.number=aI,t.time=sI,t.graphic=lI,t.format=uI,t.util=hI,t.List=kC,t.ComponentModel=ww,t.ComponentView=FS,t.SeriesModel=BS,t.ChartView=YS,t.extendComponentModel=ef,t.extendComponentView=nf,t.extendSeriesModel=rf,t.extendChartView=of,t.throttle=xu,t.use=Bp,t.parseGeoJSON=Wh,t.parseGeoJson=Wh,t.env=gy,t.Model=Ub,t.Axis=fI,t.innerDrawElementOnCanvas=fh})},1915:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];n._withStripped=!0},1916:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chartContainer"},[i("div",{staticClass:"dataDisplay"},[i("div",{staticClass:"selectAge"},[i("div",{staticClass:"leftSelectAge"},[i("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),i("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[i("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+"岁\n ")]),t._v(" "),i("i",{staticClass:"dropDown"})]),t._v(" "),i("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),i("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,n){return[2===e.showType?i("div",{key:n,staticClass:"specialShowBox"},[i("div",{staticClass:"numShow"},[i("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.pureDataSource[t.selectIndex][n])+"\n ")]),t._v(" "),i("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),i("div",{staticClass:"titleShow"},[i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),t._v(t._s(e.tipsText[1])+"\n ")]):t._e()])]):t._e()]})]:[i("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"textShowBox"},[i("div",{staticClass:"iconblock"},[i("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),i("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"moneyShowBox"},[i("div",{staticClass:"numShow"},[i("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.pureDataSource[t.selectIndex][n])+"\n ")]),t._v(" "),i("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("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(" "),i("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),i("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}})],1)},r=[];n._withStripped=!0},1917:function(t,e,i){"use strict";function n(t){s||i(1918)}var r=i(1259),o=i(1919),a=i(2),s=!1,l=n,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},1918:function(t,e){},1919:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[i("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),i("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[i("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),i("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),i("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[i("div",[i("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,n){return[t.showCol(n)?i("span",{key:"head-"+n,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),i("div",{staticClass:"cost-scroll"},[i("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?i("tbody",t._l(t.tables.rows,function(e,n){return i("tr",{key:"tr-"+n,staticClass:"table-tr "},[t._l(e,function(e,r){return[t.showCol(r)?i("td",{key:"td-"+n+"-"+r,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[i("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},r=[];n._withStripped=!0},1920:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShowChart?i("div",[i("benefit",{attrs:{renderData:t.renderData,theme:t.realTheme,isCps:t.isCps},on:{showCostTable:t.showCostTable}}),t._v(" "),i("gold-cost-table",{attrs:{visible:t.costTableVisible,tables:t.tables,theme:t.realTheme},on:{cancelCost:function(e){t.costTableVisible=!1}}})],1):t._e()},r=[];n._withStripped=!0},2:function(t,e,i){"use strict";function n(t,e,i,n,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=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=h):r&&(h=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),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=n},20:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},21:function(t,e,i){var n=i(30);t.exports=function(t){return Object(n(t))}},22:function(t,e){e.f={}.propertyIsEnumerable},25:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},26:function(t,e,i){var n=i(8).f,r=i(5),o=i(3)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},28:function(t,e,i){t.exports={default:i(78),__esModule:!0}},29:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},3:function(t,e,i){var n=i(32)("wks"),r=i(20),o=i(1).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=n},30:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},31:function(t,e,i){var n=i(32)("keys"),r=i(20);t.exports=function(t){return n[t]||(n[t]=r(t))}},32:function(t,e,i){var n=i(0),r=i(1),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:n.version,mode:i(15)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,i){var n=i(10);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,i){e.f=i(3)},37:function(t,e,i){var n=i(1),r=i(0),o=i(15),a=i(36),s=i(8).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,i){var n=i(39);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},39:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,i){t.exports=!i(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},40:function(t,e,i){var n=i(10),r=i(1).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},42:function(t,e,i){"use strict";var n=i(15),r=i(13),o=i(46),a=i(7),s=i(17),l=i(66),u=i(26),h=i(70),c=i(3)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,i,d,g,y,v){l(i,e,d);var m,_,x,b=function(t){if(!p&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},w=e+" Iterator",S="values"==g,T=!1,M=t.prototype,C=M[c]||M["@@iterator"]||g&&M[g],I=C||b(g),A=g?S?b("entries"):I:void 0,k="Array"==e?M.entries||C:C;if(k&&(x=h(k.call(new t)))!==Object.prototype&&x.next&&(u(x,w,!0),n||"function"==typeof x[c]||a(x,c,f)),S&&C&&"values"!==C.name&&(T=!0,I=function(){return C.call(this)}),n&&!v||!p&&!T&&M[c]||a(M,c,I),s[e]=I,s[w]=f,g)if(m={values:S?I:b("values"),keys:y?I:b("keys"),entries:A},v)for(_ in m)_ in M||o(M,_,m[_]);else r(r.P+r.F*(p||T),e,m);return m}},43:function(t,e,i){var n=i(9),r=i(67),o=i(33),a=i(31)("IE_PROTO"),s=function(){},l=function(){var t,e=i(40)("iframe"),n=o.length;for(e.style.display="none",i(58).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[o[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s.prototype=n(t),i=new s,s.prototype=null,i[a]=t):i=l(),void 0===e?i:r(i,e)}},44:function(t,e,i){var n=i(25);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},45:function(t,e,i){t.exports=!i(4)&&!i(12)(function(){return 7!=Object.defineProperty(i(40)("div"),"a",{get:function(){return 7}}).a})},46:function(t,e,i){t.exports=i(7)},47:function(t,e,i){var n=i(5),r=i(11),o=i(68)(!1),a=i(31)("IE_PROTO");t.exports=function(t,e){var i,s=r(t),l=0,u=[];for(i in s)i!=a&&n(s,i)&&u.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~o(u,i)||u.push(i));return u}},48:function(t,e,i){var n=i(47),r=i(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},49:function(t,e,i){var n=i(11),r=i(48).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(n(t))}},5:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},50:function(t,e,i){"use strict";var n=i(1),r=i(5),o=i(4),a=i(13),s=i(46),l=i(74).KEY,u=i(12),h=i(32),c=i(26),p=i(20),f=i(3),d=i(36),g=i(37),y=i(81),v=i(76),m=i(9),_=i(10),x=i(21),b=i(11),w=i(34),S=i(19),T=i(43),M=i(49),C=i(82),I=i(35),A=i(8),k=i(14),D=C.f,P=A.f,O=M.f,L=n.Symbol,E=n.JSON,R=E&&E.stringify,N=f("_hidden"),z=f("toPrimitive"),B={}.propertyIsEnumerable,F=h("symbol-registry"),H=h("symbols"),V=h("op-symbols"),Y=Object.prototype,X="function"==typeof L&&!!I.f,W=n.QObject,G=!W||!W.prototype||!W.prototype.findChild,U=o&&u(function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=D(Y,e);n&&delete Y[e],P(t,e,i),n&&t!==Y&&P(Y,e,n)}:P,j=function(t){var e=H[t]=T(L.prototype);return e._k=t,e},q=X&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,i){return t===Y&&Z(V,e,i),m(t),e=w(e,!0),m(i),r(H,e)?(i.enumerable?(r(t,N)&&t[N][e]&&(t[N][e]=!1),i=T(i,{enumerable:S(0,!1)})):(r(t,N)||P(t,N,S(1,{})),t[N][e]=!0),U(t,e,i)):P(t,e,i)},K=function(t,e){m(t);for(var i,n=y(e=b(e)),r=0,o=n.length;o>r;)Z(t,i=n[r++],e[i]);return t},Q=function(t,e){return void 0===e?T(t):K(T(t),e)},J=function(t){var e=B.call(this,t=w(t,!0));return!(this===Y&&r(H,t)&&!r(V,t))&&(!(e||!r(this,t)||!r(H,t)||r(this,N)&&this[N][t])||e)},$=function(t,e){if(t=b(t),e=w(e,!0),t!==Y||!r(H,e)||r(V,e)){var i=D(t,e);return!i||!r(H,e)||r(t,N)&&t[N][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=O(b(t)),n=[],o=0;i.length>o;)r(H,e=i[o++])||e==N||e==l||n.push(e);return n},et=function(t){for(var e,i=t===Y,n=O(i?V:b(t)),o=[],a=0;n.length>a;)!r(H,e=n[a++])||i&&!r(Y,e)||o.push(H[e]);return o};X||(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(i){this===Y&&e.call(V,i),r(this,N)&&r(this[N],t)&&(this[N][t]=!1),U(this,t,S(1,i))};return o&&G&&U(Y,t,{configurable:!0,set:e}),j(t)},s(L.prototype,"toString",function(){return this._k}),C.f=$,A.f=Z,i(48).f=M.f=tt,i(22).f=J,I.f=et,o&&!i(15)&&s(Y,"propertyIsEnumerable",J,!0),d.f=function(t){return j(f(t))}),a(a.G+a.W+a.F*!X,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;it.length>nt;)f(it[nt++]);for(var rt=k(f.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!X,"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(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!X,"Object",{create:Q,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:$,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))}}),E&&a(a.S+a.F*(!X||u(function(){var t=L();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(_(e)||void 0!==t)&&!q(t))return v(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!q(e))return e}),n[1]=e,R.apply(E,n)}}),L.prototype[z]||i(7)(L.prototype,z,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},51:function(t,e,i){"use strict";var n=i(65)(!0);i(42)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},52:function(t,e,i){i(71);for(var n=i(1),r=i(7),o=i(17),a=i(3)("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=n[u],c=h&&h.prototype;c&&!c[a]&&r(c,a,u),o[u]=o.Array}},53:function(t,e,i){var n=i(13),r=i(0),o=i(12);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*o(function(){i(1)}),"Object",a)}},54:function(t,e,i){t.exports={default:i(77),__esModule:!0}},56:function(t,e,i){var n=i(29),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},58:function(t,e,i){var n=i(1).document;t.exports=n&&n.documentElement},6:function(t,e,i){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var i=-1;return t.some(function(t,n,r){var o=e.call(this,t,n,r);if(o)return i=n,o}),i}function r(t){return t?JSON.parse(F()(t)):t}function o(t,e){for(var i in e)t[i]&&"object"===z()(t[i])?o(t[i],e[i]):t[i]=e[i]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Number]"===Object.prototype.toString.call(t)}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function h(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function c(t){return null===t}function p(t){return void 0!==t&&null!==t}function f(t){return void 0===t}function d(t){return"[object Error]"===Object.prototype.toString.call(t)}function g(t){return"function"==typeof t}function y(t,e,i){function n(e){var i=y,n=v;return y=v=void 0,w=e,_=t.apply(n,i)}function r(t,e){return C?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(C)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return w=t,x=r(h,e),S?n(t):_}function s(t){var i=t-b,n=t-w,r=e-i;return T?Math.min(r,m-n):r}function l(t){var i=t-b,n=t-w;return void 0===b||i>=e||i<0||T&&n>=m}function h(){var t=Date.now();if(l(t))return c(t);x=r(h,s(t))}function c(t){return x=void 0,M&&y?n(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?_:c(Date.now())}function d(){return void 0!==x}function g(){for(var t=Date.now(),i=l(t),o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];if(y=s,v=this,b=t,i){if(void 0===x)return a(b);if(T)return x=r(h,e),n(b)}return void 0===x&&(x=r(h,e)),_}var y=void 0,v=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=0,S=!1,T=!1,M=!0,C=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,u(i)&&(S=!!i.leading,T="maxWait"in i,m=T?Math.max(+i.maxWait||0,e):m,M="trailing"in i?!!i.trailing:M),g.cancel=p,g.flush=f,g.pending=d,g}function v(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return u(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),y(t,e,{leading:n,trailing:r,maxWait:e})}function m(t){return!!/^1\d{10}$/.test(t)}function _(t){var e=t.length;return e>3&&e<8?t=t.replace(/\s/g,"").replace(/^(.{3})/g,"$1 "):e>=8&&(t=t.replace(/\s/g,"").replace(/^(.{3})(.+)/g,function(t,e,i){return e+" "+i.replace(/(.{4})(?=.)/g,"$1 ")})),t}function x(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function b(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function w(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("  "):3===e?t.split("").join(" "):t}function S(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.offsetHeight;if(e){var n=t.currentStyle||getComputedStyle(t);i+=parseInt(n.marginTop||0)+parseInt(n.marginBottom||0)}return i}function T(t,e){var i=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),r=null;return i?r={r:parseInt(i[1]+i[1],16),g:parseInt(i[2]+i[2],16),b:parseInt(i[3]+i[3],16)}:n&&(r={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),r?void 0!==e?"rgba("+r.r+", "+r.g+", "+r.b+", "+e+")":"rgb("+r.r+", "+r.g+", "+r.b+")":""}function M(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",i=e.length,n="";t=t||32;for(var r=0;r<t;r++)n+=e.charAt(Math.floor(Math.random()*i));return n}function C(t,e){var i=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),r=i.match(n);return r&&r[2]}function I(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}function A(t,e,i){return Math.min(Math.max(t,e),i)}function k(t){var e=/os (\d\d?_\d(_\d)?)/,i=e.exec(t);if(!i)return null;var n=i[1].split("_").map(function(t){return parseInt(t,10)});return{major:n[0],minor:n[1],patch:n[2]||0}}function D(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var i=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),n=e.match(i);return decodeURIComponent(n?n[2]:"")}function P(t){return t?d(t)?t.message:s(t)?t:t.errmsg||"请求失败,请稍后重试":"请求失败,请稍后重试"}function O(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],i=new RegExp("https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"),n=0;n<t.length;n++){var r=t[n];if(!i.test(r))return;e.push(r.split("?")[0])}return e}function L(t){var e=JSON.parse(F()(t)),i=e.attrModules,n=void 0===i?{}:i,r=e.plan,o=n.applicant,s=n.insureds,l=n.hcpics,u=n.hctext,h=n.makeup,c=n.apphctext,p=n.apphcpics,f={},d=function(t){var e=null,i=null,n=null,r=null,o={},s={},l={};for(var u in t){var h=t[u].defaultValue,c=t[u].required,p=t[u].display;if(a(h)){var f=O(h);f&&(h=f)}1!==Number(c)&&1!==Number(p)||("idType"===u||"id"===u||"idValidType"===u||"idValidEndTime"===u||"idValidStartTime"===u?(e=e||{},e[u]=h):"socialInsAddr"===u||"socialInsDetail"===u||"socialInsPost"===u||"socialInsTel"===u?(i=i||{},i[u]=h):"residentAddr"===u||"residentDetail"===u||"residentPost"===u||"residentTel"===u?(n=n||{},n[u]=h):"officeAddr"===u||"officeDetail"===u||"officePost"===u||"officeTel"===u?(r=r||{},r[u]=h):"companyIdType"===u||"companyId"===u?(s=s||{},s[u]=h):"detail"===u?(l=l||{},l[u]=h):o[u]=h)}return e&&(o.certificate=e),i&&(o.socialIns=i),n&&(o.resident=n),r&&(o.office=r),s&&(o.companyCertificate=s),l&&(o.companyAddress=l),o};if(n.plan&&(r=d(n.plan)),o&&(f.applicant={},o&&(f.applicant=d(o))),s||r){f.insureds=[];for(var g=s||[""],y=0;y<g.length;y++){var v=g[y],m=null,_={};v&&(m=d(v)),m&&(_.insured=m),r&&(_.plan=r),f.insureds.push(_)}}if(u&&(f.hctext=d(u)),c&&(f.apphctext=d(c)),l&&(f.hcpics=d(l)),p&&(f.apphcpics=d(p)),h){f.makeup={};for(var x=h||[""],b=0;b<x.length;b++){var w=x[b],S=null;w&&(S=d(w)),S&&(f.makeup=R()(f.makeup,S))}}return f}i.d(e,"F",function(){return et}),i.d(e,"v",function(){return it}),e.d=n,e.c=r,e.b=o,e.o=a,e.z=s,e.x=l,e.y=u,e.p=h,e.w=c,e.q=p,e.A=f,e.r=d,e.s=g,e.a=y,e.E=v,e.u=m,e.g=_,e.e=x,e.f=b,e.h=w,e.B=S,e.n=T,e.C=M,e.l=C,e.t=I,e.D=A,e.k=k,e.m=D,e.j=P,e.i=L;var E=i(28),R=i.n(E),N=i(73),z=i.n(N),B=i(54),F=i.n(B),H="undefined"!=typeof window,V=H&&window.navigator.userAgent.toLowerCase(),Y=V&&/msie|trident/.test(V),X=V&&V.indexOf("msie 9.0")>0,W=V&&V.indexOf("edge/")>0,G=V&&V.indexOf("android")>0,U=V&&/iphone|ipad|ipod|ios/.test(V),j=V&&/chrome\/\d+/.test(V)&&!W,q=V&&/MicroMessenger/i.test(V),Z=V&&/wxwork/i.test(V),K=V&&/mucxiaoyusan/i.test(V),Q=V&&/muckacabao/i.test(V),J=V&&/mucyanxuan/i.test(V),$=K||Q,tt=V&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(V),et={isIE:Y,isMobile:tt,isIE9:X,isEdge:W,isAndroid:G,isIOS:U,isChrome:j,isWx:q,isWxWork:Z,isApp:$,isXysApp:K,isKcbApp:Q,isYxApp:J},it=/MucWebAutoTester/.test(window.navigator.userAgent)},60:function(t,e){},61:function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var r=i(75),o=i.n(r),a=i(92),s=i.n(a),l=i(28),u=i.n(l),h=i(95),c=i.n(h),p=c.a,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,g=function(){try{if(!u.a)return!1;var t=new String("abc");if(t[5]="de","5"===s()(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==s()(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===o()(u()({},n)).join("")}catch(t){return!1}}()?u.a:function(t,e){for(var i,r,o=n(t),a=1;a<arguments.length;a++){i=Object(arguments[a]);for(var s in i)f.call(i,s)&&(o[s]=i[s]);if(p){r=p(i);for(var l=0;l<r.length;l++)d.call(i,r[l])&&(o[r[l]]=i[r[l]])}}return o};e.a=g},64:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},65:function(t,e,i){var n=i(29),r=i(30);t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),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)}}},66:function(t,e,i){"use strict";var n=i(43),r=i(19),o=i(26),a={};i(7)(a,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},67:function(t,e,i){var n=i(8),r=i(9),o=i(14);t.exports=i(4)?Object.defineProperties:function(t,e){r(t);for(var i,a=o(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},68:function(t,e,i){var n=i(11),r=i(56),o=i(69);t.exports=function(t){return function(e,i,a){var s,l=n(e),u=r(l.length),h=o(a,u);if(t&&i!=i){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}}},69:function(t,e,i){var n=i(29),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},7:function(t,e,i){var n=i(8),r=i(19);t.exports=i(4)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},70:function(t,e,i){var n=i(5),r=i(21),o=i(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},71:function(t,e,i){"use strict";var n=i(72),r=i(64),o=i(17),a=i(11);t.exports=i(42)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,i):"values"==e?r(0,t[i]):r(0,[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},72:function(t,e){t.exports=function(){}},73:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(83),o=n(r),a=i(85),s=n(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)}},74:function(t,e,i){var n=i(20)("meta"),r=i(10),o=i(5),a=i(8).f,s=0,l=Object.isExtensible||function(){return!0},u=!i(12)(function(){return l(Object.preventExtensions({}))}),h=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[n].i},p=function(t,e){if(!o(t,n)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[n].w},f=function(t){return u&&d.NEED&&l(t)&&!o(t,n)&&h(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:p,onFreeze:f}},75:function(t,e,i){t.exports={default:i(90),__esModule:!0}},76:function(t,e,i){var n=i(25);t.exports=Array.isArray||function(t){return"Array"==n(t)}},77:function(t,e,i){var n=i(0),r=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},78:function(t,e,i){i(79),t.exports=i(0).Object.assign},79:function(t,e,i){var n=i(13);n(n.S+n.F,"Object",{assign:i(80)})},8:function(t,e,i){var n=i(9),r=i(45),o=i(34),a=Object.defineProperty;e.f=i(4)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},80:function(t,e,i){"use strict";var n=i(4),r=i(14),o=i(35),a=i(22),s=i(21),l=i(44),u=Object.assign;t.exports=!u||i(12)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[i]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var i=s(t),u=arguments.length,h=1,c=o.f,p=a.f;u>h;)for(var f,d=l(arguments[h++]),g=c?r(d).concat(c(d)):r(d),y=g.length,v=0;y>v;)f=g[v++],n&&!p.call(d,f)||(i[f]=d[f]);return i}:u},81:function(t,e,i){var n=i(14),r=i(35),o=i(22);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var a,s=i(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},82:function(t,e,i){var n=i(22),r=i(19),o=i(11),a=i(34),s=i(5),l=i(45),u=Object.getOwnPropertyDescriptor;e.f=i(4)?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(!n.f.call(t,e),t[e])}},83:function(t,e,i){t.exports={default:i(84),__esModule:!0}},84:function(t,e,i){i(51),i(52),t.exports=i(36).f("iterator")},85:function(t,e,i){t.exports={default:i(86),__esModule:!0}},86:function(t,e,i){i(50),i(60),i(87),i(88),t.exports=i(0).Symbol},87:function(t,e,i){i(37)("asyncIterator")},88:function(t,e,i){i(37)("observable")},9:function(t,e,i){var n=i(10);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},90:function(t,e,i){i(91),t.exports=i(0).Object.keys},91:function(t,e,i){var n=i(21),r=i(14);i(53)("keys",function(){return function(t){return r(n(t))}})},92:function(t,e,i){t.exports={default:i(93),__esModule:!0}},93:function(t,e,i){i(94);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},94:function(t,e,i){i(53)("getOwnPropertyNames",function(){return i(49).f})},95:function(t,e,i){t.exports={default:i(96),__esModule:!0}},96:function(t,e,i){i(50),t.exports=i(0).Object.getOwnPropertySymbols},97:function(t,e,i){"use strict";function n(t){var e={},i={},n={};for(var l in t)if(t.hasOwnProperty(l))if(-1!==s.indexOf(l))e[l]=t[l];else if(a.test(l)){var u=a.exec(l)[1];u=Object(o.a)(u),n[u]=t[l]}else i[l]=t[l];return e.on=Object(r.a)(n,e.on),e.props=Object(r.a)(i,e.props),e}e.a=n;var r=i(61),o=i(98),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},98:function(t,e,i){"use strict";function n(t,e){var i=l(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=n;var r=i(28),o=i.n(r),a=i(6),s=function(t){for(var e=!1,i=!1,n=!1,r=0;r<t.length;r++){var o=t[r];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,r)+"-"+t.slice(r),e=!1,n=i,i=!0,r++):i&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,r-1)+"-"+t.slice(r-1),n=i,i=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=i,i=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=o()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},99:function(t,e,i){"use strict";function n(t,e,i,n){var o=void 0,a=void 0,s=new t({render:function(t){var i=a&&a(t);return i&&!Object(r.o)(i)&&(i=[i]),t(e,o,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,a=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var r=i(6)}})});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.GoldFinanceChart=e():t.GoldFinanceChart=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../lib",e(e.s=1901)}({0:function(t,e){var i=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i)},1:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,i){var n=i(25),r=i(3)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},107:function(t,e,i){var n=i(100),r=i(3)("iterator"),o=i(17);t.exports=i(0).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},11:function(t,e,i){var n=i(44),r=i(30);t.exports=function(t){return n(r(t))}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},121:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(143);e.default=n.a},1256:function(t,e,i){"use strict";var n=i(75),r=i.n(n),o=i(142),a=i.n(o),s=i(6),l=i(1903),u=i(1910),h=i(1917);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.o)(this.chartConfig)))return!1;for(var t=0,e=0,i=0,n=0;n<this.chartConfig.length;n++){var r=this.chartConfig[n];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&&(i+=1))}return 1===t&&e>=1&&1===i},findTablesIndex:function(t,e){if(Object(s.o)(e))for(var i=0;i<e.length;i++)if(Number(e[i])===Number(t))return i},analysisExpression:function(t){if(!/([1-9]+)([+*/-])([1-9]+)/g.test(t))return{};var e=void 0,i=void 0,n=void 0;return t.replace(/([1-9]+)([+*/-])([1-9]+)/g,function(t,r,o,a){e=r,i=a,n=o}),{firstParamColsType:e,secondParamColsType:i,operator:n}},getExpressionData:function(t,e,i){var n=this.analysisExpression(t),r=n.firstParamColsType,o=n.secondParamColsType,a=n.operator;if(void 0!==r&&void 0!==o&&["+","-","/","*"].includes(a)){var s=void 0,l=void 0,u=[];if(i.colsType.forEach(function(t,e){Number(t)===Number(r)&&(s=e),Number(t)===Number(o)&&(l=e)}),void 0!==s&&void 0!==l)return i.rows.forEach(function(t,e){var i=void 0;switch(a){case"+":i=t[s]+t[l];break;case"-":i=t[s]-t[l];break;case"/":i=t[s]/t[l];break;case"*":i=t[s]*t[l]}u.push(Number(i).toFixed(1))}),u}},initConfig:function(t,e){if(t&&e){for(var i=[],n=[],r=[],o=this.isCps?Object(s.c)(l.b):Object(s.c)(l.a),u=Object(s.c)(o.showType2),h=Object(s.c)(o.showType3),c=t,p=Array.isArray(c),f=0,c=p?c:a()(c);;){var d;if(p){if(f>=c.length)break;d=c[f++]}else{if(f=c.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,T=g.boxConfig;if(!(2!==_||S&&T)){u.length||(u=Object(s.c)(o.showType2));var M=u.shift();S=M.lineStyle,T=M.boxConfig}if(3===_&&!S){h.length||(h=Object(s.c)(o.showType3));S=h.shift().lineStyle}r.push(x),y={showType:_,colsType:v,name:x,titleName:b,problemText:g.problemText,tableRowIndex:m,lineStyle:S,boxConfig:T,tipsText:g.tipsText},w&&(y.expressionData=w),i.push(y)}}var C=e.rows.map(function(t){for(var e=[],r=i,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&&n.push(t[u.tableRowIndex]),e.push(t[u.tableRowIndex])}return e});return C.unshift(r),{chartConfig:i,dataSource:C,xAxisData:n}}}},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}}}},1257:function(t,e,i){"use strict";var n=i(75),r=i.n(n),o=i(1912),a=i(6);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,i){t.setSelectIndex(i[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 i=this.$refs.num[e],n=this.$refs.colorBlock[e];for(i.style.fontSize=this.preNumFontSize;;){if(!(parseInt(getComputedStyle(i).width)>parseInt(getComputedStyle(n).width)+10))break;var r=parseInt(getComputedStyle(i).fontSize);if(r<=12)break;i.style.fontSize=r-1+"px"}}}},watch:{renderData:{handler:function(t){if(t&&r()(t).length){var e=t.chartConfig,i=t.dataSource,n=t.xAxisData;this.chartConfig=e,this.dataSource=i,this.xAxisData=n,this.selectIndex>this.pureDataSource.length&&(this.selectIndex=10)}},immediate:!0},selectIndex:{handler:function(){this.numFontSizeFixDebounceFunc()}}}}},1258:function(t,e,i){"use strict";var n=i(75),r=i.n(n),o=i(142),a=i.n(o),s=i(6),l=i(1914);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],i=parseFloat(getComputedStyle(e,null).fontSize);if(i>12)return t*i;var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=n/375*10;return n?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=[],i=this.getXAxisName(),n=this.getTooltipName(),r=0;r<this.chartConfig.length;r++){var o=this.chartConfig[r];if([2,3].includes(o.showType)){var u={};Object(s.o)(o.lineStyle.areaStyleColor)?u.color=new l.graphic.LinearGradient(0,0,0,1,o.lineStyle.areaStyleColor):Object(s.z)(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:i,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 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,i,n,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,i=Array.isArray(e),r=0,e=i?e:a()(e);;){var o;if(i){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===n){var l=s.encode.y[0],u=s.value[l];return n+"<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),this.chart.getZr().on("mousemove",function(e){var i=[e.offsetX,e.offsetY],n=t.chart.convertFromPixel("grid",i);t.chart.containPixel("grid",i)&&t.index!==Math.round(n[0])&&t.setIndex(Math.round(n[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})}}}}},1259:function(t,e,i){"use strict";var n=i(121);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 i=document.querySelector(".cost-scroll");i&&this.$nextTick(function(){e.scroller?e.scroller.refresh():e.scroller=new n.default(i,{})})}}}}},13:function(t,e,i){var n=i(1),r=i(0),o=i(38),a=i(7),s=i(5),l=function(t,e,i){var u,h,c,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?n:d?n[e]:(n[e]||{}).prototype;f&&(i=e);for(u in i)(h=!p&&x&&void 0!==x[u])&&s(m,u)||(c=h?x[u]:i[u],m[u]=f&&"function"!=typeof x[u]?i[u]:y&&h?o(c,n):v&&x[u]==c?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):g&&"function"==typeof c?o(Function.call,c):c,g&&((m.virtual||(m.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},14:function(t,e,i){var n=i(47),r=i(33);t.exports=Object.keys||function(t){return n(t,r)}},142:function(t,e,i){t.exports={default:i(176),__esModule:!0}},143:function(t,e,i){"use strict";function n(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function r(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r=0;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}function o(t){return void 0===t||null===t}function a(t,e){return Math.sqrt(t*t+e*e)}function s(t){return!1!==N&&("standard"===N?"transitionEnd"===t?"transitionend":t:N+t.charAt(0).toUpperCase()+t.substr(1))}function l(t,e,i,n){t.addEventListener(e,i,{passive:!1,capture:!!n})}function u(t,e,i,n){t.removeEventListener(e,i,{passive:!1,capture:!!n})}function h(t){for(var e=0,i=0;t;)e-=t.offsetLeft,i-=t.offsetTop,t=t.offsetParent;return{left:e,top:i}}function c(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}function p(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function f(t,e){for(var i in e)if(e[i].test(t[i]))return!0;return!1}function d(t,e){var i=document.createEvent("Event");i.initEvent(e,!0,!0),i.pageX=t.pageX,i.pageY=t.pageY,t.target.dispatchEvent(i)}function g(t){function e(){a=document.createEvent("Event"),a.initEvent(i,s,l),r(a,o)}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"click",n=void 0;"mouseup"===t.type||"mousecancel"===t.type?n=t:"touchend"!==t.type&&"touchcancel"!==t.type||(n=t.changedTouches[0]);var o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=void 0,s=!0,l=!0;if("undefined"!=typeof MouseEvent)try{a=new MouseEvent(i,r({bubbles:s,cancelable:l},o))}catch(t){e()}else e();a.forwardedTouchEvent=!0,a._constructed=!0,t.target.dispatchEvent(a)}function y(t){g(t,"dblclick")}function v(t,e){e.firstChild?m(t,e.firstChild):e.appendChild(t)}function m(t,e){e.parentNode.insertBefore(t,e)}function _(t,e){t.removeChild(e)}function x(t,e,i,n,r,o,a){var s=t-e,l=Math.abs(s)/i,u=a.deceleration,h=a.itemHeight,c=a.swipeBounceTime,p=a.wheel,f=a.swipeTime,d=f,g=p?4:15,y=t+l/u*(s<0?-1:1);return p&&h&&(y=Math.round(y/h)*h),y<n?(y=o?Math.max(n-o/4,n-o/g*l):n,d=c):y>r&&(y=o?Math.min(r+o/4,r+o/g*l):r,d=c),{destination:Math.round(y),duration:d}}function b(){}function w(t){console.error("[BScroll warn]: "+t)}function S(t,e){if(!t)throw new Error("[BScroll] "+e)}function T(t){var e=document.createElement("div"),i=document.createElement("div");return e.style.cssText="position:absolute;z-index:9999;pointerEvents:none",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(e.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",i.style.height="100%",e.className="bscroll-horizontal-scrollbar"):(e.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",i.style.width="100%",e.className="bscroll-vertical-scrollbar"),e.style.cssText+=";overflow:hidden",e.appendChild(i),e}function M(t,e){this.wrapper=e.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.direction=e.direction,e.fade?(this.visible=0,this.wrapperStyle.opacity="0"):this.visible=1,this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.x=0,this.y=0,e.interactive&&this._addDOMEvents()}function C(t){if(t&&t.classList)return t.classList.contains("tombstone")}function I(t,e){var i=this;this.options=e,S("function"==typeof this.options.createTombstone,"Infinite scroll need createTombstone Function to create tombstone"),S("function"==typeof this.options.fetch,"Infinite scroll need fetch Function to fetch new data."),S("function"==typeof this.options.render,"Infinite scroll need render Function to render each item."),this.firstAttachedItem=0,this.lastAttachedItem=0,this.anchorScrollTop=0,this.anchorItem={index:0,offset:0},this.tombstoneHeight=0,this.tombstoneWidth=0,this.tombstones=[],this.items=[],this.loadedItems=0,this.requestInProgress=!1,this.hasMore=!0,this.scroller=t,this.wrapperEl=this.scroller.wrapper,this.scrollerEl=this.scroller.scroller,this.scroller.on("scroll",function(){i.onScroll()}),this.scroller.on("resize",function(){i.onResize()}),this.onResize()}function A(t,e){this.wrapper="string"==typeof t?document.querySelector(t):t,this.wrapper||w("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||w("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t,e)}var k=function(){function t(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(r)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),D=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)},P="undefined"!=typeof window,O=P&&navigator.userAgent.toLowerCase(),L=O&&/wechatdevtools/.test(O),E=O&&O.indexOf("android")>0,R=P&&document.createElement("div").style,N=function(){if(!P)return!1;var t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(var e in t)if(void 0!==R[t[e]])return e;return!1}(),z=s("transform"),B=P&&s("perspective")in R,F=P&&("ontouchstart"in window||L),H=!1!==z,V=P&&s("transition")in R,Y={transform:z,transitionTimingFunction:s("transitionTimingFunction"),transitionDuration:s("transitionDuration"),transitionDelay:s("transitionDelay"),transformOrigin:s("transformOrigin"),transitionEnd:s("transitionEnd")},X=1,W={touchstart:X,touchmove:X,touchend:X,mousedown:2,mousemove:2,mouseup:2},G={startX:0,startY:0,scrollX:!1,scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:F,disableTouch:!F,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},U={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},j=function(){return P?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,(t.interval||100/60)/2)}:b}(),q=function(){return P?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:b}(),Z=1,K=-1,Q=1,J=-1,$=1,tt=3;M.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t);break;case"touchmove":case"mousemove":this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this._end(t)}},M.prototype.refresh=function(){this._shouldShow()&&(this.transitionTime(),this._calculate(),this.updatePosition())},M.prototype.fade=function(t,e){var i=this;if(!e||this.visible){var n=t?250:500;t=t?"1":"0",this.wrapperStyle[Y.transitionDuration]=n+"ms",clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout(function(){i.wrapperStyle.opacity=t,i.visible=+t},0)}},M.prototype.updatePosition=function(){if("vertical"===this.direction){var t=Math.round(this.sizeRatioY*this.scroller.y);if(t<0){this.transitionTime(500);var e=Math.max(this.indicatorHeight+3*t,8);this.indicatorStyle.height=e+"px",t=0}else if(t>this.maxPosY){this.transitionTime(500);var i=Math.max(this.indicatorHeight-3*(t-this.maxPosY),8);this.indicatorStyle.height=i+"px",t=this.maxPosY+this.indicatorHeight-i}else this.indicatorStyle.height=this.indicatorHeight+"px";this.y=t,this.scroller.options.useTransform?this.indicatorStyle[Y.transform]="translateY("+t+"px)"+this.scroller.translateZ:this.indicatorStyle.top=t+"px"}else{var n=Math.round(this.sizeRatioX*this.scroller.x);if(n<0){this.transitionTime(500);var r=Math.max(this.indicatorWidth+3*n,8);this.indicatorStyle.width=r+"px",n=0}else if(n>this.maxPosX){this.transitionTime(500);var o=Math.max(this.indicatorWidth-3*(n-this.maxPosX),8);this.indicatorStyle.width=o+"px",n=this.maxPosX+this.indicatorWidth-o}else this.indicatorStyle.width=this.indicatorWidth+"px";this.x=n,this.scroller.options.useTransform?this.indicatorStyle[Y.transform]="translateX("+n+"px)"+this.scroller.translateZ:this.indicatorStyle.left=n+"px"}},M.prototype.transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.indicatorStyle[Y.transitionDuration]=t+"ms"},M.prototype.transitionTimingFunction=function(t){this.indicatorStyle[Y.transitionTimingFunction]=t},M.prototype.destroy=function(){this._removeDOMEvents(),this.wrapper.parentNode.removeChild(this.wrapper)},M.prototype._start=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=n(),this._handleMoveEvents(l),this.scroller.trigger("beforeScrollStart")},M.prototype._move=function(t){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.moved||this.scroller.trigger("scrollStart"),this.moved=!0;var i=e.pageX-this.lastPointX;this.lastPointX=e.pageX;var n=e.pageY-this.lastPointY;this.lastPointY=e.pageY;var r=this.x+i,o=this.y+n;this._pos(r,o)},M.prototype._end=function(t){if(this.initiated){this.initiated=!1,t.preventDefault(),t.stopPropagation(),this._handleMoveEvents(u);var e=this.scroller.options.snap;if(e){var i=e.speed,n=e.easing,r=void 0===n?U.bounce:n,o=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),a=i||Math.max(Math.max(Math.min(Math.abs(this.scroller.x-o.x),1e3),Math.min(Math.abs(this.scroller.y-o.y),1e3)),300);this.scroller.x===o.x&&this.scroller.y===o.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=o,this.scroller.scrollTo(o.x,o.y,a,r))}this.moved&&this.scroller.trigger("scrollEnd",{x:this.scroller.x,y:this.scroller.y})}},M.prototype._pos=function(t,e){t<0?t=0:t>this.maxPosX&&(t=this.maxPosX),e<0?e=0:e>this.maxPosY&&(e=this.maxPosY),t=Math.round(t/this.sizeRatioX),e=Math.round(e/this.sizeRatioY),this.scroller.scrollTo(t,e),this.scroller.trigger("scroll",{x:this.scroller.x,y:this.scroller.y})},M.prototype._shouldShow=function(){return"vertical"===this.direction&&this.scroller.hasVerticalScroll||"horizontal"===this.direction&&this.scroller.hasHorizontalScroll?(this.wrapper.style.display="",!0):(this.wrapper.style.display="none",!1)},M.prototype._calculate=function(){if("vertical"===this.direction){var t=this.wrapper.clientHeight;this.indicatorHeight=Math.max(Math.round(t*t/(this.scroller.scrollerHeight||t||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px",this.maxPosY=t-this.indicatorHeight,this.sizeRatioY=this.maxPosY/this.scroller.maxScrollY}else{var e=this.wrapper.clientWidth;this.indicatorWidth=Math.max(Math.round(e*e/(this.scroller.scrollerWidth||e||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px",this.maxPosX=e-this.indicatorWidth,this.sizeRatioX=this.maxPosX/this.scroller.maxScrollX}},M.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},M.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t),this._handleMoveEvents(t)},M.prototype._handleMoveEvents=function(t){this.scroller.options.disableTouch||t(window,"touchmove",this),this.scroller.options.disableMouse||t(window,"mousemove",this)},M.prototype._handleDOMEvents=function(t){this.scroller.options.disableTouch||(t(this.indicator,"touchstart",this),t(window,"touchend",this)),this.scroller.options.disableMouse||(t(this.indicator,"mousedown",this),t(window,"mouseup",this))};var et=2e3;I.prototype.onScroll=function(){var t=-this.scroller.y,e=t-this.anchorScrollTop;this.anchorItem=0===t?{index:0,offset:0}:this._calculateAnchoredItem(this.anchorItem,e),this.anchorScrollTop=t;var i=this._calculateAnchoredItem(this.anchorItem,this.wrapperEl.offsetHeight),n=this.anchorItem.index,r=i.index;e<0?(n-=30,r+=10):(n-=10,r+=30),this.fill(n,r),this.maybeRequestContent()},I.prototype.onResize=function(){var t=this.options.createTombstone();t.style.position="absolute",this.scrollerEl.appendChild(t),t.style.display="",this.tombstoneHeight=t.offsetHeight,this.tombstoneWidth=t.offsetWidth,this.scrollerEl.removeChild(t);for(var e=0;e<this.items.length;e++)this.items[e].height=this.items[e].width=0;this.onScroll()},I.prototype.fill=function(t,e){this.firstAttachedItem=Math.max(0,t),this.hasMore||(e=Math.min(e,this.items.length)),this.lastAttachedItem=e,this.attachContent()},I.prototype.maybeRequestContent=function(){var t=this;if(!this.requestInProgress&&this.hasMore){var e=this.lastAttachedItem-this.loadedItems;e<=0||(this.requestInProgress=!0,this.options.fetch(e).then(function(e){if(t.requestInProgress=!1,e)t.addContent(e);else{t.hasMore=!1;var i=t._removeTombstones(),n=0;t.anchorItem.index<=t.items.length?(n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.resetPosition(t.scroller.options.bounceTime)):(t.anchorItem.index-=i,n=t._fixScrollPosition(),t._setupAnimations({},n),t.scroller.stop(),t.scroller.resetPosition(),t.onScroll())}}))}},I.prototype.addContent=function(t){for(var e=0;e<t.length;e++)this.items.length<=this.loadedItems&&this._addItem(),this.items[this.loadedItems++].data=t[e];this.attachContent(),this.maybeRequestContent()},I.prototype.attachContent=function(){var t=this._collectUnusedNodes(),e=this._createDOMNodes(t);this._cleanupUnusedNodes(t),this._cacheNodeSize();var i=this._fixScrollPosition();this._setupAnimations(e,i)},I.prototype.resetMore=function(){this.hasMore=!0},I.prototype._removeTombstones=function(){for(var t=void 0,e=0,i=this.items.length,n=0;n<i;n++){var r=this.items[n].node,o=this.items[n].data;r&&!C(r)||o||(t||(t=n),r&&this.scrollerEl.removeChild(r))}return e=i-t,this.items.splice(t),this.lastAttachedItem=Math.min(this.lastAttachedItem,this.items.length),e},I.prototype._collectUnusedNodes=function(){for(var t=[],e=0;e<this.items.length;e++)if(e!==this.firstAttachedItem){var i=this.items[e].node;i&&(C(i)?(this.tombstones.push(i),this.tombstones[this.tombstones.length-1].style.display="none"):t.push(i)),this.items[e].node=null}else e=this.lastAttachedItem-1;return t},I.prototype._createDOMNodes=function(t){for(var e={},i=this.firstAttachedItem;i<this.lastAttachedItem;i++){for(;this.items.length<=i;)this._addItem();var n=this.items[i].node,r=this.items[i].data;if(n){if(!C(n)||!r)continue;n.style.zIndex=1,e[i]=[n,this.items[i].top-this.anchorScrollTop],this.items[i].node=null}var o=r?this.options.render(r,t.pop()):this._getTombStone();o.style.position="absolute",this.items[i].top=-1,this.scrollerEl.appendChild(o),this.items[i].node=o}return e},I.prototype._cleanupUnusedNodes=function(t){for(;t.length;)this.scrollerEl.removeChild(t.pop())},I.prototype._cacheNodeSize=function(){for(var t=this.firstAttachedItem;t<this.lastAttachedItem;t++)this.items[t].data&&!this.items[t].height&&(this.items[t].height=this.items[t].node.offsetHeight,this.items[t].width=this.items[t].node.offsetWidth)},I.prototype._fixScrollPosition=function(){this.anchorScrollTop=0;for(var t=0;t<this.anchorItem.index;t++)this.anchorScrollTop+=this.items[t].height||this.tombstoneHeight;this.anchorScrollTop+=this.anchorItem.offset;for(var e=this.anchorScrollTop-this.anchorItem.offset,i=this.anchorItem.index;i>this.firstAttachedItem;)e-=this.items[i-1].height||this.tombstoneHeight,i--;return e},I.prototype._setupAnimations=function(t,e){var i=this;for(var n in t){var r=t[n];this.items[n].node.style.transform="translateY("+(this.anchorScrollTop+r[1])+"px) scale("+this.tombstoneWidth/this.items[n].width+", "+this.tombstoneHeight/this.items[n].height+")",this.items[n].node.offsetTop,r[0].offsetTop,this.items[n].node.style.transition="transform 200ms"}for(var o=this.firstAttachedItem;o<this.lastAttachedItem;o++){var a=t[o];if(a){var s=a[0];s.style.transition="transform 200ms, opacity 200ms",s.style.transform="translateY("+e+"px) scale("+this.items[o].width/this.tombstoneWidth+", "+this.items[o].height/this.tombstoneHeight+")",s.style.opacity=0}e!==this.items[o].top&&(a||(this.items[o].node.style.transition=""),this.items[o].node.style.transform="translateY("+e+"px)"),this.items[o].top=e,e+=this.items[o].height||this.tombstoneHeight}this.scroller.maxScrollY=-(e-this.wrapperEl.offsetHeight+(this.hasMore?et:0)),setTimeout(function(){for(var e in t){var n=t[e];n[0].style.display="none",i.tombstones.push(n[0])}},200)},I.prototype._getTombStone=function(){var t=this.tombstones.pop();return t?(t.style.display="",t.style.opacity=1,t.style.transform="",t.style.transition="",t):this.options.createTombstone()},I.prototype._addItem=function(){this.items.push({data:null,node:null,height:0,width:0,top:0})},I.prototype._calculateAnchoredItem=function(t,e){if(0===e)return t;var i=t.index,n=0;if((e+=t.offset)<0){for(;e<0&&i>0&&this.items[i-1].height;)e+=this.items[i-1].height,i--;n=Math.max(-i,Math.ceil(Math.min(e,0)/this.tombstoneHeight))}else{for(;e>0&&i<this.items.length&&this.items[i].height&&this.items[i].height<e;)e-=this.items[i].height,i++;(i>=this.items.length||!this.items[i].height)&&(n=Math.floor(Math.max(e,0)/this.tombstoneHeight))}return i+=n,e-=n*this.tombstoneHeight,{index:i,offset:e}},function(t){t.prototype._init=function(t,e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},t.prototype.setScale=function(t){this.lastScale=o(this.scale)?t:this.scale,this.scale=t},t.prototype._handleOptions=function(t){this.options=r({},G,t),this.translateZ=this.options.HWCompositing&&B?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&V,this.options.useTransform=this.options.useTransform&&H,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},t.prototype._addDOMEvents=function(){var t=l;this._handleDOMEvents(t)},t.prototype._removeDOMEvents=function(){var t=u;this._handleDOMEvents(t)},t.prototype._handleDOMEvents=function(t){var e=this.options.bindToWrapper?this.wrapper:window;t(window,"orientationchange",this),t(window,"resize",this),this.options.click&&t(this.wrapper,"click",this,!0),this.options.disableMouse||(t(this.wrapper,"mousedown",this),t(e,"mousemove",this),t(e,"mousecancel",this),t(e,"mouseup",this)),F&&!this.options.disableTouch&&(t(this.wrapper,"touchstart",this),t(e,"touchmove",this),t(e,"touchcancel",this),t(e,"touchend",this)),t(this.scroller,Y.transitionEnd,this)},t.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},t.prototype._watchTransition=function(){if("function"==typeof Object.defineProperty){var t=this,e=!1,i=this.useTransition?"isInTransition":"isAnimating";Object.defineProperty(this,i,{get:function(){return e},set:function(i){e=i;for(var n=t.scroller.children.length?t.scroller.children:[t.scroller],r=e&&!t.pulling?"none":"auto",o=0;o<n.length;o++)n[o].style.pointerEvents=r}})}},t.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()})},t.prototype._initDOMObserver=function(){var t=this;if("undefined"!=typeof MutationObserver){var e=void 0,i=new MutationObserver(function(i){if(!t._shouldNotRefresh()){for(var n=!1,r=!1,o=0;o<i.length;o++){var a=i[o];if("attributes"!==a.type){n=!0;break}if(a.target!==t.scroller){r=!0;break}}n?t.refresh():r&&(clearTimeout(e),e=setTimeout(function(){t._shouldNotRefresh()||t.refresh()},60))}}),n={attributes:!0,childList:!0,subtree:!0};i.observe(this.scroller,n),this.on("destroy",function(){i.disconnect()})}else this._checkDOMUpdate()},t.prototype._shouldNotRefresh=function(){var t=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||t},t.prototype._checkDOMUpdate=function(){function t(){if(!this.destroyed){i=p(this.scroller);var t=i.width,o=i.height;n===t&&r===o||this.refresh(),n=t,r=o,e.call(this)}}function e(){var e=this;setTimeout(function(){t.call(e)},1e3)}var i=p(this.scroller),n=i.width,r=i.height;e.call(this)},t.prototype.handleEvent=function(t){switch(t.type){case"touchstart":case"mousedown":this._start(t),this.options.zoom&&t.touches&&t.touches.length>1&&this._zoomStart(t);break;case"touchmove":case"mousemove":this.options.zoom&&t.touches&&t.touches.length>1?this._zoom(t):this._move(t);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(t):this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"click":this.enabled&&!t._constructed&&(f(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation()));break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(t)}},t.prototype.refresh=function(){var t="static"===window.getComputedStyle(this.wrapper,null).position,e=p(this.wrapper);this.wrapperWidth=e.width,this.wrapperHeight=e.height;var i=p(this.scroller);this.scrollerWidth=Math.round(i.width*this.scale),this.scrollerHeight=Math.round(i.height*this.scale),this.relativeX=i.left,this.relativeY=i.top,t&&(this.relativeX-=e.left,this.relativeY-=e.top),this.minScrollX=0,this.minScrollY=0;var n=this.options.wheel;n?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):this.scale>1&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):this.scale>1&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=h(this.wrapper),this.trigger("refresh"),!this.scaled&&this.resetPosition()},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1}}(A),function(t){t.prototype._start=function(t){var e=W[t.type];if((e===X||0===t.button)&&!(!this.enabled||this.destroyed||this.initiated&&this.initiated!==e)){this.initiated=e,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=n(),this.options.wheel&&(this.target=t.target),this.stop();var i=t.touches?t.touches[0]:t;this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=i.pageX,this.pointY=i.pageY,this.trigger("beforeScrollStart")}},t.prototype._move=function(t){if(this.enabled&&!this.destroyed&&W[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches?t.touches[0]:t,i=e.pageX-this.pointX,r=e.pageY-this.pointY;this.pointX=e.pageX,this.pointY=e.pageY,this.distX+=i,this.distY+=r;var o=Math.abs(this.distX),a=Math.abs(this.distY),s=n();if(!(s-this.endTime>this.options.momentumLimitTime&&a<this.options.momentumLimitDistance&&o<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(o>a+this.options.directionLockThreshold?this.directionLocked="h":a>=o+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)t.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);r=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)t.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);i=0}i=this.hasHorizontalScroll?i:0,r=this.hasVerticalScroll?r:0,this.movingDirectionX=i>0?J:i<0?Q:0,this.movingDirectionY=r>0?K:r<0?Z:0;var l=this.x+i,u=this.y+r,h=!1,c=!1,p=!1,f=!1,d=this.options.bounce;!1!==d&&(h=void 0===d.top||d.top,c=void 0===d.bottom||d.bottom,p=void 0===d.left||d.left,f=void 0===d.right||d.right),(l>this.minScrollX||l<this.maxScrollX)&&(l=l>this.minScrollX&&p||l<this.maxScrollX&&f?this.x+i/3:l>this.minScrollX?this.minScrollX:this.maxScrollX),(u>this.minScrollY||u<this.maxScrollY)&&(u=u>this.minScrollY&&h||u<this.maxScrollY&&c?this.y+r/3:u>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(l,u),s-this.startTime>this.options.momentumLimitTime&&(this.startTime=s,this.startX=this.x,this.startY=this.y,this.options.probeType===$&&this.trigger("scroll",{x:this.x,y:this.y})),this.options.probeType>$&&this.trigger("scroll",{x:this.x,y:this.y});var g=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,y=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,v=this.pointX-g,m=this.pointY-y;(v>document.documentElement.clientWidth-this.options.momentumLimitDistance||v<this.options.momentumLimitDistance||m<this.options.momentumLimitDistance||m>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(t)}}},t.prototype._end=function(t){if(this.enabled&&!this.destroyed&&W[t.type]===this.initiated){this.initiated=!1,this.options.preventDefault&&!f(t.target,this.options.preventDefaultException)&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1;var e=Math.round(this.x),i=Math.round(this.y),r=e-this.absStartX,o=i-this.absStartY;if(this.directionX=r>0?J:r<0?Q:0,this.directionY=o>0?K:o<0?Z:0,!this.options.pullDownRefresh||!this._checkPullDown()){if(this._checkClick(t))return void this.trigger("scrollCancel");if(!this.resetPosition(this.options.bounceTime,U.bounce)){this._translate(e,i),this.endTime=n();var a=this.endTime-this.startTime,s=Math.abs(e-this.startX),l=Math.abs(i-this.startY);if(this._events.flick&&a<this.options.flickLimitTime&&s<this.options.flickLimitDistance&&l<this.options.flickLimitDistance)return void this.trigger("flick");var u=0;if(this.options.momentum&&a<this.options.momentumLimitTime&&(l>this.options.momentumLimitDistance||s>this.options.momentumLimitDistance)){var h=!1,c=!1,p=!1,d=!1,g=this.options.bounce;!1!==g&&(h=void 0===g.top||g.top,c=void 0===g.bottom||g.bottom,p=void 0===g.left||g.left,d=void 0===g.right||g.right);var y=this.directionX===J&&p||this.directionX===Q&&d?this.wrapperWidth:0,v=this.directionY===K&&h||this.directionY===Z&&c?this.wrapperHeight:0,m=this.hasHorizontalScroll?x(this.x,this.startX,a,this.maxScrollX,this.minScrollX,y,this.options):{destination:e,duration:0},_=this.hasVerticalScroll?x(this.y,this.startY,a,this.maxScrollY,this.minScrollY,v,this.options):{destination:i,duration:0};e=m.destination,i=_.destination,u=Math.max(m.duration,_.duration),this.isInTransition=!0}else this.options.wheel&&(i=Math.round(i/this.itemHeight)*this.itemHeight,u=this.options.wheel.adjustTime||400);var b=U.swipe;if(this.options.snap){var w=this._nearestSnap(e,i);this.currentPage=w,u=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(e-w.x),1e3),Math.min(Math.abs(i-w.y),1e3)),300),e=w.x,i=w.y,this.directionX=0,this.directionY=0,b=this.options.snap.easing||U.bounce}if(e!==this.x||i!==this.y)return(e>this.minScrollX||e<this.maxScrollX||i>this.minScrollY||i<this.maxScrollY)&&(b=U.swipeBounce),void this.scrollTo(e,i,u,b);this.options.wheel&&(this.selectedIndex=Math.round(Math.abs(this.y/this.itemHeight))),this.trigger("scrollEnd",{x:this.x,y:this.y})}}}},t.prototype._checkClick=function(t){var e=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,!this.moved){if(this.options.wheel){if(this.target&&this.target.classList.contains(this.options.wheel.wheelWrapperClass)){var i=Math.abs(Math.round(this.y/this.itemHeight)),r=Math.round((this.pointY+c(this.wrapper).top-this.wrapperHeight/2)/this.itemHeight);this.target=this.items[i+r]}return this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,U.swipe),!0}if(!e){var o=this.options.dblclick,a=!1;if(o&&this.lastClickTime){var s=o.delay,l=void 0===s?300:s;n()-this.lastClickTime<l&&(a=!0,y(t))}return this.options.tap&&d(t,this.options.tap),this.options.click&&!f(t.target,this.options.preventDefaultException)&&g(t),this.lastClickTime=a?null:n(),!0}return!1}return!1},t.prototype._resize=function(){var t=this;this.enabled&&(E&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling))},t.prototype._startProbe=function(){function t(){var i=e.getComputedPosition();if(e.trigger("scroll",i),!e.isInTransition)return void e.trigger("scrollEnd",i);e.probeTimer=j(t)}q(this.probeTimer),this.probeTimer=j(t);var e=this},t.prototype._transitionTime=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[Y.transitionDuration]=t+"ms",this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[Y.transitionDuration]=t+"ms";if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTime(t)},t.prototype._transitionTimingFunction=function(t){if(this.scrollerStyle[Y.transitionTimingFunction]=t,this.options.wheel)for(var e=0;e<this.items.length;e++)this.items[e].style[Y.transitionTimingFunction]=t;if(this.indicators)for(var i=0;i<this.indicators.length;i++)this.indicators[i].transitionTimingFunction(t)},t.prototype._transitionEnd=function(t){t.target===this.scroller&&this.isInTransition&&(this._transitionTime(),(!this.pulling||this.movingDirectionY===Z)&&!this.resetPosition(this.options.bounceTime,U.bounce)&&(this.isInTransition=!1,this.options.probeType!==tt&&this.trigger("scrollEnd",{x:this.x,y:this.y})))},t.prototype._translate=function(t,e,i){if(S(!o(t)&&!o(e),"Translate x or y is null or undefined."),o(i)&&(i=this.scale),this.options.useTransform?this.scrollerStyle[Y.transform]="translate("+t+"px,"+e+"px) scale("+i+")"+this.translateZ:(t=Math.round(t),e=Math.round(e),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=e+"px"),this.options.wheel)for(var n=this.options.wheel.rotate,r=void 0===n?25:n,a=0;a<this.items.length;a++){var s=r*(e/this.itemHeight+a);this.items[a].style[Y.transform]="rotateX("+s+"deg)"}if(this.x=t,this.y=e,this.setScale(i),this.indicators)for(var l=0;l<this.indicators.length;l++)this.indicators[l].updatePosition()},t.prototype._animate=function(t,e,i,r){function o(){var f=n();if(f>=p)return a.isAnimating=!1,a._translate(t,e,h),a.trigger("scroll",{x:a.x,y:a.y}),void(a.pulling||a.resetPosition(a.options.bounceTime)||a.trigger("scrollEnd",{x:a.x,y:a.y}));f=(f-c)/i;var d=r(f),g=(t-s)*d+s,y=(e-l)*d+l,v=(h-u)*d+u;a._translate(g,y,v),a.isAnimating&&(a.animateTimer=j(o)),a.options.probeType===tt&&a.trigger("scroll",{x:a.x,y:a.y})}var a=this,s=this.x,l=this.y,u=this.lastScale,h=this.scale,c=n(),p=c+i;this.isAnimating=!0,q(this.animateTimer),o()},t.prototype.scrollBy=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.bounce;t=this.x+t,e=this.y+e,this.scrollTo(t,e,i,n)},t.prototype.scrollTo=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.bounce;this.isInTransition=this.options.useTransition&&i>0&&(t!==this.x||e!==this.y),!i||this.options.useTransition?(this._transitionTimingFunction(n.style),this._transitionTime(i),this._translate(t,e),i&&this.options.probeType===tt&&this._startProbe(),i||t===this.x&&e===this.y||(this.trigger("scroll",{x:t,y:e}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,U.bounce)||this.trigger("scrollEnd",{x:t,y:e})),this.options.wheel&&(e>this.minScrollY?this.selectedIndex=0:e<this.maxScrollY?this.selectedIndex=this.items.length-1:this.selectedIndex=Math.round(Math.abs(e/this.itemHeight)))):this._animate(t,e,i,n.fn)},t.prototype.scrollToElement=function(t,e,i,n,r){if(t&&(t=t.nodeType?t:this.scroller.querySelector(t),!this.options.wheel||t.classList.contains(this.options.wheel.wheelItemClass))){var o=h(t);o.left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,!0===i&&(i=Math.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===n&&(n=Math.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),o.left-=i||0,o.top-=n||0,o.left=o.left>this.minScrollX?this.minScrollX:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=o.top>this.minScrollY?this.minScrollY:o.top<this.maxScrollY?this.maxScrollY:o.top,this.options.wheel&&(o.top=Math.round(o.top/this.itemHeight)*this.itemHeight),this.scrollTo(o.left,o.top,e,r)}},t.prototype.resetPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.bounce,i=this.x,n=Math.round(i);!this.hasHorizontalScroll||n>this.minScrollX?i=this.minScrollX:n<this.maxScrollX&&(i=this.maxScrollX);var r=this.y,o=Math.round(r);return!this.hasVerticalScroll||o>this.minScrollY?r=this.minScrollY:o<this.maxScrollY&&(r=this.maxScrollY),(i!==this.x||r!==this.y)&&(this.scrollTo(i,r,t,e),!0)},t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.scroller,null),e=void 0,i=void 0;return this.options.useTransform?(t=t[Y.transform].split(")")[0].split(", "),e=+(t[12]||t[4]),i=+(t[13]||t[5])):(e=+t.left.replace(/[^-\d.]/g,""),i=+t.top.replace(/[^-\d.]/g,"")),{x:e,y:i}},t.prototype.stop=function(){if(this.options.useTransition&&this.isInTransition){this.isInTransition=!1,q(this.probeTimer);var t=this.getComputedPosition();this._translate(t.x,t.y),this.options.wheel?this.target=this.items[Math.round(-t.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0}else!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,q(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},t.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),q(this.options.useTransition?this.probeTimer:this.animateTimer),this._removeDOMEvents(),this._events={}}}(A),function(t){t.prototype.on=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._events[t]||(this._events[t]=[]),this._events[t].push([e,i])},t.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(n,arguments)}var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;i.fn=e,this.on(t,i)},t.prototype.off=function(t,e){var i=this._events[t];if(i)for(var n=i.length;n--;)(i[n][0]===e||i[n][0]&&i[n][0].fn===e)&&(i[n][0]=void 0)},t.prototype.trigger=function(t){var e=this._events[t];if(e)for(var i=e.length,n=[].concat(D(e)),r=0;r<i;r++){var o=n[r],a=k(o,2),s=a[0],l=a[1];s&&s.apply(l,[].slice.call(arguments,1))}}}(A),function(t){t.prototype._initSnap=function(){var t=this;this.currentPage={};var e=this.options.snap;if(e.loop){var i=this.scroller.children;i.length>1?(v(i[i.length-1].cloneNode(!0),this.scroller),this.scroller.appendChild(i[1].cloneNode(!0))):e.loop=!1}var n=e.el;"string"==typeof n&&(n=this.scroller.querySelectorAll(n)),this.on("refresh",function(){if(t.pages=[],t.wrapperWidth&&t.wrapperHeight&&t.scrollerWidth&&t.scrollerHeight){var i=e.stepX||t.wrapperWidth,r=e.stepY||t.wrapperHeight,o=0,a=void 0,s=void 0,l=void 0,u=0,h=void 0,c=0,f=void 0,d=void 0;if(n)for(h=n.length,f=-1;u<h;u++)d=p(n[u]),(0===u||d.left<=p(n[u-1]).left)&&(c=0,f++),t.pages[c]||(t.pages[c]=[]),o=Math.max(-d.left,t.maxScrollX),a=Math.max(-d.top,t.maxScrollY),s=o-Math.round(d.width/2),l=a-Math.round(d.height/2),t.pages[c][f]={x:o,y:a,width:d.width,height:d.height,cx:s,cy:l},o>t.maxScrollX&&c++;else for(s=Math.round(i/2),l=Math.round(r/2);o>-t.scrollerWidth;){for(t.pages[u]=[],h=0,a=0;a>-t.scrollerHeight;)t.pages[u][h]={x:Math.max(o,t.maxScrollX),y:Math.max(a,t.maxScrollY),width:i,height:r,cx:o-s,cy:a-l},a-=r,h++;o-=i,u++}t._checkSnapLoop();var g=e._loopX?1:0,y=e._loopY?1:0;t._goToPage(t.currentPage.pageX||g,t.currentPage.pageY||y,0);var v=e.threshold;v%1==0?(t.snapThresholdX=v,t.snapThresholdY=v):(t.snapThresholdX=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].width*v),t.snapThresholdY=Math.round(t.pages[t.currentPage.pageX][t.currentPage.pageY].height*v))}}),this.on("scrollEnd",function(){e.loop&&(e._loopX?(0===t.currentPage.pageX&&t._goToPage(t.pages.length-2,t.currentPage.pageY,0),t.currentPage.pageX===t.pages.length-1&&t._goToPage(1,t.currentPage.pageY,0)):(0===t.currentPage.pageY&&t._goToPage(t.currentPage.pageX,t.pages[0].length-2,0),t.currentPage.pageY===t.pages[0].length-1&&t._goToPage(t.currentPage.pageX,1,0)))}),!1!==e.listenFlick&&this.on("flick",function(){var i=e.speed||Math.max(Math.max(Math.min(Math.abs(t.x-t.startX),1e3),Math.min(Math.abs(t.y-t.startY),1e3)),300);t._goToPage(t.currentPage.pageX+t.directionX,t.currentPage.pageY+t.directionY,i)}),this.on("destroy",function(){if(e.loop){var i=t.scroller.children;i.length>2&&(_(t.scroller,i[i.length-1]),_(t.scroller,i[0]))}})},t.prototype._checkSnapLoop=function(){var t=this.options.snap;t.loop&&this.pages&&this.pages.length&&(this.pages.length>1&&(t._loopX=!0),this.pages[0]&&this.pages[0].length>1&&(t._loopY=!0),t._loopX&&t._loopY&&w("Loop does not support two direction at the same time."))},t.prototype._nearestSnap=function(t,e){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var i=0;if(Math.abs(t-this.absStartX)<=this.snapThresholdX&&Math.abs(e-this.absStartY)<=this.snapThresholdY)return this.currentPage;t>this.minScrollX?t=this.minScrollX:t<this.maxScrollX&&(t=this.maxScrollX),e>this.minScrollY?e=this.minScrollY:e<this.maxScrollY&&(e=this.maxScrollY);for(var n=this.pages.length;i<n;i++)if(t>=this.pages[i][0].cx){t=this.pages[i][0].x;break}n=this.pages[i].length;for(var r=0;r<n;r++)if(e>=this.pages[0][r].cy){e=this.pages[0][r].y;break}return i===this.currentPage.pageX&&(i+=this.directionX,i<0?i=0:i>=this.pages.length&&(i=this.pages.length-1),t=this.pages[i][0].x),r===this.currentPage.pageY&&(r+=this.directionY,r<0?r=0:r>=this.pages[0].length&&(r=this.pages[0].length-1),e=this.pages[0][r].y),{x:t,y:e,pageX:i,pageY:r}},t.prototype._goToPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments[2],n=arguments[3],r=this.options.snap;if(r&&this.pages&&this.pages.length&&(n=n||r.easing||U.bounce,t>=this.pages.length?t=this.pages.length-1:t<0&&(t=0),this.pages[t])){e>=this.pages[t].length?e=this.pages[t].length-1:e<0&&(e=0);var o=this.pages[t][e].x,a=this.pages[t][e].y;i=void 0===i?r.speed||Math.max(Math.max(Math.min(Math.abs(o-this.x),1e3),Math.min(Math.abs(a-this.y),1e3)),300):i,this.currentPage={x:o,y:a,pageX:t,pageY:e},this.scrollTo(o,a,i,n)}},t.prototype.goToPage=function(t,e,i,n){var r=this.options.snap;if(r&&this.pages&&this.pages.length){if(r.loop){var o=void 0;r._loopX?(o=this.pages.length-2,t>=o?t=o-1:t<0&&(t=0),t+=1):(o=this.pages[0].length-2,e>=o?e=o-1:e<0&&(e=0),e+=1)}this._goToPage(t,e,i,n)}},t.prototype.next=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i++,i>=this.pages.length&&this.hasVerticalScroll&&(i=0,n++),this._goToPage(i,n,t,e)}},t.prototype.prev=function(t,e){if(this.options.snap){var i=this.currentPage.pageX,n=this.currentPage.pageY;i--,i<0&&this.hasVerticalScroll&&(i=0,n--),this._goToPage(i,n,t,e)}},t.prototype.getCurrentPage=function(){var t=this.options.snap;return t?t.loop?t._loopX?r({},this.currentPage,{pageX:this.currentPage.pageX-1}):r({},this.currentPage,{pageY:this.currentPage.pageY-1}):this.currentPage:null}}(A),function(t){t.prototype.wheelTo=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.options.wheel&&(this.y=-t*this.itemHeight,this.scrollTo(0,this.y))},t.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},t.prototype._initWheel=function(){var t=this.options.wheel;t.wheelWrapperClass||(t.wheelWrapperClass="wheel-scroll"),t.wheelItemClass||(t.wheelItemClass="wheel-item"),void 0===t.selectedIndex&&(t.selectedIndex=0,w("wheel option selectedIndex is required!"))}}(A),function(t){t.prototype._initScrollbar=function(){var t=this,e=this.options.scrollbar,i=e.fade,n=void 0===i||i,r=e.interactive,o=void 0!==r&&r;this.indicators=[];var a=void 0;this.options.scrollX&&(a={el:T("horizontal"),direction:"horizontal",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.options.scrollY&&(a={el:T("vertical"),direction:"vertical",fade:n,interactive:o},this._insertScrollBar(a.el),this.indicators.push(new M(this,a))),this.on("refresh",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].refresh()}),n&&(this.on("scrollEnd",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollCancel",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade()}),this.on("scrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0)}),this.on("beforeScrollStart",function(){for(var e=0;e<t.indicators.length;e++)t.indicators[e].fade(!0,!0)})),this.on("destroy",function(){t._removeScrollBars()})},t.prototype._insertScrollBar=function(t){this.wrapper.appendChild(t)},t.prototype._removeScrollBars=function(){for(var t=0;t<this.indicators.length;t++)this.indicators[t].destroy()}}(A),function(t){t.prototype._initPullDown=function(){this.options.probeType=tt},t.prototype._checkPullDown=function(){var t=this.options.pullDownRefresh,e=t.threshold,i=void 0===e?90:e,n=t.stop,r=void 0===n?40:n;return!(this.directionY!==K||this.y<i)&&(this.pulling||(this.pulling=!0,this.trigger("pullingDown")),this.scrollTo(this.x,r,this.options.bounceTime,U.bounce),this.pulling)},t.prototype.finishPullDown=function(){this.pulling=!1,this.resetPosition(this.options.bounceTime,U.bounce)},t.prototype.openPullDown=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullDownRefresh=t,this._initPullDown()},t.prototype.closePullDown=function(){this.options.pullDownRefresh=!1}}(A),function(t){t.prototype._initPullUp=function(){this.options.probeType=tt,this.pullupWatching=!1,this._watchPullUp()},t.prototype._watchPullUp=function(){this.pullupWatching||(this.pullupWatching=!0,this.on("scroll",this._checkToEnd))},t.prototype._checkToEnd=function(t){var e=this,i=this.options.pullUpLoad.threshold,n=void 0===i?0:i;this.movingDirectionY===Z&&t.y<=this.maxScrollY+n&&(this.once("scrollEnd",function(){e.pullupWatching=!1}),this.trigger("pullingUp"),this.off("scroll",this._checkToEnd))},t.prototype.finishPullUp=function(){var t=this;this.pullupWatching?this.once("scrollEnd",function(){t._watchPullUp()}):this._watchPullUp()},t.prototype.openPullUp=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.options.pullUpLoad=t,this._initPullUp()},t.prototype.closePullUp=function(){this.options.pullUpLoad=!1,this.pullupWatching&&(this.pullupWatching=!1,this.off("scroll",this._checkToEnd))}}(A),function(t){t.prototype._initMouseWheel=function(){var t=this;this._handleMouseWheelEvent(l),this.on("destroy",function(){clearTimeout(t.mouseWheelTimer),clearTimeout(t.mouseWheelEndTimer),t._handleMouseWheelEvent(u)}),this.firstWheelOpreation=!0},t.prototype._handleMouseWheelEvent=function(t){t(this.wrapper,"wheel",this),t(this.wrapper,"mousewheel",this),t(this.wrapper,"DOMMouseScroll",this)},t.prototype._onMouseWheel=function(t){var e=this;if(this.enabled){t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var i=this.options.mouseWheel,n=i.speed,r=void 0===n?20:n,o=i.invert,a=void 0!==o&&o,s=i.easeTime,l=void 0===s?300:s;clearTimeout(this.mouseWheelTimer),this.mouseWheelTimer=setTimeout(function(){e.options.snap||l||e.trigger("scrollEnd",{x:e.x,y:e.y}),e.firstWheelOpreation=!0},400);var u=void 0,h=void 0;switch(!0){case"deltaX"in t:1===t.deltaMode?(u=-t.deltaX*r,h=-t.deltaY*r):(u=-t.deltaX,h=-t.deltaY);break;case"wheelDeltaX"in t:u=t.wheelDeltaX/120*r,h=t.wheelDeltaY/120*r;break;case"wheelDelta"in t:u=h=t.wheelDelta/120*r;break;case"detail"in t:u=h=-t.detail/3*r;break;default:return}var c=a?-1:1;u*=c,h*=c,this.hasVerticalScroll||(u=h,h=0);var p=void 0,f=void 0;if(this.options.snap)return p=this.currentPage.pageX,f=this.currentPage.pageY,u>0?p--:u<0&&p++,h>0?f--:h<0&&f++,void this._goToPage(p,f);p=this.x+Math.round(this.hasHorizontalScroll?u:0),f=this.y+Math.round(this.hasVerticalScroll?h:0),this.movingDirectionX=this.directionX=u>0?-1:u<0?1:0,this.movingDirectionY=this.directionY=h>0?-1:h<0?1:0,p>this.minScrollX?p=this.minScrollX:p<this.maxScrollX&&(p=this.maxScrollX),f>this.minScrollY?f=this.minScrollY:f<this.maxScrollY&&(f=this.maxScrollY);var d=this.y===f;this.scrollTo(p,f,l,U.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),d&&(this.mouseWheelEndTimer=setTimeout(function(){e.trigger("scrollEnd",{x:e.x,y:e.y})},l))}}}(A),function(t){t.prototype._initZoom=function(){var t=this.options.zoom,e=t.start,i=void 0===e?1:e,n=t.min,r=void 0===n?1:n,o=t.max,a=void 0===o?4:o;this.scale=Math.min(Math.max(i,r),a),this.setScale(this.scale),this.scrollerStyle[Y.transformOrigin]="0 0"},t.prototype._zoomTo=function(t,e,i,n){this.scaled=!0;var r=t/(n||this.scale);this.setScale(t),this.refresh();var o=Math.round(this.startX-(e-this.relativeX)*(r-1)),a=Math.round(this.startY-(i-this.relativeY)*(r-1));o>this.minScrollX?o=this.minScrollX:o<this.maxScrollX&&(o=this.maxScrollX),a>this.minScrollY?a=this.minScrollY:a<this.maxScrollY&&(a=this.maxScrollY),this.x===o&&this.y===a||this.scrollTo(o,a,this.options.bounceTime),this.scaled=!1},t.prototype.zoomTo=function(t,e,i){var n=c(this.wrapper),r=n.left,o=n.top,a=e+r-this.x,s=i+o-this.y;this._zoomTo(t,a,s)},t.prototype._zoomStart=function(t){var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),r=Math.abs(e.pageY-i.pageY);this.startDistance=a(n,r),this.startScale=this.scale;var o=c(this.wrapper),s=o.left,l=o.top;this.originX=Math.abs(e.pageX+i.pageX)/2+s-this.x,this.originY=Math.abs(e.pageY+i.pageY)/2+l-this.y,this.trigger("zoomStart")},t.prototype._zoom=function(t){if(this.enabled&&!this.destroyed&&W[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation();var e=t.touches[0],i=t.touches[1],n=Math.abs(e.pageX-i.pageX),r=Math.abs(e.pageY-i.pageY),o=a(n,r),s=o/this.startDistance*this.startScale;this.scaled=!0;var l=this.options.zoom,u=l.min,h=void 0===u?1:u,c=l.max,p=void 0===c?4:c;s<h?s=.5*h*Math.pow(2,s/h):s>p&&(s=2*p*Math.pow(.5,p/s));var f=s/this.startScale,d=this.startX-(this.originX-this.relativeX)*(f-1),g=this.startY-(this.originY-this.relativeY)*(f-1);this.setScale(s),this.scrollTo(d,g,0)}},t.prototype._zoomEnd=function(t){if(this.enabled&&!this.destroyed&&W[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault(),this.options.stopPropagation&&t.stopPropagation(),this.isInTransition=!1,this.isAnimating=!1,this.initiated=0;var e=this.options.zoom,i=e.min,n=void 0===i?1:i,r=e.max,o=void 0===r?4:r,a=this.scale>o?o:this.scale<n?n:this.scale;this._zoomTo(a,this.originX,this.originY,this.startScale),this.trigger("zoomEnd")}}}(A),function(t){t.prototype._initInfinite=function(){this.options.probeType=3,this.maxScrollY=-et,this.infiniteScroller=new I(this,this.options.infinity)}}(A),A.Version="1.12.6",e.a=A},15:function(t,e){t.exports=!0},17:function(t,e){t.exports={}},176:function(t,e,i){i(52),i(51),t.exports=i(177)},177:function(t,e,i){var n=i(9),r=i(107);t.exports=i(0).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},18:function(t,e,i){"use strict";function n(t,e){return function(i,n){var a=this,s=Object(r.a)(i),l=Object(o.a)(e,t,s,n),u=l.$parent,h=l.remove,c=l.show,p=l.hide;return l.remove=function(){l.$removed=!0,h&&h.call(this),u.destroy()},l.show=function(){return c&&c.call.apply(c,[this].concat(Array.prototype.slice.call(arguments))),this},l.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},a._isVue&&a.$once("hook:beforeDestroy",function(){l.$removed||l.remove()}),l}}e.a=n;var r=i(97),o=i(99)},19:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1901:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(18),r=i(1902);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createGoldFinanceChart=Object(n.a)(r.a,t)},e.default=r.a},1902:function(t,e,i){"use strict";var n=i(1256),r=i(1920),o=i(2),a=Object(o.a)(n.a,r.a,r.b,!1,null,null,null);a.options.__file="src\\components\\GoldFinanceChart\\src\\index.vue",e.a=a.exports},1903:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r}),i.d(e,"c",function(){return o});var n={showType2:[{boxConfig:{iconColor:"#E13046",titleColor:"#E13046",blockColor:"rgba(255, 90, 110, 0.1)",tipsColor:"#ff5a63"},lineStyle:{lineColor:"#ff5a6e",legendImg:i(1904),zIndex:1}},{boxConfig:{iconColor:"#7363E7",titleColor:"#7363E7",blockColor:"rgba(115,99,231,0.1)",tipsColor:"#8c7FEE"},lineStyle:{lineColor:"#8c7fee",legendImg:i(1905),areaStyleColor:[{offset:0,color:"#E7E3FF"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(1906),zIndex:3}}]},r={showType2:[{boxConfig:{iconColor:"#FF8D35",titleColor:"#FF8D35",blockColor:"rgba(255,141,53,0.1)",tipsColor:"#FF8D35"},lineStyle:{lineColor:"#FF8D35",legendImg:i(1907),zIndex:1}},{boxConfig:{iconColor:"#F05A4B",titleColor:"#FC7468",blockColor:"rgba(252,116,104,0.1)",tipsColor:"#F05A4B"},lineStyle:{lineColor:"#F05A4B",legendImg:i(1908),areaStyleColor:[{offset:0,color:"#FFE0DD"},{offset:1,color:"#FFF"}],zIndex:2}}],showType3:[{lineStyle:{lineColor:"#E2E5E7",legendImg:i(1909),zIndex:3}}]},o={1:"有效保额",2:"已交保费系数金额",3:"现金价值",4:"身故全残金",5:"年龄",6:"累计已交保费",7:"累计保费*给付系数(主险)",8:"当前年龄与61岁的比值",9:"当前年龄与41岁的比值",10:"当前年龄与18岁的比值",11:"当前年龄的给付数值",12:"保额",13:"保单年份与缴费期间的比值",14:"保单年份",15:"长期护理保险金(元)",16:"疾病身故保险金或长期护理保险金"}},1904:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAgRJREFUSEtjZCACNDAwMMWbeomx/2MWYPj/jxFFCyPT/59Mfz8sPL3tVQMDwz9CxqFqRlP9StuB5w87tywhQ5DlWX5+fSx29cAXXHpwWvjM2E2D4T8rXgfhdAjj7/9SZ3fdwCaPYeAZY2NWqf8SKqT4CpfaZ4wv7picPfsbWR7FQmpaBrME3VIUC58ZeWtSw2foZkid23odJga3kFCcMfLzMYmunzWRmZ/HGdnAvx+/7H0dmJb//+Mn3CkUKU7BFhJKjRIHVkxl5OVxxOf7/5+/7H/hEJGNSw0s9YItxBeUkqc3HWVgYhIEG3TwJAPD7OUMDP//Q8xlZGRgSI1kYLA3h/D//Xv/3NTPGpeloKBlBGXqNCNvdWyKUHwWX8TA8OcvdrNYmBkYFvaB5fD5dNa5rTcZ75t6SbD/ZYT4AAmA4kxi37IrYCF8lsH0IFn6wilKB1uc/mT+/57xmbGvBkZxxcDAILZvxWRwAgEF46xlxCXe9CgGBjtzBlBCeuUUkYuhiZHpPyOu+JM8u+UaWENMASLOCFkLitMlE8Cqnhv7aGFTTtjC6HxC1qDKL5041CykepBSM9GkRYHzJN5EQ/dsQfeMD0pSdC3aQBbSvfAG+5JAk4Kq1RMs59K1AgZZSvcmBrUtJdiIQi4UCcUp3gKWlGYiskGEUi82S8luCCMbRs2mPgATfE9ommN9bQAAAABJRU5ErkJggg=="},1905:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAflJREFUSEtjZCAKNDBlhZaIMbH8E/j3j5ERWQsT0/////4wfZi2uucVA0PDP0LGoWhGV5wV+oqHgYlTlpAhKPL/vj+etlrsCy49OC1MC/6kwcKC6htiLf7z5///WWv5bmBTj2FhWtp/VpaPX1SINRyfuj/8PHdmzWL8jawGxUJqWgazBN1SFAuzwj9rUsNn6GZMW8l7HSYGt5BQnPHyMTDV9nFP5OZhdEY28OuX/3ubi77mf/7EgDOFIscp2EJCqbFnLs9UTm4GR3y+//6VYX9J8pdsnGqgqRdiIZ6gnLyM5ygTE4MgSN2V8z8Zdm36xvD/P8RYUBp28+Ni0DFkB/P//WN4nxv1xRqXpaCgZWRgaGDKCi9Wx6YI2Wf9ze8Z/v3FbhQTMwNDYS3YTQz4fDptZe9NxqzQLxIMTP8hqpEAKM46ZvFcAQnhswymBdnSirQvOljj9B/je8acyE8a6MUVyJCuOdyTQQkEFIw7N34jKvG6+0OCF5SQylK+5qJrAhWDjLjib+oKnmsgDX2N7+FxRshWUJwW1UMCKzviixY29QQt7G14T8geFPnihqFmIdWDlP6Jht7Zgu4ZfwCKtgEovEG+pGv1BMu5dK2Awb6kYnsG5gm8TQxqW0qwEYVcKBKKU3wFLEnNRGSDCDU9sFpKbkMY1TDqNfUBayRb+GkJOFQAAAAASUVORK5CYII="},1906:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},1907:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAfxJREFUSEvVlrkvBFEcx79v7cQRLI1odBLr6MSxVCKOgtY/oEBEWFEim1CJWBsRFP4BrcYRUWER3boSnU7DIo7M2ifzxjBvd+Y9Ky+bmG7md3zmd733I/jFQ0PwoKChDPneEiQo4Uy8hOI18YCX0zsSQlLmjjdO0aah2kL4iipkTjh5/OmWhM6f3WxcgXS+3o8cTfhDrj/yoVMycXblJE9zSNfqNbxolRlF5aZcoN+QgTPdLuaASmEWJQXKA8PN1UoiS3FCgtFL69M3UFozzedB/0YEecXtnL+3xz2s941Cj7t3qK2mDCjtxqGdZeQWtQmjf3/ax0rnsKvOV/eaQFEqRw8OQDylzFFsE9idBSg1/RICdEwCdb3mO03eI9La6joSweglYUPta65yVLJHttgCJBPOvjxeYOzQlIkijUevCZ1rKIeWY0Zgf4yaDW/F2CcRzLKxQ5e76xxrqn/cE7oU8KcdV4aTwe0l1iBGGndmfte8XdNAbQ9gNNJq10iakZdQ4lq/saMLZhBu+qmZDGvUNHhsai0GapzU5cCFRhmGl4+f/Deg8pSqbJrOKXMmhU2T9bHI9uCzEymbRxsDylYJ1Yc3g8pWCpXXkzW5wtRmNv6ctuMFzKJUuc9YSNGKoRwqW6LseZDWVJTiTNZEDirrXifoXxdhHqxu1f8E1v4qfGBe9yAAAAAASUVORK5CYII="},1908:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAghJREFUSEtjZCACNDAwMJUkeIn9Y2AWYPz7jxFZy39mpv9MDH8/9CzY9qqBgeEfIeNQNKMrfhXqwMPJwS1LyBBk+e8/vj4WW33gCy49OC38FOmmwcjCitdBuAz9/+f3f77lu25gk8cw8H+aMeuX7xIqpPgKl1oezhd3GGed/Y0sjxofVLQMZgm6pSgWfo711qSGz9DN4F289TpMDG4hwTjj42Pi7pw1kZGbxxkllX79svdreVo+w6dPOFMocpyCLSSUGnmmr5jKwM3jiNf3X7/s/5IZkY1LDSz1gi3EF5Q8CzYdZWBiEgSp+3VwD8P32RMZGP7/h5jLyMjAmZrPwGbvAuH/+/f+S4KfNS5LQUHLCMrUxbHe6tgUIfvsY3wAA8OfP9jNYmFh4F+4ASKHx6e9i7feZPyS4CXx/y8j2AcogI+PiWfKsisgMbyWwTQhWfolJ0oHW5wyMv9/z/gpwVcDvbgCmcE9fcVkUAIBB+OsCUQlXs70AgY2OxeG/6CElBmRi64JVAwy4oo/nkVbroF9F+OLiDNC1jIyMvAv2QxW9SXORwubcsIWRvsQsgZFnn/plqFmIbWDlKqJJq0AnCfxJhq6Zwu6Z3y6F20gC+leeIMspWv1BMu5dK2AQZZSsz0D8wTeJga1LSXYiEIuFAnGKZ4SlqRmIrI5hFIvNjvJbggjG0bNpj4ANlBfOpfc/OcAAAAASUVORK5CYII="},1909:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAdxJREFUSEvtVrtOwzAUta2kWRhgQUgV6kJLQfwB7YD4iS5Rqz6UIUL8Qn4BoQxR38rSn6hYyh8gHhVLhbqwlIElTeQgRwQ5IXYossJCRvvec3LuyxeCH3yGYaBCobALANj2PA/SLpIk+QCAt8Vi8WoYBk6DizjHjU3T3MrlcvtpIPT9er1+0XX9neXDJLQsq4wQ4v4QCxRj7Gua9ph0/w3QsiwZIXSwiSoO8bOmaS59HyEUSRaSYIwjpBHCbrd7JEJZHKPT6TyEZ1+EaTmTZRnVarUrRVHOaUDHcaaTyeTSdV1mhdI5DQjTqlFVVVNRlDOeesdxbmzb1lk2YfUGhLxQtlqtWwjhDrGbz+dgNptFMCuVCiiVSsGZ7/urfr9/yiIloYWkqfP5/GGSEa1sNBoBjJOjhhACjUYjgOApXS6XT3A4HO55nhcooD+Ss3q9fkfOeGShD006Ho9PknIqSdKKEJbj44qAqKp6TQokKYyskFWrVVAsFonKqW3bF3E7MgYhK3/tdvueOAwGg406pdlsBva9Xu84yfGfUHxIRRZN2JPcosm8LTJv/MxH258Mb0Ka6fMUToRMH+BPlcL2mVAEd8UQTRonI/h/vybSEz5t9Uh6DX69CNNgIlf9DxzfaQy1vbAWAAAAAElFTkSuQmCC"},1910:function(t,e,i){"use strict";function n(t){s||i(1911)}var r=i(1257),o=i(1916),a=i(2),s=!1,l=n,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},1911:function(t,e){},1912:function(t,e,i){"use strict";function n(t){s||i(1913)}var r=i(1258),o=i(1915),a=i(2),s=!1,l=n,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},1913:function(t,e){},1914:function(t,e,i){!function(t,i){i(e)}(0,function(t){"use strict";function e(t,e){function i(){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):(i.prototype=e.prototype,new i)}function i(t,e,i){if(i||2===arguments.length)for(var n,r=0,o=e.length;o>r;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||e)}function n(t,e){Cy[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,i=my.call(t);if("[object Array]"===i){if(!W(t)){e=[];for(var n=0,r=t.length;r>n;n++)e[n]=a(t[n])}}else if(vy[i]){if(!W(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var n=0,r=t.length;r>n;n++)e[n]=a(t[n])}}}else if(!yy[i]&&!W(t)&&!P(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=a(t[s]))}return e}function s(t,e,i){if(!A(e)||!A(t))return i?a(e):t;for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],o=e[n];!A(o)||!A(r)||S(o)||S(r)||P(o)||P(r)||k(o)||k(r)||W(o)||W(r)?!i&&n in t||(t[n]=a(e[n])):s(r,o,i)}return t}function l(t,e){for(var i=t[0],n=1,r=t.length;r>n;n++)i=s(i,t[n],e);return i}function u(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function h(t,e,i){for(var n=x(e),r=0;r<n.length;r++){var o=n[r];(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function c(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i}return-1}function p(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var r in n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function f(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}else h(t,e,i)}function d(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function g(t,e,i){if(t&&e)if(t.forEach&&t.forEach===xy)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;r>n;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function y(t,e,i){if(!t)return[];if(!e)return F(t);if(t.map&&t.map===Sy)return t.map(e,i);for(var n=[],r=0,o=t.length;o>r;r++)n.push(e.call(i,t[r],r,t));return n}function v(t,e,i,n){if(t&&e){for(var r=0,o=t.length;o>r;r++)i=e.call(n,i,t[r],r,t);return i}}function m(t,e,i){if(!t)return[];if(!e)return F(t);if(t.filter&&t.filter===by)return t.filter(e,i);for(var n=[],r=0,o=t.length;o>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}function _(t,e,i){if(t&&e)for(var n=0,r=t.length;r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function x(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}function b(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(wy.call(arguments)))}}function w(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];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 T(t){return"function"==typeof t}function M(t){return"string"==typeof t}function C(t){return"[object String]"===my.call(t)}function I(t){return"number"==typeof t}function A(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function k(t){return!!yy[my.call(t)]}function D(t){return!!vy[my.call(t)]}function P(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function O(t){return null!=t.colorStops}function L(t){return null!=t.image}function E(t){return"[object RegExp]"===my.call(t)}function R(t){return t!==t}function N(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=t.length;n>i;i++)if(null!=t[i])return t[i]}function z(t,e){return null!=t?t:e}function B(t,e,i){return null!=t?t:null!=e?e:i}function F(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return wy.apply(t,e)}function H(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 V(t,e){if(!t)throw new Error(e)}function Y(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function X(t){t[Dy]=!0}function W(t){return t[Dy]}function G(t){return new Py(t)}function U(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var r=t.length,n=0;n<e.length;n++)i[n+r]=e[n];return i}function j(t,e){var i;if(Object.create)i=Object.create(t);else{var n=function(){};n.prototype=t,i=new n}return e&&u(i,e),i}function q(t,e){return t.hasOwnProperty(e)}function Z(){}function K(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Q(t,e){return t[0]=e[0],t[1]=e[1],t}function J(t){return[t[0],t[1]]}function $(t,e,i){return t[0]=e,t[1]=i,t}function tt(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function et(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function it(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function nt(t){return Math.sqrt(rt(t))}function rt(t){return t[0]*t[0]+t[1]*t[1]}function ot(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function at(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function st(t,e){return t[0]*e[0]+t[1]*e[1]}function lt(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function ut(t,e){var i=nt(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function ht(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ct(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,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function dt(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function gt(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function yt(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function vt(t,e,i,n,r,o){var a=n+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Vy);return t[i][l]}for(var u=n|1<<i,h=i+1;n&1<<h;)h++;for(var c=0,p=0,f=0;s>p;p++){var d=1<<p;d&r||(c+=(f%2?-1:1)*t[i][p]*vt(t,e-1,h,u,r|d,o),f++)}return o[a]=c,c}function mt(t,e){var i=[[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]]],n={},r=vt(i,8,0,0,0,n);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(i,7,0===a?1:0,1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}function _t(t,e,i,n,r){return xt(Xy,e,n,r,!0)&&xt(t,i,Xy[0],Xy[1])}function xt(t,e,i,n,r){if(e.getBoundingClientRect&&gy.domSupported&&!St(e)){var o=e[Yy]||(e[Yy]={}),a=bt(e,o),s=wt(a,o,r);if(s)return s(t,i,n),!0}return!1}function bt(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["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",n[l]+":0",r[u]+":0",n[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return i}function wt(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,f=h.top;a.push(p,f),l=l&&o&&p===o[c]&&f===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[n]=i?mt(s,a):mt(a,s))}function St(t){return"CANVAS"===t.nodeName.toUpperCase()}function Tt(t,e,i,n){return i=i||{},n||!gy.canvasSupported?Mt(t,e,i):gy.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):Mt(t,e,i),i}function Mt(t,e,i){if(gy.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(St(t)){var o=t.getBoundingClientRect();return i.zrX=n-o.left,void(i.zrY=r-o.top)}if(xt(Uy,t,n,r))return i.zrX=Uy[0],void(i.zrY=Uy[1])}i.zrX=i.zrY=0}function Ct(t){return t||window.event}function It(t,e,i){if(e=Ct(e),null!=e.zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&Tt(t,r,e,i)}else{Tt(t,e,e,i);var o=At(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Gy.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function At(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,n=t.deltaY;return null==i||null==n?e:3*Math.abs(0!==n?n:i)*(n>0?-1:0>n?1:i>0?-1:1)}function kt(t,e,i,n){Wy?t.addEventListener(e,i,n):t.attachEvent("on"+e,i)}function Dt(t,e,i,n){Wy?t.removeEventListener(e,i,n):t.detachEvent("on"+e,i)}function Pt(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function Ot(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Lt(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:Et}}function Et(){jy(this.event)}function Rt(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,r=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1;n.silent&&(r=!0)}var s=n.__hostTarget;n=s||n.parent}return!r||Ky}return!1}function Nt(t,e,i){var n=t.painter;return 0>e||e>n.getWidth()||0>i||i>n.getHeight()}function zt(t){for(var e=0;t>=iv;)e|=1&t,t>>=1;return t+e}function Bt(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;i>r&&n(t[r],t[r-1])<0;)r++;Ft(t,e,r)}else for(;i>r&&n(t[r],t[r-1])>=0;)r++;return r-e}function Ft(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function Ht(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var o,a=t[n],s=e,l=n;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Vt(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){for(s=n-r;s>l&&o(t,e[i+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[i+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 h=a+(l-a>>>1);o(t,e[i+h])>0?a=h+1:l=h}return l}function Yt(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){for(s=r+1;s>l&&o(t,e[i+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=n-r;s>l&&o(t,e[i+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 h=a+(l-a>>>1);o(t,e[i+h])<0?l=h:a=h+1}return l}function Xt(t,e){function i(t,e){l[c]=t,u[c]=e,c+=1}function n(){for(;c>1;){var t=c-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(;c>1;){var t=c-2;t>0&&u[t-1]<u[t+1]&&t--,o(t)}}function o(i){var n=l[i],r=u[i],o=l[i+1],h=u[i+1];u[i]=r+h,i===c-3&&(l[i+1]=l[i+2],u[i+1]=u[i+2]),c--;var p=Yt(t[o],t,n,r,0,e);n+=p,0!==(r-=p)&&0!==(h=Vt(t[n+r-1],t,o,h,h-1,e))&&(h>=r?a(n,r,o,h):s(n,r,o,h))}function a(i,n,r,o){var a=0;for(a=0;n>a;a++)p[a]=t[i+a];var s=0,l=r,u=i;if(t[u++]=t[l++],0!=--o){if(1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var c,f,d,g=h;;){c=0,f=0,d=!1;do{if(e(t[l],p[s])<0){if(t[u++]=t[l++],f++,c=0,0==--o){d=!0;break}}else if(t[u++]=p[s++],c++,f=0,1==--n){d=!0;break}}while(g>(c|f));if(d)break;do{if(0!==(c=Yt(t[l],p,s,n,0,e))){for(a=0;c>a;a++)t[u+a]=p[s+a];if(u+=c,s+=c,1>=(n-=c)){d=!0;break}}if(t[u++]=t[l++],0==--o){d=!0;break}if(0!==(f=Vt(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==--n){d=!0;break}g--}while(c>=nv||f>=nv);if(d)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===n){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===n)throw new Error;for(a=0;n>a;a++)t[u+a]=p[s+a]}}else for(a=0;n>a;a++)t[u+a]=p[s+a]}function s(i,n,r,o){var a=0;for(a=0;o>a;a++)p[a]=t[r+a];var s=i+n-1,l=o-1,u=r+o-1,c=0,f=0;if(t[u--]=t[s--],0!=--n){if(1===o){for(u-=n,s-=n,f=u+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];return void(t[u]=p[l])}for(var d=h;;){var g=0,y=0,v=!1;do{if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,y=0,0==--n){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=n-Yt(p[l],t,i,n,n-1,e))){for(u-=g,s-=g,n-=g,f=u+1,c=s+1,a=g-1;a>=0;a--)t[f+a]=t[c+a];if(0===n){v=!0;break}}if(t[u--]=p[l--],1==--o){v=!0;break}if(0!==(y=o-Vt(t[s],p,0,o,o-1,e))){for(u-=y,l-=y,o-=y,f=u+1,c=l+1,a=0;y>a;a++)t[f+a]=p[c+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0==--n){v=!0;break}d--}while(g>=nv||y>=nv);if(v)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=n,s-=n,f=u+1,c=s+1,a=n-1;a>=0;a--)t[f+a]=t[c+a];t[u]=p[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}var l,u,h=nv,c=0,p=[];return l=[],u=[],{mergeRuns:n,forceMergeRuns:r,pushRun:i}}function Wt(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(2>r)){var o=0;if(iv>r)return o=Bt(t,i,n,e),void Ht(t,i,n,i+o,e);var a=Xt(t,e),s=zt(r);do{if(o=Bt(t,i,n,e),s>o){var l=r;l>s&&(l=s),Ht(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}function Gt(){av||(av=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ut(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function jt(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 Kt(t){var e=t;return jt(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function Qt(t){var e=t;return Zt(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Jt(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function $t(t,e,i){return t+(e-t)*i}function te(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,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 ie(t,e){yv&&ee(yv,e),yv=gv.put(t,yv||e.slice())}function ne(t,e){if(t){e=e||[];var i=gv.get(t);if(i)return ee(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in dv)return ee(e,dv[n]),ie(t,e),e;var r=n.length;if("#"!==n.charAt(0)){var o=n.indexOf("("),a=n.indexOf(")");if(-1!==o&&a+1===r){var s=n.substr(0,o),l=n.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=Qt(l.pop());case"rgb":return 3!==l.length?void te(e,0,0,0,1):(te(e,Kt(l[0]),Kt(l[1]),Kt(l[2]),u),ie(t,e),e);case"hsla":return 4!==l.length?void te(e,0,0,0,1):(l[3]=Qt(l[3]),re(l,e),ie(t,e),e);case"hsl":return 3!==l.length?void te(e,0,0,0,1):(re(l,e),ie(t,e),e);default:return}}te(e,0,0,0,1)}else{if(4===r||5===r){var h=parseInt(n.slice(1,4),16);return h>=0&&4095>=h?(te(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseInt(n.slice(4),16)/15:1),ie(t,e),e):void te(e,0,0,0,1)}if(7===r||9===r){var h=parseInt(n.slice(1,7),16);return h>=0&&16777215>=h?(te(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseInt(n.slice(7),16)/255:1),ie(t,e),e):void te(e,0,0,0,1)}}}}function re(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=Qt(t[1]),r=Qt(t[2]),o=.5>=r?r*(n+1):r+n-r*n,a=2*r-o;return e=e||[],te(e,jt(255*Jt(a,o,i+1/3)),jt(255*Jt(a,o,i)),jt(255*Jt(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function oe(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+a):l/(2-s-a);var h=((s-n)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;n===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var f=[360*e,i,u];return null!=t[3]&&f.push(t[3]),f}}function ae(t,e){var i=ne(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:i[n]<0&&(i[n]=0);return pe(i,4===i.length?"rgba":"rgb")}}function se(t){var e=ne(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function le(t,e,i){if(e&&e.length&&t>=0&&1>=t){i=i||[];var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=e[r],s=e[o],l=n-r;return i[0]=jt($t(a[0],s[0],l)),i[1]=jt($t(a[1],s[1],l)),i[2]=jt($t(a[2],s[2],l)),i[3]=Zt($t(a[3],s[3],l)),i}}function ue(t,e,i){if(e&&e.length&&t>=0&&1>=t){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=ne(e[r]),s=ne(e[o]),l=n-r,u=pe([jt($t(a[0],s[0],l)),jt($t(a[1],s[1],l)),jt($t(a[2],s[2],l)),Zt($t(a[3],s[3],l))],"rgba");return i?{color:u,leftIndex:r,rightIndex:o,value:n}:u}}function he(t,e,i,n){var r=ne(t);return t?(r=oe(r),null!=e&&(r[0]=qt(e)),null!=i&&(r[1]=Qt(i)),null!=n&&(r[2]=Qt(n)),pe(re(r),"rgba")):void 0}function ce(t,e){var i=ne(t);return i&&null!=e?(i[3]=Zt(e),pe(i,"rgba")):void 0}function pe(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}function fe(t,e){var i=ne(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[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,i){return(e-t)*i+t}function ye(t,e,i){return i>.5?e:t}function ve(t,e,i,n){for(var r=e.length,o=0;r>o;o++)t[o]=ge(e[o],i[o],n)}function me(t,e,i,n){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],i[a][s],n)}}function _e(t,e,i,n){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+i[o]*n;return t}function xe(t,e,i,n){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]+i[a][s]*n}return t}function be(t,e,i){var n=t,r=e;if(n.push&&r.push){var o=n.length,a=r.length;if(o!==a){if(o>a)n.length=a;else for(var s=o;a>s;s++)n.push(1===i?r[s]:xv.call(r[s]))}for(var l=n[0]&&n[0].length,s=0;s<n.length;s++)if(1===i)isNaN(n[s])&&(n[s]=r[s]);else for(var u=0;l>u;u++)isNaN(n[s][u])&&(n[s][u]=r[s][u])}}function we(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;i>n;n++)if(t[n]!==e[n])return!1;return!0}function Se(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function Te(t,e,i,n,r,o,a,s){for(var l=e.length,u=0;l>u;u++)t[u]=Se(e[u],i[u],n[u],r[u],o,a,s)}function Me(t,e,i,n,r,o,a,s){for(var l=e.length,u=e[0].length,h=0;l>h;h++){t[h]||(t[1]=[]);for(var c=0;u>c;c++)t[h][c]=Se(e[h][c],i[h][c],n[h][c],r[h][c],o,a,s)}}function Ce(t){if(d(t)){var e=t.length;if(d(t[0])){for(var i=[],n=0;e>n;n++)i.push(xv.call(t[n]));return i}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 Ae(t){return d(t&&t[0])?2:1}function ke(t){var e=t.pointerType;return"pen"===e||"touch"===e}function De(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 Pe(t){t&&(t.zrByTouch=!0)}function Oe(t,e){return It(t.dom,new kv(t,e),!0)}function Le(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}function Ee(t,e){var i=e.domHandlers;gy.pointerEventsSupported?g(Cv.pointer,function(n){Ne(e,n,function(e){i[n].call(t,e)})}):(gy.touchEventsSupported&&g(Cv.touch,function(n){Ne(e,n,function(r){i[n].call(t,r),De(e)})}),g(Cv.mouse,function(n){Ne(e,n,function(r){r=Ct(r),e.touching||i[n].call(t,r)})}))}function Re(t,e){function i(i){function n(n){n=Ct(n),Le(t,n.target)||(n=Oe(t,n),e.domHandlers[i].call(t,n))}Ne(e,i,n,{capture:!0})}gy.pointerEventsSupported?g(Iv.pointer,i):gy.touchEventsSupported||g(Iv.mouse,i)}function Ne(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,kt(t.domTarget,e,i,n)}function ze(t){var e=t.mounted;for(var i in e)e.hasOwnProperty(i)&&Dt(t.domTarget,i,e[i],t.listenerOpts[i]);t.mounted={}}function Be(){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 He(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 Ve(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ye(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Xe(t,e,i){var n=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(i),h=Math.cos(i);return t[0]=n*h+a*u,t[1]=-n*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function We(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function Ge(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}function Ue(t){var e=Be();return He(e,t),e}function je(t){return t>Xv||-Xv>t}function qe(t,e){return Rv||(Rv=Ay().getContext("2d")),Nv!==e&&(Nv=Rv.font=e||sm),Rv.measureText(t)}function Ze(t,e){e=e||sm;var i=am[e];i||(i=am[e]=new fv(500));var n=i.get(t);return null==n&&(n=lm.measureText(t,e).width,i.put(t,n)),n}function Ke(t,e,i,n){var r=Ze(t,e),o=ti(e),a=Je(0,r,i),s=$e(0,o,n);return new om(a,s,r,o)}function Qe(t,e,i,n){var r=((t||"")+"").split("\n");if(1===r.length)return Ke(r[0],e,i,n);for(var o=new om(0,0,0,0),a=0;a<r.length;a++){var s=Ke(r[a],e,i,n);0===a?o.copy(s):o.union(s)}return o}function Je(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function $e(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function ti(t){return Ze("国",t)}function ei(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ii(t,e,i){var n=e.position||"inside",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/2,l=i.x,u=i.y,h="left",c="top";if(n instanceof Array)l+=ei(n[0],i.width),u+=ei(n[1],i.height),h=null,c=null;else switch(n){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function ni(t,e,i,n,r){i=i||{};var o=[];si(t,"",t,e,i,n,o,r);var a=o.length,s=!1,l=i.done,u=i.aborted,h=function(){s=!0,0>=--a&&(s?l&&l():u&&u())},c=function(){0>=--a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&i.during&&o[0].during(function(t,e){i.during(e)});for(var p=0;p<o.length;p++){var f=o[p];h&&f.done(h),c&&f.aborted(c),f.start(i.easing,i.force)}return o}function ri(t,e,i){for(var n=0;i>n;n++)t[n]=e[n]}function oi(t){return d(t[0])}function ai(t,e,i){if(d(e[i]))if(d(t[i])||(t[i]=[]),D(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),ri(t[i],e[i],n))}else{var r=e[i],o=t[i],a=r.length;if(oi(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?ri(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else ri(o,r,a);o.length=r.length}else t[i]=e[i]}function si(t,e,i,n,r,o,a,s){for(var l=[],u=[],h=x(n),p=r.duration,f=r.delay,g=r.additive,y=r.setToFinal,v=!A(o),m=0;m<h.length;m++){var _=h[m];if(null!=i[_]&&null!=n[_]&&(v||o[_]))if(A(n[_])&&!d(n[_])){if(e){s||(i[_]=n[_],t.updateDuringAnimation(e));continue}si(t,_,i[_],n[_],r,o&&o[_],a,s)}else l.push(_),u.push(_);else s||(i[_]=n[_],t.updateDuringAnimation(e),u.push(_))}var b=l.length;if(b>0||r.force&&!a.length){for(var w=t.animators,S=[],T=0;T<w.length;T++)w[T].targetName===e&&S.push(w[T]);if(!g&&S.length)for(var T=0;T<S.length;T++){var M=S[T].stopTracks(u);if(M){var C=c(w,S[T]);w.splice(C,1)}}var I=void 0,k=void 0,D=void 0;if(s){k={},y&&(I={});for(var T=0;b>T;T++){var _=l[T];k[_]=i[_],y?I[_]=n[_]:i[_]=n[_]}}else if(y){D={};for(var T=0;b>T;T++){var _=l[T];D[_]=Ce(i[_]),ai(i,n,_)}}var P=new Sv(i,!1,g?S:null);P.targetName=e,r.scope&&(P.scope=r.scope),y&&I&&P.whenWithKeys(0,I,l),D&&P.whenWithKeys(0,D,l),P.whenWithKeys(null==p?500:p,s?k:n,l).delay(f||0),t.addAnimator(P,e),a.push(P)}}function li(t){delete mm[t]}function ui(t){if(!t)return!1;if("string"==typeof t)return fe(t,1)<Bv;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;n>r;r++)i+=fe(e[r].color,1);return i/=n,Bv>i}return!1}function hi(t,e){var i=new _m(r(),t,e);return mm[i.id]=i,i}function ci(t){t.dispose()}function pi(){for(var t in mm)mm.hasOwnProperty(t)&&mm[t].dispose();mm={}}function fi(t){return mm[t]}function di(t,e){vm[t]=e}function gi(t){return t.replace(/^\s+|\s+$/g,"")}function yi(t,e,i,n){var r=e[0],o=e[1],a=i[0],s=i[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(n)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 vi(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?gi(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function mi(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),wm),t=(+t).toFixed(e),i?t:+t}function _i(t){return t.sort(function(t,e){return t-e}),t}function xi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,i=0;15>i;i++,e*=10)if(Math.round(t*e)/e===t)return i;return bi(t)}function bi(t){var e=t.toString().toLowerCase(),i=e.indexOf("e"),n=i>0?+e.slice(i+1):0,r=i>0?i:e.length,o=e.indexOf("."),a=0>o?0:r-1-o;return Math.max(0,a-n)}function wi(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Si(t,e,i){if(!t[e])return 0;var n=v(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return 0;for(var r=Math.pow(10,i),o=y(t,function(t){return(isNaN(t)?0:t)/n*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 h=Number.NEGATIVE_INFINITY,c=null,p=0,f=u.length;f>p;++p)u[p]>h&&(h=u[p],c=p);++s[c],u[c]=0,++l}return s[e]/r}function Ti(t,e){var i=Math.max(xi(t),xi(e)),n=t+e;return i>wm?n:mi(n,i)}function Mi(t){var e=2*Math.PI;return(t%e+e)%e}function Ci(t){return t>-bm&&bm>t}function Ii(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 i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,e[7]?+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 Ai(t){return Math.pow(10,ki(t))}function ki(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 Di(t,e){var i,n=ki(t),r=Math.pow(10,n),o=t/r;return i=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=i*r,n>=-20?+t.toFixed(0>n?-n:0):t}function Pi(t,e){var i=(t.length-1)*e+1,n=Math.floor(i),r=+t[n-1],o=i-n;return o?r+o*(t[n]-r):r}function Oi(t){function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]==(n?-1:1)||!n&&e(t,i,1))}t.sort(function(t,i){return e(t,i,0)?-1:1});for(var i=-1/0,n=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>s;s++)o[s]<=i&&(o[s]=i,a[s]=s?1:1-n),i=o[s],n=a[s];o[0]===o[1]&&a[0]*a[1]!=1?t.splice(r,1):r++}return t}function Li(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!=typeof t||t.indexOf("x")<=0)?e:NaN}function Ei(t){return!isNaN(Li(t))}function Ri(){return Math.round(9*Math.random())}function Ni(t,e){return 0===e?t:Ni(e,t%e)}function zi(t,e){return null==t?e:null==e?t:t*e/Ni(t,e)}function Bi(t){throw new Error(t)}function Fi(t){return t instanceof Array?t:null==t?[]:[t]}function Hi(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;r>n;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Vi(t){return!A(t)||S(t)||t instanceof Date?t:t.value}function Yi(t){return A(t)&&!(t instanceof Array)}function Xi(t,e,i){var n="normalMerge"===i,r="replaceMerge"===i,o="replaceAll"===i;t=t||[],e=(e||[]).slice();var a=G();g(e,function(t,i){return A(t)?void 0:void(e[i]=null)});var s=Wi(t,a,i);return(n||r)&&Gi(s,t,a,e),n&&Ui(s,e),n||r?ji(s,e,r):o&&qi(s,e),Zi(s),s}function Wi(t,e,i){var n=[];if("replaceAll"===i)return n;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||tn(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function Gi(t,e,i,n){g(n,function(r,o){if(r&&null!=r.id){var a=Qi(r.id),s=i.get(a);if(null!=s){var l=t[s];V(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],n[o]=null}}})}function Ui(t,e){g(e,function(i,n){if(i&&null!=i.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==i.id)&&!tn(i)&&!tn(o)&&Ki("name",o,i))return t[r].newOption=i,void(e[n]=null)}})}function ji(t,e,i){g(e,function(e){if(e){for(var n,r=0;(n=t[r])&&(n.newOption||tn(n.existing)||n.existing&&null!=e.id&&!Ki("id",e,n.existing));)r++;n?(n.newOption=e,n.brandNew=i):t.push({newOption:e,brandNew:i,existing:null,keyInfo:null}),r++}})}function qi(t,e){g(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function Zi(t){var e=G();g(t,function(t){var i=t.existing;i&&e.set(i.id,t)}),g(t,function(t){var i=t.newOption;V(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),g(t,function(t,i){var n=t.existing,r=t.newOption,o=t.keyInfo;if(A(r)){if(o.name=null!=r.name?Qi(r.name):n?n.name:Tm+i,n)o.id=Qi(n.id);else if(null!=r.id)o.id=Qi(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 Ki(t,e,i){var n=Ji(e[t],null),r=Ji(i[t],null);return null!=n&&null!=r&&n===r}function Qi(t){return Ji(t,"")}function Ji(t,e){if(null==t)return e;var i=typeof t;return"string"===i?t:"number"===i||C(t)?t+"":e}function $i(t){var e=t.name;return!(!e||!e.indexOf(Tm))}function tn(t){return t&&null!=t.id&&0===Qi(t.id).indexOf(Mm)}function en(t,e,i){g(t,function(t){var n=t.newOption;A(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=nn(e,n,t.existing,i))})}function nn(t,e,i,n){return e.type?e.type:i?i.subType:n.determineSubType(t,e)}function rn(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 on(){var t="__ec_inner_"+Im++;return function(e){return e[t]||(e[t]={})}}function an(t,e,i){var n=sn(e,i),r=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=a,l=i?i.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,n){var r=ln(t,n,e,{useDefault:l===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});s[n+"Models"]=r.models,s[n+"Model"]=r.models[0]}),s}function sn(t,e){var i;if(M(t)){var n={};n[t+"Index"]=0,i=n}else i=t;var r=G(),o={},a=!1;return g(i,function(t,i){if("dataIndex"===i||"dataIndexInside"===i)return void(o[i]=t);var n=i.match(/^(\w+)(Index|Id|Name)$/)||[],s=n[1],l=(n[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&c(e.includeMainTypes,s)<0)){a=a||!!s;(r.get(s)||r.set(s,{}))[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function ln(t,e,i,n){n=n||Am;var r=i.index,o=i.id,a=i.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(V(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(V(n.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 un(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function hn(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function cn(t){return"auto"===t?gy.domSupported?"html":"richText":t||"html"}function pn(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if("number"==typeof n){var a=ge(i||0,n,r);return mi(a,o?Math.max(xi(i||0),xi(n)):e)}if("string"==typeof n)return 1>r?i:n;for(var s=[],l=i,u=n,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var p=t.getDimensionInfo(c);if(p&&"ordinal"===p.type)s[c]=(1>r&&l?l:u)[c];else{var f=l&&l[c]?l[c]:0,d=u[c],a=ge(f,d,r);s[c]=mi(a,o?Math.max(xi(f),xi(d)):e)}}return s}function fn(t){var e={main:"",sub:""};if(t){var i=t.split(km);e.main=i[0]||"",e.sub=i[1]||""}return e}function dn(t){V(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function gn(t){return!(!t||!t[Pm])}function yn(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(vn(n)){return j(e.prototype,new(n.bind.apply(n,i([void 0],r))))}n.apply(this,arguments)}}var n=this;return e[Pm]=!0,u(e.prototype,t),e.extend=this.extend,e.superCall=_n,e.superApply=xn,p(e,this),e.superClass=n,e}}function vn(t){return"function"==typeof t&&/^class\s/.test(Function.prototype.toString.call(t))}function mn(t,e){t.extend=e.extend}function _n(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function xn(t,e,i){return this.superClass.prototype[e].apply(t,i)}function bn(t){function e(t){var e=i[t.main];return e&&e[Dm]||(e=i[t.main]={},e[Dm]=!0),e}var i={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){dn(n),t.prototype.type=n;var r=fn(n);if(r.sub){if(r.sub!==Dm){var o=e(r);o[r.sub]=t}}else i[r.main]=t}return t},t.getClass=function(t,e,n){var r=i[t];if(r&&r[Dm]&&(r=e?r[e]:null),n&&!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=fn(t),n=[],r=i[e.main];return r&&r[Dm]?g(r,function(t,e){e!==Dm&&n.push(t)}):n.push(r),n},t.hasClass=function(t){var e=fn(t);return!!i[e.main]},t.getAllClassMainTypes=function(){var t=[];return g(i,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){var e=fn(t),n=i[e.main];return n&&n[Dm]}}function wn(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(n&&c(n,s)>=0||r&&c(r,s)<0)){var l=i.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function Sn(t){if("string"==typeof t){var e=Nm.get(t);return e&&e.image}return t}function Tn(t,e,i,n,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=Nm.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?(e=o.image,!Cn(e)&&o.pending.push(a)):(e=new Image,e.onload=e.onerror=Mn,Nm.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function Mn(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function Cn(t){return t&&t.width&&t.height}function In(t,e,i,n,r){if(!e)return"";var o=(t+"").split("\n");r=An(e,i,n,r);for(var a=0,s=o.length;s>a;a++)o[a]=kn(o[a],r);return o.join("\n")}function An(t,e,i,n){n=n||{};var r=u({},n);r.font=e,i=z(i,"..."),r.maxIterations=z(n.maxIterations,2);var o=r.minChar=z(n.minChar,0);r.cnCharWidth=Ze("国",e);var a=r.ascCharWidth=Ze("a",e);r.placeholder=z(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var h=Ze(i,e);return h>s&&(i="",h=0),s=t-h,r.ellipsis=i,r.ellipsisWidth=h,r.contentWidth=s,r.containerWidth=t,r}function kn(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=Ze(t,n);if(i>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Dn(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Ze(t,n)}return""===t&&(t=e.placeholder),t}function Dn(t,e,i,n){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?i:n}return o}function Pn(t,e){null!=t&&(t+="");var i,n=e.overflow,r=e.padding,o=e.font,a="truncate"===n,s=ti(o),l=z(e.lineHeight,s),u="truncate"===e.lineOverflow,h=e.width;i=null!=h&&"break"===n||"breakAll"===n?t?Nn(t,e.font,h,"breakAll"===n,0).lines:[]:t?t.split("\n"):[];var c=i.length*l,p=z(e.height,c);if(c>p&&u){var f=Math.floor(p/l);i=i.slice(0,f)}var d=p,g=h;if(r&&(d+=r[0]+r[2],null!=g&&(g+=r[1]+r[3])),t&&a&&null!=g)for(var y=An(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<i.length;v++)i[v]=kn(i[v],y);if(null==h){for(var m=0,v=0;v<i.length;v++)m=Math.max(Ze(i[v],o),m);h=m}return{lines:i,height:p,outerHeight:d,lineHeight:l,calculatedLineHeight:s,contentHeight:c,width:h}}function On(t,e){function i(t,e,i){t.width=e,t.lineHeight=i,p+=i,f=Math.max(f,e)}var n=new Hm;if(null!=t&&(t+=""),!t)return n;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=zm.lastIndex=0;null!=(r=zm.exec(t));){var h=r.index;h>u&&Ln(n,t.substring(u,h),e,l),Ln(n,r[2],e,l,r[1]),u=zm.lastIndex}u<t.length&&Ln(n,t.substring(u,t.length),e,l);var c=[],p=0,f=0,d=e.padding,g="truncate"===s,y="truncate"===e.lineOverflow;t:for(var v=0;v<n.lines.length;v++){for(var m=n.lines[v],_=0,x=0,b=0;b<m.tokens.length;b++){var w=m.tokens[b],S=w.styleName&&e.rich[w.styleName]||{},T=w.textPadding=S.padding,M=T?T[1]+T[3]:0,C=w.font=S.font||e.font;w.contentHeight=ti(C);var I=z(S.height,w.contentHeight);if(w.innerHeight=I,T&&(I+=T[0]+T[2]),w.height=I,w.lineHeight=B(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),i(m,x,_),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var A=S.width,k=null==A||"auto"===A;if("string"==typeof A&&"%"===A.charAt(A.length-1))w.percentWidth=A,c.push(w),w.contentWidth=Ze(w.text,C);else{if(k){var D=S.backgroundColor,P=D&&D.image;P&&(P=Sn(P),Cn(P)&&(w.width=Math.max(w.width,P.width*I/P.height)))}var O=g&&null!=o?o-x:null;null!=O&&O<w.width?!k||M>O?(w.text="",w.width=w.contentWidth=0):(w.text=In(w.text,O-M,C,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=Ze(w.text,C)):w.contentWidth=Ze(w.text,C)}w.width+=M,x+=w.width,S&&(_=Math.max(_,w.lineHeight))}i(m,x,_)}n.outerWidth=n.width=z(o,f),n.outerHeight=n.height=z(a,p),n.contentHeight=p,n.contentWidth=f,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]);for(var v=0;v<c.length;v++){var w=c[v],L=w.percentWidth;w.width=parseInt(L,10)/100*n.width}return n}function Ln(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},u=t.lines,h=l.font||i.font,c=!1;if(n){var p=l.padding,f=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var d=ei(l.width,n.width)+f;u.length>0&&d+n.accumWidth>n.width&&(o=e.split("\n"),c=!0),n.accumWidth=d}else{var g=Nn(e,h,n.width,n.breakAll,n.accumWidth);n.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 Bm;if(m.styleName=r,m.text=v,m.isLineHolder=!v&&!s,m.width="number"==typeof l.width?l.width:a?a[y]:Ze(v,h),y||c)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 En(t){var e=t.charCodeAt(0);return e>=33&&255>=e}function Rn(t){return!En(t)||!!Vm[t]}function Nn(t,e,i,n,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<t.length;c++){var p=t.charAt(c);if("\n"!==p){var f=Ze(p,e),d=!n&&!Rn(p);(o.length?h+f>i:r+h+f>i)?h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),o.push(s),a.push(h-u),l+=p,u+=f,s="",h=u):(l&&(s+=l,h+=u,l="",u=0),o.push(s),a.push(h),s=p,h=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(h+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function zn(t,e,i){return qm.copy(t.getBoundingRect()),t.transform&&qm.applyTransform(t.transform),Zm.width=e,Zm.height=i,!qm.intersect(Zm)}function Bn(t){return t>-Jm&&Jm>t}function Fn(t){return t>Jm||-Jm>t}function Hn(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function Vn(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function Yn(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,f=0;if(Bn(h)&&Bn(c))if(Bn(s))o[0]=0;else{var d=-l/s;d>=0&&1>=d&&(o[f++]=d)}else{var g=c*c-4*h*p;if(Bn(g)){var y=c/h,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=Qm(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-Km(-_,e_):Km(_,e_),x=0>x?-Km(-x,e_):Km(x,e_);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[f++]=d)}else{var b=(2*h*s-3*a*c)/(2*Qm(h*h*h)),w=Math.acos(b)/3,S=Qm(h),T=Math.cos(w),d=(-s-2*S*T)/(3*a),v=(-s+S*(T+t_*Math.sin(w)))/(3*a),M=(-s+S*(T-t_*Math.sin(w)))/(3*a);d>=0&&1>=d&&(o[f++]=d),v>=0&&1>=v&&(o[f++]=v),M>=0&&1>=M&&(o[f++]=M)}}return f}function Xn(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Bn(a)){if(Fn(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(Bn(h))r[0]=-o/(2*a);else if(h>0){var c=Qm(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function Wn(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=n}function Gn(t,e,i,n,r,o,a,s,l,u,h){var c,p,f,d,g,y=.005,v=1/0;i_[0]=l,i_[1]=u;for(var m=0;1>m;m+=.05)n_[0]=Hn(t,i,r,a,m),n_[1]=Hn(e,n,o,s,m),d=Ny(i_,n_),v>d&&(c=m,v=d);v=1/0;for(var _=0;32>_&&!($m>y);_++)p=c-y,f=c+y,n_[0]=Hn(t,i,r,a,p),n_[1]=Hn(e,n,o,s,p),d=Ny(n_,i_),p>=0&&v>d?(c=p,v=d):(r_[0]=Hn(t,i,r,a,f),r_[1]=Hn(e,n,o,s,f),g=Ny(r_,i_),1>=f&&v>g?(c=f,v=g):y*=.5);return h&&(h[0]=Hn(t,i,r,a,c),h[1]=Hn(e,n,o,s,c)),Qm(v)}function Un(t,e,i,n,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,f=1;l>=f;f++){var d=f*p,g=Hn(t,i,r,a,d),y=Hn(e,n,o,s,d),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function jn(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function qn(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function Zn(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(Bn(o)){if(Fn(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(Bn(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=Qm(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function Kn(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function Qn(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function Jn(t,e,i,n,r,o,a,s,l){var u,h=.005,c=1/0;i_[0]=a,i_[1]=s;for(var p=0;1>p;p+=.05){n_[0]=jn(t,i,r,p),n_[1]=jn(e,n,o,p);var f=Ny(i_,n_);c>f&&(u=p,c=f)}c=1/0;for(var d=0;32>d&&!($m>h);d++){var g=u-h,y=u+h;n_[0]=jn(t,i,r,g),n_[1]=jn(e,n,o,g);var f=Ny(n_,i_);if(g>=0&&c>f)u=g,c=f;else{r_[0]=jn(t,i,r,y),r_[1]=jn(e,n,o,y);var v=Ny(r_,i_);1>=y&&c>v?(u=y,c=v):h*=.5}}return l&&(l[0]=jn(t,i,r,u),l[1]=jn(e,n,o,u)),Qm(c)}function $n(t,e,i,n,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var p=c*h,f=jn(t,i,r,p),d=jn(e,n,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,i){if(0!==t.length){for(var n=t[0],r=n[0],o=n[0],a=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],r=o_(r,n[0]),o=a_(o,n[0]),a=o_(a,n[1]),s=a_(s,n[1]);e[0]=r,e[1]=a,i[0]=o,i[1]=s}}function er(t,e,i,n,r,o){r[0]=o_(t,i),r[1]=o_(e,n),o[0]=a_(t,i),o[1]=a_(e,n)}function ir(t,e,i,n,r,o,a,s,l,u){var h=Xn,c=Hn,p=h(t,i,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=c(t,i,r,a,f_[f]);l[0]=o_(d,l[0]),u[0]=a_(d,u[0])}p=h(e,n,o,s,d_);for(var f=0;p>f;f++){var g=c(e,n,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 nr(t,e,i,n,r,o,a,s){var l=Kn,u=jn,h=a_(o_(l(t,i,r),1),0),c=a_(o_(l(e,n,o),1),0),p=u(t,i,r,h),f=u(e,n,o,c);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,i,n,r,o,a,s,l){var u=gt,h=yt,c=Math.abs(r-o);if(1e-4>c%u_&&c>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(h_[0]=l_(r)*i+t,h_[1]=s_(r)*n+e,c_[0]=l_(o)*i+t,c_[1]=s_(o)*n+e,u(s,h_,c_),h(l,h_,c_),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)*i+t,p_[1]=s_(f)*n+e,u(s,p_,s),h(l,p_,l))}function or(t){return Math.round(t/A_*1e8)/1e8%2*A_}function ar(t,e){var i=or(t[0]);0>i&&(i+=k_);var n=i-t[0],r=t[1];r+=n,!e&&r-i>=k_?r=i+k_:e&&i-r>=k_?r=i-k_:!e&&i>r?r=i+(k_-or(i-r)):e&&r>i&&(r=i-(k_-or(r-i))),t[0]=i,t[1]=r}function sr(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>n+s||e-s>a&&n-s>a||o>t+s&&o>i+s||t-s>o&&i-s>o)return!1;if(t===i)return Math.abs(o-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var h=l*o-a+u;return s/2*s/2>=h*h/(l*l+1)}function lr(t,e,i,n,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;return!(h>e+c&&h>n+c&&h>o+c&&h>s+c||e-c>h&&n-c>h&&o-c>h&&s-c>h||u>t+c&&u>i+c&&u>r+c&&u>a+c||t-c>u&&i-c>u&&r-c>u&&a-c>u)&&c/2>=Gn(t,e,i,n,r,o,a,s,u,h,null)}function ur(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;return!(l>e+u&&l>n+u&&l>o+u||e-u>l&&n-u>l&&o-u>l||s>t+u&&s>i+u&&s>r+u||t-u>s&&i-u>s&&r-u>s)&&u/2>=Jn(t,e,i,n,r,o,s,l,null)}function hr(t){return t%=L_,0>t&&(t+=L_),t}function cr(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>i||i>h+u)return!1;if(Math.abs(n-r)%E_<1e-4)return!0;if(o){var c=n;n=hr(r),r=hr(c)}else n=hr(n),r=hr(r);n>r&&(r+=E_);var p=Math.atan2(l,s);return 0>p&&(p+=E_),p>=n&&r>=p||p+E_>=n&&r>=p+E_}function pr(t,e,i,n,r,o){if(o>e&&o>n||e>o&&n>o)return 0;if(n===e)return 0;var a=(o-e)/(n-e),s=e>n?1:-1;(1===a||0===a)&&(s=e>n?.5:-.5);var l=a*(i-t)+t;return l===r?1/0:l>r?s:0}function fr(t,e){return Math.abs(t-e)<z_}function dr(){var t=F_[0];F_[0]=F_[1],F_[1]=t}function gr(t,e,i,n,r,o,a,s,l,u){if(u>e&&u>n&&u>o&&u>s||e>u&&n>u&&o>u&&s>u)return 0;var h=Yn(e,n,o,s,u,B_);if(0===h)return 0;for(var c=0,p=-1,f=void 0,d=void 0,g=0;h>g;g++){var y=B_[g],v=0===y||1===y?.5:1;l>Hn(t,i,r,a,y)||(0>p&&(p=Xn(e,n,o,s,F_),F_[1]<F_[0]&&p>1&&dr(),f=Hn(e,n,o,s,F_[0]),p>1&&(d=Hn(e,n,o,s,F_[1]))),c+=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 c}function yr(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||e>s&&n>s&&o>s)return 0;var l=Zn(e,n,o,s,B_);if(0===l)return 0;var u=Kn(e,n,o);if(u>=0&&1>=u){for(var h=0,c=jn(e,n,o,u),p=0;l>p;p++){var f=0===B_[p]||1===B_[p]?.5:1,d=jn(t,i,r,B_[p]);a>d||(h+=B_[p]<u?e>c?f:-f:c>o?f:-f)}return h}var f=0===B_[0]||1===B_[0]?.5:1,d=jn(t,i,r,B_[0]);return a>d?0:e>o?f:-f}function vr(t,e,i,n,r,o,a,s){if((s-=e)>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);B_[0]=-l,B_[1]=l;var u=Math.abs(n-r);if(1e-4>u)return 0;if(u>=N_-1e-4){n=0,r=N_;var h=o?1:-1;return a>=B_[0]+t&&a<=B_[1]+t?h:0}if(n>r){var c=n;n=r,r=c}0>n&&(n+=N_,r+=N_);for(var p=0,f=0;2>f;f++){var d=B_[f];if(d+t>a){var g=Math.atan2(s,d),h=o?1:-1;0>g&&(g=N_+g),(g>=n&&r>=g||g+N_>=n&&r>=g+N_)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function mr(t,e,i,n,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,f=0,d=0;l>d;){var g=s[d++],y=1===d;switch(g===R_.M&&d>1&&(i||(u+=pr(h,c,p,f,n,r))),y&&(h=s[d],c=s[d+1],p=h,f=c),g){case R_.M:p=s[d++],f=s[d++],h=p,c=f;break;case R_.L:if(i){if(sr(h,c,s[d],s[d+1],e,n,r))return!0}else u+=pr(h,c,s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case R_.C:if(i){if(lr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,n,r))return!0}else u+=gr(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case R_.Q:if(i){if(ur(h,c,s[d++],s[d++],s[d],s[d+1],e,n,r))return!0}else u+=yr(h,c,s[d++],s[d++],s[d],s[d+1],n,r)||0;h=s[d++],c=s[d++];break;case R_.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(h,c,o,a,n,r);var T=(n-v)*x/_+v;if(i){if(cr(v,m,x,b,b+w,S,e,T,r))return!0}else u+=vr(v,m,x,b,b+w,S,T,r);h=Math.cos(b+w)*_+v,c=Math.sin(b+w)*x+m;break;case R_.R:p=h=s[d++],f=c=s[d++];var M=s[d++],C=s[d++];if(o=p+M,a=f+C,i){if(sr(p,f,o,f,e,n,r)||sr(o,f,o,a,e,n,r)||sr(o,a,p,a,e,n,r)||sr(p,a,p,f,e,n,r))return!0}else u+=pr(o,f,o,a,n,r),u+=pr(p,a,p,f,n,r);break;case R_.Z:if(i){if(sr(h,c,p,f,e,n,r))return!0}else u+=pr(h,c,p,f,n,r);h=p,c=f}}return i||fr(c,f)||(u+=pr(h,c,p,f,n,r)||0),0!==u}function _r(t,e,i){return mr(t,0,!1,e,i)}function xr(t,e,i,n){return mr(t,e,!0,i,n)}function br(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function wr(t,e){var i,n,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof h?i=n=r=o=h:h instanceof Array?1===h.length?i=n=r=o=h[0]:2===h.length?(i=r=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[3]):i=n=r=o=0;var c;i+n>l&&(c=i+n,i*=l/c,n*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),n+r>u&&(c=n+r,n*=u/c,r*=u/c),i+o>u&&(c=i+o,i*=u/c,o*=u/c),t.moveTo(a+i,s),t.lineTo(a+l-n,s),0!==n&&t.arc(a+l-n,s+n,n,-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+i),0!==i&&t.arc(a+i,s+i,i,Math.PI,1.5*Math.PI)}function Sr(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;return s?(Z_(2*n)===Z_(2*r)&&(t.x1=t.x2=Mr(n,s,!0)),Z_(2*o)===Z_(2*a)&&(t.y1=t.y2=Mr(o,s,!0)),t):t}}function Tr(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;return s?(t.x=Mr(n,s,!0),t.y=Mr(r,s,!0),t.width=Math.max(Mr(n+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Mr(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Mr(t,e,i){if(!e)return t;var n=Z_(2*t);return(n+Z_(e))%2==0?n/2:(n+(i?1:-1))/2}function Cr(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||ix[e]?e:"left";var i=t.verticalAlign;"center"===i&&(i="middle"),t.verticalAlign=null==i||nx[i]?i:"top";t.padding&&(t.padding=H(t.padding))}}function Ar(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function kr(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Dr(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function Pr(t){var e=t.text;return null!=e&&(e+=""),e}function Or(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Lr(t){return null!=t&&"none"!==t}function Er(t){if("string"!=typeof t)return t;var e=bx.get(t);return e||(e=ae(t,-.1),bx.put(t,e)),e}function Rr(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function Nr(t){Rr(t,"emphasis",cx)}function zr(t){t.hoverState===cx&&Rr(t,"normal",ux)}function Br(t){Rr(t,"blur",hx)}function Fr(t){t.hoverState===hx&&Rr(t,"normal",ux)}function Hr(t){t.selected=!0}function Vr(t){t.selected=!1}function Yr(t,e,i){e(t,i)}function Xr(t,e,i){Yr(t,e,i),t.isGroup&&t.traverse(function(t){Yr(t,e,i)})}function Wr(t,e){switch(e){case"emphasis":t.hoverState=cx;break;case"normal":t.hoverState=ux;break;case"blur":t.hoverState=hx;break;case"select":t.selected=!0}}function Gr(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?n&&n[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(i)<0&&"style"===u.targetName&&u.saveFinalToTarget(o,e)}return o}function Ur(t,e,i,n){var r=i&&c(i,"select")>=0,o=!1;if(t instanceof X_){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)){n=n||{};var h=n.style||{};"inherit"===h.fill?(o=!0,n=u({},n),h=u({},h),h.fill=s):!Lr(h.fill)&&Lr(s)?(o=!0,n=u({},n),h=u({},h),h.fill=Er(s)):!Lr(h.stroke)&&Lr(l)&&(o||(n=u({},n),h=u({},h)),h.stroke=Er(l)),n.style=h}}if(n&&null==n.z2){o||(n=u({},n));var p=t.z2EmphasisLift;n.z2=t.z2+(null!=p?p:dx)}return n}function jr(t,e,i){if(i&&null==i.z2){i=u({},i);var n=t.z2SelectLift;i.z2=t.z2+(null!=n?n:gx)}return i}function qr(t,e,i){var n=c(t.currentStates,e)>=0,r=t.style.opacity,o=n?null:Gr(t,["opacity"],e,{opacity:1});i=i||{};var a=i.style||{};return null==a.opacity&&(i=u({},i),a=u({opacity:n?r:.1*o.opacity},a),i.style=a),i}function Zr(t,e){var i=this.states[t];if(this.style){if("emphasis"===t)return Ur(this,t,e,i);if("blur"===t)return qr(this,t,i);if("select"===t)return jr(this,t,i)}return i}function Kr(t){t.stateProxy=Zr;var e=t.getTextContent(),i=t.getTextGuideLine();e&&(e.stateProxy=Zr),i&&(i.stateProxy=Zr)}function Qr(t,e){!oo(t,e)&&!t.__highByOuter&&Xr(t,Nr)}function Jr(t,e){!oo(t,e)&&!t.__highByOuter&&Xr(t,zr)}function $r(t,e){t.__highByOuter|=1<<(e||0),Xr(t,Nr)}function to(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Xr(t,zr)}function eo(t){Xr(t,Br)}function io(t){Xr(t,Fr)}function no(t){Xr(t,Hr)}function ro(t){Xr(t,Vr)}function oo(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ao(t){t.getModel().eachComponent(function(e,i){("series"===e?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i)).group.traverse(function(t){Fr(t)})})}function so(t,e,i,n){function r(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&io(n)}}var o=n.getModel();if(i=i||"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 h=u&&s?u===s:o;if(!("series"===i&&!o||"coordinateSystem"===i&&!h||"series"===e&&o)){if(n.getViewOfSeriesModel(t).group.traverse(function(t){Br(t)}),d(e))r(t.getData(),e);else if(A(e))for(var c=x(e),p=0;p<c.length;p++)r(t.getData(c[p]),e[c[p]]);l.push(t)}}),o.eachComponent(function(t,e){if("series"!==t){var i=n.getViewOfComponentModel(e);i&&i.blurSeries&&i.blurSeries(l,o)}})}}function lo(t,e,i){if(null!=t&&null!=e){var n=i.getModel().getComponent(t,e);if(n){var r=i.getViewOfComponentModel(n);r&&r.focusBlurEnabled&&r.group.traverse(function(t){Br(t)})}}}function uo(t,e,i){var n=t.seriesIndex,r=t.getData(e.dataType),o=rn(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(n,u.focus,u.blurScope,i)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&so(n,h,c,i)}}function ho(t,e,i,n){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return r;var o=n.getModel().getComponent(t,e);if(!o)return r;var a=n.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(i),u=0;u<l.length;u++)if("self"===rx(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function co(t,e,i){var n=rx(t),r=ho(n.componentMainType,n.componentIndex,n.componentHighDownName,i),o=r.dispatchers,a=r.focusSelf;o?(a&&lo(n.componentMainType,n.componentIndex,i),g(o,function(t){return Qr(t,e)})):(so(n.seriesIndex,n.focus,n.blurScope,i),"self"===n.focus&&lo(n.componentMainType,n.componentIndex,i),Qr(t,e))}function po(t,e,i){ao(i);var n=rx(t),r=ho(n.componentMainType,n.componentIndex,n.componentHighDownName,i).dispatchers;r?g(r,function(t){return Jr(t,e)}):Jr(t,e)}function fo(t,e){if(So(e)){var i=e.dataType,n=t.getData(i),r=rn(n,e);S(r)||(r=[r]),t[e.type===xx?"toggleSelect":e.type===mx?"select":"unselect"](r,i)}}function go(t){g(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){t.isSelected(i,n)?no(e):ro(e)})})}function yo(t){var e=[];return t.eachSeries(function(t){g(t.getAllData(),function(i){var n=(i.data,i.type),r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),e.push(o)}})}),e}function vo(t,e,i){xo(t,!0),Xr(t,Kr),mo(t,e,i)}function mo(t,e,i){var n=rx(t);null!=e?(n.focus=e,n.blurScope=i):n.focus&&(n.focus=null)}function _o(t,e,i,n){i=i||"itemStyle";for(var r=0;r<Sx.length;r++){var o=Sx[r],a=e.getModel([o,i]);t.ensureState(o).style=n?n(a):a[Tx[i]]()}}function xo(t,e){var i=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!i||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!i)}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 To(t){var e=t.type;return e===yx||e===vx}function Mo(t){var e=lx(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var i=t.states.select||{};e.selectFill=i.style&&i.style.fill||null,e.selectStroke=i.style&&i.style.stroke||null}function Co(t,e){if(e){var i,n,r,o,a,s,l=t.data,u=t.len(),h=Mx.M,c=Mx.C,p=Mx.L,f=Mx.R,d=Mx.A,g=Mx.Q;for(r=0,o=0;u>r;){switch(i=l[r++],o=r,n=0,i){case h:case p:n=1;break;case c:n=3;break;case g:n=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=Ax(-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;n>a;a++){var b=Cx[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 Ao(t,e){return(t[0]*e[0]+t[1]*e[1])/(Io(t)*Io(e))}function ko(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ao(t,e))}function Do(t,e,i,n,r,o,a,s,l,u,h){var c=l*(Ox/180),p=Px(c)*(t-i)/2+Dx(c)*(e-n)/2,f=-1*Dx(c)*(t-i)/2+Px(c)*(e-n)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=kx(d),s*=kx(d));var g=(r===o?-1:1)*kx((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+i)/2+Px(c)*y-Dx(c)*v,_=(e+n)/2+Dx(c)*y+Px(c)*v,x=ko([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=ko(b,w);if(Ao(b,w)<=-1&&(S=Ox),Ao(b,w)>=1&&(S=0),0>S){var T=Math.round(S/Ox*1e6)/1e6;S=2*Ox+T%2*Ox}h.addData(u,m,_,a,s,x,S,c,o)}function Po(t){var e=new O_;if(!t)return e;var i,n=0,r=0,o=n,a=r,s=O_.CMD,l=t.match(Lx);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,f=h.match(Ex)||[],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,T=n,M=r,C=void 0,I=void 0;switch(c){case"l":n+=f[y++],r+=f[y++],p=s.L,e.addData(p,n,r);break;case"L":n=f[y++],r=f[y++],p=s.L,e.addData(p,n,r);break;case"m":n+=f[y++],r+=f[y++],p=s.M,e.addData(p,n,r),o=n,a=r,c="l";break;case"M":n=f[y++],r=f[y++],p=s.M,e.addData(p,n,r),o=n,a=r,c="L";break;case"h":n+=f[y++],p=s.L,e.addData(p,n,r);break;case"H":n=f[y++],p=s.L,e.addData(p,n,r);break;case"v":r+=f[y++],p=s.L,e.addData(p,n,r);break;case"V":r=f[y++],p=s.L,e.addData(p,n,r);break;case"C":p=s.C,e.addData(p,f[y++],f[y++],f[y++],f[y++],f[y++],f[y++]),n=f[y-2],r=f[y-1];break;case"c":p=s.C,e.addData(p,f[y++]+n,f[y++]+r,f[y++]+n,f[y++]+r,f[y++]+n,f[y++]+r),n+=f[y-2],r+=f[y-1];break;case"S":v=n,m=r,C=e.len(),I=e.data,i===s.C&&(v+=n-I[C-4],m+=r-I[C-3]),p=s.C,T=f[y++],M=f[y++],n=f[y++],r=f[y++],e.addData(p,v,m,T,M,n,r);break;case"s":v=n,m=r,C=e.len(),I=e.data,i===s.C&&(v+=n-I[C-4],m+=r-I[C-3]),p=s.C,T=n+f[y++],M=r+f[y++],n+=f[y++],r+=f[y++],e.addData(p,v,m,T,M,n,r);break;case"Q":T=f[y++],M=f[y++],n=f[y++],r=f[y++],p=s.Q,e.addData(p,T,M,n,r);break;case"q":T=f[y++]+n,M=f[y++]+r,n+=f[y++],r+=f[y++],p=s.Q,e.addData(p,T,M,n,r);break;case"T":v=n,m=r,C=e.len(),I=e.data,i===s.Q&&(v+=n-I[C-4],m+=r-I[C-3]),n=f[y++],r=f[y++],p=s.Q,e.addData(p,v,m,n,r);break;case"t":v=n,m=r,C=e.len(),I=e.data,i===s.Q&&(v+=n-I[C-4],m+=r-I[C-3]),n+=f[y++],r+=f[y++],p=s.Q,e.addData(p,v,m,n,r);break;case"A":_=f[y++],x=f[y++],b=f[y++],w=f[y++],S=f[y++],T=n,M=r,n=f[y++],r=f[y++],p=s.A,Do(T,M,n,r,w,S,_,x,b,p,e);break;case"a":_=f[y++],x=f[y++],b=f[y++],w=f[y++],S=f[y++],T=n,M=r,n+=f[y++],r+=f[y++],p=s.A,Do(T,M,n,r,w,S,_,x,b,p,e)}}("z"===c||"Z"===c)&&(p=s.Z,e.addData(p),n=o,r=a),i=p}return e.toStatic(),e}function Oo(t){return null!=t.setData}function Lo(t,e){var i=Po(t),n=u({},e);return n.buildPath=function(t){if(Oo(t)){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;i.rebuildPath(e,1)}},n.applyTransform=function(t){Co(i,t),this.dirtyShape()},n}function Eo(t,e){return new Rx(Lo(t,e))}function Ro(t,i){var n=Lo(t,i);return function(t){function i(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return e(i,t),i}(Rx)}function No(t,e){for(var i=[],n=t.length,r=0;n>r;r++){var o=t[r];i.push(o.getUpdatedPathProxy(!0))}var a=new X_(e);return a.createPathProxy(),a.buildPath=function(t){if(Oo(t)){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function zo(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,h=a-r,c=s-o,p=c*l-h*u;return Kx>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function Bo(t,e,i,n,r,o,a){var s=t-i,l=e-n,u=(a?o:-o)/jx(s*s+l*l),h=u*l,c=-u*s,p=t+h,f=e+c,d=i+h,g=n+c,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)*jx(qx(0,b*b*x-w*w)),T=(w*_-m*S)/x,M=(-w*m-_*S)/x,C=(w*_+m*S)/x,I=(-w*m+_*S)/x,A=T-y,k=M-v,D=C-y,P=I-v;return A*A+k*k>D*D+P*P&&(T=C,M=I),{cx:T,cy:M,x01:-h,y01:-c,x11:T*(r/b-1),y11:M*(r/b-1)}}function Fo(t,e){var i=qx(e.r,0),n=qx(e.r0||0,0),r=i>0,o=n>0;if(r||o){if(r||(i=n,n=0),n>i){var a=i;i=n,n=a}var s,l=!!e.clockwise,u=e.startAngle,h=e.endAngle;if(u===h)s=0;else{var c=[u,h];ar(c,!l),s=Ux(c[0]-c[1])}var p=e.cx,f=e.cy,d=e.cornerRadius||0,g=e.innerCornerRadius||0;if(i>Kx)if(s>Vx-Kx)t.moveTo(p+i*Xx(u),f+i*Yx(u)),t.arc(p,f,i,u,h,!l),n>Kx&&(t.moveTo(p+n*Xx(h),f+n*Yx(h)),t.arc(p,f,n,h,u,l));else{var y=Ux(i-n)/2,v=Zx(y,d),m=Zx(y,g),_=m,x=v,b=i*Xx(u),w=i*Yx(u),S=n*Xx(h),T=n*Yx(h),M=void 0,C=void 0,I=void 0,A=void 0;if((v>Kx||m>Kx)&&(M=i*Xx(h),C=i*Yx(h),I=n*Xx(u),A=n*Yx(u),Hx>s)){var k=zo(b,w,I,A,M,C,S,T);if(k){var D=b-k[0],P=w-k[1],O=M-k[0],L=C-k[1],E=1/Yx(Wx((D*O+P*L)/(jx(D*D+P*P)*jx(O*O+L*L)))/2),R=jx(k[0]*k[0]+k[1]*k[1]);_=Zx(m,(n-R)/(E-1)),x=Zx(v,(i-R)/(E+1))}}if(s>Kx)if(x>Kx){var N=Bo(I,A,b,w,i,x,l),z=Bo(M,C,S,T,i,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,Gx(N.y01,N.x01),Gx(z.y01,z.x01),!l):(t.arc(p+N.cx,f+N.cy,x,Gx(N.y01,N.x01),Gx(N.y11,N.x11),!l),t.arc(p,f,i,Gx(N.cy+N.y11,N.cx+N.x11),Gx(z.cy+z.y11,z.cx+z.x11),!l),t.arc(p+z.cx,f+z.cy,x,Gx(z.y11,z.x11),Gx(z.y01,z.x01),!l))}else t.moveTo(p+b,f+w),t.arc(p,f,i,u,h,!l);else t.moveTo(p+b,f+w);if(n>Kx&&s>Kx)if(_>Kx){var N=Bo(S,T,M,C,n,-_,l),z=Bo(b,w,I,A,n,-_,l);t.lineTo(p+N.cx+N.x01,f+N.cy+N.y01),m>_?t.arc(p+N.cx,f+N.cy,_,Gx(N.y01,N.x01),Gx(z.y01,z.x01),!l):(t.arc(p+N.cx,f+N.cy,_,Gx(N.y01,N.x01),Gx(N.y11,N.x11),!l),t.arc(p,f,n,Gx(N.cy+N.y11,N.cx+N.x11),Gx(z.cy+z.y11,z.cx+z.x11),l),t.arc(p+z.cx,f+z.cy,_,Gx(z.y11,z.x11),Gx(z.y01,z.x01),!l))}else t.lineTo(p+S,f+T),t.arc(p,f,n,h,u,l);else t.lineTo(p+S,f+T)}else t.moveTo(p,f);t.closePath()}}function Ho(t,e,i,n,r,o,a){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*a+(-3*(e-i)-2*s-l)*o+s*r+e}function Vo(t,e){for(var i=t.length,n=[],r=0,o=1;i>o;o++)r+=ht(t[o-1],t[o]);var a=r/2;a=i>a?i:a;for(var o=0;a>o;o++){var s=o/(a-1)*(e?i:i-1),l=Math.floor(s),u=s-l,h=void 0,c=t[l%i],p=void 0,f=void 0;e?(h=t[(l-1+i)%i],p=t[(l+1)%i],f=t[(l+2)%i]):(h=t[0===l?l:l-1],p=t[l>i-2?i-1:l+1],f=t[l>i-3?i-1:l+2]);var d=u*u,g=u*d;n.push([Ho(h[0],c[0],p[0],f[0],u,d,g),Ho(h[1],c[1],p[1],f[1],u,d,g)])}return n}function Yo(t,e,i,n){var r,o,a,s,l=[],u=[],h=[],c=[];if(n){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,n[0]),yt(s,s,n[1])}for(var p=0,f=t.length;f>p;p++){var d=t[p];if(i)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]}it(u,o,r),lt(u,u,e);var g=ht(d,r),y=ht(d,o),v=g+y;0!==v&&(g/=v,y/=v),lt(h,u,-g),lt(c,u,y);var m=tt([],d,h),_=tt([],d,c);n&&(yt(m,m,a),gt(m,m,s),yt(_,_,a),gt(_,_,s)),l.push(m),l.push(_)}return i&&l.push(l.shift()),l}function Xo(t,e,i){var n=e.smooth,r=e.points;if(r&&r.length>=2){if(n&&"spline"!==n){var o=Yo(r,n,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(i?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{"spline"===n&&(r=Vo(r,i)),t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}function Wo(t,e,i){var n=t.cpx2,r=t.cpy2;return null===n||null===r?[(i?Vn:Hn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?Vn:Hn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?qn:jn)(t.x1,t.cpx1,t.x2,e),(i?qn:jn)(t.y1,t.cpy1,t.y2,e)]}function Go(t,e,i,n,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,h=void 0,c=void 0;n?(u=z(n.duration,200),h=z(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),"function"==typeof c&&(c=c(i,r)),"function"==typeof u&&(u=u(i));return{duration:u||0,delay:c,easing:h}}return null}function Uo(t,e,i,n,r,o,a){var s,l=!1;"function"==typeof r?(a=o,o=r,r=null):A(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 h=Go(t,n,r,u?s||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c=h.duration,p=h.delay,f=h.easing,d={duration:c,delay:p||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(i,d):e.animateTo(i,d)}else e.stopAnimation(),!l&&e.attr(i),a&&a(1),o&&o()}function jo(t,e,i,n,r,o){Uo("update",t,e,i,n,r,o)}function qo(t,e,i,n,r,o){Uo("init",t,e,i,n,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 Ko(t,e,i,n,r,o){Zo(t)||Uo("remove",t,e,i,n,r,o)}function Qo(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),Ko(t,{style:{opacity:0}},e,i,n)}function Jo(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Qo(t,e,i,n)}):Qo(t,e,i,n)}function $o(t){Tb(t).oldStyle=t.style}function ta(t){return X_.extend(t)}function ea(t,e){return Ab(t,e)}function ia(t,e){Ib[t]=e}function na(t){return Ib.hasOwnProperty(t)?Ib[t]:void 0}function ra(t,e,i,n){var r=Eo(t,e);return i&&("center"===n&&(i=aa(i,r.getBoundingRect())),sa(r,i)),r}function oa(t,e,i){var n=new q_({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(aa(e,r))}}});return n}function aa(t,e){var i,n=e.width/e.height,r=t.height*n;return r<=t.width?i=t.height:(r=t.width,i=r/n),{x:t.x+t.width/2-r/2,y:t.y+t.height/2-i/2,width:r,height:i}}function sa(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function la(t){return Sr(t.shape,t.shape,t.style),t}function ua(t){return Tr(t.shape,t.shape,t.style),t}function ha(t,e){for(var i=Fe([]);t&&t!==e;)Ve(i,t.getLocalTransform(),i),t=t.parent;return i}function ca(t,e,i){return e&&!d(e)&&(e=qv.getLocalTransform(e)),i&&(e=Ge([],e)),dt([],t,e)}function pa(t,e,i){var n=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?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return o=ca(o,e,i),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,i){function n(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=n(t);t.attr(n(e)),jo(t,o,i,rx(t).dataIndex)}}})}}function ya(t,e){return y(t,function(t){var i=t[0];i=Mb(i,e.x),i=Cb(i,e.x+e.width);var n=t[1];return n=Mb(n,e.y),n=Cb(n,e.y+e.height),[i,n]})}function va(t,e){var i=Mb(t.x,e.x),n=Cb(t.x+t.width,e.x+e.width),r=Mb(t.y,e.y),o=Cb(t.y+t.height,e.y+e.height);return n>=i&&o>=r?{x:i,y:r,width:n-i,height:o-r}:void 0}function ma(t,e,i){var n=u({rectHover:!0},e),r=n.style={strokeNoScale:!0};return i=i||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),h(r,i),new q_(n)):ra(t.replace("path://",""),n,i,"center"):void 0}function _a(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(xa(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function xa(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,h=a-r,c=s-o,p=ba(h,c,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,h,c)/p;return!(0>y||y>1)}function ba(t,e,i,n){return t*n-i*e}function wa(t){return 1e-6>=t&&t>=-1e-6}function Sa(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,r=M(e)?{formatter:e}:e,o=i.mainType,a=i.componentIndex,s={componentType:o,name:n,$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:n,option:h({content:n,formatterParams:s},r)}}function Ta(t,e){for(var i=0;i<px.length;i++){var n=px[i],r=e[n],o=t.ensureState(n);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 Ma(t,e,i){var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(n=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==n&&(n=T(t.defaultText)?t.defaultText(o,t,i):t.defaultText);for(var l={normal:n},u=0;u<px.length;u++){var h=px[u],c=e[h];l[h]=z(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,n)}return l}function Ca(t,e,i,n){i=i||Ob;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=Ma(i,e),h=e.normal,c=!!h.getShallow("show"),p=Aa(h,n&&n.normal,i,!1,!r);p.text=u.normal,r||t.setTextConfig(ka(h,i,!1));for(var a=0;a<px.length;a++){var f=px[a],s=e[f];if(s){var d=l.ensureState(f),g=!!z(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Aa(s,n&&n[f],i,!0,!r),d.style.text=u[f],!r){t.ensureState(f).textConfig=ka(s,i,!0)}}}l.silent=!!h.getShallow("silent"),null!=l.style.x&&(p.x=l.style.x),null!=l.style.y&&(p.y=l.style.y),l.ignore=!c,l.useStyle(p),l.dirty(),i.enableTextSetter&&(Nb(l).setLabelText=function(t){var n=Ma(i,e,t);Ta(l,n)})}else l&&(l.ignore=!0);t.dirty()}function Ia(t,e){e=e||"label";for(var i={normal:t.getModel(e)},n=0;n<px.length;n++){var r=px[n];i[r]=t.getModel([r,e])}return i}function Aa(t,e,i,n,r){var o={};return Da(o,t,i,n,r),e&&u(o,e),o}function ka(t,e,i){e=e||{};var n,r={},o=t.getShallow("rotate"),a=z(t.getShallow("distance"),i?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(i?null:"inside"),"outside"===n&&(n=e.defaultOutsidePosition||"top"),null!=n&&(r.position=n),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 Da(t,e,i,n,r){i=i||Ob;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Pa(e);if(l){o={};for(var u in l)if(l.hasOwnProperty(u)){var h=e.getModel(["rich",u]);Oa(o[u]={},h,s,i,n,r,!1,!0)}}o&&(t.rich=o);var c=e.get("overflow");c&&(t.overflow=c);var p=e.get("minMargin");null!=p&&(t.margin=p),Oa(t,e,s,i,n,r,!0,!1)}function Pa(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||Ob).rich;if(i){e=e||{};for(var n=x(i),r=0;r<n.length;r++){e[n[r]]=1}}t=t.parentModel}return e}function Oa(t,e,i,n,r,o,a,s){i=!r&&i||Ob;var l=n&&n.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=z(e.getShallow("opacity"),i.opacity);("inherit"===u||"auto"===u)&&(u=l||null),("inherit"===h||"auto"===h)&&(h=l||null),o||(u=u||i.color,h=h||i.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var p=z(e.getShallow("textBorderWidth"),i.textBorderWidth);null!=p&&(t.lineWidth=p);var f=z(e.getShallow("textBorderType"),i.textBorderType);null!=f&&(t.lineDash=f);var d=z(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),r||null!=c||s||(c=n&&n.defaultOpacity),null!=c&&(t.opacity=c),r||o||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<Lb.length;g++){var y=Lb[g],v=z(e.getShallow(y),i[y]);null!=v&&(t[y]=v)}for(var g=0;g<Eb.length;g++){var y=Eb[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||!n.disableBox){for(var g=0;g<Rb.length;g++){var y=Rb[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 i=e&&e.getModel("textStyle");return Y([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function Ea(t,e,i,n,r){function o(n){var o=pn(i,a.precision,l,u,n);a.interpolatedValue=1===n?null:o;var h=Ma({labelDataIndex:e,labelFetcher:r,defaultText:s?s(o):o+""},a.statesModels,o);Ta(t,h)}var a=Nb(t);if(a.valueAnimation){var s=a.defaultInterpolatedText,l=z(a.interpolatedValue,a.prevValue),u=a.value;(null==a.prevValue?qo:jo)(t,{},n,e,null,o)}}function Ra(t){return[t||"",jb++].join("_")}function Na(t,e){return s(s({},t,!0),e,!0)}function za(t,e){t=t.toUpperCase(),tw[t]=new Ub(e),$b[t]=e}function Ba(t){if(M(t)){var e=$b[t.toUpperCase()]||{};return t===Kb||t===Qb?a(e):s(a(e),a($b[Jb]),!1)}return s(a(t),a($b[Jb]),!1)}function Fa(t){return tw[t]}function Ha(){return tw[Jb]}function Va(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ya(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 Xa(t){return t===Ya(t)}function Wa(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ga(t,e,i,n){var r=Ii(t),o=r[Za(i)](),a=r[Ka(i)]()+1,s=Math.floor((a-1)/4)+1,l=r[Qa(i)](),u=r["get"+(i?"UTC":"")+"Day"](),h=r[Ja(i)](),c=(h-1)%12+1,p=r[$a(i)](),f=r[ts(i)](),d=r[es(i)](),g=n instanceof Ub?n:Fa(n||ew)||Ha(),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,Va(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Va(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Va(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Va(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Va(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Va(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Va(d,3)).replace(/{S}/g,d+"")}function Ua(t,e,i,n,r){var o=null;if("string"==typeof i)o=i;else if("function"==typeof i)o=i(t.value,e,{level:t.level});else{var a=u({},sw);if(t.level>0)for(var s=0;s<hw.length;++s)a[hw[s]]="{primary|"+a[hw[s]]+"}";var l=i?!1===i.inherit?i:h(i,a):a,c=ja(t.value,r);if(l[c])o=l[c];else if(l.inherit){for(var p=cw.indexOf(c),s=p-1;s>=0;--s)if(l[c]){o=l[c];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 Ga(new Date(t.value),o,r,n)}function ja(t,e){var i=Ii(t),n=i[Ka(e)]()+1,r=i[Qa(e)](),o=i[Ja(e)](),a=i[$a(e)](),s=i[ts(e)](),l=i[es(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,f=p&&1===r;return f&&1===n?"year":f?"month":p?"day":c?"hour":h?"minute":u?"second":"millisecond"}function qa(t,e,i){var n="number"==typeof t?Ii(t):t;switch(e=e||ja(t,i)){case"year":return n[Za(i)]();case"half-year":return n[Ka(i)]()>=6?1:0;case"quarter":return Math.floor((n[Ka(i)]()+1)/4);case"month":return n[Ka(i)]();case"day":return n[Qa(i)]();case"half-day":return n[Ja(i)]()/24;case"hour":return n[Ja(i)]();case"minute":return n[$a(i)]();case"second":return n[ts(i)]();case"millisecond":return n[es(i)]()}}function Za(t){return t?"getUTCFullYear":"getFullYear"}function Ka(t){return t?"getUTCMonth":"getMonth"}function Qa(t){return t?"getUTCDate":"getDate"}function Ja(t){return t?"getUTCHours":"getHours"}function $a(t){return t?"getUTCMinutes":"getMinutes"}function ts(t){return t?"getUTCSeconds":"getSeconds"}function es(t){return t?"getUTCMilliseconds":"getMilliseconds"}function is(t){return t?"setUTCFullYear":"setFullYear"}function ns(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,i,n,r,o,a,s){return new ex({style:{text:t,font:e,align:i,verticalAlign:n,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}function hs(t){if(!Ei(t))return M(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function cs(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,i){function n(t){return t&&Y(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?Ii(t):t;if(!isNaN(+s))return Ga(s,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",i);if(a)return"-"}if("ordinal"===e)return C(t)?n(t):I(t)&&r(t)?t+"":"-";var l=Li(t);return r(l)?hs(l):C(t)?n(t):"-"}function ds(t,e,i){S(e)||(e=[e]);var n=e.length;if(!n)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;n>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(yw(gw[l],s),i?ps(u):u)}return t}function gs(t,e){var i=M(t)?{color:t,extraCssText:e}:t||{},n=i.color,r=i.type;e=i.extraCssText;var o=i.renderMode||"html";return n?"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(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ps(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(i.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function ys(t,e,i){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var n=Ii(e),r=i?"UTC":"",o=n["get"+r+"FullYear"](),a=n["get"+r+"Month"]()+1,s=n["get"+r+"Date"](),l=n["get"+r+"Hours"](),u=n["get"+r+"Minutes"](),h=n["get"+r+"Seconds"](),c=n["get"+r+"Milliseconds"]();return t=t.replace("MM",Va(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",Va(s,2)).replace("d",s).replace("hh",Va(l,2)).replace("h",l).replace("mm",Va(u,2)).replace("m",u).replace("ss",Va(h,2)).replace("s",h).replace("SSS",Va(c,3))}function vs(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ms(t,e){return e=e||"transparent",M(t)?t:A(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function _s(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,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);h=o+g,h>n||l.newline?(o=0,h=g,a+=s+i,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(d?-d.y+p.y:0);c=a+y,c>r||l.newline?(o+=s+i,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+i:a=c+i)})}function xs(t,e,i){i=pw(i||0);var n=e.width,r=e.height,o=vi(t.left,n),a=vi(t.top,r),s=vi(t.right,n),l=vi(t.bottom,r),u=vi(t.width,n),h=vi(t.height,r),c=i[2]+i[0],p=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>n/r?u=.8*n:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=n-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-i[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=n-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var d=new om(o+i[3],a+i[0],u,h);return d.margin=i,d}function bs(t){var e=t.layoutMode||t.constructor.layoutMode;return A(e)?e:e?{type:e}:null}function ws(t,e,i){function n(i,n){var a={},l=0,u={},h=0;if(vw(i,function(e){u[e]=t[e]}),vw(i,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[n])return o(e,i[1])?u[i[2]]=null:o(e,i[2])&&(u[i[1]]=null),u;if(2!==h&&l){if(l>=2)return a;for(var c=0;c<i.length;c++){var p=i[c];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,i){vw(t,function(t){e[t]=i[t]})}var s=i&&i.ignoreSize;!S(s)&&(s=[s,s]);var l=n(_w[0],0),u=n(_w[1],1);a(_w[0],t,l),a(_w[1],t,u)}function Ss(t){return Ts({},t)}function Ts(t,e){return e&&t&&vw(mw,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function Ms(t){var e=[];return g(ww.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=y(e,function(t){return fn(t).main}),"dataset"!==t&&c(e,"dataset")<=0&&e.unshift("dataset"),e}function Cs(t){Bw(t).datasetMap=G()}function Is(t,e,i){function n(t,e,i){for(var n=0;i>n;n++)t.push(e+n)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=As(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,p=Bw(c).datasetMap,f=a.uid+"_"+i.seriesLayoutBy;t=t.slice(),g(t,function(e,i){var n=A(e)?e:t[i]={name:e};"ordinal"===n.type&&null==s&&(s=i,l=r(n)),o[n.name]=[]});var d=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});return g(t,function(t,e){var i=t.name,a=r(t);if(null==s){var l=d.valueWayDim;n(o[i],l,a),n(h,l,a),d.valueWayDim+=a}else if(s===e)n(o[i],0,a),n(u,0,a);else{var l=d.categoryWayDim;n(o[i],l,a),n(h,l,a),d.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function As(t){return t.get("data",!0)?void 0:ln(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Am).models[0]}function ks(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?ln(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Am).models:[]}function Ds(t,e){return Ps(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ps(t,e,i,n,r,o){function a(t){var e=M(t);return null!=t&&isFinite(t)&&""!==t?e?zw.Might:zw.Not:e&&"-"!==t?zw.Must:void 0}var s;if(D(t))return zw.Not;var l,u;if(n){var h=n[o];A(h)?(l=h.name,u=h.type):M(h)&&(l=h)}if(null!=u)return"ordinal"===u?zw.Must:zw.Not;if(e===Dw){var c=t;if(i===Nw){for(var p=c[o],f=0;f<(p||[]).length&&5>f;f++)if(null!=(s=a(p[r+f])))return s}else for(var f=0;f<c.length&&5>f;f++){var d=c[r+f];if(d&&null!=(s=a(d[o])))return s}}else if(e===Pw){var g=t;if(!l)return zw.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===Ow){var v=t;if(!l)return zw.Not;var p=v[l];if(!p||D(p))return zw.Not;for(var f=0;f<p.length&&5>f;f++)if(null!=(s=a(p[f])))return s}else if(e===kw)for(var m=t,f=0;f<m.length&&5>f;f++){var y=m[f],_=Vi(y);if(!S(_))return zw.Not;if(null!=(s=a(_[o])))return s}return zw.Not}function Os(t,e,i){var n=Fw.get(e);if(!n)return i;var r=n(t);return r?i.concat(r):i}function Ls(t,e){for(var i=t.length,n=0;i>n;n++)if(t[n].length>e)return t[n];return t[i-1]}function Es(t,e,i,n,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 h=null!=a&&n?Ls(n,a):i;if((h=h||i)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}function Rs(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function Ns(t,e){if(e){var i=e.seriesIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}function zs(t,e){var i=t.color&&!t.colorLayer;g(e,function(e,n){"colorLayer"===n&&i||ww.hasClass(n)||("object"==typeof e?t[n]=t[n]?s(t[n],e,!1):a(e):null==t[n]&&(t[n]=e))})}function Bs(t,e,i){if(S(e)){var n=G();return g(e,function(t){if(null!=t){null!=Ji(t,null)&&n.set(t,!0)}}),m(i,function(e){return e&&n.get(e[t])})}var r=Ji(e,null);return m(i,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 Hs(t){var e=G();return t&&g(Fi(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Vs(t,e,i){function n(t){g(e,function(e){e(t,i)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||c)&&(t.options=t.media=null),o=t),c&&S(h)&&g(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),n(o),g(u,function(t){return n(t)}),g(a,function(t){return n(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function Ys(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return g(t,function(t,e){var i=e.match(tS);if(i&&i[1]&&i[2]){var o=i[1],a=i[2].toLowerCase();Xs(n[a],t,o)||(r=!1)}}),r}function Xs(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function Ws(t,e){return t.join(",")===e.join(",")}function Gs(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=rS.length;n>i;i++){var r=rS[i],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 Us(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,h(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function js(t){Us(t,"itemStyle"),Us(t,"lineStyle"),Us(t,"areaStyle"),Us(t,"label"),Us(t,"labelLine"),Us(t,"upperLabel"),Us(t,"edgeLabel")}function qs(t,e){var i=nS(t)&&t[e],n=nS(i)&&i.textStyle;if(n)for(var r=0,o=Cm.length;o>r;r++){var a=Cm[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}function Zs(t){t&&(js(t),qs(t,"label"),t.emphasis&&qs(t.emphasis,"label"))}function Ks(t){if(nS(t)){Gs(t),js(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&&(Gs(e),Zs(e));var i=t.markLine;i&&(Gs(i),Zs(i));var n=t.markArea;n&&Zs(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!D(o))for(var a=0;a<o.length;a++)Zs(o[a]);g(t.categories,function(t){js(t)})}if(r&&!D(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((i=t.markLine)&&i.data)for(var l=i.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?(Us(t.breadcrumb,"itemStyle"),g(t.levels,function(t){js(t)})):"tree"===t.type&&js(t.leaves)}}function Qs(t){return S(t)?t:t?[t]:[]}function Js(t){return(S(t)?t[0]:t)||{}}function $s(t,e){iS(Qs(t.series),function(t){nS(t)&&Ks(t)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),iS(i,function(e){iS(Qs(t[e]),function(t){t&&(qs(t,"axisLabel"),qs(t.axisPointer,"label"))})}),iS(Qs(t.parallel),function(t){var e=t&&t.parallelAxisDefault;qs(e,"axisLabel"),qs(e&&e.axisPointer,"label")}),iS(Qs(t.calendar),function(t){Us(t,"itemStyle"),qs(t,"dayLabel"),qs(t,"monthLabel"),qs(t,"yearLabel")}),iS(Qs(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)}),iS(Qs(t.geo),function(t){nS(t)&&(Zs(t),iS(Qs(t.regions),function(t){Zs(t)}))}),iS(Qs(t.timeline),function(t){Zs(t),Us(t,"label"),Us(t,"itemStyle"),Us(t,"controlStyle",!0);var e=t.data;S(e)&&g(e,function(t){A(t)&&(Us(t,"label"),Us(t,"itemStyle"))})}),iS(Qs(t.toolbox),function(t){Us(t,"iconStyle"),iS(t.feature,function(t){Us(t,"iconStyle")})}),qs(Js(t.axisPointer),"label"),qs(Js(t.tooltip).axisPointer,"label")}function tl(t,e){for(var i=e.split(","),n=t,r=0;r<i.length&&null!=(n=n&&n[i[r]]);r++);return n}function el(t,e,i,n){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];(n||null==a[o[s]])&&(a[o[s]]=i)}function il(t){t&&g(oS,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function nl(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<sS.length;i++){var n=sS[i][1],r=sS[i][0];null!=e[n]&&(e[r]=e[n])}}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 i=0;i<t.length;i++)e(t[i]),t[i]&&sl(t[i].children,e)}function ll(t,e){$s(t,e),t.series=Fi(t.series),g(t.series,function(t){if(A(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 i=t.data;if(i&&!D(i))for(var n=0;n<i.length;n++)rl(i[n]);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){nl(t),nl(t.backgroundStyle),nl(t.emphasis);var i=t.data;if(i&&!D(i))for(var n=0;n<i.length;n++)"object"==typeof i[n]&&(nl(i[n]),nl(i[n]&&i[n].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&&h(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),il(t)}}),t.dataRange&&(t.visualMap=t.dataRange),g(aS,function(e){var i=t[e];i&&(S(i)||(i=[i]),g(i,function(t){il(t)}))})}function ul(t){var e=G();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),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;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),e.each(hl)}function hl(t){g(t,function(e,i){var n=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex;a.modify(o,function(o,l,u){var h=a.get(e.stackedDimension,u);if(isNaN(h))return r;var c,p;s?p=a.getRawIndex(u):c=a.get(e.stackedByDimension,u);for(var f=NaN,d=i-1;d>=0;d--){var g=t[d];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,c)),p>=0){var y=g.data.getByRawIndex(g.stackResultDimension,p);if(h>=0&&y>0||0>=h&&0>y){h=Ti(h,y),f=y;break}}}return n[0]=h,n[1]=f,n})})}function cl(t){return t instanceof lS}function pl(t,e,i){i=i||gl(t);var n=e.seriesLayoutBy,r=yl(t,i,n,e.sourceHeader,e.dimensions);return new lS({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:a(e)})}function fl(t){return new lS({data:t,sourceFormat:D(t)?Lw:kw})}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=Ew;if(D(t))e=Lw;else if(S(t)){0===t.length&&(e=Dw);for(var i=0,n=t.length;n>i;i++){var r=t[i];if(null!=r){if(S(r)){e=Dw;break}if(A(r)){e=Pw;break}}}}else if(A(t))for(var o in t)if(q(t,o)&&d(t[o])){e=Ow;break}return e}function yl(t,e,i,n,r){var o,a;if(!t)return{dimensionsDefine:ml(r),startIndex:a,dimensionsDetectedCount:o};if(e===Dw){var s=t;"auto"===n||null==n?_l(function(t){null!=t&&"-"!==t&&(M(t)?null==a&&(a=1):a=0)},i,s,10):a=I(n)?n:n?1:0,r||1!==a||(r=[],_l(function(t,e){r[e]=null!=t?t+"":""},i,s,1/0)),o=r?r.length:i===Nw?s.length:s[0]?s[0].length:null}else if(e===Pw)r||(r=vl(t));else if(e===Ow)r||(r=[],g(t,function(t,e){r.push(e)}));else if(e===kw){var l=Vi(t[0]);o=S(l)&&l.length||1}return{startIndex:a,dimensionsDefine:ml(r),dimensionsDetectedCount:o}}function vl(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e){var n=[];return g(e,function(t,e){n.push(e)}),n}}function ml(t){if(t){var e=G();return y(t,function(t){t=A(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var n=e.get(i.name);return n?i.name+="-"+n.count++:e.set(i.name,{count:1}),i})}}function _l(t,e,i,n){if(e===Nw)for(var r=0;r<i.length&&n>r;r++)t(i[r]?i[r][0]:null,r);else for(var o=i[0]||[],r=0;r<o.length&&n>r;r++)t(o[r],r)}function xl(t){var e=t.sourceFormat;return e===Pw||e===Ow}function bl(t,e){return cS[Tl(t,e)]}function wl(t,e){return fS[Tl(t,e)]}function Sl(t){return gS[t]}function Tl(t,e){return t===Dw?t+"_"+e:t}function Ml(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=i){var a=t.getDimensionIndex(i),s=r.getDimensionProperty(a);return Sl(o)(n,a,s)}var l=n;return o===kw&&(l=Vi(n)),l}}}function Cl(t){var e,i;return A(t)?t.type&&(i=t):e=t,{markupText:e,markupFragment:i}}function Il(t){return new mS(t)}function Al(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+Ii(t)),null==t||""===t?NaN:+t)}function kl(t,e){var i=new wS,n=t.data,r=i.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==Rw&&Bi("");var a=[],s={},l=t.dimensionsDefine;if(l)g(l,function(t,e){var i=t.name,n={index:e,name:i,displayName:t.displayName};if(a.push(n),null!=i){q(s,i)&&Bi(""),s[i]=n}});else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var h=bl(r,Rw);e.__isBuiltIn&&(i.getRawDataItem=function(t){return h(n,o,a,t)},i.getRawData=ky(Dl,null,t)),i.cloneRawData=ky(Pl,null,t);var c=wl(r,Rw);i.count=ky(c,null,n,o,a);var p=Sl(r);i.retrieveValue=function(t,e){var i=h(n,o,a,t);return f(i,e)};var f=i.retrieveValueFromItem=function(t,e){if(null!=t){var i=a[e];return i?p(t,e,i.name):void 0}};return i.getDimensionInfo=ky(Ol,null,a,s),i.cloneAllDimensionInfo=ky(Ll,null,a),i}function Dl(t){zl(t.sourceFormat)||Bi("");return t.data}function Pl(t){var e=t.sourceFormat,i=t.data;if(!zl(e)){Bi("")}if(e===Dw){for(var n=[],r=0,o=i.length;o>r;r++)n.push(i[r].slice());return n}if(e===Pw){for(var n=[],r=0,o=i.length;o>r;r++)n.push(u({},i[r]));return n}}function Ol(t,e,i){return null!=i?"number"==typeof i||!isNaN(i)&&!q(e,i)?t[i]:q(e,i)?e[i]:void 0:void 0}function Ll(t){return a(t)}function El(t){t=a(t);var e=t.type;e||Bi("");var i=e.split(":");2!==i.length&&Bi("");var n=!1;"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,SS.set(e,t)}function Rl(t,e,i){var n=Fi(t),r=n.length;r||Bi("");for(var o=0,a=r;a>o;o++){e=Nl(n[o],e),o!==a-1&&(e.length=Math.max(e.length,1))}return e}function Nl(t,e){e.length||Bi(""),A(t)||Bi("");var i=t.type,n=SS.get(i);n||Bi("");var r=y(e,function(t){return kl(t,n)});return y(Fi(n.transform({upstream:r[0],upstreamList:r,config:a(t.config)})),function(t,i){A(t)||Bi(""),t.data||Bi(""),zl(gl(t.data))||Bi("");var n,r=e[0];if(r&&0===i&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),n={seriesLayoutBy:Rw,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else n={seriesLayoutBy:Rw,sourceHeader:0,dimensions:t.dimensions};return pl(t.data,n,null)})}function zl(t){return t===Dw||t===Pw}function Bl(t){return t>65535?MS:CS}function Fl(){return[1/0,-1/0]}function Hl(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Vl(t,e,i,n,r){var o=kS[i||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==n){for(var l=new o(n),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(n)}function Yl(t){t.option.transform&&X(t.option.transform)}function Xl(t){return"series"===t.mainType}function Wl(t){throw new Error(t)}function Gl(t,e){var i=t.color||"#6e7079",n=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(n+"")+"px;color:"+ps(i)+";font-weight:"+ps(r+""),valueStyle:"font-size:"+ps(a+"")+"px;color:"+ps(o)+";font-weight:"+ps(s+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function Ul(t,e){return e.type=t,e}function jl(t){return q(RS,t.type)&&RS[t.type]}function ql(t,e,i,n){var r=[],o=e.blocks||[];V(!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=Kl(e);return g(o,function(e,i){var o=jl(e).build(t,e,i>0?u.html:0,n);null!=o&&r.push(o)}),r.length?"richText"===t.renderMode?r.join(u.richText):Ql(r.join(""),i):void 0}function Zl(t,e,i,n,r,o){if(t){var a=jl(t);a.planLayout(t);var s={useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e};return a.build(s,t,0,o)}}function Kl(t){var e=t.__gapLevelBetweenSubBlocks;return{html:LS[e],richText:ES[e]}}function Ql(t,e){return'<div style="margin: '+e+"px 0 0;"+OS+';">'+t+'<div style="clear:both"></div></div>'}function Jl(t,e,i){return'<span style="'+i+";"+(e?"margin-left:2px":"")+'">'+ps(t)+"</span>"}function $l(t,e,i,n){var r=i?"10px":"20px";return'<span style="'+(e?"float:right;margin-left:"+r:"")+";"+n+'">'+y(t,function(t){return ps(t)}).join(" ")+"</span>"}function tu(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function eu(t,e,i,n,r){var o=[r],a=n?10:20;return i&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}function iu(t,e){return ms(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function nu(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}function ru(t){var e,i,n,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=S(c),f=iu(o,a);if(h>1||p&&!h){var d=ou(c,o,a,u,f);e=d.inlineValues,i=d.inlineValueTypes,n=d.blocks,r=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Ml(l,a,u[0]),i=g.type}else r=e=p?c[0]:c;var y=$i(o),v=y&&o.name||"",m=l.getName(a),_=s?v:m;return Ul("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[Ul("nameValue",{markerType:"item",markerColor:f,name:_,noName:!Y(_),value:e,valueType:i})].concat(n||[])})}function ou(t,e,i,n,r){function o(t,e){var i=a.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(s?h.push(Ul("nameValue",{markerType:"subItem",markerColor:r,name:i.displayName,value:t,valueType:i.type})):(l.push(t),u.push(i.type)))}var a=e.getData(),s=v(t,function(t,e,i){var n=a.getDimensionInfo(i);return t=t||n&&!1!==n.tooltip&&null!=n.displayName},!1),l=[],u=[],h=[];return n.length?g(n,function(t){o(Ml(a,i,t),t)}):g(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function au(t,e){return t.getName(e)||t.getId(e)}function su(t){var e=t.name;$i(t)||(t.name=lu(t)||e)}function lu(t){var e=t.getRawData(),i=e.mapDimensionsAll("seriesName"),n=[];return g(i,function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)}),n.join(" ")}function uu(t){return t.model.getRawData().count()}function hu(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),cu}function cu(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function pu(t,e){g(U(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(i){t.wrapMethod(i,w(fu,e))})}function fu(t,e){var i=du(t);return i&&i.setOutputEnd((e||this).count()),e}function du(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}function gu(){var t=on();return function(e){var i=t(e),n=e.pipelineContext,r=!!i.large,o=!!i.progressiveRender,a=i.large=!(!n||!n.large),s=i.progressiveRender=!(!n||!n.progressiveRender);return!(r===a&&o===s)&&"reset"}}function yu(t,e,i){t&&("emphasis"===e?$r:to)(t,i)}function vu(t,e,i){var n=rn(t,e),r=e&&null!=e.highlightKey?wo(e.highlightKey):null;null!=n?g(Fi(n),function(e){yu(t.getItemGraphicEl(e),i,r)}):t.eachItemGraphicEl(function(t){yu(t,i,r)})}function mu(t){return VS(t.model)}function _u(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&HS(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),WS[l]}function xu(t,e,i){function n(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=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||i;l=null,o=r-(d?u:h)-f,clearTimeout(c),d?c=setTimeout(n,f):o>=0?n():c=setTimeout(n,-o),u=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){l=t},p}function bu(t,e,i,n){var r=t[e];if(r){var o=r[GS]||r,a=r[jS];if(r[US]!==i||a!==n){if(null==i||!n)return t[e]=o;r=t[e]=xu(o,i,"debounce"===n),r[GS]=o,r[jS]=n,r[US]=i}return r}}function wu(t,e){var i=t.visualStyleMapper||ZS[e];return i||(console.warn("Unkown style type '"+e+"'."),ZS.itemStyle)}function Su(t,e){var i=t.visualDrawType||KS[e];return i||(console.warn("Unkown style type '"+e+"'."),"fill")}function Tu(t,e){e=e||{},h(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 i=new gm,n=new J_({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);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});i.add(o);var a;return e.showSpinner&&(a=new pb({shape:{startAngle:-eT/2,endAngle:-eT/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*eT/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*eT/2}).delay(300).start("circularInOut"),i.add(a)),i.resize=function(){var i=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(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),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}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}function Mu(t){t.overallReset(t.ecModel,t.api,t.payload)}function Cu(t){return t.overallProgress&&Iu}function Iu(){this.agent.dirty(),this.getDownstream().dirty()}function Au(){this.agent&&this.agent.dirty()}function ku(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Du(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Fi(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?y(e,function(t,e){return Pu(e)}):nT}function Pu(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function Ou(t){return t.data.count()}function Lu(t){XS=null;try{t(rT,oT)}catch(t){}return XS}function Eu(t,e){for(var i in e.prototype)t[i]=Z}function Ru(t,e,i){switch(i){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,i)}}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 zu(t,e,i,n,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,n=r.selected,a=0;a<n.length;a++)if(n[a].seriesIndex===e){var s=t.getData(),l=rn(s,r.fromActionPayload);i.trigger(o,{type:o,seriesId:t.id,name:s.getName(S(l)?l[0]:l),selected:u({},t.option.selectedMap)})}})}function Bu(t,e,i){t.on("selectchanged",function(t){var n=i.getModel();t.isFromClick?(zu("map","selectchanged",e,n,t),zu("pie","selectchanged",e,n,t)):"select"===t.fromAction?(zu("map","selected",e,n,t),zu("pie","selected",e,n,t)):"unselect"===t.fromAction&&(zu("map","unselected",e,n,t),zu("pie","unselected",e,n,t))})}function Fu(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}function Hu(t,e){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw()}}function Vu(t,e,i,n,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,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?ra(t.slice(7),{},new om(e,i,n,r),a?"center":"cover"):new IT({shape:{symbolType:t,x:e,y:i,width:n,height:r}}),l.__isEmptyBrush=s,l.setColor=Hu,o&&l.setColor(o),l}function Yu(t){return S(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Xu(t,e){return null!=t?(S(t)||(t=[t,t]),[vi(t[0],e[0])||0,vi(z(t[1],t[0]),e[1])||0]):void 0}function Wu(t,e,i){var n=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||(n=n*i.width+i.x,r=r*i.width+i.x,o=o*i.height+i.y,a=a*i.height+i.y),n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(n,o,r,a)}function Gu(t,e,i){var n=i.width,r=i.height,o=Math.min(n,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*n+i.x,s=s*r+i.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}function Uu(t,e,i){for(var n="radial"===e.type?Gu(t,e,i):Wu(t,e,i),r=e.colorStops,o=0;o<r.length;o++)n.addColorStop(r[o].offset,r[o].color);return n}function ju(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;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 Ku(t){return"string"==typeof t&&"none"!==t}function Qu(t){var e=t.fill;return null!=e&&"none"!==e}function Ju(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function $u(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function th(t,e,i){var n=Tn(e.image,e.__image,i);if(Cn(n)){var r=t.createPattern(n,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 eh(t,e,i,n){var r=Zu(i),o=Qu(i),a=i.strokePercent,s=1>a,l=!e.path;e.silent&&!s||!l||e.createPathProxy();var u=e.path||AT;if(!n){var h=i.fill,c=i.stroke,p=o&&!!h.colorStops,f=r&&!!c.colorStops,d=o&&!!h.image,g=r&&!!c.image,v=void 0,m=void 0,_=void 0,x=void 0,b=void 0;(p||f)&&(b=e.getBoundingRect()),p&&(v=e.__dirty?Uu(t,h,b):e.__canvasFillGradient,e.__canvasFillGradient=v),f&&(m=e.__dirty?Uu(t,c,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=m),d&&(_=e.__dirty||!e.__canvasFillPattern?th(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=_),g&&(x=e.__dirty||!e.__canvasStrokePattern?th(t,c,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=i.lineDash&&i.lineWidth>0&&qu(i.lineDash,i.lineWidth),S=i.lineDashOffset,T=!!t.setLineDash,M=e.getGlobalScale();if(u.setScale(M[0],M[1],e.segmentIgnoreThreshold),w){var C=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;C&&1!==C&&(w=y(w,function(t){return t/C}),S/=C)}var I=!0;(l||e.__dirty&ov||w&&!T&&r)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),I=!1),u.reset(),w&&!T&&(u.setLineDash(w),u.setLineDashOffset(S)),e.buildPath(u,e.shape,n),u.toStatic(),e.pathUpdated()),I&&u.rebuildPath(t,s?a:1),w&&T&&(t.setLineDash(w),t.lineDashOffset=S),n||(i.strokeFirst?(r&&$u(t,i),o&&Ju(t,i)):(o&&Ju(t,i),r&&$u(t,i))),w&&T&&t.setLineDash([])}function ih(t,e,i){var n=e.__image=Tn(i.image,e.__image,e,e.onload);if(n&&Cn(n)){var r=i.x||0,o=i.y||0,a=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),i.sWidth&&i.sHeight){var u=i.sx||0,h=i.sy||0;t.drawImage(n,u,h,i.sWidth,i.sHeight,r,o,a,s)}else if(i.sx&&i.sy){var u=i.sx,h=i.sy,c=a-u,p=s-h;t.drawImage(n,u,h,c,p,r,o,a,s)}else t.drawImage(n,r,o,a,s)}}function nh(t,e,i){var n=i.text;if(null!=n&&(n+=""),n){t.font=i.font||sm,t.textAlign=i.textAlign,t.textBaseline=i.textBaseline;var r=void 0;if(t.setLineDash){var o=i.lineDash&&i.lineWidth>0&&qu(i.lineDash,i.lineWidth),a=i.lineDashOffset;if(o){var s=i.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}}i.strokeFirst?(Zu(i)&&t.strokeText(n,i.x,i.y),Qu(i)&&t.fillText(n,i.x,i.y)):(Qu(i)&&t.fillText(n,i.x,i.y),Zu(i)&&t.strokeText(n,i.x,i.y)),r&&t.setLineDash([])}}function rh(t,e,i,n,r){var o=!1;if(!n&&(i=i||{},e===i))return!1;if(n||e.opacity!==i.opacity){o||(ch(t,r),o=!0);var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Xm.opacity:a}(n||e.blend!==i.blend)&&(o||(ch(t,r),o=!0),t.globalCompositeOperation=e.blend||Xm.blend);for(var s=0;s<kT.length;s++){var l=kT[s];(n||e[l]!==i[l])&&(o||(ch(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==i.shadowColor)&&(o||(ch(t,r),o=!0),t.shadowColor=e.shadowColor||Xm.shadowColor),o}function oh(t,e,i,n,r){var o=ph(e,r.inHover),a=n?null:i&&ph(i,r.inHover)||{};if(o===a)return!1;var s=rh(t,o,a,n,r);if((n||o.fill!==a.fill)&&(s||(ch(t,r),s=!0),Ku(o.fill)&&(t.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||(ch(t,r),s=!0),Ku(o.stroke)&&(t.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||(ch(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||(ch(t,r),s=!0),t.lineWidth=u)}for(var h=0;h<DT.length;h++){var c=DT[h],p=c[0];(n||o[p]!==a[p])&&(s||(ch(t,r),s=!0),t[p]=o[p]||c[1])}return s}function ah(t,e,i,n,r){return rh(t,ph(e,r.inHover),i&&ph(i,r.inHover),n,r)}function sh(t,e){var i=e.transform,n=t.dpr||1;i?t.setTransform(n*i[0],n*i[1],n*i[2],n*i[3],n*i[4],n*i[5]):t.setTransform(n,0,0,n,0,0)}function lh(t,e,i){for(var n=!1,r=0;r<t.length;r++){var o=t[r];n=n||o.isZeroArea(),sh(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}i.allClipped=n}function uh(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 hh(t){var e=Qu(t),i=Zu(t);return!(t.lineDash||!(+e^+i)||e&&"string"!=typeof t.fill||i&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function ch(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function ph(t,e){return e?t.__hoverStyle||t.style:t.style}function fh(t,e){dh(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function dh(t,e,i,n){var r=e.transform;if(!e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1))return e.__dirty&=~rv,void(e.__isRendered=!1);var o=e.__clipPaths,a=i.prevElClipPaths,s=!1,l=!1;if((!a||ju(o,a))&&(a&&a.length&&(ch(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length&&(ch(t,i),t.save(),lh(o,t,i),s=!0),i.prevElClipPaths=o),i.allClipped)return void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=i.prevEl;u||(l=s=!0);var h=e instanceof X_&&e.autoBatch&&hh(e.style);s||uh(r,u.transform)?(ch(t,i),sh(t,e)):h||ch(t,i);var c=ph(e,i.inHover);e instanceof X_?(i.lastDrawType!==PT&&(l=!0,i.lastDrawType=PT),oh(t,e,u,l,i),h&&(i.batchFill||i.batchStroke)||t.beginPath(),eh(t,e,c,h),h&&(i.batchFill=c.fill||"",i.batchStroke=c.stroke||"")):e instanceof G_?(i.lastDrawType!==LT&&(l=!0,i.lastDrawType=LT),oh(t,e,u,l,i),nh(t,e,c)):e instanceof q_?(i.lastDrawType!==OT&&(l=!0,i.lastDrawType=OT),ah(t,e,u,l,i),ih(t,e,c)):e instanceof Sb&&(i.lastDrawType!==ET&&(l=!0,i.lastDrawType=ET),gh(t,e,i)),h&&n&&ch(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),i.prevEl=e,e.__dirty=0,e.__isRendered=!0}function gh(t,e,i){var n=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover};for(o=e.getCursor(),a=n.length;a>o;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),dh(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=r.length;h>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),dh(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function yh(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),r="svg"===n.painter.type;t.dirty&&RT.delete(t);var o=RT.get(t);if(o)return o;var a=h(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=[i],o=!0,s=0;s<zT.length;++s){var l=a[zT[s]],u=typeof l;if(null!=l&&!S(l)&&"string"!==u&&"number"!==u&&"boolean"!==u){o=!1;break}e.push(l)}var h;if(o){h=e.join(",")+(r?"-svg":"");var c=NT.get(h);c&&(r?t.svgElement=c:t.image=c)}var p,f=mh(a.dashArrayX),d=_h(a.dashArrayY),g=vh(a.symbol),y=xh(f),v=bh(d),m=!r&&Ay(),_=r&&n.painter.createSVGElement("g"),x=function(){for(var t=1,e=0,i=y.length;i>e;++e)t=zi(t,y[e]);for(var n=1,e=0,i=g.length;i>e;++e)n=zi(n,g[e].length);t*=n;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*i,m.height=x.height*i,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 h=l/2%g.length,c=0,y=0,b=0;c<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),T=c+f[u][y]*S,M=o+d[s]*S,C=f[u][y]*a.symbolSize,I=d[s]*a.symbolSize,A=b/2%g[h].length;!function(t,e,o,s,l){var u=r?1:i,h=Vu(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);r?_.appendChild(n.painter.paintOne(h)):fh(p,h)}(T,M,C,I,g[h][A])}c+=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&&NT.put(h,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/i,RT.set(t,s),t.dirty=!1,s}function vh(t){if(!t||0===t.length)return[["rect"]];if("string"==typeof t)return[[t]];for(var e=!0,i=0;i<t.length;++i)if("string"!=typeof t[i]){e=!1;break}if(e)return vh([t]);for(var n=[],i=0;i<t.length;++i)n.push("string"==typeof t[i]?[t[i]]:t[i]);return n}function mh(t){if(!t||0===t.length)return[[0,0]];if("number"==typeof t){var e=Math.ceil(t);return[[e,e]]}for(var i=!0,n=0;n<t.length;++n)if("number"!=typeof t[n]){i=!1;break}if(i)return mh([t]);for(var r=[],n=0;n<t.length;++n)if("number"==typeof t[n]){var e=Math.ceil(t[n]);r.push([e,e])}else{var e=y(t[n],function(t){return Math.ceil(t)});r.push(e.length%2==1?e.concat(e):e)}return r}function _h(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 i=y(t,function(t){return Math.ceil(t)});return t.length%2?i.concat(i):i}function xh(t){return y(t,function(t){return bh(t)})}function bh(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}function wh(t,e){t.eachRawSeries(function(i){if(!t.isSeriesFiltered(i)){var n=i.getData();n.hasItemVisual()&&n.each(function(t){var i=n.getItemVisual(t,"decal");if(i){n.ensureUniqueItemVisual(t,"style").decal=yh(i,e)}});var r=n.getVisual("decal");if(r){n.getVisual("style").decal=yh(r,e)}}})}function Sh(t){if(M(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 Th(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function Mh(t,e){for(var i=t.firstChild;i;){if(1===i.nodeType&&"stop"===i.nodeName.toLocaleLowerCase()){var n=i.getAttribute("offset"),r=void 0;r=n&&n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var o={};Eh(i,o,o);var a=o.stopColor||i.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}i=i.nextSibling}}function Ch(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),h(e.__inheritedStyle,t.__inheritedStyle))}function Ih(t){for(var e=Oh(t),i=[],n=0;n<e.length;n+=2){var r=parseFloat(e[n]),o=parseFloat(e[n+1]);i.push([r,o])}return i}function Ah(t,e,i,n,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(Lh(t,e),Eh(t,a,s),n||Rh(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=Dh(o,"fill",a.fill,i)),null!=a.stroke&&(o.style.stroke=Dh(o,"stroke",a.stroke,i)),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(Oh(a.lineDash),function(t){return parseFloat(t)})),("hidden"===a.visibility||"collapse"===a.visibility)&&(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function kh(t,e){var i=e.__selfStyle;if(i){var n=i.textBaseline,r=n;n&&"auto"!==n?"baseline"===n?r="alphabetic":"before-edge"===n||"text-before-edge"===n?r="top":"after-edge"===n||"text-after-edge"===n?r="bottom":("central"===n||"mathematical"===n)&&(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 Dh(t,e,i,n){var r=i&&i.match(WT);if(r){var o=Y(r[1]);return void n.push([t,e,o])}return"none"===i&&(i=null),i}function Ph(t,e){for(var i=0;i<e.length;i++){var n=e[i];n[0].style[n[1]]=t[n[2]]}}function Oh(t){return t.match(GT)||[]}function Lh(t,e){var i=t.getAttribute("transform");if(i){i=i.replace(/,/g," ");var n=[],r=null;i.replace(UT,function(t,e,i){return n.push(e,i),""});for(var o=n.length-1;o>0;o-=2){var a=n[o],s=n[o-1],l=Oh(a);switch(r=r||Be(),s){case"translate":Ye(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":We(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Xe(r,r,-parseFloat(l[0])*jT);break;case"skewX":Ve(r,[1,0,Math.tan(parseFloat(l[0])*jT),1,0,0],r);break;case"skewY":Ve(r,[1,Math.tan(parseFloat(l[0])*jT),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 Eh(t,e,i){var n=t.getAttribute("style");if(n){qT.lastIndex=0;for(var r;null!=(r=qT.exec(n));){var o=r[1],a=q(BT,o)?BT[o]:null;a&&(e[a]=r[2]);var s=q(HT,o)?HT[o]:null;s&&(i[s]=r[2])}}}function Rh(t,e,i){for(var n=0;n<FT.length;n++){var r=FT[n],o=t.getAttribute(r);null!=o&&(e[BT[r]]=o)}for(var n=0;n<VT.length;n++){var r=VT[n],o=t.getAttribute(r);null!=o&&(i[HT[r]]=o)}}function Nh(t,e){var i=e.width/t.width,n=e.height/t.height,r=Math.min(i,n);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 zh(t,e){return(new YT).parse(t,e)}function Bh(t,e){return Math.abs(t-e)<ZT}function Fh(t,e,i){var n=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];n+=pr(r[0],r[1],a[0],a[1],e,i),r=a}var s=t[0];return Bh(r[0],s[0])&&Bh(r[1],s[1])||(n+=pr(r[0],r[1],s[0],s[1],e,i)),0!==n}function Hh(t){t.silent=!1,t.isGroup&&t.traverse(function(t){t.silent=!1})}function Vh(t){var e=[],i=G();return g(t,function(t){if(null==t.namedFrom){var n=new $T(t.name,t.el);e.push(n),i.set(t.name,n)}}),{regions:e,regionsMap:i}}function Yh(t){if(!t.UTF8Encoding)return t;var e=t,i=e.UTF8Scale;null==i&&(i=1024);for(var n=e.features,r=0;r<n.length;r++){var o=n[r],a=o.geometry;if("Polygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)s[l]=Xh(s[l],a.encodeOffsets[l],i);else if("MultiPolygon"===a.type)for(var s=a.coordinates,l=0;l<s.length;l++)for(var u=s[l],h=0;h<u.length;h++)u[h]=Xh(u[h],a.encodeOffsets[l][h],i)}return e.UTF8Encoding=!1,e}function Xh(t,e,i){for(var n=[],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,n.push([s/i,l/i])}return n}function Wh(t,e){return t=Yh(t),y(m(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,n=t.geometry,r=[];if("Polygon"===n.type){var o=n.coordinates;r.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if("MultiPolygon"===n.type){var o=n.coordinates;g(o,function(t){t[0]&&r.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})})}var a=new JT(i[e||"name"],r,i.cp);return a.properties=i,a})}function Gh(t,e){if("china"===t){for(var i=0;i<e.length;i++)if(e[i].name===nM)return;e.push(new JT(nM,y(rM,function(t){return{type:"polygon",exterior:t}}),iM))}}function Uh(t,e){if("china"===t){var i=sM[e.name];if(i){var n=e.getCenter();n[0]+=i[0]/10.5,n[1]+=-i[1]/14,e.setCenter(n)}}}function jh(t,e){if("world"===t){var i=lM[e.name];if(i){var n=[i[0],i[1]];e.setCenter(n)}}}function qh(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:uM[0]})}function Zh(t){for(var e,i=0;i<t.length;i++){var n=t[i].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function Kh(t){return M(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}function Qh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.isDisposed()?void 0:$h(this,t,e)}}function Jh(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return $h(this,t,e)}}function $h(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),Hy.prototype[e].apply(t,i)}function tc(t,e,i){var n=rc(t);if(n)return n;var r=new UM(t,e,i);return r.id="ec_"+rC++,iC[r.id]=r,un(t,aC,r.id),XM(r),fM.trigger("afterinit",r),r}function ec(t){if(S(t)){var e=t;t=null,g(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+oC++,g(e,function(e){e.group=t})}return nC[t]=!0,t}function ic(t){nC[t]=!1}function nc(t){"string"==typeof t?t=iC[t]:t instanceof UM||(t=rc(t)),t instanceof UM&&!t.isDisposed()&&t.dispose()}function rc(t){return iC[hn(t,aC)]}function oc(t){return iC[t]}function ac(t,e){tC[t]=e}function sc(t){c(JM,t)<0&&JM.push(t)}function lc(t,e){vc(QM,t,e,yM)}function uc(t){cc("afterinit",t)}function hc(t){cc("afterupdate",t)}function cc(t,e){fM.on(t,e)}function pc(t,e,i){"function"==typeof e&&(i=e,e="");var n=A(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,KM[e]||(V(SM.test(n)&&SM.test(e)),ZM[n]||(ZM[n]={action:i,actionInfo:t}),KM[e]=n)}function fc(t,e){$w.register(t,e)}function dc(t){var e=$w.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function gc(t,e){vc($M,t,e,vM,"layout")}function yc(t,e){vc($M,t,e,mM,"visual")}function vc(t,e,i,n,r){if((T(e)||A(e))&&(i=e,e=n),!(c(lC,i)>=0)){lC.push(i);var o=iT.wrapStageHandler(i,r);o.__prio=e,o.__raw=i,t.push(o)}}function mc(t,e){eC[t]=e}function _c(t){n("createCanvas",t)}function xc(t,e,i){pM.registerMap(t,e,i)}function bc(t){return pM.getMapForUser(t)}function wc(t){return null==t?0:t.length||1}function Sc(t){return t}function Tc(t,e){var i={},n=i.encode={},r=G(),o=[],a=[],s={};g(t.dimensions,function(e){var i=t.getDimensionInfo(e),l=i.coordDim;if(l){var u=i.coordDimIndex;Mc(n,l)[u]=e,i.isExtraCoord||(r.set(l,1),Ic(i.type)&&(o[0]=e),Mc(s,l)[u]=t.getDimensionIndex(i.name)),i.defaultTooltip&&a.push(e)}Aw.each(function(t,e){var r=Mc(n,e),o=i.otherDims[e];null!=o&&!1!==o&&(r[o]=i.name)})});var l=[],u={};r.each(function(t,e){var i=n[e];u[e]=i[0],l=l.concat(i)}),i.dataDimsOnCoord=l,i.dataDimIndicesOnCoord=y(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),i.encodeFirstDimNotExtra=u;var h=n.label;h&&h.length&&(o=h.slice());var c=n.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=a,i.userOutput=new _C(s,e),i}function Mc(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function Cc(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Ic(t){return!("ordinal"===t||"time"===t)}function Ac(t){return t instanceof SC}function kc(t){for(var e=G(),i=0;i<(t||[]).length;i++){var n=t[i],r=A(n)?n.name:n;null!=r&&null==e.get(r)&&e.set(r,i)}return e}function Dc(t){var e=bC(t);return e.dimNameMap||(e.dimNameMap=kc(t.dimensionsDefine))}function Pc(t){return t>30}function Oc(t,e){return Lc(t,e).dimensions}function Lc(t,e){function i(t){var e=m[t];if(0>e){var i=a[t],n=A(i)?i:{name:i},r=new xC,o=n.name;null!=o&&null!=d.get(o)&&(r.name=r.displayName=o),null!=n.type&&(r.type=n.type),null!=n.displayName&&(r.displayName=n.displayName);var s=l.length;return m[t]=s,r.storeDimIndex=t,l.push(r),r}return l[e]}function n(t,e,i){null!=Aw.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}cl(t)||(t=fl(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=G(),l=[],c=Rc(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&Pc(c),f=a===t.dimensionsDefine,d=f?Dc(t):kc(a),y=e.encodeDefine;!y&&e.encodeDefaulter&&(y=e.encodeDefaulter(t,c));for(var v=G(y),m=new IS(c),_=0;_<m.length;_++)m[_]=-1;if(!p)for(var _=0;c>_;_++)i(_);v.each(function(t,e){var r=Fi(t).slice();if(1===r.length&&!M(r[0])&&r[0]<0)return void v.set(e,!1);var o=v.set(e,[]);g(r,function(t,r){var a=M(t)?d.get(t):t;null!=a&&c>a&&(o[r]=a,n(i(a),e,r))})});var x=0;g(o,function(t){var e,r,o,a;if(M(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=Fi(l),!l.length)for(var p=0;p<(r&&r.length||1);p++){for(;c>x&&null!=i(x).coordDim;)x++;c>x&&l.push(x++)}g(l,function(t,s){var l=i(t);if(f&&null!=a.type&&(l.type=a.type),n(h(l,a),e,s),null==l.name&&r){var u=r[s];!A(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&h(l.otherDims,o)})}});var b=e.generateCoord,w=e.generateCoordCount,S=null!=w;w=b?w||1:0;var T=b||"value";if(p)g(l,function(t){r(t)}),l.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var C=0;c>C;C++){var I=i(C),k=I.coordDim;null==k&&(I.coordDim=Nc(T,s,S),I.coordDimIndex=0,(!b||0>=w)&&(I.isExtraCoord=!0),w--),r(I),null!=I.type||Ds(t,C)!==zw.Must&&(!I.isExtraCoord||null==I.otherDims.itemName&&null==I.otherDims.seriesName)||(I.type="ordinal")}return Ec(l),new SC({source:t,dimensions:l,fullDimensionCount:c,dimensionOmitted:p})}function Ec(t){for(var e=G(),i=0;i<t.length;i++){var n=t[i],r=n.name,o=e.get(r)||0;o>0&&(n.name=r+(o-1)),o++,e.set(r,o)}}function Rc(t,e,i,n){var r=Math.max(t.dimensionsDetectedCount||1,e.length,i.length,n||0);return g(e,function(t){var e;A(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function Nc(t,e,i){var n=e.data;if(i||n.hasOwnProperty(t)){for(var r=0;n.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}function zc(t){var e=t.get("coordinateSystem"),i=new DC(e),n=PC[e];return n?(n(t,i,i.axisMap,i.categoryAxisMap),i):void 0}function Bc(t){return"category"===t.get("type")}function Fc(t,e,i){i=i||{};var n,r,o,a=i.byIndex,s=i.stackedCoordDimension;Hc(e)?n=e:(r=e.schema,n=r.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get("stack"));if(g(n,function(t,e){M(t)&&(n[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){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,d=u.type,y=0;g(n,function(t){t.coordDim===f&&y++});var v={name:h,coordDim:f,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},m={name:c,coordDim:c,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(c,d),m.storeDimIndex=o.ensureCalculationDimension(h,d)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(n.push(v),n.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Hc(t){return!Ac(t.schema)}function Vc(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Yc(t,e){return Vc(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Xc(t,e){var i,n=t.get("coordinateSystem"),r=$w.get(n);return e&&e.coordSysDims&&(i=y(e.coordSysDims,function(t){var i={name:t},n=e.axisMap.get(t);if(n){var r=n.get("type");i.type=Cc(r)}return i})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Wc(t,e,i){var n,r;return i&&g(t,function(t,o){var a=t.coordDim,s=i.categoryAxisMap.get(a);s&&(null==n&&(n=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==n||(t[n].otherDims.itemName=0),n}function Gc(t,e,i){i=i||{};var n,r=e.getSourceManager(),o=!1;t?(o=!0,n=fl(t)):(n=r.getSource(),o=n.sourceFormat===kw);var a=zc(e),s=Xc(e,a),l=i.useEncodeDefaulter,u=T(l)?l:l?w(Is,s,e):null,h={coordDimensions:s,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=Lc(n,h),p=Wc(c.dimensions,i.createInvertedIndices,a),f=o?null:r.getSharedDataStore(c),d=Fc(e,{schema:c,store:f}),g=new kC(c,e);g.setCalculationInfo(d);var y=null!=p&&Uc(n)?function(t,e,i,n){return n===p?i:this.defaultDimValueGetter(t,e,i,n)}:null;return g.hasItemOption=!1,g.initData(o?n:f,null,y),g}function Uc(t){if(t.sourceFormat===kw){var e=jc(t.data||[]);return null!=e&&!S(Vi(e))}}function jc(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function qc(t){return A(t)&&null!=t.value?t.value:t+""}function Zc(t,e,i,n){var r={},o=t[1]-t[0],a=r.interval=Di(o/e,!0);null!=i&&i>a&&(a=r.interval=i),null!=n&&a>n&&(a=r.interval=n);var s=r.intervalPrecision=Kc(a);return Jc(r.niceTickExtent=[RC(Math.ceil(t[0]/a)*a,s),RC(Math.floor(t[1]/a)*a,s)],t),r}function Kc(t){return xi(t)+2}function Qc(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Jc(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Qc(t,0,e),Qc(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function $c(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 ip(t){return t.get("stack")||FC+t.seriesIndex}function np(t){return t.dim+t.index}function rp(t,e){var i=[];return e.eachSeriesByType(t,function(t){up(t)&&!hp(t)&&i.push(t)}),i}function op(t){var e={};g(t,function(t){var i=t.coordinateSystem,n=i.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),o=n.dim+"_"+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),s=r.getStore(),l=0,u=s.count();u>l;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var i={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];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))}i[n]=o}}return i}function ap(t){var e=op(t),i=[];return g(t,function(t){var n,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)n=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]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);n=l?u/c*l:u}else{var p=t.getData();n=Math.abs(a[1]-a[0])/p.count()}var f=vi(t.get("barWidth"),n),d=vi(t.get("barMaxWidth"),n),g=vi(t.get("barMinWidth")||1,n),y=t.get("barGap"),v=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:f,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:np(o),stackId:ip(t)})}),sp(i)}function sp(t){var e={};g(t,function(t){var i=t.axisKey,n=t.bandWidth,r=e[i]||{bandWidth:n,remainedWidth:n,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[i]=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 h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var i={};return g(e,function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=x(n).length;o=Math.max(35-4*a,15)+"%"}var s=vi(o,r),l=vi(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),g(n,function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){var n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,u-=n+l*n,h--}else{var n=c;e&&n>e&&(n=Math.min(e,u)),i&&i>n&&(n=i),n!==c&&(t.width=n,u-=n+l*n,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,f=0;g(n,function(t){t.width||(t.width=c),p=t,f+=t.width*(1+l)}),p&&(f-=p.width*l);var d=-f/2;g(n,function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+l)})}),i}function lp(t,e,i){if(t&&e){var n=t[np(e)];return null!=n&&null!=i?n[ip(i)]:n}}function up(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function hp(t){return t.pipelineContext&&t.pipelineContext.large}function cp(t,e,i,n){var r=Ii(e),o=Ii(i),a=function(t){return qa(r,t,n)===qa(o,t,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},p=function(){return c()&&a("second")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();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?nw:iw,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function yp(t){return Di(t,!0)}function vp(t,e,i){var n=new Date(t);switch(Ya(e)){case"year":case"month":n[ns(i)](0);case"day":n[rs(i)](1);case"hour":n[os(i)](0);case"minute":n[as(i)](0);case"second":n[ss(i)](0),n[ls(i)](0)}return n.getTime()}function mp(t,e,i,n){function r(t,e,i,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();i>u&&u<=n[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}for(var o=cw,a=0,s=[],l=[],u=0,h=0,c=0;c<o.length&&a++<1e4;++c){var p=Ya(o[c]);if(Xa(o[c])){!function(t,o,a){var s=[],l=!o.length;if(!cp(Ya(t),n[0],n[1],i)){l&&(o=[{value:vp(new Date(n[0]),t,i)},{value:n[1]}]);for(var u=0;u<o.length-1;u++){var h=o[u].value,c=o[u+1].value;if(h!==c){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(i),d=is(i);break;case"half-year":case"quarter":case"month":p=fp(e),f=Ka(i),d=ns(i);break;case"week":case"half-week":case"day":p=pp(e,31),f=Qa(i),d=rs(i),g=!0;break;case"half-day":case"quarter-day":case"hour":p=dp(e),f=Ja(i),d=os(i);break;case"minute":p=gp(e,!0),f=$a(i),d=as(i);break;case"second":p=gp(e,!1),f=ts(i),d=ss(i);break;case"millisecond":p=yp(e),f=es(i),d=ls(i)}r(p,h,c,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[c],s[s.length-1]||[],l);if(p!==(o[c+1]?Ya(o[c+1]):null)){if(l.length){h=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>=n[0]&&g<=n[1]&&u++)}var v=(n[1]-n[0])/e;if(u>1.5*v&&h>v/1.5)break;if(s.push(f),u>v||t===o[c])break}l=[]}}}for(var _=m(y(s,function(t){return m(t,function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd})}),function(t){return t.length>0}),x=[],b=_.length-1,c=0;c<_.length;++c)for(var w=_[c],S=0;S<w.length;++S)x.push({value:w[S].value,level:b-c});x.sort(function(t,e){return t.value-e.value});for(var T=[],c=0;c<x.length;++c)(0===c||x[c].value!==x[c-1].value)&&T.push(x[c]);return T}function _p(t,e){return GC(t,xi(e))}function xp(t,e,i){var n=t.rawExtentInfo;return n||(n=new JC(t,e,i),t.rawExtentInfo=n,n)}function bp(t,e){return null==e?null:R(e)?NaN:t.parse(e)}function wp(t,e){var i=t.type,n=xp(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var r=n.min,o=n.max,a=e.ecModel;if(a&&"time"===i){var s=rp("bar",a),l=!1;if(g(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=ap(s),h=Sp(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function Sp(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],a=lp(n,i.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,h=e-t,c=1-(s+l)/o,p=h/c-h;return e+=p*(l/u),t-=p*(s/u),{min:t,max:e}}function Tp(t,e){var i=wp(t,e),n=i.extent,r=e.get("splitNumber");t instanceof KC&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(n[0],n[1]),t.niceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.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 Mp(t,e){if(e=e||t.get("type"))switch(e){case"category":return new NC({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new VC({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(OC.getClass(e)||BC)}}function Cp(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)}function Ip(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(i,n){return t.scale.getFormattedLabel(i,n,e)}}(e):"string"==typeof e?function(e){return function(i){var n=t.scale.getLabel(i);return e.replace("{value}",null!=n?n:"")}}(e):"function"==typeof e?function(e){return function(n,r){return null!=i&&(r=n.value-i),e(Ap(t,n),r,null!=n.level?{level:n.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Ap(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function kp(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,r,o=i.getExtent();i instanceof NC?r=i.count():(n=i.getTicks(),r=n.length);var a,s=t.getLabelModel(),l=Ip(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;r>h;h+=u){var c=n?n[h]:{value:o[0]+h},p=l(c,h),f=s.getTextRect(p),d=Dp(f,s.get("rotate")||0);a?a.union(d):a=d}return a}}function Dp(t,e){var i=e*Math.PI/180,n=t.width,r=t.height,o=n*Math.abs(Math.cos(i))+Math.abs(r*Math.sin(i)),a=n*Math.abs(Math.sin(i))+Math.abs(r*Math.cos(i));return new om(t.x,t.y,o,a)}function Pp(t){var e=t.get("interval");return null==e?"auto":e}function Op(t){return"category"===t.type&&0===Pp(t.getLabelModel())}function Lp(t,e){var i={};return g(t.mapDimensionsAll(e),function(e){i[Yc(t,e)]=!0}),x(i)}function Ep(t){return Gc(null,t)}function Rp(t,e){var i=e;e instanceof Ub||(i=new Ub(e));var n=Mp(i);return n.setExtent(t[0],t[1]),Tp(n,i),n}function Np(t){f(t,eI)}function zp(t,e){return e=e||{},Aa(t,null,null,"normal"!==e.state)}function Bp(t){return S(t)?void g(t,function(t){Bp(t)}):void(c(rI,t)>=0||(rI.push(t),T(t)&&(t={install:t}),t.install(oI)))}function Fp(t){return"category"===t.type?Vp(t):Wp(t)}function Hp(t,e){return"category"===t.type?Xp(t,e):{ticks:y(t.scale.getTicks(),function(t){return t.value})}}function Vp(t){var e=t.getLabelModel(),i=Yp(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function Yp(t,e){var i=Gp(t,"labels"),n=Pp(e),r=Up(i,n);if(r)return r;var o,a;return T(n)?o=Jp(t,n):(a="auto"===n?qp(t):n,o=Qp(t,a)),jp(i,n,{labels:o,labelCategoryInterval:a})}function Xp(t,e){var i=Gp(t,"ticks"),n=Pp(e),r=Up(i,n);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),T(n))o=Jp(t,n,!0);else if("auto"===n){var s=Yp(t,t.getLabelModel());a=s.labelCategoryInterval,o=y(s.labels,function(t){return t.tickValue})}else a=n,o=Qp(t,a,!0);return jp(i,n,{ticks:o,tickCategoryInterval:a})}function Wp(t){var e=t.scale.getTicks(),i=Ip(t);return{labels:y(e,function(e,n){return{formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Gp(t,e){return cI(t)[e]||(cI(t)[e]=[])}function Up(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function jp(t,e,i){return t.push({key:e,value:i}),i}function qp(t){var e=cI(t).autoInterval;return null!=e?e:cI(t).autoInterval=t.calculateCategoryInterval()}function Zp(t){var e=Kp(t),i=Ip(t),n=(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),h=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),p=0,f=0;l<=o[1];l+=s){var d=0,g=0,y=Qe(i({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/h,m=f/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(v,m))),x=cI(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 Kp(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 Qp(t,e,i){function n(t){var e={value:t};l.push(i?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),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var p=Op(t),f=s.get("showMinLabel")||p,d=s.get("showMaxLabel")||p;f&&h!==a[0]&&n(a[0]);for(var g=h;g<=a[1];g+=u)n(g);return d&&g-u!==a[1]&&n(a[1]),l}function Jp(t,e,i){var n=t.scale,r=Ip(t),o=[];return g(n.getTicks(),function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&o.push(i?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function $p(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function tf(t,e,i,n){function r(t,e){return t=mi(t),e=mi(e),c?t>e:e>t}var o=e.length;if(t.onBand&&!i&&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,h=(e[o-1].coord-e[0].coord)/u;g(e,function(t){t.coord-=h/2});s=1+t.scale.getExtent()[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var c=l[0]>l[1];r(e[0].coord,l[0])&&(n?e[0].coord=l[0]:e.shift()),n&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(n?a.coord=l[1]:e.pop()),n&&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=BS.extend(t);return BS.registerClass(e),e}function of(t){var e=YS.extend(t);return YS.registerClass(e),e}function af(t,e,i,n,r){var o=i.width,a=i.height;switch(t){case"top":n.set(i.x+o/2,i.y-e),r.set(0,-1);break;case"bottom":n.set(i.x+o/2,i.y+a+e),r.set(0,1);break;case"left":n.set(i.x-e,i.y+a/2),r.set(-1,0);break;case"right":n.set(i.x+o+e,i.y+a/2),r.set(1,0)}}function sf(t,e,i,n,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*i+t,c=s*i+e;if(Math.abs(n-r)%dI<1e-4)return l[0]=h,l[1]=c,u-i;if(o){var p=n;n=hr(r),r=hr(p)}else n=hr(n),r=hr(r);n>r&&(r+=dI);var f=Math.atan2(s,a);if(0>f&&(f+=dI),f>=n&&r>=f||f+dI>=n&&r>=f+dI)return l[0]=h,l[1]=c,u-i;var d=i*Math.cos(n)+t,g=i*Math.sin(n)+e,y=i*Math.cos(r)+t,v=i*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,i,n,r,o,a,s){var l=r-t,u=o-e,h=i-t,c=n-e,p=Math.sqrt(h*h+c*c);h/=p,c/=p;var f=l*h+u*c,d=f/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var g=a[0]=t+d*h,y=a[1]=e+d*c;return Math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function uf(t,e,i,n,r,o,a){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n);var s=t+i,l=e+n,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function hf(t,e,i){var n=uf(e.x,e.y,e.width,e.height,t.x,t.y,vI);return i.set(vI[0],vI[1]),n}function cf(t,e,i){for(var n,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,p=t.y,f=0;f<h.length;){var d=h[f++];1===f&&(o=h[f],a=h[f+1],s=o,l=a);var g=u;switch(d){case gI.M:s=h[f++],l=h[f++],o=s,a=l;break;case gI.L:g=lf(o,a,h[f],h[f+1],c,p,vI,!0),o=h[f++],a=h[f++];break;case gI.C:g=Gn(o,a,h[f++],h[f++],h[f++],h[f++],h[f],h[f+1],c,p,vI),o=h[f++],a=h[f++];break;case gI.Q:g=Jn(o,a,h[f++],h[f++],h[f],h[f+1],c,p,vI),o=h[f++],a=h[f++];break;case gI.A:var y=h[f++],v=h[f++],m=h[f++],_=h[f++],x=h[f++],b=h[f++];f+=1;var w=!!(1-h[f++]);n=Math.cos(x)*m+y,r=Math.sin(x)*_+v,1>=f&&(s=n,l=r);g=sf(y,v,_,x,x+b,w,(c-y)*_/m+y,p,vI),o=Math.cos(x+b)*m+y,a=Math.sin(x+b)*_+v;break;case gI.R:s=o=h[f++],l=a=h[f++];g=uf(s,l,h[f++],h[f++],c,p,vI);break;case gI.Z:g=lf(o,a,s,l,c,p,vI,!0),o=s,a=l}u>g&&(u=g,i.set(vI[0],vI[1]))}return u}function pf(t,e){if(t){var i=t.getTextGuideLine(),n=t.getTextContent();if(n&&i){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||yI,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&Ge([],h),p=e.get("length2")||0;u&&xI.copy(u);for(var f=0;f<a.length;f++){af(a[f],0,s,mI,bI),Kv.scaleAndAdd(_I,mI,bI,p),_I.transform(c);var d=t.getBoundingRect(),g=u?u.distance(_I):t instanceof X_?cf(_I,t.path,xI):hf(_I,d,xI);l>g&&(l=g,_I.transform(h),xI.transform(h),xI.toArray(o[0]),_I.toArray(o[1]),mI.toArray(o[2]))}ff(o,e.get("minTurnAngle")),i.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]),Kv.sub(bI,mI,_I),Kv.sub(wI,xI,_I);var i=bI.len(),n=wI.len();if(!(.001>i||.001>n)){bI.scale(1/i),wI.scale(1/n);if(bI.dot(wI)>Math.cos(e)){var r=lf(_I.x,_I.y,xI.x,xI.y,mI.x,mI.y,SI,!1);TI.fromArray(SI),TI.scaleAndAdd(wI,r/Math.tan(Math.PI-e));var o=xI.x!==_I.x?(TI.x-_I.x)/(xI.x-_I.x):(TI.y-_I.y)/(xI.y-_I.y);if(isNaN(o))return;0>o?Kv.copy(TI,_I):o>1&&Kv.copy(TI,xI),TI.toArray(t[1])}}}}function df(t,e,i,n){var r="normal"===i,o=r?t:t.ensureState(i);o.ignore=e;var a=n.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function gf(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),i>0&&n.length>=3){var r=Ry(n[0],n[1]),o=Ry(n[1],n[2]);if(!r||!o)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var a=Math.min(r,o)*i,s=ft([],n[1],n[0],a/r),l=ft([],n[1],n[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],n[2][0],n[2][1])}else for(var h=1;h<n.length;h++)t.lineTo(n[h][0],n[h][1])}function yf(t,e,i){var n=t.getTextGuideLine(),r=t.getTextContent();if(!r)return void(n&&t.removeTextGuideLine());for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<fx.length;l++){var u=fx[l],c=e[u],p="normal"===u;if(c){var f=c.get("show");if((p?s:z(r.states[u]&&r.states[u].ignore,s))||!z(f,a)){var d=p?n:n&&n.states.normal;d&&(d.ignore=!0);continue}n||(n=new rb,t.setTextGuideLine(n),p||!s&&a||df(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),df(n,!1,u,c)}}if(n){h(n.style,i),n.style.fill=null;var g=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=g||!1,n.buildPath=gf}}function vf(t,e){e=e||"labelLine";for(var i={normal:t.getModel(e)},n=0;n<px.length;n++){var r=px[n];i[r]=t.getModel([r,e])}return i}function mf(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];if(!n.defaultAttr.ignore){var r=n.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 h=s?new bb(a,o):null;e.push({label:r,labelLine:n.labelLine,rect:u,localRect:a,obb:h,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return e}function _f(t,e,i,n,r,o){function a(){b=S.rect[e]-n,w=r-T.rect[e]-T.rect[i]}function s(t,e,i){if(0>t){var n=Math.min(e,-t);if(n>0){l(n*i,0,c);var r=n+t;0>r&&u(-r*i,1)}else u(-t*i,1)}}function l(i,n,r){0!==i&&(d=!0);for(var o=n;r>o;o++){var a=t[o];a.rect[e]+=i,a.label[e]+=i}}function u(n,r){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[i],0);o.push(h),a+=h}if(a){var p=Math.min(Math.abs(n)/a,r);if(n>0)for(var s=0;c-1>s;s++){var f=o[s]*p;l(f,0,s+1)}else for(var s=c-1;s>0;s--){var f=o[s-1]*p;l(-f,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var i=Math.ceil(t/(c-1)),n=0;c-1>n;n++)if(e>0?l(i,0,n+1):l(-i,c-n-1,c),0>=(t-=i))return}var c=t.length;if(!(2>c)){t.sort(function(t,i){return t.rect[e]-i.rect[e]});for(var p,f=0,d=!1,g=[],y=0,v=0;c>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]+_[i]}y>0&&o&&l(-y/c,0,c);var b,w,S=t[0],T=t[c-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&&h(-b),0>w&&h(w),d}}function xf(t,e,i,n){return _f(t,"x","width",e,i,n)}function bf(t,e,i,n){return _f(t,"y","height",e,i,n)}function wf(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var i=[];t.sort(function(t,e){return e.priority-t.priority});for(var n=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,h=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var c=o.obb,p=!1,f=0;f<i.length;f++){var d=i[f];if(n.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new bb(d.localRect,d.transform)),c||(c=new bb(s,l)),c.intersect(d.obb)){p=!0;break}}}p?(e(u),h&&e(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),i.push(o))}}function Sf(t){if(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].slice());return e}}function Tf(t,e){var i=t.label,n=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:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:Sf(n&&n.shape.points)}}function Mf(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null!=e[r]&&(t[r]=e[r])}}function Cf(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e){var i=PI(e).labelManager;i||(i=PI(e).labelManager=new DI),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=PI(e).labelManager;i.updatedSeries.forEach(function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function If(){return!1}function Af(t,e,i){var n=Ay(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}function kf(t){return parseInt(t,10)}function Df(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}function Pf(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}function Of(t){t.registerPainter("canvas",EI)}function Lf(t){t.registerComponentModel(RI),t.registerComponentView(NI)}function Ef(t,e){var i=t.mapDimensionsAll("defaultedLabel"),n=i.length;if(1===n){var r=Ml(t,e,i[0]);return null!=r?r+"":null}if(n){for(var o=[],a=0;a<i.length;a++)o.push(Ml(t,e,i[a]));return o.join(" ")}}function Rf(t,e){var i=t.mapDimensionsAll("defaultedLabel");if(!S(e))return e+"";for(var n=[],r=0;r<i.length;r++){var o=t.getDimensionIndex(i[r]);o>=0&&n.push(e[o])}return n.join(" ")}function Nf(t,e){this.parent.drift(t,e)}function zf(t,e,i,n){return!(!e||isNaN(e[0])||isNaN(e[1])||n.isIgnore&&n.isIgnore(i)||n.clipShape&&!n.clipShape.contain(e[0],e[1])||"none"===t.getItemVisual(i,"symbol"))}function Bf(t){return null==t||A(t)||(t={isIgnore:t}),t||{}}function Ff(t){var e=t.hostModel,i=e.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),hoverScale:i.get("scale"),labelStatesModels:Ia(e),cursorStyle:e.get("cursor")}}function Hf(t,e,i){var n=t.getBaseAxis(),r=t.getOtherAxis(n),o=Vf(r,i),a=n.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=y(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,f=e.getCalculationInfo("stackResultDimension");return Vc(e,c[0])&&(p=!0,c[0]=f),Vc(e,c[1])&&(p=!0,c[1]=f),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Vf(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function Yf(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function Xf(t){return S(t)?HI?new Float32Array(t):t:new VI(t)}function Wf(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}function Gf(t,e,i,n,r,o,a){for(var s=Wf(t,e),l=[],u=[],h=[],c=[],p=[],f=[],d=[],g=Hf(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],T=y[b+1],M=v[w],C=v[w+1];(isNaN(S)||isNaN(T))&&(S=M,T=C),l.push(S,T),u.push(M,C),h.push(i[b],i[b+1]),c.push(n[w],n[w+1]),d.push(e.getRawIndex(_.idx1));break;case"+":var I=_.idx,A=g.dataDimsForPoint,k=r.dataToPoint([e.get(A[0],I),e.get(A[1],I)]);w=2*I,l.push(k[0],k[1]),u.push(v[w],v[w+1]);var D=Yf(g,r,e,I);h.push(D[0],D[1]),c.push(n[w],n[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 P=l.length,O=Xf(P),L=Xf(P),E=Xf(P),R=Xf(P),N=[],m=0;m<f.length;m++){var z=f[m],B=2*m,F=2*z;O[B]=l[F],O[B+1]=l[F+1],L[B]=u[F],L[B+1]=u[F+1],E[B]=h[F],E[B+1]=h[F+1],R[B]=c[F],R[B+1]=c[F+1],N[m]=p[z]}return{current:O,next:L,stackedOnCurrent:E,stackedOnNext:R,status:N}}function Uf(t,e){return isNaN(t)||isNaN(e)}function jf(t,e,i,n,r,o,a,s,l){for(var u,h,c,p,f,d,g=i,y=0;n>y;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(Uf(v,m)){if(l){g+=o;continue}break}if(g===i)t[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var _=v-u,x=m-h;if(.5>_*_+x*x){g+=o;continue}if(a>0){var b=g+o,w=e[2*b],S=e[2*b+1],T=y+1;if(l)for(;Uf(w,S)&&n>T;)T++,b+=o,w=e[2*b],S=e[2*b+1];var M=.5,C=0,I=0,A=void 0,k=void 0;if(T>=n||Uf(w,S))f=v,d=m;else{C=w-u,I=S-h;var D=v-u,P=w-v,O=m-h,L=S-m,E=void 0,R=void 0;"x"===s?(E=Math.abs(D),R=Math.abs(P),f=v-E*a,d=m,A=v+E*a,k=m):"y"===s?(E=Math.abs(O),R=Math.abs(L),f=v,d=m-E*a,A=v,k=m+E*a):(E=Math.sqrt(D*D+O*O),R=Math.sqrt(P*P+L*L),M=R/(R+E),f=v-C*a*(1-M),d=m-I*a*(1-M),A=v+C*a*M,k=m+I*a*M,A=YI(A,XI(w,v)),k=YI(k,XI(S,m)),A=XI(A,YI(w,v)),k=XI(k,YI(S,m)),C=A-v,I=k-m,f=v-C*E/R,d=m-I*E/R,f=YI(f,XI(u,v)),d=YI(d,XI(h,m)),f=XI(f,YI(u,v)),d=XI(d,YI(h,m)),C=v-f,I=m-d,A=v+C*R/E,k=m+I*R/E)}t.bezierCurveTo(c,p,f,d,v,m),c=A,p=k}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}function qf(t,e,i,n,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=i.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=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&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);qo(c,{shape:{width:l,height:u,x:a,y:s}},i,null,n,"function"==typeof r?function(t){r(t,c)}:null)}return c}function Zf(t,e,i){var n=t.getArea(),r=mi(n.r0,1),o=mi(n.r,1),a=new Jx({shape:{cx:mi(t.cx,1),cy:mi(t.cy,1),r0:r,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){"angle"===t.getBaseAxis().dim?a.shape.endAngle=n.startAngle:a.shape.r=r,qo(a,{shape:{endAngle:n.endAngle,r:o}},i)}return a}function Kf(t,e){return t.type===e}function Qf(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return!0}}function Jf(t){for(var e=1/0,i=1/0,n=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),r=Math.max(s,r))}return[[e,i],[n,r]]}function $f(t,e){var i=Jf(t),n=i[0],r=i[1],o=Jf(e),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(n[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,i){if(!i.valueDim)return[];for(var n=e.count(),r=Xf(2*n),o=0;n>o;o++){var a=Yf(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function id(t,e,i){for(var n=e.getBaseAxis(),r="x"===n.dim||"radius"===n.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]),i){case"end":s[r]=u[r],s[1-r]=l[1-r],o.push(s[0],s[1]);break;case"middle":var h=(l[r]+u[r])/2,c=[];s[r]=c[r]=h,s[1-r]=l[1-r],c[1-r]=u[1-r],o.push(s[0],s[1]),o.push(c[0],c[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 nd(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var n,r,o=i.length-1;o>=0;o--){var a=t.getDimensionInfo(i[o].dimension);if("x"===(n=a&&a.coordDim)||"y"===n){r=i[o];break}}if(r){var s=e.getAxis(n),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}}),h=u.length,c=r.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=u[0].coord-10,f=u[h-1].coord+10,d=f-p;if(.001>d)return"transparent";g(u,function(t){t.offset=(t.coord-p)/d}),u.push({offset:h?u[h-1].offset:.5,color:c[1]||"transparent"}),u.unshift({offset:h?u[0].offset:.5,color:c[0]||"transparent"});var v=new gb(0,0,0,0,u,!0);return v[n]=p,v[n+"2"]=f,v}}}function rd(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.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 i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*BI.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)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,i){for(var n,r,o=t.length/2,a="x"===i?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>=n&&r>=e||n>=e&&e>=r){l=u;break}s=u,n=r}else n=r;return{range:[s,l],t:(e-n)/(r-n)}}function hd(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 cd(t,e,i,n){if(Kf(e,"cartesian2d")){var r=n.getModel("endLabel"),o=r.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},l=hd(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),h=qf(e,i,n,function(){var e=t._endLabel;e&&i&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=h.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=2*p):(c.x-=p,c.width+=2*p)}return l&&l(1,h),h}return Zf(e,i,n)}function pd(t,e){var i=e.getBaseAxis(),n=i.isHorizontal(),r=i.inverse,o=n?r?"right":"left":"center",a=n?"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 i=t.getData(),n=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(n){var a=y(n.dimensions,function(t){return i.mapDimension(t)}).slice(0,2),s=a.length,l=i.getCalculationInfo("stackResultDimension");Vc(i,a[0])&&(a[0]=l),Vc(i,a[1])&&(a[1]=l);var u=i.getStore(),h=i.getDimensionIndex(a[0]),c=i.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var i=t.end-t.start,r=o&&Xf(i*s),a=[],l=[],p=t.start,f=0;p<t.end;p++){var d=void 0;if(1===s){var g=u.get(h,p);d=n.dataToPoint(g,null,l)}else a[0]=u.get(h,p),a[1]=u.get(c,p),d=n.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,i){var n=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=n.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(p>1){"lttb"===r&&t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/p));var f=void 0;"string"==typeof r?f=ZI[r]:"function"==typeof r&&(f=r),f&&t.setData(n.downSample(n.mapDimension(l.dim),1/p,f,KI))}}}}}function gd(t){t.registerChartView(qI),t.registerSeriesModel(zI),t.registerLayout(fd("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dd("line"))}function yd(t,i,n,r){g(oA,function(o,a){var l=s(s({},rA[a],!0),r,!0),u=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i+"Axis."+a,e}return e(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var i=bs(this),n=i?Ss(t):{};s(t,e.getTheme().get(a+"Axis")),s(t,this.getDefaultOption()),t.type=vd(t),i&&ws(t,n,i)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=EC.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=i+"Axis."+a,n.defaultOption=l,n}(n);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(i+"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,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=n.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,d="x"===u?[c[2]-f,c[3]+f]:[c[0]-f,c[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]]:c[0],"x"===u?d[p[l]]:c[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(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function xd(t){return"cartesian2d"===t.get("coordinateSystem")}function bd(t){var e={xAxisModel:null,yAxisModel:null};return g(e,function(i,n){var r=n.replace(/Model$/,""),o=t.getReferringComponents(r,Am).models[0];e[n]=o}),e}function wd(t,e){return t.getCoordSysModel()===e}function Sd(t,e,i,n){function r(t){return t.dim+"_"+t.index}i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=i.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)Td(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&Td(a[h])&&!n[r(a[h])]){o=a[h];break}o&&(n[r(o)]=!0)}}function Td(t){return t&&"category"!==t.type&&"time"!==t.type&&Cp(t)}function Md(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function Cd(t,e,i,n){var r,o,a=Mi(i-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Ci(a-cA/2)?(o=l?"bottom":"top",r="center"):Ci(a-1.5*cA)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*cA>a&&a>cA/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Id(t,e,i){if(!Op(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],i=i||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],h=i[1],c=i[i.length-1],p=i[i.length-2];!1===n?(Ad(o),Ad(u)):kd(o,a)&&(n?(Ad(a),Ad(h)):(Ad(o),Ad(u))),!1===r?(Ad(s),Ad(c)):kd(l,s)&&(r?(Ad(l),Ad(p)):(Ad(s),Ad(c)))}}function Ad(t){t&&(t.ignore=!0)}function kd(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var r=Fe([]);return Xe(r,r,-t.rotation),i.applyTransform(Ve([],r,t.getLocalTransform())),n.applyTransform(Ve([],r,e.getLocalTransform())),i.intersect(n)}}function Dd(t){return"middle"===t||"center"===t}function Pd(t,e,i,n,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]=i,e&&(dt(a,a,e),dt(s,s,e));var h=new sb({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});h.anid=r+"_"+t[l].tickValue,o.push(h)}return o}function Od(t,e,i,n){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),u=r.getTicksCoords(),c=Pd(u,e.transform,l,h(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<c.length;p++)t.add(c[p]);return c}}function Ld(t,e,i,n){var r=i.axis,o=i.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),u=h(s.getLineStyle(),h(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var p=Pd(a[c],e.transform,l,u,"minorticks_"+c),f=0;f<p.length;f++)t.add(p[f])}}function Ed(t,e,i,n){var r=i.axis;if(N(n.axisLabelShow,i.get(["axisLabel","show"]))&&!r.scale.isBlank()){var o=i.getModel("axisLabel"),a=o.get("margin"),s=r.getViewLabels(),l=(N(n.labelRotate,o.get("rotate"))||0)*cA/180,u=pA.innerTextLayout(n.rotation,l,n.labelDirection),h=i.getCategories&&i.getCategories(!0),c=[],p=pA.isLabelSilent(i),f=i.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(h&&h[d]){var m=h[d];A(m)&&m.textStyle&&(v=new Ub(m.textStyle,o,i.ecModel))}var _=v.getTextColor()||i.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(d),b=new ex({x:x,y:n.labelOffset+n.labelDirection*a,rotation:u.rotation,silent:p,z2:10,style:Aa(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=pA.makeAxisEventDataBase(i);w.targetType="axisLabel",w.value=y,rx(b).eventData=w}e.add(b),b.updateTransform(),c.push(b),t.add(b),b.decomposeTransform()}),c}}function Rd(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Nd(i,t,e),i.seriesInvolved&&Bd(i,t),i}function Nd(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];g(i.getCoordinateSystems(),function(i){function s(n,s,l){var h=l.model.getModel("axisPointer",r),p=h.get("show");if(p&&("auto"!==p||n||Wd(h))){null==s&&(s=h.get("triggerTooltip")),h=n?zd(l,c,r,e,n,s):h;var f=h.get("snap"),d=Gd(l.model),g=s||f||"category"===l.type,y=t.axesInfo[d]={key:d,axis:l,coordSys:i,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:Wd(h),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(i.axisPointerEnabled){var l=Gd(i.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=i;var h=i.model,c=h.getModel("tooltip",n);if(g(i.getAxes(),w(s,!1,null)),i.getTooltipAxes&&n&&c.get("show")){var p="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),d=i.getTooltipAxes(c.get(["axisPointer","axis"]));(p||f)&&g(d.baseAxes,w(s,!f||"cross",p)),f&&g(d.otherAxes,w(s,"cross",!1))}}})}function zd(t,e,i,n,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 c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===r){var p=s.get(["label","show"]);if(c.show=null==p||p,!o){var f=u.lineStyle=s.get("crossStyle");f&&h(c,f.textStyle)}}return t.model.getModel("axisPointer",new Ub(u,i,n))}function Bd(t,e){e.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&g(t.coordSysAxesInfo[Gd(i.model)],function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}function Fd(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Hd(o[n+"AxisId"],i.id)||Hd(o[n+"AxisIndex"],i.componentIndex)||Hd(o[n+"AxisName"],i.name))return r}}function Hd(t,e){return"all"===t||S(t)&&c(t,e)>=0||t===e}function Vd(t){var e=Yd(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=Wd(i);null==o&&(r.status=s?"show":"hide");var l=n.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 Yd(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Gd(t)]}function Xd(t){var e=Yd(t);return e&&e.axisPointerModel}function Wd(t){return!!t.get(["handle","show"])}function Gd(t){return t.type+"||"+t.id}function Ud(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,p=yA(t).splitAreaColors,f=G(),d=0;if(p)for(var g=0;g<u.length;g++){var y=p.get(u[g].tickValue);if(null!=y){d=(y+(c-1)*g)%c;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,T=void 0;r.isHorizontal()?(x=v,b=l.y,w=_-x,T=l.height,v=x+w):(x=l.x,b=v,w=l.width,T=_-b,v=b+T);var M=u[g-1].tickValue;null!=M&&f.set(M,d),e.add(new J_({anid:null!=M?"area_"+M:null,shape:{x:x,y:b,width:w,height:T},style:h({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}yA(t).splitAreaColors=f}}}function jd(t){yA(t).splitAreaColors=null}function qd(t){t.registerComponentView(SA),t.registerComponentModel(QI),t.registerCoordinateSystem("cartesian2d",hA),yd(t,"x",JI,TA),yd(t,"y",JI,TA),t.registerComponentView(bA),t.registerComponentView(wA),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Zd(t,e){var i=pw(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new J_({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}function Kd(t,e,i,n,r,o,a){for(var s=e.getModel("itemStyle"),l=Xb.concat([["decal"]]),u={},h=0;h<l.length;++h){var c=l[h][l[h].length-1],p=l[h][0],f=s.getShallow(c);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:n).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=Hb.concat([["inactiveColor"],["inactiveWidth"]]),y={},h=0;h<g.length;++h){var c=g[h][1],p=g[h][0],f=d.getShallow(c);"inherit"===f?y[p]=n[p]:"auto"===f&&"lineWidth"===p?y.lineWidth=n.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=i.get("inactiveColor"),y.lineWidth=i.get("inactiveWidth")}return{itemStyle:u,lineStyle:y}}function Qd(t){var e=t.icon||"roundRect",i=Vu(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.rotation=(t.iconRotate||0)*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i}function Jd(t,e,i,n){eg(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),tg(t,e,i,n)}function $d(t){for(var e,i=t.getZr().storage.getDisplayList(),n=0,r=i.length;r>n&&!(e=i[n].states.emphasis);)n++;return e&&e.hoverLayer}function tg(t,e,i,n){$d(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function eg(t,e,i,n){$d(i)||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function ig(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function ng(t,e,i){var n,r={},o="toggleSelected"===t;return i.eachComponent("legend",function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name)),g(i.getData(),function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);r[e]=r.hasOwnProperty(e)?r[e]&&n:n}})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function rg(t){t.registerAction("legendToggleSelect","legendselectchanged",w(ng,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",w(ng,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",w(ng,"inverseSelect")),t.registerAction("legendSelect","legendselected",w(ng,"select")),t.registerAction("legendUnSelect","legendunselected",w(ng,"unSelect"))}function og(t){t.registerComponentModel(CA),t.registerComponentView(DA),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,ig),t.registerSubTypeDefaulter("legend",function(){return"plain"}),rg(t)}function ag(t,e,i){var n=t.getOrient(),r=[1,1];r[n.index]=0,ws(e,i,{type:"box",ignoreSize:!!r})}function sg(t){t.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(i)})})}function lg(t){Bp(og),t.registerComponentModel(PA),t.registerComponentView(RA),sg(t)}function ug(t,e,i,n){hg(NA(i).lastProp,n)||(NA(i).lastProp=n,e?jo(i,n,t):(i.stopAnimation(),i.attr(n)))}function hg(t,e){if(A(t)&&A(e)){var i=!0;return g(e,function(e,n){i=i&&hg(t[n],e)}),!!i}return t===e}function cg(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,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}function dg(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function gg(t,e,i,n,r){var o=i.get("value"),a=vg(o,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),s=i.getModel("label"),l=pw(s.get("padding")||0),u=s.getFont(),h=Qe(a,u),c=r.position,p=h.width+l[1]+l[3],f=h.height+l[0]+l[2],d=r.align;"right"===d&&(c[0]-=p),"center"===d&&(c[0]-=p/2);var g=r.verticalAlign;"bottom"===g&&(c[1]-=f),"middle"===g&&(c[1]-=f/2),yg(c,p,f,n);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Aa(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function yg(t,e,i,n){var r=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function vg(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Ap(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};g(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)}),M(a)?o=a.replace("{value}",o):T(a)&&(o=a(s))}return o}function mg(t,e,i){var n=Be();return Xe(n,n,i.rotation),Ye(n,n,i.position),ca([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function _g(t,e,i,n,r,o){var a=pA.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get(["label","margin"]),gg(e,n,r,o,{position:mg(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function xg(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function bg(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function wg(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function Sg(t){return"x"===t.dim?0:1}function Tg(t,e,i){if(!gy.node){var n=e.getZr();XA(n).records||(XA(n).records={}),Mg(n,e);(XA(n).records[t]||(XA(n).records[t]={})).handler=i}}function Mg(t,e){function i(i,n){t.on(i,function(i){var r=kg(e);WA(XA(t).records,function(t){t&&n(t,i,r.dispatchAction)}),Cg(r.pendings,e)})}XA(t).initialized||(XA(t).initialized=!0,i("click",w(Ag,"click")),i("mousemove",w(Ag,"mousemove")),i("globalout",Ig))}function Cg(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function Ig(t,e,i){t.handler("leave",null,i)}function Ag(t,e,i,n){e.handler(t,i,n)}function kg(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function Dg(t,e){if(!gy.node){var i=e.getZr();(XA(i).records||{})[t]&&(XA(i).records[t]=null)}}function Pg(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=rn(o,t);if(null==a||0>a||S(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,p=u.dim,f="x"===c||"radius"===c?1:0,d=o.mapDimension(p),g=[];g[f]=o.get(d,a),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(g)||[]}else n=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),n=[v.x+v.width/2,v.y+v.height/2]}return{point:n,el:s}}function Og(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||ky(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Yg(r)&&(r=Pg({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Yg(r),u=o.axesInfo,h=s.axesInfo,c="leave"===n||Yg(r),p={},f={},d={list:[],map:{}},y={showPointer:w(Rg,f),showTooltip:w(Ng,d)};g(s.coordSysMap,function(t,e){var i=l||t.containPoint(r);g(s.coordSysAxesInfo[e],function(t){var e=t.axis,n=Hg(u,t);if(!c&&i&&(!u||n)){var o=n&&n.value;null!=o||l||(o=e.pointToData(r)),null!=o&&Lg(t,o,y,!1,p)}})});var v={};return g(h,function(t,e){var i=t.linkGroup;i&&!f[e]&&g(i.axesInfo,function(e,n){var r=f[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,Vg(e),Vg(t)))),v[t.key]=o}})}),g(v,function(t,e){Lg(h[e],t,y,!0,p)}),zg(f,h,p),Bg(d,r,t,a),Fg(h,a,i),p}}function Lg(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var a=Eg(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&u(r,s[0]),!n&&t.snap&&o.containData(l)&&null!=l&&(e=l),i.showPointer(t,e,s),i.showTooltip(t,a,l)}}function Eg(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return g(e.seriesModels,function(e){var l,u,h=e.getData().mapDimensionsAll(n);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,i);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===i.type?.5:null),!u.length)return;l=e.getData().get(h[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 Rg(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Ng(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Gd(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function zg(t,e,i){var n=i.axesInfo=[];g(e,function(e,i){var r=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function Bg(t,e,i,n){if(Yg(e)||!t.list.length)return void n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function Fg(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",o=UA(n)[r]||{},a=UA(n)[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&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Hg(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function Vg(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function Yg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Xg(t){gA.registerAxisPointerClass("CartesianAxisPointer",HA),t.registerComponentModel(YA),t.registerComponentView(GA),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=Rd(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Og)}function Wg(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Gg(t){if(gy.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;n>i;i++)if(t[i]in e)return t[i]}function Ug(t,e){if(!t)return e;e=cs(e,!0);var i=t.indexOf(e);return t=-1===i?e:"-"+t.slice(0,i)+"-"+e,t.toLowerCase()}function jg(t,e){var i=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return i?e?i[e]:i:null}function qg(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function Zg(t,e,i){if(!M(i)||"inside"===i)return"";var n=t.get("backgroundColor"),r=t.get("borderWidth");e=ms(e);var o,a=qg(i),s=Math.max(1.5*Math.round(r),6),l="",u=QA+":";c(["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 h=o*Math.PI/180,p=s+r,f=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h));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:"+n+";"].join("")+'"></div>'}function Kg(t,e){var i="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+i,r="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+i,r+=gy.transformSupported?","+QA+n:",left"+n+",top"+n),KA+":"+r}function Qg(t,e,i){var n=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!gy.transformSupported)return i?"top:"+r+";left:"+n+";":[["top",r],["left",n]];var o=gy.transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+r+(o?",0":"")+")";return i?"top:0;left:0;"+QA+":"+a+";":[["top",0],["left",0],[qA,a]]}function Jg(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/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(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function $g(t,e,i){var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=nu(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return n.push("box-shadow:"+p),e&&r&&n.push(Kg(r,i)),o&&(gy.canvasSupported?n.push("background-color:"+o):(n.push("background-color:#"+se(o)),n.push("filter:alpha(opacity=70)"))),g(["width","color","radius"],function(e){var i="border-"+e,r=cs(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))}),n.push(Jg(h)),null!=c&&n.push("padding:"+pw(c).join("px ")+"px"),n.join(";")+";"}function ty(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&_t(t,a,document.body,n,r)}else{t[0]=n,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 iy(t){var e=ey(t.shadowBlur||0),i=ey(t.shadowOffsetX||0),n=ey(t.shadowOffsetY||0);return{left:ey(e-i),right:ey(e+i),top:ey(e-n),bottom:ey(e+n)}}function ny(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function ry(t,e,i){var n,r=e.ecModel;i?(n=new Ub(i,r,r),n=new Ub(e.option,n,r)):n=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Ub&&(a=a.get("tooltip",!0)),M(a)&&(a={formatter:a}),a&&(n=new Ub(a,n,r)))}return n}function oy(t,e){return t.dispatchAction||ky(e.dispatchAction,e)}function ay(t,e,i,n,r,o,a){var s=i.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>n?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function sy(t,e,i,n,r){var o=i.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,n)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function ly(t,e,i,n){var r=i[0],o=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/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+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}function uy(t){return"center"===t||"middle"===t}function hy(t,e,i){var n=sn(t).queryOptionMap,r=n.keys()[0];if(r&&"series"!==r){var o=ln(e,r,n.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s;return i.getViewOfComponentModel(a).group.traverse(function(e){var i=rx(e).tooltipConfig;return i&&i.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function cy(t){Bp(Xg),t.registerComponentModel(jA),t.registerComponentView(ok),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 i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(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 i=e.browser,n=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);n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1],i.newEdge=+o[1].split(".")[0]>18),a&&(i.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(i.ie&&"transition"in s||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||i.ie&&+i.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,Ty=function(){}.constructor,My=Ty?Ty.prototype:null,Cy={},Iy=2311,Ay=function(){return Cy.createCanvas()};Cy.createCanvas=function(){return document.createElement("canvas")};var ky=My&&T(My.bind)?My.call.bind(My.bind):b,Dy="__ec_primitive__",Py=function(){function t(e){function i(t,e){n?r.set(t,e):r.set(e,t)}this.data={};var n=S(e);this.data={};var r=this;e instanceof t?e.each(i):e&&g(e,i)}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 i in this.data)this.data.hasOwnProperty(i)&&t.call(e,this.data[i],i)},t.prototype.keys=function(){return x(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}(),Oy=(Object.freeze||Object)({$override:n,guid:r,logError:o,clone:a,merge:s,mergeAll:l,extend:u,defaults:h,createCanvas:Ay,indexOf:c,inherits:p,mixin:f,isArrayLike:d,each:g,map:y,reduce:v,filter:m,find:_,keys:x,bind:ky,curry:w,isArray:S,isFunction:T,isString:M,isStringSafe:C,isNumber:I,isObject:A,isBuiltInObject:k,isTypedArray:D,isDom:P,isGradientObject:O,isImagePatternObject:L,isRegExp:E,eqNaN:R,retrieve:N,retrieve2:z,retrieve3:B,slice:F,normalizeCssArray:H,assert:V,trim:Y,setAsPrimitive:X,isPrimitive:W,HashMap:Py,createHashMap:G,concatArray:U,createObject:j,hasOwn:q,noop:Z}),Ly=nt,Ey=rt,Ry=ht,Ny=ct,zy=(Object.freeze||Object)({create:K,copy:Q,clone:J,set:$,add:tt,scaleAndAdd:et,sub:it,len:nt,length:Ly,lenSquare:rt,lengthSquare:Ey,mul:ot,div:at,dot:st,scale:lt,normalize:ut,distance:ht,dist:Ry,distanceSquare:ct,distSquare:Ny,negate:pt,lerp:ft,applyTransform:dt,min:gt,max:yt}),By=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 By(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.handler.dispatchToElement(new By(e,t),"drag",t.event);var a=this.handler.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new By(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new By(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new By(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new By(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Hy=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!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===i)return this;var s={h:i,query:e,ctx:n||this,callAtLast:i.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 i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;o>r;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},t.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;a>s;s++){var l=n[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=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=e[o-1],s=n.length,l=0;s>l;l++){var u=n[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}(),Vy=Math.log(2),Yy="___zrEVENTSAVED",Xy=[],Wy="undefined"!=typeof window&&!!window.addEventListener,Gy=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Uy=[],jy=Wy?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,i){return this._doTrack(t,e,i),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;a>o;o++){var s=n[o],l=Tt(i,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 i=Zy[e](this._track,t);if(i)return i}},t}(),Zy={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=Pt(n)/Pt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Ot(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Ky="silent",Qy=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(i,t),i.prototype.dispose=function(){},i.prototype.setCursor=function(){},i}(Hy),Jy=function(){function t(t,e){this.x=t,this.y=e}return t}(),$y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tv=function(t){function i(e,i,n,r){var o=t.call(this)||this;return o._hovered=new Jy(0,0),o.storage=e,o.painter=i,o.painterRoot=r,n=n||new Qy,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new Fy(o),o}return e(i,t),i.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(g($y,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},i.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=Nt(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=n?new Jy(e,i):this.findHover(e,i),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)},i.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})},i.prototype.resize=function(){this._hovered=new Jy(0,0)},i.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},i.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},i.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},i.prototype.dispatchToElement=function(t,e,i){t=t||{};var n=t.target;if(!n||!n.silent){for(var r="on"+e,o=Lt(e,t,i);n&&(n[r]&&(o.cancelBubble=!!n[r].call(n,o)),n.trigger(e,o),n=n.__hostTarget?n.__hostTarget:n.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)}))}},i.prototype.findHover=function(t,e,i){for(var n=this.storage.getDisplayList(),r=new Jy(t,e),o=n.length-1;o>=0;o--){var a=void 0;if(n[o]!==i&&!n[o].ignore&&(a=Rt(n[o],t,e))&&(!r.topTarget&&(r.topTarget=n[o]),a!==Ky)){r.target=n[o];break}}return r},i.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new qy);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r;var o=new Jy;o.target=n.target,this.dispatchToElement(o,r,n.event)}},i}(Hy);g(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){tv.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=Nt(this,r,o);if("mouseup"===t&&a||(i=this.findHover(r,o),n=i.target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Ry(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var ev,iv=32,nv=7,rv=1,ov=4,av=!1,sv=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ut}return t.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;r>n;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,gy.canvasSupported&&Wt(i,Ut)},t.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];for(var r=n,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,i)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Gt(),u.z=0),isNaN(u.z2)&&(Gt(),u.z2=0),isNaN(u.zlevel)&&(Gt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,i)}},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,i=t.length;i>e;e++)this.delRoot(t[e]);else{var n=c(this._roots,t);n>=0&&this._roots.splice(n,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,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4):i*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}},hv=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 i=(t-this._startTime-this._pausedTime)/this._life;0>i&&(i=0),i=Math.min(i,1);var n=this.easing,r="string"==typeof n?uv[n]:n,o="function"==typeof r?r(i):i;if(this.onframe&&this.onframe(o),1===i){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}(),cv=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 cv(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,i=t.next;e?e.next=i:this.head=i,i?i.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 i=this._list,n=this._map,r=null;if(null==n[t]){var o=i.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new cv(e),a.key=t,i.insertEntry(a),n[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.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:ne,lift:ae,toHex:se,fastLerp:le,fastMapToColor:vv,lerp:ue,mapToColor:mv,modifyHSL:he,modifyAlpha:ce,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 i=this.keyframes,n=i.length;if(this.interpolable)if(d(e)){var r=Ae(e);if(n>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(n>0){var o=i[n-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=ne(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&&n>0){var o=i[n-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 i=this.arrDim,n=e.length,r=e[n-1],o=0;n>o;o++)e[o].percent=e[o].time/this.maxTime,i>0&&o!==n-1&&be(e[o].value,r.value,i);if(t&&this.needsAnimate()&&t.needsAnimate()&&i===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;for(var a=e[0].value,o=0;n>o;o++)0===i?e[o].additiveValue=this.isValueColor?_e([],e[o].value,a,-1):e[o].value-a:1===i?e[o].additiveValue=_e([],e[o].value,a,-1):2===i&&(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 i,n=null!=this._additiveTrack,r=n?"additiveValue":"value",o=this.keyframes,a=this.keyframes.length,s=this.propName,l=this.arrDim,u=this.isValueColor;if(0>e)i=0;else if(e<this._lastFramePercent){var h=Math.min(this._lastFrame+1,a-1);for(i=h;i>=0&&!(o[i].percent<=e);i--);i=Math.min(i,a-2)}else{for(i=this._lastFrame;a>i&&!(o[i].percent>e);i++);i=Math.min(i-1,a-2)}var c=o[i+1],p=o[i];if(p&&c){this._lastFrame=i,this._lastFramePercent=e;var f=c.percent-p.percent;if(0!==f){var d=(e-p.percent)/f,g=n?this._additiveValue:u?bv:t[s];if((l>0||u)&&!g&&(g=this._additiveValue=[]),this.useSpline){var y=o[i][r],v=o[0===i?i:i-1][r],m=o[i>a-2?a-1:i+1][r],_=o[i>a-3?a-1:i+2][r];if(l>0)1===l?Te(g,v,y,m,_,d,d*d,d*d*d):Me(g,v,y,m,_,d,d*d,d*d*d);else if(u)Te(g,v,y,m,_,d,d*d,d*d*d),n||(t[s]=Ie(g));else{var x=void 0;x=this.interpolable?Se(v,y,m,_,d,d*d,d*d*d):m,n?this._additiveValue=x:t[s]=x}}else if(l>0)1===l?ve(g,p[r],c[r],d):me(g,p[r],c[r],d);else if(u)ve(g,p[r],c[r],d),n||(t[s]=Ie(g));else{var x=void 0;x=this.interpolable?ge(p[r],c[r],d):ye(p[r],c[r],d),n?this._additiveValue=x:t[s]=x}n&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,i=this.propName,n=this._additiveValue;0===e?this.isValueColor?(ne(t[i],bv),_e(bv,bv,n,1),t[i]=Ie(bv)):t[i]=t[i]+n:1===e?_e(t[i],t[i],n,1):2===e&&xe(t[i],t[i],n,1)},t}(),Sv=function(){function t(t,e,i){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&&i?void o("Can' use additive animation on looped animation."):void(this._additiveAnimators=i)}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,i){for(var n=this._tracks,r=0;r<i.length;r++){var o=i[r],a=n[o];if(!a){a=n[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,Ce(s)),this._trackKeys.push(o)}a.addKeyframe(t,Ce(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,i=0;e>i;i++)t[i].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 i=0;i<e.length;i++)e[i].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var r=i[n].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t,e){if(!(this._started>0)){this._started=1;for(var i=this,n=[],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())n.push(a);else if(!a.interpolable){var u=l[l.length-1];u&&(i._target[a.propName]=u.value)}}if(n.length||e){var h=new hv({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){i._started=2;var e=i._additiveAnimators;if(e){for(var r=!1,o=0;o<e.length;o++)if(e[o]._clip){r=!0;break}r||(i._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(i._target,t);var a=i._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](i._target,t)},ondestroy:function(){i._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&"spline"!==t&&(h.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 i=this._tracks,n=this._trackKeys,r=0;r<t.length;r++){var o=i[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<n.length;r++)if(!i[n[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r&&!r.isFinished()){var o=r.keyframes,a=o[o.length-1];if(a){var s=Ce(a.value);r.isValueColor&&(s=Ie(s)),t[n]=s}}}}},t.prototype.__changeFinalValue=function(t,e){e=e||x(t);for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[n]),r.prepare(r.getAdditiveTrack())}}}},t}(),Tv=function(t){function i(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i.onframe=e.onframe||function(){},i}return e(i,t),i.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},i.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},i.prototype.removeClip=function(t){if(t.animation){var e=t.prev,i=t.next;e?e.next=i:this._clipsHead=i,i?i.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},i.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},i.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,i=e-this._time,n=this._clipsHead;n;){var r=n.next;n.step(e,i)?(n.ondestroy&&n.ondestroy(),this.removeClip(n),n=r):n=r}this._time=e,t||(this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update())},i.prototype._startLoop=function(){function t(){e._running&&(lv(t),!e._paused&&e.update())}var e=this;this._running=!0,lv(t)},i.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},i.prototype.stop=function(){this._running=!1},i.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},i.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},i.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},i.prototype.isFinished=function(){return null==this._clipsHead},i.prototype.animate=function(t,e){e=e||{},this.start();var i=new Sv(t,e.loop);return this.addAnimator(i),i},i}(Hy),Mv=gy.domSupported,Cv=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 i=t.replace("mouse","pointer");return e.hasOwnProperty(i)?i:t})}}(),Iv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Av=!1,kv=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}(),Dv={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){Av=!0,t=It(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Av||(t=It(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=It(this.dom,t),Pe(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Dv.mousemove.call(this,t),Dv.mousedown.call(this,t)},touchmove:function(t){t=It(this.dom,t),Pe(t),this.handler.processGesture(t,"change"),Dv.mousemove.call(this,t)},touchend:function(t){t=It(this.dom,t),Pe(t),this.handler.processGesture(t,"end"),Dv.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Dv.click.call(this,t)},pointerdown:function(t){Dv.mousedown.call(this,t)},pointermove:function(t){ke(t)||Dv.mousemove.call(this,t)},pointerup:function(t){Dv.mouseup.call(this,t)},pointerout:function(t){ke(t)||Dv.mouseout.call(this,t)}};g(["click","dblclick","contextmenu"],function(t){Dv[t]=function(e){e=It(this.dom,e),this.trigger(t,e)}});var Pv={pointermove:function(t){ke(t)||Pv.mousemove.call(this,t)},pointerup:function(t){Pv.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))}},Ov=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Lv=function(t){function i(e,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new Ov(e,Dv),Mv&&(n._globalHandlerScope=new Ov(document,Pv)),Ee(n,n._localHandlerScope),n}return e(i,t),i.prototype.dispose=function(){ze(this._localHandlerScope),Mv&&ze(this._globalHandlerScope)},i.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},i.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Mv&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Re(this,e):ze(e)}},i}(Hy),Ev=1;"undefined"!=typeof window&&(Ev=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Rv,Nv,zv=Ev,Bv=.4,Fv="#333",Hv="#ccc",Vv=(Object.freeze||Object)({create:Be,identity:Fe,copy:He,mul:Ve,translate:Ye,rotate:Xe,scale:We,invert:Ge,clone:Ue}),Yv=Fe,Xv=5e-5,Wv=[],Gv=[],Uv=Be(),jv=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 je(this.rotation)||je(this.x)||je(this.y)||je(this.scaleX-1)||je(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;return e||t?(i=i||Be(),e?this.getLocalTransform(i):Yv(i),t&&(e?Ve(i,t,i):He(i,t)),this.transform=i,void this._resolveGlobalScaleRatio(i)):void(i&&Yv(i))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Wv);var i=Wv[0]<0?-1:1,n=Wv[1]<0?-1:1,r=((Wv[0]-i)*e+i)/Wv[0]||0,o=((Wv[1]-n)*e+n)/Wv[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Be(),Ge(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],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),r=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ve(Gv,t.invTransform,e),e=Gv);var i=this.originX,n=this.originY;(i||n)&&(Uv[4]=i,Uv[5]=n,Ve(Gv,e,Uv),Gv[4]-=i,Gv[5]-=n,e=Gv),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 i=[t,e],n=this.invTransform;return n&&dt(i,i,n),i},t.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&dt(i,i,n),i},t.prototype.getLineScale=function(){var t=this.transform;return t&&jv(t[0]-1)>1e-10&&jv(t[3]-1)>1e-10?Math.sqrt(jv(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){for(var e=this,i=0;i<Zv.length;i++){var n=Zv[i];e[n]=t[n]}},t.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=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,h=t.skewY?Math.tan(-t.skewY):0;return i||n?(e[4]=-i*r-u*n*o,e[5]=-n*o-h*i*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=h*r,e[2]=u*o,a&&Xe(e,e,a),e[4]+=i+s,e[5]+=n+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"],Kv=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,i=this.y-t.y;return Math.sqrt(e*e+i*i)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},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,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+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,i){t.x=e,t.y=i},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,i){t.x=e.x+i.x,t.y=e.y+i.y},t.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},t.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},t.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},t.lerp=function(t,e,i,n){var r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},t}(),Qv=Math.min,Jv=Math.max,$v=new Kv,tm=new Kv,em=new Kv,im=new Kv,nm=new Kv,rm=new Kv,om=function(){function t(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return t.prototype.union=function(t){var e=Qv(t.x,this.x),i=Qv(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)-i:t.height,this.x=e,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=Be();return Ye(r,r,[-e.x,-e.y]),We(r,r,[i,n]),Ye(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,i){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,r=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||r>u||h>s||a>c);if(i){var f=1/0,d=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),_=Math.min(g,y),x=Math.min(v,m);l>o||r>u?_>d&&(d=_,y>g?Kv.set(rm,-g,0):Kv.set(rm,y,0)):f>_&&(f=_,y>g?Kv.set(nm,g,0):Kv.set(nm,-y,0)),h>s||a>c?x>d&&(d=x,m>v?Kv.set(rm,0,-v):Kv.set(rm,0,m)):f>_&&(f=_,m>v?Kv.set(nm,0,v):Kv.set(nm,0,-m))}return i&&Kv.copy(i,p?nm:rm),p},t.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.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,i,n){if(!n)return void(e!==i&&t.copy(e,i));if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],o=n[3],a=n[4],s=n[5];return e.x=i.x*r+a,e.y=i.y*o+s,e.width=i.width*r,e.height=i.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))}$v.x=em.x=i.x,$v.y=im.y=i.y,tm.x=im.x=i.x+i.width,tm.y=em.y=i.y+i.height,$v.transform(n),im.transform(n),tm.transform(n),em.transform(n),e.x=Qv($v.x,tm.x,em.x,im.x),e.y=Qv($v.y,tm.y,em.y,im.y);var l=Jv($v.x,tm.x,em.x,im.x),u=Jv($v.y,tm.y,em.y,im.y);e.width=l-e.x,e.height=u-e.y},t}(),am={},sm="12px sans-serif",lm={measureText:qe},um="__zr_normal__",hm=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],cm={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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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 i=this.textConfig,n=i.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=n?this:null;var l=!1;if(r.copyTransform(e),null!=i.position){var u=fm;u.copy(i.layoutRect?i.layoutRect:this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pm,i,u):ii(pm,i,u),r.x=pm.x,r.y=pm.y,o=pm.align,a=pm.verticalAlign;var h=i.origin;if(h&&null!=i.rotation){var c=void 0,p=void 0;"center"===h?(c=.5*u.width,p=.5*u.height):(c=ei(h[0],u.width),p=ei(h[1],u.height)),l=!0,r.originX=-r.x+c+(n?0:u.x),r.originY=-r.y+p+(n?0:u.y)}}null!=i.rotation&&(r.rotation=i.rotation);var f=i.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var d=null==i.inside?"string"==typeof i.position&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;d&&this.canBeInsideText()?(y=i.insideFill,v=i.insideStroke,(null==y||"auto"===y)&&(y=this.getInsideTextFill()),(null==v||"auto"===v)&&(v=this.getInsideTextStroke(y),m=!0)):(y=i.outsideFill,v=i.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()?Hv:Fv},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e="string"==typeof t&&ne(t);e||(e=[255,255,255,1]);for(var i=e[3],n=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*i+(n?0:255)*(1-i);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(A(t))for(var i=t,n=x(i),r=0;r<n.length;r++){var o=n[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],r=n.__fromStateTransition;if(!r||r===um){var o=n.targetName,a=o?e[o]:e;n.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,hm)},t.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];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,i,n){var r=t===um;if(this.hasState()||!r){var a=this.currentStates,s=this.stateTransition;if(!(c(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||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,i,u),p&&p.useState(t,e,i,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,i){if(t.length){var n=[],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&&n.push(u)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(n),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,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&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=c(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),r=c(n,t),o=c(n,e)>=0;r>=0?o?n.splice(r,1):n[r]=e:i&&!o&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var r=t[n];u(i,r),r.textConfig&&(e=e||{},u(e,r.textConfig))}return e&&(i.textConfig=e),i},t.prototype._applyStateObj=function(t,e,i,n,r,o){var a=!(e&&n);e&&e.textConfig?(this.textConfig=u({},n?this.textConfig:i.textConfig),u(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig);for(var s={},l=!1,h=0;h<hm.length;h++){var c=hm[h],p=r&&cm[c];e&&null!=e[c]?p?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=i[c]&&(p?(l=!0,s[c]=i[c]):this[c]=i[c])}if(!r)for(var h=0;h<this.animators.length;h++){var f=this.animators[h],d=f.targetName;f.__changeFinalValue(d?(e||i)[d]:e||i)}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,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),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 i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);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 i=t?this[t]:this;if(!i)return void o('Property "'+t+'" is not existed in element '+this.id);var n=new Sv(i,e);return this.addAnimator(n,t),n},t.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var e=n.animators,i=c(e,t);i>=0&&e.splice(i,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,r=[],o=0;n>o;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,i){ni(this,t,e,i)},t.prototype.animateFrom=function(t,e,i){ni(this,t,e,i,!0)},t.prototype._transitionState=function(t,e,i,n){for(var r=ni(this,e,i,n),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,i){r[t+e+i]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+i+"' instead"),r[t+e+i]=!0)}function i(t,i,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(n,t,{get:function(){if(e(t,r,o),!this[i]){a(this,this[i]=[])}return this[i]},set:function(n){e(t,r,o),this[r]=n[0],this[o]=n[1],this[i]=n,a(this,n)}})}var n=t.prototype;n.type="element",n.name="",n.ignore=!1,n.silent=!1,n.isGroup=!1,n.draggable=!1,n.dragging=!1,n.ignoreClip=!1,n.__inHover=!1,n.__dirty=rv;var r={};Object.defineProperty&&(!gy.browser.ie||gy.browser.version>8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();f(dm,Hy),f(dm,qv);var gm=function(t){function i(e){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return e(i,t),i.prototype.childrenRef=function(){return this._children},i.prototype.children=function(){return this._children.slice()},i.prototype.childAt=function(t){return this._children[t]},i.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},i.prototype.childCount=function(){return this._children.length},i.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},i.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},i.prototype.replace=function(t,e){var i=c(this._children,t);return i>=0&&this.replaceAt(e,i),this},i.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];if(t&&t!==this&&t.parent!==this&&t!==n){i[e]=t,n.parent=null;var r=this.__zr;r&&n.removeSelfFromZr(r),this._doAdd(t)}return this},i.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()},i.prototype.remove=function(t){var e=this.__zr,i=this._children,n=c(i,t);return 0>n?this:(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},i.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},i.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},i.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&n.traverse(t,e)}return this},i.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){this._children[i].addSelfToZr(e)}},i.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){this._children[i].removeSelfFromZr(e)}},i.prototype.getBoundingRect=function(t){for(var e=new om(0,0,0,0),i=t||this._children,n=[],r=null,o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(n);l?(om.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},i}(dm);gm.prototype.type="group";var ym=!gy.canvasSupported,vm={},mm={},_m=function(){function t(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var r=new sv,o=i.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.");i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var a=new vm[o](e,r,i,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 Tv({stage:{update:function(){return n._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=ui(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,i=(new Date).getTime();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=(new Date).getTime();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):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,i){return this.handler.on(t,e,i),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,li(this.id)},t}(),xm=(Object.freeze||Object)({init:hi,dispose:ci,disposeAll:pi,getInstance:fi,registerPainter:di,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)?)?)?)?)?$/,Tm=("undefined"!=typeof console&&console.warn&&console.log,"series\0"),Mm="\0_ec_\0",Cm=["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=Ri(),Am={useDefault:!0,enableAll:!1,enableNone:!1},km=".",Dm="___EC__COMPONENT__CONTAINER___",Pm="___EC__EXTENDED_CLASS___",Om=Math.round(10*Math.random()),Lm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Em=wn(Lm),Rm=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Em(this,t,e)},t}(),Nm=new fv(50),zm=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Bm=function(){function t(){}return t}(),Fm=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Hm=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}(),Vm=v(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{}),Ym="__zr_style_"+Math.round(10*Math.random()),Xm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Wm={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Xm[Ym]=!0;var Gm=["z","z2","invisible"],Um=["invisible"],jm=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype._init=function(e){for(var i=x(e),n=0;n<i.length;n++){var r=i[n];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},i.prototype.beforeBrush=function(){},i.prototype.afterBrush=function(){},i.prototype.innerBeforeBrush=function(){},i.prototype.innerAfterBrush=function(){},i.prototype.shouldBePainted=function(t,e,i,n){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&zn(this,t,e)||r&&!r[0]&&!r[3])return!1;if(i&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(n&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},i.prototype.contain=function(t,e){return this.rectContain(t,e)},i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.rectContain=function(t,e){var i=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(i[0],i[1])},i.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,i=this.getBoundingRect(),n=this.style,r=n.shadowBlur||0,o=n.shadowOffsetX||0,a=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new om(0,0,0,0)),e?om.applyTransform(t,i,e):t.copy(i),(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},i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new om(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},i.prototype.animateStyle=function(t){return this.animate("style",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},i.prototype.attrKV=function(e,i){"style"!==e?t.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:u(this.style,t),this.dirtyStyle(),this},i.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},i.prototype.dirty=function(){this.dirtyStyle()},i.prototype.styleChanged=function(){return!!(2&this.__dirty)},i.prototype.styleUpdated=function(){this.__dirty&=-3},i.prototype.createStyle=function(t){return j(Xm,t)},i.prototype.useStyle=function(t){t[Ym]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},i.prototype.isStyleObject=function(t){return t[Ym]},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Gm)},i.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r);if(i&&i.style?o?r?s=i.style:(s=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(s,i.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:n.style),this._mergeStyle(s,i.style)):l&&(s=n.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var h=x(u),c=0;c<h.length;c++){var p=h[c];p in s&&(s[p]=s[p],this.style[p]=u[p])}for(var f=x(s),c=0;c<f.length;c++){var p=f[c];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);for(var d=this.__inHover?Um:Gm,c=0;c<d.length;c++){var p=d[c];i&&null!=i[p]?this[p]=i[p]:l&&null!=n[p]&&(this[p]=n[p])}},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},i.prototype._mergeStyle=function(t,e){return u(t,e),t},i.prototype.getAnimationStyleProps=function(){return Wm},i.initDefaultProps=function(){var t=i.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}(),i}(dm),qm=new om(0,0,0,0),Zm=new om(0,0,0,0),Km=Math.pow,Qm=Math.sqrt,Jm=1e-8,$m=1e-4,t_=Qm(3),e_=1/3,i_=K(),n_=K(),r_=K(),o_=Math.min,a_=Math.max,s_=Math.sin,l_=Math.cos,u_=2*Math.PI,h_=K(),c_=K(),p_=K(),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,T_=Math.cos,M_=Math.sin,C_=Math.sqrt,I_=Math.abs,A_=Math.PI,k_=2*A_,D_="undefined"!=typeof Float32Array,P_=[],O_=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,i){(i=i||0)>0&&(this._ux=I_(i/zv/t)||0,this._uy=I_(i/zv/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 i=I_(t-this._xi),n=I_(e-this._yi),r=i>this._ux||n>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=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(g_.C,t,e,i,n,r,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,i,n,r,o):this._ctx.bezierCurveTo(t,e,i,n,r,o)),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(g_.Q,t,e,i,n),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},t.prototype.arc=function(t,e,i,n,r,o){this._drawPendingPt(),P_[0]=n,P_[1]=r,ar(P_,o),n=P_[0],r=P_[1];var a=r-n;return this.addData(g_.A,t,e,i,i,n,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=T_(r)*i+t,this._yi=M_(r)*i+e,this},t.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},t.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(g_.R,t,e,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(g_.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},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,i=0;i<t.length;i++)e+=t[i];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||!D_||(this.data=new Float32Array(e));for(var i=0;e>i;i++)this.data[i]=t[i];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();D_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},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 i,n,r=this._dashSum,o=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,h=t-l,c=e-u,p=C_(h*h+c*c),f=l,d=u,g=o.length;for(h/=p,c/=p,0>s&&(s=r+s),s%=r,f-=s*h,d-=s*c;h>0&&t>=f||0>h&&f>=t||0===h&&(c>0&&e>=d||0>c&&d>=e);)n=this._dashIdx,i=o[n],f+=h*i,d+=c*i,this._dashIdx=(n+1)%g,h>0&&l>f||0>h&&f>l||c>0&&u>d||0>c&&d>u||a[n%2?"moveTo":"lineTo"](h>=0?w_(f,t):S_(f,t),c>=0?w_(d,e):S_(d,e));h=f-t,c=d-e,this._dashOffset=-C_(h*h+c*c)},t.prototype._dashedBezierTo=function(t,e,i,n,r,o){var a,s,l,u,h,c=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=Hn(g,t,i,r,a+.1)-Hn(g,t,i,r,a),l=Hn(y,e,n,o,a+.1)-Hn(y,e,n,o,a),v+=C_(s*s+l*l);for(;_>m&&!((x+=d[m])>f);m++);for(a=(x-f)/v;1>=a;)u=Hn(g,t,i,r,a),h=Hn(y,e,n,o,a),m%2?c.moveTo(u,h):c.lineTo(u,h),a+=d[m]/v,m=(m+1)%_;m%2!=0&&c.lineTo(r,o),s=r-u,l=o-h,this._dashOffset=-C_(s*s+l*l)},t.prototype._dashedQuadraticTo=function(t,e,i,n){var r=i,o=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,r,o)},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,D_&&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,i=0,n=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=e[t],n=e[t+1],r=i,o=n),a){case g_.M:i=r=e[t++],n=o=e[t++],x_[0]=r,x_[1]=o,b_[0]=r,b_[1]=o;break;case g_.L:er(i,n,e[t],e[t+1],x_,b_),i=e[t++],n=e[t++];break;case g_.C:ir(i,n,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],x_,b_),i=e[t++],n=e[t++];break;case g_.Q:nr(i,n,e[t++],e[t++],e[t],e[t+1],x_,b_),i=e[t++],n=e[t++];break;case g_.A:var l=e[t++],u=e[t++],h=e[t++],c=e[t++],p=e[t++],f=e[t++]+p;t+=1;var d=!e[t++];s&&(r=T_(p)*h+l,o=M_(p)*c+u),rr(l,u,h,c,p,f,d,x_,b_),i=T_(f)*h+l,n=M_(f)*c+u;break;case g_.R:r=i=e[t++],o=n=e[t++];er(r,o,r+e[t++],o+e[t++],x_,b_);break;case g_.Z:i=r,n=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,i=this._ux,n=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;e>c;){var p=t[c++],f=1===c;f&&(r=t[c],o=t[c+1],a=r,s=o);var d=-1;switch(p){case g_.M:r=a=t[c++],o=s=t[c++];break;case g_.L:var g=t[c++],y=t[c++],v=g-r,m=y-o;(I_(v)>i||I_(m)>n||c===e-1)&&(d=Math.sqrt(v*v+m*m),r=g,o=y);break;case g_.C:var _=t[c++],x=t[c++],g=t[c++],y=t[c++],b=t[c++],w=t[c++];d=Un(r,o,_,x,g,y,b,w,10),r=b,o=w;break;case g_.Q:var _=t[c++],x=t[c++],g=t[c++],y=t[c++];d=$n(r,o,_,x,g,y,10),r=g,o=y;break;case g_.A:var S=t[c++],T=t[c++],M=t[c++],C=t[c++],I=t[c++],A=t[c++],k=A+I;c+=1,t[c++],f&&(a=T_(I)*M+S,s=M_(I)*C+T),d=S_(M,C)*w_(k_,Math.abs(A)),r=T_(k)*M+S,o=M_(k)*C+T;break;case g_.R:a=r=t[c++],s=o=t[c++];d=2*t[c++]+2*t[c++];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[h++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var i,n,r,o,a,s,l,u,h,c,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,h=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],i=r,n=o),w!==g_.L&&x>0&&(t.lineTo(c,p),x=0),w){case g_.M:i=r=f[b++],n=o=f[b++],t.moveTo(r,o);break;case g_.L:a=f[b++],s=f[b++];var T=I_(a-r),M=I_(s-o);if(T>d||M>g){if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}m+=C}t.lineTo(a,s),r=a,o=s,x=0}else{var A=T*T+M*M;A>x&&(c=a,p=s,x=A)}break;case g_.C:var k=f[b++],D=f[b++],P=f[b++],O=f[b++],L=f[b++],E=f[b++];if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;Wn(r,k,P,L,I,y_),Wn(o,D,O,E,I,v_),t.bezierCurveTo(y_[1],v_[1],y_[2],v_[2],y_[3],v_[3]);break t}m+=C}t.bezierCurveTo(k,D,P,O,L,E),r=L,o=E;break;case g_.Q:var k=f[b++],D=f[b++],P=f[b++],O=f[b++];if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;Qn(r,k,P,I,y_),Qn(o,D,O,I,v_),t.quadraticCurveTo(y_[1],v_[1],y_[2],v_[2]);break t}m+=C}t.quadraticCurveTo(k,D,P,O),r=P,o=O;break;case g_.A:var R=f[b++],N=f[b++],z=f[b++],B=f[b++],F=f[b++],H=f[b++],V=f[b++],Y=!f[b++],X=z>B?z:B,W=I_(z-B)>.001,G=F+H,U=!1;if(v){var C=l[_++];m+C>h&&(G=F+H*(h-m)/C,U=!0),m+=C}if(W&&t.ellipse?t.ellipse(R,N,z,B,V,F,G,Y):t.arc(R,N,X,F,G,Y),U)break t;S&&(i=T_(F)*z+R,n=M_(F)*B+N),r=T_(G)*z+R,o=M_(G)*B+N;break;case g_.R:i=r=f[b],n=o=f[b+1],a=f[b++],s=f[b++];var j=f[b++],q=f[b++];if(v){var C=l[_++];if(m+C>h){var Z=h-m;t.moveTo(a,s),t.lineTo(a+w_(Z,j),s),Z-=j,Z>0&&t.lineTo(a+j,s+w_(Z,q)),Z-=q,Z>0&&t.lineTo(a+S_(j-Z,0),s+q),(Z-=j)>0&&t.lineTo(a,s+S_(q-Z,0));break t}m+=C}t.rect(a,s,j,q);break;case g_.Z:if(v){var C=l[_++];if(m+C>h){var I=(h-m)/C;t.lineTo(r*(1-I)+i*I,o*(1-I)+n*I);break t}m+=C}t.closePath(),r=i,o=n}}},t.prototype.clone=function(){var e=new t,i=this.data;return e.data=i.slice?i.slice():Array.prototype.slice.call(i),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,E_=2*Math.PI,R_=O_.CMD,N_=2*Math.PI,z_=1e-4,B_=[-1,-1,-1],F_=[-1,-1],H_=h({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xm),V_={style:h({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Wm.style)},Y_=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],X_=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.update=function(){var e=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var r=this._decalEl=this._decalEl||new i;r.buildPath===i.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<Y_.length;++s)r[Y_[s]]=this[Y_[s]];r.__dirty|=rv}else this._decalEl&&(this._decalEl=null)},i.prototype.getDecalElement=function(){return this._decalEl},i.prototype._init=function(e){var i=x(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var r=0;r<i.length;r++){var o=i[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({})},i.prototype.getDefaultStyle=function(){return null},i.prototype.getDefaultShape=function(){return{}},i.prototype.canBeInsideText=function(){return this.hasFill()},i.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(M(t)){var e=fe(t,0);return e>.5?Fv:e>.2?"#eee":Hv}if(t)return Hv}return Fv},i.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(M(e)){var i=this.__zr;if(!(!i||!i.isDarkMode())===fe(t,0)<Bv)return e}},i.prototype.buildPath=function(){},i.prototype.pathUpdated=function(){this.__dirty&=~ov},i.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},i.prototype.createPathProxy=function(){this.path=new O_(!1)},i.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},i.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},i.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var r=this.path;(n||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||i){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},i.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.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},i.prototype.dirtyShape=function(){this.__dirty|=ov,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(t){return this.animate("shape",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(e,i){"shape"===e?this.setShape(i):t.prototype.attrKV.call(this,e,i)},i.prototype.setShape=function(t,e){var i=this.shape;return i||(i=this.shape={}),"string"==typeof t?i[t]=e:u(i,t),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(this.__dirty&ov)},i.prototype.createStyle=function(t){return j(H_,t)},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=u({},this.shape))},i.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r);if(i&&i.shape?o?r?s=i.shape:(s=u({},n.shape),u(s,i.shape)):(s=u({},r?this.shape:n.shape),u(s,i.shape)):l&&(s=n.shape),s)if(o){this.shape=u({},this.shape);for(var h={},c=x(s),p=0;p<c.length;p++){var f=c[p];"object"==typeof s[f]?this.shape[f]=s[f]:h[f]=s[f]}this._transitionState(e,{shape:h},a)}else this.shape=s,this.dirtyShape()},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},i.prototype.getAnimationStyleProps=function(){return V_},i.prototype.isZeroArea=function(){return!1},i.extend=function(t){var n=function(i){function n(e){var n=i.call(this,e)||this;return t.init&&t.init.call(n,e),n}return e(n,i),n.prototype.getDefaultStyle=function(){return a(t.style)},n.prototype.getDefaultShape=function(){return a(t.shape)},n}(i);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},i.initDefaultProps=function(){var t=i.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=2|rv|ov}(),i}(jm),W_=h({strokeFirst:!0,font:sm,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},H_),G_=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},i.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},i.prototype.createStyle=function(t){return j(W_,t)},i.prototype.setBoundingRect=function(t){this._rect=t},i.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var i=Qe(e,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},i.initDefaultProps=function(){i.prototype.dirtyRectTolerance=10}(),i}(jm);G_.prototype.type="tspan";var U_=h({x:0,y:0},Xm),j_={style:h({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Wm.style)},q_=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.createStyle=function(t){return j(U_,t)},i.prototype._getSize=function(t){var e=this.style,i=e[t];if(null!=i)return i;var n=br(e.image)?e.image:this.__image;if(!n)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?n[t]:n[t]/n[r]*o},i.prototype.getWidth=function(){return this._getSize("width")},i.prototype.getHeight=function(){return this._getSize("height")},i.prototype.getAnimationStyleProps=function(){return j_},i.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},i}(jm);q_.prototype.type="image";var Z_=Math.round,K_=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Q_={},J_=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new K_},i.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Tr(Q_,e,this.style);i=a.x,n=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else i=e.x,n=e.y,r=e.width,o=e.height;e.r?wr(t,e):t.rect(i,n,r,o)},i.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},i}(X_);J_.prototype.type="rect";var $_={fill:"#000"},tx={style:h({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},Wm.style)},ex=function(t){function i(e){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=$_,i.attr(e),i}return e(i,t),i.prototype.childrenRef=function(){return this._children},i.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},i.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},i.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},i.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},i.prototype._updateSubTexts=function(){this._childCursor=0,Cr(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},i.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},i.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},i.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new om(0,0,0,0),e=this._children,i=[],n=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(i);s?(t.copy(a),t.applyTransform(s),n=n||t.clone(),n.union(t)):(n=n||a.clone(),n.union(a))}this._rect=n||t}return this._rect},i.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||$_},i.prototype.setTextContent=function(){throw new Error("Can't attach text on another text")},i.prototype._mergeStyle=function(t,e){if(!e)return t;var i=e.rich,n=t.rich||i&&{};return u(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n),t},i.prototype._mergeRich=function(t,e){for(var i=x(e),n=0;n<i.length;n++){var r=i[n];t[r]=t[r]||{},u(t[r],e[r])}},i.prototype.getAnimationStyleProps=function(){return tx},i.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},i.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||sm,i=t.padding,n=Pr(t),r=Pn(n,t),o=Or(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.lines,u=r.lineHeight,h=this._defaultStyle,c=t.x||0,p=t.y||0,f=t.align||h.align||"left",d=t.verticalAlign||h.verticalAlign||"top",g=c,y=$e(p,r.contentHeight,d);if(o||i){var v=r.width;i&&(v+=i[1]+i[3]);var m=Je(c,v,f),_=$e(p,s,d);o&&this._renderBackground(t,t,m,_,v,s)}y+=u/2,i&&(g=Dr(c,f,i),"top"===d?y+=i[0]:"bottom"===d&&(y-=i[2]));for(var x=0,b=!1,w=(kr("fill"in t?t.fill:(b=!0,h.fill))),S=(Ar("stroke"in t?t.stroke:a||h.autoStroke&&!b?null:(x=2,h.stroke))),T=t.textShadowBlur>0,M=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=r.calculatedLineHeight,I=0;I<l.length;I++){var A=this._getOrCreateChild(G_),k=A.createStyle();A.useStyle(k),k.text=l[I],k.x=g,k.y=y,f&&(k.textAlign=f),k.textBaseline="middle",k.opacity=t.opacity,k.strokeFirst=!0,T&&(k.shadowBlur=t.textShadowBlur||0,k.shadowColor=t.textShadowColor||"transparent",k.shadowOffsetX=t.textShadowOffsetX||0,k.shadowOffsetY=t.textShadowOffsetY||0),S&&(k.stroke=S,k.lineWidth=t.lineWidth||x,k.lineDash=t.lineDash,k.lineDashOffset=t.lineDashOffset||0),w&&(k.fill=w),k.font=e,y+=u,M&&A.setBoundingRect(new om(Je(k.x,t.width,k.textAlign),$e(k.y,C,k.textBaseline),t.width,C))}},i.prototype._updateRichTexts=function(){var t=this.style,e=Pr(t),i=On(e,t),n=i.width,r=i.outerWidth,o=i.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,h=t.align||u.align,c=t.verticalAlign||u.verticalAlign,p=Je(s,r,h),f=$e(l,o,c),d=p,g=f;a&&(d+=a[3],g+=a[0]);var y=d+n;Or(t)&&this._renderBackground(t,t,p,f,r,o);for(var v=!!t.backgroundColor,m=0;m<i.lines.length;m++){for(var _=i.lines[m],x=_.tokens,b=x.length,w=_.lineHeight,S=_.width,T=0,M=d,C=y,I=b-1,A=void 0;b>T&&(A=x[T],!A.align||"left"===A.align);)this._placeToken(A,t,w,g,M,"left",v),S-=A.width,M+=A.width,T++;for(;I>=0&&(A=x[I],"right"===A.align);)this._placeToken(A,t,w,g,C,"right",v),S-=A.width,C-=A.width,I--;for(M+=(n-(M-d)-(y-C)-S)/2;I>=T;)A=x[T],this._placeToken(A,t,w,g,M+A.width/2,"center",v),M+=A.width,T++;g+=w}},i.prototype._placeToken=function(t,e,i,n,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=n+i/2;"top"===l?u=n+t.height/2:"bottom"===l&&(u=n+i-t.height/2),!t.isLineHolder&&Or(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 h=!!s.backgroundColor,c=t.textPadding;c&&(r=Dr(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(G_),f=p.createStyle();p.useStyle(f);var d=this._defaultStyle,g=!1,y=0,v=kr("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,d.fill)),m=Ar("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||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=B(s.opacity,e.opacity,1),m&&(f.lineWidth=B(s.lineWidth,e.lineWidth,y),f.lineDash=z(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),$e(f.y,b,f.textBaseline),x,b))},i.prototype._renderBackground=function(t,e,i,n,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,f=t.borderRadius,d=this;if(p||t.lineHeight||u&&h){a=this._getOrCreateChild(J_),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=i,g.y=n,g.width=r,g.height=o,g.r=f,a.dirtyShape()}if(p){var y=a.style;y.fill=l||null,y.fillOpacity=z(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(q_),s.onload=function(){d.dirtyStyle()};var v=s.style;v.image=l.image,v.x=i,v.y=n,v.width=r,v.height=o}if(u&&h){var y=a.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=z(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=B(t.opacity,e.opacity,1)},i.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var i="";i="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,i,t.fontFamily||"sans-serif"].join(" ")}return e&&Y(e)||t.textFont||t.font},i}(jm),ix={left:!0,right:1,center:1},nx={top:1,bottom:1,middle:1},rx=on(),ox=function(t,e,i,n){if(n){var r=rx(n);r.dataIndex=i,r.dataType=e,r.seriesIndex=t,"group"===n.type&&n.traverse(function(n){var r=rx(n);r.seriesIndex=t,r.dataIndex=i,r.dataType=e})}},ax=1,sx={},lx=on(),ux=0,hx=1,cx=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"],Tx={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"},Mx=O_.CMD,Cx=[[],[],[]],Ix=Math.sqrt,Ax=Math.atan2,kx=Math.sqrt,Dx=Math.sin,Px=Math.cos,Ox=Math.PI,Lx=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ex=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Rx=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.applyTransform=function(){},i}(X_),Nx=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),zx=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new Nx},i.prototype.buildPath=function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},i}(X_);zx.prototype.type="circle";var Bx=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Fx=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new Bx},i.prototype.buildPath=function(t,e){var i=.5522848,n=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*i,l=a*i;t.moveTo(n-o,r),t.bezierCurveTo(n-o,r-l,n-s,r-a,n,r-a),t.bezierCurveTo(n+s,r-a,n+o,r-l,n+o,r),t.bezierCurveTo(n+o,r+l,n+s,r+a,n,r+a),t.bezierCurveTo(n-s,r+a,n-o,r+l,n-o,r),t.closePath()},i}(X_);Fx.prototype.type="ellipse";var Hx=Math.PI,Vx=2*Hx,Yx=Math.sin,Xx=Math.cos,Wx=Math.acos,Gx=Math.atan2,Ux=Math.abs,jx=Math.sqrt,qx=Math.max,Zx=Math.min,Kx=1e-4,Qx=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 i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new Qx},i.prototype.buildPath=function(t,e){Fo(t,e)},i.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},i}(X_);Jx.prototype.type="sector";var $x=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),tb=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new $x},i.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},i}(X_);tb.prototype.type="ring";var eb=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),ib=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultShape=function(){return new eb},i.prototype.buildPath=function(t,e){Xo(t,e,!0)},i}(X_);ib.prototype.type="polygon";var nb=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),rb=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new nb},i.prototype.buildPath=function(t,e){Xo(t,e,!1)},i}(X_);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 i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new ab},i.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=Sr(ob,e,this.style);i=a.x1,n=a.y1,r=a.x2,o=a.y2}else i=e.x1,n=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(i,n),1>s&&(r=i*(1-s)+r*s,o=n*(1-s)+o*s),t.lineTo(r,o))},i.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},i}(X_);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}(),hb=function(t){function i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new ub},i.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(i,n),null==l||null==u?(1>h&&(Qn(i,a,r,h,lb),a=lb[1],r=lb[2],Qn(n,s,o,h,lb),s=lb[1],o=lb[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(Wn(i,a,l,r,h,lb),a=lb[1],l=lb[2],r=lb[3],Wn(n,s,u,o,h,lb),s=lb[1],u=lb[2],o=lb[3]),t.bezierCurveTo(a,s,l,u,r,o)))},i.prototype.pointAt=function(t){return Wo(this.shape,t,!1)},i.prototype.tangentAt=function(t){var e=Wo(this.shape,t,!0);return ut(e,e)},i}(X_);hb.prototype.type="bezier-curve";var cb=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 i(e){return t.call(this,e)||this}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new cb},i.prototype.buildPath=function(t,e){var i=e.cx,n=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+i,u*r+n),t.arc(i,n,r,o,a,!s)},i}(X_);pb.prototype.type="arc";var fb=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return e(i,t),i.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},i.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},i.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},i.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},i.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),X_.prototype.getBoundingRect.call(this)},i}(X_),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 i(e,i,n,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==i?0:i,s.x2=null==n?1:n,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return e(i,t),i}(db),yb=function(t){function i(e,i,n,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==i?.5:i,a.r=null==n?.5:n,a.type="radial",a.global=o||!1,a}return e(i,t),i}(db),vb=[0,0],mb=[0,0],_b=new Kv,xb=new Kv,bb=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;4>i;i++)this._corners[i]=new Kv;for(var i=0;2>i;i++)this._axes[i]=new Kv;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,s),i[3].set(r,s),e)for(var l=0;4>l;l++)i[l].transform(e);Kv.sub(n[0],i[1],i[0]),Kv.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;2>l;l++)this._origin[l]=n[l].dot(i[0])},t.prototype.intersect=function(t,e){var i=!0,n=!e;return _b.set(1/0,1/0),xb.set(0,0),!this._intersectCheckOneSide(this,t,_b,xb,n,1)&&(i=!1,n)?i:!this._intersectCheckOneSide(t,this,_b,xb,n,-1)&&(i=!1,n)?i:(n||Kv.copy(e,i?_b:xb),i)},t.prototype._intersectCheckOneSide=function(t,e,i,n,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]),h=Math.abs(vb[0]-mb[1]);Math.min(u,h)>n.len()&&(h>u?Kv.scale(n,l,-u*o):Kv.scale(n,l,h*o))}else if(i){var u=Math.abs(mb[0]-vb[1]),h=Math.abs(vb[0]-mb[1]);Math.min(u,h)<i.len()&&(h>u?Kv.scale(i,l,u*o):Kv.scale(i,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(n)+r[t];a=Math.min(u,a),s=Math.max(u,s)}i[0]=a,i[1]=s},t}(),wb=[],Sb=function(t){function i(){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(i,t),i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.useStyle=function(){this.style={}},i.prototype.getCursor=function(){return this._cursor},i.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},i.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},i.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},i.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},i.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},i.prototype.getDisplayables=function(){return this._displayables},i.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},i.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])},i.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}},i.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 i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(wb)),t.union(n)}this._rect=t}return this._rect},i.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1]))for(var n=0;n<this._displayables.length;n++){var r=this._displayables[n];if(r.contain(t,e))return!0}return!1},i}(jm),Tb=on(),Mb=Math.max,Cb=Math.min,Ib={},Ab=Ro,kb=No,Db=Mr;ia("circle",zx),ia("ellipse",Fx),ia("sector",Jx),ia("ring",tb),ia("polygon",ib),ia("polyline",rb),ia("rect",J_),ia("line",sb),ia("bezierCurve",hb),ia("arc",pb);var Pb=(Object.freeze||Object)({updateProps:jo,initProps:qo,removeElement:Ko,removeElementWithFadeOut:Jo,isElementRemoved:Zo,extendShape:ta,extendPath:ea,registerShape:ia,getShapeClass:na,makePath:ra,makeImage:oa,mergePath:kb,resizePath:sa,subPixelOptimizeLine:la,subPixelOptimizeRect:ua,subPixelOptimize:Db,getTransform:ha,applyTransform:ca,transformDirection:pa,groupTransition:ga,clipPointsByRect:ya,clipRectByRect:va,createIcon:ma,linePolygonIntersect:_a,lineLineIntersect:xa,setTooltipConfig:Sa,Group:gm,Image:q_,Text:ex,Circle:zx,Ellipse:Fx,Sector:Jx,Ring:tb,Polygon:ib,Polyline:rb,Rect:J_,Line:sb,BezierCurve:hb,Arc:pb,IncrementalDisplayable:Sb,CompoundPath:fb,LinearGradient:gb,RadialGradient:yb,BoundingRect:om,OrientedBoundingRect:bb,Point:Kv,Path:X_}),Ob={},Lb=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Eb=["align","lineHeight","width","height","tag","verticalAlign"],Rb=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],Nb=on(),zb=["textStyle","color"],Bb=new ex,Fb=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(zb):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 Bb.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")}),Bb.update(),Bb.getBoundingRect()},t}(),Hb=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Vb=wn(Hb),Yb=function(){function t(){}return t.prototype.getLineStyle=function(t){return Vb(this,t)},t}(),Xb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Wb=wn(Xb),Gb=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Wb(this,t,e)},t}(),Ub=function(){function t(t,e,i){this.parentModel=e,this.ecModel=i,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 i=this.option,n=null==i?i:i[t];if(null==n&&!e){var r=this.parentModel;r&&(n=r.getShallow(t))}return n},t.prototype.getModel=function(e,i){var n=null!=e,r=n?this.parsePath(e):null,o=n?this._doGet(r):this.option;return i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,i,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 i=this.option;if(!t)return i;for(var n=0;n<t.length&&(!t[n]||null!=(i=i&&"object"==typeof i?i[t[n]]:null));n++);return null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},t}();yn(Ub),function(t){var e=["__\0is_clz",Om++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}(Ub),f(Ub,Yb),f(Ub,Gb),f(Ub,Rm),f(Ub,Fb);var jb=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:""}}}},Kb="ZH",Qb="EN",Jb=Qb,$b={},tw={},ew=gy.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Kb)>-1?Kb:Jb}():Jb;za(Qb,qb),za(Kb,Zb);var iw=1e3,nw=60*iw,rw=60*nw,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},hw=["year","month","day","hour","minute","second","millisecond"],cw=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"],pw=H,fw=/([&<>"'])/g,dw={"&":"&","<":"<",">":">",'"':""","'":"'"},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"),on()),ww=function(t){function i(e,i,n){var r=t.call(this,e,i,n)||this;return r.uid=Ra("ec_cpt_model"),r}return e(i,t),i.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=bs(this),n=i?Ss(t):{};s(t,e.getTheme().get(this.mainType)),s(t,this.getDefaultOption()),i&&ws(t,n,i)},i.prototype.mergeOption=function(t){s(this.option,t,!0);var e=bs(this);e&&ws(this.option,t,e)},i.prototype.optionUpdated=function(){},i.prototype.getDefaultOption=function(){var t=this.constructor;if(!gn(t))return t.defaultOption;var e=bw(this);if(!e.defaultOption){for(var i=[],n=t;n;){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},a=i.length-1;a>=0;a--)o=s(o,i[a],!0);e.defaultOption=o}return e.defaultOption},i.prototype.getReferringComponents=function(t,e){var i=t+"Index",n=t+"Id";return ln(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},e)},i.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")}},i.protoInitialize=function(){var t=i.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),i}(Ub);mn(ww,Ub),bn(ww),function(t){var e={};t.registerSubTypeDefaulter=function(t,i){var n=fn(t);e[n.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var o=fn(i).main;t.hasSubTypes(i)&&e[o]&&(r=e[o](n))}return r}}(ww),function(t,e){function i(t){var i={},o=[];return g(t,function(a){var s=n(i,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),g(u,function(t){c(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);c(e.successor,t)<0&&e.successor.push(a)})}),{graph:i,noEntryList:o}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var i=[];return g(t,function(t){c(e,t)>=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,n,r){function o(t){0===--l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=i(e),l=s.graph,u=s.noEntryList,h={};for(g(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],f=!!h[c];f&&(n.call(r,c,p.originalDeps.slice()),delete h[c]),g(p.successor,f?a:o)}g(h,function(){throw new Error("")})}}}(ww,Ms);var Sw="";"undefined"!=typeof navigator&&(Sw=navigator.platform||"");var Tw,Mw,Cw="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:Cw,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Cw,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Cw,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Cw,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Cw,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Cw,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},Aw=G(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),kw="original",Dw="arrayRows",Pw="objectRows",Ow="keyedColumns",Lw="typedArray",Ew="unknown",Rw="column",Nw="row",zw={Must:1,Might:2,Not:3},Bw=on(),Fw=G(),Hw=on(),Vw=(on(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,i){var n=Fi(this.get("color",!0)),r=this.get("colorLayer",!0);return Es(this,Hw,n,r,t,e,i)},t.prototype.clearColorPalette=function(){Rs(this,Hw)},t}()),Yw="\0_ec_inner",Xw=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new Ub(n),this._locale=new Ub(r),this._optionManager=o},i.prototype.setOption=function(t,e,i){var n=Hs(e);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},i.prototype.resetOption=function(t,e){return this._resetOption(t,Hs(e))},i.prototype._resetOption=function(t,e){var i=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Mw(this,r),i=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(i=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&g(a,function(t){i=!0,this._mergeOption(t,e)},this)}return i},i.prototype.mergeOption=function(t){this._mergeOption(t,null)},i.prototype._mergeOption=function(t,e){function i(e){var i=Os(this,e,Fi(t[e])),a=r.get(e),s=a?c&&c.get(e)?"replaceMerge":"normalMerge":"replaceAll",l=Xi(a,i,s);en(l,e,ww),n[e]=null,r.set(e,null),o.set(e,0);var h=[],p=[],f=0;g(l,function(t,i){var n=t.existing,r=t.newOption;if(r){var o="series"===e,a=ww.getClass(e,t.keyInfo.subType,!o);if(!a)return;if(n&&n.constructor===a)n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1);else{var s=u({componentIndex:i},t.keyInfo);n=new a(r,this,this,s),u(n,s),t.brandNew&&(n.__requireNewView=!0),n.init(r,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(h.push(n.option),p.push(n),f++):(h.push(void 0),p.push(void 0))},this),n[e]=h,r.set(e,p),o.set(e,f),"series"===e&&Tw(this)}var n=this.option,r=this._componentsMap,o=this._componentsCount,l=[],h=G(),c=e&&e.replaceMergeMainTypeMap;Cs(this),g(t,function(t,e){null!=t&&(ww.hasClass(e)?e&&(l.push(e),h.set(e,!0)):n[e]=null==n[e]?a(t):s(n[e],t,!0))}),c&&c.each(function(t,e){ww.hasClass(e)&&!h.get(e)&&(l.push(e),h.set(e,!0))}),ww.topologicalTravel(l,ww.getAllClassMainTypes(),i,this),this._seriesIndices||Tw(this)},i.prototype.getOption=function(){var t=a(this.option);return g(t,function(e,i){if(ww.hasClass(i)){for(var n=Fi(e),r=n.length,o=!1,a=r-1;a>=0;a--)n[a]&&!tn(n[a])?o=!0:(n[a]=null,!o&&r--);n.length=r,t[i]=n}}),delete t[Yw],t},i.prototype.getTheme=function(){return this._theme},i.prototype.getLocaleModel=function(){return this._locale},i.prototype.setUpdatePayload=function(t){this._payload=t},i.prototype.getUpdatePayload=function(){return this._payload},i.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){var n=i[e||0];if(n)return n;if(null==e)for(var r=0;r<i.length;r++)if(i[r])return i[r]}},i.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];var a;return null!=i?(a=[],g(Fi(i),function(t){o[t]&&a.push(o[t])})):a=null!=n?Bs("id",n,o):null!=r?Bs("name",r,o):m(o,function(t){return!!t}),Fs(a,t)},i.prototype.findComponents=function(t){var e=t.query,i=t.mainType,n=function(t){var e=i+"Index",n=i+"Id",r=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[r]?null:{mainType:i,index:t[e],id:t[n],name:t[r]}}(e),r=n?this.queryComponents(n):m(this._componentsMap.get(i),function(t){return!!t});return function(e){return t.filter?m(e,t.filter):e}(Fs(r,t))},i.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(T(t)){var r=e,o=t;n.each(function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&o.call(r,e,n,n.componentIndex)}})}else for(var a=M(t)?n.get(t):A(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},i.prototype.getSeriesByName=function(t){var e=Ji(t,null);return m(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},i.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},i.prototype.getSeriesByType=function(t){return m(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},i.prototype.getSeries=function(){return m(this._componentsMap.get("series"),function(t){return!!t})},i.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},i.prototype.eachSeries=function(t,e){g(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},i.prototype.eachRawSeries=function(t,e){g(this._componentsMap.get("series"),function(i){i&&t.call(e,i,i.componentIndex)})},i.prototype.eachSeriesByType=function(t,e,i){g(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)},this)},i.prototype.eachRawSeriesByType=function(t,e,i){return g(this.getSeriesByType(t),e,i)},i.prototype.isSeriesFiltered=function(t){return null==this._seriesIndicesMap.get(t.componentIndex)},i.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},i.prototype.filterSeries=function(t,e){var i=[];g(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=G(i)},i.prototype.restoreData=function(t){Tw(this);var e=this._componentsMap,i=[];e.each(function(t,e){ww.hasClass(e)&&i.push(e)}),ww.topologicalTravel(i,ww.getAllClassMainTypes(),function(i){g(e.get(i),function(e){!e||"series"===i&&Ns(e,t)||e.restoreData()})})},i.internalField=function(){Tw=function(t){var e=t._seriesIndices=[];g(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=G(e)},Mw=function(t,e){t.option={},t.option[Yw]=1,t._componentsMap=G({series:[]}),t._componentsCount=G();var i=e.aria;A(i)&&null==i.enabled&&(i.enabled=!0),zs(e,t._theme.option),s(e,Iw,!1),t._mergeOption(e,null)}}(),i}(Ub);f(Xw,Vw);var Ww,Gw,Uw,jw,qw,Zw,Kw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Qw=function(){function t(t){g(Kw,function(e){this[e]=ky(t[e],t)},this)}return t}(),Jw={},$w=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var i=[];g(Jw,function(n){var r=n.create(t,e);i=i.concat(r||[])}),this._coordinateSystems=i},t.prototype.update=function(t,e){g(this._coordinateSystems,function(i){i.update&&i.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(Fi(t.series),function(t){t&&t.data&&D(t.data)&&X(t.data)}),g(Fi(t.dataset),function(t){t&&t.source&&D(t.source)&&X(t.source)})),t=a(t);var i=this._optionBackup,n=Vs(t,e,!i);this._newBaseOption=n.baseOption,i?(n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},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,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=a(i[n.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(){var t=this._api.getWidth(),e=this._api.getHeight(),i=this._mediaList,n=this._mediaDefault,r=[],o=[];if(!i.length&&!n)return o;for(var s=0,l=i.length;l>s;s++)Ys(i[s].query,t,e)&&r.push(s);return!r.length&&n&&(r=[-1]),r.length&&!Ws(r,this._currentMediaIndices)&&(o=y(r,function(t){return a(-1===t?n.option:i[t].option)})),this._currentMediaIndices=r,o},t}(),iS=g,nS=A,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===Ow?{}:[]),this.sourceFormat=t.sourceFormat||Ew,this.seriesLayoutBy=t.seriesLayoutBy||Rw,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&Ds(this,i)===zw.Must&&(n.type="ordinal")}}return t}(),uS=function(){function t(t,e){var i=cl(t)?t:fl(t);this._source=i;var n=this._data=i.data;i.sourceFormat===Lw&&(this._offset=0,this._dimSize=e,this._data=n),qw(this,n,i)}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,h=o.dimensionsDefine;if(u(t,jw[Tl(a,s)]),a===Lw)t.getItem=i,t.count=r,t.fillStorage=n;else{var c=bl(a,s);t.getItem=ky(c,null,e,l,h);var p=wl(a,s);t.count=ky(p,null,e,l,h)}};var i=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,r=n*t,o=0;n>o;o++)e[o]=i[r+o];return e},n=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;o>a;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=i[a],p=0;h>p;p++){var f=r[p*o+a];c[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[Dw+"_"+Rw]={pure:!0,appendData:t},e[Dw+"_"+Nw]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Pw]={pure:!0,appendData:t},e[Ow]={pure:!0,appendData:function(t){var e=this._data;g(t,function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},e[kw]={appendData:t},e[Lw]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},jw=e}(),t}(),hS=function(t,e,i,n){return t[n]},cS=(Ww={},Ww[Dw+"_"+Rw]=function(t,e,i,n){return t[n+e]},Ww[Dw+"_"+Nw]=function(t,e,i,n,r){n+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},Ww[Pw]=hS,Ww[Ow]=function(t,e,i,n,r){for(var o=r||[],a=0;a<i.length;a++){var s=i[a].name,l=t[s];o[a]=l?l[n]:null}return o},Ww[kw]=hS,Ww),pS=function(t){return t.length},fS=(Gw={},Gw[Dw+"_"+Rw]=function(t,e){return Math.max(0,t.length-e)},Gw[Dw+"_"+Nw]=function(t,e){var i=t[0];return i?Math.max(0,i.length-e):0},Gw[Pw]=pS,Gw[Ow]=function(t,e,i){var n=i[0].name,r=t[n];return r?r.length:0},Gw[kw]=pS,Gw),dS=function(t,e){return t[e]},gS=(Uw={},Uw[Dw]=dS,Uw[Pw]=function(t,e,i){return t[i]},Uw[Ow]=dS,Uw[kw]=function(t,e){var i=Vi(t);return i instanceof Array?i[e]:i},Uw[Lw]=dS,Uw),yS=/\{@(.+?)\}/g,vS=function(){function t(){}return t.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),l=s&&s[i.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,p=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,i,n,r,o){e=e||"normal";var a=this.getData(i),s=this.getDataParams(t,i);if(o&&(s.value=o.interpolatedValue),null!=n&&S(s.value)&&(s.value=s.value[n]),!r){r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if("function"==typeof r)return s.status=e,s.dimensionIndex=n,r(s);if("string"==typeof r){return ds(r,s).replace(yS,function(e,i){var n=i.length,r=i;"["===r.charAt(0)&&"]"===r.charAt(n-1)&&(r=+r.slice(1,n-1));var s=Ml(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 Ml(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 i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(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 h;(this._dirty||"reset"===o)&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||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,i,n,r){_S.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:_S.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),S(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},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 i>n?n++:null}function e(){var t=n%a*r+Math.ceil(n/a),e=n>=i?null:o>t?t:n;return n++,e}var i,n,r,o,a,s={reset:function(l,u,h,c){n=l,i=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),xS=(G({number:function(t){return parseFloat(t)},time:function(t){return+Ii(t)},trim:function(t){return"string"==typeof t?Y(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){Bi("")}this._opFn=xS[t],this._rvalFloat=Li(e)}t.prototype.evaluate=function(t){return"number"==typeof t?this._opFn(t,this._rvalFloat):this._opFn(Li(t),this._rvalFloat)}}(),function(){function t(t,e){var i="desc"===t;this._resultLT=i?1:-1,null==e&&(e=i?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var i=typeof t,n=typeof e,r="number"===i?t:Li(t),o="number"===n?e:Li(e),a=isNaN(r),s=isNaN(o);if(a&&(r=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===i,u="string"===n;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=Li(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i===this._rvalTypeof||"number"!==i&&"number"!==this._rvalTypeof||(e=Li(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 Al(t,e)},t}()),SS=G(),TS="undefined",MS=typeof Uint32Array===TS?Array:Uint32Array,CS=typeof Uint16Array===TS?Array:Uint16Array,IS=typeof Int32Array===TS?Array:Int32Array,AS=typeof Float64Array===TS?Array:Float64Array,kS={float:AS,int:IS,ordinal:Array,number:Array,time:AS},DS=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=G()}return t.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),r=this.defaultDimValueGetter=Zw[n.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[],xl(n),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 i=this._calcDimNameToIdx,n=this._dimensions,r=i.get(t);if(null!=r){if(n[r].type===e)return r}else r=n.length;return n[r]={type:e},i.set(t,r),this._chunks[r]=new kS[e||"float"](this._rawCount),this._rawExtent[r]=Fl(),r},t.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],r=this._rawExtent,o=n.ordinalOffset||0,a=i.length;0===o&&(r[t]=Fl());for(var s=r[t],l=o;a>l;l++){var u=i[l]=e.parseAndCollect(i[l]);s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1])}n.ordinalMeta=e,n.ordinalOffset=a,n.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,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),n>i&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;r>l;l++){var u=n[l];Vl(i,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var p=c-a,f=0;r>f;f++){var u=n[f],d=Zw.arrayRows.call(this,t[p]||h,u.property,p,f);i[f][c]=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,i){for(var n=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 h=o[u];s[u]||(s[u]=Fl()),Vl(r,u,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,r,s);else for(var c=[],p=t;e>p;p++){c=n.getItem(p,c);for(var f=0;a>f;f++){var d=r[f],g=this._dimValueGetter(c,l[f],p,f);d[p]=g;var v=s[f];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!n.persistent&&n.clean&&n.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 i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)n.push(r)}else n=t;for(var r=0,o=n.length;o>r;r++)i.push(this.get(n[r],e));return i},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,r=this.count();r>n;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var i=e.sort(function(t,e){return t-e}),n=this.count();return 0===n?0:n%2==1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;r>=n;){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,r=n[t],o=[];if(!r)return o;null==i&&(i=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),p=e-r[c],f=Math.abs(p);i>=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 i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;n>r;r++)t[r]=e[r]}else t=new i(e.buffer,0,n)}else{var i=Bl(this._rawCount);t=new i(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 i=this.clone(),n=i.count(),r=Bl(i._rawCount),o=new r(n),a=[],s=t.length,l=0,u=t[0],h=i._chunks,c=0;n>c;c++){var p=void 0,f=i.getRawIndex(c);if(0===s)p=e(c);else if(1===s){var d=h[u][f];p=e(d,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][f];a[g]=c,p=e.apply(null,a)}p&&(o[l++]=f)}return n>l&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=x(t),r=n.length;if(!r)return this;var o=e.count(),a=Bl(e._rawCount),s=new a(o),l=0,u=n[0],h=t[u][0],c=t[u][1],p=e._chunks,f=!1;if(!e._indices){var d=0;if(1===r){for(var g=p[n[0]],y=0;i>y;y++){var v=g[y];(v>=h&&c>=v||isNaN(v))&&(s[l++]=d),d++}f=!0}else if(2===r){for(var g=p[n[0]],m=p[n[1]],_=t[n[1]][0],b=t[n[1]][1],y=0;i>y;y++){var v=g[y],w=m[y];(v>=h&&c>=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[n[0]][S];(v>=h&&c>=v||isNaN(v))&&(s[l++]=S)}else for(var y=0;o>y;y++){for(var T=!0,S=e.getRawIndex(y),M=0;r>M;M++){var C=n[M],v=p[C][S];(v<t[C][0]||v>t[C][1])&&(T=!1)}T&&(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 i=this.clone(t);return this._updateDims(i,t,e),i},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,i){for(var n=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 h=0;a>h;h++){for(var c=t.getRawIndex(h),p=0;o>p;p++)s[p]=n[e[p]][c];s[o]=h;var f=i&&i.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=n[d];v&&(v[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var i,n,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(Bl(this._rawCount))(Math.ceil(l/h)+2);p[u++]=c;for(var f=1;l-1>f;f+=h){for(var d=Math.min(f+h,l-1),g=Math.min(f+2*h,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+h,l),S=f-1,T=s[c];i=-1,r=b;for(var m=b;w>m;m++){var _=this.getRawIndex(m),x=s[_];isNaN(x)||(n=Math.abs((S-y)*(x-T)-(S-m)*(v-T)))>i&&(i=n,r=_)}p[u++]=r,c=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,i,n){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=Fl(),c=new(Bl(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=i(a),v=this.getRawIndex(Math.min(f+n(a,y)||0,u-1));l[v]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getRawIndex(r);switch(i){case 0:e(r);break;case 1:e(n[t[0]][a],r);break;case 2:e(n[t[0]][a],n[t[1]][a],r);break;default:for(var s=0,l=[];i>s;s++)l[s]=n[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Fl();if(!e)return i;var n,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(n=this._extent[t])return n.slice();n=i;for(var o=n[0],a=n[1],s=0;r>s;s++){var l=this.getRawIndex(s),u=e[l];o>u&&(o=u),u>a&&(a=u)}return n=[o,a],this._extent[t]=n,n},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,r=0;r<n.length;r++)i.push(n[r][e]);return i},t.prototype.clone=function(e,i){var n=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++)n._chunks[a]=o[a]?Hl(r[a]):r[a];else n._chunks=r;return this._copyCommonProps(n),i||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},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 i=this._indices.length;e=new t(i);for(var n=0;i>n;n++)e[n]=this._indices[n]}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,i,n){return Al(t[n],this._dimensions[n])}Zw={arrayRows:t,objectRows:function(t,e,i,n){return Al(t[e],this._dimensions[n])},keyedColumns:t,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return Al(r instanceof Array?r[n]:r,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}}}(),t}(),PS=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,i=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length;if(Xl(i)){var o=i,a=void 0,s=void 0,l=void 0;if(r){var u=n[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=D(a)?Lw:kw,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=z(h.seriesLayoutBy,c.seriesLayoutBy)||null,f=z(h.sourceHeader,c.sourceHeader)||null,d=z(h.dimensions,c.dimensions);t=p!==c.seriesLayoutBy||!!f!=!!c.sourceHeader||d?[pl(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:d},s)]:[]}else{var g=i;if(r){var y=this._applyTransform(n);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,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(null!=n){1!==t.length&&Wl("")}var r,o=[],a=[];return g(t,function(t){t.prepareSource();var e=t.getSource(n||0);null==n||e||Wl(""),o.push(e),a.push(t._getVersionSign())}),i?r=Rl(i,o,{datasetIndex:e.componentIndex}):null!=n&&(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 i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[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,i){var n=this._storeList,r=n[0];r||(r=n[0]={});var o=r[i];if(!o){var a=this._getUpstreamSourceManagers()[0];Xl(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,i):(o=new DS,o.initData(new uS(e,t.length),t)),r[i]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Xl(t)){var e=As(t);return e?[e.getSourceManager()]:[]}return y(ks(t),function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;if(Xl(n))t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=n;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),i=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},t}(),OS="line-height:1",LS=[0,10,20,30],ES=["","\n","\n\n","\n\n\n"],RS={section:{planLayout:function(t){var e=t.blocks.length,i=e>1||e>0&&!t.noHeader,n=0;g(t.blocks,function(t){jl(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=n&&(n=e+(!i||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=n},build:function(t,e,i,n){var r=e.noHeader,o=Kl(e),a=ql(t,e,r?i:o.html,n);if(r)return a;var s=fs(e.header,"ordinal",t.useUTC),l=Gl(n,t.renderMode).nameStyle;return"richText"===t.renderMode?tu(t,s,l)+o.richText+a:Ql('<div style="'+l+";"+OS+';">'+ps(s)+"</div>"+a,i)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,i,n){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,h=t.useUTC;if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":fs(l,"ordinal",h),f=e.valueType,d=a?[]:S(u)?y(u,function(t,e){return fs(t,S(f)?f[e]:f,h)}):[fs(u,S(f)?f[0]:f,h)],g=!s||!o,v=!s&&o,m=Gl(n,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":c)+(o?"":tu(t,p,_))+(a?"":eu(t,d,g,v,x)):Ql((s?"":c)+(o?"":Jl(p,!s,_))+(a?"":$l(d,g,v,x)),i)}}}},NS=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ri()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,r=gs({color:e,type:t,renderMode:i,markerId:n});return M(r)?r:(this.richTextStyles[n]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};S(e)?g(e,function(t){return u(i,t)}):u(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},t}(),zS=on(),BS=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return e(i,t),i.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=Il({count:uu,reset:hu}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),(zS(this).sourceManager=new PS(this)).prepareSource();var n=this.getInitialData(t,i);pu(n,this),this.dataTask.context.data=n,zS(this).dataBeforeProcessed=n,su(this),this._initSelectedMapFromData(n)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=bs(this),n=i?Ss(t):{},r=this.subType;ww.hasClass(r)&&(r+="Series"),s(t,e.getTheme().get(this.subType)),s(t,this.getDefaultOption()),Hi(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&ws(t,n,i)},i.prototype.mergeOption=function(t,e){t=s(this.option,t,!0),this.fillDataTextStyle(t.data);var i=bs(this);i&&ws(this.option,t,i);var n=zS(this).sourceManager;n.dirty(),n.prepareSource();var r=this.getInitialData(t,e);pu(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,zS(this).dataBeforeProcessed=r,su(this),this._initSelectedMapFromData(r)},i.prototype.fillDataTextStyle=function(t){if(t&&!D(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Hi(t[i],"label",e)},i.prototype.getInitialData=function(){},i.prototype.appendData=function(t){this.getRawData().appendData(t.data)},i.prototype.getData=function(t){var e=du(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return zS(this).data},i.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},i.prototype.setData=function(t){var e=du(this);if(e){var i=e.context;i.outputData=t,e!==this.dataTask&&(i.data=t)}zS(this).data=t},i.prototype.getEncode=function(){var t=this.get("encode",!0);return t?G(t):void 0},i.prototype.getSourceManager=function(){return zS(this).sourceManager},i.prototype.getSource=function(){return this.getSourceManager().getSource()},i.prototype.getRawData=function(){return zS(this).dataBeforeProcessed},i.prototype.getColorBy=function(){return this.get("colorBy")||"series"},i.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},i.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},i.prototype.formatTooltip=function(t,e){return ru({series:this,dataIndex:t,multipleSeries:e})},i.prototype.isAnimationEnabled=function(){if(gy.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel,r=Vw.prototype.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},i.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},i.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i)for(var n=this.getData(e),r=0;r<t.length;r++){var o=t[r],a=au(n,o);i[a]=!1,this._selectedDataIndicesMap[a]=-1}},i.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},i.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=x(t),i=[],n=0;n<e.length;n++){var r=t[e[n]];r>=0&&i.push(r)}return i},i.prototype.isSelected=function(t,e){var i=this.option.selectedMap;return!!i&&(i[au(this.getData(e),t)]||!1)},i.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},i.prototype._innerSelect=function(t,e){var i,n,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 h=e[o-1],u=au(t,h);this.option.selectedMap=(i={},i[u]=!0,i),this._selectedDataIndicesMap=(n={},n[u]=t.getRawIndex(h),n)}},i.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(i){var n=t.getRawDataItem(i);n&&n.selected&&e.push(i)}),e.length>0&&this._innerSelect(t,e)}},i.registerClass=function(t){return ww.registerClass(t)},i.protoInitialize=function(){var t=i.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),i}(ww);f(BS,vS),f(BS,Vw),mn(BS,ww);var FS=function(){function t(){this.group=new gm,this.uid=Ra("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}();yn(FS),bn(FS);var HS=on(),VS=gu(),YS=function(){function t(){this.group=new gm,this.uid=Ra("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,i,n){vu(t.getData(),n,"emphasis")},t.prototype.downplay=function(t,e,i,n){vu(t.getData(),n,"normal")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},t.markUpdateMethod=function(t,e){HS(t).updateMethod=e},t.protoInitialize=function(){t.prototype.type="chart"}(),t}();yn(YS),bn(YS);var XS,WS={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)}}},GS="\0__throttleOriginMethod",US="\0__throttleRate",jS="\0__throttleType",qS=on(),ZS={itemStyle:wn(Xb,!0),lineStyle:wn(Hb,!0)},KS={lineStyle:"stroke",itemStyle:"fill"},QS={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=wu(t,n),a=o(r),s=r.getShallow("decal");s&&(i.setVisual("decal",s),s.dirty=!0);var l=Su(t,n),h=a[l],c=T(h)?h:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||p){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,i.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 i.setVisual("style",a),i.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c?(i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=u({},a);r[l]=c(n),e.setItemVisual(i,"style",r)}}):void 0}},JS=new Ub,$S={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=wu(t,n),o=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(t,e){var i=t.getRawDataItem(e);if(i&&i[n]){JS.option=i[n];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}}}},tT={performRawSeries:!0,overallReset:function(t){var e=G();t.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+i,r=e.get(n);r||(r={},e.set(n,r)),qS(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var i=e.getRawData(),n={},r=e.getData(),o=qS(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Su(e,a);r.each(function(t){var e=r.getRawIndex(t);n[e]=t}),i.each(function(t){var a=n[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=i.getName(t)||t+"",h=i.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}},eT=Math.PI,iT=function(){function t(t,e,i,n){this._stageTaskMap=G(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}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 i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=r?i.step:null,a=n&&n.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 i=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=G();t.eachSeries(function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;g(this._allHandlers,function(n){var r=t.get(n.uid)||t.set(n.uid,{});V(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)},this)},t.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,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,i){this._performStageTasks(this._visualHandlers,t,e,i)},t.prototype._performStageTasks=function(t,e,i,n){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}n=n||{};var o=!1,a=this;g(t,function(t){if(!n.visualType||n.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){r(n,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,i);var p=a.getPerformArgs(u,n.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){r(n,s)&&s.dirty();var l=a.getPerformArgs(s,n.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,i),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,i,n){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||Il({plan:ku,reset:Du,count:Ou}));l.context={model:e,ecModel:i,api:n,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=G(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(r):l?i.eachRawSeriesByType(l,r):u&&u(i,n).each(r)},t.prototype._createOverallStageTask=function(t,e,i,n){function r(t){var e=t.uid,i=l.set(e,s&&s.get(e)||(p=!0,Il({reset:Cu,onDirty:Au})));i.context={model:t,overallProgress:c},i.agent=a,i.__block=c,o._pipe(t,i)}var o=this,a=e.overallTask=e.overallTask||Il({reset:Mu});a.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=G(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1;V(!t.createOnAllSeries,""),u?i.eachRawSeriesByType(u,r):h?h(i,n).each(r):(c=!1,g(i.getSeries(),r)),p&&a.dirty()},t.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return T(t)&&(t={overallReset:t,seriesType:Lu(t)}),t.uid=Ra("stageHandler"),e&&(t.visualType=e),t},t}(),nT=Pu(0),rT={},oT={};Eu(rT,Xw),Eu(oT,Qw),rT.eachSeriesByType=rT.eachRawSeriesByType=function(t){XS=t},rT.eachComponent=function(t){"series"===t.mainType&&t.subType&&(XS=t.subType)};var aT=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],sT={color:aT,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],aT]},lT="#B9B8CE",uT="#100C2A",hT=function(){return{axisLine:{lineStyle:{color:lT}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},cT=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],pT={darkMode:!0,color:cT,backgroundColor:uT,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:lT}},textStyle:{color:lT},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:lT}},dataZoom:{borderColor:"#71708A",textStyle:{color:lT},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:lT}},timeline:{lineStyle:{color:lT},label:{color:lT},controlStyle:{color:lT,borderColor:lT}},calendar:{itemStyle:{color:uT},dayLabel:{color:lT},monthLabel:{color:lT},yearLabel:{color:lT}},timeAxis:hT(),logAxis:hT(),valueAxis:hT(),categoryAxis:hT(),line:{symbol:"circle"},graph:{color:cT},gauge:{title:{color:lT},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:lT},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};pT.categoryAxis.splitLine.show=!1;var fT=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},i={},n={};if(M(t)){var r=fn(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],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},t.prototype.filter=function(t,e){function i(t,e,i,n){return null==t[i]||e[n||i]===t[i]}var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,o=n.packedEvent,a=n.model,s=n.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return i(l,a,"mainType")&&i(l,a,"subType")&&i(l,a,"index","componentIndex")&&i(l,a,"name")&&i(l,a,"id")&&i(u,o,"name")&&i(u,o,"dataIndex")&&i(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),dT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function i(e,i){var n=t.getRawValue(i),a=t.getDataParams(i);u&&e.setItemVisual(i,"symbol",r(n,a)),h&&e.setItemVisual(i,"symbolSize",o(n,a)),c&&e.setItemVisual(i,"symbolRotate",s(n,a)),p&&e.setItemVisual(i,"symbolOffset",l(n,a))}var n=t.getData();if(t.legendIcon&&n.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=T(r),h=T(o),c=T(s),p=T(l),f=u||h||c||p,d=!u&&r?r:t.defaultSymbol,g=h?null:o,y=c?null:s,v=p?null:l;if(n.setVisual({legendIcon:t.legendIcon||d,symbol:d,symbolSize:g,symbolKeepAspect:a,symbolRotate:y,symbolOffset:v}),!e.isSeriesFiltered(t))return{dataEach:f?i:null}}}},gT={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function i(t,e){var i=t.getItemModel(e),n=i.getShallow("symbol",!0),r=i.getShallow("symbolSize",!0),o=i.getShallow("symbolRotate",!0),a=i.getShallow("symbolOffset",!0),s=i.getShallow("symbolKeepAspect",!0);null!=n&&t.setItemVisual(e,"symbol",n),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?i:null}}}},yT=Math.round(9*Math.random()),vT="function"==typeof Object.defineProperty,mT=function(){function t(){this._id="__ec_inner_"+yT++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var i=this._guard(t);return vT?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[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}(),_T=X_.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),xT=X_.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),bT=X_.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),f=.6*a,d=.7*a;t.moveTo(i-h,l+s),t.arc(i,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+h-c*f,l+s+p*f,i,n-d,i,n),t.bezierCurveTo(i,n-d,i-h+c*f,l+s+p*f,i-h,l+s),t.closePath()}}),wT=X_.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),ST={line:sb,rect:J_,roundRect:J_,square:J_,circle:zx,diamond:xT,pin:bT,arrow:wT,triangle:_T},TT={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},MT={};g(ST,function(t,e){MT[e]=new t});for(var CT,IT=X_.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=ii(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=MT[n];r||(n="rect",r=MT[n]),TT[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}}),AT=new O_(!0),kT=["shadowBlur","shadowOffsetX","shadowOffsetY"],DT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],PT=1,OT=2,LT=3,ET=4,RT=new mT,NT=new fv(100),zT=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"],BT={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"},FT=x(BT),HT={"alignment-baseline":"textBaseline","stop-color":"stopColor"},VT=x(HT),YT=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var i=Sh(t);if(!i)throw new Error("Illegal svg");this._defsUsePending=[];var n=new gm;this._root=n;var r=[],o=i.getAttribute("viewBox")||"",a=parseFloat(i.getAttribute("width")||e.width),s=parseFloat(i.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),Ah(i,n,null,!0,!1);for(var l=i.firstChild;l;)this._parseNode(l,n,r,null,!1,!1),l=l.nextSibling;Ph(this._defs,this._defsUsePending),this._defsUsePending=[];var u,h;if(o){var c=Oh(o);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&null!=a&&null!=s&&(h=Nh(u,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=n;n=new gm,n.add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return e.ignoreRootClip||null==a||null==s||n.setClipPath(new J_({shape:{x:0,y:0,width:a,height:s}})),{root:n,width:a,height:s,viewBoxRect:u,viewBoxTransform:h,named:r}},t.prototype._parseNode=function(t,e,i,n,r,o){var a,s=t.nodeName.toLowerCase(),l=n;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=CT[s];if(u&&q(CT,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};i.push(c),"g"===s&&(l=c)}else n&&i.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:a});e.add(a)}}var p=XT[s];if(p&&q(XT,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,i,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var i=new G_({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),kh(i,e);var n=i.style,r=n.fontSize;r&&9>r&&(n.fontSize=9,i.scaleX*=r/9,i.scaleY*=r/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var a=i.getBoundingRect();return this._textX+=a.width,e.add(i),i},t.internalField=function(){CT={g:function(t,e){var i=new gm;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new J_;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(t,e){var i=new zx;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),i.silent=!0,i},line:function(t,e){var i=new sb;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(t,e){var i=new Fx;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(t,e){var i,n=t.getAttribute("points");n&&(i=Ih(n));var r=new ib({shape:{points:i||[]},silent:!0});return Ch(e,r),Ah(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var i,n=t.getAttribute("points");n&&(i=Ih(n));var r=new rb({shape:{points:i||[]},silent:!0});return Ch(e,r),Ah(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var i=new q_;return Ch(e,i),Ah(t,i,this._defsUsePending,!1,!1),i.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),i.silent=!0,i},text:function(t,e){var i=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(n)+parseFloat(o);var a=new gm;return Ch(e,a),Ah(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var i=t.getAttribute("x"),n=t.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=n&&(this._textY=parseFloat(n));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new gm;return Ch(e,a),Ah(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var i=t.getAttribute("d")||"",n=Eo(i);return Ch(e,n),Ah(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),t}(),XT={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),i=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new gb(e,i,n,r);return Th(t,o),Mh(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),i=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),r=new yb(e,i,n);return Th(t,r),Mh(t,r),r}},WT=/^url\(\s*#(.*?)\)/,GT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,UT=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,jT=Math.PI/180,qT=/([^\s:;]+)\s*:\s*([^:;]+)/g,ZT=1e-8,KT=[],QT=function(){function t(t){this.name=t}return t.prototype.getCenter=function(){},t}(),JT=function(t){function i(e,i,n){var r=t.call(this,e)||this;if(r.type="geoJSON",r.geometries=i,n)n=[n[0],n[1]];else{var o=r.getBoundingRect();n=[o.x+o.width/2,o.y+o.height/2]}return r._center=n,r}return e(i,t),i.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],n=[-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(i,i,r),yt(n,n,o)}return 0===s&&(i[0]=i[1]=n[0]=n[1]=0),this._rect=new om(i[0],i[1],n[0]-i[0],n[1]-i[1])},i.prototype.contain=function(t){var e=this.getBoundingRect(),i=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,r=i.length;r>n;n++)if("polygon"===i[n].type){var o=i[n].exterior,a=i[n].interiors;if(Fh(o,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(Fh(a[s],t[0],t[1]))continue t;return!0}}return!1},i.prototype.transformTo=function(t,e,i,n){var r=this.getBoundingRect(),o=r.width/r.height;i?n||(n=i/o):i=o*n;for(var a=new om(t,e,i,n),s=r.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var h=l[u].exterior,c=l[u].interiors,p=0;p<h.length;p++)dt(h[p],h[p],s);for(var f=0;f<(c?c.length:0);f++)for(var p=0;p<c[f].length;p++)dt(c[f][p],c[f][p],s)}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},i.prototype.cloneShallow=function(t){null==t&&(t=this.name);var e=new i(t,this.geometries,this._center);return e._rect=this._rect,e.transformTo=null,e},i.prototype.getCenter=function(){return this._center},i.prototype.setCenter=function(t){this._center=t},i}(QT),$T=function(t){function i(e,i){var n=t.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return e(i,t),i.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this._calculateCenter()),t},i.prototype._calculateCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),i=[e.x+e.width/2,e.y+e.height/2],n=Fe(KT),r=t;r&&!r.isGeoSVGGraphicRoot;)Ve(n,r.getLocalTransform(),n),r=r.parent;return Ge(n,n),dt(i,i,n),i},i}(QT),tM=G(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),eM=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=G(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Sh(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=Vh(t.named),i=e.regions,n=e.regionsMap;this._regions=i,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,i;try{e=t&&zh(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=e.root,V(null!=i)}catch(t){throw new Error("Invalid svg format\n"+t.message)}var n=new gm;n.add(i),n.isGeoSVGGraphicRoot=!0;var r=e.width,o=e.height,a=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,h=void 0,c=void 0;if(null!=r?(l=0,h=r):a&&(l=a.x,h=a.width),null!=o?(u=0,c=o):a&&(u=a.y,c=a.height),null==l||null==u){var p=i.getBoundingRect();null==l&&(l=p.x,h=p.width),null==u&&(u=p.y,c=p.height)}s=this._boundingRect=new om(l,u,h,c)}if(a){var f=Nh(a,s);i.scaleX=i.scaleY=f.scale,i.x=f.x,i.y=f.y}n.setClipPath(new J_({shape:s.plain()}));var d=[];return g(e.named,function(t){null!=tM.get(t.svgNodeTagLower)&&(d.push(t),Hh(t.el))}),{root:n,boundingRect:s,named:d}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,i),i)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);i&&(e.removeKey(t),this._freedGraphics.push(i))},t}(),iM=[126,25],nM="南海诸岛",rM=[[[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]]],oM=0;oM<rM.length;oM++)for(var aM=0;aM<rM[oM].length;aM++)rM[oM][aM][0]/=10.5,rM[oM][aM][1]/=-14,rM[oM][aM][0]+=iM[0],rM[oM][aM][1]+=iM[1];var sM={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]},lM={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]},uM=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],hM=function(){function t(t,e,i){this.type="geoJSON",this._parsedMap=G(),this._mapName=t,this._specialAreas=i,this._geoJSON=Kh(e)}return t.prototype.load=function(t,e){e=e||"name";var i=this._parsedMap.get(e);if(!i){var n=this._parseToRegions(e);i=this._parsedMap.set(e,{regions:n,boundingRect:Zh(n)})}var r=G(),o=[];return g(i.regions,function(e){var i=e.name;t&&t.hasOwnProperty(i)&&(e=e.cloneShallow(i=t[i])),o.push(e),r.set(i,e)}),{regions:o,boundingRect:i.boundingRect||new om(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,i=this._mapName,n=this._geoJSON;try{e=n?Wh(n,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return Gh(i,e),g(e,function(t){var e=t.name;Uh(i,t),jh(i,t),qh(i,t);var n=this._specialAreas&&this._specialAreas[e];n&&t.transformTo(n.left,n.top,n.width,n.height)},this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}(),cM=G(),pM={registerMap:function(t,e,i){if(e.svg){var n=new eM(t,e.svg);cM.set(t,n)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?i=e.specialAreas:r=e;var n=new hM(t,r,i);cM.set(t,n)}},getGeoResource:function(t){return cM.get(t)},getMapForUser:function(t){var e=cM.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,i){var n=cM.get(t);if(n)return n.load(e,i)}},fM=new Hy,dM="undefined"!=typeof window,gM={zrender:"5.2.0"},yM=2e3,vM=1e3,mM=3e3,_M={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:vM,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:mM,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},xM="__flagInMainProcess",bM="__pendingUpdate",wM="__needsUpdateStatus",SM=/^[a-zA-Z0-9_]+$/,TM="__connectUpdateStatus",MM=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i}(Hy),CM=MM.prototype;CM.on=Jh("on"),CM.off=Jh("off");var IM,AM,kM,DM,PM,OM,LM,EM,RM,NM,zM,BM,FM,HM,VM,YM,XM,WM,GM,UM=function(t){function i(e,i,n){function r(t,e){return t.__prio-e.__prio}var o=t.call(this,new fT)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],n=n||{},"string"==typeof i&&(i=tC[i]),o._dom=e;var s=o._zr=hi(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,useDirtyRect:null!=n.useDirtyRect&&n.useDirtyRect});o._throttledZrFlush=xu(ky(s.flush,s),17),i=a(i),i&&ll(i,!0),o._theme=i,o._locale=Ba(n.locale||ew),o._coordSysMgr=new $w;var l=o._api=YM(o);return Wt($M,r),Wt(QM,r),o._scheduler=new iT(o,l,QM,$M),o._messageCenter=new MM,o._initEvents(),o.resize=ky(o.resize,o),s.animation.on("frame",o._onframe,o),NM(s,o),zM(s,o),X(o),o}return e(i,t),i.prototype._onframe=function(){if(!this._disposed){GM(this);var t=this._scheduler;if(this[bM]){var e=this[bM].silent;this[xM]=!0,IM(this),DM.update.call(this,null,this[bM].updateParams),this._zr.flush(),this[xM]=!1,this[bM]=null,EM.call(this,e),RM.call(this,e)}else if(t.unfinished){var i=1,n=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),OM(this,n),t.performVisualTasks(n),VM(this,this._model,r,"remain",{}),i-=+new Date-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},i.prototype.getDom=function(){return this._dom},i.prototype.getId=function(){return this.id},i.prototype.getZr=function(){return this._zr},i.prototype.setOption=function(t,e,i){if(!this._disposed){var n,r,o;if(A(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[xM]=!0,!this._model||e){var a=new eS(this._api),s=this._theme,l=this._model=new Xw;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},JM);var u={seriesTransition:o,optionChanged:!0};i?(this[bM]={silent:n,updateParams:u},this[xM]=!1,this.getZr().wakeUp()):(IM(this),DM.update.call(this,null,u),this._zr.flush(),this[bM]=null,this[xM]=!1,EM.call(this,n),RM.call(this,n))}},i.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},i.prototype.getModel=function(){return this._model},i.prototype.getOption=function(){return this._model&&this._model.getOption()},i.prototype.getWidth=function(){return this._zr.getWidth()},i.prototype.getHeight=function(){return this._zr.getHeight()},i.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||dM&&window.devicePixelRatio||1},i.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},i.prototype.getSvgDataURL=function(){if(gy.svgSupported){var t=this._zr;return g(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},i.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;g(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return g(n,function(t){t.group.ignore=!1}),o}},i.prototype.getConnectedDataURL=function(t){if(!this._disposed&&gy.canvasSupported){var e="svg"===t.type,i=this.group,n=Math.min,r=Math.max,o=1/0;if(nC[i]){var s=o,l=o,u=-o,h=-o,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();g(iC,function(o){if(o.group===i){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(a(t)),f=o.getDom().getBoundingClientRect();s=n(f.left,s),l=n(f.top,l),u=r(f.right,u),h=r(f.bottom,h),c.push({dom:p,left:f.left,top:f.top})}}),s*=p,l*=p,u*=p,h*=p;var f=u-s,d=h-l,y=Ay(),v=hi(y,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:d}),e){var m="";return g(c,function(t){var e=t.left-s,i=t.top-l;m+='<g transform="translate('+e+","+i+')">'+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(c,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)}},i.prototype.convertToPixel=function(t,e){return PM(this,"convertToPixel",t,e)},i.prototype.convertFromPixel=function(t,e){return PM(this,"convertFromPixel",t,e)},i.prototype.containPixel=function(t,e){if(!this._disposed){var i;return g(an(this._model,t),function(t,n){n.indexOf("Models")>=0&&g(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i=i||!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i=i||o.containPoint(e,t))}},this)},this),!!i}},i.prototype.getVisual=function(t,e){var i=this._model,n=an(i,t,{defaultMainType:"series"}),r=n.seriesModel,o=r.getData(),a=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?o.indexOfRawIndex(n.dataIndex):null;return null!=a?Ru(o,a,e):Nu(o,e)},i.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},i.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},i.prototype._initEvents=function(){var t=this;g(qM,function(e){var i=function(i){var n,r=t.getModel(),o=i.target;if("globalout"===e?n={}:o&&Fu(o,function(t){var e=rx(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType)||{},!0}return e.eventData?(n=u({},e.eventData),!0):void 0},!0),n){var a=n.componentType,s=n.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),h=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=i,n.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:h},t.trigger(e,n)}};i.zrEventfulCallAtLast=!0,t._zr.on(e,i,t)}),g(KM,function(e,i){t._messageCenter.on(i,function(t){this.trigger(i,t)},t)}),g(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),Bu(this._messageCenter,this,this._api)},i.prototype.isDisposed=function(){return this._disposed},i.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},i.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,un(this.getDom(),aC,"");var t=this,e=t._api,i=t._model;g(t._componentsViews,function(t){t.dispose(i,e)}),g(t._chartsViews,function(t){t.dispose(i,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 iC[t.id]}},i.prototype.resize=function(t){if(!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[bM]&&(null==n&&(n=this[bM].silent),i=!0,this[bM]=null),this[xM]=!0,i&&IM(this),DM.update.call(this,{type:"resize",animation:u({duration:0},t&&t.animation)}),this[xM]=!1,EM.call(this,n),RM.call(this,n)}}},i.prototype.showLoading=function(t,e){if(!this._disposed&&(A(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),eC[t])){var i=eC[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},i.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},i.prototype.makeActionFromEvent=function(t){var e=u({},t);return e.type=KM[t.type],e},i.prototype.dispatchAction=function(t,e){if(!this._disposed&&(A(e)||(e={silent:!!e}),ZM[t.type]&&this._model)){if(this[xM])return void this._pendingActions.push(t);var i=e.silent;LM.call(this,t,i);var n=e.flush;n?this._zr.flush():!1!==n&&gy.browser.weChat&&this._throttledZrFlush(),EM.call(this,i),RM.call(this,i)}},i.prototype.updateLabelLayout=function(){fM.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},i.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},i.internalField=function(){function t(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===cx&&t.states.emphasis?e.push("emphasis"):t.hoverState===hx&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){var i=t._zr,n=i.storage,r=0;n.traverse(function(t){t.isGroup||r++}),r>e.get("hoverLayerThreshold")&&!gy.node&&!gy.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function n(t,e){var i=t.get("blendMode")||null;e.group.traverse(function(t){t.isGroup||(t.style.blend=i),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.style.blend=i})})}function r(t,e){t.preventAutoZ||o(e.group,t.get("z")||0,t.get("zlevel")||0,-1/0)}function o(t,e,i,n){var r=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=Math.max(o(s[l],e,i,n),n);else t.z=e,t.zlevel=i,n=Math.max(t.z2,n);if(r&&(r.z=e,r.zlevel=i,isFinite(n)&&(r.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=i,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}function a(t,e){e.group.traverse(function(t){if(!Zo(t)){var e=t.getTextContent(),i=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function s(e,i){var n=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;i.group.traverse(function(e){if(e.states&&e.states.emphasis){if(Zo(e))return;if(e instanceof X_&&Mo(e),e.__dirty){var i=e.prevStates;i&&e.useStates(i)}if(r){e.stateTransition=a;var n=e.getTextContent(),o=e.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}IM=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),AM(t,!0),AM(t,!1),e.plan()},AM=function(t,e){function i(t){var i=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,h=!i&&a[u];if(!h){var c=fn(t.type);h=new(e?FS.getClass(c.main,c.sub):YS.getClass(c.sub)),h.init(n,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(h,t,n,l)}for(var n=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?n.eachComponent(function(t,e){"series"!==t&&i(e)}):n.eachSeries(i);for(var u=0;u<o.length;){var h=o[u];h.__alive?u++:(!e&&h.renderTask.dispose(),s.remove(h.group),h.dispose(n,l),o.splice(u,1),a[h.__id]===h&&delete a[h.__id],h.__id=h.group.__ecComponentInfo=null)}},kM=function(t,e,i,n,r){function o(n){n&&n.__alive&&n[e]&&n[e](n.__model,a,t._api,i)}var a=t._model;if(a.setUpdatePayload(i),!n)return void g([].concat(t._componentsViews).concat(t._chartsViews),o);var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var u,h=i.excludeSeriesId;null!=h&&(u=G(),g(Fi(h),function(t){var e=Ji(t,null);null!=e&&u.set(e,!0)})),To(i)&&ao(t._api),a&&a.eachComponent(l,function(e){if(!u||null===u.get(e.id))if(To(i))if(e instanceof BS)i.type!==yx||i.notBlur||uo(e,i,t._api);else{var n=ho(e.mainType,e.componentIndex,i.name,t._api),r=n.focusSelf,o=n.dispatchers;i.type===yx&&r&&!i.notBlur&&lo(e.mainType,e.componentIndex,t._api),o&&g(o,function(t){i.type===yx?$r(t):to(t)})}else So(i)&&e instanceof BS&&(fo(e,i,t._api),go(e),WM(t))},t),a&&a.eachComponent(l,function(e){u&&null!==u.get(e.id)||o(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)},DM={prepareAndUpdate:function(t){IM(this),DM.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var i=this._model,n=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;if(i){i.setUpdatePayload(t),a.restoreData(i,t),a.performSeriesTasks(i),o.create(i,n),a.performDataProcessorTasks(i,t),OM(this,i),o.update(i,n),BM(i),a.performVisualTasks(i,t),FM(this,i,n,t,e);var s=i.get("backgroundColor")||"transparent",l=i.get("darkMode");if(gy.canvasSupported)r.setBackgroundColor(s),null!=l&&"auto"!==l&&r.setDarkMode(l);else{var u=ne(s);s=pe(u,"rgb"),0===u[3]&&(s="transparent")}fM.trigger("afterupdate",i,n)}},updateTransform:function(t){var e=this,i=this._model,n=this._api;if(i){i.setUpdatePayload(t);var r=[];i.eachComponent(function(o,a){if("series"!==o){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,n,t);l&&l.update&&r.push(s)}else r.push(s)}});var o=G();i.eachSeries(function(r){var a=e._chartsMap[r.__viewId];if(a.updateTransform){var s=a.updateTransform(r,i,n,t);s&&s.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),BM(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:o}),VM(this,i,n,t,{},o),fM.trigger("afterupdate",i,n)}},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),YS.markUpdateMethod(t,"updateView"),BM(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),FM(this,e,this._api,t,{}),fM.trigger("afterupdate",e,this._api))},updateVisual:function(t){var e=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries(function(t){t.getData().clearAllVisual()}),YS.markUpdateMethod(t,"updateVisual"),BM(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent(function(n,r){if("series"!==n){var o=e.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,e._api,t)}}),i.eachSeries(function(n){e._chartsMap[n.__viewId].updateVisual(n,i,e._api,t)}),fM.trigger("afterupdate",i,this._api))},updateLayout:function(t){DM.update.call(this,t)}},PM=function(t,e,i,n){if(!t._disposed)for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=an(o,i),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,n)))return r}},OM=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},LM=function(t,e){var i=this,n=this.getModel(),r=t.type,o=t.escapeConnect,a=ZM[r],s=a.actionInfo,l=(s.update||"update").split(":"),c=l.pop(),p=null!=l[0]&&fn(l[0]);this[xM]=!0;var f=[t],d=!1;t.batch&&(d=!0,f=y(t.batch,function(e){return e=h(u({},e),t),e.batch=null,e}));var v,m=[],_=So(t),x=To(t);if(g(f,function(e){if(v=a.action(e,i._model,i._api),v=v||u({},e),v.type=s.event||v.type,m.push(v),x){var n=sn(t),r=n.queryOptionMap,o=n.mainTypeSpecified,l=o?r.keys()[0]:"series";kM(i,c,e,l),WM(i)}else _?(kM(i,c,e,"series"),WM(i)):p&&kM(i,c,e,p.main,p.sub)}),"none"===c||x||_||p||(this[bM]?(IM(this),DM.update.call(this,t),this[bM]=null):DM[c].call(this,t)),v=d?{type:s.event||r,escapeConnect:o,batch:m}:m[0],this[xM]=!1,!e){var b=this._messageCenter;if(b.trigger(v.type,v),_){var w={type:"selectchanged",escapeConnect:o,selected:yo(n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};b.trigger(w.type,w)}}},EM=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();LM.call(this,i,t)}},RM=function(t){!t&&this.trigger("updated")},NM=function(t,e){t.on("rendered",function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[bM]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},zM=function(t,e){t.on("mouseover",function(t){var i=t.target,n=Fu(i,bo);n&&(co(n,t,e._api),WM(e))}).on("mouseout",function(t){var i=t.target,n=Fu(i,bo);n&&(po(n,t,e._api),WM(e))}).on("click",function(t){var i=t.target,n=Fu(i,function(t){return null!=rx(t).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",o=rx(n);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},BM=function(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})},FM=function(t,e,i,n,r){HM(t,e,i,n,r),g(t._chartsViews,function(t){t.__alive=!1}),VM(t,e,i,n,r),g(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},HM=function(t,e,i,n,o,l){g(l||t._componentsViews,function(t){var o=t.__model;a(o,t),t.render(o,e,i,n),r(o,t),s(o,t)})},VM=function(t,e,o,l,h,c){var p=t._scheduler;h=u(h||{},{updatedSeries:e.getSeries()}),fM.trigger("series:beforeupdate",e,o,h);var f=!1;e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var r=i.renderTask;p.updatePayload(r,l),a(e,i),c&&c.get(e.uid)&&r.dirty(),r.perform(p.getPerformArgs(r))&&(f=!0),i.group.silent=!!e.get("silent"),n(e,i),go(e)}),p.unfinished=f||p.unfinished,fM.trigger("series:layoutlabels",e,o,h),fM.trigger("series:transition",e,o,h),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];r(e,i),s(e,i)}),i(t,e),fM.trigger("series:afterupdate",e,o,h)},WM=function(t){t[wM]=!0,t.getZr().wakeUp()},GM=function(e){e[wM]&&(e.getZr().storage.traverse(function(e){Zo(e)||t(e)}),e[wM]=!1)},YM=function(t){return new(function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return e(n,i),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},n.prototype.enterEmphasis=function(e,i){$r(e,i),WM(t)},n.prototype.leaveEmphasis=function(e,i){to(e,i),WM(t)},n.prototype.enterBlur=function(e){eo(e),WM(t)},n.prototype.leaveBlur=function(e){io(e),WM(t)},n.prototype.enterSelect=function(e){no(e),WM(t)},n.prototype.leaveSelect=function(e){ro(e),WM(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)},n}(Qw))(t)},XM=function(t){function e(t,e){for(var i=0;i<t.length;i++){t[i][TM]=e}}g(KM,function(i,n){t._messageCenter.on(n,function(i){if(nC[t.group]&&0!==t[TM]){if(i&&i.escapeConnect)return;var n=t.makeActionFromEvent(i),r=[];g(iC,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),g(r,function(t){1!==t[TM]&&t.dispatchAction(n)}),e(r,2)}})})}}(),i}(Hy),jM=UM.prototype;jM.on=Qh("on"),jM.off=Qh("off"),jM.one=function(t,e,i){function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,n)}var r=this;this.on.call(this,t,n,i)};var qM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],ZM={},KM={},QM=[],JM=[],$M=[],tC={},eC={},iC={},nC={},rC=+new Date-0,oC=+new Date-0,aC="_echarts_instance_",sC=ic,lC=[],uC=El;yc(2e3,QS),yc(4500,$S),yc(4500,tT),yc(2e3,dT),yc(4500,gT),yc(7e3,wh),sc(ll),lc(900,ul),mc("default",Tu),pc({type:yx,event:yx,update:yx},Z),pc({type:vx,event:vx,update:vx},Z),pc({type:mx,event:mx,update:mx},Z),pc({type:_x,event:_x,update:_x},Z),pc({type:xx,event:xx,update:xx},Z),ac("light",sT),ac("dark",pT);var hC,cC,pC,fC,dC,gC,yC,vC={},mC=function(){function t(t,e,i,n,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||Sc,this._newKeyGetter=n||Sc,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,i={},n=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=n[o],s=i[a],l=wc(s);if(l>1){var u=s.shift();1===s.length&&(i[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=i[s],u=n[s],h=wc(l),c=wc(u);if(h>1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),n[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),n[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),n[s]=null;else if(h>1)for(var p=0;h>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=wc(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[n]=null}},t.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[n](t[o],o);if(r||(i[o]=a),e){var s=e[a],l=wc(s);0===l?(e[a]=o,r&&i.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),_C=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}(),xC=function(){function t(t){this.otherDims={},null!=t&&u(this,t)}return t}(),bC=on(),wC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SC=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=Dc(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return z(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),i=!Pc(t),n="",r=[],o=0,a=0;t>o;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(n+=i?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),n+="$",n+=wC[l]||"f",u&&(n+=u.uid),n+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,n].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(n=r.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}(),TC=A,MC=y,CC="undefined"==typeof Int32Array?Array:Int32Array,IC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AC=["_approximateExtent"],kC=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 i,n=!1;Ac(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<i.length;u++){var h=i[u],c=M(h)?new xC({name:h}):h instanceof xC?h:new xC(h),p=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0);var f=c.otherDims=c.otherDims||{};o.push(p),r[p]=c,null!=l[p]&&(s=!0),c.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),n&&(c.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var d=this._dimIdxToName=G();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 i=this._dimIdxToName.get(e);if(null!=i)return i;var n=this._schema.getSourceDimension(e);return n?n.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var i=this._getDimInfo(t);return i?i.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 i=this._dimSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[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,i){var n,r=this;if(t instanceof DS&&(n=t),!n){var o=this.dimensions,a=cl(t)||d(t)?new uS(t,o.length):t;n=new DS;var s=MC(o,function(t){return{type:r._dimInfos[t].type,property:t}});n.initData(a,s,i)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=Tc(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 i=this._store.appendValues(t,e.length),n=i.start,r=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=n;r>a;a++){var s=a-n;this._nameList[a]=e[s],o&&yC(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.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 i=this._store,n=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(n.getSource().sourceFormat===kw&&!n.pure)for(var a=[],s=t;e>s;s++){var l=n.getItem(s,a);if(!this.hasItemOption&&Yi(l)&&(this.hasItemOption=!0),l){var u=l.name;null==r[s]&&null!=u&&(r[s]=Ji(u,null));var h=l.id;null==o[s]&&null!=h&&(o[s]=Ji(h,null))}}if(this._shouldMakeIdFromName())for(var s=t;e>s;s++)yC(this,s);hC(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){TC(t)?u(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return null==i&&null!=this._nameDimIdx&&(i=pC(this,this._nameDimIdx,e)),null==i&&(i=""),i},t.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},t.prototype.getId=function(t){return cC(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];return n?i.get(n.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];return n?i.getByRawIndex(n.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 i=this,n=this._store;return S(t)?n.getValues(MC(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;n>i;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();i>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 i=t&&this._invertedIndicesMap[t],n=i[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},t.prototype.each=function(t,e,i){"function"==typeof t&&(i=e,e=t,t=[]);var n=i||this,r=MC(fC(t),this._getStoreDimIndex,this);this._store.each(r,n?ky(e,n):e)},t.prototype.filterSelf=function(t,e,i){"function"==typeof t&&(i=e,e=t,t=[]);var n=i||this,r=MC(fC(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,n?ky(e,n):e),this},t.prototype.selectRange=function(t){var e=this,i={},n=[];return g(x(t),function(r){var o=e._getStoreDimIndex(r);i[o]=t[r],n.push(o)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(t,e,i){"function"==typeof t&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},t.prototype.map=function(t,e,i,n){var r=i||n||this,o=MC(fC(t),this._getStoreDimIndex,this),a=gC(this);return a._store=this._store.map(o,r?ky(e,r):e),a},t.prototype.modify=function(t,e,i,n){var r=i||n||this,o=MC(fC(t),this._getStoreDimIndex,this);this._store.modify(o,r?ky(e,r):e)},t.prototype.downSample=function(t,e,i,n){var r=gC(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),r},t.prototype.lttbDownSample=function(t,e){var i=gC(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new Ub(i,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new mC(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return cC(t,e)},function(t){return cC(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||{},TC(t)?u(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return null==n?this.getVisual(e):n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var r=n[e];return null==r&&(r=this.getVisual(e),S(r)?r=r.slice():TC(r)&&(r=u({},r)),n[e]=r),r},t.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,TC(e)?u(n,e):n[e]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(TC(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);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,i){this._itemLayouts[t]=i?u(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;ox(i,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(i,n){i&&t&&t.call(e,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:MC(this.dimensions,this._getDimInfo,this),this.hostModel)),dC(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(F(arguments)))})},t.internalField=function(){hC=function(t){var e=t._invertedIndicesMap;g(e,function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new CC(o.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(var s=0;s<a.count();s++)i[a.get(r.storeDimIndex,s)]=s}})},pC=function(t,e,i){return Ji(t._getCategory(e,i),null)},cC=function(t,e){var i=t._idList[e];return null==i&&null!=t._idDimIdx&&(i=pC(t,t._idDimIdx,e)),null==i&&(i="e\0\0"+e),i},fC=function(t){return S(t)||(t=null!=t?[t]:[]),t},gC=function(e){var i=new t(e._schema?e._schema:MC(e.dimensions,e._getDimInfo,e),e.hostModel);return dC(i,e),i},dC=function(t,e){g(IC.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,g(AC,function(i){t[i]=a(e[i])}),t._calculationInfo=u({},e._calculationInfo)},yC=function(t,e){var i=t._nameList,n=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];if(null==a&&null!=r&&(i[e]=a=pC(t,r,e)),null==s&&null!=o&&(n[e]=s=pC(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),n[e]=s}}}(),t}(),DC=function(){function t(t){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=t}return t}(),PC={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis",Am).models[0],o=t.getReferringComponents("yAxis",Am).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),Bc(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),Bc(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis",Am).models[0];e.coordSysDims=["single"],i.set("single",r),Bc(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar",Am).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),Bc(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),Bc(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){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];i.set(l,s),Bc(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},OC=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 i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[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}();bn(OC);var LC=0,EC=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++LC}return t.createByAxisModel=function(e){var i=e.option,n=i.data,r=n&&y(n,qc);return new t({categories:r,needCollect:!r,deduplication:!1!==i.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if("string"!=typeof t&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=G(this.categories))},t}(),RC=mi,NC=function(t){function i(e){var i=t.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new EC({})),S(n)&&(n=new EC({categories:y(n,function(t){return A(t)?t.value:t})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return e(i,t),i.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},i.prototype.contain=function(t){return t=this.parse(t),$c(t,this._extent)&&null!=this._ordinalMeta.categories[t]},i.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),tp(t,this._extent)},i.prototype.scale=function(t){return t=Math.round(ep(t,this._extent)),this.getRawOrdinalNumber(t)},i.prototype.getTicks=function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push({value:i}),i++;return t},i.prototype.getMinorTicks=function(){},i.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];i[r]=s,n[s]=r}for(var l=0;o>r;++r){for(;null!=n[l];)l++;i.push(l),n[l]=r}},i.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},i.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},i.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[e];return null==i?"":i+""}},i.prototype.count=function(){return this._extent[1]-this._extent[0]+1},i.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},i.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},i.prototype.getOrdinalMeta=function(){return this._ordinalMeta},i.prototype.niceTicks=function(){},i.prototype.niceExtent=function(){},i.type="ordinal",i}(OC);OC.registerClass(NC);var zC=mi,BC=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return e(i,t),i.prototype.parse=function(t){return t},i.prototype.contain=function(t){return $c(t,this._extent)},i.prototype.normalize=function(t){return tp(t,this._extent)},i.prototype.scale=function(t){return ep(t,this._extent)},i.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},i.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])},i.prototype.getInterval=function(){return this._interval},i.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Kc(t)},i.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;i[0]<n[0]&&o.push(t?{value:zC(n[0]-e,r)}:{value:i[0]});for(var a=n[0];a<=n[1]&&(o.push({value:a}),(a=zC(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:n[1];return i[1]>s&&o.push(t?{value:zC(s+e,r)}:{value:i[1]}),o},i.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=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,h=u/t;t-1>s;){var c=zC(a.value+(s+1)*h);c>n[0]&&c<n[1]&&l.push(c),s++}i.push(l)}return i},i.prototype.getLabel=function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=xi(t.value)||0:"auto"===i&&(i=this._intervalPrecision),hs(zC(t.value,i,!0))},i.prototype.niceTicks=function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){0>r&&(r=-r,n.reverse());var o=Zc(n,t,e,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},i.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=e[0];t.fixMax?e[0]-=i/2:(e[1]+=i/2,e[0]-=i/2)}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=zC(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=zC(Math.ceil(e[1]/r)*r))},i.type="interval",i}(OC);OC.registerClass(BC);var FC="__ec_stack_",HC=("undefined"!=typeof Float32Array?Float32Array:Array,gu(),function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i}),VC=function(t){function i(e){var i=t.call(this,e)||this;return i.type="time",i}return e(i,t),i.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ga(t.value,uw[Wa(Ya(this._minLevelUnit))]||uw.second,e,this.getSetting("locale"))},i.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC");return Ua(t,e,i,this.getSetting("locale"),n)},i.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];if(!t)return i;i.push({value:e[0],level:0});var n=this.getSetting("useUTC"),r=mp(this._minLevelUnit,this._approxInterval,n,e);return i=i.concat(r),i.push({value:e[1],level:0}),i},i.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 i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-ow}this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},i.prototype.niceTicks=function(t,e,i){t=t||10;var n=this._extent,r=n[1]-n[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=i&&this._approxInterval>i&&(this._approxInterval=i);var o=YC.length,a=Math.min(HC(YC,this._approxInterval,0,o),o-1);this._interval=YC[a][1],this._minLevelUnit=YC[Math.max(a-1,0)][0]},i.prototype.parse=function(t){return"number"==typeof t?t:+Ii(t)},i.prototype.contain=function(t){return $c(this.parse(t),this._extent)},i.prototype.normalize=function(t){return tp(this.parse(t),this._extent)},i.prototype.scale=function(t){return ep(t,this._extent)},i.type="time",i}(BC),YC=[["second",iw],["minute",nw],["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]];OC.registerClass(VC);var XC=OC.prototype,WC=BC.prototype,GC=mi,UC=Math.floor,jC=Math.ceil,qC=Math.pow,ZC=Math.log,KC=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new BC,e._interval=0,e}return e(i,t),i.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent();return y(WC.getTicks.call(this,t),function(t){var e=t.value,r=mi(qC(this.base,e));return r=e===i[0]&&this._fixMin?_p(r,n[0]):r,r=e===i[1]&&this._fixMax?_p(r,n[1]):r,{value:r}},this)},i.prototype.setExtent=function(t,e){var i=this.base;t=ZC(t)/ZC(i),e=ZC(e)/ZC(i),WC.setExtent.call(this,t,e)},i.prototype.getExtent=function(){var t=this.base,e=XC.getExtent.call(this);e[0]=qC(t,e[0]),e[1]=qC(t,e[1]);var i=this._originalScale,n=i.getExtent();return this._fixMin&&(e[0]=_p(e[0],n[0])),this._fixMax&&(e[1]=_p(e[1],n[1])),e},i.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=ZC(t[0])/ZC(e),t[1]=ZC(t[1])/ZC(e),XC.unionExtent.call(this,t)},i.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},i.prototype.niceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=Ai(i),r=t/i*n;for(.5>=r&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[mi(jC(e[0]/n)*n),mi(UC(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},i.prototype.niceExtent=function(t){WC.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},i.prototype.parse=function(t){return t},i.prototype.contain=function(t){return t=ZC(t)/ZC(this.base),$c(t,this._extent)},i.prototype.normalize=function(t){return t=ZC(t)/ZC(this.base),tp(t,this._extent)},i.prototype.scale=function(t){return t=ep(t,this._extent),qC(this.base,t)},i.type="log",i}(OC),QC=KC.prototype;QC.getMinorTicks=WC.getMinorTicks,QC.getLabel=WC.getLabel,OC.registerClass(KC);var JC=function(){function t(t,e,i){this._prepareParams(t,e,i)}return t.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type;this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);T(r)?this._modelMinNum=bp(t,r({min:i[0],max:i[1]})):"dataMin"!==r&&(this._modelMinNum=bp(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(T(o)?this._modelMaxNum=bp(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=bp(t,o)),n)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]:[ei(s[0],1),ei(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,r=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?n?0:NaN:e-r[0]*o),null==s&&(s=t?n?n-1:NaN:i+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN),a>s&&(a=NaN,s=NaN);var h=R(a)||R(s)||t&&!n;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[tI[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[$C[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),$C={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}(),iI={isDimensionStacked:Vc,enableDataStack:Fc,getStackedDimension:Yc},nI=(Object.freeze||Object)({createList:Ep,getLayoutRect:xs,dataStack:iI,createScale:Rp,mixinAxisModelCommonMethods:Np,getECData:rx,createTextStyle:zp,createDimensions:Oc,createSymbol:Vu,enableHoverEmphasis:vo}),rI=[],oI={registerPreprocessor:sc,registerProcessor:lc,registerPostInit:uc,registerPostUpdate:hc,registerUpdateLifecycle:cc,registerAction:pc,registerCoordinateSystem:fc,registerLayout:gc,registerVisual:yc,registerTransform:uC,registerLoading:mc,registerMap:xc,PRIORITY:_M,ComponentModel:ww,ComponentView:FS,SeriesModel:BS,ChartView:YS,registerComponentModel:function(t){ww.registerClass(t)},registerComponentView:function(t){FS.registerClass(t)},registerSeriesModel:function(t){BS.registerClass(t)},registerChartView:function(t){YS.registerClass(t)},registerSubTypeDefaulter:function(t,e){ww.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){di(t,e)}},aI=(Object.freeze||Object)({linearMap:yi,round:mi,asc:_i,getPrecision:xi,getPrecisionSafe:bi,getPixelPrecision:wi,getPercentWithPrecision:Si,MAX_SAFE_INTEGER:9007199254740991,remRadian:Mi,isRadianAroundZero:Ci,parseDate:Ii,quantity:Ai,quantityExponent:ki,nice:Di,quantile:Pi,reformIntervals:Oi,isNumeric:Ei,numericToNumber:Li}),sI=(Object.freeze||Object)({parse:Ii,format:Ga}),lI=(Object.freeze||Object)({extendShape:ta,extendPath:ea,makePath:ra,makeImage:oa,mergePath:kb,resizePath:sa,createIcon:ma,updateProps:jo,initProps:qo,getTransform:ha,clipPointsByRect:ya,clipRectByRect:va,registerShape:ia,getShapeClass:na,Group:gm,Image:q_,Text:ex,Circle:zx,Ellipse:Fx,Sector:Jx,Ring:tb,Polygon:ib,Polyline:rb,Rect:J_,Line:sb,BezierCurve:hb,Arc:pb,IncrementalDisplayable:Sb,CompoundPath:fb,LinearGradient:gb,RadialGradient:yb,BoundingRect:om}),uI=(Object.freeze||Object)({addCommas:hs,toCamelCase:cs,normalizeCssArray:pw,encodeHTML:ps,formatTpl:ds,getTooltipMarker:gs,formatTime:ys,capitalFirst:vs,truncateText:In,getTextRect:us}),hI=(Object.freeze||Object)({map:y,each:g,indexOf:c,inherits:p,reduce:v,filter:m,bind:ky,curry:w,isArray:S,isString:M,isObject:A,isFunction:T,extend:u,defaults:h,clone:a,merge:s}),cI=on(),pI=[0,1],fI=function(){function t(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return t.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=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 wi(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},t.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),$p(i,n.count())),yi(t,pI,i,e)},t.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),$p(i,n.count()));var r=yi(t,i,pI,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=Hp(this,e),n=i.ticks,r=y(n,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(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},t.prototype.calculateCategoryInterval=function(){return Zp(this)},t}(),dI=2*Math.PI,gI=O_.CMD,yI=["top","right","bottom","left"],vI=[],mI=new Kv,_I=new Kv,xI=new Kv,bI=new Kv,wI=new Kv,SI=[],TI=new Kv,MI=["align","verticalAlign","width","height","fontSize"],CI=new qv,II=on(),AI=on(),kI=["x","y","rotation"],DI=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,i,n,r){var o=n.style,a=n.__hostTarget,s=a.textConfig||{},l=n.getComputedTransform(),u=n.getBoundingRect().plain();om.applyTransform(u,u,l),l?CI.setLocalTransform(l):(CI.x=CI.y=CI.rotation=CI.originX=CI.originY=0,CI.scaleX=CI.scaleY=1);var h,c=n.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();om.applyTransform(h,h,p)}var f=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:f,seriesModel:i,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:f&&f.ignore,x:CI.x,y:CI.y,scaleX:CI.scaleX,scaleY:CI.scaleY,rotation:CI.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,n=i.get("labelLayout");(T(n)||x(n).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,i,r,n)})},t.prototype.updateLayoutConfig=function(t){for(var e=t.getWidth(),i=t.getHeight(),n=0;n<this._labelList.length;n++){var r=this._labelList[n],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0;l="function"==typeof r.layoutOption?r.layoutOption(Tf(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 h=!1;if(null!=l.x?(o.x=vi(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=vi(l.y,i),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints){var c=a.getTextGuideLine();c&&(c.setShape({points:l.labelLinePoints}),h=!1)}II(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var p=0;p<MI.length;p++){var f=MI[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(),i=t.getHeight(),n=mf(this._labelList),r=m(n,function(t){return"shiftX"===t.layoutOption.moveOverlap}),o=m(n,function(t){return"shiftY"===t.layoutOption.moveOverlap});xf(r,0,e),bf(o,0,i),wf(m(n,function(t){return t.layoutOption.hideOverlap}))},t.prototype.processLabelsOverall=function(){var t=this;g(this._chartViewList,function(e){var i=e.__model,n=e.ignoreLabelLineUpdate,r=i.isAnimationEnabled();e.group.traverse(function(e){if(e.ignore)return!0;var o=!n,a=e.getTextContent();!o&&a&&(o=II(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,i),r&&t._animateLabels(e,i)})})},t.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),n=rx(t),r=n.dataIndex;if(i&&null!=r){var o=e.getData(n.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),u=o.getVisual("drawType");s.stroke=l[u];var h=a.getModel("labelLine");yf(t,vf(a),s),pf(t,h)}},t.prototype._animateLabels=function(t,e){var i=t.getTextContent(),n=t.getTextGuideLine();if(i&&!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!Zo(t)){var r=II(i),o=r.oldLayout,a=rx(t),s=a.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},u=e.getData(a.dataType);if(o){i.attr(o);var h=t.prevStates;h&&(c(h,"select")>=0&&i.attr(r.oldLayoutSelect),c(h,"emphasis")>=0&&i.attr(r.oldLayoutEmphasis)),jo(i,l,e,s)}else if(i.attr(l),!Nb(i).valueAnimation){var p=z(i.style.opacity,1);i.style.opacity=0,qo(i,{style:{opacity:p}},e,s)}if(r.oldLayout=l,i.states.select){var f=r.oldLayoutSelect={};Mf(f,l,kI),Mf(f,i.states.select,kI)}if(i.states.emphasis){var d=r.oldLayoutEmphasis={};Mf(d,l,kI),Mf(d,i.states.emphasis,kI)}Ea(i,s,u,e,e)}if(n&&!n.ignore&&!n.invisible){var r=AI(n),o=r.oldLayout,g={points:n.shape.points};o?(n.attr({shape:o}),jo(n,{shape:g},e)):(n.setShape(g),n.style.strokePercent=0,qo(n,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),PI=on();Bp(Cf);var OI=function(t){function i(e,i,n){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;n=n||zv,"string"==typeof e?o=Af(e,i,n):A(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=i,r.config=null,r.dpr=n,r}return e(i,t),i.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},i.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},i.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},i.prototype.setUnpainted=function(){this.__firstTimePaint=!0},i.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Af("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},i.prototype.createRepaintRects=function(t,e,i,n){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 i=!1,n=1/0,r=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(t)){var c=new om(0,0,0,0);c.copy(h),c.union(t),o[u]=c,i=!0;break}if(s){l.copy(t),l.union(h);var p=t.width*t.height,f=h.width*h.height,d=l.width*l.height,g=d-p-f;n>g&&(n=g,r=u)}}if(s&&(o[r].union(t),i=!0),!i){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 h=t[u];if(h){var c=h.shouldBePainted(i,n,!0,!0),p=h.__isRendered&&(h.__dirty&rv||!c)?h.getPrevPaintRect():null;p&&r(p);var f=c&&(h.__dirty&rv||!h.__isRendered)?h.getPaintRect():null;f&&r(f)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h=e[u],c=h.shouldBePainted(i,n,!0,!0);if(h&&(!c||!h.__zr)&&h.__isRendered){var p=h.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},i.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},i.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i&&this.ctxBack.scale(i,i))},i.prototype.clear=function(t,e,i){function n(t,i,n,r){if(o.clearRect(t,i,n,r),e&&"transparent"!==e){var a=void 0;O(e)?(a=e.__canvasGradient||Uu(o,e,{x:0,y:0,width:n,height:r}),e.__canvasGradient=a):L(e)&&(a=th(o,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),o.save(),o.fillStyle=a||e,o.fillRect(t,i,n,r),o.restore()}l&&(o.save(),o.globalAlpha=u,o.drawImage(p,t,i,n,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,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/h,s/h));var p=this.domBack;!i||l?n(0,0,a,s):i.length&&g(i,function(t){n(t.x*h,t.y*h,t.width*h,t.height*h)})},i}(Hy),LI=314159,EI=function(){function t(t,e,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var n=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=u({},i||{}),this.dpr=i.devicePixelRatio||zv,this._singleCanvas=n,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(n){var s=t,l=s.width,h=s.height;null!=i.width&&(l=i.width),null!=i.height&&(h=i.height),this.dpr=i.devicePixelRatio||1,s.width=l*this.dpr,s.height=h*this.dpr,this._width=l,this._height=h;var c=new OI(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[LI]=c,c.zlevel=LI,o.push(LI),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var p=this._domRoot=Pf(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),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var r=0;r<n.length;r++){var o=n[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,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;e>o;o++){var a=t[o];a.__inHover&&(i||(i=this._hoverlayer=this.getLayer(1e5)),n||(n=i.ctx,n.save()),dh(n,a,r,o===e-1))}n&&n.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){fh(t,e)},t.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,i),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,i,n)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(LI).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},t.prototype._doPaintList=function(t,e,i){for(var n=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||i)&&r.push(l)}for(var u=!0,h=!1,c=this,p=0;p<r.length;p++)!function(a){var s=r[a],l=s.ctx,p=o&&s.createRepaintRects(t,e,c._width,c._height),f=i?s.__startIndex:s.__drawIndex,d=!i&&s.incremental&&Date.now,g=d&&Date.now(),y=s.zlevel===c._zlevelList[0]?c._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&&!i||s.clear(!1,y,p)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=s.__startIndex);var m,_=function(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(m=f;m<s.__endIndex;m++){var r=t[m];if(r.__inHover&&(h=!0),n._doPaintEl(r,s,o,e,i,m===s.__endIndex-1),d){if(Date.now()-g>15)break}}i.prevElClipPaths&&l.restore()};if(p)if(0===p.length)m=s.__endIndex;else for(var x=c.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:h}},t.prototype._doPaintEl=function(t,e,i,n,r,o){var a=e.ctx;if(i){var s=t.getPaintRect();(!n||s&&s.intersect(n))&&(dh(a,t,r,o),t.setPrevPaintRect(s))}else dh(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=LI);var i=this._layers[t];return i||(i=new OI("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?s(i,this._layerConfig[t],!0):this._layerConfig[t-.01]&&s(i,this._layerConfig[t-.01],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},t.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,a=this._domRoot,s=null,l=-1;if(i[t])return void o("ZLevel "+t+" has been used already");if(!Df(e))return void o("Layer of zlevel "+t+" is not valid");if(r>0&&t>n[0]){for(l=0;r-1>l&&!(n[l]<t&&n[l+1]>t);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[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 i=this._zlevelList,n=0;n<i.length;n++){var r=i[n];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],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 i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var r,a,s=null,l=0;for(a=0;a<t.length;a++){var n=t[a],u=n.zlevel,h=void 0;r!==u&&(r=u,l=0),n.incremental?(h=this.getLayer(u+.001,this._needsManuallyCompositing),h.incremental=!0,l=1):h=this.getLayer(u+(l>0?.01:0),this._needsManuallyCompositing),h.__builtin__||o("ZLevel "+u+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==a&&(h.__dirty=!0),h.__startIndex=a,h.__drawIndex=h.incremental?-1:a,e(a),s=h),n.__dirty&rv&&!n.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__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 i=this._layerConfig;i[t]?s(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===t||r===t+.01){s(this._layers[r],i[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(c(i,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.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 OI("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.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];dh(i,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,i=["width","height"][t],n=["clientWidth","clientHeight"][t],r=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[n]||kf(s[i])||kf(a.style[i]))-(kf(s[r])||0)-(kf(s[o])||0)|0},t.prototype.pathToImage=function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),r=t.getBoundingRect(),o=t.style,a=o.shadowBlur*e,s=o.shadowOffsetX*e,l=o.shadowOffsetY*e,h=t.hasStroke()?o.lineWidth:0,c=Math.max(h/2,-s+a),p=Math.max(h/2,s+a),f=Math.max(h/2,-l+a),d=Math.max(h/2,l+a),g=r.width+c+p,y=r.height+f+d;i.width=g*e,i.height=y*e,n.scale(e,e),n.clearRect(0,0,g,y),n.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=c-r.x,t.y=f-r.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&dh(n,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var m=new q_({style:{x:0,y:0,image:i}});return u(t,v),m},t}(),RI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(i,t),i.prototype.init=function(e,i,n){t.prototype.init.call(this,e,i,n),this._sourceManager=new PS(this),Yl(this)},i.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),Yl(this)},i.prototype.optionUpdated=function(){this._sourceManager.dirty()},i.prototype.getSourceManager=function(){return this._sourceManager},i.type="dataset",i.defaultOption={seriesLayoutBy:Rw},i}(ww),NI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return e(i,t),i.type="dataset",i}(FS);Bp([Of,Lf]),Bp(Cf);var zI=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.hasSymbolVisual=!0,e}return e(i,t),i.prototype.getInitialData=function(){return Gc(null,this,{useEncodeDefaulter:!0})},i.prototype.getLegendIcon=function(t){var e=new gm,i=Vu("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===n?"circle":n,a=.8*t.itemHeight,s=Vu(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},i.type="series.line",i.dependencies=["grid","polar"],i.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"}},i}(BS),BI=function(t){function i(e,i,n,r){var o=t.call(this)||this;return o.updateData(e,i,n,r),o}return e(i,t),i.prototype._createSymbol=function(t,e,i,n,r){this.removeAll();var o=Vu(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=Nf,this._symbolType=t,this.add(o)},i.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},i.prototype.getSymbolType=function(){return this._symbolType},i.prototype.getSymbolPath=function(){return this.childAt(0)},i.prototype.highlight=function(){$r(this.childAt(0))},i.prototype.downplay=function(){to(this.childAt(0))},i.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},i.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},i.prototype.updateData=function(t,e,n,r){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=i.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,"symbolKeepAspect");this._createSymbol(o,t,e,s,h)}else{var c=this.childAt(0);c.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(p):jo(c,p,a,e),$o(c)}if(this._updateCommon(t,e,s,n,r),l){var c=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,qo(c,p,a,e)}}u&&this.childAt(0).stopAnimation("remove"),this._seriesModel=a},i.prototype._updateCommon=function(t,e,i,n,r){function o(e){return C?t.getName(e):Ef(t,e)}var a,s,l,h,c,p,f,d,g=this.childAt(0),y=t.hostModel;if(n&&(a=n.emphasisItemStyle,s=n.blurItemStyle,l=n.selectItemStyle,h=n.focus,c=n.blurScope,p=n.labelStatesModels,f=n.hoverScale,d=n.cursorStyle),!n||t.hasItemOption){var v=n&&n.itemModel?n.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(),h=m.get("focus"),c=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=Xu(t.getItemVisual(e,"symbolOffset"),i);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 T=t.getItemVisual(e,"liftZ"),M=this._z2;null!=T?null==M&&(this._z2=g.z2,g.z2+=T):null!=M&&(g.z2=M,this._z2=null);var C=r&&r.useNameLabel;Ca(g,p,{labelFetcher:y,labelDataIndex:e,defaultText:o,inheritColor:w,defaultOpacity:b.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=g.ensureState("emphasis");if(I.style=a,g.ensureState("select").style=l,g.ensureState("blur").style=s,f){var A=Math.max(1.1,3/this._sizeY);I.scaleX=this._sizeX*A,I.scaleY=this._sizeY*A}this.setSymbolScale(1),vo(this,h,c)},i.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},i.prototype.fadeOut=function(t,e){var i=this.childAt(0),n=this._seriesModel,r=rx(this).dataIndex,o=e&&e.animation;if(this.silent=i.silent=!0,e&&e.fadeLabel){var a=i.getTextContent();a&&Ko(a,{style:{opacity:0}},n,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ko(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:r,cb:t,removeOpt:o})},i.getSymbolSize=function(t,e){return Yu(t.getItemVisual(e,"symbolSize"))},i}(gm),FI=function(){function t(t){this.group=new gm,this._SymbolCtor=t||BI}return t.prototype.updateData=function(t,e){e=Bf(e);var i=this.group,n=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||i.removeAll(),t.diff(r).add(function(n){var r=u(n);if(zf(t,r,n,e)){var a=new o(t,n,s,l);a.setPosition(r),t.setItemGraphicEl(n,a),i.add(a)}}).update(function(h,c){var p=r.getItemGraphicEl(c),f=u(h);if(!zf(t,f,h,e))return void i.remove(p);var d=t.getItemVisual(h,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==d)i.remove(p),p=new o(t,h,s,l),p.setPosition(f);else{p.updateData(t,h,s,l);var y={x:f[0],y:f[1]};a?p.attr(y):jo(p,y,n)}i.add(p),t.setItemGraphicEl(h,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){i.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,i){var n=t._getSymbolPoint(i);e.setPosition(n),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ff(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}i=Bf(i);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(zf(e,o,r,i)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(n),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a)}}},t.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()},t}(),HI="undefined"!=typeof Float32Array,VI=HI?Float32Array:Array,YI=Math.min,XI=Math.max,WI=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),GI=function(t){function i(e){var i=t.call(this,e)||this;return i.type="ec-polyline",i}return e(i,t),i.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},i.prototype.getDefaultShape=function(){return new WI},i.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;r>0&&Uf(i[2*r-2],i[2*r-1]);r--);for(;r>n&&Uf(i[2*n],i[2*n+1]);n++);}for(;r>n;)n+=jf(t,i,n,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},i.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,r=this.path,o=r.data,a=O_.CMD,s="x"===e,l=[],u=0;u<o.length;){var h=o[u++],c=void 0,p=void 0,f=void 0,d=void 0,g=void 0,y=void 0,v=void 0;switch(h){case a.M:i=o[u++],n=o[u++];break;case a.L:if(c=o[u++],p=o[u++],1>=(v=s?(t-i)/(c-i):(t-n)/(p-n))&&v>=0){var m=s?(p-n)*v+n:(c-i)*v+i;return s?[t,m]:[m,t]}i=c,n=p;break;case a.C:c=o[u++],p=o[u++],f=o[u++],d=o[u++],g=o[u++],y=o[u++];var _=s?Yn(i,c,f,g,t,l):Yn(n,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?Hn(n,p,d,y,b):Hn(i,c,f,g,b);return s?[t,m]:[m,t]}}i=g,n=y}}},i}(X_),UI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i}(WI),jI=function(t){function i(e){var i=t.call(this,e)||this;return i.type="ec-polygon",i}return e(i,t),i.prototype.getDefaultShape=function(){return new UI},i.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&Uf(i[2*o-2],i[2*o-1]);o--);for(;o>r&&Uf(i[2*r],i[2*r+1]);r++);}for(;o>r;){var s=jf(t,i,r,o,o,1,e.smooth,a,e.connectNulls);jf(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},i}(X_),qI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.init=function(){var t=new gm,e=new FI;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},i.prototype.render=function(t,e,i){var n=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="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=Hf(r,a,_),b=m&&ed(r,a,x),w=t.get("showSymbol"),S=w&&!c&&rd(t,a,r),T=this._data;T&&T.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),T.setItemGraphicEl(e,null))}),w||f.remove(),o.add(y);var M,C=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(M=r.getArea(),null!=M.width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=nd(a,r)||a.getVisual("style")[a.getVisual("drawType")];d&&p.type===r.type&&C===this._step?(m&&!g?g=this._newPolygon(u,b):g&&!m&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,ms(I)),y.setClipPath(cd(this,r,!1,t)),w&&f.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Qf(this._stackedOnPoints,b)&&Qf(this._points,u)||(v?this._doUpdateAnimation(a,b,r,i,C,_):(C&&(u=id(u,r,C),b&&(b=id(b,r,C))),d.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:b})))):(w&&f.updateData(a,{isIgnore:S,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,M),C&&(u=id(u,r,C),b&&(b=id(b,r,C))),d=this._newPolyline(u),m&&(g=this._newPolygon(u,b)),c||this._initOrUpdateEndLabel(t,r,ms(I)),y.setClipPath(cd(this,r,!0,t)));var A=t.get(["emphasis","focus"]),k=t.get(["emphasis","blurScope"]);if(d.useStyle(h(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,A,k);var D=td(t.get("smooth")),P=t.get("smoothMonotone"),O=t.get("connectNulls");if(d.setShape({smooth:D,smoothMonotone:P,connectNulls:O}),g){var L=a.getCalculationInfo("stackedOnSeries"),E=0;g.useStyle(h(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(E=td(L.get("smooth"))),g.setShape({smooth:D,stackedOnSmooth:E,smoothMonotone:P,connectNulls:O}),_o(g,t,"areaStyle"),rx(g).seriesIndex=t.seriesIndex,vo(g,A,k)}var R=function(t){n._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=R)}),this._polyline.onHoverStateChange=R,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=C,this._valueOrigin=_},i.prototype.dispose=function(){},i.prototype.highlight=function(t,e,i,n){var r=t.getData(),o=rn(r,n);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 h=t.get("zlevel"),c=t.get("z");s=new BI(r,o),s.x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else YS.prototype.highlight.call(this,t,e,i,n)},i.prototype.downplay=function(t,e,i,n){var r=t.getData(),o=rn(r,n);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 YS.prototype.downplay.call(this,t,e,i,n)},i.prototype._changePolyState=function(t){var e=this._polygon;Wr(this._polyline,t),e&&Wr(e,t)},i.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new GI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},i.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new jI({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},i.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="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,h="function"==typeof u?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,f=void 0,d=void 0;if(i)if(r){var g=i,y=e.pointToCoord(c);n?(p=g.startAngle,f=g.endAngle,d=-y[1]/180*Math.PI):(p=g.r0,f=g.r,d=y[0])}else{var v=i;n?(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+h,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}})},i.prototype._initOrUpdateEndLabel=function(t,e,i){var n=t.getModel("endLabel");if(hd(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&&(Ca(o,Ia(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,i){return null!=i?Rf(r,i):Ef(r,t)},enableTextSetter:!0},pd(n,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(t,e,i,n,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=i.getLayout("points"),h=i.hostModel,c=h.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,T=S[1]-S[0],M=void 0;if(T>=1){if(T>1&&!c){var C=ld(u,S[0]);s.attr({x:C[0]+_,y:C[1]+x}),r&&(M=h.getRawValue(S[0]))}else{var C=l.getPointOn(m,b);C&&s.attr({x:C[0]+_,y:C[1]+x});var I=h.getRawValue(S[0]),A=h.getRawValue(S[1]);r&&(M=pn(i,p,I,A,w.t))}n.lastFrameIndex=S[0]}else{var k=1===t||n.lastFrameIndex>0?S[0]:0,C=ld(u,k);r&&(M=h.getRawValue(k)),s.attr({x:C[0]+_,y:C[1]+x})}r&&Nb(s).setLabelText(M)}},i.prototype._doUpdateAnimation=function(t,e,i,n,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=Gf(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin),h=u.current,c=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(r&&(h=id(u.current,i,r),c=id(u.stackedOnCurrent,i,r),p=id(u.next,i,r),f=id(u.stackedOnNext,i,r)),$f(h,p)>3e3||s&&$f(c,f)>3e3)return a.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:f}));a.shape.__points=u.current,a.shape.points=h;var d={shape:{points:p}};u.current!==h&&(d.shape.__points=u.next),a.stopAnimation(),jo(a,d,l),s&&(s.setShape({points:h,stackedOnPoints:c}),s.stopAnimation(),jo(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 i=g[e].el,n=2*g[e].ptIdx;i.x=t[n],i.y=t[n+1],i.markRedraw()}})},i.prototype.remove=function(){var t=this.group,e=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),e&&e.eachItemGraphicEl(function(i,n){i.__temp&&(t.remove(i),e.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},i.type="line",i}(YS),ZI={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},KI=function(t){return Math.round(t.length/2)};Bp(gd);var QI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.type="grid",i.dependencies=["xAxis","yAxis"],i.layoutMode="box",i.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"},i}(ww),JI=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Am).models[0]},i.type="cartesian2dAxis",i}(ww);f(JI,eI);var $I={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)"]}}},tA=s({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},$I),eA=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}}},$I),iA=s({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eA),nA=h({scale:!0,logBase:10},eA),rA={category:tA,value:eA,time:iA,log:nA},oA={value:1,category:1,time:1,log:1},aA=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}(),sA=["x","y"],lA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=sA,e}return e(i,t),i.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 i=t.getExtent(),n=e.getExtent(),r=this.dataToPoint([i[0],n[0]]),o=this.dataToPoint([i[1],n[1]]),a=i[1]-i[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-i[0]*l,c=r[1]-n[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=Ge([],p)}}},i.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},i.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},i.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},i.prototype.dataToPoint=function(t,e,i){i=i||[];var n=t[0],r=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return dt(i,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(n,e)),i[1]=a.toGlobalCoord(a.dataToCoord(r,e)),i},i.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.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},i.prototype.pointToData=function(t,e){var i=[];if(this._invTransform)return dt(i,t,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),e),i[1]=r.coordToData(r.toLocalCoord(t[1]),e),i},i.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},i.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-i,o=Math.max(e[0],e[1])-n;return new om(i,n,r,o)},i}(aA),uA=function(t){function i(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return e(i,t),i.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},i.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},i.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},i.prototype.setCategorySortInfo=function(t){return"category"===this.type&&(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},i}(fI),hA=function(){function t(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sA,this._initCartesian(t,e,i),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),g(i.x,function(t){Tp(t.scale,t.model)}),g(i.y,function(t){Tp(t.scale,t.model)});var n={};g(i.x,function(t){Sd(i,"y",t,n)}),g(i.y,function(t){Sd(i,"x",t,n)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,i){function n(){g(s,function(t){var e=t.isHorizontal(),i=e?[0,a.width]:[0,a.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),Md(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!i&&t.get("containLabel"),a=xs(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;n(),o&&(g(s,function(t){if(!t.model.get(["axisLabel","inside"])){var e=kp(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]);a[i]-=e[i]+n,"top"===t.position?a.y+=e.height+n:"left"===t.position&&(a.x+=e.width+n)}}}),n()),g(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var i=this._axesMap[t];return null!=i?i[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}A(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",Am).models[0],o=t.yAxisModel||n&&n.getReferringComponents("yAxis",Am).models[0],a=t.gridModel,s=this._coordsList;if(n)e=n.coordinateSystem,c(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)i=this.getAxis("x",r.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:i}},t.prototype.containPoint=function(t){var e=this._coordsList[0];return e?e.containPoint(t):void 0},t.prototype._initCartesian=function(t,e){function i(e){return function(i,n){if(wd(i,t)){var l=i.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 uA(e,Mp(i),[0,0],i.get("type"),l),h="category"===u.type;u.onBand=h&&i.get("boundaryGap"),u.inverse=i.get("inverse"),i.axis=u,u.model=i,u.grid=r,u.index=n,r._axesList.push(u),a[e][n]=u,s[e]++}}}var n=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};return e.eachComponent("xAxis",i("x"),this),e.eachComponent("yAxis",i("y"),this),s.x&&s.y?(this._axesMap=a,void g(a.x,function(e,i){g(a.y,function(r,o){var a="x"+i+"y"+o,s=new lA(a);s.master=n,s.model=t,n._coordsMap[a]=s,n._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})):(this._axesMap={},void(this._axesList=[]))},t.prototype._updateScale=function(t,e){function i(t,e){g(Lp(t,e.dim),function(i){e.scale.unionExtentFromData(t,i)})}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 n=bd(t),r=n.xAxisModel,o=n.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&&(i(s,l),i(s,u))}},this)},t.prototype.getTooltipAxes=function(t){var e=[],i=[];return g(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);c(e,r)<0&&e.push(r),c(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},t.create=function(e,i){var n=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,i);a.name="grid_"+o,a.resize(r,i,!0),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(t){if(xd(t)){var e=bd(t),i=e.xAxisModel,n=e.yAxisModel,r=i.getCoordSysModel(),o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(i.componentIndex,n.componentIndex)}}),n},t.dimensions=sA,t}(),cA=Math.PI,pA=function(){function t(t,e){this.group=new gm,this.opt=e,this.axisModel=t,h(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new gm({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return t.prototype.hasBuilder=function(t){return!!fA[t]},t.prototype.add=function(t){fA[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,i){var n,r,o=Mi(e-t);return Ci(o)?(r=i>0?"top":"bottom",n="center"):Ci(o-cA)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&cA>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,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}(),fA={axisLine:function(t,e,i,n){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=n.transform,s=[o[0],0],l=[o[1],0];a&&(dt(s,s,a),dt(l,l,a));var h=u({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new sb({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",i.add(c);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=Xu(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,n){if("none"!==p[n]&&null!=p[n]){var r=Vu(p[n],-y/2,-v/2,y,v,h.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}),i.add(r)}})}}},axisTickLabel:function(t,e,i,n){var r=Od(i,n,e,t);Id(e,Ed(i,n,e,t),r),Ld(i,n,e,t.tickDirection)},axisName:function(t,e,i,n){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,h=e.axis.getExtent(),c=h[0]>h[1]?-1:1,p=["start"===a?h[0]-c*u:"end"===a?h[1]+c*u:(h[0]+h[1])/2,Dd(a)?t.labelOffset+s*u:0],f=e.get("nameRotate");null!=f&&(f=f*cA/180);var d;Dd(a)?o=pA.innerTextLayout(t.rotation,null!=f?f:t.rotation,s):(o=Cd(t.rotation,a,f||0,h),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:pA.isLabelSilent(e),style:Aa(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=pA.makeAxisEventDataBase(e);x.targetType="axisName",x.name=r,rx(_).eventData=x}n.add(_),_.updateTransform(),i.add(_),_.decomposeTransform()}}},dA={},gA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.render=function(e,i,n){this.axisPointerClass&&Vd(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},i.prototype.updateAxisPointer=function(t,e,i){this._doUpdateAxisPointerClass(t,i,!1)},i.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},i.prototype.dispose=function(e,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},i.prototype._doUpdateAxisPointerClass=function(t,e,n){var r=i.getAxisPointerClass(this.axisPointerClass);if(r){var o=Xd(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,n):this._disposeAxisPointer(e)}},i.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},i.registerAxisPointerClass=function(t,e){dA[t]=e},i.getAxisPointerClass=function(t){return t&&dA[t]},i.type="axis",i}(FS),yA=on(),vA=["axisLine","axisTickLabel","axisName"],mA=["splitArea","splitLine","minorSplitLine"],_A=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.axisPointerClass="CartesianAxisPointer",e}return e(i,t),i.prototype.render=function(e,i,n,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 pA(e,u({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),i=0;i<t.length;i++){var n=t[i].getOtherAxis(e.axis).type;if("value"===n||"log"===n)return!0}return!1}},s));g(vA,l.add,l),this._axisGroup.add(l.getGroup()),g(mA,function(t){e.get([t,"show"])&&xA[t](this,this._axisGroup,e,a)},this);r&&"changeAxisOrder"===r.type&&r.isInitSort||ga(o,this._axisGroup,e),t.prototype.render.call(this,e,i,n,r)}},i.prototype.remove=function(){jd(this)},i.type="cartesianAxis",i}(gA),xA={splitLine:function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=S(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=r.isHorizontal(),c=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=c++%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:h({stroke:s[m]},g),silent:!0}))}}},minorSplitLine:function(t,e,i,n){var r=i.axis,o=i.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var h=[],c=[],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?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g),e.add(new sb({anid:"minor_line_"+u[f][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:p,silent:!0}))}},splitArea:function(t,e,i,n){Ud(t,e,i,n)}},bA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="xAxis",i}(_A),wA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=bA.type,e}return e(i,t),i.type="yAxis",i}(_A),SA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return e(i,t),i.prototype.render=function(t){this.group.removeAll(),t.get("show")&&this.group.add(new J_({shape:t.coordinateSystem.getRect(),style:h({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},i.type="grid",i}(FS),TA={offset:0};Bp(qd);var MA=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},CA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.layoutMode={type:"box",ignoreSize:!0},e}return e(i,t),i.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},i.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},i.prototype._updateSelector=function(t){var e=t.selector,i=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),S(e)&&g(e,function(t,n){M(t)&&(t={type:t}),e[n]=s(t,MA(i,t.type))})},i.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},i.prototype._updateData=function(t){var e=[],i=[];t.eachRawSeries(function(n){var r=n.name;i.push(r);var o;if(n.legendVisualProvider){var a=n.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(n)||(i=i.concat(s)),s.length?e=e.concat(s):o=!0}else o=!0;o&&$i(n)&&e.push(n.name)}),this._availableNames=i;var n=this.get("data")||e,r=y(n,function(t){return("string"==typeof t||"number"==typeof t)&&(t={name:t}),new Ub(t,this,this.ecModel)},this);this._data=r},i.prototype.getData=function(){return this._data},i.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},i.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},i.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},i.prototype.allSelect=function(){var t=this._data,e=this.option.selected;g(t,function(t){e[t.get("name",!0)]=!0})},i.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;g(t,function(t){var i=t.get("name",!0);e.hasOwnProperty(i)||(e[i]=!0),e[i]=!e[i]})},i.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&c(this._availableNames,t)>=0},i.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},i.type="legend.plain",i.dependencies=["series"],i.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}},i}(ww),IA=w,AA=g,kA=gm,DA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.newlineDisabled=!1,e}return e(i,t),i.prototype.init=function(){this.group.add(this._contentGroup=new kA),this.group.add(this._selectorGroup=new kA),this._isFirstRender=!0},i.prototype.getContentGroup=function(){return this._contentGroup},i.prototype.getSelectorGroup=function(){return this._selectorGroup},i.prototype.render=function(t,e,i){var n=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,i,a,o,s);var l=t.getBoxLayoutParams(),u={width:i.getWidth(),height:i.getHeight()},c=t.get("padding"),p=xs(l,u,c),f=this.layoutInner(t,r,p,n,a,s),d=xs(h({width:f.width,height:f.height},l),u,c);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))}},i.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},i.prototype.renderInner=function(t,e,i,n,r,o,a){var s=this.getContentGroup(),l=G(),u=e.get("selectedMode"),h=[];i.eachRawSeries(function(t){!t.get("legendHoverLink")&&h.push(t.id)}),AA(e.getData(),function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var c=new kA;return c.newline=!0,void s.add(c)}var p=i.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",IA(Jd,a,null,n,h)).on("mouseover",IA(tg,p.name,null,n,h)).on("mouseout",IA(eg,p.name,null,n,h)),l.set(a,!0)}else i.eachRawSeries(function(i){if(!l.get(a)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(a))return;var c=s.indexOfName(a),p=s.getItemVisual(c,"style"),f=s.getItemVisual(c,"legendIcon"),d=ne(p.fill);d&&0===d[3]&&(d[3]=.2,p.fill=pe(d,"rgba"));this._createItem(i,a,o,r,e,t,{},p,f,u).on("click",IA(Jd,null,a,n,h)).on("mouseover",IA(tg,null,a,n,h)).on("mouseout",IA(eg,null,a,n,h)),l.set(a,!0)}},this)},this),r&&this._createSelector(r,e,n,o,a)},i.prototype._createSelector=function(t,e,i){var n=this.getSelectorGroup();AA(t,function(t){var r=t.type,o=new ex({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});n.add(o),Ca(o,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),vo(o)})},i.prototype._createItem=function(t,e,i,n,r,o,a,s,l,u){var h=t.visualDrawType,c=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),d=n.get("symbolRotate"),g=n.get("icon");l=g||l||"roundRect";var y=r.getModel("lineStyle"),v=Kd(l,n,y,a,s,h,f),m=new kA,_=n.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(Qd({itemWidth:c,itemHeight:p,icon:l,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle}))}else m.add(t.getLegendIcon({itemWidth:c,itemHeight:p,icon:l,iconRotate:d,itemStyle:v.itemStyle,lineStyle:v.lineStyle}));var b="left"===o?c+5:-5,w=o,S=r.get("formatter"),T=e;"string"==typeof S&&S?T=S.replace("{name}",null!=e?e:""):"function"==typeof S&&(T=S(e));var M=n.get("inactiveColor");m.add(new ex({style:Aa(_,{text:T,x:b,y:p/2,fill:f?_.getTextColor():M,align:w,verticalAlign:"middle"})}));var C=new J_({shape:m.getBoundingRect(),invisible:!0}),I=n.getModel("tooltip");return I.get("show")&&Sa({el:C,componentModel:r,itemName:e,itemTooltipOption:I.option}),m.add(C),m.eachChild(function(t){t.silent=!0}),C.silent=!u,this.getContentGroup().add(m),vo(m),m.__legendDataIndex=i,m},i.prototype.layoutInner=function(t,e,i,n,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();xw(t.get("orient"),a,t.get("itemGap"),i.width,i.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){xw("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.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?c[f]+=l[d]+p:u[f]+=h[d]+p,c[1-f]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[d]=l[d]+p+h[d],v[g]=Math.max(l[g],h[g]),v[y]=Math.min(0,h[y]+c[1-f]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},i.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},i.type="legend.plain",i}(FS),PA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},i.prototype.init=function(e,i,n){var r=Ss(e);t.prototype.init.call(this,e,i,n),ag(this,e,r)},i.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),ag(this,this.option,e)},i.type="legend.scroll",i.defaultOption=Na(CA.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}),i}(CA),OA=gm,LA=["width","height"],EA=["x","y"],RA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e.newlineDisabled=!0,e._currentIndex=0,e}return e(i,t),i.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new OA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new OA)},i.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},i.prototype.renderInner=function(e,i,n,r,o,a,s){function l(t,e){var n=t+"DataIndex",o=ma(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:ky(u._pageGo,u,n,i,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,h.add(o)}var u=this;t.prototype.renderInner.call(this,e,i,n,r,o,a,s);var h=this._controllerGroup,c=i.get("pageIconSize",!0),p=S(c)?c:[c,c];l("pagePrev",0);var f=i.getModel("pageTextStyle");h.add(new ex({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),l("pageNext",1)},i.prototype.layoutInner=function(t,e,i,n,r,o){var s=this.getSelectorGroup(),l=t.getOrient().index,u=LA[l],h=EA[l],c=LA[1-l],p=EA[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(i);r&&(y[u]=i[u]-d[u]-f);var v=this._layoutContentAndController(t,n,y,l,u,c,p,h);if(r){if("end"===o)g[l]+=v[u]+f;else{var m=d[u]+f;g[l]-=m,v[h]-=m}v[u]+=d[u]+f,g[1-l]+=v[p]+v[c]/2-d[c]/2,v[c]=Math.max(v[c],d[c]),v[p]=Math.min(v[p],d[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()}return v},i.prototype._layoutContentAndController=function(t,e,i,n,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;xw(t.get("orient"),l,t.get("itemGap"),n?i.width:null,n?null:i.height),xw("horizontal",h,t.get("pageButtonItemGap",!0));var c=l.getBoundingRect(),p=h.getBoundingRect(),f=this._showController=c[r]>i[r],d=[-c.x,-c.y];e||(d[n]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=z(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(f){"end"===t.get("pageButtonPosition",!0)?y[n]+=i[r]-p[r]:g[n]+=p[r]+v}y[1-n]+=c[o]/2-p[o]/2,l.setPosition(d),u.setPosition(g),h.setPosition(y);var m={x:0,y:0};if(m[r]=f?i[r]:c[r],m[o]=Math.max(c[o],p[o]),m[a]=Math.min(0,p[a]+y[1-n]),u.__rectSize=i[r],f){var _={x:0,y:0};_[r]=Math.max(i[r]-p[r]-v,0),_[o]=m[o],u.setClipPath(new J_({shape:_})),u.__rectSize=_[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return null!=x.pageIndex&&jo(l,{x:x.contentPosition[0],y:x.contentPosition[1]},f?t:null),this._updatePageInfoView(t,x),m},i.prototype._pageGo=function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},i.prototype._updatePageInfoView=function(t,e){var i=this._controllerGroup;g(["pagePrev","pageNext"],function(n){var r=n+"DataIndex",o=null!=e[r],a=i.childOfName(n);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")});var n=i.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;n&&r&&n.setStyle("text",M(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},i.prototype._getPageInfo=function(t){function e(t){if(t){var e=t.getBoundingRect(),i=e[l]+t[l];return{s:i,e:i+e[s],i:t.__legendDataIndex}}}function i(t,e){return t.e>=e&&t.s<=e+o}var n=t.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=LA[a],l=EA[a],u=this._findTargetItemIndex(n),h=r.children(),c=h[u],p=h.length,f=p?1:0,d={contentPosition:[r.x,r.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var g=e(c);d.contentPosition[a]=-g.s;for(var y=u+1,v=g,m=g,_=null;p>=y;++y)_=e(h[y]),(!_&&m.e>v.s+o||_&&!i(_,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(h[y]),_&&i(m,_.s)||!(v.i<m.i)||(m=v,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=v.i),++d.pageCount,++d.pageIndex),v=_;return d},i.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,i;return this.getContentGroup().eachChild(function(n,r){var o=n.__legendDataIndex;null==i&&null!=o&&(i=r),o===t&&(e=r)}),null!=e?e:i},i.type="legend.scroll",i}(DA);Bp(lg);var NA=on(),zA=a,BA=ky,FA=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||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,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=w(ug,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new gm,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.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 i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var s=Yd(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var i=e.pointer;if(i){var n=NA(t).pointerEl=new Pb[i.type](zA(e.pointer));t.add(n)}},t.prototype.createLabelEl=function(t,e,i,n){if(e.label){var r=NA(t).labelEl=new ex(zA(e.label));t.add(r),cg(r,n)}},t.prototype.updatePointerEl=function(t,e,i){var n=NA(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,i,n){var r=NA(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{x:e.label.x,y:e.label.y}),cg(r,n))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,r=e.getModel("handle"),o=e.get("status");if(!r.get("show")||!o||"hide"===o)return n&&i.remove(n),void(this._handle=null);var a;this._handle||(a=!0,n=this._handle=ma(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){jy(t.event)},onmousedown:BA(this._onHandleDragMove,this,0,0),drift:BA(this._onHandleDragMove,this),ondragend:BA(this._onHandleDragEnd,this)}),i.add(n)),fg(n,e,!1),n.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");S(s)||(s=[s,s]),n.scaleX=s[0]/2,n.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 i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(pg(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(pg(n)),NA(i).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(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},t}(),HA=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=wg(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=dg(n),c=VA[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}_g(e,t,_d(a.model,i),i,n,r)},i.prototype.getHandleTransform=function(t,e,i){var n=_d(e.axis.grid.model,e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=mg(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},i.prototype.updateHandleTransform=function(t,e,i){var n=i.axis,r=n.grid,o=n.getGlobalExtent(!0),a=wg(r,n).getOtherAxis(n).getGlobalExtent(),s="x"===n.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,h=[u,u];h[s]=l[s];var c=[{verticalAlign:"middle"},{align:"center"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}},i}(FA),VA={line:function(t,e,i){return{type:"Line",subPixelOptimize:!0,shape:xg([e,i[0]],[e,i[1]],Sg(t))}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:bg([e-n/2,i[0]],[n,r],Sg(t))}}},YA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="axisPointer",i.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}},i}(ww),XA=on(),WA=g,GA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.render=function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";Tg("axisPointer",i,function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},i.prototype.remove=function(t,e){Dg("axisPointer",e)},i.prototype.dispose=function(t,e){Dg("axisPointer",e)},i.type="axisPointer",i}(FS),UA=on(),jA=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.type="tooltip",i.dependencies=["axisPointer"],i.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}},i}(ww),qA=Gg(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ZA=Gg(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),KA=Ug(ZA,"transition"),QA=Ug(qA,"transform"),JA="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(gy.transform3dSupported?"will-change:transform;":""),$A=function(){function t(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,gy.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;ty(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler;It(r.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,i=jg(e,"position"),n=e.style;"absolute"!==n.position&&"absolute"!==i&&(n.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 i=this.el,n=i.style,r=this._styleCoord;i.innerHTML?n.cssText=JA+$g(t,!this._firstShow,this._longHide)+Qg(r[0],r[1],!0)+"border-color:"+ms(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,n,r){var o=this.el;if(null==t)return void(o.innerHTML="");var a="";if(M(r)&&"item"===i.get("trigger")&&!Wg(i)&&(a=Zg(i,n,r)),M(t))o.innerHTML=t+a;else if(t){o.innerHTML="",S(t)||(t=[t]);for(var s=0;s<t.length;s++)P(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 i=this._styleCoord;if(ty(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]){var n=this.el.style;g(Qg(i[0],i[1]),function(t){n[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(ky(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),tk=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),ny(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,i,n){A(t)&&Bi(""),this.el&&this._zr.remove(this.el);var r=i.getModel("textStyle");this.el=new ex({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:i.get("backgroundColor"),borderRadius:i.get("borderRadius"),borderWidth:1,borderColor:n,shadowColor:i.get("shadowColor"),shadowBlur:i.get("shadowBlur"),shadowOffsetX:i.get("shadowOffsetX"),shadowOffsetY:i.get("shadowOffsetY"),textShadowColor:r.get("textShadowColor"),textShadowBlur:r.get("textShadowBlur")||0,textShadowOffsetX:r.get("textShadowOffsetX")||0,textShadowOffsetY:r.get("textShadowOffsetY")||0,fill:i.get(["textStyle","color"]),padding:nu(i,"richText"),verticalAlign:"top",align:"left"},z:i.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(),i=iy(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},t.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;ny(n,this._zr,t,e),t=n[0],e=n[1];var r=i.style,o=ey(r.borderWidth||0),a=iy(r);i.x=t+o+a.left,i.y=e+o+a.top,i.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(ky(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}(),ek=ky,ik=g,nk=vi,rk=new J_({shape:{x:-1,y:-1,width:2,height:2}}),ok=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=i.type,e}return e(i,t),i.prototype.init=function(t,e){if(!gy.node){var i=t.getComponent("tooltip"),n=i.get("renderMode");this._renderMode=cn(n),this._tooltipContent="richText"===this._renderMode?new tk(e):new $A(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},i.prototype.render=function(t,e,i){if(!gy.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},i.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");Tg("itemTooltip",this._api,ek(function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))},this))},i.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})})}},i.prototype.manuallyShowTip=function(t,e,i,n){if(n.from!==this.uid&&!gy.node){var r=oy(n,i);this._ticket="";var o=n.dataByCoordSys,a=hy(n,e,i);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:n.position,positionDefault:"bottom"},r)}else if(n.tooltip&&null!=n.x&&null!=n.y){var l=rk;l.x=n.x,l.y=n.y,l.update(),rx(l).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:l},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var u=Pg(n,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:n.position,positionDefault:"bottom"},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},i.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(oy(n,i))},i.prototype._manuallyAxisShowTip=function(t,e,i,n){var r=n.seriesIndex,o=n.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 i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}}},i.prototype._tryShow=function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;if(n&&n.length)this._showAxisTooltip(n,t);else if(i){this._lastDataByCoordSys=null;var r,o;Fu(i,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)}},i.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=ky(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},i.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=ry([e.tooltipOption],n),a=this._renderMode,s=[],l=Ul("section",{blocks:[],noHeader:!0}),u=[],h=new NS;ik(t,function(t){ik(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value;if(e&&null!=n){var r=vg(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),o=Ul("section",{header:r,noHeader:!Y(r),sortBlocks:!0,blocks:[]});l.blocks.push(o),g(t.seriesDataIndices,function(l){var c=i.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=c.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Ap(e.axis,{value:n}),f.axisValueLabel=r,f.marker=h.makeTooltipMarker("item",ms(f.color),a);var d=Cl(c.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 c=e.position,p=o.get("order"),f=Zl(l,h,a,p,i.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,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,y,s,Math.random()+"",r[0],r[1],c,null,h)})},i.prototype._showSeriesItemTooltip=function(t,e,i){var n=this._ecModel,r=rx(e),o=r.seriesIndex,a=n.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,p=t.positionDefault,f=ry([h.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),c);var v=Cl(s.formatTooltip(l,!1,u)),m=f.get("order"),_=v.markupFragment?Zl(v.markupFragment,y,c,m,n.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)}),i({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},i.prototype._showComponentItemTooltip=function(t,e,i){var n=rx(e),r=n.tooltipConfig,o=r.option||{};if(M(o)){var s=o;o={content:s,formatter:s}}var l=[o],u=this._ecModel.getComponent(n.componentMainType,n.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=ry(l,this._tooltipModel,h?{position:h}:null),p=c.get("content"),f=Math.random()+"",d=new NS;this._showOrMove(c,function(){var i=a(c.get("formatterParams")||{});this._showTooltipContent(c,p,i,f,t.offsetX,t.offsetY,t.position,e,d)}),i({type:"showTip",from:this.uid})},i.prototype._showTooltipContent=function(t,e,i,n,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("formatter");a=a||t.get("position");var c=e,p=this._getNearestPoint([r,o],i,t.get("trigger"),t.get("borderColor")),f=p.color;if(h)if(M(h)){var d=t.ecModel.get("useUTC"),g=S(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=h,y&&(c=Ga(g.axisValue,c,d)),c=ds(c,i,!0)}else if(T(h)){var v=ek(function(e,n){e===this._ticket&&(u.setContent(n,l,t,f,a),this._updatePosition(t,a,r,o,u,i,s))},this);this._ticket=n,c=h(i,n,v)}else c=h;u.setContent(c,l,t,f,a),u.show(t,f),this._updatePosition(t,a,r,o,u,i,s)}},i.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||S(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:S(e)?void 0:{color:n||e.color||e.borderColor}},i.prototype._updatePosition=function(t,e,i,n,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),T(e)&&(e=e([i,n],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),S(e))i=nk(e[0],s),n=nk(e[1],l);else if(A(e)){var f=e;f.width=u[0],f.height=u[1];var d=xs(f,{width:s,height:l});i=d.x,n=d.y,h=null,c=null}else if(M(e)&&a){var g=ly(e,p,u,t.get("borderWidth"));i=g[0],n=g[1]}else{var g=ay(i,n,r,s,l,h?null:20,c?null:20);i=g[0],n=g[1]}if(h&&(i-=uy(h)?u[0]/2:"right"===h?u[0]:0),c&&(n-=uy(c)?u[1]/2:"bottom"===c?u[1]:0),Wg(t)){var g=sy(i,n,r,s,l);i=g[0],n=g[1]}r.moveTo(i,n)},i.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&ik(i,function(i,o){var a=i.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];(r=r&&a.length===l.length)&&ik(a,function(t,i){var o=l[i]||{},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&&ik(a,function(t,e){var i=s[e];r=r&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}),n&&g(t.seriesDataIndices,function(t){var i=t.seriesIndex,o=e[i],a=n[i];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},i.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},i.prototype.dispose=function(t,e){gy.node||(this._tooltipContent.dispose(),Dg("itemTooltip",e))},i.type="tooltip",i}(FS);Bp(cy),t.version="5.2.0",t.dependencies=gM,t.PRIORITY=_M,t.init=tc,t.connect=ec,t.disConnect=ic,t.disconnect=sC,t.dispose=nc,t.getInstanceByDom=rc,t.getInstanceById=oc,t.registerTheme=ac,t.registerPreprocessor=sc,t.registerProcessor=lc,t.registerPostInit=uc,t.registerPostUpdate=hc,t.registerUpdateLifecycle=cc,t.registerAction=pc,t.registerCoordinateSystem=fc,t.getCoordinateSystemDimensions=dc,t.registerLayout=gc,t.registerVisual=yc,t.registerLoading=mc,t.setCanvasCreator=_c,t.registerMap=xc,t.getMap=bc,t.registerTransform=uC,t.dataTool=vC,t.registerLocale=za,t.zrender=xm,t.matrix=Vv,t.vector=zy,t.zrUtil=Oy,t.color=_v,t.helper=nI,t.number=aI,t.time=sI,t.graphic=lI,t.format=uI,t.util=hI,t.List=kC,t.ComponentModel=ww,t.ComponentView=FS,t.SeriesModel=BS,t.ChartView=YS,t.extendComponentModel=ef,t.extendComponentView=nf,t.extendSeriesModel=rf,t.extendChartView=of,t.throttle=xu,t.use=Bp,t.parseGeoJSON=Wh,t.parseGeoJson=Wh,t.env=gy,t.Model=Ub,t.Axis=fI,t.innerDrawElementOnCanvas=fh})},1915:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"chart",staticClass:"chart"})},r=[];n._withStripped=!0},1916:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chartContainer"},[i("div",{staticClass:"dataDisplay"},[i("div",{staticClass:"selectAge"},[i("div",{staticClass:"leftSelectAge"},[i("span",{staticClass:"agetext"},[t._v("至")]),t._v(" "),i("div",{class:["selectInputAge","agetext",{isCps:t.isCps}],on:{click:t.showAgePicker}},[i("div",{staticClass:"selectedAgeText"},[t._v("\n "+t._s(t.xAxisData[t.selectIndex])+"岁\n ")]),t._v(" "),i("i",{staticClass:"dropDown"})]),t._v(" "),i("span",{staticClass:"agetext"},[t._v("可获得")])]),t._v(" "),i("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,n){return[2===e.showType?i("div",{key:n,staticClass:"specialShowBox"},[i("div",{staticClass:"numShow"},[i("div",{staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.pureDataSource[t.selectIndex][n])+"\n ")]),t._v(" "),i("div",{staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),i("div",{staticClass:"titleShow"},[i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.problemText)}}}):t._e()]),t._v(" "),e.tipsText?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("span",{staticClass:"multipleNum"},[t._v(t._s(e.expressionData[t.selectIndex]))]),t._v(t._s(e.tipsText[1])+"\n ")]):t._e()])]):t._e()]})]:[i("div",{staticClass:"textShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"textShowBox"},[i("div",{staticClass:"iconblock"},[i("i",{staticClass:"iconColorBlock",style:{background:e.boxConfig.iconColor}})]),t._v(" "),i("div",{staticClass:"text"},[i("span",[t._v(t._s(e.titleName))]),t._v(" "),e.problemText?i("i",{staticClass:"question",on:{click:function(i){return t.showProblemDialog(e.problemText)}}}):t._e()])]):t._e()]})],2),t._v(" "),i("div",{staticClass:"moneyShow"},[t._l(t.chartConfig,function(e,n){return[2===e.showType?i("div",{key:n,staticClass:"moneyShowBox"},[i("div",{staticClass:"numShow"},[i("div",{ref:"num",refInFor:!0,staticClass:"num",style:{color:e.boxConfig.titleColor}},[t._v("\n "+t._s(t.pureDataSource[t.selectIndex][n])+"\n ")]),t._v(" "),i("div",{ref:"colorBlock",refInFor:!0,staticClass:"colorBlock",style:{background:e.boxConfig.blockColor}})]),t._v(" "),e.tipsText&&e.expressionData?i("div",{staticClass:"multipleShow",style:{color:e.boxConfig.tipsColor}},[t._v("\n "+t._s(e.tipsText[0])),i("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(" "),i("div",{class:["flowerTexture",{isCps:t.isCps}]}),t._v(" "),i("chart",{attrs:{chartConfig:t.chartConfig,dataSource:t.dataSource,index:t.selectIndex},on:{setIndex:t.setSelectIndex}})],1)},r=[];n._withStripped=!0},1917:function(t,e,i){"use strict";function n(t){s||i(1918)}var r=i(1259),o=i(1919),a=i(2),s=!1,l=n,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},1918:function(t,e){},1919:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"layer-finance",on:{touchmove:t.preventMove}},[i("div",{staticClass:"layer-finance-mask",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),i("div",{staticClass:"layer-finance-box layer_animate cost iphonex_padding"},[i("span",{staticClass:"layer-close",on:{click:function(e){return e.stopPropagation(),t.cancel.apply(null,arguments)}}}),t._v(" "),i("p",{staticClass:"main-title"},[t._v("\n 保单利益演示表\n ")]),t._v(" "),i("p",{staticClass:"cost-title"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("p",{staticClass:"cost-table-head"},[t._v("\n 基于用户所选信息的保单利益演示如下:\n ")]),t._v(" "),t.tables.cols&&t.tables.rows&&t.tables.rows.length?[i("div",[i("div",{staticClass:"table-tr thead"},[t._l(t.tables.cols,function(e,n){return[t.showCol(n)?i("span",{key:"head-"+n,staticClass:"table-item",style:t.styleOption},[t._v("\n "+t._s(e)+"\n ")]):t._e()]})],2),t._v(" "),i("div",{staticClass:"cost-scroll"},[i("table",{staticClass:"table-body"},[t.tables.rows&&t.tables.rows.length?i("tbody",t._l(t.tables.rows,function(e,n){return i("tr",{key:"tr-"+n,staticClass:"table-tr "},[t._l(e,function(e,r){return[t.showCol(r)?i("td",{key:"td-"+n+"-"+r,staticClass:"table-item"},[t._v("\n "+t._s(Math.round(100*e)/100)+"\n ")]):t._e()]})],2)}),0):t._e()])])])]:[i("div",{staticClass:"no-data"},[t._v("\n 暂时无法展示\n ")])]],2)])},r=[];n._withStripped=!0},1920:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShowChart?i("div",[i("benefit",{attrs:{renderData:t.renderData,theme:t.realTheme,isCps:t.isCps},on:{showCostTable:t.showCostTable}}),t._v(" "),i("gold-cost-table",{attrs:{visible:t.costTableVisible,tables:t.tables,theme:t.realTheme},on:{cancelCost:function(e){t.costTableVisible=!1}}})],1):t._e()},r=[];n._withStripped=!0},2:function(t,e,i){"use strict";function n(t,e,i,n,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=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=h):r&&(h=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),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=n},20:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},21:function(t,e,i){var n=i(30);t.exports=function(t){return Object(n(t))}},22:function(t,e){e.f={}.propertyIsEnumerable},25:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},26:function(t,e,i){var n=i(8).f,r=i(5),o=i(3)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},28:function(t,e,i){t.exports={default:i(78),__esModule:!0}},29:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},3:function(t,e,i){var n=i(32)("wks"),r=i(20),o=i(1).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=n},30:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},31:function(t,e,i){var n=i(32)("keys"),r=i(20);t.exports=function(t){return n[t]||(n[t]=r(t))}},32:function(t,e,i){var n=i(0),r=i(1),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:n.version,mode:i(15)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,i){var n=i(10);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,i){e.f=i(3)},37:function(t,e,i){var n=i(1),r=i(0),o=i(15),a=i(36),s=i(8).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},38:function(t,e,i){var n=i(39);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},39:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4:function(t,e,i){t.exports=!i(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},40:function(t,e,i){var n=i(10),r=i(1).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},42:function(t,e,i){"use strict";var n=i(15),r=i(13),o=i(46),a=i(7),s=i(17),l=i(66),u=i(26),h=i(70),c=i(3)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,i,d,g,y,v){l(i,e,d);var m,_,x,b=function(t){if(!p&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},w=e+" Iterator",S="values"==g,T=!1,M=t.prototype,C=M[c]||M["@@iterator"]||g&&M[g],I=C||b(g),A=g?S?b("entries"):I:void 0,k="Array"==e?M.entries||C:C;if(k&&(x=h(k.call(new t)))!==Object.prototype&&x.next&&(u(x,w,!0),n||"function"==typeof x[c]||a(x,c,f)),S&&C&&"values"!==C.name&&(T=!0,I=function(){return C.call(this)}),n&&!v||!p&&!T&&M[c]||a(M,c,I),s[e]=I,s[w]=f,g)if(m={values:S?I:b("values"),keys:y?I:b("keys"),entries:A},v)for(_ in m)_ in M||o(M,_,m[_]);else r(r.P+r.F*(p||T),e,m);return m}},43:function(t,e,i){var n=i(9),r=i(67),o=i(33),a=i(31)("IE_PROTO"),s=function(){},l=function(){var t,e=i(40)("iframe"),n=o.length;for(e.style.display="none",i(58).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[o[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(s.prototype=n(t),i=new s,s.prototype=null,i[a]=t):i=l(),void 0===e?i:r(i,e)}},44:function(t,e,i){var n=i(25);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},45:function(t,e,i){t.exports=!i(4)&&!i(12)(function(){return 7!=Object.defineProperty(i(40)("div"),"a",{get:function(){return 7}}).a})},46:function(t,e,i){t.exports=i(7)},47:function(t,e,i){var n=i(5),r=i(11),o=i(68)(!1),a=i(31)("IE_PROTO");t.exports=function(t,e){var i,s=r(t),l=0,u=[];for(i in s)i!=a&&n(s,i)&&u.push(i);for(;e.length>l;)n(s,i=e[l++])&&(~o(u,i)||u.push(i));return u}},48:function(t,e,i){var n=i(47),r=i(33).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},49:function(t,e,i){var n=i(11),r=i(48).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(n(t))}},5:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},50:function(t,e,i){"use strict";var n=i(1),r=i(5),o=i(4),a=i(13),s=i(46),l=i(74).KEY,u=i(12),h=i(32),c=i(26),p=i(20),f=i(3),d=i(36),g=i(37),y=i(81),v=i(76),m=i(9),_=i(10),x=i(21),b=i(11),w=i(34),S=i(19),T=i(43),M=i(49),C=i(82),I=i(35),A=i(8),k=i(14),D=C.f,P=A.f,O=M.f,L=n.Symbol,E=n.JSON,R=E&&E.stringify,N=f("_hidden"),z=f("toPrimitive"),B={}.propertyIsEnumerable,F=h("symbol-registry"),H=h("symbols"),V=h("op-symbols"),Y=Object.prototype,X="function"==typeof L&&!!I.f,W=n.QObject,G=!W||!W.prototype||!W.prototype.findChild,U=o&&u(function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=D(Y,e);n&&delete Y[e],P(t,e,i),n&&t!==Y&&P(Y,e,n)}:P,j=function(t){var e=H[t]=T(L.prototype);return e._k=t,e},q=X&&"symbol"==typeof L.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof L},Z=function(t,e,i){return t===Y&&Z(V,e,i),m(t),e=w(e,!0),m(i),r(H,e)?(i.enumerable?(r(t,N)&&t[N][e]&&(t[N][e]=!1),i=T(i,{enumerable:S(0,!1)})):(r(t,N)||P(t,N,S(1,{})),t[N][e]=!0),U(t,e,i)):P(t,e,i)},K=function(t,e){m(t);for(var i,n=y(e=b(e)),r=0,o=n.length;o>r;)Z(t,i=n[r++],e[i]);return t},Q=function(t,e){return void 0===e?T(t):K(T(t),e)},J=function(t){var e=B.call(this,t=w(t,!0));return!(this===Y&&r(H,t)&&!r(V,t))&&(!(e||!r(this,t)||!r(H,t)||r(this,N)&&this[N][t])||e)},$=function(t,e){if(t=b(t),e=w(e,!0),t!==Y||!r(H,e)||r(V,e)){var i=D(t,e);return!i||!r(H,e)||r(t,N)&&t[N][e]||(i.enumerable=!0),i}},tt=function(t){for(var e,i=O(b(t)),n=[],o=0;i.length>o;)r(H,e=i[o++])||e==N||e==l||n.push(e);return n},et=function(t){for(var e,i=t===Y,n=O(i?V:b(t)),o=[],a=0;n.length>a;)!r(H,e=n[a++])||i&&!r(Y,e)||o.push(H[e]);return o};X||(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(i){this===Y&&e.call(V,i),r(this,N)&&r(this[N],t)&&(this[N][t]=!1),U(this,t,S(1,i))};return o&&G&&U(Y,t,{configurable:!0,set:e}),j(t)},s(L.prototype,"toString",function(){return this._k}),C.f=$,A.f=Z,i(48).f=M.f=tt,i(22).f=J,I.f=et,o&&!i(15)&&s(Y,"propertyIsEnumerable",J,!0),d.f=function(t){return j(f(t))}),a(a.G+a.W+a.F*!X,{Symbol:L});for(var it="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;it.length>nt;)f(it[nt++]);for(var rt=k(f.store),ot=0;rt.length>ot;)g(rt[ot++]);a(a.S+a.F*!X,"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(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!X,"Object",{create:Q,defineProperty:Z,defineProperties:K,getOwnPropertyDescriptor:$,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))}}),E&&a(a.S+a.F*(!X||u(function(){var t=L();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(_(e)||void 0!==t)&&!q(t))return v(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!q(e))return e}),n[1]=e,R.apply(E,n)}}),L.prototype[z]||i(7)(L.prototype,z,L.prototype.valueOf),c(L,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},51:function(t,e,i){"use strict";var n=i(65)(!0);i(42)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},52:function(t,e,i){i(71);for(var n=i(1),r=i(7),o=i(17),a=i(3)("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=n[u],c=h&&h.prototype;c&&!c[a]&&r(c,a,u),o[u]=o.Array}},53:function(t,e,i){var n=i(13),r=i(0),o=i(12);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*o(function(){i(1)}),"Object",a)}},54:function(t,e,i){t.exports={default:i(77),__esModule:!0}},56:function(t,e,i){var n=i(29),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},58:function(t,e,i){var n=i(1).document;t.exports=n&&n.documentElement},6:function(t,e,i){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var i=-1;return t.some(function(t,n,r){var o=e.call(this,t,n,r);if(o)return i=n,o}),i}function r(t){return t?JSON.parse(F()(t)):t}function o(t,e){for(var i in e)t[i]&&"object"===z()(t[i])?o(t[i],e[i]):t[i]=e[i]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Number]"===Object.prototype.toString.call(t)}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function h(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function c(t){return null===t}function p(t){return void 0!==t&&null!==t}function f(t){return void 0===t}function d(t){return"[object Error]"===Object.prototype.toString.call(t)}function g(t){return"function"==typeof t}function y(t,e,i){function n(e){var i=y,n=v;return y=v=void 0,w=e,_=t.apply(n,i)}function r(t,e){return C?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function o(t){if(C)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return w=t,x=r(h,e),S?n(t):_}function s(t){var i=t-b,n=t-w,r=e-i;return T?Math.min(r,m-n):r}function l(t){var i=t-b,n=t-w;return void 0===b||i>=e||i<0||T&&n>=m}function h(){var t=Date.now();if(l(t))return c(t);x=r(h,s(t))}function c(t){return x=void 0,M&&y?n(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?_:c(Date.now())}function d(){return void 0!==x}function g(){for(var t=Date.now(),i=l(t),o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];if(y=s,v=this,b=t,i){if(void 0===x)return a(b);if(T)return x=r(h,e),n(b)}return void 0===x&&(x=r(h,e)),_}var y=void 0,v=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=0,S=!1,T=!1,M=!0,C=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,u(i)&&(S=!!i.leading,T="maxWait"in i,m=T?Math.max(+i.maxWait||0,e):m,M="trailing"in i?!!i.trailing:M),g.cancel=p,g.flush=f,g.pending=d,g}function v(t,e,i){var n=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return u(i)&&(n="leading"in i?!!i.leading:n,r="trailing"in i?!!i.trailing:r),y(t,e,{leading:n,trailing:r,maxWait:e})}function m(t){return!!/^1\d{10}$/.test(t)}function _(t){var e=t.length;return e>3&&e<8?t=t.replace(/\s/g,"").replace(/^(.{3})/g,"$1 "):e>=8&&(t=t.replace(/\s/g,"").replace(/^(.{3})(.+)/g,function(t,e,i){return e+" "+i.replace(/(.{4})(?=.)/g,"$1 ")})),t}function x(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function b(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function w(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("  "):3===e?t.split("").join(" "):t}function S(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.offsetHeight;if(e){var n=t.currentStyle||getComputedStyle(t);i+=parseInt(n.marginTop||0)+parseInt(n.marginBottom||0)}return i}function T(t,e){var i=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),n=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),r=null;return i?r={r:parseInt(i[1]+i[1],16),g:parseInt(i[2]+i[2],16),b:parseInt(i[3]+i[3],16)}:n&&(r={r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}),r?void 0!==e?"rgba("+r.r+", "+r.g+", "+r.b+", "+e+")":"rgb("+r.r+", "+r.g+", "+r.b+")":""}function M(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",i=e.length,n="";t=t||32;for(var r=0;r<t;r++)n+=e.charAt(Math.floor(Math.random()*i));return n}function C(t,e){var i=e||location.href,n=new RegExp("(\\?|&)"+t+"=([^&#$\\s]+)"),r=i.match(n);return r&&r[2]}function I(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}function A(t,e,i){return Math.min(Math.max(t,e),i)}function k(t){var e=/os (\d\d?_\d(_\d)?)/,i=e.exec(t);if(!i)return null;var n=i[1].split("_").map(function(t){return parseInt(t,10)});return{major:n[0],minor:n[1],patch:n[2]||0}}function D(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=e||window.location.href;var i=new RegExp("(\\?|#|&)"+t+"=([^&#]*)(&|#|$)"),n=e.match(i);return decodeURIComponent(n?n[2]:"")}function P(t){return t?d(t)?t.message:s(t)?t:t.errmsg||"请求失败,请稍后重试":"请求失败,请稍后重试"}function O(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[],i=new RegExp("https?://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]"),n=0;n<t.length;n++){var r=t[n];if(!i.test(r))return;e.push(r.split("?")[0])}return e}function L(t){var e=JSON.parse(F()(t)),i=e.attrModules,n=void 0===i?{}:i,r=e.plan,o=n.applicant,s=n.insureds,l=n.hcpics,u=n.hctext,h=n.makeup,c=n.apphctext,p=n.apphcpics,f={},d=function(t){var e=null,i=null,n=null,r=null,o={},s={},l={};for(var u in t){var h=t[u].defaultValue,c=t[u].required,p=t[u].display;if(a(h)){var f=O(h);f&&(h=f)}1!==Number(c)&&1!==Number(p)||("idType"===u||"id"===u||"idValidType"===u||"idValidEndTime"===u||"idValidStartTime"===u?(e=e||{},e[u]=h):"socialInsAddr"===u||"socialInsDetail"===u||"socialInsPost"===u||"socialInsTel"===u?(i=i||{},i[u]=h):"residentAddr"===u||"residentDetail"===u||"residentPost"===u||"residentTel"===u?(n=n||{},n[u]=h):"officeAddr"===u||"officeDetail"===u||"officePost"===u||"officeTel"===u?(r=r||{},r[u]=h):"companyIdType"===u||"companyId"===u?(s=s||{},s[u]=h):"detail"===u?(l=l||{},l[u]=h):o[u]=h)}return e&&(o.certificate=e),i&&(o.socialIns=i),n&&(o.resident=n),r&&(o.office=r),s&&(o.companyCertificate=s),l&&(o.companyAddress=l),o};if(n.plan&&(r=d(n.plan)),o&&(f.applicant={},o&&(f.applicant=d(o))),s||r){f.insureds=[];for(var g=s||[""],y=0;y<g.length;y++){var v=g[y],m=null,_={};v&&(m=d(v)),m&&(_.insured=m),r&&(_.plan=r),f.insureds.push(_)}}if(u&&(f.hctext=d(u)),c&&(f.apphctext=d(c)),l&&(f.hcpics=d(l)),p&&(f.apphcpics=d(p)),h){f.makeup={};for(var x=h||[""],b=0;b<x.length;b++){var w=x[b],S=null;w&&(S=d(w)),S&&(f.makeup=R()(f.makeup,S))}}return f}i.d(e,"F",function(){return et}),i.d(e,"v",function(){return it}),e.d=n,e.c=r,e.b=o,e.o=a,e.z=s,e.x=l,e.y=u,e.p=h,e.w=c,e.q=p,e.A=f,e.r=d,e.s=g,e.a=y,e.E=v,e.u=m,e.g=_,e.e=x,e.f=b,e.h=w,e.B=S,e.n=T,e.C=M,e.l=C,e.t=I,e.D=A,e.k=k,e.m=D,e.j=P,e.i=L;var E=i(28),R=i.n(E),N=i(73),z=i.n(N),B=i(54),F=i.n(B),H="undefined"!=typeof window,V=H&&window.navigator.userAgent.toLowerCase(),Y=V&&/msie|trident/.test(V),X=V&&V.indexOf("msie 9.0")>0,W=V&&V.indexOf("edge/")>0,G=V&&V.indexOf("android")>0,U=V&&/iphone|ipad|ipod|ios/.test(V),j=V&&/chrome\/\d+/.test(V)&&!W,q=V&&/MicroMessenger/i.test(V),Z=V&&/wxwork/i.test(V),K=V&&/mucxiaoyusan/i.test(V),Q=V&&/muckacabao/i.test(V),J=V&&/mucyanxuan/i.test(V),$=K||Q,tt=V&&/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(V),et={isIE:Y,isMobile:tt,isIE9:X,isEdge:W,isAndroid:G,isIOS:U,isChrome:j,isWx:q,isWxWork:Z,isApp:$,isXysApp:K,isKcbApp:Q,isYxApp:J},it=/MucWebAutoTester/.test(window.navigator.userAgent)},60:function(t,e){},61:function(t,e,i){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var r=i(75),o=i.n(r),a=i(92),s=i.n(a),l=i(28),u=i.n(l),h=i(95),c=i.n(h),p=c.a,f=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,g=function(){try{if(!u.a)return!1;var t=new String("abc");if(t[5]="de","5"===s()(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==s()(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===o()(u()({},n)).join("")}catch(t){return!1}}()?u.a:function(t,e){for(var i,r,o=n(t),a=1;a<arguments.length;a++){i=Object(arguments[a]);for(var s in i)f.call(i,s)&&(o[s]=i[s]);if(p){r=p(i);for(var l=0;l<r.length;l++)d.call(i,r[l])&&(o[r[l]]=i[r[l]])}}return o};e.a=g},64:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},65:function(t,e,i){var n=i(29),r=i(30);t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),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)}}},66:function(t,e,i){"use strict";var n=i(43),r=i(19),o=i(26),a={};i(7)(a,i(3)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},67:function(t,e,i){var n=i(8),r=i(9),o=i(14);t.exports=i(4)?Object.defineProperties:function(t,e){r(t);for(var i,a=o(e),s=a.length,l=0;s>l;)n.f(t,i=a[l++],e[i]);return t}},68:function(t,e,i){var n=i(11),r=i(56),o=i(69);t.exports=function(t){return function(e,i,a){var s,l=n(e),u=r(l.length),h=o(a,u);if(t&&i!=i){for(;u>h;)if((s=l[h++])!=s)return!0}else for(;u>h;h++)if((t||h in l)&&l[h]===i)return t||h||0;return!t&&-1}}},69:function(t,e,i){var n=i(29),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},7:function(t,e,i){var n=i(8),r=i(19);t.exports=i(4)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},70:function(t,e,i){var n=i(5),r=i(21),o=i(31)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},71:function(t,e,i){"use strict";var n=i(72),r=i(64),o=i(17),a=i(11);t.exports=i(42)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,i):"values"==e?r(0,t[i]):r(0,[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},72:function(t,e){t.exports=function(){}},73:function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=i(83),o=n(r),a=i(85),s=n(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)}},74:function(t,e,i){var n=i(20)("meta"),r=i(10),o=i(5),a=i(8).f,s=0,l=Object.isExtensible||function(){return!0},u=!i(12)(function(){return l(Object.preventExtensions({}))}),h=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},c=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[n].i},p=function(t,e){if(!o(t,n)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[n].w},f=function(t){return u&&d.NEED&&l(t)&&!o(t,n)&&h(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:p,onFreeze:f}},75:function(t,e,i){t.exports={default:i(90),__esModule:!0}},76:function(t,e,i){var n=i(25);t.exports=Array.isArray||function(t){return"Array"==n(t)}},77:function(t,e,i){var n=i(0),r=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},78:function(t,e,i){i(79),t.exports=i(0).Object.assign},79:function(t,e,i){var n=i(13);n(n.S+n.F,"Object",{assign:i(80)})},8:function(t,e,i){var n=i(9),r=i(45),o=i(34),a=Object.defineProperty;e.f=i(4)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},80:function(t,e,i){"use strict";var n=i(4),r=i(14),o=i(35),a=i(22),s=i(21),l=i(44),u=Object.assign;t.exports=!u||i(12)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[i]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var i=s(t),u=arguments.length,h=1,c=o.f,p=a.f;u>h;)for(var f,d=l(arguments[h++]),g=c?r(d).concat(c(d)):r(d),y=g.length,v=0;y>v;)f=g[v++],n&&!p.call(d,f)||(i[f]=d[f]);return i}:u},81:function(t,e,i){var n=i(14),r=i(35),o=i(22);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var a,s=i(t),l=o.f,u=0;s.length>u;)l.call(t,a=s[u++])&&e.push(a);return e}},82:function(t,e,i){var n=i(22),r=i(19),o=i(11),a=i(34),s=i(5),l=i(45),u=Object.getOwnPropertyDescriptor;e.f=i(4)?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(!n.f.call(t,e),t[e])}},83:function(t,e,i){t.exports={default:i(84),__esModule:!0}},84:function(t,e,i){i(51),i(52),t.exports=i(36).f("iterator")},85:function(t,e,i){t.exports={default:i(86),__esModule:!0}},86:function(t,e,i){i(50),i(60),i(87),i(88),t.exports=i(0).Symbol},87:function(t,e,i){i(37)("asyncIterator")},88:function(t,e,i){i(37)("observable")},9:function(t,e,i){var n=i(10);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},90:function(t,e,i){i(91),t.exports=i(0).Object.keys},91:function(t,e,i){var n=i(21),r=i(14);i(53)("keys",function(){return function(t){return r(n(t))}})},92:function(t,e,i){t.exports={default:i(93),__esModule:!0}},93:function(t,e,i){i(94);var n=i(0).Object;t.exports=function(t){return n.getOwnPropertyNames(t)}},94:function(t,e,i){i(53)("getOwnPropertyNames",function(){return i(49).f})},95:function(t,e,i){t.exports={default:i(96),__esModule:!0}},96:function(t,e,i){i(50),t.exports=i(0).Object.getOwnPropertySymbols},97:function(t,e,i){"use strict";function n(t){var e={},i={},n={};for(var l in t)if(t.hasOwnProperty(l))if(-1!==s.indexOf(l))e[l]=t[l];else if(a.test(l)){var u=a.exec(l)[1];u=Object(o.a)(u),n[u]=t[l]}else i[l]=t[l];return e.on=Object(r.a)(n,e.on),e.props=Object(r.a)(i,e.props),e}e.a=n;var r=i(61),o=i(98),a=new RegExp(/^on(.+)/),s=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},98:function(t,e,i){"use strict";function n(t,e){var i=l(t,e);return i.charAt(0).toLowerCase()+i.slice(1)}e.a=n;var r=i(28),o=i.n(r),a=i(6),s=function(t){for(var e=!1,i=!1,n=!1,r=0;r<t.length;r++){var o=t[r];e&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(t=t.slice(0,r)+"-"+t.slice(r),e=!1,n=i,i=!0,r++):i&&n&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(t=t.slice(0,r-1)+"-"+t.slice(r-1),n=i,i=!1,e=!0):(e=o.toLowerCase()===o&&o.toUpperCase()!==o,n=i,i=o.toUpperCase()===o&&o.toLowerCase()!==o)}return t},l=function(t,e){if("string"!=typeof t&&!Object(a.o)(t))throw new TypeError("Expected the input to be `string | string[]`");e=o()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=s(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},99:function(t,e,i){"use strict";function n(t,e,i,n){var o=void 0,a=void 0,s=new t({render:function(t){var i=a&&a(t);return i&&!Object(r.o)(i)&&(i=[i]),t(e,o,i||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return s.updateRenderData=function(t,e){o=t,a=e},s.updateRenderData(i,n),s.$mount(),s.init(),s.$children[0]}e.a=n;var r=i(6)}})});
|