<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>echarts-test</title>
<script src="./echarts.min.js"></script>
</head>
<body>
<div id="main" style="width: 1000px;height:800px;"></div>
<script type="text/javascript">
//var echarts = require('echarts'); //vue 格式
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var option;
var data = [];
var dataCount = 3; //每行有多少块数据
// var startTime = +new Date();
var startTime = +new Date();
var categories = ['5教育室', '3楼会议室', '3楼办公室', '3楼接待室B', '1楼教育室'];
var types = [
{ name: '系統UI設計-椰汁茗', value: [1, 8, 9, 1], color: '#ff3b3b' },
{ name: '等微风峰', value: [1, 8, 9, 1], color: '#bd6d6c' },
{ name: '临洮', value: [1, 8, 9, 1], color: '#75d874' },
{ name: '房里', value: [1, 8, 9, 1], color: '#BABABA' },
];
//遍历Y轴(会议室)
categories.forEach(function (category, index) {
var baseTime = startTime + Math.round(Math.random() * 24); //决定矩形X轴起点
//for (var i = 0; i < dataCount; i++) {
var typeItem = types[Math.round(Math.random() * (types.length - 1))]; //随机将types其中一个录入数据数组
//var duration = Math.round(Math.random() * 10);
var duration = 1 //持续2个小时
//var duration = Math.random() * 10
data.push({ //添加数据
name: typeItem.name,
value: [index, baseTime, (baseTime += duration), duration],//index,基础时间、结束时间、持续时间
itemStyle: {
normal: {
color: typeItem.color
}
},
id: '201835020145' //自定义传值(在用户点击矩形的时候获取并与数据库交互)
});
// baseTime += Math.round(Math.random() * 24);
//}
});
function renderItem(params, api) {
var categoryIndex = api.value(0);
var start = api.coord([api.value(1), categoryIndex]);
var end = api.coord([api.value(2), categoryIndex]);
var height = api.size([0, 1])[1] * 0.7;
var rectShape = echarts.graphic.clipRectByRect(
{
x: start[0],
y: start[1] - height / 2,
width: end[0] - start[0],
height: height
},
{
x: params.coordSys.x,
y: params.coordSys.y,
width: params.coordSys.width,
height: params.coordSys.height
}
);
return (
rectShape && {
type: 'rect',
transition: ['shape'],
shape: rectShape,
style: api.style()
}
);
}
option = {
tooltip: {
formatter: function (params) {
let a = new Date(parseInt(params.value[1])).toLocaleString().replace(/:\d{1,2}$/, ' ');
let b = new Date(parseInt(params.value[2])).toLocaleString().replace(/:\d{1,2}$/, ' ');
//return params.marker + params.name + ' 时间 : ' + a + '-' + b //选中方块显示内容
let c = Number(new Date(2022, 09, 20, 08, 00, 00));
return c + '选中方块时显示的内容' //选中方块显示内容
}
},
title: {
text: '会议室占用情况',
left: 'center'
},
//下面那条可以选择范围在滑动条
dataZoom: [
{
type: 'slider',
filterMode: 'weakFilter',
showDataShadow: false,
top: 400,
labelFormatter: ''
},
{
type: 'inside',
filterMode: 'weakFilter'
}
],
grid: {
height: 310 //主要图标在高度
},
xAxis: {
min: startTime,
// scale: false,
scale: true,
axisLabel: {
formatter: function (val) {
//return val; //X轴内容
//return new Date(parseInt(val)).toLocaleString().replace(/:\d{1,2}$/,' '); //X轴内容
return Math.max(0, val - startTime) + ' hX轴内容看这里'; //X轴内容
}
}
},
// xAxis: {
// type: 'time',
// axisLabel: {
// // formatter: function (val) {
// // return val;
// // },
// color: 'rgba(255,255,255,0.4)',
// fontFamily: 'MicrosoftYaHei'
// },
// splitNumber: 5,
// },
yAxis: {
data: categories //设置Y轴文本
},
series: [
{
type: 'custom',
renderItem: renderItem,
itemStyle: { //每个矩形在央视
opacity: 0.8 //透明度
},
encode: {
x: [1, 1],
y: 0
},
data: data
}
]
};
option && myChart.setOption(option);
//矩形的点击事件(届时跳转到其他页面)
myChart.on('click', function (params) {
console.log(params.data)
});
</script>
</body>
</html>
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.echarts={})}(this,function(t){"use strict";function e(t,e){function n(){this.constructor=t}if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");tm(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}function i(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-sm)/lm;e[i]=r}return e}function r(t){for(var e in cm)t[e]&&(cm[e]=t[e])}function o(){return Sm++}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function s(t){if(null==t||"object"!=typeof t)return t;var e=t,n=dm.call(t);if("[object Array]"===n){if(!X(t)){e=[];for(var i=0,r=t.length;r>i;i++)e[i]=s(t[i])}}else if(fm[n]){if(!X(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=t[i]}}}else if(!pm[n]&&!X(t)&&!L(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==bm&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!D(e)||!D(t))return n?s(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==bm){var r=t[i],o=e[i];!D(o)||!D(r)||M(o)||M(r)||L(o)||L(r)||A(o)||A(r)||X(o)||X(r)?!n&&i in t||(t[i]=s(e[i])):l(r,o,n)}return t}function u(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=l(n,t[i],e);return n}function h(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==bm&&(t[n]=e[n]);return t}function c(t,e,n){for(var i=w(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function p(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n}return-1}function f(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function d(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else c(t,e,n)}function g(t){return t?"string"==typeof t?!1:"number"==typeof t.length:!1}function y(t,e,n){if(t&&e)if(t.forEach&&t.forEach===ym)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function v(t,e,n){if(!t)return[];if(!e)return H(t);if(t.map&&t.map===_m)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function m(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function _(t,e,n){if(!t)return[];if(!e)return H(t);if(t.filter&&t.filter===vm)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function x(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function w(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function b(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(mm.call(arguments)))}}function S(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(mm.call(arguments)))}}function M(t){return Array.isArray?Array.isArray(t):"[object Array]"===dm.call(t)}function T(t){return"function"==typeof t}function C(t){return"string"==typeof t}function I(t){return"[object String]"===dm.call(t)}function k(t){return"number"==typeof t}function D(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function A(t){return!!pm[dm.call(t)]}function P(t){return!!fm[dm.call(t)]}function L(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function O(t){return null!=t.colorStops}function R(t){return null!=t.image}function B(t){return"[object RegExp]"===dm.call(t)}function z(t){return t!==t}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;i>n;n++)if(null!=t[n])return t[n]}function N(t,e){return null!=t?t:e}function F(t,e,n){return null!=t?t:null!=e?e:n}function H(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return mm.apply(t,e)}function V(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function W(t,e){if(!t)throw new Error(e)}function G(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function U(t){t[Cm]=!0}function X(t){return t[Cm]}function Y(t){return new Im(t)}function Z(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function j(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&h(n,e),n}function q(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function K(t,e){return t.hasOwnProperty(e)}function $(){}function Q(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function J(t,e){return t[0]=e[0],t[1]=e[1],t}function te(t){return[t[0],t[1]]}function ee(t,e,n){return t[0]=e,t[1]=n,t}function ne(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function ie(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function re(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function oe(t){return Math.sqrt(ae(t))}function ae(t){return t[0]*t[0]+t[1]*t[1]}function se(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function le(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function ue(t,e){return t[0]*e[0]+t[1]*e[1]}function he(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function ce(t,e){var n=oe(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function pe(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function fe(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function de(t,e){return t[0]=-e[0],t[1]=-e[1],t}function ge(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function ye(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function ve(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function me(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function _e(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Nm);return t[n][l]}for(var u=i|1<<n,h=n+1;i&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[n][p]*_e(t,e-1,h,u,r|d,o),f++)}return o[a]=c,c}function xe(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=_e(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;8>a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*_e(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}function we(t,e,n,i,r){return be(Hm,e,i,r,!0)&&be(t,n,Hm[0],Hm[1])}function be(t,e,n,i,r){if(e.getBoundingClientRect&&im.domSupported&&!Te(e)){var o=e[Fm]||(e[Fm]={}),a=Se(e,o),s=Me(a,o,r);if(s)return s(t,n,i),!0}return!1}function Se(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;4>o;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function Me(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var 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[i]=n?xe(s,a):xe(a,s))}function Te(t){return"CANVAS"===t.nodeName.toUpperCase()}function Ce(t,e,n,i){return n=n||{},i?Ie(t,e,n):Gm&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Ie(t,e,n),n}function Ie(t,e,n){if(im.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Te(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(be(Wm,t,i,r))return n.zrX=Wm[0],void(n.zrY=Wm[1])}n.zrX=n.zrY=0}function ke(t){return t||window.event}function De(t,e,n){if(e=ke(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&Ce(t,o,e,n)}else{Ce(t,e,e,n);var a=Ae(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&Vm.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Ae(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=Math.abs(0!==i?i:n),o=i>0?-1:0>i?1:n>0?-1:1;return 3*r*o}function Pe(t,e,n,i){t.addEventListener(e,n,i)}function Le(t,e,n,i){t.removeEventListener(e,n,i)}function Oe(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Re(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Be(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ze}}function ze(){Um(this.event)}function Ee(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s?s:i.parent}return r?Zm:!0}return!1}function Ne(t,e,n){var i=t.painter;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function Fe(t){for(var e=0;t>=Jm;)e|=1&t,t>>=1;return t+e}function He(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;Ve(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function Ve(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function We(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ge(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(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[n+h])>0?a=h+1:l=h}return l}function Ue(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Xe(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function i(){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(n){var i=l[n],r=u[n],o=l[n+1],h=u[n+1];u[n]=r+h,n===c-3&&(l[n+1]=l[n+2],u[n+1]=u[n+2]),c--;var p=Ue(t[o],t,i,r,0,e);i+=p,r-=p,0!==r&&(h=Ge(t[i+r-1],t,o,h,h-1,e),0!==h&&(h>=r?a(i,r,o,h):s(i,r,o,h)))}function a(n,i,r,o){var a=0;for(a=0;i>a;a++)p[a]=t[n+a];var s=0,l=r,u=n;if(t[u++]=t[l++],0!==--o){if(1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var 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===--i){d=!0;break}while(g>(c|f));if(d)break;do{if(c=Ue(t[l],p,s,i,0,e),0!==c){for(a=0;c>a;a++)t[u+a]=p[s+a];if(u+=c,s+=c,i-=c,1>=i){d=!0;break}}if(t[u++]=t[l++],0===--o){d=!0;break}if(f=Ge(p[s],t,l,o,0,e),0!==f){for(a=0;f>a;a++)t[u+a]=t[l+a];if(u+=f,l+=f,o-=f,0===o){d=!0;break}}if(t[u++]=p[s++],1===--i){d=!0;break}g--}while(c>=t_||f>=t_);if(d)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===i)throw new Error;for(a=0;i>a;a++)t[u+a]=p[s+a]}}else for(a=0;i>a;a++)t[u+a]=p[s+a]}function s(n,i,r,o){var a=0;for(a=0;o>a;a++)p[a]=t[r+a];var s=n+i-1,l=o-1,u=r+o-1,c=0,f=0;if(t[u--]=t[s--],0!==--i){if(1===o){for(u-=i,s-=i,f=u+1,c=s+1,a=i-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===--i){v=!0;break}}else if(t[u--]=p[l--],y++,g=0,1===--o){v=!0;break}while(d>(g|y));if(v)break;do{if(g=i-Ue(p[l],t,n,i,i-1,e),0!==g){for(u-=g,s-=g,i-=g,f=u+1,c=s+1,a=g-1;a>=0;a--)t[f+a]=t[c+a];if(0===i){v=!0;break}}if(t[u--]=p[l--],1===--o){v=!0;break}if(y=o-Ge(t[s],p,0,o,o-1,e),0!==y){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===--i){v=!0;break}d--}while(g>=t_||y>=t_);if(v)break;0>d&&(d=0),d+=2}if(h=d,1>h&&(h=1),1===o){for(u-=i,s-=i,f=u+1,c=s+1,a=i-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=t_,c=0,p=[];return l=[],u=[],{mergeRuns:i,forceMergeRuns:r,pushRun:n}}function Ye(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(Jm>r)return o=He(t,n,i,e),void We(t,n,i,n+o,e);var a=Xe(t,e),s=Fe(r);do{if(o=He(t,n,i,e),s>o){var l=r;l>s&&(l=s),We(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function Ze(){r_||(r_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function je(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function qe(t){return t>-h_&&h_>t}function Ke(t){return t>h_||-h_>t}function $e(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Qe(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Je(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,f=0;if(qe(h)&&qe(c))if(qe(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(qe(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=u_(g),_=h*s+1.5*a*(-c+m),x=h*s+1.5*a*(-c-m);_=0>_?-l_(-_,f_):l_(_,f_),x=0>x?-l_(-x,f_):l_(x,f_);var d=(-s-(_+x))/(3*a);d>=0&&1>=d&&(o[f++]=d)}else{var w=(2*h*s-3*a*c)/(2*u_(h*h*h)),b=Math.acos(w)/3,S=u_(h),M=Math.cos(b),d=(-s-2*S*M)/(3*a),v=(-s+S*(M+p_*Math.sin(b)))/(3*a),T=(-s+S*(M-p_*Math.sin(b)))/(3*a);d>=0&&1>=d&&(o[f++]=d),v>=0&&1>=v&&(o[f++]=v),T>=0&&1>=T&&(o[f++]=T)}}return f}function tn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(qe(a)){if(Ke(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(qe(h))r[0]=-o/(2*a);else if(h>0){var c=u_(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 en(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,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]=i}function nn(t,e,n,i,r,o,a,s,l,u,h){var c,p,f,d,g,y=.005,v=1/0;d_[0]=l,d_[1]=u;for(var m=0;1>m;m+=.05)g_[0]=$e(t,n,r,a,m),g_[1]=$e(e,i,o,s,m),d=Om(d_,g_),v>d&&(c=m,v=d);v=1/0;for(var _=0;32>_&&!(c_>y);_++)p=c-y,f=c+y,g_[0]=$e(t,n,r,a,p),g_[1]=$e(e,i,o,s,p),d=Om(g_,d_),p>=0&&v>d?(c=p,v=d):(y_[0]=$e(t,n,r,a,f),y_[1]=$e(e,i,o,s,f),g=Om(y_,d_),1>=f&&v>g?(c=f,v=g):y*=.5);return h&&(h[0]=$e(t,n,r,a,c),h[1]=$e(e,i,o,s,c)),u_(v)}function rn(t,e,n,i,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=$e(t,n,r,a,d),y=$e(e,i,o,s,d),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function on(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function an(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function sn(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(qe(o)){if(Ke(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(qe(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=u_(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 ln(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function un(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function hn(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;d_[0]=a,d_[1]=s;for(var p=0;1>p;p+=.05){g_[0]=on(t,n,r,p),g_[1]=on(e,i,o,p);var f=Om(d_,g_);c>f&&(u=p,c=f)}c=1/0;for(var d=0;32>d&&!(c_>h);d++){var g=u-h,y=u+h;g_[0]=on(t,n,r,g),g_[1]=on(e,i,o,g);var f=Om(g_,d_);if(g>=0&&c>f)u=g,c=f;else{y_[0]=on(t,n,r,y),y_[1]=on(e,i,o,y);var v=Om(y_,d_);1>=y&&c>v?(u=y,c=v):h*=.5}}return l&&(l[0]=on(t,n,r,u),l[1]=on(e,i,o,u)),u_(c)}function cn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var p=c*h,f=on(t,n,r,p),d=on(e,i,o,p),g=f-s,y=d-l;u+=Math.sqrt(g*g+y*y),s=f,l=d}return u}function pn(t){var e=t&&v_.exec(t);if(e){var n=e[1].split(","),i=+G(n[0]),r=+G(n[1]),o=+G(n[2]),a=+G(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:Je(0,i,o,1,t,s)&&$e(0,r,a,1,s[0])}}}function fn(t){return t=Math.round(t),0>t?0:t>255?255:t}function dn(t){return t=Math.round(t),0>t?0:t>360?360:t}function gn(t){return 0>t?0:t>1?1:t}function yn(t){var e=t;return fn(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function vn(t){var e=t;return gn(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function mn(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function _n(t,e,n){return t+(e-t)*n}function xn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function wn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function bn(t,e){M_&&wn(M_,e),M_=S_.put(t,M_||e.slice())}function Sn(t,e){if(t){e=e||[];var n=S_.get(t);if(n)return wn(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in b_)return wn(e,b_[i]),bn(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),a=i.indexOf(")");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?xn(e,+l[0],+l[1],+l[2],1):xn(e,0,0,0,1);u=vn(l.pop());case"rgb":return 3!==l.length?void xn(e,0,0,0,1):(xn(e,yn(l[0]),yn(l[1]),yn(l[2]),u),bn(t,e),e);case"hsla":return 4!==l.length?void xn(e,0,0,0,1):(l[3]=vn(l[3]),Mn(l,e),bn(t,e),e);case"hsl":return 3!==l.length?void xn(e,0,0,0,1):(Mn(l,e),bn(t,e),e);default:return}}xn(e,0,0,0,1)}else{if(4===r||5===r){var h=parseInt(i.slice(1,4),16);return h>=0&&4095>=h?(xn(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseInt(i.slice(4),16)/15:1),bn(t,e),e):void xn(e,0,0,0,1)}if(7===r||9===r){var h=parseInt(i.slice(1,7),16);return h>=0&&16777215>=h?(xn(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseInt(i.slice(7),16)/255:1),bn(t,e),e):void xn(e,0,0,0,1)}}}}function Mn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=vn(t[1]),r=vn(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],xn(e,fn(255*mn(a,o,n+1/3)),fn(255*mn(a,o,n)),fn(255*mn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Tn(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===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,n,u];return null!=t[3]&&f.push(t[3]),f}}function Cn(t,e){var n=Sn(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Ln(n,4===n.length?"rgba":"rgb")}}function In(t){var e=Sn(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function kn(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=fn(_n(a[0],s[0],l)),n[1]=fn(_n(a[1],s[1],l)),n[2]=fn(_n(a[2],s[2],l)),n[3]=gn(_n(a[3],s[3],l)),n}}function Dn(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Sn(e[r]),s=Sn(e[o]),l=i-r,u=Ln([fn(_n(a[0],s[0],l)),fn(_n(a[1],s[1],l)),fn(_n(a[2],s[2],l)),gn(_n(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function An(t,e,n,i){var r=Sn(t);return t?(r=Tn(r),null!=e&&(r[0]=dn(e)),null!=n&&(r[1]=vn(n)),null!=i&&(r[2]=vn(i)),Ln(Mn(r),"rgba")):void 0}function Pn(t,e){var n=Sn(t);return n&&null!=e?(n[3]=gn(e),Ln(n,"rgba")):void 0}function Ln(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(n+=","+t[3]),e+"("+n+")"}}function On(t,e){var n=Sn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Rn(){return Ln([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}function Bn(t){return"linear"===t.type}function zn(t){return"radial"===t.type}function En(t,e,n){return(e-t)*n+t}function Nn(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=En(e[o],n[o],i);return t}function Fn(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=En(e[a][s],n[a][s],i)}return t}function Hn(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function Vn(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Wn(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Gn(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;a>l;l++)i.push(1===n?r[l]:k_.call(r[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(1===n)isNaN(i[l])&&(i[l]=r[l]);else for(var h=0;u>h;h++)isNaN(i[l][h])&&(i[l][h]=r[l][h])}}function Un(t){if(g(t)){var e=t.length;if(g(t[0])){for(var n=[],i=0;e>i;i++)n.push(k_.call(t[i]));return n}return k_.call(t)}return t}function Xn(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Yn(t){return g(t&&t[0])?2:1}function Zn(t){return t===O_||t===R_}function jn(t){return t===A_||t===P_}function qn(){return(new Date).getTime()}function Kn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function $n(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 Qn(t){t&&(t.zrByTouch=!0)}function Jn(t,e){return De(t.dom,new X_(t,e),!0)}function ti(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}function ei(t,e){var n=e.domHandlers;im.pointerEventsSupported?y(W_.pointer,function(i){ii(e,i,function(e){n[i].call(t,e)})}):(im.touchEventsSupported&&y(W_.touch,function(i){ii(e,i,function(r){n[i].call(t,r),$n(e)})}),y(W_.mouse,function(i){ii(e,i,function(r){r=ke(r),e.touching||n[i].call(t,r)})}))}function ni(t,e){function n(n){function i(i){i=ke(i),ti(t,i.target)||(i=Jn(t,i),e.domHandlers[n].call(t,i))}ii(e,n,i,{capture:!0})}im.pointerEventsSupported?y(G_.pointer,n):im.touchEventsSupported||y(G_.mouse,n)}function ii(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Pe(t.domTarget,e,n,i)}function ri(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Le(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function oi(){return[1,0,0,1,0,0]}function ai(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function si(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 li(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ui(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function hi(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*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 ci(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function pi(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function fi(t){var e=oi();return si(e,t),e}function di(t){return t>rx||-rx>t}function gi(t,e){for(var n=0;n<hx.length;n++){var i=hx[n];t[i]=e[i]}}function yi(t,e){e=e||am;var n=bx[e];n||(n=bx[e]=new w_(500));var i=n.get(t);return null==i&&(i=cm.measureText(t,e).width,n.put(t,i)),i}function vi(t,e,n,i){var r=yi(t,e),o=wi(e),a=_i(0,r,n),s=xi(0,o,i),l=new xx(a,s,r,o);return l}function mi(t,e,n,i){var r=((t||"")+"").split("\n"),o=r.length;if(1===o)return vi(r[0],e,n,i);for(var a=new xx(0,0,0,0),s=0;s<r.length;s++){var l=vi(r[s],e,n,i);0===s?a.copy(l):a.union(l)}return a}function _i(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function xi(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function wi(t){return yi("国",t)}function bi(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Si(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=bi(i[0],n.width),u+=bi(i[1],n.height),h=null,c=null;else switch(i){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 Mi(t,e,n,i,r){n=n||{};var o=[];Ai(t,"",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,a--,0>=a&&(s?l&&l():u&&u())},c=function(){a--,0>=a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p<o.length;p++){var f=o[p];h&&f.done(h),c&&f.aborted(c),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function Ti(t,e,n){for(var i=0;n>i;i++)t[i]=e[i]}function Ci(t){return g(t[0])}function Ii(t,e,n){if(g(e[n]))if(g(t[n])||(t[n]=[]),P(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Ti(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(Ci(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?Ti(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Ti(o,r,a);o.length=r.length}else t[n]=e[n]}function ki(t,e){return t===e||g(t)&&g(e)&&Di(t,e)}function Di(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;n>i;i++)if(t[i]!==e[i])return!1;return!0}function Ai(t,e,n,i,r,o,a,s){for(var l=w(i),u=r.duration,h=r.delay,c=r.additive,f=r.setToFinal,d=!D(o),y=t.animators,v=[],m=0;m<l.length;m++){var x=l[m],b=i[x];if(null!=b&&null!=n[x]&&(d||o[x]))if(!D(b)||g(b)||O(b))v.push(x);else{if(e){s||(n[x]=b,t.updateDuringAnimation(e));continue}Ai(t,x,n[x],b,r,o&&o[x],a,s)}else s||(n[x]=b,t.updateDuringAnimation(e),v.push(x))}var S=v.length;if(!c&&S)for(var M=0;M<y.length;M++){var T=y[M];if(T.targetName===e){var C=T.stopTracks(v);if(C){var I=p(y,T);y.splice(I,1)}}}if(r.force||(v=_(v,function(t){return!ki(i[t],n[t])}),S=v.length),S>0||r.force&&!a.length){var k=void 0,A=void 0,P=void 0;if(s){A={},f&&(k={});for(var M=0;S>M;M++){var x=v[M];A[x]=n[x],f?k[x]=i[x]:n[x]=i[x]}}else if(f){P={};for(var M=0;S>M;M++){var x=v[M];P[x]=Un(n[x]),Ii(n,i,x)}}var T=new N_(n,!1,!1,c?_(y,function(t){return t.targetName===e}):null);T.targetName=e,r.scope&&(T.scope=r.scope),f&&k&&T.whenWithKeys(0,k,v),P&&T.whenWithKeys(0,P,v),T.whenWithKeys(null==u?500:u,s?A:i,v).delay(h||0),t.addAnimator(T,e),a.push(T)}}function Pi(t){delete Px[t]}function Li(t){if(!t)return!1;if("string"==typeof t)return On(t,1)<Q_;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;i>r;r++)n+=On(e[r].color,1);return n/=i,Q_>n}return!1}function Oi(t,e){var n=new Lx(o(),t,e);return Px[n.id]=n,n}function Ri(t){t.dispose()}function Bi(){for(var t in Px)Px.hasOwnProperty(t)&&Px[t].dispose();Px={}}function zi(t){return Px[t]}function Ei(t,e){Ax[t]=e}function Ni(t){return t.replace(/^\s+|\s+$/g,"")}function Fi(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Hi(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 C(t)?Ni(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function Vi(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),zx),t=(+t).toFixed(e),n?t:+t}function Wi(t){return t.sort(function(t,e){return t-e}),t}function Gi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Ui(t)}function Ui(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=0>o?0:r-1-o;return Math.max(0,a-i)}function Xi(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Yi(t,e,n){if(!t[e])return 0;var i=m(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=v(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=v(o,function(t){return Math.floor(t)}),l=m(s,function(t,e){return t+e},0),u=v(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 Zi(t,e){var n=Math.max(Gi(t),Gi(e)),i=t+e;return n>zx?i:Vi(i,n)}function ji(t){var e=2*Math.PI;return(t%e+e)%e}function qi(t){return t>-Bx&&Bx>t}function Ki(t){if(t instanceof Date)return t;if(C(t)){var e=Nx.exec(t);if(!e)return new Date(0/0);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return new Date(null==t?0/0:Math.round(t))}function $i(t){return Math.pow(10,Qi(t))
}function Qi(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 Ji(t,e){var n,i=Qi(t),r=Math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function tr(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function er(t){function e(t,n,i){return t.interval[i]<n.interval[i]||t.interval[i]===n.interval[i]&&(t.close[i]-n.close[i]===(i?-1:1)||!i&&e(t,n,1))}t.sort(function(t,n){return e(t,n,0)?-1:1});for(var n=-1/0,i=1,r=0;r<t.length;){for(var o=t[r].interval,a=t[r].close,s=0;2>s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-i),n=o[s],i=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t}function nr(t){var e=parseFloat(t);return e==t&&(0!==e||!C(t)||t.indexOf("x")<=0)?e:0/0}function ir(t){return!isNaN(nr(t))}function rr(){return Math.round(9*Math.random())}function or(t,e){return 0===e?t:or(e,t%e)}function ar(t,e){return null==t?e:null==e?t:t*e/or(t,e)}function sr(t){throw new Error(t)}function lr(t,e,n){return(e-t)*n+t}function ur(t){return t instanceof Array?t:null==t?[]:[t]}function hr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function cr(t){return!D(t)||M(t)||t instanceof Date?t:t.value}function pr(t){return D(t)&&!(t instanceof Array)}function fr(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Y();y(e,function(t,n){return D(t)?void 0:void(e[n]=null)});var s=dr(t,a,n);return(i||r)&&gr(s,t,a,e),i&&yr(s,e),i||r?vr(s,e,r):o&&mr(s,e),_r(s),s}function dr(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||Mr(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function gr(t,e,n,i){y(i,function(r,o){if(r&&null!=r.id){var a=wr(r.id),s=n.get(a);if(null!=s){var l=t[s];W(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}})}function yr(t,e){y(e,function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!Mr(n)&&!Mr(o)&&xr("name",o,n))return t[r].newOption=n,void(e[i]=null)}})}function vr(t,e,n){y(e,function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||Mr(i.existing)||i.existing&&null!=e.id&&!xr("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}})}function mr(t,e){y(e,function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function _r(t){var e=Y();y(t,function(t){var n=t.existing;n&&e.set(n.id,t)}),y(t,function(t){var n=t.newOption;W(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),y(t,function(t,n){var i=t.existing,r=t.newOption,o=t.keyInfo;if(D(r)){if(o.name=null!=r.name?wr(r.name):i?i.name:Fx+n,i)o.id=wr(i.id);else if(null!=r.id)o.id=wr(r.id);else{var a=0;do o.id="\x00"+o.name+"\x00"+a++;while(e.get(o.id))}e.set(o.id,t)}})}function xr(t,e,n){var i=br(e[t],null),r=br(n[t],null);return null!=i&&null!=r&&i===r}function wr(t){return br(t,"")}function br(t,e){return null==t?e:C(t)?t:k(t)||I(t)?t+"":e}function Sr(t){var e=t.name;return!(!e||!e.indexOf(Fx))}function Mr(t){return t&&null!=t.id&&0===wr(t.id).indexOf(Hx)}function Tr(t,e,n){y(t,function(t){var i=t.newOption;D(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Cr(e,i,t.existing,n))})}function Cr(t,e,n,i){var r=e.type?e.type:n?n.subType:i.determineSubType(t,e);return r}function Ir(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?M(e.dataIndex)?v(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?M(e.name)?v(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function kr(){var t="__ec_inner_"+Wx++;return function(e){return e[t]||(e[t]={})}}function Dr(t,e,n){var i=Ar(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,i){var r=Pr(t,i,e,{useDefault:l===i,enableAll:n&&null!=n.enableAll?n.enableAll:!0,enableNone:n&&null!=n.enableNone?n.enableNone:!0});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]}),s}function Ar(t,e){var n;if(C(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Y(),o={},a=!1;return y(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n)return void(o[n]=t);var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&p(e.includeMainTypes,s)<0)){a=a||!!s;var u=r.get(s)||r.set(s,{});u[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function Pr(t,e,n,i){i=i||Gx;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||r===!1?(W(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(W(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function Lr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Or(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Rr(t){return"auto"===t?im.domSupported?"html":"richText":t||"html"}function Br(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(k(i)){var a=lr(n||0,i,r);return Vi(a,o?Math.max(Gi(n||0),Gi(i)):e)}if(C(i))return 1>r?n:i;for(var s=[],l=n,u=i,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=lr(f,d,r);s[c]=Vi(a,o?Math.max(Gi(f),Gi(d)):e)}}return s}function zr(t){var e={main:"",sub:""};if(t){var n=t.split(Ux);e.main=n[0]||"",e.sub=n[1]||""}return e}function Er(t){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Nr(t){return!(!t||!t[Yx])}function Fr(t){t.$constructor=t,t.extend=function(t){var n,i=this;return Hr(i)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},f(n,this)),h(n.prototype,t),n[Yx]=!0,n.extend=this.extend,n.superCall=Gr,n.superApply=Ur,n.superClass=i,n}}function Hr(t){return T(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Vr(t,e){t.extend=e.extend}function Wr(t){var e=["__\x00is_clz",Zx++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Gr(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Ur(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Xr(t){function e(t){var e=n[t.main];return e&&e[Xx]||(e=n[t.main]={},e[Xx]=!0),e}var n={};t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){Er(i),t.prototype.type=i;var r=zr(i);if(r.sub){if(r.sub!==Xx){var o=e(r);o[r.sub]=t}}else n[r.main]=t}return t},t.getClass=function(t,e,i){var r=n[t];if(r&&r[Xx]&&(r=e?r[e]:null),i&&!r)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var e=zr(t),i=[],r=n[e.main];return r&&r[Xx]?y(r,function(t,e){e!==Xx&&i.push(t)}):i.push(r),i},t.hasClass=function(t){var e=zr(t);return!!n[e.main]},t.getAllClassMainTypes=function(){var t=[];return y(n,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var e=zr(t),i=n[e.main];return i&&i[Xx]}}function Yr(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&p(i,s)>=0||r&&p(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function Zr(t){if("string"==typeof t){var e=$x.get(t);return e&&e.image}return t}function jr(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=$x.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!Kr(e)&&o.pending.push(a)):(e=cm.loadImage(t,qr,qr),e.__zrImageSrc=t,$x.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function qr(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Kr(t){return t&&t.width&&t.height}function $r(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=Qr(e,n,i,r);for(var a=0,s=o.length;s>a;a++)o[a]=Jr(o[a],r);return o.join("\n")}function Qr(t,e,n,i){i=i||{};var r=h({},i);r.font=e,n=N(n,"..."),r.maxIterations=N(i.maxIterations,2);var o=r.minChar=N(i.minChar,0);r.cnCharWidth=yi("国",e);var a=r.ascCharWidth=yi("a",e);r.placeholder=N(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=yi(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function Jr(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=yi(t,i);if(n>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?to(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=yi(t,i)}return""===t&&(t=e.placeholder),t}function to(t,e,n,i){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?n:i}return o}function eo(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=wi(o),l=N(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width;n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?ao(t,e.font,c,"breakAll"===i,0).lines:[];var p=n.length*l,f=N(e.height,p);if(p>f&&h){var d=Math.floor(f/l);n=n.slice(0,d)}if(t&&a&&null!=c)for(var g=Qr(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<n.length;y++)n[y]=Jr(n[y],g);for(var v=f,m=0,y=0;y<n.length;y++)m=Math.max(yi(n[y],o),m);null==c&&(c=m);var _=m;return r&&(v+=r[0]+r[2],_+=r[1]+r[3],c+=r[1]+r[3]),u&&(_=c),{lines:n,height:f,outerWidth:_,outerHeight:v,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:p,width:c}}function no(t,e){function n(t,e,n){t.width=e,t.lineHeight=n,p+=n,f=Math.max(f,e)}var i=new ew;if(null!=t&&(t+=""),!t)return i;for(var r,o=e.width,a=e.height,s=e.overflow,l="break"!==s&&"breakAll"!==s||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===s},u=Qx.lastIndex=0;null!=(r=Qx.exec(t));){var h=r.index;h>u&&io(i,t.substring(u,h),e,l),io(i,r[2],e,l,r[1]),u=Qx.lastIndex}u<t.length&&io(i,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<i.lines.length;v++){for(var m=i.lines[v],_=0,x=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&e.rich[b.styleName]||{},M=b.textPadding=S.padding,T=M?M[1]+M[3]:0,C=b.font=S.font||e.font;b.contentHeight=wi(C);var I=N(S.height,b.contentHeight);if(b.innerHeight=I,M&&(I+=M[0]+M[2]),b.height=I,b.lineHeight=F(S.lineHeight,e.lineHeight,I),b.align=S&&S.align||e.align,b.verticalAlign=S&&S.verticalAlign||"middle",y&&null!=a&&p+b.lineHeight>a){w>0?(m.tokens=m.tokens.slice(0,w),n(m,x,_),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var k=S.width,D=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))b.percentWidth=k,c.push(b),b.contentWidth=yi(b.text,C);else{if(D){var A=S.backgroundColor,P=A&&A.image;P&&(P=Zr(P),Kr(P)&&(b.width=Math.max(b.width,P.width*I/P.height)))}var L=g&&null!=o?o-x:null;null!=L&&L<b.width?!D||T>L?(b.text="",b.width=b.contentWidth=0):(b.text=$r(b.text,L-T,C,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=yi(b.text,C)):b.contentWidth=yi(b.text,C)}b.width+=T,x+=b.width,S&&(_=Math.max(_,b.lineHeight))}n(m,x,_)}i.outerWidth=i.width=N(o,f),i.outerHeight=i.height=N(a,p),i.contentHeight=p,i.contentWidth=f,d&&(i.outerWidth+=d[1]+d[3],i.outerHeight+=d[0]+d[2]);for(var v=0;v<c.length;v++){var b=c[v],O=b.percentWidth;b.width=parseInt(O,10)/100*i.width}return i}function io(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,h=l.font||n.font,c=!1;if(i){var p=l.padding,f=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var d=bi(l.width,i.width)+f;u.length>0&&d+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=d}else{var g=ao(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y<o.length;y++){var v=o[y],m=new Jx;if(m.styleName=r,m.text=v,m.isLineHolder=!v&&!s,m.width="number"==typeof l.width?l.width:a?a[y]:yi(v,h),y||c)u.push(new tw([m]));else{var _=(u[u.length-1]||(u[0]=new tw)).tokens,x=_.length;1===x&&_[0].isLineHolder?_[0]=m:(v||!x||s)&&_.push(m)}}}function ro(t){var e=t.charCodeAt(0);return e>=33&&383>=e}function oo(t){return ro(t)?nw[t]?!0:!1:!0}function ao(t,e,n,i,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=yi(p,e),d=i?!1:!oo(p);(o.length?h+f>n:r+h+f>n)?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,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 so(t,e,n){return uw.copy(t.getBoundingRect()),t.transform&&uw.applyTransform(t.transform),hw.width=e,hw.height=n,!uw.intersect(hw)}function lo(t,e,n,i,r,o){r[0]=cw(t,n),r[1]=cw(e,i),o[0]=pw(t,n),o[1]=pw(e,i)}function uo(t,e,n,i,r,o,a,s,l,u){var h=tn,c=$e,p=h(t,n,r,a,_w);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,n,r,a,_w[f]);l[0]=cw(d,l[0]),u[0]=pw(d,u[0])}p=h(e,i,o,s,xw);for(var f=0;p>f;f++){var g=c(e,i,o,s,xw[f]);l[1]=cw(g,l[1]),u[1]=pw(g,u[1])}l[0]=cw(t,l[0]),u[0]=pw(t,u[0]),l[0]=cw(a,l[0]),u[0]=pw(a,u[0]),l[1]=cw(e,l[1]),u[1]=pw(e,u[1]),l[1]=cw(s,l[1]),u[1]=pw(s,u[1])}function ho(t,e,n,i,r,o,a,s){var l=ln,u=on,h=pw(cw(l(t,n,r),1),0),c=pw(cw(l(e,i,o),1),0),p=u(t,n,r,h),f=u(e,i,o,c);a[0]=cw(t,r,p),a[1]=cw(e,o,f),s[0]=pw(t,r,p),s[1]=pw(e,o,f)}function co(t,e,n,i,r,o,a,s,l){var u=ve,h=me,c=Math.abs(r-o);if(1e-4>c%gw&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(yw[0]=dw(r)*n+t,yw[1]=fw(r)*i+e,vw[0]=dw(o)*n+t,vw[1]=fw(o)*i+e,u(s,yw,vw),h(l,yw,vw),r%=gw,0>r&&(r+=gw),o%=gw,0>o&&(o+=gw),r>o&&!a?o+=gw:o>r&&a&&(r+=gw),a){var p=o;o=r,r=p}for(var f=0;o>f;f+=Math.PI/2)f>r&&(mw[0]=dw(f)*n+t,mw[1]=fw(f)*i+e,u(s,mw,s),h(l,mw,l))}function po(t){var e=Math.round(t/Ow*1e8)/1e8;return e%2*Ow}function fo(t,e){var n=po(t[0]);0>n&&(n+=Rw);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=Rw?r=n+Rw:e&&n-r>=Rw?r=n-Rw:!e&&n>r?r=n+(Rw-po(n-r)):e&&r>n&&(r=n-(Rw-po(r-n))),t[0]=n,t[1]=r}function go(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||e-s>a&&i-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var h=l*o-a+u,c=h*h/(l*l+1);return s/2*s/2>=c}function yo(t,e,n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>i+c&&h>o+c&&h>s+c||e-c>h&&i-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>r+c&&u>a+c||t-c>u&&n-c>u&&r-c>u&&a-c>u)return!1;var p=nn(t,e,n,i,r,o,a,s,u,h,null);return c/2>=p}function vo(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||e-u>l&&i-u>l&&o-u>l||s>t+u&&s>n+u&&s>r+u||t-u>s&&n-u>s&&r-u>s)return!1;var h=hn(t,e,n,i,r,o,s,l,null);return u/2>=h}function mo(t){return t%=Nw,0>t&&(t+=Nw),t}function _o(t,e,n,i,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>n||n>h+u)return!1;if(Math.abs(i-r)%Fw<1e-4)return!0;if(o){var c=i;i=mo(r),r=mo(c)}else i=mo(i),r=mo(r);i>r&&(r+=Fw);var p=Math.atan2(l,s);return 0>p&&(p+=Fw),p>=i&&r>=p||p+Fw>=i&&r>=p+Fw}function xo(t,e,n,i,r,o){if(o>e&&o>i||e>o&&i>o)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=e>i?1:-1;(1===a||0===a)&&(s=e>i?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}function wo(t,e){return Math.abs(t-e)<Ww}function bo(){var t=Uw[0];Uw[0]=Uw[1],Uw[1]=t}function So(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||e>u&&i>u&&o>u&&s>u)return 0;var h=Je(e,i,o,s,u,Gw);if(0===h)return 0;for(var c=0,p=-1,f=void 0,d=void 0,g=0;h>g;g++){var y=Gw[g],v=0===y||1===y?.5:1,m=$e(t,n,r,a,y);l>m||(0>p&&(p=tn(e,i,o,s,Uw),Uw[1]<Uw[0]&&p>1&&bo(),f=$e(e,i,o,s,Uw[0]),p>1&&(d=$e(e,i,o,s,Uw[1]))),c+=2===p?y<Uw[0]?e>f?v:-v:y<Uw[1]?f>d?v:-v:d>s?v:-v:y<Uw[0]?e>f?v:-v:f>s?v:-v)}return c}function Mo(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||e>s&&i>s&&o>s)return 0;var l=sn(e,i,o,s,Gw);if(0===l)return 0;var u=ln(e,i,o);if(u>=0&&1>=u){for(var h=0,c=on(e,i,o,u),p=0;l>p;p++){var f=0===Gw[p]||1===Gw[p]?.5:1,d=on(t,n,r,Gw[p]);a>d||(h+=Gw[p]<u?e>c?f:-f:c>o?f:-f)}return h}var f=0===Gw[0]||1===Gw[0]?.5:1,d=on(t,n,r,Gw[0]);return a>d?0:e>o?f:-f}function To(t,e,n,i,r,o,a,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);Gw[0]=-l,Gw[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(u>=Vw-1e-4){i=0,r=Vw;var h=o?1:-1;return a>=Gw[0]+t&&a<=Gw[1]+t?h:0}if(i>r){var c=i;i=r,r=c}0>i&&(i+=Vw,r+=Vw);for(var p=0,f=0;2>f;f++){var d=Gw[f];if(d+t>a){var g=Math.atan2(s,d),h=o?1:-1;0>g&&(g=Vw+g),(g>=i&&r>=g||g+Vw>=i&&r>=g+Vw)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function Co(t,e,n,i,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===Hw.M&&d>1&&(n||(u+=xo(h,c,p,f,i,r))),y&&(h=s[d],c=s[d+1],p=h,f=c),g){case Hw.M:p=s[d++],f=s[d++],h=p,c=f;break;case Hw.L:if(n){if(go(h,c,s[d],s[d+1],e,i,r))return!0}else u+=xo(h,c,s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case Hw.C:if(n){if(yo(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=So(h,c,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case Hw.Q:if(n){if(vo(h,c,s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=Mo(h,c,s[d++],s[d++],s[d],s[d+1],i,r)||0;h=s[d++],c=s[d++];break;case Hw.A:var v=s[d++],m=s[d++],_=s[d++],x=s[d++],w=s[d++],b=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(w)*_+v,a=Math.sin(w)*x+m,y?(p=o,f=a):u+=xo(h,c,o,a,i,r);var M=(i-v)*x/_+v;if(n){if(_o(v,m,x,w,w+b,S,e,M,r))return!0}else u+=To(v,m,x,w,w+b,S,M,r);h=Math.cos(w+b)*_+v,c=Math.sin(w+b)*x+m;break;case Hw.R:p=h=s[d++],f=c=s[d++];var T=s[d++],C=s[d++];if(o=p+T,a=f+C,n){if(go(p,f,o,f,e,i,r)||go(o,f,o,a,e,i,r)||go(o,a,p,a,e,i,r)||go(p,a,p,f,e,i,r))return!0}else u+=xo(o,f,o,a,i,r),u+=xo(p,a,p,f,i,r);break;case Hw.Z:if(n){if(go(h,c,p,f,e,i,r))return!0}else u+=xo(h,c,p,f,i,r);h=p,c=f}}return n||wo(c,f)||(u+=xo(h,c,p,f,i,r)||0),0!==u}function Io(t,e,n){return Co(t,0,!1,e,n)}function ko(t,e,n,i){return Co(t,e,!0,n,i)}function Do(t){return!!(t&&"string"!=typeof t&&t.width&&t.height)}function Ao(t,e){var n,i,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?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),i+r>u&&(c=i+r,i*=u/c,r*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.arc(a+l-i,s+i,i,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+n),0!==n&&t.arc(a+n,s+n,n,Math.PI,1.5*Math.PI)}function Po(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(tb(2*i)===tb(2*r)&&(t.x1=t.x2=Oo(i,s,!0)),tb(2*o)===tb(2*a)&&(t.y1=t.y2=Oo(o,s,!0)),t):t}}function Lo(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Oo(i,s,!0),t.y=Oo(r,s,!0),t.width=Math.max(Oo(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Oo(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Oo(t,e,n){if(!e)return t;var i=tb(2*t);return(i+tb(e))%2===0?i/2:(i+(n?1:-1))/2}function Ro(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?rm+"px":t+"px":t}function Bo(t,e){for(var n=0;n<hb.length;n++){var i=hb[n],r=e[i];null!=r&&(t[i]=r)}}function zo(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Eo(t){return No(t),y(t.rich,No),t}function No(t){if(t){t.font=sb.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||lb[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||ub[n]?n:"top";var i=t.padding;i&&(t.padding=V(t.padding))}}function Fo(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ho(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Vo(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Wo(t){var e=t.text;return null!=e&&(e+=""),e}function Go(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Uo(t){return null!=t&&"none"!==t}function Xo(t){if(C(t)){var e=Db.get(t);return e||(e=Cn(t,-.1),Db.put(t,e)),e}if(O(t)){var n=h({},t);return n.colorStops=v(t.colorStops,function(t){return{offset:t.offset,color:Cn(t.color,-.1)}}),n}return t}function Yo(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Zo(t){Yo(t,"emphasis",_b)}function jo(t){t.hoverState===_b&&Yo(t,"normal",vb)}function qo(t){Yo(t,"blur",mb)}function Ko(t){t.hoverState===mb&&Yo(t,"normal",vb)}function $o(t){t.selected=!0}function Qo(t){t.selected=!1}function Jo(t,e,n){e(t,n)}function ta(t,e,n){Jo(t,e,n),t.isGroup&&t.traverse(function(t){Jo(t,e,n)})}function ea(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function na(t,e,n,i){var r=n&&p(n,"select")>=0,o=!1;if(t instanceof jw){var a=gb(t),s=r?a.selectFill||a.normalFill:a.normalFill,l=r?a.selectStroke||a.normalStroke:a.normalStroke;if(Uo(s)||Uo(l)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=h({},i),u=h({},u),u.fill=s):!Uo(u.fill)&&Uo(s)?(o=!0,i=h({},i),u=h({},u),u.fill=Xo(s)):!Uo(u.stroke)&&Uo(l)&&(o||(i=h({},i),u=h({},u)),u.stroke=Xo(l)),i.style=u}}if(i&&null==i.z2){o||(i=h({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:bb)}return i}function ia(t,e,n){if(n&&null==n.z2){n=h({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:Sb)}return n}function ra(t,e,n){var i=p(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:ea(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=h({},n),a=h({opacity:i?r:.1*o.opacity},a),n.style=a),n}function oa(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return na(this,t,e,n);if("blur"===t)return ra(this,t,n);if("select"===t)return ia(this,t,n)}return n}function aa(t){t.stateProxy=oa;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=oa),n&&(n.stateProxy=oa)}function sa(t,e){!ga(t,e)&&!t.__highByOuter&&ta(t,Zo)}function la(t,e){!ga(t,e)&&!t.__highByOuter&&ta(t,jo)}function ua(t,e){t.__highByOuter|=1<<(e||0),ta(t,Zo)}function ha(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ta(t,jo)}function ca(t){ta(t,qo)}function pa(t){ta(t,Ko)}function fa(t){ta(t,$o)}function da(t){ta(t,Qo)}function ga(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ya(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=yb(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){Ko(t)}),a&&n.push(r)),o.isBlured=!1}),y(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function va(t,e,n,i){function r(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&pa(i)}}var o=i.getModel();if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=o.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(t){var o=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!h||"series"===e&&o)){var c=i.getViewOfSeriesModel(t);if(c.group.traverse(function(t){qo(t)}),g(e))r(t.getData(),e);else if(D(e))for(var p=w(e),f=0;f<p.length;f++)r(t.getData(p[f]),e[p[f]]);l.push(t),yb(t).isBlured=!0}}),o.eachComponent(function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,o)}})}}function ma(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){yb(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){qo(t)})}}}function _a(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=Ir(r,e);o=(M(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=cb(a);va(i,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);null!=h&&va(i,h,c,n)}}}function xa(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===cb(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function wa(t,e,n){var i=cb(t),r=xa(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&ma(i.componentMainType,i.componentIndex,n),y(o,function(t){return sa(t,e)})):(va(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&ma(i.componentMainType,i.componentIndex,n),sa(t,e))}function ba(t,e,n){ya(n);var i=cb(t),r=xa(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?y(r,function(t){return la(t,e)}):la(t,e)}function Sa(t,e){if(Oa(e)){var n=e.dataType,i=t.getData(n),r=Ir(i,e);M(r)||(r=[r]),t[e.type===kb?"toggleSelect":e.type===Cb?"select":"unselect"](r,n)}}function Ma(t){var e=t.getAllData();y(e,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?fa(e):da(e)})})}function Ta(t){var e=[];return t.eachSeries(function(t){var n=t.getAllData();y(n,function(n){var i=(n.data,n.type),r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function Ca(t,e,n){Aa(t,!0),ta(t,aa),Da(t,e,n)}function Ia(t){Aa(t,!1)}function ka(t,e,n,i){i?Ia(t):Ca(t,e,n)}function Da(t,e,n){var i=cb(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}function Aa(t,e){var n=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Pa(t){return!(!t||!t.__highDownDispatcher)}function La(t){var e=db[t];return null==e&&32>=fb&&(e=db[t]=fb++),e}function Oa(t){var e=t.type;return e===Cb||e===Ib||e===kb}function Ra(t){var e=t.type;return e===Mb||e===Tb}function Ba(t){var e=gb(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}function za(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=Ab.M,c=Ab.C,p=Ab.L,f=Ab.R,d=Ab.A,g=Ab.Q;for(r=0,o=0;u>r;){switch(n=l[r++],o=r,i=0,n){case h:i=1;break;case p:i=1;break;case c:i=3;break;case g:i=2;break;case d:var y=e[4],v=e[5],m=Lb(e[0]*e[0]+e[1]*e[1]),_=Lb(e[2]*e[2]+e[3]*e[3]),x=Ob(-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++],ye(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],ye(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;i>a;a++){var w=Pb[a];w[0]=l[r++],w[1]=l[r++],ye(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}}function Ea(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Na(t,e){return(t[0]*e[0]+t[1]*e[1])/(Ea(t)*Ea(e))}function Fa(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Na(t,e))}function Ha(t,e,n,i,r,o,a,s,l,u,h){var c=l*(Eb/180),p=zb(c)*(t-n)/2+Bb(c)*(e-i)/2,f=-1*Bb(c)*(t-n)/2+zb(c)*(e-i)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=Rb(d),s*=Rb(d));var g=(r===o?-1:1)*Rb((a*a*s*s-a*a*f*f-s*s*p*p)/(a*a*f*f+s*s*p*p))||0,y=g*a*f/s,v=g*-s*p/a,m=(t+n)/2+zb(c)*y-Bb(c)*v,_=(e+i)/2+Bb(c)*y+zb(c)*v,x=Fa([1,0],[(p-y)/a,(f-v)/s]),w=[(p-y)/a,(f-v)/s],b=[(-1*p-y)/a,(-1*f-v)/s],S=Fa(w,b);if(Na(w,b)<=-1&&(S=Eb),Na(w,b)>=1&&(S=0),0>S){var M=Math.round(S/Eb*1e6)/1e6;S=2*Eb+M%2*Eb}h.addData(u,m,_,a,s,x,S,c,o)}function Va(t){var e=new Ew;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Ew.CMD,l=t.match(Nb);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(Fb)||[],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,w=void 0,b=void 0,S=void 0,M=i,T=r,C=void 0,I=void 0;switch(c){case"l":i+=f[y++],r+=f[y++],p=s.L,e.addData(p,i,r);break;case"L":i=f[y++],r=f[y++],p=s.L,e.addData(p,i,r);break;case"m":i+=f[y++],r+=f[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=f[y++],r=f[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=f[y++],p=s.L,e.addData(p,i,r);break;case"H":i=f[y++],p=s.L,e.addData(p,i,r);break;case"v":r+=f[y++],p=s.L,e.addData(p,i,r);break;case"V":r=f[y++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,f[y++],f[y++],f[y++],f[y++],f[y++],f[y++]),i=f[y-2],r=f[y-1];break;case"c":p=s.C,e.addData(p,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r,f[y++]+i,f[y++]+r),i+=f[y-2],r+=f[y-1];break;case"S":v=i,m=r,C=e.len(),I=e.data,n===s.C&&(v+=i-I[C-4],m+=r-I[C-3]),p=s.C,M=f[y++],T=f[y++],i=f[y++],r=f[y++],e.addData(p,v,m,M,T,i,r);break;case"s":v=i,m=r,C=e.len(),I=e.data,n===s.C&&(v+=i-I[C-4],m+=r-I[C-3]),p=s.C,M=i+f[y++],T=r+f[y++],i+=f[y++],r+=f[y++],e.addData(p,v,m,M,T,i,r);break;case"Q":M=f[y++],T=f[y++],i=f[y++],r=f[y++],p=s.Q,e.addData(p,M,T,i,r);break;case"q":M=f[y++]+i,T=f[y++]+r,i+=f[y++],r+=f[y++],p=s.Q,e.addData(p,M,T,i,r);break;case"T":v=i,m=r,C=e.len(),I=e.data,n===s.Q&&(v+=i-I[C-4],m+=r-I[C-3]),i=f[y++],r=f[y++],p=s.Q,e.addData(p,v,m,i,r);break;case"t":v=i,m=r,C=e.len(),I=e.data,n===s.Q&&(v+=i-I[C-4],m+=r-I[C-3]),i+=f[y++],r+=f[y++],p=s.Q,e.addData(p,v,m,i,r);break;case"A":_=f[y++],x=f[y++],w=f[y++],b=f[y++],S=f[y++],M=i,T=r,i=f[y++],r=f[y++],p=s.A,Ha(M,T,i,r,b,S,_,x,w,p,e);break;case"a":_=f[y++],x=f[y++],w=f[y++],b=f[y++],S=f[y++],M=i,T=r,i+=f[y++],r+=f[y++],p=s.A,Ha(M,T,i,r,b,S,_,x,w,p,e)}}("z"===c||"Z"===c)&&(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}function Wa(t){return null!=t.setData}function Ga(t,e){var n=Va(t),i=h({},e);return i.buildPath=function(t){if(Wa(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){za(n,t),this.dirtyShape()},i}function Ua(t,e){return new Hb(Ga(t,e))}function Xa(t,n){var i=Ga(t,n),r=function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return e(n,t),n}(Hb);return r}function Ya(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new jw(e);return a.createPathProxy(),a.buildPath=function(t){if(Wa(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Za(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,p=c*l-h*u;return eS>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function ja(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/Qb(s*s+l*l),h=u*l,c=-u*s,p=t+h,f=e+c,d=n+h,g=i+c,y=(p+d)/2,v=(f+g)/2,m=d-p,_=g-f,x=m*m+_*_,w=r-o,b=p*g-d*f,S=(0>_?-1:1)*Qb(Jb(0,w*w*x-b*b)),M=(b*_-m*S)/x,T=(-b*m-_*S)/x,C=(b*_+m*S)/x,I=(-b*m+_*S)/x,k=M-y,D=T-v,A=C-y,P=I-v;return k*k+D*D>A*A+P*P&&(M=C,T=I),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/w-1),y1:T*(r/w-1)}}function qa(t){var e;if(M(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e
}function Ka(t,e){var n,i=Jb(e.r,0),r=Jb(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,p=!!e.clockwise,f=$b(u-l),d=f>Yb&&f%Yb;if(d>eS&&(f=d),i>eS)if(f>Yb-eS)t.moveTo(h+i*jb(l),c+i*Zb(l)),t.arc(h,c,i,l,u,!p),r>eS&&(t.moveTo(h+r*jb(u),c+r*Zb(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,y=void 0,v=void 0,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=void 0,T=void 0,C=void 0,I=void 0,k=void 0,D=void 0,A=void 0,P=i*jb(l),L=i*Zb(l),O=r*jb(u),R=r*Zb(u),B=f>eS;if(B){var z=e.cornerRadius;z&&(n=qa(z),g=n[0],y=n[1],v=n[2],m=n[3]);var E=$b(i-r)/2;if(_=tS(E,v),x=tS(E,m),w=tS(E,g),b=tS(E,y),T=S=Jb(_,x),C=M=Jb(w,b),(S>eS||M>eS)&&(I=i*jb(u),k=i*Zb(u),D=r*jb(l),A=r*Zb(l),Xb>f)){var N=Za(P,L,D,A,I,k,O,R);if(N){var F=P-N[0],H=L-N[1],V=I-N[0],W=k-N[1],G=1/Zb(qb((F*V+H*W)/(Qb(F*F+H*H)*Qb(V*V+W*W)))/2),U=Qb(N[0]*N[0]+N[1]*N[1]);T=tS(S,(i-U)/(G+1)),C=tS(M,(r-U)/(G-1))}}}if(B)if(T>eS){var X=tS(v,T),Y=tS(m,T),Z=ja(D,A,P,L,i,X,p),j=ja(I,k,O,R,i,Y,p);t.moveTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),S>T&&X===Y?t.arc(h+Z.cx,c+Z.cy,T,Kb(Z.y0,Z.x0),Kb(j.y0,j.x0),!p):(X>0&&t.arc(h+Z.cx,c+Z.cy,X,Kb(Z.y0,Z.x0),Kb(Z.y1,Z.x1),!p),t.arc(h,c,i,Kb(Z.cy+Z.y1,Z.cx+Z.x1),Kb(j.cy+j.y1,j.cx+j.x1),!p),Y>0&&t.arc(h+j.cx,c+j.cy,Y,Kb(j.y1,j.x1),Kb(j.y0,j.x0),!p))}else t.moveTo(h+P,c+L),t.arc(h,c,i,l,u,!p);else t.moveTo(h+P,c+L);if(r>eS&&B)if(C>eS){var X=tS(g,C),Y=tS(y,C),Z=ja(O,R,I,k,r,-Y,p),j=ja(P,L,D,A,r,-X,p);t.lineTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),M>C&&X===Y?t.arc(h+Z.cx,c+Z.cy,C,Kb(Z.y0,Z.x0),Kb(j.y0,j.x0),!p):(Y>0&&t.arc(h+Z.cx,c+Z.cy,Y,Kb(Z.y0,Z.x0),Kb(Z.y1,Z.x1),!p),t.arc(h,c,r,Kb(Z.cy+Z.y1,Z.cx+Z.x1),Kb(j.cy+j.y1,j.cx+j.x1),p),X>0&&t.arc(h+j.cx,c+j.cy,X,Kb(j.y1,j.x1),Kb(j.y0,j.x0),!p))}else t.lineTo(h+O,c+R),t.arc(h,c,r,u,l,p);else t.lineTo(h+O,c+R)}else t.moveTo(h,c);t.closePath()}}}function $a(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,f=t.length;f>p;p++)ve(a,a,t[p]),me(s,s,t[p]);ve(a,a,i[0]),me(s,s,i[1])}for(var p=0,f=t.length;f>p;p++){var d=t[p];if(n)r=t[p?p-1:f-1],o=t[(p+1)%f];else{if(0===p||p===f-1){l.push(te(t[p]));continue}r=t[p-1],o=t[p+1]}re(u,o,r),he(u,u,e);var g=pe(d,r),y=pe(d,o),v=g+y;0!==v&&(g/=v,y/=v),he(h,u,-g),he(c,u,y);var m=ne([],d,h),_=ne([],d,c);i&&(me(m,m,a),ve(m,m,s),me(_,_,a),ve(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function Qa(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=$a(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{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])}n&&t.closePath()}}function Ja(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Qe:$e)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Qe:$e)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?an:on)(t.x1,t.cpx1,t.x2,e),(n?an:on)(t.y1,t.cpy1,t.y2,e)]}function ts(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,h=void 0,c=void 0;i?(u=N(i.duration,200),h=N(i.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)),T(c)&&(c=c(n,r)),T(u)&&(u=u(n));var p={duration:u||0,delay:c,easing:h};return p}return null}function es(t,e,n,i,r,o,a){var s,l=!1;T(r)?(a=o,o=r,r=null):D(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=ts(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.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(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function ns(t,e,n,i,r,o){es("update",t,e,n,i,r,o)}function is(t,e,n,i,r,o){es("enter",t,e,n,i,r,o)}function rs(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function os(t,e,n,i,r,o){rs(t)||es("leave",t,e,n,i,r,o)}function as(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),os(t,{style:{opacity:0}},e,n,i)}function ss(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||as(t,e,n,i)}):as(t,e,n,i)}function ls(t){return jw.extend(t)}function us(t,e){return LS(t,e)}function hs(t,e){PS[t]=e}function cs(t){return PS.hasOwnProperty(t)?PS[t]:void 0}function ps(t,e,n,i){var r=Ua(t,e);return n&&("center"===i&&(n=ds(n,r.getBoundingRect())),gs(r,n)),r}function fs(t,e,n){var i=new Jw({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(ds(e,r))}}});return i}function ds(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}function gs(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function ys(t){return Po(t.shape,t.shape,t.style),t}function vs(t){return Lo(t.shape,t.shape,t.style),t}function ms(t,e){for(var n=ai([]);t&&t!==e;)li(n,t.getLocalTransform(),n),t=t.parent;return n}function _s(t,e,n){return e&&!g(e)&&(e=ux.getLocalTransform(e)),n&&(e=pi([],e)),ye([],t,e)}function xs(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=_s(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function ws(t){return!t.isGroup}function bs(t){return null!=t.shape}function Ss(t,e,n){function i(t){var e={};return t.traverse(function(t){ws(t)&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return bs(t)&&(e.shape=h({},t.shape)),e}if(t&&e){var o=i(t);e.traverse(function(t){if(ws(t)&&t.anid){var e=o[t.anid];if(e){var i=r(t);t.attr(r(e)),ns(t,i,n,cb(t).dataIndex)}}})}}function Ms(t,e){return v(t,function(t){var n=t[0];n=DS(n,e.x),n=AS(n,e.x+e.width);var i=t[1];return i=DS(i,e.y),i=AS(i,e.y+e.height),[n,i]})}function Ts(t,e){var n=DS(t.x,e.x),i=AS(t.x+t.width,e.x+e.width),r=DS(t.y,e.y),o=AS(t.y+t.height,e.y+e.height);return i>=n&&o>=r?{x:n,y:r,width:i-n,height:o-r}:void 0}function Cs(t,e,n){var i=h({rectHover:!0},e),r=i.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf("image://")?(r.image=t.slice(8),c(r,n),new Jw(i)):ps(t.replace("path://",""),i,n,"center"):void 0}function Is(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(ks(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function ks(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,p=Ds(h,c,l,u);if(As(p))return!1;var f=t-r,d=e-o,g=Ds(f,d,l,u)/p;if(0>g||g>1)return!1;var y=Ds(f,d,h,c)/p;return 0>y||y>1?!1:!0}function Ds(t,e,n,i){return t*i-n*e}function As(t){return 1e-6>=t&&t>=-1e-6}function Ps(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=C(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&y(w(l),function(t){K(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=cb(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:c({content:i,formatterParams:s},r)}}function Ls(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Os(t,e){if(t)if(M(t))for(var n=0;n<t.length;n++)Ls(t[n],e);else Ls(t,e)}function Rs(t,e){for(var n=0;n<xb.length;n++){var i=xb[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Bs(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=T(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<xb.length;u++){var h=xb[u],c=e[h];l[h]=N(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function zs(t,e,n,i){n=n||zS;for(var r=t instanceof sb,o=!1,a=0;a<wb.length;a++){var s=e[wb[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new sb,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Bs(n,e),h=e.normal,c=!!h.getShallow("show"),p=Es(h,i&&i.normal,n,!1,!r);p.text=u.normal,r||t.setTextConfig(Ns(h,n,!1));for(var a=0;a<xb.length;a++){var f=xb[a],s=e[f];if(s){var d=l.ensureState(f),g=!!N(s.getShallow("show"),c);if(g!==c&&(d.ignore=!g),d.style=Es(s,i&&i[f],n,!0,!r),d.style.text=u[f],!r){var y=t.ensureState(f);y.textConfig=Ns(s,n,!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(),n.enableTextSetter&&(HS(l).setLabelText=function(t){var i=Bs(n,e,t);Rs(l,i)})}else l&&(l.ignore=!0);t.dirty()}function Es(t,e,n,i,r){var o={};return Fs(o,t,n,i,r),e&&h(o,e),o}function Ns(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=N(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function Fs(t,e,n,i,r){n=n||zS;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Hs(e);if(l){o={};for(var u in l)if(l.hasOwnProperty(u)){var h=e.getModel(["rich",u]);Vs(o[u]={},h,s,n,i,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),Vs(t,e,s,n,i,r,!0,!1)}function Hs(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||zS).rich;if(n){e=e||{};for(var i=w(n),r=0;r<i.length;r++){var o=i[r];e[o]=1}}t=t.parentModel}return e}function Vs(t,e,n,i,r,o,a,s){n=!r&&n||zS;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=N(e.getShallow("opacity"),n.opacity);("inherit"===u||"auto"===u)&&(u=l?l:null),("inherit"===h||"auto"===h)&&(h=l?l:null),o||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var p=N(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var f=N(e.getShallow("textBorderType"),n.textBorderType);null!=f&&(t.lineDash=f);var d=N(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=d&&(t.lineDashOffset=d),r||null!=c||s||(c=i&&i.defaultOpacity),null!=c&&(t.opacity=c),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<ES.length;g++){var y=ES[g],v=N(e.getShallow(y),n[y]);null!=v&&(t[y]=v)}for(var g=0;g<NS.length;g++){var y=NS[g],v=e.getShallow(y);null!=v&&(t[y]=v)}if(null==t.verticalAlign){var m=e.getShallow("baseline");null!=m&&(t.verticalAlign=m)}if(!a||!i.disableBox){for(var g=0;g<FS.length;g++){var y=FS[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 Ws(t,e){var n=e&&e.getModel("textStyle");return G([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}function Gs(t,e,n,i,r){function o(i){var o=Br(n,a.precision,l,u,i);a.interpolatedValue=1===i?null:o;var h=Bs({labelDataIndex:e,labelFetcher:r,defaultText:s?s(o):o+""},a.statesModels,o);Rs(t,h)}var a=HS(t);if(a.valueAnimation&&a.prevValue!==a.value){var s=a.defaultInterpolatedText,l=N(a.interpolatedValue,a.prevValue),u=a.value;t.percent=0,(null==a.prevValue?is:ns)(t,{percent:1},i,e,null,o)}}function Us(t){return[t||"",QS++].join("_")}function Xs(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=zr(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=zr(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}function Ys(t,e){function n(t){var n={},o=[];return y(t,function(a){var s=i(n,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),y(u,function(t){p(s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);p(e.successor,t)<0&&e.successor.push(a)})}),{graph:n,noEntryList:o}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return y(t,function(t){p(e,t)>=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,h={};for(y(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],f=!!h[c];f&&(i.call(r,c,p.originalDeps.slice()),delete h[c]),y(p.successor,f?a:o)}y(h,function(){var t="";throw new Error(t)})}}}function Zs(t,e){return l(l({},t,!0),e,!0)}function js(t,e){t=t.toUpperCase(),oM[t]=new $S(e),rM[t]=e}function qs(t){if(C(t)){var e=rM[t.toUpperCase()]||{};return t===eM||t===nM?s(e):l(s(e),s(rM[iM]),!1)}return l(s(t),s(rM[iM]),!1)}function Ks(t){return oM[t]}function $s(){return oM[iM]}function Qs(t,e){return t+="","0000".substr(0,e-t.length)+t}function Js(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 tl(t){return t===Js(t)}function el(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function nl(t,e,n,i){var r=Ki(t),o=r[al(n)](),a=r[sl(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[ll(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[ul(n)](),c=(h-1)%12+1,p=r[hl(n)](),f=r[cl(n)](),d=r[pl(n)](),g=i instanceof $S?i:Ks(i||aM)||$s(),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,Qs(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Qs(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Qs(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Qs(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Qs(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Qs(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Qs(d,3)).replace(/{S}/g,d+"")}function il(t,e,n,i,r){var o=null;if(C(n))o=n;else if(T(n))o=n(t.value,e,{level:t.level});else{var a=h({},pM);if(t.level>0)for(var s=0;s<gM.length;++s)a[gM[s]]="{primary|"+a[gM[s]]+"}";var l=n?n.inherit===!1?n:c(n,a):a,u=rl(t.value,r);if(l[u])o=l[u];else if(l.inherit){for(var p=yM.indexOf(u),s=p-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(M(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 nl(new Date(t.value),o,r,i)}function rl(t,e){var n=Ki(t),i=n[sl(e)]()+1,r=n[ll(e)](),o=n[ul(e)](),a=n[hl(e)](),s=n[cl(e)](),l=n[pl(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,f=p&&1===r,d=f&&1===i;return d?"year":f?"month":p?"day":c?"hour":h?"minute":u?"second":"millisecond"}function ol(t,e,n){var i=k(t)?Ki(t):t;switch(e=e||rl(t,n)){case"year":return i[al(n)]();case"half-year":return i[sl(n)]()>=6?1:0;case"quarter":return Math.floor((i[sl(n)]()+1)/4);case"month":return i[sl(n)]();case"day":return i[ll(n)]();case"half-day":return i[ul(n)]()/24;case"hour":return i[ul(n)]();case"minute":return i[hl(n)]();case"second":return i[cl(n)]();case"millisecond":return i[pl(n)]()}}function al(t){return t?"getUTCFullYear":"getFullYear"}function sl(t){return t?"getUTCMonth":"getMonth"}function ll(t){return t?"getUTCDate":"getDate"}function ul(t){return t?"getUTCHours":"getHours"}function hl(t){return t?"getUTCMinutes":"getMinutes"}function cl(t){return t?"getUTCSeconds":"getSeconds"}function pl(t){return t?"getUTCMilliseconds":"getMilliseconds"}function fl(t){return t?"setUTCFullYear":"setFullYear"}function dl(t){return t?"setUTCMonth":"setMonth"}function gl(t){return t?"setUTCDate":"setDate"}function yl(t){return t?"setUTCHours":"setHours"}function vl(t){return t?"setUTCMinutes":"setMinutes"}function ml(t){return t?"setUTCSeconds":"setSeconds"}function _l(t){return t?"setUTCMilliseconds":"setMilliseconds"}function xl(t,e,n,i,r,o,a,s){var l=new sb({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function wl(t){if(!ir(t))return C(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function bl(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 Sl(t){return null==t?"":(t+"").replace(mM,function(t,e){return _M[e]})}function Ml(t,e,n){function i(t){return t&&G(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",a="time"===e,s=t instanceof Date;if(a||s){var l=a?Ki(t):t;if(!isNaN(+l))return nl(l,o,n);if(s)return"-"}if("ordinal"===e)return I(t)?i(t):k(t)&&r(t)?t+"":"-";var u=nr(t);return r(u)?wl(u):I(t)?i(t):"boolean"==typeof t?t+"":"-"}function Tl(t,e,n){M(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=xM[o];t=t.replace(wM(a),wM(a,0))}for(var s=0;i>s;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(wM(xM[l],s),n?Sl(u):u)}return t}function Cl(t,e){var n=C(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if("html"===o)return"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:'+Sl(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Sl(i)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Il(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=Ki(e),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return t=t.replace("MM",Qs(a,2)).replace("M",a).replace("yyyy",o).replace("yy",Qs(o%100+"",2)).replace("dd",Qs(s,2)).replace("d",s).replace("hh",Qs(l,2)).replace("h",l).replace("mm",Qs(u,2)).replace("m",u).replace("ss",Qs(h,2)).replace("s",h).replace("SSS",Qs(c,3))}function kl(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Dl(t,e){return e=e||"transparent",C(t)?t:D(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function Al(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}function Pl(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var 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>i||l.newline?(o=0,h=g,a+=s+n,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+n,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+n:a=c+n)})}function Ll(t,e,n){n=vM(n||0);var i=e.width,r=e.height,o=Hi(t.left,i),a=Hi(t.top,r),s=Hi(t.right,i),l=Hi(t.bottom,r),u=Hi(t.width,i),h=Hi(t.height,r),c=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=f&&(isNaN(u)&&isNaN(h)&&(f>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=f*h),isNaN(h)&&(h=u/f)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var d=new xx(o+n[3],a+n[0],u,h);return d.margin=n,d}function Ol(t){var e=t.layoutMode||t.constructor.layoutMode;return D(e)?e:e?{type:e}:null}function Rl(t,e,n){function i(n,i){var a={},l=0,u={},h=0,c=2;if(bM(n,function(e){u[e]=t[e]}),bM(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(h!==c&&l){if(l>=c)return a;for(var p=0;p<n.length;p++){var f=n[p];if(!r(a,f)&&r(t,f)){a[f]=t[f];break}}return a}return u}function r(t,e){return t.hasOwnProperty(e)}function o(t,e){return null!=t[e]&&"auto"!==t[e]}function a(t,e,n){bM(t,function(t){e[t]=n[t]})}var s=n&&n.ignoreSize;!M(s)&&(s=[s,s]);var l=i(MM[0],0),u=i(MM[1],1);a(MM[0],t,l),a(MM[1],t,u)}function Bl(t){return zl({},t)}function zl(t,e){return e&&t&&bM(SM,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}function El(t){var e=[];return y(IM.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=v(e,function(t){return zr(t).main}),"dataset"!==t&&p(e,"dataset")<=0&&e.unshift("dataset"),e}function Nl(t){GM(t).datasetMap=Y()}function Fl(t,e,n){function i(t,e,n){for(var i=0;n>i;i++)t.push(e+i)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=Hl(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,p=GM(c).datasetMap,f=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),y(t,function(e,n){var i=D(e)?e:t[n]={name:e};"ordinal"===i.type&&null==s&&(s=n,l=r(i)),o[i.name]=[]});var d=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});return y(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=d.valueWayDim;i(o[n],l,a),i(h,l,a),d.valueWayDim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{var l=d.categoryWayDim;i(o[n],l,a),i(h,l,a),d.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function Hl(t){var e=t.get("data",!0);return e?void 0:Pr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Gx).models[0]}function Vl(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Pr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Gx).models:[]}function Wl(t,e){return Gl(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Gl(t,e,n,i,r,o){function a(t){var e=C(t);return null!=t&&isFinite(t)&&""!==t?e?WM.Might:WM.Not:e&&"-"!==t?WM.Must:void 0}var s,l=5;if(P(t))return WM.Not;var u,h;if(i){var c=i[o];D(c)?(u=c.name,h=c.type):C(c)&&(u=c)}if(null!=h)return"ordinal"===h?WM.Must:WM.Not;if(e===BM){var p=t;if(n===VM){for(var f=p[o],d=0;d<(f||[]).length&&l>d;d++)if(null!=(s=a(f[r+d])))return s}else for(var d=0;d<p.length&&l>d;d++){var g=p[r+d];if(g&&null!=(s=a(g[o])))return s}}else if(e===zM){var y=t;if(!u)return WM.Not;for(var d=0;d<y.length&&l>d;d++){var v=y[d];if(v&&null!=(s=a(v[u])))return s}}else if(e===EM){var m=t;if(!u)return WM.Not;var f=m[u];if(!f||P(f))return WM.Not;for(var d=0;d<f.length&&l>d;d++)if(null!=(s=a(f[d])))return s}else if(e===RM)for(var _=t,d=0;d<_.length&&l>d;d++){var v=_[d],x=cr(v);if(!M(x))return WM.Not;if(null!=(s=a(x[o])))return s}return WM.Not}function Ul(t,e,n){var i=UM.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}function Xl(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function Yl(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&i?Xl(i,a):n;if(h=h||n,h&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}function Zl(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function jl(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function ql(t,e){var n=t.color&&!t.colorLayer;y(e,function(e,i){"colorLayer"===i&&n||IM.hasClass(i)||("object"==typeof e?t[i]=t[i]?l(t[i],e,!1):s(e):null==t[i]&&(t[i]=e))})}function Kl(t,e,n){if(M(e)){var i=Y();return y(e,function(t){if(null!=t){var e=br(t,null);null!=e&&i.set(t,!0)}}),_(n,function(e){return e&&i.get(e[t])})}var r=br(e,null);return _(n,function(e){return e&&null!=r&&e[t]===r})}function $l(t,e){return e.hasOwnProperty("subType")?_(t,function(t){return t&&t.subType===e.subType}):t}function Ql(t){var e=Y();return t&&y(ur(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Jl(t,e,n){function i(t){y(e,function(e){e(t,n)})}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&&M(h)&&y(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),i(o),y(u,function(t){return i(t)}),y(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function tu(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return y(t,function(t,e){var n=e.match(aT);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();eu(i[a],t,o)||(r=!1)}}),r}function eu(t,e,n){return"min"===n?t>=e:"max"===n?e>=t:t===e}function nu(t,e){return t.join(",")===e.join(",")}function iu(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=hT.length;i>n;n++){var r=hT[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?l(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?l(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function ru(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,c(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function ou(t){ru(t,"itemStyle"),ru(t,"lineStyle"),ru(t,"areaStyle"),ru(t,"label"),ru(t,"labelLine"),ru(t,"upperLabel"),ru(t,"edgeLabel")}function au(t,e){var n=uT(t)&&t[e],i=uT(n)&&n.textStyle;if(i)for(var r=0,o=Vx.length;o>r;r++){var a=Vx[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function su(t){t&&(ou(t),au(t,"label"),t.emphasis&&au(t.emphasis,"label"))}function lu(t){if(uT(t)){iu(t),ou(t),au(t,"label"),au(t,"upperLabel"),au(t,"edgeLabel"),t.emphasis&&(au(t.emphasis,"label"),au(t.emphasis,"upperLabel"),au(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(iu(e),su(e));var n=t.markLine;n&&(iu(n),su(n));var i=t.markArea;i&&su(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!P(o))for(var a=0;a<o.length;a++)su(o[a]);y(t.categories,function(t){ou(t)})}if(r&&!P(r))for(var a=0;a<r.length;a++)su(r[a]);if(e=t.markPoint,e&&e.data)for(var s=e.data,a=0;a<s.length;a++)su(s[a]);if(n=t.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)M(l[a])?(su(l[a][0]),su(l[a][1])):su(l[a]);"gauge"===t.type?(au(t,"axisLabel"),au(t,"title"),au(t,"detail")):"treemap"===t.type?(ru(t.breadcrumb,"itemStyle"),y(t.levels,function(t){ou(t)})):"tree"===t.type&&ou(t.leaves)}}function uu(t){return M(t)?t:t?[t]:[]}function hu(t){return(M(t)?t[0]:t)||{}}function cu(t,e){lT(uu(t.series),function(t){uT(t)&&lu(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),lT(n,function(e){lT(uu(t[e]),function(t){t&&(au(t,"axisLabel"),au(t.axisPointer,"label"))})}),lT(uu(t.parallel),function(t){var e=t&&t.parallelAxisDefault;au(e,"axisLabel"),au(e&&e.axisPointer,"label")}),lT(uu(t.calendar),function(t){ru(t,"itemStyle"),au(t,"dayLabel"),au(t,"monthLabel"),au(t,"yearLabel")}),lT(uu(t.radar),function(t){au(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)}),lT(uu(t.geo),function(t){uT(t)&&(su(t),lT(uu(t.regions),function(t){su(t)}))}),lT(uu(t.timeline),function(t){su(t),ru(t,"label"),ru(t,"itemStyle"),ru(t,"controlStyle",!0);var e=t.data;M(e)&&y(e,function(t){D(t)&&(ru(t,"label"),ru(t,"itemStyle"))})}),lT(uu(t.toolbox),function(t){ru(t,"iconStyle"),lT(t.feature,function(t){ru(t,"iconStyle")})}),au(hu(t.axisPointer),"label"),au(hu(t.tooltip).axisPointer,"label")}function pu(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&(i=i&&i[n[r]],null!=i);r++);return i}function fu(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function du(t){t&&y(cT,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}function gu(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<fT.length;n++){var i=fT[n][1],r=fT[n][0];null!=e[i]&&(e[r]=e[i])}}function yu(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function vu(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function mu(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function _u(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&_u(t[n].children,e)}function xu(t,e){cu(t,e),t.series=ur(t.series),y(t.series,function(t){if(D(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),yu(t.label);var n=t.data;if(n&&!P(n))for(var i=0;i<n.length;i++)yu(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=pu(t,"pointer.color");null!=r&&fu(t,"itemStyle.color",r)}else if("bar"===e){gu(t),gu(t.backgroundStyle),gu(t.emphasis);var n=t.data;if(n&&!P(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(gu(n[i]),gu(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),vu(t),_u(t.data,vu)}else"graph"===e||"sankey"===e?mu(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&c(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),du(t)}}),t.dataRange&&(t.visualMap=t.dataRange),y(pT,function(e){var n=t[e];n&&(M(n)||(n=[n]),y(n,function(t){du(t)}))})}function wu(t){var e=Y();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(bu)}function bu(t){y(t,function(e,n){var i=[],r=[0/0,0/0],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c=a.get(e.stackedDimension,h);if(isNaN(c))return r;var p,f;s?f=a.getRawIndex(h):p=a.get(e.stackedByDimension,h);for(var d=0/0,g=n-1;g>=0;g--){var y=t[g];if(s||(f=y.data.rawIndexOf(y.stackedByDimension,p)),f>=0){var v=y.data.getByRawIndex(y.stackResultDimension,f);if("all"===l||"positive"===l&&v>0||"negative"===l&&0>v||"samesign"===l&&c>=0&&v>0||"samesign"===l&&0>=c&&0>v){c=Zi(c,v),d=v;break}}}return i[0]=c,i[1]=d,i})})}function Su(t){return t instanceof dT}function Mu(t,e,n){n=n||Iu(t);var i=e.seriesLayoutBy,r=ku(t,n,i,e.sourceHeader,e.dimensions),o=new dT({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:s(e)});return o}function Tu(t){return new dT({data:t,sourceFormat:P(t)?NM:RM})
}function Cu(t){return new dT({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:s(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Iu(t){var e=FM;if(P(t))e=NM;else if(M(t)){0===t.length&&(e=BM);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(M(r)){e=BM;break}if(D(r)){e=zM;break}}}}else if(D(t))for(var o in t)if(K(t,o)&&g(t[o])){e=EM;break}return e}function ku(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Au(r),startIndex:a,dimensionsDetectedCount:o};if(e===BM){var s=t;"auto"===i||null==i?Pu(function(t){null!=t&&"-"!==t&&(C(t)?null==a&&(a=1):a=0)},n,s,10):a=k(i)?i:i?1:0,r||1!==a||(r=[],Pu(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===VM?s.length:s[0]?s[0].length:null}else if(e===zM)r||(r=Du(t));else if(e===EM)r||(r=[],y(t,function(t,e){r.push(e)}));else if(e===RM){var l=cr(t[0]);o=M(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Au(r),dimensionsDetectedCount:o}}function Du(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e){var i=[];return y(e,function(t,e){i.push(e)}),i}}function Au(t){if(t){var e=Y();return v(t,function(t){t=D(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function Pu(t,e,n,i){if(e===VM)for(var r=0;r<n.length&&i>r;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&i>r;r++)t(o[r],r)}function Lu(t){var e=t.sourceFormat;return e===zM||e===EM}function Ou(t,e){var n=vT[zu(t,e)];return n}function Ru(t,e){var n=_T[zu(t,e)];return n}function Bu(t){var e=wT[t];return e}function zu(t,e){return t===BM?t+"_"+e:t}function Eu(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return Bu(o)(i,a,s)}var l=i;return o===RM&&(l=cr(i)),l}}}function Nu(t){var e,n;return D(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Fu(t){return new MT(t)}function Hu(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||k(t)||null==t||"-"===t||(t=+Ki(t)),null==t||""===t?0/0:+t)}function Vu(t,e){var n=new kT,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==HM&&sr(a);var s=[],l={},u=t.dimensionsDefine;if(u)y(u,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r="";K(l,n)&&sr(r),l[n]=i}});else for(var h=0;h<t.dimensionsDetectedCount;h++)s.push({index:h});var c=Ou(r,HM);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,s,t)},n.getRawData=Tm(Wu,null,t)),n.cloneRawData=Tm(Gu,null,t);var p=Ru(r,HM);n.count=Tm(p,null,i,o,s);var f=Bu(r);n.retrieveValue=function(t,e){var n=c(i,o,s,t);return d(n,e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?f(t,e,n.name):void 0}};return n.getDimensionInfo=Tm(Uu,null,s,l),n.cloneAllDimensionInfo=Tm(Xu,null,s),n}function Wu(t){var e=t.sourceFormat;if(!qu(e)){var n="";sr(n)}return t.data}function Gu(t){var e=t.sourceFormat,n=t.data;if(!qu(e)){var i="";sr(i)}if(e===BM){for(var r=[],o=0,a=n.length;a>o;o++)r.push(n[o].slice());return r}if(e===zM){for(var r=[],o=0,a=n.length;a>o;o++)r.push(h({},n[o]));return r}}function Uu(t,e,n){return null!=n?k(n)||!isNaN(n)&&!K(e,n)?t[n]:K(e,n)?e[n]:void 0:void 0}function Xu(t){return s(t)}function Yu(t){t=s(t);var e=t.type,n="";e||sr(n);var i=e.split(":");2!==i.length&&sr(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,DT.set(e,t)}function Zu(t,e,n){var i=ur(t),r=i.length,o="";r||sr(o);for(var a=0,s=r;s>a;a++){var l=i[a];e=ju(l,e,n,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function ju(t,e){var n="";e.length||sr(n),D(t)||sr(n);var i=t.type,r=DT.get(i);r||sr(n);var o=v(e,function(t){return Vu(t,r)}),a=ur(r.transform({upstream:o[0],upstreamList:o,config:s(t.config)}));return v(a,function(t,n){var i="";D(t)||sr(i),t.data||sr(i);var r=Iu(t.data);qu(r)||sr(i);var o,a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),o={seriesLayoutBy:HM,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:HM,sourceHeader:0,dimensions:t.dimensions};return Mu(t.data,o,null)})}function qu(t){return t===BM||t===zM}function Ku(t){return t>65535?PT:LT}function $u(){return[1/0,-1/0]}function Qu(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Ju(t,e,n,i,r){var o=BT[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}function th(t){var e=t.option.transform;e&&U(t.option.transform)}function eh(t){return"series"===t.mainType}function nh(t){throw new Error(t)}function ih(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Sl(i+"")+"px;color:"+Sl(n)+";font-weight:"+Sl(r+""),valueStyle:"font-size:"+Sl(a+"")+"px;color:"+Sl(o)+";font-weight:"+Sl(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function rh(t,e){return e.type=t,e}function oh(t){return"section"===t.type}function ah(t){return oh(t)?lh:uh}function sh(t){if(oh(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return y(t.blocks,function(t){var n=sh(t);n>=e&&(e=n+ +(i&&(!n||oh(t)&&!t.noHeader)))}),e}return 0}function lh(t,e,n,i){var r=e.noHeader,o=ch(sh(e)),a=[],s=e.blocks||[];W(!s||M(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(K(u,l)){var c=new IT(u[l],null);s.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===l&&s.reverse()}y(s,function(n,r){var s=e.valueFormatter,l=ah(n)(s?h(h({},t),{valueFormatter:s}):t,n,r>0?o.html:0,i);null!=l&&a.push(l)});var p="richText"===t.renderMode?a.join(o.richText):ph(a.join(""),r?n:o.html);if(r)return p;var f=Ml(e.header,"ordinal",t.useUTC),d=ih(i,t.renderMode).nameStyle;return"richText"===t.renderMode?gh(t,f,d)+o.richText+p:ph('<div style="'+d+";"+NT+';">'+Sl(f)+"</div>"+p,n)}function uh(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=M(t)?t:[t],v(t,function(t,e){return Ml(t,M(f)?f[e]:f,u)})};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Ml(l,"ordinal",u),f=e.valueType,d=a?[]:h(e.value),g=!s||!o,y=!s&&o,m=ih(i,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":c)+(o?"":gh(t,p,_))+(a?"":yh(t,d,g,y,x)):ph((s?"":c)+(o?"":fh(p,!s,_))+(a?"":dh(d,g,y,x)),n)}}function hh(t,e,n,i,r,o){if(t){var a=ah(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function ch(t){return{html:FT[t],richText:HT[t]}}function ph(t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+NT+';">'+t+n+"</div>"}function fh(t,e,n){var i=e?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+Sl(t)+"</span>"}function dh(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=M(t)?t:[t],'<span style="'+o+";"+i+'">'+v(t,function(t){return Sl(t)}).join(" ")+"</span>"}function gh(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function yh(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(M(e)?e.join(" "):e,o)}function vh(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return Dl(i)}function mh(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}function _h(t){var e,n,i,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=M(c),f=vh(o,a);if(h>1||p&&!h){var d=xh(c,o,a,u,f);e=d.inlineValues,n=d.inlineValueTypes,i=d.blocks,r=d.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Eu(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=Sr(o),v=y&&o.name||"",m=l.getName(a),_=s?v:m;return rh("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[rh("nameValue",{markerType:"item",markerColor:f,name:_,noName:!G(_),value:e,valueType:n})].concat(i||[])})}function xh(t,e,n,i,r){function o(t,e){var n=a.getDimensionInfo(e);n&&n.otherDims.tooltip!==!1&&(s?h.push(rh("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=m(t,function(t,e,n){var i=a.getDimensionInfo(n);return t=t||i&&i.tooltip!==!1&&null!=i.displayName},!1),l=[],u=[],h=[];return i.length?y(i,function(t){o(Eu(a,n,t),t)}):y(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function wh(t,e){return t.getName(e)||t.getId(e)}function bh(t){var e=t.name;Sr(t)||(t.name=Sh(t)||e)}function Sh(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return y(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}function Mh(t){return t.model.getRawData().count()}function Th(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Ch}function Ch(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Ih(t,e){y(Z(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,S(kh,e))})}function kh(t,e){var n=Dh(t);return n&&n.setOutputEnd((e||this).count()),e}function Dh(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function Ah(){var t=kr();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}function Ph(t,e,n){t&&Pa(t)&&("emphasis"===e?ua:ha)(t,n)}function Lh(t,e,n){var i=Ir(t,e),r=e&&null!=e.highlightKey?La(e.highlightKey):null;null!=i?y(ur(i),function(e){Ph(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){Ph(t,n,r)})}function Oh(t){return ZT(t.model)}function Rh(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&YT(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),KT[l]}function Bh(t,e,n){function i(){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||n;l=null,o=r-(d?u:h)-f,clearTimeout(c),d?c=setTimeout(i,f):o>=0?i():c=setTimeout(i,-o),u=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){l=t},p}function zh(t,e,n,i){var r=t[e];if(r){var o=r[$T]||r,a=r[JT],s=r[QT];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=Bh(o,n,"debounce"===i),r[$T]=o,r[JT]=i,r[QT]=n}return r}}function Eh(t,e){var n=t[e];n&&n[$T]&&(n.clear&&n.clear(),t[e]=n[$T])}function Nh(t,e){var n=t.visualStyleMapper||eC[e];return n?n:(console.warn("Unkown style type '"+e+"'."),eC.itemStyle)}function Fh(t,e){var n=t.visualDrawType||nC[e];return n?n:(console.warn("Unkown style type '"+e+"'."),"fill")}function Hh(t,e){e=e||{},c(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Dx,i=new ib({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r=new sb({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 ib({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new vS({shape:{startAngle:-sC/2,endAngle:-sC/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*sC/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*sC/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}function Vh(t){t.overallReset(t.ecModel,t.api,t.payload)}function Wh(t){return t.overallProgress&&Gh}function Gh(){this.agent.dirty(),this.getDownstream().dirty()}function Uh(){this.agent&&this.agent.dirty()}function Xh(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Yh(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ur(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?v(e,function(t,e){return Zh(e)}):uC}function Zh(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function jh(t){return t.data.count()}function qh(t){qT=null;try{t(hC,cC)}catch(e){}return qT}function Kh(t,e){for(var n in e.prototype)t[n]=$}function $h(t,e,n){switch(n){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Qh(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Jh(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=Ir(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:l.getName(M(u)?u[0]:u),selected:C(i)?i:h({},i)})}})}function tc(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(Jh("map","selectchanged",e,i,t),Jh("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Jh("map","selected",e,i,t),Jh("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Jh("map","unselected",e,i,t),Jh("pie","unselected",e,i,t))})}function ec(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}function nc(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function ic(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?fs(t.slice(8),new xx(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?ps(t.slice(7),{},new xx(e,n,i,r),a?"center":"cover"):new RC({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=nc,o&&l.setColor(o),l}function rc(t){return M(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function oc(t,e){return null!=t?(M(t)||(t=[t,t]),[Hi(t[0],e[0])||0,Hi(N(t[1],t[0]),e[1])||0]):void 0}function ac(t){return isFinite(t)}function sc(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=ac(i)?i:0,r=ac(r)?r:1,o=ac(o)?o:0,a=ac(a)?a:0;var s=t.createLinearGradient(i,o,r,a);return s}function lc(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=ac(a)?a:.5,s=ac(s)?s:.5,l=l>=0&&ac(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function uc(t,e,n){for(var i="radial"===e.type?lc(t,e,n):sc(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function hc(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function cc(t){return parseInt(t,10)}function pc(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||cc(s[i])||cc(t.style[i]))-(cc(s[o])||0)-(cc(s[a])||0)|0}function fc(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:k(t)?[t]:M(t)?t:null:null}function dc(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&fc(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=v(n,function(t){return t/r}),i/=r)}return[n,i]}function gc(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function yc(t){return"string"==typeof t&&"none"!==t}function vc(t){var e=t.fill;return null!=e&&"none"!==e}function mc(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _c(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function xc(t,e,n){var i=jr(e.image,e.__image,n);if(Kr(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*km),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function wc(t,e,n,i){var r,o=gc(n),a=vc(n),s=n.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||BC,c=e.__dirty;if(!i){var p=n.fill,f=n.stroke,d=a&&!!p.colorStops,g=o&&!!f.colorStops,y=a&&!!p.image,v=o&&!!f.image,m=void 0,_=void 0,x=void 0,w=void 0,b=void 0;(d||g)&&(b=e.getBoundingRect()),d&&(m=c?uc(t,p,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=c?uc(t,f,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),y&&(x=c||!e.__canvasFillPattern?xc(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),v&&(w=c||!e.__canvasStrokePattern?xc(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:y&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:v&&(w?t.strokeStyle=w:o=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,T;t.setLineDash&&n.lineDash&&(r=dc(e),M=r[0],T=r[1]);var C=!0;(u||c&i_)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),C=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=T),i||(n.strokeFirst?(o&&_c(t,n),a&&mc(t,n)):(a&&mc(t,n),o&&_c(t,n))),M&&t.setLineDash([])}function bc(t,e,n){var i=e.__image=jr(n.image,e.__image,e,e.onload);if(i&&Kr(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(i,u,h,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,p=s-h;t.drawImage(i,u,h,c,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function Sc(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||am,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(i=dc(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(gc(n)&&t.strokeText(r,n.x,n.y),vc(n)&&t.fillText(r,n.x,n.y)):(vc(n)&&t.fillText(r,n.x,n.y),gc(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}function Mc(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){Pc(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?rw.opacity:a}(i||e.blend!==n.blend)&&(o||(Pc(t,r),o=!0),t.globalCompositeOperation=e.blend||rw.blend);for(var s=0;s<zC.length;s++){var l=zC[s];(i||e[l]!==n[l])&&(o||(Pc(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Pc(t,r),o=!0),t.shadowColor=e.shadowColor||rw.shadowColor),o}function Tc(t,e,n,i,r){var o=Lc(e,r.inHover),a=i?null:n&&Lc(n,r.inHover)||{};if(o===a)return!1;var s=Mc(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Pc(t,r),s=!0),yc(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Pc(t,r),s=!0),yc(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Pc(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Pc(t,r),s=!0),t.lineWidth=u)}for(var h=0;h<EC.length;h++){var c=EC[h],p=c[0];(i||o[p]!==a[p])&&(s||(Pc(t,r),s=!0),t[p]=o[p]||c[1])}return s}function Cc(t,e,n,i,r){return Mc(t,Lc(e,r.inHover),n&&Lc(n,r.inHover),i,r)}function Ic(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function kc(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Ic(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}function Dc(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?!0:!1}function Ac(t){var e=vc(t),n=gc(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Pc(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Lc(t,e){return e?t.__hoverStyle||t.style:t.style}function Oc(t,e){Rc(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Rc(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~e_,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||hc(o,a))&&(a&&a.length&&(Pc(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Pc(t,n),t.save(),kc(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)return void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var h=e instanceof jw&&e.autoBatch&&Ac(e.style);s||Dc(r,u.transform)?(Pc(t,n),Ic(t,e)):h||Pc(t,n);var c=Lc(e,n.inHover);e instanceof jw?(n.lastDrawType!==NC&&(l=!0,n.lastDrawType=NC),Tc(t,e,u,l,n),h&&(n.batchFill||n.batchStroke)||t.beginPath(),wc(t,e,c,h),h&&(n.batchFill=c.fill||"",n.batchStroke=c.stroke||"")):e instanceof Kw?(n.lastDrawType!==HC&&(l=!0,n.lastDrawType=HC),Tc(t,e,u,l,n),Sc(t,e,c)):e instanceof Jw?(n.lastDrawType!==FC&&(l=!0,n.lastDrawType=FC),Cc(t,e,u,l,n),bc(t,e,c)):e.getTemporalDisplayables&&(n.lastDrawType!==VC&&(l=!0,n.lastDrawType=VC),Bc(t,e,n)),h&&i&&Pc(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Bc(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;a>o;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rc(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(),Rc(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function zc(t,e){function n(t){function e(){for(var t=1,e=0,n=v.length;n>e;++e)t=ar(t,v[e]);for(var i=1,e=0,n=y.length;n>e;++e)i=ar(i,y[e].length);t*=i;var r=m*v.length*y.length;return{width:Math.max(1,Math.min(t,s.maxTileWidth)),height:Math.max(1,Math.min(r,s.maxTileHeight))}}function n(){function t(t,e,n,a,l){var u=o?1:i,h=ic(l,t*u,e*u,n*u,a*u,s.color,s.symbolKeepAspect);if(o){var c=r.painter.renderOneToVNode(h);c&&x.children.push(c)}else Oc(f,h)}f&&(f.clearRect(0,0,_.width,_.height),s.backgroundColor&&(f.fillStyle=s.backgroundColor,f.fillRect(0,0,_.width,_.height)));for(var e=0,n=0;n<g.length;++n)e+=g[n];if(!(0>=e))for(var a=-m,l=0,u=0,h=0;a<w.height;){if(l%2===0){for(var c=u/2%y.length,p=0,v=0,b=0;p<2*w.width;){for(var S=0,n=0;n<d[h].length;++n)S+=d[h][n];if(0>=S)break;if(v%2===0){var M=.5*(1-s.symbolSize),T=p+d[h][v]*M,C=a+g[l]*M,I=d[h][v]*s.symbolSize,k=g[l]*s.symbolSize,D=b/2%y[c].length;t(T,C,I,k,y[c][D])}p+=d[h][v],++b,++v,v===d[h].length&&(v=0)}++h,h===d.length&&(h=0)}a+=g[l],++u,++l,l===g.length&&(l=0)}}for(var a=[i],l=!0,u=0;u<UC.length;++u){var h=s[UC[u]];if(null!=h&&!M(h)&&!C(h)&&!k(h)&&"boolean"!=typeof h){l=!1;break}a.push(h)}var c;if(l){c=a.join(",")+(o?"-svg":"");var p=GC.get(c);p&&(o?t.svgElement=p:t.image=p)}var f,d=Nc(s.dashArrayX),g=Fc(s.dashArrayY),y=Ec(s.symbol),v=Hc(d),m=Vc(g),_=!o&&cm.createCanvas(),x=o&&{tag:"g",attrs:{},key:"dcl",children:[]},w=e();_&&(_.width=w.width*i,_.height=w.height*i,f=_.getContext("2d")),n(),l&&GC.put(c,_||x),t.image=_,t.svgElement=x,t.svgWidth=w.width,t.svgHeight=w.height}if("none"===t)return null;var i=e.getDevicePixelRatio(),r=e.getZr(),o="svg"===r.painter.type;t.dirty&&WC["delete"](t);var a=WC.get(t);if(a)return a;var s=c(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===s.backgroundColor&&(s.backgroundColor=null);var l={repeat:"repeat"};return n(l),l.rotation=s.rotation,l.scaleX=l.scaleY=o?1:1/i,WC.set(t,l),t.dirty=!1,l}function Ec(t){if(!t||0===t.length)return[["rect"]];if(C(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!C(t[n])){e=!1;break}if(e)return Ec([t]);for(var i=[],n=0;n<t.length;++n)i.push(C(t[n])?[t[n]]:t[n]);return i}function Nc(t){if(!t||0===t.length)return[[0,0]];if(k(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,i=0;i<t.length;++i)if(!k(t[i])){n=!1;break}if(n)return Nc([t]);for(var r=[],i=0;i<t.length;++i)if(k(t[i])){var e=Math.ceil(t[i]);r.push([e,e])}else{var e=v(t[i],function(t){return Math.ceil(t)});r.push(e.length%2===1?e.concat(e):e)}return r}function Fc(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(k(t)){var e=Math.ceil(t);return[e,e]}var n=v(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}function Hc(t){return v(t,function(t){return Vc(t)})}function Vc(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function Wc(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");if(n){var r=i.ensureUniqueItemVisual(t,"style");r.decal=zc(n,e)}});var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=zc(r,e)}}})}function Gc(t,e){YC[t]=e}function Uc(t){return YC[t]}function Xc(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void 0:Zc(this,t,e)}}function Yc(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Zc(this,t,e)}}function Zc(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Em.prototype[e].apply(t,n)}function jc(t,e,n){var i=!(n&&n.ssr);if(i){var r=Qc(t);if(r)return r}var o=new VI(t,e,n);return o.id="ec_"+JI++,$I[o.id]=o,i&&Lr(t,ek,o.id),NI(o),XC.trigger("afterinit",o),o}function qc(t){if(M(t)){var e=t;t=null,y(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+tk++,y(e,function(e){e.group=t})}return QI[t]=!0,t}function Kc(t){QI[t]=!1}function $c(t){C(t)?t=$I[t]:t instanceof VI||(t=Qc(t)),t instanceof VI&&!t.isDisposed()&&t.dispose()}function Qc(t){return $I[Or(t,ek)]}function Jc(t){return $I[t]}function tp(t,e){qI[t]=e}function ep(t){p(ZI,t)<0&&ZI.push(t)}function np(t,e){cp(YI,t,e,tI)}function ip(t){op("afterinit",t)}function rp(t){op("afterupdate",t)}function op(t,e){XC.on(t,e)}function ap(t,e,n){T(e)&&(n=e,e="");var i=D(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,XI[e]||(W(yI.test(i)&&yI.test(e)),UI[i]||(UI[i]={action:n,actionInfo:t}),XI[e]=i)}function sp(t,e){oT.register(t,e)}function lp(t){var e=oT.get(t);return e?e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice():void 0}function up(t,e){cp(jI,t,e,nI,"layout")}function hp(t,e){cp(jI,t,e,oI,"visual")}function cp(t,e,n,i,r){if((T(e)||D(e))&&(n=e,e=i),!(p(ik,n)>=0)){ik.push(n);var o=lC.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function pp(t,e){KI[t]=e}function fp(t){r({createCanvas:t})}function dp(t,e,n){var i=Uc("registerMap");i&&i(t,e,n)}function gp(t){var e=Uc("getMap");return e&&e(t)}function yp(t){return null==t?0:t.length||1}function vp(t){return t}function mp(t,e){var n={},i=n.encode={},r=Y(),o=[],a=[],s={};y(t.dimensions,function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;_p(i,l)[u]=e,n.isExtraCoord||(r.set(l,1),wp(n.type)&&(o[0]=e),_p(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}OM.each(function(t,e){var r=_p(i,e),o=n.otherDims[e];null!=o&&o!==!1&&(r[o]=n.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=v(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(o=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new dk(s,e),n}function _p(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function xp(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function wp(t){return!("ordinal"===t||"time"===t)}function bp(t){return t instanceof mk}function Sp(t){for(var e=Y(),n=0;n<(t||[]).length;n++){var i=t[n],r=D(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function Mp(t){var e=yk(t);return e.dimNameMap||(e.dimNameMap=Sp(t.dimensionsDefine))}function Tp(t){return t>30}function Cp(t,e){return Ip(t,e).dimensions}function Ip(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=D(n)?n:{name:n},r=new gk,o=i.name;null!=o&&null!=d.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var s=l.length;return m[t]=s,r.storeDimIndex=t,l.push(r),r}return l[e]}function i(t,e,n){null!=OM.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}Su(t)||(t=Tu(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=Y(),l=[],u=Dp(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&Tp(u),f=a===t.dimensionsDefine,d=f?Mp(t):Sp(a),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,u));for(var v=Y(g),m=new OT(u),_=0;_<m.length;_++)m[_]=-1;if(!p)for(var _=0;u>_;_++)n(_);v.each(function(t,e){var r=ur(t).slice();if(1===r.length&&!C(r[0])&&r[0]<0)return void v.set(e,!1);var o=v.set(e,[]);y(r,function(t,r){var a=C(t)?d.get(t):t;null!=a&&u>a&&(o[r]=a,i(n(a),e,r))})});var x=0;y(o,function(t){var e,r,o,a;if(C(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=h({},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(l!==!1){if(l=ur(l),!l.length)for(var p=0;p<(r&&r.length||1);p++){for(;u>x&&null!=n(x).coordDim;)x++;u>x&&l.push(x++)}y(l,function(t,s){var l=n(t);if(f&&null!=a.type&&(l.type=a.type),i(c(l,a),e,s),null==l.name&&r){var u=r[s];!D(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&c(l.otherDims,o)})}});var w=e.generateCoord,b=e.generateCoordCount,S=null!=b;b=w?b||1:0;var M=w||"value";if(p)y(l,function(t){r(t)}),l.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var T=0;u>T;T++){var I=n(T),k=I.coordDim;null==k&&(I.coordDim=Ap(M,s,S),I.coordDimIndex=0,(!w||0>=b)&&(I.isExtraCoord=!0),b--),r(I),null!=I.type||Wl(t,T)!==WM.Must&&(!I.isExtraCoord||null==I.otherDims.itemName&&null==I.otherDims.seriesName)||(I.type="ordinal")}return kp(l),new mk({source:t,dimensions:l,fullDimensionCount:u,dimensionOmitted:p})}function kp(t){for(var e=Y(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;
o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function Dp(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return y(e,function(t){var e;D(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function Ap(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var r=0;i.hasOwnProperty(t+r);)r++;t+=r}return e.set(t,!0),t}function Pp(t){var e=t.get("coordinateSystem"),n=new Ik(e),i=kk[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function Lp(t){return"category"===t.get("type")}function Op(t,e,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;Rp(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get("stack"));if(y(i,function(t,e){C(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u){h="__\x00ecstackresult_"+t.id,c="__\x00ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,d=u.type,g=0;y(i,function(t){t.coordDim===f&&g++});var v={name:h,coordDim:f,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(c,d),m.storeDimIndex=o.ensureCalculationDimension(h,d)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Rp(t){return!bp(t.schema)}function Bp(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function zp(t,e){return Bp(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Ep(t,e){var n,i=t.get("coordinateSystem"),r=oT.get(i);return e&&e.coordSysDims&&(n=v(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=xp(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function Np(t,e,n){var i,r;return n&&y(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}function Fp(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=Tu(t)):(i=r.getSource(),o=i.sourceFormat===RM);var a=Pp(e),s=Ep(e,a),l=n.useEncodeDefaulter,u=T(l)?l:l?S(Fl,s,e):null,h={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=Ip(i,h),p=Np(c.dimensions,n.createInvertedIndices,a),f=o?null:r.getSharedDataStore(c),d=Op(e,{schema:c,store:f}),g=new Ck(c,e);g.setCalculationInfo(d);var y=null!=p&&Hp(i)?function(t,e,n,i){return i===p?n:this.defaultDimValueGetter(t,e,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:f,null,y),g}function Hp(t){if(t.sourceFormat===RM){var e=Vp(t.data||[]);return!M(cr(e))}}function Vp(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}function Wp(t){return D(t)&&null!=t.value?t.value:t+""}function Gp(t){return"interval"===t.type||"log"===t.type}function Up(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=Ji(o/e,!0);null!=n&&n>a&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=Yp(a),l=r.niceTickExtent=[Vi(Math.ceil(t[0]/a)*a,s),Vi(Math.floor(t[1]/a)*a,s)];return jp(l,t),r}function Xp(t){var e=Math.pow(10,Qi(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Vi(n*e)}function Yp(t){return Gi(t)+2}function Zp(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function jp(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Zp(t,0,e),Zp(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function qp(t,e){return t>=e[0]&&t<=e[1]}function Kp(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function $p(t,e){return t*(e[1]-e[0])+e[0]}function Qp(t){return t.get("stack")||Bk+t.seriesIndex}function Jp(t){return t.dim+t.index}function tf(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<t.count;o++)e.push(c({bandWidth:r,axisKey:i,stackId:Bk+o},t));for(var a=of(e),s=[],o=0;o<t.count;o++){var l=a[i][Bk+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ef(t,e){var n=[];return e.eachSeriesByType(t,function(t){sf(t)&&n.push(t)}),n}function nf(t){var e={};y(t,function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),o=i.dim+"_"+i.index,a=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,u=s.count();u>l;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function rf(t){var e=nf(t),n=[];return y(t,function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);i=l?u/c*l:u}else{var p=t.getData();i=Math.abs(a[1]-a[0])/p.count()}var f=Hi(t.get("barWidth"),i),d=Hi(t.get("barMaxWidth"),i),g=Hi(t.get("barMinWidth")||(lf(t)?.5:1),i),y=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:f,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:Jp(o),stackId:Qp(t)})}),of(n)}function of(t){var e={};y(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=r.stacks;e[n]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var n={};return y(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=w(i).length;o=Math.max(35-4*a,15)+"%"}var s=Hi(o,r),l=Hi(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),y(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&i>e&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,f=0;y(i,function(t){t.width||(t.width=c),p=t,f+=t.width*(1+l)}),p&&(f-=p.width*l);var d=-f/2;y(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:d,width:t.width},d+=t.width*(1+l)})}),n}function af(t,e,n){if(t&&e){var i=t[Jp(e)];return null!=i&&null!=n?i[Qp(n)]:i}}function sf(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function lf(t){return t.pipelineContext&&t.pipelineContext.large}function uf(t,e,n,i){var r=Ki(e),o=Ki(n),a=function(t){return ol(r,t,i)===ol(o,t,i)},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")},f=function(){return p()&&a("millisecond")};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 f()}}function hf(t){return t/=hM,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function cf(t){var e=30*hM;return t/=e,t>6?6:t>3?3:t>2?2:1}function pf(t){return t/=uM,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function ff(t,e){return t/=e?lM:sM,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function df(t){return Ji(t,!0)}function gf(t,e,n){var i=new Date(t);switch(Js(e)){case"year":case"month":i[dl(n)](0);case"day":i[gl(n)](1);case"hour":i[yl(n)](0);case"minute":i[vl(n)](0);case"second":i[ml(n)](0),i[_l(n)](0)}return i.getTime()}function yf(t,e,n,i){function r(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();n>u&&u<=i[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}function o(t,o,a){var s=[],l=!o.length;if(!uf(Js(t),i[0],i[1],n)){l&&(o=[{value:gf(new Date(i[0]),t,n)},{value:i[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/hM/365)),f=al(n),d=fl(n);break;case"half-year":case"quarter":case"month":p=cf(e),f=sl(n),d=dl(n);break;case"week":case"half-week":case"day":p=hf(e,31),f=ll(n),d=gl(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=pf(e),f=ul(n),d=yl(n);break;case"minute":p=ff(e,!0),f=hl(n),d=vl(n);break;case"second":p=ff(e,!1),f=cl(n),d=ml(n);break;case"millisecond":p=df(e),f=pl(n),d=_l(n)}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]);return s}}for(var a=1e4,s=yM,l=0,u=[],h=[],c=0,p=0,f=0;f<s.length&&l++<a;++f){var d=Js(s[f]);if(tl(s[f])){o(s[f],u[u.length-1]||[],h);var g=s[f+1]?Js(s[f+1]):null;if(d!==g){if(h.length){p=c,h.sort(function(t,e){return t.value-e.value});for(var y=[],m=0;m<h.length;++m){var x=h[m].value;(0===m||h[m-1].value!==x)&&(y.push(h[m]),x>=i[0]&&x<=i[1]&&c++)}var w=(i[1]-i[0])/e;if(c>1.5*w&&p>w/1.5)break;if(u.push(y),c>w||t===s[f])break}h=[]}}}for(var b=_(v(u,function(t){return _(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),S=[],M=b.length-1,f=0;f<b.length;++f)for(var T=b[f],C=0;C<T.length;++C)S.push({value:T[C].value,level:M-f});S.sort(function(t,e){return t.value-e.value});for(var I=[],f=0;f<S.length;++f)(0===f||S[f].value!==S[f-1].value)&&I.push(S[f]);return I}function vf(t,e){return Vk(t,Gi(e))}function mf(t,e,n){var i=t.rawExtentInfo;return i?i:(i=new jk(t,e,n),t.rawExtentInfo=i,i)}function _f(t,e){return null==e?null:z(e)?0/0:t.parse(e)}function xf(t,e){var n=t.type,i=mf(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=ef("bar",a),l=!1;if(y(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=rf(s),h=wf(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function wf(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=af(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;y(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;y(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 bf(t,e){var n=e,i=xf(t,n),r=i.extent,o=n.get("splitNumber");t instanceof Yk&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function Sf(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Lk({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Ek({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Dk.getClass(e)||Rk)}}function Mf(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||0>n&&0>i)}function Tf(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):C(e)?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace("{value}",null!=i?i:"");return r}}(e):T(e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(Cf(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function Cf(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function If(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof Lk?r=n.count():(i=n.getTicks(),r=i.length);var a,s=t.getLabelModel(),l=Tf(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;r>h;h+=u){var c=i?i[h]:{value:o[0]+h},p=l(c,h),f=s.getTextRect(p),d=kf(f,s.get("rotate")||0);a?a.union(d):a=d}return a}}function kf(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new xx(t.x,t.y,o,a);return s}function Df(t){var e=t.get("interval");return null==e?"auto":e}function Af(t){return"category"===t.type&&0===Df(t.getLabelModel())}function Pf(t,e){var n={};return y(t.mapDimensionsAll(e),function(e){n[zp(t,e)]=!0}),w(n)}function Lf(t){return Fp(null,t)}function Of(t,e){var n=e;e instanceof $S||(n=new $S(e));var i=Sf(n);return i.setExtent(t[0],t[1]),bf(i,n),i}function Rf(t){d(t,$k)}function Bf(t,e){return e=e||{},Es(t,null,null,"normal"!==e.state)}function zf(t){return M(t)?void y(t,function(t){zf(t)}):void(p(tD,t)>=0||(tD.push(t),T(t)&&(t={install:t}),t.install(eD)))}function Ef(t,e){return Math.abs(t-e)<nD}function Nf(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=xo(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return Ef(r[0],s[0])&&Ef(r[1],s[1])||(i+=xo(r[0],r[1],s[0],s[1],e,n)),0!==i}function Ff(t,e){for(var n=0;n<t.length;n++)ye(t[n],t[n],e)}function Hf(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(ve(e,e,o),me(n,n,o))}}function Vf(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;r>s;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,n+=(o+l)*h,i+=(a+u)*h,o=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}function Wf(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return y(i,function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Uf(r,i,n);break;case"Polygon":Gf(r,i,n);break;case"MultiLineString":Gf(r,i,n);break;case"MultiPolygon":y(r,function(t,e){return Gf(t,i[e],n)})}}),e.UTF8Encoding=!1,e}function Gf(t,e,n){for(var i=0;i<t.length;i++)t[i]=Uf(t[i],e[i],n)}function Uf(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function Xf(t,e){return t=Wf(t),v(_(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new oD(o[0],o.slice(1)));break;case"MultiPolygon":y(i.coordinates,function(t){t[0]&&r.push(new oD(t[0],t.slice(1)))});break;case"LineString":r.push(new aD([i.coordinates]));break;case"MultiLineString":r.push(new aD(i.coordinates))}var a=new sD(n[e||"name"],r,n.cp);return a.properties=n,a})}function Yf(t){return"category"===t.type?jf(t):$f(t)}function Zf(t,e){return"category"===t.type?Kf(t,e):{ticks:v(t.scale.getTicks(),function(t){return t.value})}}function jf(t){var e=t.getLabelModel(),n=qf(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function qf(t,e){var n=Qf(t,"labels"),i=Df(e),r=Jf(n,i);if(r)return r;var o,a;return T(i)?o=od(t,i):(a="auto"===i?ed(t):i,o=rd(t,a)),td(n,i,{labels:o,labelCategoryInterval:a})}function Kf(t,e){var n=Qf(t,"ticks"),i=Df(e),r=Jf(n,i);if(r)return r;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),T(i))o=od(t,i,!0);else if("auto"===i){var s=qf(t,t.getLabelModel());a=s.labelCategoryInterval,o=v(s.labels,function(t){return t.tickValue})}else a=i,o=rd(t,a,!0);return td(n,i,{ticks:o,tickCategoryInterval:a})}function $f(t){var e=t.scale.getTicks(),n=Tf(t);return{labels:v(e,function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Qf(t,e){return fD(t)[e]||(fD(t)[e]=[])}function Jf(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function td(t,e,n){return t.push({key:e,value:n}),n}function ed(t){var e=fD(t).autoInterval;return null!=e?e:fD(t).autoInterval=t.calculateCategoryInterval()}function nd(t){var e=id(t),n=Tf(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),p=0,f=0;l<=o[1];l+=s){var d=0,g=0,y=mi(n({value:l}),e.font,"center","top");d=1.3*y.width,g=1.3*y.height,p=Math.max(p,d,7),f=Math.max(f,g,7)}var v=p/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=fD(t.model),w=t.getExtent(),b=x.lastAutoInterval,S=x.lastTickCount;return null!=b&&null!=S&&Math.abs(b-_)<=1&&Math.abs(S-a)<=1&&b>_&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?_=b:(x.lastTickCount=a,x.lastAutoInterval=_,x.axisExtent0=w[0],x.axisExtent1=w[1]),_}function id(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 rd(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=Tf(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=Af(t),f=s.get("showMinLabel")||p,d=s.get("showMaxLabel")||p;f&&h!==a[0]&&i(a[0]);for(var g=h;g<=a[1];g+=u)i(g);return d&&g-u!==a[1]&&i(a[1]),l}function od(t,e,n){var i=t.scale,r=Tf(t),o=[];return y(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function ad(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function sd(t,e,n,i){function r(t,e){return t=Vi(t),e=Vi(e),p?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[0]};else{var u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;y(e,function(t){t.coord-=h/2});var c=t.scale.getExtent();s=1+c[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var p=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function ld(t){var e=IM.extend(t);return IM.registerClass(e),e}function ud(t){var e=XT.extend(t);return XT.registerClass(e),e}function hd(t){var e=UT.extend(t);return UT.registerClass(e),e}function cd(t){var e=jT.extend(t);return jT.registerClass(e),e}function pd(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function fd(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*n+t,c=s*n+e;if(Math.abs(i-r)%yD<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=i;i=mo(r),r=mo(p)}else i=mo(i),r=mo(r);i>r&&(r+=yD);var f=Math.atan2(s,a);if(0>f&&(f+=yD),f>=i&&r>=f||f+yD>=i&&r>=f+yD)return l[0]=h,l[1]=c,u-n;var d=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(y-a)*(y-a)+(v-s)*(v-s);return _>m?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(_))}function dd(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,h=n-t,c=i-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 gd(t,e,n,i,r,o,a){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function yd(t,e,n){var i=gd(e.x,e.y,e.width,e.height,t.x,t.y,_D);return n.set(_D[0],_D[1]),i}function vd(t,e,n){for(var i,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 vD.M:s=h[f++],l=h[f++],o=s,a=l;break;case vD.L:g=dd(o,a,h[f],h[f+1],c,p,_D,!0),o=h[f++],a=h[f++];break;case vD.C:g=nn(o,a,h[f++],h[f++],h[f++],h[f++],h[f],h[f+1],c,p,_D),o=h[f++],a=h[f++];break;case vD.Q:g=hn(o,a,h[f++],h[f++],h[f],h[f+1],c,p,_D),o=h[f++],a=h[f++];break;case vD.A:var y=h[f++],v=h[f++],m=h[f++],_=h[f++],x=h[f++],w=h[f++];f+=1;var b=!!(1-h[f++]);i=Math.cos(x)*m+y,r=Math.sin(x)*_+v,1>=f&&(s=i,l=r);var S=(c-y)*_/m+y;g=fd(y,v,_,x,x+w,b,S,p,_D),o=Math.cos(x+w)*m+y,a=Math.sin(x+w)*_+v;break;case vD.R:s=o=h[f++],l=a=h[f++];var M=h[f++],T=h[f++];g=gd(s,l,M,T,c,p,_D);break;case vD.Z:g=dd(o,a,s,l,c,p,_D,!0),o=s,a=l}u>g&&(u=g,n.set(_D[0],_D[1]))}return u}function md(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||mD,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&pi([],h),p=e.get("length2")||0;u&&bD.copy(u);for(var f=0;f<a.length;f++){var d=a[f];pd(d,0,s,xD,SD),cx.scaleAndAdd(wD,xD,SD,p),wD.transform(c);var g=t.getBoundingRect(),y=u?u.distance(wD):t instanceof jw?vd(wD,t.path,bD):yd(wD,g,bD);l>y&&(l=y,wD.transform(h),bD.transform(h),bD.toArray(o[0]),wD.toArray(o[1]),xD.toArray(o[2]))}_d(o,e.get("minTurnAngle")),n.setShape({points:o})}}}function _d(t,e){if(180>=e&&e>0){e=e/180*Math.PI,xD.fromArray(t[0]),wD.fromArray(t[1]),bD.fromArray(t[2]),cx.sub(SD,xD,wD),cx.sub(MD,bD,wD);var n=SD.len(),i=MD.len();if(!(.001>n||.001>i)){SD.scale(1/n),MD.scale(1/i);var r=SD.dot(MD),o=Math.cos(e);if(r>o){var a=dd(wD.x,wD.y,bD.x,bD.y,xD.x,xD.y,TD,!1);CD.fromArray(TD),CD.scaleAndAdd(MD,a/Math.tan(Math.PI-e));var s=bD.x!==wD.x?(CD.x-wD.x)/(bD.x-wD.x):(CD.y-wD.y)/(bD.y-wD.y);if(isNaN(s))return;0>s?cx.copy(CD,wD):s>1&&cx.copy(CD,bD),CD.toArray(t[1])}}}}function xd(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function wd(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Lm(i[0],i[1]),o=Lm(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=ge([],i[1],i[0],a/r),l=ge([],i[1],i[2],a/o),u=ge([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h<i.length;h++)t.lineTo(i[h][0],i[h][1])}function bd(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(!r)return void(i&&t.removeTextGuideLine());for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<wb.length;l++){var u=wb[l],h=e[u],p="normal"===u;if(h){var f=h.get("show"),d=p?s:N(r.states[u]&&r.states[u].ignore,s);if(d||!N(f,a)){var g=p?i:i&&i.states[u];g&&(g.ignore=!0);continue}i||(i=new uS,t.setTextGuideLine(i),p||!s&&a||xd(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),xd(i,!1,u,h)}}if(i){c(i.style,n),i.style.fill=null;var y=o.get("showAbove"),v=t.textGuideLineConfig=t.textGuideLineConfig||{};v.showAbove=y||!1,i.buildPath=wd}}function Sd(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<xb.length;i++){var r=xb[i];n[r]=t.getModel([r,e])}return n}function Md(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=s?new CS(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}function Td(t,e,n,i,r,o){function a(){w=S.rect[e]-i,b=r-M.rect[e]-M.rect[n]}function s(t,e,n){if(0>t){var i=Math.min(e,-t);if(i>0){l(i*n,0,c);var r=i+t;0>r&&u(-r*n,1)}else u(-t*n,1)}}function l(n,i,r){0!==n&&(d=!0);for(var o=i;r>o;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function u(i,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[n],0);o.push(h),a+=h}if(a){var p=Math.min(Math.abs(i)/a,r);if(i>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 n=Math.ceil(t/(c-1)),i=0;c-1>i;i++)if(e>0?l(n,0,i+1):l(-n,c-i-1,c),t-=n,0>=t)return}var c=t.length;if(!(2>c)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p,f=0,d=!1,g=[],y=0,v=0;c>v;v++){var m=t[v],_=m.rect;p=_[e]-f,0>p&&(_[e]-=p,m.label[e]-=p,d=!0);var x=Math.max(-p,0);g.push(x),y+=x,f=_[e]+_[n]}y>0&&o&&l(-y/c,0,c);var w,b,S=t[0],M=t[c-1];return a(),0>w&&u(-w,.8),0>b&&u(b,.8),a(),s(w,b,1),s(b,w,-1),a(),0>w&&h(-w),0>b&&h(b),d}}function Cd(t,e,n,i){return Td(t,"x","width",e,n,i)}function Id(t,e,n,i){return Td(t,"y","height",e,n,i)}function kd(t){function e(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var i=new xx(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;i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05;for(var c=o.obb,p=!1,f=0;f<n.length;f++){var d=n[f];if(i.intersect(d.rect)){if(a&&d.axisAligned){p=!0;break}if(d.obb||(d.obb=new CS(d.localRect,d.transform)),c||(c=new CS(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),n.push(o))}}function Dd(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function Ad(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Dd(i&&i.shape.points)}}function Pd(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}function Ld(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e){var n=OD(e).labelManager;n||(n=OD(e).labelManager=new LD),n.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=OD(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function Od(t,e,n){var i=cm.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}function Rd(t){return t?t.__builtin__?!0:"function"!=typeof t.resize||"function"!=typeof t.refresh?!1:!0:!1}function Bd(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function zd(t){t.registerPainter("canvas",FD)}function Ed(t){t.registerComponentModel(HD),t.registerComponentView(VD)}function Nd(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Eu(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Eu(t,e,n[a]));return o.join(" ")}}function Fd(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.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 ib({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);var g=T(r)?function(t){r(t,c)}:null;is(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function Hd(t,e,n){var i=t.getArea(),r=Vi(i.r0,1),o=Vi(i.r,1),a=new iS({shape:{cx:Vi(t.cx,1),cy:Vi(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,is(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function Vd(t,e,n,i,r){return t?"polar"===t.type?Hd(t,e,n):"cartesian2d"===t.type?Fd(t,e,n,i,r):null:null}function Wd(t,e){return e=e||[0,0],v(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function Gd(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Tm(Wd,t)}}}function Ud(t,e){return e=e||[0,0],v([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function Xd(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:Tm(Ud,t)}}}function Yd(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function Zd(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Tm(Yd,t)}}}function jd(t,e){return e=e||[0,0],v(["Radius","Angle"],function(n,i){var r="get"+n+"Axis",o=this[r](),a=e[i],s=t[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l},this)}function qd(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:Tm(jd,t)}}}function Kd(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function $d(t,e,n,i){return t&&(t.legacy||t.legacy!==!1&&!n&&!i&&"tspan"!==e&&("text"===e||K(t,"text")))}function Qd(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},K(a,"text")&&(o.text=a.text),K(a,"rich")&&(o.rich=a.rich),K(a,"textFill")&&(o.fill=a.textFill),K(a,"textStroke")&&(o.stroke=a.textStroke),K(a,"fontFamily")&&(o.fontFamily=a.fontFamily),K(a,"fontSize")&&(o.fontSize=a.fontSize),K(a,"fontStyle")&&(o.fontStyle=a.fontStyle),K(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=K(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),K(a,"textPosition")&&(i.position=a.textPosition),K(a,"textOffset")&&(i.offset=a.textOffset),K(a,"textRotation")&&(i.rotation=a.textRotation),K(a,"textDistance")&&(i.distance=a.textDistance)}return Jd(o,t),y(o.rich,function(t){Jd(t,t)}),{textConfig:i,textContent:r}}function Jd(t,e){e&&(e.font=e.textFont||e.font,K(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),K(e,"textAlign")&&(t.align=e.textAlign),K(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),K(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),K(e,"textWidth")&&(t.width=e.textWidth),K(e,"textHeight")&&(t.height=e.textHeight),K(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),K(e,"textPadding")&&(t.padding=e.textPadding),K(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),K(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),K(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),K(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),K(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),K(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),K(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function tg(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);
var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";eg(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,y(e.rich,function(t){eg(t,t)}),i}function eg(t,e){e&&(K(e,"fill")&&(t.textFill=e.fill),K(e,"stroke")&&(t.textStroke=e.fill),K(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),K(e,"font")&&(t.font=e.font),K(e,"fontStyle")&&(t.fontStyle=e.fontStyle),K(e,"fontWeight")&&(t.fontWeight=e.fontWeight),K(e,"fontSize")&&(t.fontSize=e.fontSize),K(e,"fontFamily")&&(t.fontFamily=e.fontFamily),K(e,"align")&&(t.textAlign=e.align),K(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),K(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),K(e,"width")&&(t.textWidth=e.width),K(e,"height")&&(t.textHeight=e.height),K(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),K(e,"padding")&&(t.textPadding=e.padding),K(e,"borderColor")&&(t.textBorderColor=e.borderColor),K(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),K(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),K(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),K(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),K(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),K(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),K(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),K(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),K(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),K(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function ng(t,e,n,i,r){var o=t+"Animation",a=ts(t,i,r)||{},s=qD(e).userDuring;return a.duration>0&&(a.during=s?Tm(hg,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),h(a,n[o]),a}function ig(t,e,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=qD(t),u=e.style;l.userDuring=e.during;var c={},p={};if(dg(t,e,p),pg("shape",e,p),pg("extra",e,p),!o&&s&&(fg(t,e,c),cg("shape",t,e,c),cg("extra",t,e,c),gg(t,e,u,c)),p.style=u,sg(t,p,a),ug(t,e),s)if(o){var f={};y(jD,function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(f[t]=f[t]||{}),h(t?f[t]:f,n.enterFrom))});var d=ng("enter",t,e,n,r);d.duration>0&&t.animateFrom(f,d)}else lg(t,e,r||0,n,c);rg(t,e),u?t.dirty():t.markRedraw()}function rg(t,e){for(var n=qD(t).leaveToProps,i=0;i<jD.length;i++){var r=jD[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=qD(t).leaveToProps={}),r&&(n[r]=n[r]||{}),h(r?n[r]:n,o.leaveTo))}}function og(t,e,n,i){if(t){var r=t.parent,o=qD(t).leaveToProps;if(o){var a=ng("update",t,e,n,0);a.done=function(){r.remove(t),i&&i()},t.animateTo(o,a)}else r.remove(t),i&&i()}}function ag(t){return"all"===t}function sg(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}function lg(t,e,n,i,r){if(r){var o=ng("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}function ug(t,e){K(e,"silent")&&(t.silent=e.silent),K(e,"ignore")&&(t.ignore=e.ignore),t instanceof lw&&K(e,"invisible")&&(t.invisible=e.invisible),t instanceof jw&&K(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}function hg(){var t=this,e=t.el;if(e){var n=qD(e).userDuring,i=t.userDuring;if(n!==i)return void(t.el=t.userDuring=null);KD.el=e,i($D)}}function cg(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),ag(l))h(o,a);else for(var u=ur(l),c=0;c<u.length;c++){var f=u[c],d=a[f];o[f]=d}else if(ag(s)||p(s,t)>=0){!o&&(o=i[t]={});for(var g=w(a),c=0;c<g.length;c++){var f=g[c],d=a[f];yg(r[f],d)&&(o[f]=d)}}}}}function pg(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=w(i),a=0;a<o.length;a++){var s=o[a];r[s]=Un(i[s])}}function fg(t,e,n){for(var i=e.transition,r=ag(i)?hx:ur(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];n[a]=s}}}function dg(t,e,n){for(var i=0;i<ZD.length;i++){var r=ZD[i],o=YD[r],a=e[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(var i=0;i<hx.length;i++){var s=hx[i];null!=e[s]&&(n[s]=e[s])}}function gg(t,e,n,i){if(n){var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!ag(a)){var l=ur(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var h=l[u],c=o[h];r[h]=c}}else if(t.getAnimationStyleProps&&(ag(s)||ag(a)||p(s,"style")>=0)){var f=t.getAnimationStyleProps(),d=f?f.style:null;if(d){!r&&(r=i.style={});for(var g=w(n),u=0;u<g.length;u++){var h=g[u];if(d[h]){var c=o[h];r[h]=c}}}}}}}function yg(t,e){return g(t)?t!==e:null!=t&&isFinite(t)}function vg(t){t.stopAnimation("keyframe"),t.attr(QD(t))}function mg(t,e,n){if(n.isAnimationEnabled()&&e){if(M(e))return void y(e,function(e){mg(t,e,n)});var i=e.keyframes,r=e.duration;if(n&&null==r){var o=ts("enter",n,0);r=o&&o.duration}if(i&&r){var a=QD(t);y(jD,function(n){if(!n||t[n]){var o;i.sort(function(t,e){return t.percent-e.percent}),y(i,function(i){var s=t.animators,l=n?i[n]:i;if(l){var u=w(l);if(n||(u=_(u,function(t){return p(JD,t)<0})),u.length){o||(o=t.animate(n,e.loop,!0),o.scope="keyframe");for(var h=0;h<s.length;h++)s[h]!==o&&s[h].targetName===o.targetName&&s[h].stopTracks(u);n&&(a[n]=a[n]||{});var c=n?a[n]:a;y(u,function(e){c[e]=((n?t[n]:t)||{})[e]}),o.whenWithKeys(r*i.percent,l,u,i.easing)}}}),o&&o.delay(e.delay||0).duration(r).start(e.easing)}})}}}function _g(t){return t instanceof jw}function xg(t){return t instanceof lw}function wg(t,e){e.copyTransform(t),xg(e)&&xg(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,_g(e)&&_g(t)&&e.setShape(t.shape))}function bg(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=Wg(i);e=ps(o,null,r,i.layout||"center"),UD(e).customPathData=o}else if("image"===n)e=new Jw({}),UD(e).customImagePath=t.style.image;else if("text"===n)e=new sb({});else if("group"===n)e=new Dx;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=cs(n);if(!a){var s="";sr(s)}e=new a}return UD(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function Sg(t,e,n,i,r,o,a){vg(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=sA);var l=i&&i.style;if(l){if("text"===e.type){var u=l;K(u,"textFill")&&(u.fill=u.textFill),K(u,"textStroke")&&(u.stroke=u.textStroke)}var h=void 0,c=_g(e)?l.decal:null;t&&c&&(c.dirty=!0,h=zc(c,t)),l.__decalPattern=h}if(xg(e)&&l){var h=l.__decalPattern;h&&(l.decal=h)}ig(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),mg(e,i.keyframeAnimation,o)}function Mg(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(i===!1){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),aa(o)}}function Tg(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=e.z2;null!=a&&(i.z2=a||0);for(var s=0;s<rA.length;s++)Cg(i,e,rA[s])}}function Cg(t,e,n){var i,r=n===eA,o=r?e:Bg(e,n),a=o?o.z2:null;null!=a&&(i=r?t:t.ensureState(n),i.z2=a||0)}function Ig(t,e,n,i){function r(t){return t===w?b||(b=e.getItemModel(t)):e.getItemModel(t)}function o(t,n){return e.hasItemOption?t===w?T[n]||(T[n]=r(t).getModel(oA[n])):r(t).getModel(oA[n]):k[n]}function a(t,n){return e.hasItemOption?t===w?I[n]||(I[n]=r(t).getModel(aA[n])):r(t).getModel(aA[n]):D[n]}function s(t,n){return null==n&&(n=w),e.getStore().get(e.getDimensionIndex(t||0),n)}function l(t,n){null==n&&(n=w),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function u(n,i){null==i&&(i=w);var r=e.getItemVisual(i,"style"),s=r&&r.fill,l=r&&r.opacity,u=o(i,eA).getItemStyle();null!=s&&(u.fill=s),null!=l&&(u.opacity=l);var h={inheritColor:C(s)?s:"#000"},c=a(i,eA),d=Es(c,null,h,!1,!0);d.text=c.getShallow("show")?N(t.getFormattedLabel(i,eA),Nd(e,i)):null;var g=Ns(c,h,!1);return f(n,u),u=tg(u,d,g),n&&p(u,n),u.legacy=!0,u}function h(n,i){null==i&&(i=w);var r=o(i,tA).getItemStyle(),s=a(i,tA),l=Es(s,null,null,!0,!0);l.text=s.getShallow("show")?F(t.getFormattedLabel(i,tA),t.getFormattedLabel(i,eA),Nd(e,i)):null;var u=Ns(s,null,!0);return f(n,r),r=tg(r,l,u),n&&p(r,n),r.legacy=!0,r}function p(t,e){for(var n in e)K(e,n)&&(t[n]=e[n])}function f(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function d(t,n){if(null==n&&(n=w),K(WD,t)){var i=e.getItemVisual(n,"style");return i?i[WD[t]]:null}return K(GD,t)?e.getItemVisual(n,t):void 0}function g(t){if("cartesian2d"===_.type){var e=_.getBaseAxis();return tf(c({axis:e},t))}}function y(){return n.getCurrentSeriesIndices()}function v(t){return Ws(t,n)}var m=t.get("renderItem"),_=t.coordinateSystem,x={};_&&(x=_.prepareCustoms?_.prepareCustoms(_):hA[_.type](_));for(var w,b,S=c({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:s,style:u,ordinalRawValue:l,styleEmphasis:h,visual:d,barLayout:g,currentSeriesIndices:y,font:v},x.api||{}),M={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:x.coordSys,dataInsideLength:e.count(),encode:kg(t.getData())},T={},I={},k={},D={},A=0;A<rA.length;A++){var P=rA[A];k[P]=t.getModel(oA[P]),D[P]=t.getModel(aA[P])}return function(t,n){return w=t,b=null,T={},I={},m&&m(c({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},M),S)}}function kg(t){var e={};return y(t.dimensions,function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=e[r]=e[r]||[];o[i.coordDimIndex]=t.getDimensionIndex(n)}}),e}function Dg(t,e,n,i,r,o,a){if(!i)return void o.remove(e);var s=Ag(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&ka(s,i.focus,i.blurScope,i.emphasisDisabled),s}function Ag(t,e,n,i,r,o){var a=-1,s=e;e&&Pg(e,i,r)&&(a=p(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=bg(i),s&&wg(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),uA.normal.cfg=uA.normal.conOpt=uA.emphasis.cfg=uA.emphasis.conOpt=uA.blur.cfg=uA.blur.conOpt=uA.select.cfg=uA.select.conOpt=null,uA.isLegacy=!1,Og(u,n,i,r,l,uA),Lg(u,n,i,r,l),Sg(t,u,n,i,uA,r,l),K(i,"info")&&(UD(u).info=i.info);for(var h=0;h<rA.length;h++){var c=rA[h];if(c!==eA){var f=Bg(i,c),d=zg(i,f,c);Mg(c,u,f,d,uA)}}return Tg(u,i,r),"group"===i.type&&Eg(t,u,n,i,r),a>=0?o.replaceAt(u,a):o.add(u),u}function Pg(t,e,n){var i=UD(t),r=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&Gg(o)&&Wg(o)!==i.customPathData||"image"===r&&K(a,"image")&&a.image!==i.customImagePath}function Lg(t,e,n,i,r){var o=n.clipPath;if(o===!1)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Pg(a,o,i)&&(a=null),a||(a=bg(o),t.setClipPath(a)),Sg(null,a,e,o,null,i,r)}}function Og(t,e,n,i,r,o){if(!t.isGroup){Rg(n,null,o),Rg(n,tA,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var h=t.getTextContent();if(a===!1)h&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},h?h.clearStates():(h=bg(a),t.setTextContent(h)),Sg(null,h,e,a,null,i,r);for(var c=a&&a.style,p=0;p<rA.length;p++){var f=rA[p];if(f!==eA){var d=o[f].conOpt;Mg(f,h,d,zg(a,d,f),null)}}c?h.dirty():h.markRedraw()}}}}function Rg(t,e,n){var i=e?Bg(t,e):t,r=e?zg(t,i,tA):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?Bg(s,e):s:null;if(r&&(n.isLegacy||$d(r,o,!!a,!!l))){n.isLegacy=!0;var u=Qd(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var h=l;!h.type&&(h.type="text")}var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function Bg(t,e){return e?t?t[e]:null:t}function zg(t,e,n){var i=e&&e.style;return null==i&&n===tA&&t&&(i=t.styleEmphasis),i}function Eg(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=s===!1;if(a||l||u){if(l)return void Ng({api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e});u&&e.removeAll();for(var h=0;a>h;h++)o[h]&&Ag(t,e.childAt(h),n,o[h],r,e);for(var c=e.childCount()-1;c>=h;c--){var p=e.childAt(c);og(p,UD(e).option,r)}}}function Ng(t){new fk(t.oldChildren,t.newChildren,Fg,Fg,t).add(Hg).update(Hg).remove(Vg).execute()}function Fg(t,e){var n=t&&t.name;return null!=n?n:lA+e}function Hg(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;Ag(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Vg(t){var e=this.context,n=e.oldChildren[t];og(n,UD(n).option,e.seriesModel)}function Wg(t){return t&&(t.pathData||t.d)}function Gg(t){return t&&(K(t,"pathData")||K(t,"d"))}function Ug(t){t.registerChartView(cA),t.registerSeriesModel(XD)}function Xg(t,n,i,r){y(xA,function(o,a){var s=l(l({},_A[a],!0),r,!0),u=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+"Axis."+a,e}return e(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Ol(this),i=n?Bl(t):{},r=e.getTheme();l(t,r.get(a+"Axis")),l(t,this.getDefaultOption()),t.type=Yg(t),n&&Rl(t,i,n)},i.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=Pk.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;return"category"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=n+"Axis."+a,i.defaultOption=s,i}(i);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(n+"Axis",Yg)}function Yg(t){return t.type||(t.data?"category":"value")}function Zg(t){return"interval"===t.type||"time"===t.type}function jg(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.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),E(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function qg(t){return"cartesian2d"===t.get("coordinateSystem")}function Kg(t){var e={xAxisModel:null,yAxisModel:null};return y(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Gx).models[0];e[i]=o}),e}function $g(t,e,n){var i=Rk.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=xf(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var p=TA(t.base);u=[TA(u[0])/p,TA(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var f=i.getExtent.call(t);h&&(u[0]=f[0]),c&&(u[1]=f[1]);var d=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)d=(y-g)/a;else if(h)for(y=u[0]+d*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)d=Xp(d),y=u[0]+d*a;else if(c)for(g=u[1]-d*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=Xp(d),g=u[1]-d*a;else{var v=t.getTicks().length-1;v>a&&(d=Xp(d));var m=d*a;y=Math.ceil(u[1]/d)*d,g=Vi(y-m),0>g&&u[0]>=0?(g=0,y=Vi(m)):y>0&&u[1]<=0&&(y=0,g=-Vi(m))}var _=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+d*_,y+d*x),i.setInterval.call(t,d),(_||x)&&i.setNiceExtent.call(t,g+d,y-d)}function Qg(t,e){return t.getCoordSysModel()===e}function Jg(t,e,n,i){function r(t){return t.dim+"_"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=u)ty(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&ty(a[h])&&!i[r(a[h])]){o=a[h];break}o&&(i[r(o)]=!0)}}function ty(t){return t&&"category"!==t.type&&"time"!==t.type&&Mf(t)}function ey(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function ny(t,e,n,i){var r,o,a=ji(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return qi(a-IA/2)?(o=l?"bottom":"top",r="center"):qi(a-1.5*IA)?(o=l?"top":"bottom",r="center"):(o="middle",r=1.5*IA>a&&a>IA/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function iy(t,e,n){if(!Af(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],p=n[n.length-2];i===!1?(ry(o),ry(u)):oy(o,a)&&(i?(ry(a),ry(h)):(ry(o),ry(u))),r===!1?(ry(s),ry(c)):oy(l,s)&&(r?(ry(l),ry(p)):(ry(s),ry(c)))}}function ry(t){t&&(t.ignore=!0)}function oy(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=ai([]);return hi(r,r,-t.rotation),n.applyTransform(li([],r,t.getLocalTransform())),i.applyTransform(li([],r,e.getLocalTransform())),n.intersect(i)}}function ay(t){return"middle"===t||"center"===t}function sy(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(ye(a,a,e),ye(s,s,e));var h=new pS({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});h.anid=r+"_"+t[l].tickValue,o.push(h)}return o}function ly(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=r.getTicksCoords(),h=sy(u,e.transform,l,c(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<h.length;p++)t.add(h[p]);return h}}function uy(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=c(s.getLineStyle(),c(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<a.length;h++)for(var p=sy(a[h],e.transform,l,u,"minorticks_"+h),f=0;f<p.length;f++)t.add(p[f])}}function hy(t,e,n,i){var r=n.axis,o=E(i.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),u=(E(i.labelRotate,a.get("rotate"))||0)*IA/180,h=kA.innerTextLayout(i.rotation,u,i.labelDirection),c=n.getCategories&&n.getCategories(!0),p=[],f=kA.isLabelSilent(n),d=n.get("triggerEvent");return y(l,function(o,l){var u="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,y=o.rawLabel,v=a;if(c&&c[u]){var m=c[u];D(m)&&m.textStyle&&(v=new $S(m.textStyle,a,n.ecModel))}var _=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=r.dataToCoord(u),w=new sb({x:x,y:i.labelOffset+i.labelDirection*s,rotation:h.rotation,silent:f,z2:10+(o.level||0),style:Es(v,{text:g,align:v.getShallow("align",!0)||h.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||h.textVerticalAlign,fill:T(_)?_("category"===r.type?y:"value"===r.type?u+"":u,l):_})});if(w.anid="label_"+u,d){var b=kA.makeAxisEventDataBase(n);b.targetType="axisLabel",b.value=y,b.tickIndex=l,"category"===r.type&&(b.dataIndex=u),cb(w).eventData=b}e.add(w),w.updateTransform(),p.push(w),t.add(w),w.decomposeTransform()}),p}}function cy(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return py(n,t,e),n.seriesInvolved&&dy(n,t),n}function py(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];y(n.getCoordinateSystems(),function(n){function s(i,s,l){var h=l.model.getModel("axisPointer",r),p=h.get("show");if(p&&("auto"!==p||i||xy(h))){null==s&&(s=h.get("triggerTooltip")),h=i?fy(l,c,r,e,i,s):h;var f=h.get("snap"),d=wy(l.model),g=s||f||"category"===l.type,y=t.axesInfo[d]={key:d,axis:l,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:xy(h),seriesModels:[],linkGroup:null};u[d]=y,t.seriesInvolved=t.seriesInvolved||g;var v=gy(o,l);if(null!=v){var m=a[v]||(a[v]={axesInfo:{}});m.axesInfo[d]=y,m.mapper=o[v].mapper,y.linkGroup=m}}}if(n.axisPointerEnabled){var l=wy(n.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=n;var h=n.model,c=h.getModel("tooltip",i);if(y(n.getAxes(),S(s,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var p="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),d=n.getTooltipAxes(c.get(["axisPointer","axis"]));(p||f)&&y(d.baseAxes,S(s,f?"cross":!0,p)),f&&y(d.otherAxes,S(s,"cross",!1))}}})}function fy(t,e,n,i,r,o){var a=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};y(l,function(t){u[t]=s(a.get(t))}),u.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===r){var p=a.get(["label","show"]);if(h.show=null!=p?p:!0,!o){var f=u.lineStyle=a.get("crossStyle");f&&c(h,f.textStyle)}}return t.model.getModel("axisPointer",new $S(u,n,i))}function dy(t,e){e.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&i!==!1&&"item"!==i&&r!==!1&&e.get(["axisPointer","show"],!0)!==!1&&y(t.coordSysAxesInfo[wy(n.model)],function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})})}function gy(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(yy(o[i+"AxisId"],n.id)||yy(o[i+"AxisIndex"],n.componentIndex)||yy(o[i+"AxisName"],n.name))return r}}function yy(t,e){return"all"===t||M(t)&&p(t,e)>=0||t===e}function vy(t){var e=my(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=xy(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function my(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[wy(t)]}function _y(t){var e=my(t);return e&&e.axisPointerModel}function xy(t){return!!t.get(["handle","show"])}function wy(t){return t.type+"||"+t.id}function by(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var h=s.length,p=LA(t).splitAreaColors,f=Y(),d=0;if(p)for(var g=0;g<u.length;g++){var y=p.get(u[g].tickValue);if(null!=y){d=(y+(h-1)*g)%h;break}}var v=r.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=M(s)?s:[s];for(var g=1;g<u.length;g++){var _=r.toGlobalCoord(u[g].coord),x=void 0,w=void 0,b=void 0,S=void 0;r.isHorizontal()?(x=v,w=l.y,b=_-x,S=l.height,v=x+b):(x=l.x,w=v,b=l.width,S=_-w,v=w+S);var T=u[g-1].tickValue;null!=T&&f.set(T,d),e.add(new ib({anid:null!=T?"area_"+T:null,shape:{x:x,y:w,width:b,height:S},style:c({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}LA(t).splitAreaColors=f}}}function Sy(t){LA(t).splitAreaColors=null}function My(t){t.registerComponentView(FA),t.registerComponentModel(pA),t.registerCoordinateSystem("cartesian2d",CA),Xg(t,"x",fA,HA),Xg(t,"y",fA,HA),t.registerComponentView(EA),t.registerComponentView(NA),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Ty(t){t.registerComponentModel(VA),t.registerComponentView(WA)}function Cy(t,e){var n=vM(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new ib({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}function Iy(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),YA(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?zc(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),f=p.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===f.stroke&&(f.stroke=i.fill),!o){var d=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===d?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=p.get("inactiveColor"),f.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function ky(t){var e=t.icon||"roundRect",n=ic(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function Dy(t,e,n,i){Ly(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Py(t,e,n,i)}function Ay(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;r>i&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function Py(t,e,n,i){Ay(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Ly(t,e,n,i){Ay(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function Oy(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function Ry(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var a=n.getData();y(a,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r[e]=r.hasOwnProperty(e)?r[e]&&i:i}})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function By(t){t.registerAction("legendToggleSelect","legendselectchanged",S(Ry,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",S(Ry,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",S(Ry,"inverseSelect")),t.registerAction("legendSelect","legendselected",S(Ry,"select")),t.registerAction("legendUnSelect","legendunselected",S(Ry,"unSelect"))}function zy(t){t.registerComponentModel(UA),t.registerComponentView(jA),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Oy),t.registerSubTypeDefaulter("legend",function(){return"plain"}),By(t)}function Ey(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,Rl(e,n,{type:"box",ignoreSize:!!r})}function Ny(t){t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}function Fy(t){zf(zy),t.registerComponentModel(qA),t.registerComponentView(JA),Ny(t)}function Hy(t,e,n,i){Vy(tP(n).lastProp,i)||(tP(n).lastProp=i,e?ns(n,i,t):(n.stopAnimation(),n.attr(i)))}function Vy(t,e){if(D(t)&&D(e)){var n=!0;return y(e,function(e,i){n=n&&Vy(t[i],e)}),!!n}return t===e}function Wy(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Gy(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function Uy(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function Xy(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function Yy(t,e,n,i,r){var o=n.get("value"),a=jy(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=vM(s.get("padding")||0),u=s.getFont(),h=mi(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),Zy(c,p,f,i);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Es(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function Zy(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function jy(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Cf(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};y(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),C(a)?o=a.replace("{value}",o):T(a)&&(o=a(s))}return o}function qy(t,e,n){var i=oi();return hi(i,i,n.rotation),ui(i,i,n.position),_s([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Ky(t,e,n,i,r,o){var a=kA.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),Yy(e,i,r,o,{position:qy(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function $y(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Qy(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function Jy(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}function tv(t){return"x"===t.dim?0:1}function ev(t,e,n){if(!im.node){var i=e.getZr();sP(i).records||(sP(i).records={}),nv(i,e);var r=sP(i).records[t]||(sP(i).records[t]={});r.handler=n}}function nv(t,e){function n(n,i){t.on(n,function(n){var r=av(e);lP(sP(t).records,function(t){t&&i(t,n,r.dispatchAction)}),iv(r.pendings,e)})}sP(t).initialized||(sP(t).initialized=!0,n("click",S(ov,"click")),n("mousemove",S(ov,"mousemove")),n("globalout",rv))}function iv(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function rv(t,e,n){t.handler("leave",null,n)}function ov(t,e,n,i){e.handler(t,n,i)}function av(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function sv(t,e){if(!im.node){var n=e.getZr(),i=(sP(n).records||{})[t];i&&(sP(n).records[t]=null)}}function lv(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Ir(o,t);if(null==a||0>a||M(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),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),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(v(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),i=[y.x+y.width/2,y.y+y.height/2]}return{point:i,el:s}}function uv(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Tm(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){_v(r)&&(r=lv({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=_v(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||_v(r),p={},f={},d={list:[],map:{}},g={showPointer:S(pv,f),showTooltip:S(fv,d)};y(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);y(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=vv(u,t);
if(!c&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointToData(r)),null!=o&&hv(t,o,g,!1,p)}})});var v={};return y(h,function(t,e){var n=t.linkGroup;n&&!f[e]&&y(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,mv(e),mv(t)))),v[t.key]=o}})}),y(v,function(t,e){hv(h[e],t,g,!0,p)}),dv(f,h,p),gv(d,r,t,a),yv(h,a,n),p}}function hv(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a=cv(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&h(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}}function cv(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return y(e.seriesModels,function(e){var l,u,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,n);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.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),y(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function pv(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function fv(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=wy(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:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function dv(t,e,n){var i=n.axesInfo=[];y(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function gv(t,e,n,i){if(_v(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function yv(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=hP(i)[r]||{},a=hP(i)[r]={};y(t,function(t){var e=t.axisPointerModel.option;"show"===e.status&&y(e.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t})});var s=[],l=[];y(o,function(t,e){!a[e]&&l.push(t)}),y(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function vv(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function mv(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function _v(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function xv(t){PA.registerAxisPointerClass("CartesianAxisPointer",rP),t.registerComponentModel(aP),t.registerComponentView(uP),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!M(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=cy(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},uv)}function wv(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function bv(t){if(im.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;i>n;n++)if(t[n]in e)return t[n]}function Sv(t,e){if(!t)return e;e=bl(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function Mv(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}function Tv(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top"}function Cv(t,e,n){if(!C(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=Dl(e);var o,a=Tv(n),s=Math.max(1.5*Math.round(r),6),l="",u=gP+":";p(["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,c=s+r,f=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),d=Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-c)/2))/100;l+=";"+a+":-"+d+"px";var g=e+" solid "+r+"px;",y=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'<div style="'+y.join("")+'"></div>'}function Iv(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=im.transformSupported?","+gP+i:",left"+i+",top"+i),dP+":"+r}function kv(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!im.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=im.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+gP+":"+a+";":[["top",0],["left",0],[pP,a]]}function Dv(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),y(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function Av(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=mh(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&r&&i.push(Iv(r,n)),o&&i.push("background-color:"+o),y(["width","color","radius"],function(e){var n="border-"+e,r=bl(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))}),i.push(Dv(h)),null!=c&&i.push("padding:"+vM(c).join("px ")+"px"),i.join(";")+";"}function Pv(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&we(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Lv(t){return Math.max(0,t)}function Ov(t){var e=Lv(t.shadowBlur||0),n=Lv(t.shadowOffsetX||0),i=Lv(t.shadowOffsetY||0);return{left:Lv(e-n),right:Lv(e+n),top:Lv(e-i),bottom:Lv(e+i)}}function Rv(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function Bv(t,e,n){var i,r=e.ecModel;n?(i=new $S(n,r,r),i=new $S(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof $S&&(a=a.get("tooltip",!0)),C(a)&&(a={formatter:a}),a&&(i=new $S(a,i,r)))}return i}function zv(t,e){return t.dispatchAction||Tm(e.dispatchAction,e)}function Ev(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function Nv(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Fv(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,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 Hv(t){return"center"===t||"middle"===t}function Vv(t,e,n){var i=Ar(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Pr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse(function(e){var n=cb(e).tooltipConfig;return n&&n.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function Wv(t){zf(xv),t.registerComponentModel(cP),t.registerComponentView(xP),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$)}function Gv(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Lk({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Ek({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Rk}}function Uv(t,e){return Ll(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function Xv(t,e,n,i){var r=i.style,o=Cs(t.get(["controlStyle",e]),i||{},new xx(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function Yv(t,e,n,i,r,o){var a=e.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=t.get("symbol");r=ic(s,-1,-1,2,2,a),r.setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var u=e.getItemStyle(["color"]);r.setStyle(u),i=l({rectHover:!0,z2:100},i,!0);var h=rc(t.get("symbolSize"));i.scaleX=h[0]/2,i.scaleY=h[1]/2;var c=oc(t.get("symbolOffset"),h);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var p=t.get("symbolRotate");return i.rotation=(p||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function Zv(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function jv(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),c({currentIndex:i.option.currentIndex},t)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)})}function qv(t){var e=t&&t.timeline;M(e)||(e=e?[e]:[]),y(e,function(t){t&&Kv(t)})}function Kv(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),$v(t),Qv(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});Qv(i,"position")||(i.position=t.controlPosition),"none"!==i.position||Qv(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}y(t.data||[],function(t){D(t)&&!M(t)&&(!Qv(t,"value")&&Qv(t,"name")&&(t.value=t.name),$v(t))})}function $v(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};y(i,function(t,e){o[e]||Qv(r,e)||(r[e]=t)}),n.label&&!Qv(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function Qv(t,e){return t.hasOwnProperty(e)}function Jv(t){t.registerComponentModel(bP),t.registerComponentView(IP),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),jv(t),t.registerPreprocessor(qv)}var tm=function(t,e){return(tm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},em=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),nm=function(){function t(){this.browser=new em,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window}return t}(),im=new nm;"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(im.wxa=!0,im.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?im.worker=!0:"undefined"==typeof navigator?(im.node=!0,im.svgSupported=!0):n(navigator.userAgent,im);var rm=12,om="sans-serif",am=rm+"px "+om,sm=20,lm=100,um="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N",hm=i(um),cm={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var r=cm.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==i&&(e=t.font=i||am),t.measureText(n);n=n||"",i=i||am;var o=/^([0-9]*?)px$/.exec(i),a=+(o&&o[1])||rm,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=hm[n[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},pm=m(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),fm=m(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),dm=Object.prototype.toString,gm=Array.prototype,ym=gm.forEach,vm=gm.filter,mm=gm.slice,_m=gm.map,xm=function(){}.constructor,wm=xm?xm.prototype:null,bm="__proto__",Sm=2311,Mm=cm.createCanvas,Tm=wm&&T(wm.bind)?wm.call.bind(wm.bind):b,Cm="__ec_primitive__",Im=function(){function t(e){function n(t,e){i?r.set(t,e):r.set(e,t)}this.data={};var i=M(e);this.data={};var r=this;e instanceof t?e.each(n):e&&y(e,n)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},t.prototype.keys=function(){return w(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}(),km=180/Math.PI,Dm=(Object.freeze||Object)({guid:o,logError:a,clone:s,merge:l,mergeAll:u,extend:h,defaults:c,createCanvas:Mm,indexOf:p,inherits:f,mixin:d,isArrayLike:g,each:y,map:v,reduce:m,filter:_,find:x,keys:w,bind:Tm,curry:S,isArray:M,isFunction:T,isString:C,isStringSafe:I,isNumber:k,isObject:D,isBuiltInObject:A,isTypedArray:P,isDom:L,isGradientObject:O,isImagePatternObject:R,isRegExp:B,eqNaN:z,retrieve:E,retrieve2:N,retrieve3:F,slice:H,normalizeCssArray:V,assert:W,trim:G,setAsPrimitive:U,isPrimitive:X,HashMap:Im,createHashMap:Y,concatArray:Z,createObject:j,disableUserSelect:q,hasOwn:K,noop:$,RADIAN_TO_DEGREE:km}),Am=oe,Pm=ae,Lm=pe,Om=fe,Rm=(Object.freeze||Object)({create:Q,copy:J,clone:te,set:ee,add:ne,scaleAndAdd:ie,sub:re,len:oe,length:Am,lenSquare:ae,lengthSquare:Pm,mul:se,div:le,dot:ue,scale:he,normalize:ce,distance:pe,dist:Lm,distanceSquare:fe,distSquare:Om,negate:de,lerp:ge,applyTransform:ye,min:ve,max:me}),Bm=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),zm=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.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Bm(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new Bm(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Bm(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Bm(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Bm(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Bm(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Em=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;o>r;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;a>s;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;s>l;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),Nm=Math.log(2),Fm="___zrEVENTSAVED",Hm=[],Vm=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Wm=[],Gm=im.browser.firefox&&+im.browser.version.split(".")[0]<39,Um=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Xm=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;a>o;o++){var s=i[o],l=Ce(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in Ym)if(Ym.hasOwnProperty(e)){var n=Ym[e](this._track,t);if(n)return n}},t}(),Ym={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Oe(i)/Oe(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=Re(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},Zm="silent",jm=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(Em),qm=function(){function t(t,e){this.x=t,this.y=e}return t}(),Km=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$m=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o._hovered=new qm(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new jm,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new zm(o),o}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(y(Km,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Ne(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new qm(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new qm(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r="on"+e,o=Be(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new qm(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=Ee(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==Zm)){r.target=i[o];break}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Xm);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new qm;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(Em);y(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){$m.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Ne(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Lm(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Qm,Jm=32,t_=7,e_=1,n_=2,i_=4,r_=!1,o_=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=je}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;r>i;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Ye(n,je)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=e_),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Ze(),u.z=0),isNaN(u.z2)&&(Ze(),u.z2=0),isNaN(u.zlevel)&&(Ze(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var i=p(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();Qm=im.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var a_=Qm,s_={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*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)*.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-s_.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*s_.bounceIn(2*t):.5*s_.bounceOut(2*t-1)+.5}},l_=Math.pow,u_=Math.sqrt,h_=1e-8,c_=1e-4,p_=u_(3),f_=1/3,d_=Q(),g_=Q(),y_=Q(),v_=/cubic-bezier\(([0-9,\.e ]+)\)/,m_=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||$,this.ondestroy=t.ondestroy||$,this.onrestart=t.onrestart||$,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedTime+=e);var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;0>r&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=T(t)?t:s_[t]||pn(t)},t}(),__=function(){function t(t){this.value=t}return t}(),x_=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new __(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),w_=function(){function t(t){this._list=new x_,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new __(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),b_={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]},S_=new w_(20),M_=null,T_=kn,C_=Dn,I_=(Object.freeze||Object)({parse:Sn,lift:Cn,toHex:In,fastLerp:kn,fastMapToColor:T_,lerp:Dn,mapToColor:C_,modifyHSL:An,modifyAlpha:Pn,stringify:Ln,lum:On,random:Rn}),k_=(function(){return im.hasGlobalWindow&&T(window.btoa)?function(t){return window.btoa(unescape(t))
}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(){return null}}(),Array.prototype.slice),D_=0,A_=1,P_=2,L_=3,O_=4,R_=5,B_=6,z_=[0,0,0,0],E_=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=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.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=B_,s=e;if(g(e)){var l=Yn(e);a=l,(1===l&&!k(e[0])||2===l&&!k(e[0][0]))&&(o=!0)}else if(k(e)&&!z(e))a=D_;else if(C(e))if(isNaN(+e)){var u=Sn(e);u&&(s=u,a=L_)}else a=D_;else if(O(e)){var c=h({},s);c.colorStops=v(e.colorStops,function(t){return{offset:t.offset,color:Sn(t.color)}}),Bn(e)?a=O_:zn(e)&&(a=R_),s=c}0===r?this.valType=a:(a!==this.valType||a===B_)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return n&&(p.easing=n,p.easingFunc=T(n)?n:s_[n]||pn(n)),i.push(p),p},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=jn(i),l=Zn(i),u=0;r>u;u++){var h=n[u],c=h.value,p=o.value;h.percent=h.time/t,a||(s&&u!==r-1?Gn(c,p,i):l&&Wn(c.colorStops,p.colorStops))}if(!a&&i!==R_&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var f=n[0].value,u=0;r>u;u++)i===D_?n[u].additiveValue=n[u].value-f:i===L_?n[u].additiveValue=Hn([],n[u].value,f,-1):jn(i)&&(n[u].additiveValue=i===A_?Hn([],n[u].value,f,-1):Vn([],n[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=s===L_,p=this._lastFr,f=Math.min;if(1===u)i=r=l[0];else{if(0>e)n=0;else if(e<this._lastFrP){var d=f(p+1,u-1);for(n=d;n>=0&&!(l[n].percent<=e);n--);n=f(n,u-2)}else{for(n=p;u>n&&!(l[n].percent>e);n++);n=f(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var g=r.percent-i.percent,y=0===g?1:f((e-i.percent)/g,1);r.easingFunc&&(y=r.easingFunc(y));var m=o?this._additiveValue:c?z_:t[h];if(!jn(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=1>y?i.rawValue:r.rawValue;else if(jn(s))s===A_?Nn(m,i[a],r[a],y):Fn(m,i[a],r[a],y);else if(Zn(s)){var _=i[a],x=r[a],w=s===O_;t[h]={type:w?"linear":"radial",x:En(_.x,x.x,y),y:En(_.y,x.y,y),colorStops:v(_.colorStops,function(t,e){var n=x.colorStops[e];return{offset:En(t.offset,n.offset,y),color:Xn(Nn([],t.color,n.color,y))}}),global:x.global},w?(t[h].x2=En(_.x2,x.x2,y),t[h].y2=En(_.y2,x.y2,y)):t[h].r=En(_.r,x.r,y)}else if(c)Nn(m,i[a],r[a],y),o||(t[h]=Xn(m));else{var b=En(i[a],r[a],y);o?this._additiveValue=b:t[h]=b}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===D_?t[n]=t[n]+i:e===L_?(Sn(t[n],z_),Hn(z_,z_,i,1),t[n]=Xn(z_)):e===A_?Hn(t[n],t[n],i,1):e===P_&&Vn(t[n],t[n],i,1)},t}(),N_=function(){function t(t,e,n,i){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?void a("Can' use additive animation on looped animation."):(this._additiveAnimators=i,void(this._allowDiscrete=n))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,w(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new E_(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,u.valType===L_&&l&&(l=Xn(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Un(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Un(e[a]),i)}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.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var h=l[u-1];h&&(e._target[a.propName]=h.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var c=new m_({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(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.getTracks=function(){var t=this;return v(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Un(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||w(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),F_=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=qn()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next,o=i.step(e,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(a_(t),!e._paused&&e.update())}var e=this;this._running=!0,a_(t)},n.prototype.start=function(){this._running||(this._time=qn(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=qn(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=qn()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new N_(t,e.loop);return this.addAnimator(n),n},n}(Em),H_=300,V_=im.domSupported,W_=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=v(t,function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:i}}(),G_={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},U_=!1,X_=function(){function t(t,e){this.stopPropagation=$,this.stopImmediatePropagation=$,this.preventDefault=$,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Y_={mousedown:function(t){t=De(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=De(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=De(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=De(this.dom,t);var e=t.toElement||t.relatedTarget;ti(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){U_=!0,t=De(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){U_||(t=De(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=De(this.dom,t),Qn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Y_.mousemove.call(this,t),Y_.mousedown.call(this,t)},touchmove:function(t){t=De(this.dom,t),Qn(t),this.handler.processGesture(t,"change"),Y_.mousemove.call(this,t)},touchend:function(t){t=De(this.dom,t),Qn(t),this.handler.processGesture(t,"end"),Y_.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<H_&&Y_.click.call(this,t)},pointerdown:function(t){Y_.mousedown.call(this,t)},pointermove:function(t){Kn(t)||Y_.mousemove.call(this,t)},pointerup:function(t){Y_.mouseup.call(this,t)},pointerout:function(t){Kn(t)||Y_.mouseout.call(this,t)}};y(["click","dblclick","contextmenu"],function(t){Y_[t]=function(e){e=De(this.dom,e),this.trigger(t,e)}});var Z_={pointermove:function(t){Kn(t)||Z_.mousemove.call(this,t)},pointerup:function(t){Z_.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))}},j_=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),q_=function(t){function n(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new j_(e,Y_),V_&&(i._globalHandlerScope=new j_(document,Z_)),ei(i,i._localHandlerScope),i}return e(n,t),n.prototype.dispose=function(){ri(this._localHandlerScope),V_&&ri(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,V_&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?ni(this,e):ri(e)}},n}(Em),K_=1;im.hasGlobalWindow&&(K_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var $_=K_,Q_=.4,J_="#333",tx="#ccc",ex="#eee",nx=(Object.freeze||Object)({create:oi,identity:ai,copy:si,mul:li,translate:ui,rotate:hi,scale:ci,invert:pi,clone:fi}),ix=ai,rx=5e-5,ox=[],ax=[],sx=oi(),lx=Math.abs,ux=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 di(this.rotation)||di(this.x)||di(this.y)||di(this.scaleX-1)||di(this.scaleY-1)||di(this.skewX)||di(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;return e||t?(n=n||oi(),e?this.getLocalTransform(n):ix(n),t&&(e?li(n,t,n):si(n,t)),this.transform=n,void this._resolveGlobalScaleRatio(n)):void(n&&ix(n))},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(ox);var n=ox[0]<0?-1:1,i=ox[1]<0?-1:1,r=((ox[0]-n)*e+n)/ox[0]||0,o=((ox[1]-i)*e+i)/ox[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||oi(),pi(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(li(ax,t.invTransform,e),e=ax);var n=this.originX,i=this.originY;(n||i)&&(sx[4]=n,sx[5]=i,li(ax,e,sx),ax[4]-=n,ax[5]-=i,e=ax),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ye(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ye(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&lx(t[0]-1)>1e-10&&lx(t[3]-1)>1e-10?Math.sqrt(lx(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){gi(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var f=n+a,d=i+s;e[4]=-f*r-c*d*o,e[5]=-d*o-p*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&hi(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),hx=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"],cx=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),px=Math.min,fx=Math.max,dx=new cx,gx=new cx,yx=new cx,vx=new cx,mx=new cx,_x=new cx,xx=function(){function t(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=px(t.x,this.x),n=px(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?fx(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?fx(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=oi();return ui(r,r,[-e.x,-e.y]),ci(r,r,[n,i]),ui(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||r>u||h>s||a>c);if(n){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?cx.set(_x,-g,0):cx.set(_x,y,0)):f>_&&(f=_,y>g?cx.set(mx,g,0):cx.set(mx,-y,0)),h>s||a>c?x>d&&(d=x,m>v?cx.set(_x,0,-v):cx.set(_x,0,m)):f>_&&(f=_,m>v?cx.set(mx,0,v):cx.set(mx,0,-m))}return n&&cx.copy(n,p?mx:_x),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i