ludc
2025-01-02 63c4ba75fe0b27980101cf8178df113f0a6852c6
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-350242a9"],{"0ca1":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("el-row",[e("el-col",{attrs:{span:24}},[e("basic-container",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[e("avue-data-tabs",{attrs:{option:t.topOption}})],1)],1)],1),e("el-row",[e("el-col",{staticStyle:{height:"560px"},attrs:{span:16}},[e("basic-container",[e("el-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("el-collapse-item",{attrs:{name:"1",title:"欢迎使用PLT-WEB平台"}},[e("div",[t._v("\n              1、北京宏博远达科技有限公司(以下简称“宏博远达”)长期专注于制造业信息化建设,为客户提供企业信息化整体解决方案及相关软件研发、咨询及实施服务。宏博远达客户群体涵盖航空、航天、船舶、兵器、汽车、通用机械、电子等制造行业,通过与客户深度合作,承担了多项国家级软件研发与技术服务项目,拥有多项具有自主知识产权的软件产品。\n            ")]),e("div",[t._v("\n              2、为了给客户提供更多的技术创新能力及相应的企业级管理支撑平台,宏博远达研发了具有自主知识产权的企业级信息化整体解决方案,同时针对客户的特定需求,提供了高度可定制的专业应用。为了进一步提升技术服务能力,宏博远达投入专门力量在前沿技术方面进行探索,在企业私有云计算和大数据等领域不断取得突破。随着新一代业务与管理技术平台的推出,更增强了公司为客户提供高质量、全方位、深层次服务的技术能力。\n            ")]),e("div",[t._v("\n              3、宏博远达一直秉承“用智慧为客户创造价值”的宗旨,愿以“诚信负责”的态度和专业化的服务,在企业信息化发展的道路上,与客户一起成长,共同见证成功!\n            ")])]),e("el-collapse-item",{attrs:{name:"2",title:"服务计划制定"}},[e("div",[t._v("\n              1、根据客户实际需求,宏博远达将与客户共同制定年度服务计划,商定具体的服务对象、服务内容、定期维护的服务时间、技术交流的主题、具体的维护人员安排等服务细节。\n            ")]),e("div",[t._v("\n              2、客户可通过电话、电子邮件、函件等方式取得系统技术支持。对于系统以外的问题,我们会尽力协助客户找到解决途径。\n            ")]),e("div",[t._v("\n              3、对于远程无法解决的故障(问题),宏博远达工程师将在合同规定的时间内到达客户现场进行故障诊断及处理,做好相应的记录。必要时需要重新收集系统信息,并归档。对于非系统的原因而引起的故障(问题),宏博远达将关心和协助客户解决故障(问题)。\n            ")]),e("div",[t._v("\n              4、在其他情形下,宏博远达也可提供必要的现场服务。如为客户获得的合法操作系统进行升级服务、为客户安装必要的软件等的服务、配合客户做主机系统方面的测试、为客户的应用调整提供系统方面的支持等等。\n            ")]),e("div",[t._v("\n              5、宏博远达还将为客户提供定期的系统性能评估与优化服务。通过对系统运行数据的深入分析,我们将识别潜在的性能瓶颈,提出针对性的优化建议,并协助客户实施优化措施。这包括但不限于硬件资源的合理配置、软件参数的调优、数据库性能的提升等,旨在确保系统能够持续稳定、高效地运行,满足客户的业务发展需求。同时,我们也将根据系统评估结果,为客户提供未来的系统升级和扩展规划建议,帮助客户提前布局,应对未来的业务增长和技术变革。\n            ")])])],1)],1)],1),e("el-col",{staticStyle:{height:"560px"},attrs:{span:8}},[e("el-row",[e("basic-container",[e("div",{staticClass:"el-font-size"},[e("span",[t._v("产品名称")]),e("el-divider",{attrs:{direction:"vertical"}}),e("span",[e("el-tag",[t._v("PLT-WEB平台")])],1),e("el-divider",{attrs:{"content-position":"right"}},[e("i",{staticClass:"el-icon-star-off"})]),e("span",[t._v("当前用户")]),e("el-divider",{attrs:{direction:"vertical"}}),e("span",[e("el-tag",{attrs:{type:"success"}},[t._v(t._s(t.userInfo.userName))])],1),e("el-divider",{attrs:{"content-position":"right"}},[e("i",{staticClass:"el-icon-star-off"})]),e("span",[t._v("说明文档")]),e("el-divider",{attrs:{direction:"vertical"}}),e("span",[e("el-link",{attrs:{href:"https://bladex.vip",target:"_blank",type:"primary"}},[t._v("https://bladex.vip\n              ")])],1),e("el-divider",{attrs:{"content-position":"right"}},[e("i",{staticClass:"el-icon-star-off"})])],1)]),e("basic-container",[e("div",{staticStyle:{height:"309px"}},[e("v-chart",{attrs:{id:"chart","auto-resize":!0,options:t.chartOptions}})],1)])],1)],1)],1)],1)},o=[],a=(n("8e6e"),n("456d"),n("ac6a"),n("5df3"),n("ade3")),r=n("5880"),s=n("d47d"),l=n("22b4"),c=n("f95e"),u=n("7a29"),h=n("cbe5"),d=n("0da8"),p=n("e86a"),g=n("dd4f"),f=Math.sin,y=Math.cos,v=Math.PI,m=2*Math.PI,b=180/v,x=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,o,a){this._add("C",t,e,n,i,o,a)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,o,a){this.ellipse(t,e,n,n,0,i,o,a)},t.prototype.ellipse=function(t,e,n,i,o,a,r,s){var l=r-a,c=!s,h=Math.abs(l),d=Object(u["j"])(h-m)||(c?l>=m:-l>=m),p=l>0?l%m:l%m+m,g=!1;g=!!d||!Object(u["j"])(h)&&p>=v===!!c;var x=t+n*y(a),_=e+i*f(a);this._start&&this._add("M",x,_);var O=Math.round(o*b);if(d){var w=1/this._p,S=(c?1:-1)*(m-w);this._add("A",n,i,O,1,+c,t+n*y(a+S),e+i*f(a+S)),w>.01&&this._add("A",n,i,O,0,+c,x,_)}else{var M=t+n*y(r),I=e+i*f(r);this._add("A",n,i,O,+g,+c,M,I)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,o,a,r,s,l){for(var c=[],u=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);c.push(Math.round(d*u)/u)}this._d.push(t+c.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),_=x,O=n("8d1d"),w=n("6d8b"),S="none",M=Math.round;function I(t){var e=t.fill;return null!=e&&e!==S}function j(t){var e=t.stroke;return null!=e&&e!==S}var A=["lineCap","miterLimit","lineJoin"],C=Object(w["H"])(A,(function(t){return"stroke-"+t.toLowerCase()}));function D(t,e,n,i){var o=null==e.opacity?1:e.opacity;if(n instanceof d["a"])t("opacity",o);else{if(I(e)){var a=Object(u["p"])(e.fill);t("fill",a.color);var r=null!=e.fillOpacity?e.fillOpacity*a.opacity*o:a.opacity*o;(i||r<1)&&t("fill-opacity",r)}else t("fill",S);if(j(e)){var s=Object(u["p"])(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,c=l?(e.lineWidth||0)/l:0,p=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*o:s.opacity*o,g=e.strokeFirst;if((i||1!==c)&&t("stroke-width",c),(i||g)&&t("paint-order",g?"stroke":"fill"),(i||p<1)&&t("stroke-opacity",p),e.lineDash){var f=Object(O["a"])(n),y=f[0],v=f[1];y&&(v=M(v||0),t("stroke-dasharray",y.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",S);for(var m=0;m<A.length;m++){var b=A[m];if(i||e[b]!==h["a"][b]){var x=e[b]||h["a"][b];x&&t(C[m],x)}}}else i&&t("stroke",S)}}var T=n("65ed"),k="http://www.w3.org/2000/svg",L="http://www.w3.org/1999/xlink",P="http://www.w3.org/2000/xmlns/",N="http://www.w3.org/XML/1998/namespace",E="ecmeta_";function R(t){return document.createElementNS(k,t)}function z(t,e,n,i,o){return{tag:t,attrs:n||{},children:i,text:o,key:e}}function V(t,e){var n=[];if(e)for(var i in e){var o=e[i],a=i;!1!==o&&(!0!==o&&null!=o&&(a+='="'+o+'"'),n.push(a))}return"<"+t+" "+n.join(" ")+">"}function B(t){return"</"+t+">"}function G(t,e){e=e||{};var n=e.newline?"\n":"";function i(t){var e=t.children,o=t.tag,a=t.attrs,r=t.text;return V(o,a)+("style"!==o?Object(T["a"])(r):r||"")+(e?""+n+Object(w["H"])(e,(function(t){return i(t)})).join(n)+n:"")+B(o)}return i(t)}function H(t,e,n){n=n||{};var i=n.newline?"\n":"",o=" {"+i,a=i+"}",r=Object(w["H"])(Object(w["F"])(t),(function(e){return e+o+Object(w["H"])(Object(w["F"])(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+a})).join(i),s=Object(w["H"])(Object(w["F"])(e),(function(t){return"@keyframes "+t+o+Object(w["H"])(Object(w["F"])(e[t]),(function(n){return n+o+Object(w["H"])(Object(w["F"])(e[t][n]),(function(i){var o=e[t][n][i];return"d"===i&&(o='path("'+o+'")'),i+":"+o+";"})).join(i)+a})).join(i)+a})).join(i);return r||s?["<![CDATA[",r,s,"]]>"].join(i):""}function F(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function W(t,e,n,i){return z("svg","root",{width:t,height:e,xmlns:k,"xmlns:xlink":L,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var Y=n("5e76"),X=n("8582"),Z=n("20c8"),U=n("d4c6"),q=n("b362"),K=0;function J(){return K++}var $={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Q="transform-origin";function tt(t,e,n){var i=Object(w["m"])({},t.shape);Object(w["m"])(i,e),t.buildPath(n,i);var o=new _;return o.reset(Object(u["f"])(t)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function et(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[Q]=n+"px "+i+"px")}var nt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function it(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function ot(t,e,n){var i,o,a=t.shape.paths,r={};if(Object(w["k"])(a,(function(t){var e=F(n.zrId);e.animation=!0,rt(t,{},e,!0);var a=e.cssAnims,s=e.cssNodes,l=Object(w["F"])(a),c=l.length;if(c){o=l[c-1];var u=a[o];for(var h in u){var d=u[h];r[h]=r[h]||{d:""},r[h].d+=d.d||""}for(var p in s){var g=s[p].animation;g.indexOf(o)>=0&&(i=g)}}})),i){e.d=!1;var s=it(r,n);return i.replace(o,s)}}function at(t){return Object(w["C"])(t)?$[t]?"cubic-bezier("+$[t]+")":Object(q["a"])(t)?t:"":""}function rt(t,e,n,i){var o=t.animators,a=o.length,r=[];if(t instanceof U["a"]){var s=ot(t,e,n);if(s)r.push(s);else if(!a)return}else if(!a)return;for(var l={},c=0;c<a;c++){var h=o[c],d=[h.getMaxTime()/1e3+"s"],p=at(h.getClip().easing),g=h.getDelay();p?d.push(p):d.push("linear"),g&&d.push(g/1e3+"s"),h.getLoop()&&d.push("infinite");var f=d.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(h)}function y(o){var a,r=o[1],s=r.length,l={},c={},h={},d="animation-timing-function";function p(t,e,n){for(var i=t.getTracks(),o=t.getMaxTime(),a=0;a<i.length;a++){var r=i[a];if(r.needsAnimate()){var s=r.keyframes,l=r.propName;if(n&&(l=n(l)),l)for(var c=0;c<s.length;c++){var u=s[c],h=Math.round(u.time/o*100)+"%",p=at(u.easing),g=u.rawValue;(Object(w["C"])(g)||Object(w["z"])(g))&&(e[h]=e[h]||{},e[h][l]=u.rawValue,p&&(e[h][d]=p))}}}}for(var g=0;g<s;g++){var f=r[g],y=f.targetName;y?"shape"===y&&p(f,c):!i&&p(f,l)}for(var v in l){var m={};Object(X["b"])(m,t),Object(w["m"])(m,l[v]);var b=Object(u["g"])(m),x=l[v][d];h[v]=b?{transform:b}:{},et(h[v],m),x&&(h[v][d]=x)}var _=!0;for(var v in c){h[v]=h[v]||{};var O=!a;x=c[v][d];O&&(a=new Z["a"]);var S=a.len();a.reset(),h[v].d=tt(t,c[v],a);var M=a.len();if(!O&&S!==M){_=!1;break}x&&(h[v][d]=x)}if(!_)for(var v in h)delete h[v].d;if(!i)for(g=0;g<s;g++){f=r[g],y=f.targetName;"style"===y&&p(f,h,(function(t){return nt[t]}))}var I,j=Object(w["F"])(h),A=!0;for(g=1;g<j.length;g++){var C=j[g-1],D=j[g];if(h[C][Q]!==h[D][Q]){A=!1;break}I=h[C][Q]}if(A&&I){for(var v in h)h[v][Q]&&delete h[v][Q];e[Q]=I}if(Object(w["n"])(j,(function(t){return Object(w["F"])(h[t]).length>0})).length){var T=it(h,n);return T+" "+o[0]+" both"}}for(var v in l){s=y(l[v]);s&&r.push(s)}if(r.length){var m=n.zrId+"-cls-"+J();n.cssNodes["."+m]={animation:r.join(",")},e["class"]=m}}var st=n("76a5"),lt=n("726e"),ct=n("41ef");function ut(t,e,n){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};ht(i,e,n,!0)}else{var o=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=o.fill;if(!a){var r=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||r;l&&(a=Object(ct["d"])(l))}var c=o.lineWidth;if(c){var u=!o.strokeNoScale&&t.transform?t.transform[0]:1;c/=u}i={cursor:"pointer"};a&&(i.fill=a),o.stroke&&(i.stroke=o.stroke),c&&(i["stroke-width"]=c),ht(i,e,n,!0)}}function ht(t,e,n,i){var o=JSON.stringify(t),a=n.cssStyleCache[o];a||(a=n.zrId+"-cls-"+J(),n.cssStyleCache[o]=a,n.cssNodes["."+a+(i?":hover":"")]=t),e["class"]=e["class"]?e["class"]+" "+a:a}var dt=n("697e"),pt=Math.round;function gt(t){return t&&Object(w["C"])(t.src)}function ft(t){return t&&Object(w["w"])(t.toDataURL)}function yt(t,e,n,i){D((function(o,a){var r="fill"===o||"stroke"===o;r&&Object(u["k"])(a)?Tt(e,t,o,i):r&&Object(u["n"])(a)?kt(n,t,o,i):t[o]=r&&"none"===a?"transparent":a}),e,n,!1),Dt(n,t,i)}function vt(t,e){var n=Object(dt["a"])(e);n&&(n.each((function(e,n){null!=e&&(t[(E+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[E+"silent"]="true"))}function mt(t){return Object(u["j"])(t[0]-1)&&Object(u["j"])(t[1])&&Object(u["j"])(t[2])&&Object(u["j"])(t[3]-1)}function bt(t){return Object(u["j"])(t[4])&&Object(u["j"])(t[5])}function xt(t,e,n){if(e&&(!bt(e)||!mt(e))){var i=n?10:1e4;t.transform=mt(e)?"translate("+pt(e[4]*i)/i+" "+pt(e[5]*i)/i+")":Object(u["e"])(e)}}function _t(t,e,n){for(var i=t.points,o=[],a=0;a<i.length;a++)o.push(pt(i[a][0]*n)/n),o.push(pt(i[a][1]*n)/n);e.points=o.join(" ")}function Ot(t){return!t.smooth}function wt(t){var e=Object(w["H"])(t,(function(t){return"string"===typeof t?[t,t]:t}));return function(t,n,i){for(var o=0;o<e.length;o++){var a=e[o],r=t[a[0]];null!=r&&(n[a[1]]=pt(r*i)/i)}}}var St={circle:[wt(["cx","cy","r"])],polyline:[_t,Ot],polygon:[_t,Ot]};function Mt(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}function It(t,e){var n=t.style,i=t.shape,o=St[t.type],a={},r=e.animation,s="path",l=t.style.strokePercent,c=e.compress&&Object(u["f"])(t)||4;if(!o||e.willUpdate||o[1]&&!o[1](i)||r&&Mt(t)||l<1){var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var d=t.path;h&&(d.beginPath(),t.buildPath(d,t.shape),t.pathUpdated());var p=d.getVersion(),g=t,f=g.__svgPathBuilder;g.__svgPathVersion===p&&f&&l===g.__svgPathStrokePercent||(f||(f=g.__svgPathBuilder=new _),f.reset(c),d.rebuildPath(f,l),f.generateStr(),g.__svgPathVersion=p,g.__svgPathStrokePercent=l),a.d=f.getStr()}else{s=t.type;var y=Math.pow(10,c);o[0](i,a,y)}return xt(a,t.transform),yt(a,n,t,e),vt(a,t),e.animation&&rt(t,a,e),e.emphasis&&ut(t,a,e),z(s,t.id+"",a)}function jt(t,e){var n=t.style,i=n.image;if(i&&!Object(w["C"])(i)&&(gt(i)?i=i.src:ft(i)&&(i=i.toDataURL())),i){var o=n.x||0,a=n.y||0,r=n.width,s=n.height,l={href:i,width:r,height:s};return o&&(l.x=o),a&&(l.y=a),xt(l,t.transform),yt(l,n,t,e),vt(l,t),e.animation&&rt(t,l,e),z("image",t.id+"",l)}}function At(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var o=n.font||lt["a"],a=n.x||0,r=Object(u["b"])(n.y||0,Object(p["e"])(o),n.textBaseline),s=u["a"][n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Object(st["b"])(n)){var c="",h=n.fontStyle,d=Object(st["c"])(n.fontSize);if(!parseFloat(d))return;var g=n.fontFamily||lt["b"],f=n.fontWeight;c+="font-size:"+d+";font-family:"+g+";",h&&"normal"!==h&&(c+="font-style:"+h+";"),f&&"normal"!==f&&(c+="font-weight:"+f+";"),l.style=c}else l.style="font: "+o;return i.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),r&&(l.y=r),xt(l,t.transform),yt(l,n,t,e),vt(l,t),e.animation&&rt(t,l,e),z("text",t.id+"",l,void 0,i)}}function Ct(t,e){return t instanceof h["b"]?It(t,e):t instanceof d["a"]?jt(t,e):t instanceof g["a"]?At(t,e):void 0}function Dt(t,e,n){var i=t.style;if(Object(u["i"])(i)){var o=Object(u["h"])(t),a=n.shadowCache,r=a[o];if(!r){var s=t.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var h=i.shadowOffsetX||0,d=i.shadowOffsetY||0,p=i.shadowBlur,g=Object(u["p"])(i.shadowColor),f=g.opacity,y=g.color,v=p/2/l,m=p/2/c,b=v+" "+m;r=n.zrId+"-s"+n.shadowIdx++,n.defs[r]=z("filter",r,{id:r,x:"-100%",y:"-100%",width:"300%",height:"300%"},[z("feDropShadow","",{dx:h/l,dy:d/c,stdDeviation:b,"flood-color":y,"flood-opacity":f})]),a[o]=r}e.filter=Object(u["d"])(r)}}function Tt(t,e,n,i){var o,a=t[n],r={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(u["m"])(a))o="linearGradient",r.x1=a.x,r.y1=a.y,r.x2=a.x2,r.y2=a.y2;else{if(!Object(u["o"])(a))return void 0;o="radialGradient",r.cx=Object(w["P"])(a.x,.5),r.cy=Object(w["P"])(a.y,.5),r.r=Object(w["P"])(a.r,.5)}for(var s=a.colorStops,l=[],c=0,h=s.length;c<h;++c){var d=100*Object(u["q"])(s[c].offset)+"%",p=s[c].color,g=Object(u["p"])(p),f=g.color,y=g.opacity,v={offset:d};v["stop-color"]=f,y<1&&(v["stop-opacity"]=y),l.push(z("stop",c+"",v))}var m=z(o,"",r,l),b=G(m),x=i.gradientCache,_=x[b];_||(_=i.zrId+"-g"+i.gradientIdx++,x[b]=_,r.id=_,i.defs[_]=z(o,_,r,l)),e[n]=Object(u["d"])(_)}function kt(t,e,n,i){var o,a=t.style[n],r=t.getBoundingRect(),s={},l=a.repeat,c="no-repeat"===l,h="repeat-x"===l,d="repeat-y"===l;if(Object(u["l"])(a)){var p=a.imageWidth,g=a.imageHeight,f=void 0,y=a.image;if(Object(w["C"])(y)?f=y:gt(y)?f=y.src:ft(y)&&(f=y.toDataURL()),"undefined"===typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";Object(w["b"])(p,v),Object(w["b"])(g,v)}else if(null==p||null==g){var m=function(t,e){if(t){var n=t.elm,i=p||e.width,o=g||e.height;"pattern"===t.tag&&(h?(o=1,i/=r.width):d&&(i=1,o/=r.height)),t.attrs.width=i,t.attrs.height=o,n&&(n.setAttribute("width",i),n.setAttribute("height",o))}},b=Object(Y["a"])(f,null,t,(function(t){c||m(S,t),m(o,t)}));b&&b.width&&b.height&&(p=p||b.width,g=g||b.height)}o=z("image","img",{href:f,width:p,height:g}),s.width=p,s.height=g}else a.svgElement&&(o=Object(w["d"])(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(o){var x,_;c?x=_=1:h?(_=1,x=s.width/r.width):d?(x=1,_=s.height/r.height):s.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(s.width=x),null==_||isNaN(_)||(s.height=_);var O=Object(u["g"])(a);O&&(s.patternTransform=O);var S=z("pattern","",s,[o]),M=G(S),I=i.patternCache,j=I[M];j||(j=i.zrId+"-p"+i.patternIdx++,I[M]=j,s.id=j,S=i.defs[j]=z("pattern",j,s,[o])),e[n]=Object(u["d"])(j)}}function Lt(t,e,n){var i=n.clipPathCache,o=n.defs,a=i[t.id];if(!a){a=n.zrId+"-c"+n.clipPathIdx++;var r={id:a};i[t.id]=a,o[a]=z("clipPath",a,r,[It(t,n)])}e["clip-path"]=Object(u["d"])(a)}function Pt(t){return document.createTextNode(t)}function Nt(t,e,n){t.insertBefore(e,n)}function Et(t,e){t.removeChild(e)}function Rt(t,e){t.appendChild(e)}function zt(t){return t.parentNode}function Vt(t){return t.nextSibling}function Bt(t,e){t.textContent=e}var Gt=58,Ht=120,Ft=z("","");function Wt(t){return void 0===t}function Yt(t){return void 0!==t}function Xt(t,e,n){for(var i={},o=e;o<=n;++o){var a=t[o].key;void 0!==a&&(i[a]=o)}return i}function Zt(t,e){var n=t.key===e.key,i=t.tag===e.tag;return i&&n}function Ut(t){var e,n=t.children,i=t.tag;if(Yt(i)){var o=t.elm=R(i);if(Jt(Ft,t),Object(w["t"])(n))for(e=0;e<n.length;++e){var a=n[e];null!=a&&Rt(o,Ut(a))}else Yt(t.text)&&!Object(w["A"])(t.text)&&Rt(o,Pt(t.text))}else t.elm=Pt(t.text);return t.elm}function qt(t,e,n,i,o){for(;i<=o;++i){var a=n[i];null!=a&&Nt(t,Ut(a),e)}}function Kt(t,e,n,i){for(;n<=i;++n){var o=e[n];if(null!=o)if(Yt(o.tag)){var a=zt(o.elm);Et(a,o.elm)}else Et(t,o.elm)}}function Jt(t,e){var n,i=e.elm,o=t&&t.attrs||{},a=e.attrs||{};if(o!==a){for(n in a){var r=a[n],s=o[n];s!==r&&(!0===r?i.setAttribute(n,""):!1===r?i.removeAttribute(n):"style"===n?i.style.cssText=r:n.charCodeAt(0)!==Ht?i.setAttribute(n,r):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(P,n,r):n.charCodeAt(3)===Gt?i.setAttributeNS(N,n,r):n.charCodeAt(5)===Gt?i.setAttributeNS(L,n,r):i.setAttribute(n,r))}for(n in o)n in a||i.removeAttribute(n)}}function $t(t,e,n){var i,o,a,r,s=0,l=0,c=e.length-1,u=e[0],h=e[c],d=n.length-1,p=n[0],g=n[d];while(s<=c&&l<=d)null==u?u=e[++s]:null==h?h=e[--c]:null==p?p=n[++l]:null==g?g=n[--d]:Zt(u,p)?(Qt(u,p),u=e[++s],p=n[++l]):Zt(h,g)?(Qt(h,g),h=e[--c],g=n[--d]):Zt(u,g)?(Qt(u,g),Nt(t,u.elm,Vt(h.elm)),u=e[++s],g=n[--d]):Zt(h,p)?(Qt(h,p),Nt(t,h.elm,u.elm),h=e[--c],p=n[++l]):(Wt(i)&&(i=Xt(e,s,c)),o=i[p.key],Wt(o)?Nt(t,Ut(p),u.elm):(a=e[o],a.tag!==p.tag?Nt(t,Ut(p),u.elm):(Qt(a,p),e[o]=void 0,Nt(t,a.elm,u.elm))),p=n[++l]);(s<=c||l<=d)&&(s>c?(r=null==n[d+1]?null:n[d+1].elm,qt(t,r,n,l,d)):Kt(t,e,s,c))}function Qt(t,e){var n=e.elm=t.elm,i=t.children,o=e.children;t!==e&&(Jt(t,e),Wt(e.text)?Yt(i)&&Yt(o)?i!==o&&$t(n,i,o):Yt(o)?(Yt(t.text)&&Bt(n,""),qt(n,null,o,0,o.length-1)):Yt(i)?Kt(n,i,0,i.length-1):Yt(t.text)&&Bt(n,""):t.text!==e.text&&(Yt(i)&&Kt(n,i,0,i.length-1),Bt(n,e.text)))}function te(t,e){if(Zt(t,e))Qt(t,e);else{var n=t.elm,i=zt(n);Ut(e),null!==i&&(Nt(i,e.elm,Vt(n)),Kt(i,[t],0,0))}return e}var ee=n("3437"),ne=0,ie=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=oe("refreshHover"),this.configLayer=oe("configLayer"),this.storage=e,this._opts=n=Object(w["m"])({},n),this.root=t,this._id="zr"+ne++,this._oldVNode=W(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=R("svg");Jt(null,this._oldVNode),i.appendChild(o),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",te(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Ct(t,F(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,o=F(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress,o.emphasis=t.emphasis;var a=[],r=this._bgVNode=ae(n,i,this._backgroundColor,o);r&&a.push(r);var s=t.compress?null:this._mainVNode=z("g","main",{},[]);this._paintList(e,o,s?s.children:a),s&&a.push(s);var l=Object(w["H"])(Object(w["F"])(o.defs),(function(t){return o.defs[t]}));if(l.length&&a.push(z("defs","defs",{},l)),t.animation){var c=H(o.cssNodes,o.cssAnims,{newline:!0});if(c){var u=z("style","stl",{},[],c);a.push(u)}}return W(n,i,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},G(this.renderToVNode({animation:Object(w["P"])(t.cssAnimation,!0),emphasis:Object(w["P"])(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(w["P"])(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,o,a=t.length,r=[],s=0,l=0,c=0;c<a;c++){var u=t[c];if(!u.invisible){var h=u.__clipPaths,d=h&&h.length||0,p=o&&o.length||0,g=void 0;for(g=Math.max(d-1,p-1);g>=0;g--)if(h&&o&&h[g]===o[g])break;for(var f=p-1;f>g;f--)s--,i=r[s-1];for(var y=g+1;y<d;y++){var v={};Lt(h[y],v,e);var m=z("g","clip-g-"+l++,v,[]);(i?i.children:n).push(m),r[s++]=m,i=m}o=h;var b=Ct(u,e);b&&(i?i.children:n).push(b)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,o=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&o&&(o.style.display="none",t=Object(ee["b"])(i,0,n),e=Object(ee["b"])(i,1,n),o.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,o){var a=o.style;a.width=t+"px",a.height=e+"px"}if(Object(u["n"])(this._backgroundColor))this.refresh();else{var r=this._svgDom;r&&(r.setAttribute("width",t),r.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=Object(u["c"])(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function oe(t){return function(){0}}function ae(t,e,n,i){var o;if(n&&"none"!==n)if(o=z("rect","bg",{width:t,height:e,x:"0",y:"0"}),Object(u["k"])(n))Tt({fill:n},o.attrs,"fill",i);else if(Object(u["n"])(n))kt({style:{fill:n},dirty:w["L"],getBoundingRect:function(){return{width:t,height:e}}},o.attrs,"fill",i);else{var a=Object(u["p"])(n),r=a.color,s=a.opacity;o.attrs.fill=r,s<1&&(o.attrs["fill-opacity"]=s)}return o}var re=ie;function se(t){t.registerPainter("svg",re)}var le=n("9ab4"),ce=n("4319");function ue(t){return null==t?0:t.length||1}function he(t){return t}var de=function(){function t(t,e,n,i,o,a){this._old=t,this._new=e,this._oldKeyGetter=n||he,this._newKeyGetter=i||he,this.context=o,this._diffModeMultiple="multiple"===a}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var r=i[a],s=n[r],l=ue(s);if(l>1){var c=s.shift();1===s.length&&(n[r]=s[0]),this._update&&this._update(c,a)}else 1===l?(n[r]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var r=0;r<o.length;r++){var s=o[r],l=n[s],c=i[s],u=ue(l),h=ue(c);if(u>1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),i[s]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[s]=null;else if(1===u&&1===h)this._update&&this._update(c,l),i[s]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[s]=null;else if(u>1)for(var d=0;d<u;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(a,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],a=ue(o);if(a>1)for(var r=0;r<a;r++)this._add&&this._add(o[r]);else 1===a&&this._add&&this._add(o);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var r="_ec_"+this[i](t[a],a);if(o||(n[a]=r),e){var s=e[r],l=ue(s);0===l?(e[r]=a,o&&n.push(r)):1===l?e[r]=[s,a]:s.push(a)}}},t}(),pe=de,ge=n("2b17"),fe=n("07fd"),ye=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function ve(t,e){var n={},i=n.encode={},o=Object(w["f"])(),a=[],r=[],s={};Object(w["k"])(t.dimensions,(function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){0;var c=n.coordDimIndex;me(i,l)[c]=e,n.isExtraCoord||(o.set(l,1),xe(n.type)&&(a[0]=e),me(s,l)[c]=t.getDimensionIndex(n.name)),n.defaultTooltip&&r.push(e)}fe["i"].each((function(t,e){var o=me(i,e),a=n.otherDims[e];null!=a&&!1!==a&&(o[a]=n.name)}))}));var l=[],c={};o.each((function(t,e){var n=i[e];c[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(w["H"])(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=c;var u=i.label;u&&u.length&&(a=u.slice());var h=i.tooltip;return h&&h.length?r=h.slice():r.length||(r=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=r,n.userOutput=new ye(s,e),n}function me(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function be(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function xe(t){return!("ordinal"===t||"time"===t)}var _e=function(){function t(t){this.otherDims={},null!=t&&w["m"](this,t)}return t}(),Oe=_e,we=n("e0d3"),Se=n("861c"),Me=n("ec6f"),Ie=n("d0ce"),je=Object(we["o"])(),Ae={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Ce=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=ke(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(w["P"])(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Object(Me["f"])(this.source),n=!Le(t),i="",o=[],a=0,r=0;a<t;a++){var s=void 0,l=void 0,c=void 0,u=this.dimensions[r];if(u&&u.storeDimIndex===a)s=e?u.name:null,l=u.type,c=u.ordinalMeta,r++;else{var h=this.getSourceDimension(a);h&&(s=e?h.name:null,l=h.type)}o.push({property:s,type:l,ordinalMeta:c}),!e||null==s||u&&u.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=Ae[l]||"f",c&&(i+=c.uid),i+="$"}var d=this.source,p=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:o,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===e)o.isCalculationCoord||(i=o.name),n++;else{var a=this.getSourceDimension(e);a&&(i=a.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function De(t){return t instanceof Ce}function Te(t){for(var e=Object(w["f"])(),n=0;n<(t||[]).length;n++){var i=t[n],o=Object(w["A"])(i)?i.name:i;null!=o&&null==e.get(o)&&e.set(o,n)}return e}function ke(t){var e=je(t);return e.dimNameMap||(e.dimNameMap=Te(t.dimensionsDefine))}function Le(t){return t>30}var Pe,Ne,Ee,Re,ze,Ve,Be,Ge=w["A"],He=w["H"],Fe="undefined"===typeof Int32Array?Array:Int32Array,We="e\0\0",Ye=-1,Xe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Ze=["_approximateExtent"],Ue=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;De(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var o={},a=[],r={},s=!1,l={},c=0;c<n.length;c++){var u=n[c],h=w["C"](u)?new Oe({name:u}):u instanceof Oe?u:new Oe(u),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};a.push(d),o[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(r[d]=[]),0===p.itemName&&(this._nameDimIdx=c),0===p.itemId&&(this._idDimIdx=c),i&&(h.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=r,this._dimOmitted){var g=this._dimIdxToName=w["f"]();w["k"](a,(function(t){g.set(o[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(w["z"](t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,o=this;if(t instanceof Ie["b"]&&(i=t),!i){var a=this.dimensions,r=Object(Me["e"])(t)||w["u"](t)?new ge["a"](t,a.length):t;i=new Ie["b"];var s=He(a,(function(t){return{type:o._dimInfos[t].type,property:t}}));i.initData(r,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=ve(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,o=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=i;r<o;r++){var s=r-i;this._nameList[r]=e[s],a&&Be(this,r)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==fe["g"]&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,r=i.getSource().sourceFormat,s=r===fe["f"];if(s&&!i.pure)for(var l=[],c=t;c<e;c++){var u=i.getItem(c,l);if(!this.hasItemOption&&Object(we["m"])(u)&&(this.hasItemOption=!0),u){var h=u.name;null==o[c]&&null!=h&&(o[c]=Object(we["e"])(h,null));var d=u.id;null==a[c]&&null!=d&&(a[c]=Object(we["e"])(d,null))}}if(this._shouldMakeIdFromName())for(c=t;c<e;c++)Be(this,c);Pe(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){Ge(t)?w["m"](this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=Ee(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return Ne(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return w["t"](t)?i.getValues(He(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var i=n[e];return null==i||isNaN(i)?Ye:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){w["w"](t)&&(n=e,e=t,t=[]);var i=n||this,o=He(Re(t),this._getStoreDimIndex,this);this._store.each(o,i?w["c"](e,i):e)},t.prototype.filterSelf=function(t,e,n){w["w"](t)&&(n=e,e=t,t=[]);var i=n||this,o=He(Re(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?w["c"](e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=w["F"](t),o=[];return w["k"](i,(function(i){var a=e._getStoreDimIndex(i);n[a]=t[i],o.push(a)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){w["w"](t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var o=n||i||this,a=He(Re(t),this._getStoreDimIndex,this),r=Ve(this);return r._store=this._store.map(a,o?w["c"](e,o):e),r},t.prototype.modify=function(t,e,n,i){var o=n||i||this;var a=He(Re(t),this._getStoreDimIndex,this);this._store.modify(a,o?w["c"](e,o):e)},t.prototype.downSample=function(t,e,n,i){var o=Ve(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},t.prototype.lttbDownSample=function(t,e){var n=Ve(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new ce["a"](n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new pe(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return Ne(t,e)}),(function(t){return Ne(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},Ge(t)?w["m"](this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var o=i[e];return null==o&&(o=this.getVisual(e),w["t"](o)?o=o.slice():Ge(o)&&(o=w["m"]({},o)),i[e]=o),o},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ge(e)?w["m"](i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){Ge(t)?w["m"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?w["m"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Object(Se["b"])(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){w["k"](this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:He(this.dimensions,this._getDimInfo,this),this.hostModel)),ze(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];w["w"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(w["S"](arguments)))})},t.internalField=function(){Pe=function(t){var e=t._invertedIndicesMap;w["k"](e,(function(n,i){var o=t._dimInfos[i],a=o.ordinalMeta,r=t._store;if(a){n=e[i]=new Fe(a.categories.length);for(var s=0;s<n.length;s++)n[s]=Ye;for(s=0;s<r.count();s++)n[r.get(o.storeDimIndex,s)]=s}}))},Ee=function(t,e,n){return Object(we["e"])(t._getCategory(e,n),null)},Ne=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=Ee(t,t._idDimIdx,e)),null==n&&(n=We+e),n},Re=function(t){return w["t"](t)||(t=null!=t?[t]:[]),t},Ve=function(e){var n=new t(e._schema?e._schema:He(e.dimensions,e._getDimInfo,e),e.hostModel);return ze(n,e),n},ze=function(t,e){w["k"](Xe.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,w["k"](Ze,(function(n){t[n]=w["d"](e[n])})),t._calculationInfo=w["m"]({},e._calculationInfo)},Be=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,r=n[e],s=i[e];if(null==r&&null!=o&&(n[e]=r=Ee(t,o,e)),null==s&&null!=a&&(i[e]=s=Ee(t,a,e)),null==s&&null!=r){var l=t._nameRepeatCount,c=l[r]=(l[r]||0)+1;s=r,c>1&&(s+="__ec__"+c),i[e]=s}}}(),t}(),qe=Ue,Ke=n("0f99");function Je(t,e){Object(Me["e"])(t)||(t=Object(Me["c"])(t)),e=e||{};var n=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],o=Object(w["f"])(),a=[],r=Qe(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Le(r),l=i===t.dimensionsDefine,c=l?ke(t):Te(i),u=e.encodeDefine;!u&&e.encodeDefaulter&&(u=e.encodeDefaulter(t,r));for(var h=Object(w["f"])(u),d=new Ie["a"](r),p=0;p<d.length;p++)d[p]=-1;function g(t){var e=d[t];if(e<0){var n=i[t],o=Object(w["A"])(n)?n:{name:n},r=new Oe,s=o.name;null!=s&&null!=c.get(s)&&(r.name=r.displayName=s),null!=o.type&&(r.type=o.type),null!=o.displayName&&(r.displayName=o.displayName);var l=a.length;return d[t]=l,r.storeDimIndex=t,a.push(r),r}return a[e]}if(!s)for(p=0;p<r;p++)g(p);h.each((function(t,e){var n=Object(we["r"])(t).slice();if(1===n.length&&!Object(w["C"])(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);Object(w["k"])(n,(function(t,n){var o=Object(w["C"])(t)?c.get(t):t;null!=o&&o<r&&(i[n]=o,y(g(o),e,n))}))}}));var f=0;function y(t,e,n){null!=fe["i"].get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,o.set(e,!0))}Object(w["k"])(n,(function(t){var e,n,i,o;if(Object(w["C"])(t))e=t,o={};else{o=t,e=o.name;var a=o.ordinalMeta;o.ordinalMeta=null,o=Object(w["m"])({},o),o.ordinalMeta=a,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var s=h.get(e);if(!1!==s){if(s=Object(we["r"])(s),!s.length)for(var c=0;c<(n&&n.length||1);c++){while(f<r&&null!=g(f).coordDim)f++;f<r&&s.push(f++)}Object(w["k"])(s,(function(t,a){var r=g(t);if(l&&null!=o.type&&(r.type=o.type),y(Object(w["i"])(r,o),e,a),null==r.name&&n){var s=n[a];!Object(w["A"])(s)&&(s={name:s}),r.name=r.displayName=s.name,r.defaultTooltip=s.defaultTooltip}i&&Object(w["i"])(r.otherDims,i)}))}}));var v=e.generateCoord,m=e.generateCoordCount,b=null!=m;m=v?m||1:0;var x=v||"value";function _(t){null==t.name&&(t.name=t.coordDim)}if(s)Object(w["k"])(a,(function(t){_(t)})),a.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var O=0;O<r;O++){var S=g(O),M=S.coordDim;null==M&&(S.coordDim=tn(x,o,b),S.coordDimIndex=0,(!v||m<=0)&&(S.isExtraCoord=!0),m--),_(S),null!=S.type||Object(Ke["b"])(t,O)!==Ke["a"].Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return $e(a),new Ce({source:t,dimensions:a,fullDimensionCount:r,dimensionOmitted:s})}function $e(t){for(var e=Object(w["f"])(),n=0;n<t.length;n++){var i=t[n],o=i.name,a=e.get(o)||0;a>0&&(i.name=o+(a-1)),a++,e.set(o,a)}}function Qe(t,e,n,i){var o=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(w["k"])(e,(function(t){var e;Object(w["A"])(t)&&(e=t.dimsDef)&&(o=Math.max(o,e.length))})),o}function tn(t,e,n){if(n||e.hasKey(t)){var i=0;while(e.hasKey(t+i))i++;t+=i}return e.set(t,!0),t}var en=n("1f39"),nn=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(w["f"])(),this.categoryAxisMap=Object(w["f"])(),this.coordSysName=t}return t}();function on(t){var e=t.get("coordinateSystem"),n=new nn(e),i=an[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var an={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",we["b"]).models[0],a=t.getReferringComponents("yAxis",we["b"]).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),rn(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),rn(a)&&(i.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var o=t.getReferringComponents("singleAxis",we["b"]).models[0];e.coordSysDims=["single"],n.set("single",o),rn(o)&&(i.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var o=t.getReferringComponents("polar",we["b"]).models[0],a=o.findAxisModel("radiusAxis"),r=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",r),rn(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),rn(r)&&(i.set("angle",r),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),r=e.coordSysDims=a.dimensions.slice();Object(w["k"])(a.parallelAxisIndex,(function(t,a){var s=o.getComponent("parallelAxis",t),l=r[a];n.set(l,s),rn(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=a))}))}};function rn(t){return"category"===t.get("type")}function sn(t,e,n){n=n||{};var i,o,a,r=n.byIndex,s=n.stackedCoordDimension;ln(e)?i=e:(o=e.schema,i=o.dimensions,a=e.store);var l,c,u,h,d=!(!t||!t.get("stack"));if(Object(w["k"])(i,(function(t,e){Object(w["C"])(t)&&(i[e]=t={name:t}),d&&!t.isExtraCoord&&(r||l||!t.ordinalMeta||(l=t),c||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(c=t))})),!c||r||l||(r=!0),c){u="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=c.coordDim,g=c.type,f=0;Object(w["k"])(i,(function(t){t.coordDim===p&&f++}));var y={name:u,coordDim:p,coordDimIndex:f,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:h,coordDim:h,coordDimIndex:f+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(a&&(y.storeDimIndex=a.ensureCalculationDimension(h,g),v.storeDimIndex=a.ensureCalculationDimension(u,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:h,stackResultDimension:u}}function ln(t){return!De(t.schema)}function cn(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function un(t,e){return cn(t,e)?t.getCalculationInfo("stackResultDimension"):e}function hn(t,e){var n,i=t.get("coordinateSystem"),o=en["a"].get(i);return e&&e.coordSysDims&&(n=w["H"](e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var o=i.get("type");n.type=be(o)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}function dn(t,e,n){var i,o;return n&&w["k"](t,(function(t,a){var r=t.coordDim,s=n.categoryAxisMap.get(r);s&&(null==i&&(i=a),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==i||(t[i].otherDims.itemName=0),i}function pn(t,e,n){n=n||{};var i,o=e.getSourceManager(),a=!1;t?(a=!0,i=Object(Me["c"])(t)):(i=o.getSource(),a=i.sourceFormat===fe["f"]);var r=on(e),s=hn(e,r),l=n.useEncodeDefaulter,c=w["w"](l)?l:l?w["h"](Ke["c"],s,e):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!a},h=Je(i,u),d=dn(h.dimensions,n.createInvertedIndices,r),p=a?null:o.getSharedDataStore(h),g=sn(e,{schema:h,store:p}),f=new qe(h,e);f.setCalculationInfo(g);var y=null!=d&&gn(i)?function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)}:null;return f.hasItemOption=!1,f.initData(a?i:p,null,y),f}function gn(t){if(t.sourceFormat===fe["f"]){var e=fn(t.data||[]);return!w["t"](Object(we["h"])(e))}}function fn(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var yn=pn,vn=n("4f85"),mn=n("a15a"),bn=n("2dc5"),xn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t){return yn(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new bn["a"],n=Object(mn["a"])("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),a="none"===i?"circle":i,r=.8*t.itemHeight,s=Object(mn["a"])(a,(t.itemWidth-r)/2,(t.itemHeight-r)/2,r,r,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?o:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),a.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(vn["b"]),_n=xn,On=n("deca"),wn=n("2306"),Sn=n("7d6c");function Mn(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var o=Object(ge["e"])(t,e,n[0]);return null!=o?o+"":null}if(i){for(var a=[],r=0;r<n.length;r++)a.push(Object(ge["e"])(t,e,n[r]));return a.join(" ")}}function In(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(w["t"])(e))return e+"";for(var i=[],o=0;o<n.length;o++){var a=t.getDimensionIndex(n[o]);a>=0&&i.push(e[a])}return i.join(" ")}var jn=n("7837"),An=function(t){function e(e,n,i,o){var a=t.call(this)||this;return a.updateData(e,n,i,o),a}return Object(le["a"])(e,t),e.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();var a=Object(mn["a"])(t,-1,-1,2,2,null,o);a.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=Cn,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Object(Sn["r"])(this.childAt(0))},e.prototype.downplay=function(){Object(Sn["C"])(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,o){this.silent=!1;var a=t.getItemVisual(n,"symbol")||"circle",r=t.hostModel,s=e.getSymbolSize(t,n),l=a!==this._symbolType,c=o&&o.disableAnimation;if(l){var u=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,s,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(d):On["h"](h,d,r,n),Object(On["g"])(h)}if(this._updateCommon(t,n,s,i,o),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,On["c"](h,d,r,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,o){var a,r,s,l,c,u,h,p,g,f=this.childAt(0),y=t.hostModel;if(i&&(a=i.emphasisItemStyle,r=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,c=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,g=i.cursorStyle,u=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),m=v.getModel("emphasis");a=m.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),r=v.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),c=m.get("blurScope"),u=m.get("disabled"),h=Object(jn["e"])(v),p=m.getShallow("scale"),g=v.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(b||0)*Math.PI/180||0);var x=Object(mn["b"])(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),g&&f.attr("cursor",g);var _=t.getItemVisual(e,"style"),O=_.fill;if(f instanceof d["a"]){var S=f.style;f.useStyle(Object(w["m"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},_))}else f.__isEmptyBrush?f.useStyle(Object(w["m"])({},_)):f.useStyle(_),f.style.decal=null,f.setColor(O,o&&o.symbolInnerColor),f.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),I=this._z2;null!=M?null==I&&(this._z2=f.z2,f.z2+=M):null!=I&&(f.z2=I,this._z2=null);var j=o&&o.useNameLabel;function A(e){return j?t.getName(e):Mn(t,e)}Object(jn["g"])(f,h,{labelFetcher:y,labelDataIndex:e,defaultText:A,inheritColor:O,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=a,f.ensureState("select").style=s,f.ensureState("blur").style=r;var D=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;C.scaleX=this._sizeX*D,C.scaleY=this._sizeY*D,this.setSymbolScale(1),Object(Sn["J"])(this,l,c,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),o=Object(Se["a"])(this).dataIndex,a=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var r=i.getTextContent();r&&On["e"](r,{style:{opacity:0}},e,{dataIndex:o,removeOpt:a,cb:function(){i.removeTextContent()}})}else i.removeTextContent();On["e"](i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:a})},e.getSymbolSize=function(t,e){return Object(mn["c"])(t.getItemVisual(e,"symbolSize"))},e}(bn["a"]);function Cn(t,e){this.parent.drift(t,e)}var Dn=An;function Tn(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function kn(t){return null==t||Object(w["A"])(t)||(t={isIgnore:t}),t||{}}function Ln(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(jn["e"])(e),cursorStyle:e.get("cursor")}}var Pn=function(){function t(t){this.group=new bn["a"],this._SymbolCtor=t||Dn}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=kn(e);var n=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,r=e.disableAnimation,s=Ln(t),l={disableAnimation:r},c=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add((function(i){var o=c(i);if(Tn(t,o,i,e)){var r=new a(t,i,s,l);r.setPosition(o),t.setItemGraphicEl(i,r),n.add(r)}})).update((function(u,h){var d=o.getItemGraphicEl(h),p=c(u);if(Tn(t,p,u,e)){var g=t.getItemVisual(u,"symbol")||"circle",f=d&&d.getSymbolType&&d.getSymbolType();if(!d||f&&f!==g)n.remove(d),d=new a(t,u,s,l),d.setPosition(p);else{d.updateData(t,u,s,l);var y={x:p[0],y:p[1]};r?d.attr(y):On["h"](d,y,i)}n.add(d),t.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=c,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ln(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=kn(n);for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(Tn(e,a,o,n)){var r=new this._SymbolCtor(e,o,this._seriesScope);r.traverse(i),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r)}}},t.prototype.eachRendered=function(t){wn["traverseElements"](this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),Nn=Pn;function En(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),a=Rn(o,n),r=i.dim,s=o.dim,l=e.mapDimension(s),c=e.mapDimension(r),u="x"===s||"radius"===s?1:0,h=Object(w["H"])(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return cn(e,h[0])&&(d=!0,h[0]=p),cn(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:r,stacked:!!d,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Rn(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:Object(w["z"])(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function zn(t,e,n,i){var o=NaN;t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart);var a=t.baseDataOffset,r=[];return r[a]=n.get(t.baseDim,i),r[1-a]=o,e.dataToPoint(r)}var Vn="undefined"!==typeof Float32Array,Bn=Vn?Float32Array:Array;function Gn(t){return Object(w["t"])(t)?Vn?new Float32Array(t):t:new Bn(t)}function Hn(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function Fn(t,e,n,i,o,a,r,s){for(var l=Hn(t,e),c=[],u=[],h=[],d=[],p=[],g=[],f=[],y=En(o,e,r),v=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],_=!0,O=void 0,w=void 0;switch(x.cmd){case"=":O=2*x.idx,w=2*x.idx1;var S=v[O],M=v[O+1],I=m[w],j=m[w+1];(isNaN(S)||isNaN(M))&&(S=I,M=j),c.push(S,M),u.push(I,j),h.push(n[O],n[O+1]),d.push(i[w],i[w+1]),f.push(e.getRawIndex(x.idx1));break;case"+":var A=x.idx,C=y.dataDimsForPoint,D=o.dataToPoint([e.get(C[0],A),e.get(C[1],A)]);w=2*A,c.push(D[0],D[1]),u.push(m[w],m[w+1]);var T=zn(y,o,e,A);h.push(T[0],T[1]),d.push(i[w],i[w+1]),f.push(e.getRawIndex(A));break;case"-":_=!1}_&&(p.push(x),g.push(g.length))}g.sort((function(t,e){return f[t]-f[e]}));var k=c.length,L=Gn(k),P=Gn(k),N=Gn(k),E=Gn(k),R=[];for(b=0;b<g.length;b++){var z=g[b],V=2*b,B=2*z;L[V]=c[B],L[V+1]=c[B+1],P[V]=u[B],P[V+1]=u[B+1],N[V]=h[B],N[V+1]=h[B+1],E[V]=d[B],E[V+1]=d[B+1],R[b]=p[z]}return{current:L,next:P,stackedOnCurrent:N,stackedOnNext:E,status:R}}var Wn=n("48a9"),Yn=n("4a3f"),Xn=Math.min,Zn=Math.max;function Un(t,e){return isNaN(t)||isNaN(e)}function qn(t,e,n,i,o,a,r,s,l){for(var c,u,h,d,p,g,f=n,y=0;y<i;y++){var v=e[2*f],m=e[2*f+1];if(f>=o||f<0)break;if(Un(v,m)){if(l){f+=a;continue}break}if(f===n)t[a>0?"moveTo":"lineTo"](v,m),h=v,d=m;else{var b=v-c,x=m-u;if(b*b+x*x<.5){f+=a;continue}if(r>0){var _=f+a,O=e[2*_],w=e[2*_+1];while(O===v&&w===m&&y<i)y++,_+=a,f+=a,O=e[2*_],w=e[2*_+1],v=e[2*f],m=e[2*f+1],b=v-c,x=m-u;var S=y+1;if(l)while(Un(O,w)&&S<i)S++,_+=a,O=e[2*_],w=e[2*_+1];var M=.5,I=0,j=0,A=void 0,C=void 0;if(S>=i||Un(O,w))p=v,g=m;else{I=O-c,j=w-u;var D=v-c,T=O-v,k=m-u,L=w-m,P=void 0,N=void 0;if("x"===s){P=Math.abs(D),N=Math.abs(T);var E=I>0?1:-1;p=v-E*P*r,g=m,A=v+E*N*r,C=m}else if("y"===s){P=Math.abs(k),N=Math.abs(L);var R=j>0?1:-1;p=v,g=m-R*P*r,A=v,C=m+R*N*r}else P=Math.sqrt(D*D+k*k),N=Math.sqrt(T*T+L*L),M=N/(N+P),p=v-I*r*(1-M),g=m-j*r*(1-M),A=v+I*r*M,C=m+j*r*M,A=Xn(A,Zn(O,v)),C=Xn(C,Zn(w,m)),A=Zn(A,Xn(O,v)),C=Zn(C,Xn(w,m)),I=A-v,j=C-m,p=v-I*P/N,g=m-j*P/N,p=Xn(p,Zn(c,v)),g=Xn(g,Zn(u,m)),p=Zn(p,Xn(c,v)),g=Zn(g,Xn(u,m)),I=v-p,j=m-g,A=v+I*N/P,C=m+j*N/P}t.bezierCurveTo(h,d,p,g,v,m),h=A,d=C}else t.lineTo(v,m)}c=v,u=m,f+=a}return y}var Kn=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),Jn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Object(le["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Kn},e.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;o>0;o--)if(!Un(n[2*o-2],n[2*o-1]))break;for(;i<o;i++)if(!Un(n[2*i],n[2*i+1]))break}while(i<o)i+=qn(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path,a=o.data,r=Z["a"].CMD,s="x"===e,l=[],c=0;c<a.length;){var u=a[c++],h=void 0,d=void 0,p=void 0,g=void 0,f=void 0,y=void 0,v=void 0;switch(u){case r.M:n=a[c++],i=a[c++];break;case r.L:if(h=a[c++],d=a[c++],v=s?(t-n)/(h-n):(t-i)/(d-i),v<=1&&v>=0){var m=s?(d-i)*v+i:(h-n)*v+n;return s?[t,m]:[m,t]}n=h,i=d;break;case r.C:h=a[c++],d=a[c++],p=a[c++],g=a[c++],f=a[c++],y=a[c++];var b=s?Object(Yn["f"])(n,h,p,f,t,l):Object(Yn["f"])(i,d,g,y,t,l);if(b>0)for(var x=0;x<b;x++){var _=l[x];if(_<=1&&_>=0){m=s?Object(Yn["a"])(i,d,g,y,_):Object(Yn["a"])(n,h,p,f,_);return s?[t,m]:[m,t]}}n=f,i=y;break}}},e}(h["b"]),$n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e}(Kn),Qn=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new $n},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,a=n.length/2,r=e.smoothMonotone;if(e.connectNulls){for(;a>0;a--)if(!Un(n[2*a-2],n[2*a-1]))break;for(;o<a;o++)if(!Un(n[2*o],n[2*o+1]))break}while(o<a){var s=qn(t,n,o,a,a,1,e.smooth,r,e.connectNulls);qn(t,i,o+s-1,s,a,-1,e.stackedOnSmooth,r,e.connectNulls),o+=s+1,t.closePath()}},e}(h["b"]),ti=n("e887"),ei=n("c7a2"),ni=n("4aa2"),ii=n("3842");function oi(t,e,n,i,o){var a=t.getArea(),r=a.x,s=a.y,l=a.width,c=a.height,u=n.get(["lineStyle","width"])||2;r-=u/2,s-=u/2,l+=u,c+=u,l=Math.ceil(l),r!==Math.floor(r)&&(r=Math.floor(r),l++);var h=new ei["a"]({shape:{x:r,y:s,width:l,height:c}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),g=d.inverse;p?(g&&(h.shape.x+=l),h.shape.width=0):(g||(h.shape.y+=c),h.shape.height=0);var f=Object(w["w"])(o)?function(t){o(t,h)}:null;On["c"](h,{shape:{width:l,height:c,x:r,y:s}},n,null,i,f)}return h}function ai(t,e,n){var i=t.getArea(),o=Object(ii["u"])(i.r0,1),a=Object(ii["u"])(i.r,1),r=new ni["a"]({shape:{cx:Object(ii["u"])(t.cx,1),cy:Object(ii["u"])(t.cy,1),r0:o,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?r.shape.endAngle=i.startAngle:r.shape.r=o,On["c"](r,{shape:{endAngle:i.endAngle,r:a}},n)}return r}function ri(t,e,n,i,o){return t?"polar"===t.type?ai(t,e,n):"cartesian2d"===t.type?oi(t,e,n,i,o):null:null}function si(t,e){return t.type===e}var li=n("eda2");function ci(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function ui(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,a=0;a<t.length;){var r=t[a++],s=t[a++];isNaN(r)||(e=Math.min(r,e),i=Math.max(r,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function hi(t,e){var n=ui(t),i=n[0],o=n[1],a=ui(e),r=a[0],s=a[1];return Math.max(Math.abs(i[0]-r[0]),Math.abs(i[1]-r[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function di(t){return w["z"](t)?t:t?.5:0}function pi(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=Gn(2*i),a=0;a<i;a++){var r=zn(n,t,e,a);o[2*a]=r[0],o[2*a+1]=r[1]}return o}function gi(t,e,n,i){var o=e.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,r=[],s=0,l=[],c=[],u=[],h=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(u[0]=t[s+2],u[1]=t[s+3],c[0]=t[s],c[1]=t[s+1],r.push(c[0],c[1]),n){case"end":l[a]=u[a],l[1-a]=c[1-a],r.push(l[0],l[1]);break;case"middle":var d=(c[a]+u[a])/2,p=[];l[a]=p[a]=d,l[1-a]=c[1-a],p[1-a]=u[1-a],r.push(l[0],l[1]),r.push(p[0],p[1]);break;default:l[a]=c[a],l[1-a]=u[1-a],r.push(l[0],l[1])}return r.push(t[s++],t[s++]),r}function fi(t,e){var n,i,o=[],a=t.length;function r(t,e,n){var i=t.coord,o=(n-i)/(e.coord-i),a=Object(ct["b"])(o,[t.color,e.color]);return{coord:n,color:a}}for(var s=0;s<a;s++){var l=t[s],c=l.coord;if(c<0)n=l;else{if(c>e){i?o.push(r(i,l,e)):n&&o.push(r(n,l,0),r(n,l,e));break}n&&(o.push(r(n,l,0)),n=null),o.push(l),i=l}}return o}function yi(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var o,a,r=i.length-1;r>=0;r--){var s=t.getDimensionInfo(i[r].dimension);if(o=s&&s.coordDim,"x"===o||"y"===o){a=i[r];break}}if(a){var l=e.getAxis(o),c=w["H"](a.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),u=c.length,h=a.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var d=fi(c,"x"===o?n.getWidth():n.getHeight()),p=d.length;if(!p&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var g=10,f=d[0].coord-g,y=d[p-1].coord+g,v=y-f;if(v<.001)return"transparent";w["k"](d,(function(t){t.offset=(t.coord-f)/v})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new Wn["a"](0,0,0,0,d,!0);return m[o]=f,m[o+"2"]=y,m}}}function vi(t,e,n){var i=t.get("showAllSymbol"),o="auto"===i;if(!i||o){var a=n.getAxesByScale("ordinal")[0];if(a&&(!o||!mi(a,e))){var r=e.mapDimension(a.dim),s={};return w["k"](a.getViewLabels(),(function(t){var e=a.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(r,t))}}}}function mi(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),a=Math.max(1,Math.round(o/5)),r=0;r<o;r+=a)if(1.5*Dn.getSymbolSize(e,r)[t.isHorizontal()?1:0]>i)return!1;return!0}function bi(t,e){return isNaN(t)||isNaN(e)}function xi(t){for(var e=t.length/2;e>0;e--)if(!bi(t[2*e-2],t[2*e-1]))break;return e-1}function _i(t,e){return[t[2*e],t[2*e+1]]}function Oi(t,e,n){for(var i,o,a=t.length/2,r="x"===n?0:1,s=0,l=-1,c=0;c<a;c++)if(o=t[2*c+r],!isNaN(o)&&!isNaN(t[2*c+1-r]))if(0!==c){if(i<=e&&o>=e||i>=e&&o<=e){l=c;break}s=c,i=o}else i=o;return{range:[s,l],t:(e-i)/(o-i)}}function wi(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Sn["g"].length;e++)if(t.get([Sn["g"][e],"endLabel","show"]))return!0;return!1}function Si(t,e,n,i){if(si(e,"cartesian2d")){var o=i.getModel("endLabel"),a=o.get("valueAnimation"),r=i.getData(),s={lastFrameIndex:0},l=wi(i)?function(n,i){t._endLabelOnDuring(n,i,r,s,a,o,e)}:null,c=e.getBaseAxis().isHorizontal(),u=oi(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=u.shape,d=Math.max(h.width,h.height);c?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,u),u}return ai(e,n,i)}function Mi(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),o=n.inverse,a=i?o?"right":"left":"center",r=i?"middle":o?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||r}}}var Ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.init=function(){var t=new bn["a"],e=new Nn;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem,a=this.group,r=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),c=r.getLayout("points")||[],u="polar"===o.type,h=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,f=this._lineGroup,y=!e.ssr&&t.get("animation"),v=!l.isEmpty(),m=l.get("origin"),b=En(o,r,m),x=v&&pi(o,r,b),_=t.get("showSymbol"),O=t.get("connectNulls"),S=_&&!u&&vi(t,r,o),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),M.setItemGraphicEl(e,null))})),_||d.remove(),a.add(f);var I,j=!u&&t.get("step");o&&o.getArea&&t.get("clip",!0)&&(I=o.getArea(),null!=I.width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var A=yi(r,o,n)||r.getVisual("style")[r.getVisual("drawType")];if(p&&h.type===o.type&&j===this._step){v&&!g?g=this._newPolygon(c,x):g&&!v&&(f.remove(g),g=this._polygon=null),u||this._initOrUpdateEndLabel(t,o,Object(li["b"])(A));var C=f.getClipPath();if(C){var D=Si(this,o,!1,t);On["c"](C,{shape:D.shape},t)}else f.setClipPath(Si(this,o,!0,t));_&&d.updateData(r,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),ci(this._stackedOnPoints,x)&&ci(this._points,c)||(y?this._doUpdateAnimation(r,x,o,n,j,m,O):(j&&(c=gi(c,o,j,O),x&&(x=gi(x,o,j,O))),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:x})))}else _&&d.updateData(r,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),y&&this._initSymbolLabelAnimation(r,o,I),j&&(c=gi(c,o,j,O),x&&(x=gi(x,o,j,O))),p=this._newPolyline(c),v?g=this._newPolygon(c,x):g&&(f.remove(g),g=this._polygon=null),u||this._initOrUpdateEndLabel(t,o,Object(li["b"])(A)),f.setClipPath(Si(this,o,!0,t));var T=t.getModel("emphasis"),k=T.get("focus"),L=T.get("blurScope"),P=T.get("disabled");if(p.useStyle(w["i"](s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Object(Sn["I"])(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}Object(Se["a"])(p).seriesIndex=t.seriesIndex,Object(Sn["J"])(p,k,L,P);var E=di(t.get("smooth")),R=t.get("smoothMonotone");if(p.setShape({smooth:E,smoothMonotone:R,connectNulls:O}),g){var z=r.getCalculationInfo("stackedOnSeries"),V=0;g.useStyle(w["i"](l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:r.getVisual("style").decal})),z&&(V=di(z.get("smooth"))),g.setShape({smooth:E,stackedOnSmooth:V,smoothMonotone:R,connectNulls:O}),Object(Sn["I"])(g,t,"areaStyle"),Object(Se["a"])(g).seriesIndex=t.seriesIndex,Object(Sn["J"])(g,k,L,P)}var B=function(t){i._changePolyState(t)};r.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=r,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=j,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,p),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,e){Object(Se["a"])(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var o=t.getData(),a=we["u"](o,i);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var r=o.getLayout("points"),s=o.getItemGraphicEl(a);if(!s){var l=r[2*a],c=r[2*a+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=t.get("zlevel")||0,h=t.get("z")||0;s=new Dn(o,a),s.x=l,s.y=c,s.setZ(u,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else ti["a"].prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var o=t.getData(),a=we["u"](o,i);if(this._changePolyState("normal"),null!=a&&a>=0){var r=o.getItemGraphicEl(a);r&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay())}else ti["a"].prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;Object(Sn["H"])(this._polyline,t),e&&Object(Sn["H"])(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Jn({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Qn({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,o,a=e.getBaseAxis(),r=a.inverse;"cartesian2d"===e.type?(i=a.isHorizontal(),o=!1):"polar"===e.type&&(i="angle"===a.dim,o=!0);var s=t.hostModel,l=s.get("animationDuration");w["w"](l)&&(l=l(null));var c=s.get("animationDelay")||0,u=w["w"](c)?c(null):c;t.eachItemGraphicEl((function(t,a){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,g=void 0;if(n)if(o){var f=n,y=e.pointToCoord(h);i?(d=f.startAngle,p=f.endAngle,g=-y[1]/180*Math.PI):(d=f.r0,p=f.r,g=y[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,g=t.x):(d=v.y+v.height,p=v.y,g=t.y)}var m=p===d?0:(g-d)/(p-d);r&&(m=1-m);var b=w["w"](c)?c(a):l*m+u,x=s.getSymbolPath(),_=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:b}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(wi(t)){var o=t.getData(),a=this._polyline,r=o.getLayout("points");if(!r)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new st["a"]({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var l=xi(r);l>=0&&(Object(jn["g"])(a,Object(jn["e"])(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?In(o,n):Mn(o,t)},enableTextSetter:!0},Mi(i,e)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,o,a,r){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=a.get("precision"),p=a.get("distance")||0,g=r.getBaseAxis(),f=g.isHorizontal(),y=g.inverse,v=e.shape,m=y?f?v.x:v.y+v.height:f?v.x+v.width:v.y,b=(f?p:0)*(y?-1:1),x=(f?0:-p)*(y?-1:1),_=f?"x":"y",O=Oi(c,m,_),w=O.range,S=w[1]-w[0],M=void 0;if(S>=1){if(S>1&&!h){var I=_i(c,w[0]);s.attr({x:I[0]+b,y:I[1]+x}),o&&(M=u.getRawValue(w[0]))}else{I=l.getPointOn(m,_);I&&s.attr({x:I[0]+b,y:I[1]+x});var j=u.getRawValue(w[0]),A=u.getRawValue(w[1]);o&&(M=we["k"](n,d,j,A,O.t))}i.lastFrameIndex=w[0]}else{var C=1===t||i.lastFrameIndex>0?w[0]:0;I=_i(c,C);o&&(M=u.getRawValue(C)),s.attr({x:I[0]+b,y:I[1]+x})}if(o){var D=Object(jn["f"])(s);"function"===typeof D.setLabelText&&D.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,o,a,r){var s=this._polyline,l=this._polygon,c=t.hostModel,u=Fn(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),h=u.current,d=u.stackedOnCurrent,p=u.next,g=u.stackedOnNext;if(o&&(h=gi(u.current,n,o,r),d=gi(u.stackedOnCurrent,n,o,r),p=gi(u.next,n,o,r),g=gi(u.stackedOnNext,n,o,r)),hi(h,p)>3e3||l&&hi(d,g)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:g})));s.shape.__points=u.current,s.shape.points=h;var f={shape:{points:p}};u.current!==h&&(f.shape.__points=u.next),s.stopAnimation(),On["h"](s,f,c),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),On["h"](l,{shape:{stackedOnPoints:g}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=u.status,m=0;m<v.length;m++){var b=v[m].cmd;if("="===b){var x=t.getItemGraphicEl(v[m].idx1);x&&y.push({el:x,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,i=2*y[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(ti["a"]),ji=Ii,Ai=n("cccd");function Ci(t,e){return{seriesType:t,plan:Object(Ai["a"])(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,o=t.pipelineContext,a=e||o.large;if(i){var r=Object(w["H"])(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=r.length,l=n.getCalculationInfo("stackResultDimension");cn(n,r[0])&&(r[0]=l),cn(n,r[1])&&(r[1]=l);var c=n.getStore(),u=n.getDimensionIndex(r[0]),h=n.getDimensionIndex(r[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,o=a&&Gn(n*s),r=[],l=[],d=t.start,p=0;d<t.end;d++){var g=void 0;if(1===s){var f=c.get(u,d);g=i.dataToPoint(f,null,l)}else r[0]=c.get(u,d),r[1]=c.get(h,d),g=i.dataToPoint(r,null,l);a?(o[p++]=g[0],o[p++]=g[1]):e.setItemLayout(d,g.slice())}a&&e.setLayout("points",o)}}}}}}var Di={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,i=0;i<t.length;i++){var o=t[i],a=Math.abs(o);a>e&&(e=a,n=o)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},Ti=function(t){return Math.round(t.length/2)};function ki(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,r=i.count();if(r>10&&"cartesian2d"===a.type&&o){var s=a.getBaseAxis(),l=a.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),d=Math.round(r/h);if(isFinite(d)&&d>1){"lttb"===o&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;Object(w["C"])(o)?p=Di[o]:Object(w["w"])(o)&&(p=o),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,Ti))}}}}}function Li(t){t.registerChartView(ji),t.registerSeriesModel(_n),t.registerLayout(Ci("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ki("line"))}var Pi="__ec_stack_";function Ni(t){return t.get("stack")||Pi+t.seriesIndex}function Ei(t){return t.dim+t.index}function Ri(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var o=n.getBandWidth(),a=0;a<t.count;a++)e.push(Object(w["i"])({bandWidth:o,axisKey:i,stackId:Pi+a},t));var r=Gi(e),s=[];for(a=0;a<t.count;a++){var l=r[i][Pi+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function zi(t,e){var n=[];return e.eachSeriesByType(t,(function(t){Yi(t)&&n.push(t)})),n}function Vi(t){var e={};Object(w["k"])(t,(function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var o=t.getData(),a=i.dim+"_"+i.index,r=o.getDimensionIndex(o.mapDimension(i.dim)),s=o.getStore(),l=0,c=s.count();l<c;++l){var u=s.get(r,l);e[a]?e[a].push(u):e[a]=[u]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(o){o.sort((function(t,e){return t-e}));for(var a=null,r=1;r<o.length;++r){var s=o[r]-o[r-1];s>0&&(a=null===a?s:Math.min(a,s))}n[i]=a}}return n}function Bi(t){var e=Vi(t),n=[];return Object(w["k"])(t,(function(t){var i,o=t.coordinateSystem,a=o.getBaseAxis(),r=a.getExtent();if("category"===a.type)i=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,l=e[s],c=Math.abs(r[1]-r[0]),u=a.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=l?c/h*l:c}else{var d=t.getData();i=Math.abs(r[1]-r[0])/d.count()}var p=Object(ii["o"])(t.get("barWidth"),i),g=Object(ii["o"])(t.get("barMaxWidth"),i),f=Object(ii["o"])(t.get("barMinWidth")||(Xi(t)?.5:1),i),y=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:g,barMinWidth:f,barGap:y,barCategoryGap:v,axisKey:Ei(a),stackId:Ni(t)})})),Gi(n)}function Gi(t){var e={};Object(w["k"])(t,(function(t,n){var i=t.axisKey,o=t.bandWidth,a=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=a.stacks;e[i]=a;var s=t.stackId;r[s]||a.autoWidthCount++,r[s]=r[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!r[s].width&&(r[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var c=t.barMaxWidth;c&&(r[s].maxWidth=c);var u=t.barMinWidth;u&&(r[s].minWidth=u);var h=t.barGap;null!=h&&(a.gap=h);var d=t.barCategoryGap;null!=d&&(a.categoryGap=d)}));var n={};return Object(w["k"])(e,(function(t,e){n[e]={};var i=t.stacks,o=t.bandWidth,a=t.categoryGap;if(null==a){var r=Object(w["F"])(i).length;a=Math.max(35-4*r,15)+"%"}var s=Object(ii["o"])(a,o),l=Object(ii["o"])(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),Object(w["k"])(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,c-=i+l*i,u--}else{var i=h;e&&e<i&&(i=Math.min(e,c)),n&&n>i&&(i=n),i!==h&&(t.width=i,c-=i+l*i,u--)}})),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var d,p=0;Object(w["k"])(i,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var g=-p/2;Object(w["k"])(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:g,width:t.width},g+=t.width*(1+l)}))})),n}function Hi(t,e,n){if(t&&e){var i=t[Ei(e)];return null!=i&&null!=n?i[Ni(n)]:i}}function Fi(t,e){var n=zi(t,e),i=Bi(n);Object(w["k"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=Ni(t),r=i[Ei(o)][a],s=r.offset,l=r.width;e.setLayout({bandWidth:r.bandWidth,offset:s,size:l})}))}function Wi(t){return{seriesType:t,plan:Object(Ai["a"])(),reset:function(t){if(Yi(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=n.getOtherAxis(i),a=e.getDimensionIndex(e.mapDimension(o.dim)),r=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(o.dim),c=e.getCalculationInfo("stackResultDimension"),u=cn(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=o.isHorizontal(),d=Zi(i,o),p=Xi(t),g=t.get("barMinHeight")||0,f=c&&e.getDimensionIndex(c),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){var i,o=t.count,l=p&&Gn(3*o),c=p&&s&&Gn(3*o),m=p&&Gn(o),b=n.master.getRect(),x=h?b.width:b.height,_=e.getStore(),O=0;while(null!=(i=t.next())){var w=_.get(u?f:a,i),S=_.get(r,i),M=d,I=void 0;u&&(I=+w-_.get(a,i));var j=void 0,A=void 0,C=void 0,D=void 0;if(h){var T=n.dataToPoint([w,S]);if(u){var k=n.dataToPoint([I,S]);M=k[0]}j=M,A=T[1]+v,C=T[0]-M,D=y,Math.abs(C)<g&&(C=(C<0?-1:1)*g)}else{T=n.dataToPoint([S,w]);if(u){k=n.dataToPoint([S,I]);M=k[1]}j=T[0]+v,A=M,C=y,D=T[1]-M,Math.abs(D)<g&&(D=(D<=0?-1:1)*g)}p?(l[O]=j,l[O+1]=A,l[O+2]=h?C:D,c&&(c[O]=h?b.x:j,c[O+1]=h?A:b.y,c[O+2]=x),m[i]=i):e.setItemLayout(i,{x:j,y:A,width:C,height:D}),O+=3}p&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:c,valueAxisHorizontal:h})}}}}}}function Yi(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Xi(t){return t.pipelineContext&&t.pipelineContext.large}function Zi(t,e){var n=e.model.get("startValue");return n||(n=0),e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}var Ui=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){return yn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),a=i.dataToPoint(o);if(n)Object(w["k"])(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),r=t.getTickModel().get("alignWithLabel"),s=o[n],l="x1"===e[n]||"y1"===e[n];if(l&&!r&&(s+=1),i.length<2)return;if(2===i.length)return void(a[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var c=void 0,u=void 0,h=1,d=0;d<i.length;d++){var p=i[d].coord,g=d===i.length-1?i[d-1].tickValue+h:i[d].tickValue;if(g===s){u=p;break}if(g<s)c=p;else if(null!=c&&g>s){u=(p+c)/2;break}1===d&&(h=g-i[0].tickValue)}null==u&&(c?c&&(u=i[i.length-1].coord):u=i[0].coord),a[n]=t.toGlobalCoord(u)}}));else{var r=this.getData(),s=r.getLayout("offset"),l=r.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;a[c]+=s+l/2}return a}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(vn["b"]);vn["b"].registerClass(Ui);var qi=Ui,Ki=n("8918"),Ji=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(){return yn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Object(Ki["d"])(qi.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(qi),$i=Ji,Qi=n("88b3"),to=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),eo=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new to},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),a=Math.max(e.r,0),r=.5*(a-o),s=o+r,l=e.startAngle,c=e.endAngle,u=e.clockwise,h=2*Math.PI,d=u?c-l<h:l-c<h;d||(l=c-(u?h:-h));var p=Math.cos(l),g=Math.sin(l),f=Math.cos(c),y=Math.sin(c);d?(t.moveTo(p*o+n,g*o+i),t.arc(p*s+n,g*s+i,r,-Math.PI+l,l,!u)):t.moveTo(p*a+n,g*a+i),t.arc(n,i,a,l,c,!u),t.arc(f*s+n,y*s+i,r,c-2*Math.PI,c-Math.PI,!u),0!==o&&t.arc(n,i,o,c,l,u)},e}(h["b"]),no=eo;function io(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,o){var a=i.position;if(!a||a instanceof Array)return Object(p["c"])(e,i,o);var r=t(a),s=null!=i.distance?i.distance:5,l=this.shape,c=l.cx,u=l.cy,h=l.r,d=l.r0,g=(h+d)/2,f=l.startAngle,y=l.endAngle,v=(f+y)/2,m=n?Math.abs(h-d)/2:0,b=Math.cos,x=Math.sin,_=c+h*b(f),O=u+h*x(f),w="left",S="top";switch(r){case"startArc":_=c+(d-s)*b(v),O=u+(d-s)*x(v),w="center",S="top";break;case"insideStartArc":_=c+(d+s)*b(v),O=u+(d+s)*x(v),w="center",S="bottom";break;case"startAngle":_=c+g*b(f)+ao(f,s+m,!1),O=u+g*x(f)+ro(f,s+m,!1),w="right",S="middle";break;case"insideStartAngle":_=c+g*b(f)+ao(f,-s+m,!1),O=u+g*x(f)+ro(f,-s+m,!1),w="left",S="middle";break;case"middle":_=c+g*b(v),O=u+g*x(v),w="center",S="middle";break;case"endArc":_=c+(h+s)*b(v),O=u+(h+s)*x(v),w="center",S="bottom";break;case"insideEndArc":_=c+(h-s)*b(v),O=u+(h-s)*x(v),w="center",S="top";break;case"endAngle":_=c+g*b(y)+ao(y,s+m,!0),O=u+g*x(y)+ro(y,s+m,!0),w="left",S="middle";break;case"insideEndAngle":_=c+g*b(y)+ao(y,-s+m,!0),O=u+g*x(y)+ro(y,-s+m,!0),w="right",S="middle";break;default:return Object(p["c"])(e,i,o)}return e=e||{},e.x=_,e.y=O,e.align=w,e.verticalAlign=S,e}}function oo(t,e,n,i){if(Object(w["z"])(i))t.setTextConfig({rotation:i});else if(Object(w["t"])(e))t.setTextConfig({rotation:0});else{var o,a=t.shape,r=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,l=(r+s)/2,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=l;break;case"startAngle":case"insideStartAngle":o=r;break;case"endAngle":case"insideEndAngle":o=s;break;default:return void t.setTextConfig({rotation:0})}var u=1.5*Math.PI-o;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}}function ao(t,e,n){return e*Math.sin(t)*(n?-1:1)}function ro(t,e,n){return e*Math.cos(t)*(n?1:-1)}function so(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(w["t"])(i)||(i=[i,i,i,i]);var o=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(w["H"])(i,(function(t){return Object(p["g"])(t,o)}))}}var lo=Math.max,co=Math.min;function uo(t,e){var n=t.getArea&&t.getArea();if(si(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var o=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}var ho=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Object(wn["traverseElements"])(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var o,a=this.group,r=t.getData(),s=this._data,l=t.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?o=c.isHorizontal():"polar"===l.type&&(o="angle"===c.dim);var u=t.isAnimationEnabled()?t:null,h=fo(t,l);h&&this._enableRealtimeSort(h,r,n);var d=t.get("clip",!0)||h,p=uo(l,r);a.removeClipPath();var g=t.get("roundCap",!0),f=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],b=this._backgroundEls,x=i&&i.isInitSort,_=i&&"changeAxisOrder"===i.type;function O(t){var e=_o[l.type](r,t),n=ko(l,o,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),m[t]=n,n}r.diff(s).add((function(e){var n=r.getItemModel(e),i=_o[l.type](r,e,n);if(f&&O(e),r.hasValue(e)&&xo[l.type](i)){var s=!1;d&&(s=po[l.type](p,i));var y=go[l.type](t,r,e,i,o,u,c.model,!1,g);h&&(y.forceLabelAnimation=!0),So(y,r,e,n,i,t,o,"polar"===l.type),x?y.attr({shape:i}):h?yo(h,u,y,i,e,o,!1,!1):Object(On["c"])(y,{shape:i},t,e),r.setItemGraphicEl(e,y),a.add(y),y.ignore=s}})).update((function(e,n){var i=r.getItemModel(e),w=_o[l.type](r,e,i);if(f){var S=void 0;0===b.length?S=O(n):(S=b[n],S.useStyle(y.getItemStyle()),"cartesian2d"===l.type?S.setShape("r",v):S.setShape("cornerRadius",v),m[e]=S);var M=_o[l.type](r,e),I=To(o,M,l);Object(On["h"])(S,{shape:I},u,e)}var j=s.getItemGraphicEl(n);if(r.hasValue(e)&&xo[l.type](w)){var A=!1;if(d&&(A=po[l.type](p,w),A&&a.remove(j)),j?Object(On["g"])(j):j=go[l.type](t,r,e,w,o,u,c.model,!!j,g),h&&(j.forceLabelAnimation=!0),_){var C=j.getTextContent();if(C){var D=Object(jn["f"])(C);null!=D.prevValue&&(D.prevValue=D.value)}}else So(j,r,e,i,w,t,o,"polar"===l.type);x?j.attr({shape:w}):h?yo(h,u,j,w,e,o,!0,_):Object(On["h"])(j,{shape:w},t,e,null),r.setItemGraphicEl(e,j),j.ignore=A,a.add(j)}else a.remove(j)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Object(On["f"])(n,t,e)})).execute();var w=this._backgroundGroup||(this._backgroundGroup=new bn["a"]);w.removeAll();for(var S=0;S<m.length;++S)w.add(m[S]);a.add(w),this._backgroundEls=m,this._data=r},e.prototype._renderLarge=function(t,e,n){this._clear(),Ao(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),Ao(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&ri(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var a=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(o.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,a,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var o=n(e);o=null==o?NaN:o,i.push({dataIndex:e,mappedValue:o,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(w["H"])(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,o=t.mapDimension(n.dim),a=Number.MAX_VALUE,r=0,s=i.getOrdinalMeta().categories.length;r<s;++r){var l=t.rawIndexOf(o,i.getRawOrdinalNumber(r)),c=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(c>a)return!0;a=c}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),o=Math.max(0,i[0]),a=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=a;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var o=this._dataSort(t,n,e);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,o=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Object(On["f"])(e,t,Object(Se["a"])(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(ti["a"]),po={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=t.x+t.width,a=t.y+t.height,r=lo(e.x,t.x),s=co(e.x+e.width,o),l=lo(e.y,t.y),c=co(e.y+e.height,a),u=s<r,h=c<l;return e.x=u&&r>o?s:r,e.y=h&&l>a?c:l,e.width=u?0:s-r,e.height=h?0:c-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),u||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var o=co(e.r,t.r),a=lo(e.r0,t.r0);e.r=o,e.r0=a;var r=o-a<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return r}},go={cartesian2d:function(t,e,n,i,o,a,r,s,l){var c=new ei["a"]({shape:Object(w["m"])({},i),z2:1});if(c.__dataIndex=n,c.name="item",a){var u=c.shape,h=o?"height":"width";u[h]=0}return c},polar:function(t,e,n,i,o,a,r,s,l){var c=!o&&l?no:ni["a"],u=new c({shape:i,z2:1});u.name="item";var h=wo(o);if(u.calculateTextPosition=io(h,{isRoundCap:c===no}),a){var d=u.shape,p=o?"r":"endAngle",g={};d[p]=o?i.r0:i.startAngle,g[p]=i[p],(s?On["h"]:On["c"])(u,{shape:g},a)}return u}};function fo(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function yo(t,e,n,i,o,a,r,s){var l,c;a?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(r?On["h"]:On["c"])(n,{shape:l},e,o,null);var u=e?t.baseAxis.model:null;(r?On["h"]:On["c"])(n,{shape:c},u,o)}function vo(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var mo=["x","y","width","height"],bo=["cx","cy","r","startAngle","endAngle"],xo={cartesian2d:function(t){return!vo(t,mo)},polar:function(t){return!vo(t,bo)}},_o={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),o=n?Mo(n,i):0,a=i.width>0?1:-1,r=i.height>0?1:-1;return{x:i.x+a*o/2,y:i.y+r*o/2,width:i.width-a*o,height:i.height-r*o}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Oo(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function wo(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function So(t,e,n,i,o,a,r,s){var l=e.getItemVisual(n,"style");if(s){if(!a.get("roundCap")){var c=t.shape,u=so(i.getModel("itemStyle"),c,!0);Object(w["m"])(c,u),t.setShape(c)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var d=i.getShallow("cursor");d&&t.attr("cursor",d);var p=s?r?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":r?o.height>=0?"bottom":"top":o.width>=0?"right":"left",g=Object(jn["e"])(i);Object(jn["g"])(t,g,{labelFetcher:a,labelDataIndex:n,defaultText:Mn(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=t.getTextContent();if(s&&f){var y=i.get(["label","position"]);t.textConfig.inside="middle"===y||null,oo(t,"outside"===y?p:y,wo(r),i.get(["label","rotate"]))}Object(jn["h"])(f,g,a.getRawValue(n),(function(t){return In(e,t)}));var v=i.getModel(["emphasis"]);Object(Sn["J"])(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),Object(Sn["I"])(t,i),Oo(o)&&(t.style.fill="none",t.style.stroke="none",Object(w["k"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function Mo(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,o=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,o,a)}var Io=function(){function t(){}return t}(),jo=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new Io},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,a=[],r=[],s=this.barWidth,l=0;l<n.length;l+=3)r[i]=s,r[o]=n[l+2],a[i]=n[l+i],a[o]=n[l+o],t.rect(a[0],a[1],r[0],r[1])},e}(h["b"]);function Ao(t,e,n,i){var o=t.getData(),a=o.getLayout("valueAxisHorizontal")?1:0,r=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=t.getModel("backgroundStyle"),c=o.getLayout("largeBackgroundPoints");if(c){var u=new jo({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=a,u.largeDataIndices=r,u.barWidth=s,u.useStyle(l.getItemStyle()),e.add(u),n&&n.push(u)}var h=new jo({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=r,h.barWidth=s,e.add(h),h.useStyle(o.getVisual("style")),Object(Se["a"])(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",Co),h.on("mousemove",Co)),n&&n.push(h)}var Co=Object(Qi["c"])((function(t){var e=this,n=Do(e,t.offsetX,t.offsetY);Object(Se["a"])(e).dataIndex=n>=0?n:null}),30,!1);function Do(t,e,n){for(var i=t.baseDimIdx,o=1-i,a=t.shape.points,r=t.largeDataIndices,s=[],l=[],c=t.barWidth,u=0,h=a.length/3;u<h;u++){var d=3*u;if(l[i]=c,l[o]=a[d+2],s[i]=a[d+i],s[o]=a[d+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return r[u]}return-1}function To(t,e,n){if(si(n,"cartesian2d")){var i=e,o=n.getArea();return{x:t?i.x:o.x,y:t?o.y:i.y,width:t?i.width:o.width,height:t?o.height:i.height}}o=n.getArea();var a=e;return{cx:o.cx,cy:o.cy,r0:t?o.r0:a.r0,r:t?o.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:2*Math.PI}}function ko(t,e,n){var i="polar"===t.type?ni["a"]:ei["a"];return new i({shape:To(e,n,t),silent:!0,z2:0})}var Lo=ho;function Po(t){t.registerChartView(Lo),t.registerSeriesModel($i),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,w["h"](Fi,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Wi("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ki("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var No=n("f3bb"),Eo=n("f934"),Ro=2*Math.PI,zo=Math.PI/180;function Vo(t,e){return Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Bo(t,e){var n=Vo(t,e),i=t.get("center"),o=t.get("radius");w["t"](o)||(o=[0,o]);var a,r,s=Object(ii["o"])(n.width,e.getWidth()),l=Object(ii["o"])(n.height,e.getHeight()),c=Math.min(s,l),u=Object(ii["o"])(o[0],c/2),h=Object(ii["o"])(o[1],c/2),d=t.coordinateSystem;if(d){var p=d.dataToPoint(i);a=p[0]||0,r=p[1]||0}else w["t"](i)||(i=[i,i]),a=Object(ii["o"])(i[0],s)+n.x,r=Object(ii["o"])(i[1],l)+n.y;return{cx:a,cy:r,r0:u,r:h}}function Go(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),o=Vo(t,n),a=Bo(t,n),r=a.cx,s=a.cy,l=a.r,c=a.r0,u=-t.get("startAngle")*zo,h=t.get("endAngle"),d=t.get("padAngle")*zo;h="auto"===h?u-Ro:-h*zo;var p=t.get("minAngle")*zo,g=p+d,f=0;e.each(i,(function(t){!isNaN(t)&&f++}));var y=e.getSum(i),v=Math.PI/(y||f)*2,m=t.get("clockwise"),b=t.get("roseType"),x=t.get("stillShowZeroSum"),_=e.getDataExtent(i);_[0]=0;var O=m?1:-1,w=[u,h],S=O*d/2;Object(Z["b"])(w,!m),u=w[0],h=w[1];var M=Ho(t);M.startAngle=u,M.endAngle=h,M.clockwise=m;var I=Math.abs(h-u),j=I,A=0,C=u;if(e.setLayout({viewRect:o,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:r,cy:s,r0:c,r:b?NaN:l});else{i="area"!==b?0===y&&x?v:t*v:I/f,i<g?(i=g,j-=g):A+=t;var o=C+O*i,a=0,u=0;d>i?(a=C+O*i/2,u=a):(a=C+S,u=o-S),e.setItemLayout(n,{angle:i,startAngle:a,endAngle:u,clockwise:m,cx:r,cy:s,r0:c,r:b?Object(ii["k"])(t,_,[c,l]):l}),C=o}})),j<Ro&&f)if(j<=.001){var D=I/f;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=D;var o=0,a=0;D<d?(o=u+O*(n+.5)*D,a=o):(o=u+O*n*D+S,a=u+O*(n+1)*D-S),i.startAngle=o,i.endAngle=a}}))}else v=j/A,C=u,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),o=i.angle===g?g:t*v,a=0,r=0;o<d?(a=C+O*o/2,r=a):(a=C+S,r=C+O*o-S),i.startAngle=a,i.endAngle=r,C+=O*o}}))}))}var Ho=Object(we["o"])();function Fo(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),o=0;o<n.length;o++)if(!n[o].isSelected(e))return!1;return!0}))}}}}var Wo=n("d498"),Yo=n("dce8"),Xo=n("89b6"),Zo=n("2355"),Uo=Math.PI/180;function qo(t,e,n,i,o,a,r,s,l,c){if(!(t.length<2)){for(var u=t.length,h=0;h<u;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-c;t[h].linePoints[1][0]+=d,t[h].label.x=c}Object(Zo["d"])(t,l,l+r)&&g(t)}function p(t){for(var a=t.rB,r=a*a,s=0;s<t.list.length;s++){var l=t.list[s],c=Math.abs(l.label.y-n),u=i+l.len,h=u*u,d=Math.sqrt((1-Math.abs(c*c/r))*h),p=e+(d+l.len2)*o,g=p-l.label.x,f=l.targetTextWidth-g*o;Jo(l,f,!0),l.label.x=p}}function g(t){for(var a={list:[],maxY:0},r={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],c=l.label.y>n?r:a,u=Math.abs(l.label.y-n);if(u>=c.maxY){var h=l.label.x-e-l.len2*o,d=i+l.len,g=Math.abs(h)<d?Math.sqrt(u*u/(1-h*h/d/d)):d;c.rB=g,c.maxY=u}c.list.push(l)}p(a),p(r)}}function Ko(t,e,n,i,o,a,r,s){for(var l=[],c=[],u=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;$o(t[d])||(p.x<e?(u=Math.min(u,p.x),l.push(t[d])):(h=Math.max(h,p.x),c.push(t[d])))}for(d=0;d<t.length;d++){var g=t[d];if(!$o(g)&&g.linePoints){if(null!=g.labelStyleWidth)continue;p=g.label;var f=g.linePoints,y=void 0;y="edge"===g.labelAlignTo?p.x<e?f[2][0]-g.labelDistance-r-g.edgeDistance:r+o-g.edgeDistance-f[2][0]-g.labelDistance:"labelLine"===g.labelAlignTo?p.x<e?u-r-g.bleedMargin:r+o-h-g.bleedMargin:p.x<e?p.x-r-g.bleedMargin:r+o-p.x-g.bleedMargin,g.targetTextWidth=y,Jo(g,y)}}qo(c,e,n,i,1,o,a,r,s,h),qo(l,e,n,i,-1,o,a,r,s,u);for(d=0;d<t.length;d++){g=t[d];if(!$o(g)&&g.linePoints){p=g.label,f=g.linePoints;var v="edge"===g.labelAlignTo,m=p.style.padding,b=m?m[1]+m[3]:0,x=p.style.backgroundColor?0:b,_=g.rect.width+x,O=f[1][0]-f[2][0];v?p.x<e?f[2][0]=r+g.edgeDistance+_+g.labelDistance:f[2][0]=r+o-g.edgeDistance-_-g.labelDistance:(p.x<e?f[2][0]=p.x+g.labelDistance:f[2][0]=p.x-g.labelDistance,f[1][0]=f[2][0]+O),f[1][1]=f[2][1]=p.y}}}function Jo(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,o=i.style,a=t.rect,r=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,c=o.overflow,u=a.width+(r?0:l);if(e<u||n){var h=a.height;if(c&&c.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",r)}else{var p=e-l,g=e<u?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",g)}var f=i.getBoundingRect();a.width=f.width;var y=(i.style.margin||0)+2.1;a.height=f.height+y,a.y-=(a.height-h)/2}}}function $o(t){return"center"===t.position}function Qo(t){var e,n,i=t.getData(),o=[],a=!1,r=(t.get("minShowLabelAngle")||0)*Uo,s=i.getLayout("viewRect"),l=i.getLayout("r"),c=s.width,u=s.x,h=s.y,d=s.height;function p(t){t.ignore=!0}function g(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),f=s.getTextGuideLine(),y=i.getItemModel(t),v=y.getModel("label"),m=v.get("position")||y.get(["emphasis","label","position"]),b=v.get("distanceToLabelLine"),x=v.get("alignTo"),_=Object(ii["o"])(v.get("edgeDistance"),c),O=v.get("bleedMargin"),S=y.getModel("labelLine"),M=S.get("length");M=Object(ii["o"])(M,c);var I=S.get("length2");if(I=Object(ii["o"])(I,c),Math.abs(h.endAngle-h.startAngle)<r)return Object(w["k"])(d.states,p),d.ignore=!0,void(f&&(Object(w["k"])(f.states,p),f.ignore=!0));if(g(d)){var j,A,C,D,T=(h.startAngle+h.endAngle)/2,k=Math.cos(T),L=Math.sin(T);e=h.cx,n=h.cy;var P="inside"===m||"inner"===m;if("center"===m)j=h.cx,A=h.cy,D="center";else{var N=(P?(h.r+h.r0)/2*k:h.r*k)+e,E=(P?(h.r+h.r0)/2*L:h.r*L)+n;if(j=N+3*k,A=E+3*L,!P){var R=N+k*(M+l-h.r),z=E+L*(M+l-h.r),V=R+(k<0?-1:1)*I,B=z;j="edge"===x?k<0?u+_:u+c-_:V+(k<0?-b:b),A=B,C=[[N,E],[R,z],[V,B]]}D=P?"center":"edge"===x?k>0?"right":"left":k>0?"left":"right"}var G=Math.PI,H=0,F=v.get("rotate");if(Object(w["z"])(F))H=F*(G/180);else if("center"===m)H=0;else if("radial"===F||!0===F){var W=k<0?-T+G:-T;H=W}else if("tangential"===F&&"outside"!==m&&"outer"!==m){var Y=Math.atan2(k,L);Y<0&&(Y=2*G+Y);var X=L>0;X&&(Y=G+Y),H=Y-G}if(a=!!H,d.x=j,d.y=A,d.rotation=H,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:D});var Z=d.states.select;Z&&(Z.x+=d.x,Z.y+=d.y)}else{var U=d.getBoundingRect().clone();U.applyTransform(d.getComputedTransform());var q=(d.style.margin||0)+2.1;U.y-=q/2,U.height+=q,o.push({label:d,labelLine:f,position:m,len:M,len2:I,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Yo["a"](k,L),linePoints:C,textAlign:D,labelDistance:b,labelAlignTo:x,edgeDistance:_,bleedMargin:O,rect:U,unconstrainedWidth:U.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!a&&t.get("avoidLabelOverlap")&&Ko(o,e,n,l,c,d,u,h);for(var f=0;f<o.length;f++){var y=o[f],v=y.label,m=y.labelLine,b=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:y.textAlign}),b&&(Object(w["k"])(v.states,p),v.ignore=!0);var x=v.states.select;x&&(x.x+=v.x,x.y+=v.y)}if(m){var _=y.linePoints;b||!_?(Object(w["k"])(m.states,p),m.ignore=!0):(Object(Xo["c"])(_,y.minTurnAngle),Object(Xo["b"])(_,y.surfaceNormal,y.maxSurfaceAngle),m.setShape({points:_}),v.__hostTarget.textGuideLineConfig={anchor:new Yo["a"](_[0][0],_[0][1])})}}}var ta=function(t){function e(e,n,i){var o=t.call(this)||this;o.z2=2;var a=new st["a"];return o.setTextContent(a),o.updateData(e,n,i,!0),o}return Object(le["a"])(e,t),e.prototype.updateData=function(t,e,n,i){var o=this,a=t.hostModel,r=t.getItemModel(e),s=r.getModel("emphasis"),l=t.getItemLayout(e),c=Object(w["m"])(so(r.getModel("itemStyle"),l,!0),l);if(isNaN(c.startAngle))o.setShape(c);else{if(i){o.setShape(c);var u=a.getShallow("animationType");a.ecModel.ssr?(On["c"](o,{scaleX:0,scaleY:0},a,{dataIndex:e,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):"scale"===u?(o.shape.r=l.r0,On["c"](o,{shape:{r:l.r}},a,e)):null!=n?(o.setShape({startAngle:n,endAngle:n}),On["c"](o,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},a,e)):(o.shape.endAngle=l.startAngle,On["h"](o,{shape:{endAngle:l.endAngle}},a,e))}else Object(On["g"])(o),On["h"](o,{shape:c},a,e);o.useStyle(t.getItemVisual(e,"style")),Object(Sn["I"])(o,r);var h=(l.startAngle+l.endAngle)/2,d=a.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,f=r.getShallow("cursor");f&&o.attr("cursor",f),this._updateLabel(a,t,e),o.ensureState("emphasis").shape=Object(w["m"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},so(s.getModel("itemStyle"),l)),Object(w["m"])(o.ensureState("select"),{x:p,y:g,shape:so(r.getModel(["select","itemStyle"]),l)}),Object(w["m"])(o.ensureState("blur"),{shape:so(r.getModel(["blur","itemStyle"]),l)});var y=o.getTextGuideLine(),v=o.getTextContent();y&&Object(w["m"])(y.ensureState("select"),{x:p,y:g}),Object(w["m"])(v.ensureState("select"),{x:p,y:g}),Object(Sn["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,o=e.getItemModel(n),a=o.getModel("labelLine"),r=e.getItemVisual(n,"style"),s=r&&r.fill,l=r&&r.opacity;Object(jn["g"])(i,Object(jn["e"])(o),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var u=t.get(["label","position"]);if("outside"!==u&&"outer"!==u)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Wo["a"],this.setTextGuideLine(h)),Object(Xo["d"])(this,Object(Xo["a"])(o),{stroke:s,opacity:Object(w["Q"])(a.get(["lineStyle","opacity"]),l,1)})}},e}(ni["a"]),ea=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){var o,a=t.getData(),r=this._data,s=this.group;if(!r&&a.count()>0){for(var l=a.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<a.count();++c)l=a.getItemLayout(c);l&&(o=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===a.count()&&t.get("showEmptyCircle")){var u=Ho(t),h=new ni["a"]({shape:Object(w["m"])(Bo(t,n),u)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}a.diff(r).add((function(t){var e=new ta(a,t,o);a.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(a,t,o),n.off("click"),s.add(n),a.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);On["f"](n,t,e)})).execute(),Qo(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(o*o+a*a);return r<=i.r&&r>=i.r0}},e.type="pie",e}(ti["a"]),na=ea;function ia(t,e,n){e=Object(w["t"])(e)&&{coordDimensions:e}||Object(w["m"])({encodeDefine:t.getEncode()},e);var i=t.getSource(),o=Je(i,e).dimensions,a=new qe(o,t);return a.initData(i,n),a}var oa=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),aa=oa,ra=we["o"](),sa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new aa(w["c"](this.getData,this),w["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return ia(this,{coordDimensions:["value"],encodeDefaulter:w["h"](Ke["d"],this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=ra(n),o=i.seats;if(!o){var a=[];n.each(n.mapDimension("value"),(function(t){a.push(t)})),o=i.seats=Object(ii["e"])(a,n.hostModel.get("percentPrecision"))}var r=t.prototype.getDataParams.call(this,e);return r.percent=o[e]||0,r.$vars.push("percent"),r},e.prototype._defaultLabelLine=function(t){we["f"](t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(vn["b"]),la=sa;function ca(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(w["z"])(i)&&!isNaN(i)&&i<0)}))}}}function ua(t){t.registerChartView(na),t.registerSeriesModel(la),Object(No["a"])("pie",t.registerAction),t.registerLayout(Object(w["h"])(Go,"pie")),t.registerProcessor(Fo("pie")),t.registerProcessor(ca("pie"))}var ha=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){return yn(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(vn["b"]),da=ha,pa=n("9850"),ga=4,fa=function(){function t(){}return t}(),ya=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new fa},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,a=this.symbolProxy,r=a.shape,s=t.getContext?t.getContext():t,l=s&&o[0]<ga,c=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],h=i[n++];isNaN(u)||isNaN(h)||(c&&!c.contain(u,h)||(r.x=u-o[0]/2,r.y=h-o[1]/2,r.width=o[0],r.height=o[1],a.buildPath(t,r,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,o=this._ctx,a=this.softClipShape;if(o){for(t=this._off;t<n.length;){var r=n[t++],s=n[t++];isNaN(r)||isNaN(s)||(a&&!a.contain(r,s)||o.fillRect(r-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,o=n.size,a=Math.max(o[0],4),r=Math.max(o[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-a/2,u=i[l+1]-r/2;if(t>=c&&e>=u&&t<=c+a&&e<=u+r)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var o=this.hoverDataIdx=this.findDataIndex(t,e);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,o=i[0],a=i[1],r=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u<n.length;){var h=n[u++],d=n[u++];r=Math.min(h,r),l=Math.max(h,l),s=Math.min(d,s),c=Math.max(d,c)}t=this._rect=new pa["a"](r-o/2,s-a/2,l-r+o,c-s+a)}return t},e}(h["b"]),va=function(){function t(){this.group=new bn["a"]}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],o=e.getLayout("points"),a=i&&i.shape.points;if(a&&a.length<2e4){var r=a.length,s=new Float32Array(r+o.length);s.set(a),s.set(o,r),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:o}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new ya({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=n.clipShape||null,t.symbolProxy=Object(mn["a"])(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<ga;t.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var r=e.getVisual("style"),s=r&&r.fill;s&&t.setColor(s);var l=Object(Se["a"])(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),ma=va,ba=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Ci("").reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,o=i.large;return n&&o===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=o?new ma:new Nn,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(ti["a"]),xa=ba,_a=n("b12f"),Oa=n("6cb7"),wa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Oa["a"]),Sa=wa,Ma=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),Ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",we["b"]).models[0]},e.type="cartesian2dAxis",e}(Oa["a"]);w["K"](Ia,Ma);var ja={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Aa=w["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},ja),Ca=w["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},ja),Da=w["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ca),Ta=w["i"]({logBase:10},Ca),ka={category:Aa,value:Ca,time:Da,log:Ta},La=0,Pa=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++La}return t.createByAxisModel=function(e){var n=e.option,i=n.data,o=i&&Object(w["H"])(i,Na);return new t({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(w["C"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(w["f"])(this.categories))},t}();function Na(t){return Object(w["A"])(t)&&null!=t.value?t.value:t+""}var Ea=Pa,Ra={value:1,category:1,time:1,log:1};function za(t,e,n,i){Object(w["k"])(Ra,(function(o,a){var r=Object(w["I"])(Object(w["I"])({},ka[a],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return Object(le["a"])(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(Eo["d"])(this),i=n?Object(Eo["f"])(t):{},o=e.getTheme();Object(w["I"])(t,o.get(a+"Axis")),Object(w["I"])(t,this.getDefaultOption()),t.type=Va(t),n&&Object(Eo["h"])(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=Ea.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=r,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",Va)}function Va(t){return t.type||(t.data?"category":"value")}var Ba=n("625e"),Ga=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Ba["c"](Ga);var Ha=Ga;function Fa(t){return"interval"===t.type||"log"===t.type}function Wa(t,e,n,i){var o={},a=t[1]-t[0],r=o.interval=Object(ii["l"])(a/e,!0);null!=n&&r<n&&(r=o.interval=n),null!=i&&r>i&&(r=o.interval=i);var s=o.intervalPrecision=Xa(r),l=o.niceTickExtent=[Object(ii["u"])(Math.ceil(t[0]/r)*r,s),Object(ii["u"])(Math.floor(t[1]/r)*r,s)];return Ua(l,t),o}function Ya(t){var e=Math.pow(10,Object(ii["r"])(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(ii["u"])(n*e)}function Xa(t){return Object(ii["g"])(t)+2}function Za(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Ua(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Za(t,0,e),Za(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function qa(t,e){return t>=e[0]&&t<=e[1]}function Ka(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Ja(t,e){return t*(e[1]-e[0])+e[0]}var $a=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Ea({})),Object(w["t"])(i)&&(i=new Ea({categories:Object(w["H"])(i,(function(t){return Object(w["A"])(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return Object(le["a"])(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(w["C"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),qa(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Ka(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Ja(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,a=this._ordinalMeta.categories.length,r=Math.min(a,e.length);o<r;++o){var s=e[o];n[o]=s,i[s]=o}for(var l=0;o<a;++o){while(null!=i[l])l++;n.push(l),i[l]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ha);Ha.registerClass($a);var Qa=$a,tr=ii["u"],er=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return Object(le["a"])(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return qa(t,this._extent)},e.prototype.normalize=function(t){return Ka(t,this._extent)},e.prototype.scale=function(t){return Ja(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Xa(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,a=[];if(!e)return a;var r=1e4;n[0]<i[0]&&(t?a.push({value:tr(i[0]-e,o)}):a.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(a.push({value:s}),s=tr(s+e,o),s===a[a.length-1].value)break;if(a.length>r)return[]}var l=a.length?a[a.length-1].value:i[1];return n[1]>l&&(t?a.push({value:tr(l+e,o)}):a.push({value:n[1]})),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<e.length;o++){var a=e[o],r=e[o-1],s=0,l=[],c=a.value-r.value,u=c/t;while(s<t-1){var h=tr(r.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=ii["g"](t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=tr(t.value,n,!0);return li["a"](i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var a=Wa(i,t,e,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(e[0]=tr(Math.floor(e[0]/o)*o)),t.fixMax||(e[1]=tr(Math.ceil(e[1]/o)*o))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(Ha);Ha.registerClass(er);var nr=er,ir=n("f876"),or=function(t,e,n,i){while(n<i){var o=n+i>>>1;t[o][1]<e?n=o+1:i=o}return n},ar=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return Object(le["a"])(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Object(ir["h"])(t.value,ir["i"][Object(ir["l"])(Object(ir["m"])(this._minLevelUnit))]||ir["i"].second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Object(ir["r"])(t,e,n,o,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),o=gr(this._minLevelUnit,this._approxInterval,i,e);return n=n.concat(o),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=ir["a"],e[1]+=ir["a"]),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-ir["a"]}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var a=rr.length,r=Math.min(or(rr,this._approxInterval,0,a),a-1);this._interval=rr[r][1],this._minLevelUnit=rr[Math.max(r-1,0)][0]},e.prototype.parse=function(t){return Object(w["z"])(t)?t:+ii["n"](t)},e.prototype.contain=function(t){return qa(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Ka(this.parse(t),this._extent)},e.prototype.scale=function(t){return Ja(t,this._extent)},e.type="time",e}(nr),rr=[["second",ir["d"]],["minute",ir["c"]],["hour",ir["b"]],["quarter-day",6*ir["b"]],["half-day",12*ir["b"]],["day",1.2*ir["a"]],["half-week",3.5*ir["a"]],["week",7*ir["a"]],["month",31*ir["a"]],["quarter",95*ir["a"]],["half-year",ir["e"]/2],["year",ir["e"]]];function sr(t,e,n,i){var o=ii["n"](e),a=ii["n"](n),r=function(t){return Object(ir["n"])(o,t,i)===Object(ir["n"])(a,t,i)},s=function(){return r("year")},l=function(){return s()&&r("month")},c=function(){return l()&&r("day")},u=function(){return c()&&r("hour")},h=function(){return u()&&r("minute")},d=function(){return h()&&r("second")},p=function(){return d()&&r("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return h();case"second":return d();case"millisecond":return p()}}function lr(t,e){return t/=ir["a"],t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function cr(t){var e=30*ir["a"];return t/=e,t>6?6:t>3?3:t>2?2:1}function ur(t){return t/=ir["b"],t>12?12:t>6?6:t>3.5?4:t>2?2:1}function hr(t,e){return t/=e?ir["c"]:ir["d"],t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function dr(t){return ii["l"](t,!0)}function pr(t,e,n){var i=new Date(t);switch(Object(ir["m"])(e)){case"year":case"month":i[Object(ir["x"])(n)](0);case"day":i[Object(ir["g"])(n)](1);case"hour":i[Object(ir["p"])(n)](0);case"minute":i[Object(ir["v"])(n)](0);case"second":i[Object(ir["A"])(n)](0),i[Object(ir["t"])(n)](0)}return i.getTime()}function gr(t,e,n,i){var o=1e4,a=ir["B"],r=0;function s(t,e,n,o,a,r,s){var l=new Date(e),c=e,u=l[o]();while(c<n&&c<=i[1])s.push({value:c}),u+=t,l[a](u),c=l.getTime();s.push({value:c,notAdd:!0})}function l(t,o,a){var r=[],l=!o.length;if(!sr(Object(ir["m"])(t),i[0],i[1],n)){l&&(o=[{value:pr(new Date(i[0]),t,n)},{value:i[1]}]);for(var c=0;c<o.length-1;c++){var u=o[c].value,h=o[c+1].value;if(u!==h){var d=void 0,p=void 0,g=void 0,f=!1;switch(t){case"year":d=Math.max(1,Math.round(e/ir["a"]/365)),p=Object(ir["j"])(n),g=Object(ir["k"])(n);break;case"half-year":case"quarter":case"month":d=cr(e),p=Object(ir["w"])(n),g=Object(ir["x"])(n);break;case"week":case"half-week":case"day":d=lr(e,31),p=Object(ir["f"])(n),g=Object(ir["g"])(n),f=!0;break;case"half-day":case"quarter-day":case"hour":d=ur(e),p=Object(ir["o"])(n),g=Object(ir["p"])(n);break;case"minute":d=hr(e,!0),p=Object(ir["u"])(n),g=Object(ir["v"])(n);break;case"second":d=hr(e,!1),p=Object(ir["z"])(n),g=Object(ir["A"])(n);break;case"millisecond":d=dr(e),p=Object(ir["s"])(n),g=Object(ir["t"])(n);break}s(d,u,h,p,g,f,r),"year"===t&&a.length>1&&0===c&&a.unshift({value:a[0].value-d})}}for(c=0;c<r.length;c++)a.push(r[c]);return r}}for(var c=[],u=[],h=0,d=0,p=0;p<a.length&&r++<o;++p){var g=Object(ir["m"])(a[p]);if(Object(ir["q"])(a[p])){l(a[p],c[c.length-1]||[],u);var f=a[p+1]?Object(ir["m"])(a[p+1]):null;if(g!==f){if(u.length){d=h,u.sort((function(t,e){return t.value-e.value}));for(var y=[],v=0;v<u.length;++v){var m=u[v].value;0!==v&&u[v-1].value===m||(y.push(u[v]),m>=i[0]&&m<=i[1]&&h++)}var b=(i[1]-i[0])/e;if(h>1.5*b&&d>b/1.5)break;if(c.push(y),h>b||t===a[p])break}u=[]}}}var x=Object(w["n"])(Object(w["H"])(c,(function(t){return Object(w["n"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],O=x.length-1;for(p=0;p<x.length;++p)for(var S=x[p],M=0;M<S.length;++M)_.push({value:S[M].value,level:O-p});_.sort((function(t,e){return t.value-e.value}));var I=[];for(p=0;p<_.length;++p)0!==p&&_[p].value===_[p-1].value||I.push(_[p]);return I}Ha.registerClass(ar);var fr=ar,yr=Ha.prototype,vr=nr.prototype,mr=ii["u"],br=Math.floor,xr=Math.ceil,_r=Math.pow,Or=Math.log,wr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new nr,e._interval=0,e}return Object(le["a"])(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),o=vr.getTicks.call(this,t);return w["H"](o,(function(t){var e=t.value,o=ii["u"](_r(this.base,e));return o=e===n[0]&&this._fixMin?Mr(o,i[0]):o,o=e===n[1]&&this._fixMax?Mr(o,i[1]):o,{value:o}}),this)},e.prototype.setExtent=function(t,e){var n=Or(this.base);t=Or(Math.max(0,t))/n,e=Or(Math.max(0,e))/n,vr.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=yr.getExtent.call(this);e[0]=_r(t,e[0]),e[1]=_r(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=Mr(e[0],i[0])),this._fixMax&&(e[1]=Mr(e[1],i[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Or(t[0])/Or(e),t[1]=Or(t[1])/Or(e),yr.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=ii["q"](n),o=t/n*i;o<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var a=[ii["u"](xr(e[0]/i)*i),ii["u"](br(e[1]/i)*i)];this._interval=i,this._niceExtent=a}},e.prototype.calcNiceExtent=function(t){vr.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Or(t)/Or(this.base),qa(t,this._extent)},e.prototype.normalize=function(t){return t=Or(t)/Or(this.base),Ka(t,this._extent)},e.prototype.scale=function(t){return t=Ja(t,this._extent),_r(this.base,t)},e.type="log",e}(Ha),Sr=wr.prototype;function Mr(t,e){return mr(t,ii["g"](e))}Sr.getMinorTicks=vr.getMinorTicks,Sr.getLabel=vr.getLabel,Ha.registerClass(wr);var Ir=wr,jr=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var o=e.get("min",!0);null==o&&(o=e.get("startValue",!0));var a=this._modelMinRaw=o;Object(w["w"])(a)?this._modelMinNum=Tr(t,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=Tr(t,a));var r=this._modelMaxRaw=e.get("max",!0);if(Object(w["w"])(r)?this._modelMaxNum=Tr(t,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=Tr(t,r)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=Object(w["t"])(s)?s:[s||0,s||0];"boolean"===typeof l[0]||"boolean"===typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Object(p["g"])(l[0],1),Object(p["g"])(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),r="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=r,c=null!=s;null==r&&(r=t?i?0:NaN:e-o[0]*a),null==s&&(s=t?i?i-1:NaN:n+o[1]*a),(null==r||!isFinite(r))&&(r=NaN),(null==s||!isFinite(s))&&(s=NaN);var u=Object(w["l"])(r)||Object(w["l"])(s)||t&&!i;this._needCrossZero&&(r>0&&s>0&&!l&&(r=0),r<0&&s<0&&!c&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(r=h,l=!0),null!=d&&(s=d,c=!0),{min:r,max:s,minFixed:l,maxFixed:c,isBlank:u}},t.prototype.modifyDataMinMax=function(t,e){this[Cr[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=Ar[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Ar={min:"_determinedMin",max:"_determinedMax"},Cr={min:"_dataMin",max:"_dataMax"};function Dr(t,e,n){var i=t.rawExtentInfo;return i||(i=new jr(t,e,n),t.rawExtentInfo=i,i)}function Tr(t,e){return null==e?null:Object(w["l"])(e)?NaN:t.parse(e)}function kr(t,e){var n=t.type,i=Dr(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o=i.min,a=i.max,r=e.ecModel;if(r&&"time"===n){var s=zi("bar",r),l=!1;if(w["k"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var c=Bi(s),u=Lr(o,a,e,c);o=u.min,a=u.max}}return{extent:[o,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function Lr(t,e,n,i){var o=n.axis.getExtent(),a=o[1]-o[0],r=Hi(i,n.axis);if(void 0===r)return{min:t,max:e};var s=1/0;w["k"](r,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;w["k"](r,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=e-t,h=1-(s+l)/a,d=u/h-u;return e+=d*(l/c),t-=d*(s/c),{min:t,max:e}}function Pr(t,e){var n=e,i=kr(t,n),o=i.extent,a=n.get("splitNumber");t instanceof Ir&&(t.base=n.get("logBase"));var r=t.type,s=n.get("interval"),l="interval"===r||"time"===r;t.setExtent(o[0],o[1]),t.calcNiceExtent({splitNumber:a,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 Nr(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Qa({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new fr({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Ha.getClass(e)||nr)}}function Er(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function Rr(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):w["C"](e)?function(e){return function(n){var i=t.scale.getLabel(n),o=e.replace("{value}",null!=i?i:"");return o}}(e):w["w"](e)?function(e){return function(i,o){return null!=n&&(o=i.value-n),e(zr(t,i),o,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function zr(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Vr(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,a=n.getExtent();n instanceof Qa?o=n.count():(i=n.getTicks(),o=i.length);var r,s=t.getLabelModel(),l=Rr(t),c=1;o>40&&(c=Math.ceil(o/40));for(var u=0;u<o;u+=c){var h=i?i[u]:{value:a[0]+u},d=l(h,u),p=s.getTextRect(d),g=Br(p,s.get("rotate")||0);r?r.union(g):r=g}return r}}function Br(t,e){var n=e*Math.PI/180,i=t.width,o=t.height,a=i*Math.abs(Math.cos(n))+Math.abs(o*Math.sin(n)),r=i*Math.abs(Math.sin(n))+Math.abs(o*Math.cos(n)),s=new pa["a"](t.x,t.y,a,r);return s}function Gr(t){var e=t.get("interval");return null==e?"auto":e}function Hr(t){return"category"===t.type&&0===Gr(t.getLabelModel())}function Fr(t,e){var n={};return w["k"](t.mapDimensionsAll(e),(function(e){n[un(t,e)]=!0})),w["F"](n)}function Wr(t,e,n){e&&w["k"](Fr(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}var Yr=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return w["H"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),w["n"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),Xr=Yr,Zr=n("1687"),Ur=n("401b"),qr=["x","y"];function Kr(t){return"interval"===t.type||"time"===t.type}var Jr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=qr,e}return Object(le["a"])(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(Kr(t)&&Kr(e)){var n=t.getExtent(),i=e.getExtent(),o=this.dataToPoint([n[0],i[0]]),a=this.dataToPoint([n[1],i[1]]),r=n[1]-n[0],s=i[1]-i[0];if(r&&s){var l=(a[0]-o[0])/r,c=(a[1]-o[1])/s,u=o[0]-n[0]*l,h=o[1]-i[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=Object(Zr["e"])([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),o=this.getArea(),a=new pa["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(a)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return Object(Ur["b"])(n,t,this._transform);var a=this.getAxis("x"),r=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(i,e)),n[1]=r.toGlobalCoord(r.dataToCoord(o,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),a=i.getExtent(),r=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(o[0],o[1]),r),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Object(Ur["b"])(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=o.coordToData(o.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,o=Math.min(n[0],n[1])-t,a=Math.max(e[0],e[1])-i+t,r=Math.max(n[0],n[1])-o+t;return new pa["a"](i,o,a,r)},e}(Xr),$r=Jr,Qr=Object(we["o"])();function ts(t,e){var n=w["H"](e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function es(t){var e=t.getLabelModel().get("customValues");if(e){var n=Rr(t);return{labels:ts(t,e).map((function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}}))}}return"category"===t.type?is(t):rs(t)}function ns(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:ts(t,n)}:"category"===t.type?as(t,e):{ticks:w["H"](t.scale.getTicks(),(function(t){return t.value}))}}function is(t){var e=t.getLabelModel(),n=os(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function os(t,e){var n,i,o=ss(t,"labels"),a=Gr(e),r=ls(o,a);return r||(w["w"](a)?n=gs(t,a):(i="auto"===a?us(t):a,n=ps(t,i)),cs(o,a,{labels:n,labelCategoryInterval:i}))}function as(t,e){var n,i,o=ss(t,"ticks"),a=Gr(e),r=ls(o,a);if(r)return r;if(e.get("show")&&!t.scale.isBlank()||(n=[]),w["w"](a))n=gs(t,a,!0);else if("auto"===a){var s=os(t,t.getLabelModel());i=s.labelCategoryInterval,n=w["H"](s.labels,(function(t){return t.tickValue}))}else i=a,n=ps(t,i,!0);return cs(o,a,{ticks:n,tickCategoryInterval:i})}function rs(t){var e=t.scale.getTicks(),n=Rr(t);return{labels:w["H"](e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function ss(t,e){return Qr(t)[e]||(Qr(t)[e]=[])}function ls(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function cs(t,e,n){return t.push({key:e,value:n}),n}function us(t){var e=Qr(t).autoInterval;return null!=e?e:Qr(t).autoInterval=t.calculateCategoryInterval()}function hs(t){var e=ds(t),n=Rr(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=t.scale,a=o.getExtent(),r=o.count();if(a[1]-a[0]<1)return 0;var s=1;r>40&&(s=Math.max(1,Math.floor(r/40)));for(var l=a[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(c*Math.cos(i)),h=Math.abs(c*Math.sin(i)),d=0,g=0;l<=a[1];l+=s){var f=0,y=0,v=p["d"](n({value:l}),e.font,"center","top");f=1.3*v.width,y=1.3*v.height,d=Math.max(d,f,7),g=Math.max(g,y,7)}var m=d/u,b=g/h;isNaN(m)&&(m=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(m,b))),_=Qr(t.model),O=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-r)<=1&&w>x&&_.axisExtent0===O[0]&&_.axisExtent1===O[1]?x=w:(_.lastTickCount=r,_.lastAutoInterval=x,_.axisExtent0=O[0],_.axisExtent1=O[1]),x}function ds(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 ps(t,e,n){var i=Rr(t),o=t.scale,a=o.getExtent(),r=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=a[0],u=o.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=Hr(t),d=r.get("showMinLabel")||h,p=r.get("showMaxLabel")||h;d&&c!==a[0]&&f(a[0]);for(var g=c;g<=a[1];g+=l)f(g);function f(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return p&&g-l!==a[1]&&f(a[1]),s}function gs(t,e,n){var i=t.scale,o=Rr(t),a=[];return w["k"](i.getTicks(),(function(t){var r=i.getLabel(t),s=t.value;e(t.value,r)&&a.push(n?s:{formattedLabel:o(t),rawLabel:r,tickValue:s})})),a}var fs=[0,1],ys=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Object(ii["f"])(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),vs(n,i.count())),Object(ii["k"])(t,fs,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),vs(n,i.count()));var o=Object(ii["k"])(t,n,fs,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=ns(this,e),i=n.ticks,o=Object(w["H"])(i,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),a=e.get("alignWithLabel");return ms(this,o,a,t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=Object(w["H"])(n,(function(t){return Object(w["H"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},t.prototype.getViewLabels=function(){return es(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return hs(this)},t}();function vs(t,e){var n=t[1]-t[0],i=e,o=n/i/2;t[0]+=o,t[1]-=o}function ms(t,e,n,i){var o=e.length;if(t.onBand&&!n&&o){var a,r,s=t.getExtent();if(1===o)e[0].coord=s[0],a=e[1]={coord:s[1]};else{var l=e[o-1].tickValue-e[0].tickValue,c=(e[o-1].coord-e[0].coord)/l;Object(w["k"])(e,(function(t){t.coord-=c/2}));var u=t.scale.getExtent();r=1+u[1]-e[o-1].tickValue,a={coord:e[o-1].coord+c*r},e.push(a)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]}),d(s[1],a.coord)&&(i?a.coord=s[1]:e.pop()),i&&d(a.coord,s[1])&&e.push({coord:s[1]})}function d(t,e){return t=Object(ii["u"])(t),e=Object(ii["u"])(e),h?t>e:t<e}}var bs=ys,xs=function(t){function e(e,n,i,o,a){var r=t.call(this,e,n,i)||this;return r.index=0,r.type=o||"value",r.position=a||"bottom",r}return Object(le["a"])(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(bs),_s=xs;function Os(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,a={},r=o.getAxesOnZeroOf()[0],s=o.position,l=r?"onZero":s,c=o.dim,u=i.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===c?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(r){var f=r.toGlobalCoord(r.dataToCoord(0));g[d.onZero]=Math.max(Math.min(f,g[1]),g[0])}a.position=["y"===c?g[d[l]]:h[0],"x"===c?g[d[l]]:h[3]],a.rotation=Math.PI/2*("x"===c?0:1);var y={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=y[s],a.labelOffset=r?g[d[s]]-g[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),w["O"](n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===l?-v:v,a.z2=1,a}function ws(t){return"cartesian2d"===t.get("coordinateSystem")}function Ss(t){var e={xAxisModel:null,yAxisModel:null};return w["k"](e,(function(n,i){var o=i.replace(/Model$/,""),a=t.getReferringComponents(o,we["b"]).models[0];e[i]=a})),e}var Ms=Math.log;function Is(t,e,n){var i=nr.prototype,o=i.getTicks.call(n),a=i.getTicks.call(n,!0),r=o.length-1,s=i.getInterval.call(n),l=kr(t,e),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===t.type){var d=Ms(t.base);c=[Ms(c[0])/d,Ms(c[1])/d]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:r,fixMin:u,fixMax:h});var p=i.getExtent.call(t);u&&(c[0]=p[0]),h&&(c[1]=p[1]);var g=i.getInterval.call(t),f=c[0],y=c[1];if(u&&h)g=(y-f)/r;else if(u){y=c[0]+g*r;while(y<c[1]&&isFinite(y)&&isFinite(c[1]))g=Ya(g),y=c[0]+g*r}else if(h){f=c[1]-g*r;while(f>c[0]&&isFinite(f)&&isFinite(c[0]))g=Ya(g),f=c[1]-g*r}else{var v=t.getTicks().length-1;v>r&&(g=Ya(g));var m=g*r;y=Math.ceil(c[1]/g)*g,f=Object(ii["u"])(y-m),f<0&&c[0]>=0?(f=0,y=Object(ii["u"])(m)):y>0&&c[1]<=0&&(y=0,f=-Object(ii["u"])(m))}var b=(o[0].value-a[0].value)/s,x=(o[r].value-a[r].value)/s;i.setExtent.call(t,f+g*b,y+g*x),i.setInterval.call(t,g),(b||x)&&i.setNiceExtent.call(t,f+g,y-g)}var js=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=qr,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(w["F"])(t),i=n.length;if(i){for(var o=[],a=i-1;a>=0;a--){var r=+n[a],s=t[r],l=s.model,c=s.scale;Fa(c)&&l.get("alignTicks")&&null==l.get("interval")?o.push(s):(Pr(c,l),Fa(c)&&(e=s))}o.length&&(e||(e=o.pop(),Pr(e.scale,e.model)),Object(w["k"])(o,(function(t){Is(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};Object(w["k"])(n.x,(function(t){Cs(n,"y",t,o)})),Object(w["k"])(n.y,(function(t){Cs(n,"x",t,o)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=Object(Eo["g"])(i,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var r=this._axesList;function s(){Object(w["k"])(r,(function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),Ts(t,e?a.x:a.y)}))}s(),o&&(Object(w["k"])(r,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=Vr(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i)}}})),s()),Object(w["k"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(w["A"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===e)return o[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",we["b"]).models[0],a=t.yAxisModel||i&&i.getReferringComponents("yAxis",we["b"]).models[0],r=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,Object(w["r"])(s,e)<0&&(e=null);else if(o&&a)e=this.getCartesian(o.componentIndex,a.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(r){var l=r.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(As(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=a.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=a.left?"right":"left"),a[l]=!0;var c=new _s(e,Nr(n),[0,0],n.get("type"),l),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=o,c.index=i,o._axesList.push(c),r[e][i]=c,s[e]++}}}this._axesMap=r,Object(w["k"])(r.x,(function(e,n){Object(w["k"])(r.y,(function(o,a){var r="x"+n+"y"+a,s=new $r(r);s.master=i,s.model=t,i._coordsMap[r]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(o)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Object(w["k"])(Fr(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Object(w["k"])(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(ws(t)){var i=Ss(t),o=i.xAxisModel,a=i.yAxisModel;if(!As(o,e)||!As(a,e))return;var r=this.getCartesian(o.componentIndex,a.componentIndex),s=t.getData(),l=r.getAxis("x"),c=r.getAxis("y");n(s,l),n(s,c)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(w["k"])(this.getCartesians(),(function(i){var o=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);Object(w["r"])(e,o)<0&&e.push(o),Object(w["r"])(n,a)<0&&n.push(a)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(o,a){var r=new t(o,e,n);r.name="grid_"+a,r.resize(o,n,!0),o.coordinateSystem=r,i.push(r)})),e.eachSeries((function(t){if(ws(t)){var e=Ss(t),n=e.xAxisModel,i=e.yAxisModel,o=n.getCoordSysModel();0;var a=o.coordinateSystem;t.coordinateSystem=a.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=qr,t}();function As(t,e){return t.getCoordSysModel()===e}function Cs(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],r=n.model,s=r.get(["axisLine","onZero"]),l=r.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Ds(a[l])&&(o=a[l]);else for(var c in a)if(a.hasOwnProperty(c)&&Ds(a[c])&&!i[u(a[c])]){o=a[c];break}o&&(i[u(o)]=!0)}function u(t){return t.dim+"_"+t.index}}function Ds(t){return t&&"category"!==t.type&&"time"!==t.type&&Er(t)}function Ts(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}}var ks=js,Ls=n("cb11"),Ps=Math.PI,Ns=function(){function t(t,e){this.group=new bn["a"],this.opt=e,this.axisModel=t,Object(w["i"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new bn["a"]({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Es[t]},t.prototype.add=function(t){Es[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,o,a=Object(ii["t"])(e-t);return Object(ii["j"])(a)?(o=n>0?"top":"bottom",i="center"):Object(ii["j"])(a-Ps)?(o=n>0?"bottom":"top",i="center"):(o="middle",i=a>0&&a<Ps?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Es={axisLine:function(t,e,n,i){var o=e.get(["axisLine","show"]);if("auto"===o&&t.handleAutoShown&&(o=t.handleAutoShown("axisLine")),o){var a=e.axis.getExtent(),r=i.transform,s=[a[0],0],l=[a[1],0],c=s[0]>l[0];r&&(Object(Ur["b"])(s,s,r),Object(Ur["b"])(l,l,r));var u=Object(w["m"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ls["a"]({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});wn["subPixelOptimizeLine"](h.shape,h.style.lineWidth),h.anid="line",n.add(h);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);Object(w["C"])(d)&&(d=[d,d]),(Object(w["C"])(p)||Object(w["z"])(p))&&(p=[p,p]);var g=Object(mn["b"])(e.get(["axisLine","symbolOffset"])||0,p),f=p[0],y=p[1];Object(w["k"])([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==d[i]&&null!=d[i]){var o=Object(mn["a"])(d[i],-f/2,-y/2,f,y,u.stroke,!0),a=e.r+e.offset,r=c?l:s;o.attr({rotation:e.rotate,x:r[0]+a*Math.cos(t.rotation),y:r[1]-a*Math.sin(t.rotation),silent:!0,z2:11}),n.add(o)}}))}}},axisTickLabel:function(t,e,n,i){var o=Fs(n,i,e,t),a=Ys(n,i,e,t);if(zs(e,a,o),Ws(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var r=Object(Zo["b"])(Object(w["H"])(a,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Object(Zo["a"])(r)}},axisName:function(t,e,n,i){var o=Object(w["O"])(t.axisName,e.get("name"));if(o){var a,r,s=e.get("nameLocation"),l=t.nameDirection,c=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*u:"end"===s?h[1]+d*u:(h[0]+h[1])/2,Gs(s)?t.labelOffset+l*u:0],g=e.get("nameRotate");null!=g&&(g=g*Ps/180),Gs(s)?a=Ns.innerTextLayout(t.rotation,null!=g?g:t.rotation,l):(a=Rs(t.rotation,s,g||0,h),r=t.axisNameAvailableWidth,null!=r&&(r=Math.abs(r/Math.sin(a.rotation)),!isFinite(r)&&(r=null)));var f=c.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=Object(w["O"])(t.nameTruncateMaxWidth,y.maxWidth,r),b=new st["a"]({x:p[0],y:p[1],rotation:a.rotation,silent:Ns.isLabelSilent(e),style:Object(jn["c"])(c,{text:o,font:f,overflow:"truncate",width:m,ellipsis:v,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||a.textAlign,verticalAlign:c.get("verticalAlign")||a.textVerticalAlign}),z2:1});if(wn["setTooltipConfig"]({el:b,componentModel:e,itemName:o}),b.__fullText=o,b.anid="name",e.get("triggerEvent")){var x=Ns.makeAxisEventDataBase(e);x.targetType="axisName",x.name=o,Object(Se["a"])(b).eventData=x}i.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function Rs(t,e,n,i){var o,a,r=Object(ii["t"])(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Object(ii["j"])(r-Ps/2)?(a=l?"bottom":"top",o="center"):Object(ii["j"])(r-1.5*Ps)?(a=l?"top":"bottom",o="center"):(a="middle",o=r<1.5*Ps&&r>Ps/2?l?"left":"right":l?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}function zs(t,e,n){if(!Hr(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),o=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var a=e[0],r=e[1],s=e[e.length-1],l=e[e.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(Vs(a),Vs(c)):Bs(a,r)&&(i?(Vs(r),Vs(u)):(Vs(a),Vs(c))),!1===o?(Vs(s),Vs(h)):Bs(l,s)&&(o?(Vs(l),Vs(d)):(Vs(s),Vs(h)))}}function Vs(t){t&&(t.ignore=!0)}function Bs(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var o=Zr["d"]([]);return Zr["g"](o,o,-t.rotation),n.applyTransform(Zr["f"]([],o,t.getLocalTransform())),i.applyTransform(Zr["f"]([],o,e.getLocalTransform())),n.intersect(i)}}function Gs(t){return"middle"===t||"center"===t}function Hs(t,e,n,i,o){for(var a=[],r=[],s=[],l=0;l<t.length;l++){var c=t[l].coord;r[0]=c,r[1]=0,s[0]=c,s[1]=n,e&&(Object(Ur["b"])(r,r,e),Object(Ur["b"])(s,s,e));var u=new Ls["a"]({shape:{x1:r[0],y1:r[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});wn["subPixelOptimizeLine"](u.shape,u.style.lineWidth),u.anid=o+"_"+t[l].tickValue,a.push(u)}return a}function Fs(t,e,n,i){var o=n.axis,a=n.getModel("axisTick"),r=a.get("show");if("auto"===r&&i.handleAutoShown&&(r=i.handleAutoShown("axisTick")),r&&!o.scale.isBlank()){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),c=o.getTicksCoords(),u=Hs(c,e.transform,l,Object(w["i"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<u.length;h++)t.add(u[h]);return u}}function Ws(t,e,n,i){var o=n.axis,a=n.getModel("minorTick");if(a.get("show")&&!o.scale.isBlank()){var r=o.getMinorTicksCoords();if(r.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),c=Object(w["i"])(s.getLineStyle(),Object(w["i"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<r.length;u++)for(var h=Hs(r[u],e.transform,l,c,"minorticks_"+u),d=0;d<h.length;d++)t.add(h[d])}}function Ys(t,e,n,i){var o=n.axis,a=Object(w["O"])(i.axisLabelShow,n.get(["axisLabel","show"]));if(a&&!o.scale.isBlank()){var r=n.getModel("axisLabel"),s=r.get("margin"),l=o.getViewLabels(),c=(Object(w["O"])(i.labelRotate,r.get("rotate"))||0)*Ps/180,u=Ns.innerTextLayout(i.rotation,c,i.labelDirection),h=n.getCategories&&n.getCategories(!0),d=[],p=Ns.isLabelSilent(n),g=n.get("triggerEvent");return Object(w["k"])(l,(function(a,c){var f="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(a.tickValue):a.tickValue,y=a.formattedLabel,v=a.rawLabel,m=r;if(h&&h[f]){var b=h[f];Object(w["A"])(b)&&b.textStyle&&(m=new ce["a"](b.textStyle,r,n.ecModel))}var x=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),_=o.dataToCoord(f),O=m.getShallow("align",!0)||u.textAlign,S=Object(w["P"])(m.getShallow("alignMinLabel",!0),O),M=Object(w["P"])(m.getShallow("alignMaxLabel",!0),O),I=m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||u.textVerticalAlign,j=Object(w["P"])(m.getShallow("verticalAlignMinLabel",!0),I),A=Object(w["P"])(m.getShallow("verticalAlignMaxLabel",!0),I),C=new st["a"]({x:_,y:i.labelOffset+i.labelDirection*s,rotation:u.rotation,silent:p,z2:10+(a.level||0),style:Object(jn["c"])(m,{text:y,align:0===c?S:c===l.length-1?M:O,verticalAlign:0===c?j:c===l.length-1?A:I,fill:Object(w["w"])(x)?x("category"===o.type?v:"value"===o.type?f+"":f,c):x})});if(C.anid="label_"+f,g){var D=Ns.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=v,D.tickIndex=c,"category"===o.type&&(D.dataIndex=f),Object(Se["a"])(C).eventData=D}e.add(C),C.updateTransform(),d.push(C),t.add(C),C.decomposeTransform()})),d}}var Xs=Ns;function Zs(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Us(n,t,e),n.seriesInvolved&&Ks(n,t),n}function Us(t,e,n){var i=e.getComponent("tooltip"),o=e.getComponent("axisPointer"),a=o.get("link",!0)||[],r=[];Object(w["k"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=il(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var c=n.model,u=c.getModel("tooltip",i);if(Object(w["k"])(n.getAxes(),Object(w["h"])(g,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var h="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(h||d)&&Object(w["k"])(p.baseAxes,Object(w["h"])(g,!d||"cross",h)),d&&Object(w["k"])(p.otherAxes,Object(w["h"])(g,"cross",!1))}}function g(i,s,c){var h=c.model.getModel("axisPointer",o),d=h.get("show");if(d&&("auto"!==d||i||nl(h))){null==s&&(s=h.get("triggerTooltip")),h=i?qs(c,u,o,e,i,s):h;var p=h.get("snap"),g=h.get("triggerEmphasis"),f=il(c.model),y=s||p||"category"===c.type,v=t.axesInfo[f]={key:f,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:g,involveSeries:y,snap:p,useHandle:nl(h),seriesModels:[],linkGroup:null};l[f]=v,t.seriesInvolved=t.seriesInvolved||y;var m=Js(a,c);if(null!=m){var b=r[m]||(r[m]={axesInfo:{}});b.axesInfo[f]=v,b.mapper=a[m].mapper,v.linkGroup=b}}}}))}function qs(t,e,n,i,o,a){var r=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(w["k"])(s,(function(t){l[t]=Object(w["d"])(r.get(t))})),l.snap="category"!==t.type&&!!a,"cross"===r.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===o){var u=r.get(["label","show"]);if(c.show=null==u||u,!a){var h=l.lineStyle=r.get("crossStyle");h&&Object(w["i"])(c,h.textStyle)}}return t.model.getModel("axisPointer",new ce["a"](l,n,i))}function Ks(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),o=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==o&&!1!==e.get(["axisPointer","show"],!0)&&Object(w["k"])(t.coordSysAxesInfo[il(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 Js(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var a=t[o]||{};if($s(a[i+"AxisId"],n.id)||$s(a[i+"AxisIndex"],n.componentIndex)||$s(a[i+"AxisName"],n.name))return o}}function $s(t,e){return"all"===t||Object(w["t"])(t)&&Object(w["r"])(t,e)>=0||t===e}function Qs(t){var e=tl(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,o=n.option,a=n.get("status"),r=n.get("value");null!=r&&(r=i.parse(r));var s=nl(n);null==a&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==r||r>l[1])&&(r=l[1]),r<l[0]&&(r=l[0]),o.value=r,s&&(o.status=e.axis.scale.isBlank()?"hide":"show")}}function tl(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[il(t)]}function el(t){var e=tl(t);return e&&e.axisPointerModel}function nl(t){return!!t.get(["handle","show"])}function il(t){return t.type+"||"+t.id}var ol={},al=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(e,n,i,o){this.axisPointerClass&&Qs(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var a=el(t);a?(this._axisPointer||(this._axisPointer=new o)).render(t,a,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){ol[t]=e},e.getAxisPointerClass=function(t){return t&&ol[t]},e.type="axis",e}(_a["a"]),rl=al,sl=Object(we["o"])();function ll(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitArea"),r=a.getModel("areaStyle"),s=r.get("color"),l=i.coordinateSystem.getRect(),c=o.getTicksCoords({tickModel:a,clamp:!0});if(c.length){var u=s.length,h=sl(t).splitAreaColors,d=w["f"](),p=0;if(h)for(var g=0;g<c.length;g++){var f=h.get(c[g].tickValue);if(null!=f){p=(f+(u-1)*g)%u;break}}var y=o.toGlobalCoord(c[0].coord),v=r.getAreaStyle();s=w["t"](s)?s:[s];for(g=1;g<c.length;g++){var m=o.toGlobalCoord(c[g].coord),b=void 0,x=void 0,_=void 0,O=void 0;o.isHorizontal()?(b=y,x=l.y,_=m-b,O=l.height,y=b+_):(b=l.x,x=y,_=l.width,O=m-x,y=x+O);var S=c[g-1].tickValue;null!=S&&d.set(S,p),e.add(new ei["a"]({anid:null!=S?"area_"+S:null,shape:{x:b,y:x,width:_,height:O},style:w["i"]({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%u}sl(t).splitAreaColors=d}}}function cl(t){sl(t).splitAreaColors=null}var ul=["axisLine","axisTickLabel","axisName"],hl=["splitArea","splitLine","minorSplitLine"],dl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(le["a"])(e,t),e.prototype.render=function(e,n,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new bn["a"],this.group.add(this._axisGroup),e.get("show")){var r=e.getCoordSysModel(),s=Os(r,e),l=new Xs(e,w["m"]({handleAutoShown:function(t){for(var n=r.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Fa(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));w["k"](ul,l.add,l),this._axisGroup.add(l.getGroup()),w["k"](hl,(function(t){e.get([t,"show"])&&pl[t](this,this._axisGroup,e,r)}),this);var c=o&&"changeAxisOrder"===o.type&&o.isInitSort;c||wn["groupTransition"](a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,o)}},e.prototype.remove=function(){cl(this)},e.type="cartesianAxis",e}(rl),pl={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),r=a.getModel("lineStyle"),s=r.get("color");s=w["t"](s)?s:[s];for(var l=i.coordinateSystem.getRect(),c=o.isHorizontal(),u=0,h=o.getTicksCoords({tickModel:a}),d=[],p=[],g=r.getLineStyle(),f=0;f<h.length;f++){var y=o.toGlobalCoord(h[f].coord);c?(d[0]=y,d[1]=l.y,p[0]=y,p[1]=l.y+l.height):(d[0]=l.x,d[1]=y,p[0]=l.x+l.width,p[1]=y);var v=u++%s.length,m=h[f].tickValue,b=new Ls["a"]({anid:null!=m?"line_"+h[f].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:w["i"]({stroke:s[v]},g),silent:!0});wn["subPixelOptimizeLine"](b.shape,g.lineWidth),e.add(b)}}},minorSplitLine:function(t,e,n,i){var o=n.axis,a=n.getModel("minorSplitLine"),r=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),c=o.getMinorTicksCoords();if(c.length)for(var u=[],h=[],d=r.getLineStyle(),p=0;p<c.length;p++)for(var g=0;g<c[p].length;g++){var f=o.toGlobalCoord(c[p][g].coord);l?(u[0]=f,u[1]=s.y,h[0]=f,h[1]=s.y+s.height):(u[0]=s.x,u[1]=f,h[0]=s.x+s.width,h[1]=f);var y=new Ls["a"]({anid:"minor_line_"+c[p][g].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:d,silent:!0});wn["subPixelOptimizeLine"](y.shape,d.lineWidth),e.add(y)}},splitArea:function(t,e,n,i){ll(t,e,n,i)}},gl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="xAxis",e}(dl),fl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=gl.type,e}return Object(le["a"])(e,t),e.type="yAxis",e}(dl),yl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return Object(le["a"])(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new ei["a"]({shape:t.coordinateSystem.getRect(),style:Object(w["i"])({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(_a["a"]),vl={offset:0};function ml(t){t.registerComponentView(yl),t.registerComponentModel(Sa),t.registerCoordinateSystem("cartesian2d",ks),za(t,"x",Ia,vl),za(t,"y",Ia,vl),t.registerComponentView(gl),t.registerComponentView(fl),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function bl(t){Object(l["a"])(ml),t.registerSeriesModel(da),t.registerChartView(xa),t.registerLayout(Ci("scatter"))}function xl(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var o=i.getIndicatorAxes();w["k"](o,(function(t,a){e.each(e.mapDimension(o[a].dim),(function(t,e){n[e]=n[e]||[];var o=i.dataToPoint(t,a);n[e][a]=_l(o)?o:Ol(i)}))})),e.each((function(t){var o=w["o"](n[t],(function(t){return _l(t)}))||Ol(i);n[t].push(o.slice()),e.setItemLayout(t,n[t])}))}}))}function _l(t){return!isNaN(t[0])&&!isNaN(t[1])}function Ol(t){return[t.cx,t.cy]}function wl(t){var e=t.polar;if(e){w["t"](e)||(e=[e]);var n=[];w["k"](e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],w["t"](t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}w["k"](t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var Sl=n("87b1"),Ml=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,o=this.group,a=t.getData(),r=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=mn["c"](t.getItemVisual(e,"symbolSize")),o=mn["a"](n,-1,-1,2,2),a=t.getItemVisual(e,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:a*Math.PI/180||0}),o}}function l(e,n,i,o,a,r){i.removeAll();for(var l=0;l<n.length-1;l++){var c=s(o,a);c&&(c.__dimIdx=l,e[l]?(c.setPosition(e[l]),wn[r?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},t,a)):c.setPosition(n[l]),i.add(c))}}function c(t){return w["H"](t,(function(t){return[i.cx,i.cy]}))}a.diff(r).add((function(e){var n=a.getItemLayout(e);if(n){var i=new Sl["a"],o=new Wo["a"],r={shape:{points:n}};i.shape.points=c(n),o.shape.points=c(n),On["c"](i,r,t,e),On["c"](o,r,t,e);var s=new bn["a"],u=new bn["a"];s.add(o),s.add(i),s.add(u),l(o.shape.points,n,u,a,e,!0),a.setItemGraphicEl(e,s)}})).update((function(e,n){var i=r.getItemGraphicEl(n),o=i.childAt(0),s=i.childAt(1),c=i.childAt(2),u={shape:{points:a.getItemLayout(e)}};u.shape.points&&(l(o.shape.points,u.shape.points,c,a,e,!1),Object(On["g"])(s),Object(On["g"])(o),On["h"](o,u,t),On["h"](s,u,t),a.setItemGraphicEl(e,i))})).remove((function(t){o.remove(r.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var n=a.getItemModel(e),i=t.childAt(0),r=t.childAt(1),s=t.childAt(2),l=a.getItemVisual(e,"style"),c=l.fill;o.add(t),i.useStyle(w["i"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),Object(Sn["I"])(i,n,"lineStyle"),Object(Sn["I"])(r,n,"areaStyle");var u=n.getModel("areaStyle"),h=u.isEmpty()&&u.parentModel.isEmpty();r.ignore=h,w["k"](["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();r.ensureState(t).ignore=i&&h})),r.useStyle(w["i"](u.getAreaStyle(),{fill:c,opacity:.7,decal:l.decal}));var p=n.getModel("emphasis"),g=p.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof d["a"]){var i=t.style;t.useStyle(w["m"]({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else t.useStyle(l),t.setColor(c),t.style.strokeNoScale=!0;var o=t.ensureState("emphasis");o.style=w["d"](g);var r=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),Object(jn["g"])(t,Object(jn["e"])(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:c,defaultOpacity:l.opacity})})),Object(Sn["J"])(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(ti["a"]),Il=Ml,jl=n("217c"),Al=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(le["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new aa(w["c"](this.getData,this),w["c"](this.getRawData,this))},e.prototype.getInitialData=function(t,e){return ia(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.coordinateSystem,a=o.getIndicatorAxes(),r=this.getData().getName(t),s=""===r?this.name:r,l=Object(jl["e"])(this,t);return Object(jl["c"])("section",{header:s,sortBlocks:!0,blocks:w["H"](a,(function(e){var n=i.get(i.mapDimension(e.dim),t);return Object(jl["c"])("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(w["H"](n.dimensions,(function(t){return e.mapDimension(t)})),t),o=0,a=i.length;o<a;o++)if(!isNaN(i[o])){var r=n.getIndicatorAxes();return n.coordToPoint(r[o].dataToCoord(i[o]),o)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(vn["b"]),Cl=Al,Dl=ka.value;function Tl(t,e){return w["i"]({show:e},t)}var kl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),a=this.get("axisLabel"),r=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),u=this.get("triggerEvent"),h=w["H"](this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=r;null!=h.color&&(d=w["i"]({color:h.color},r));var p=w["I"](w["d"](h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:o,axisLabel:a,name:h.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:u},!1);if(w["C"](l)){var g=p.name;p.name=l.replace("{value}",null!=g?g:"")}else w["w"](l)&&(p.name=l(p.name,p));var f=new ce["a"](p,null,this.ecModel);return w["K"](f,Ma.prototype),f.mainType="radar",f.componentIndex=this.componentIndex,f}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:w["I"]({lineStyle:{color:"#bbb"}},Dl.axisLine),axisLabel:Tl(Dl.axisLabel,!1),axisTick:Tl(Dl.axisTick,!1),splitLine:Tl(Dl.splitLine,!0),splitArea:Tl(Dl.splitArea,!0),indicator:[]},e}(Oa["a"]),Ll=kl,Pl=n("d9fc"),Nl=n("4573"),El=["axisLine","axisTickLabel","axisName"],Rl=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=w["H"](n,(function(t){var n=t.model.get("showName")?t.name:"",i=new Xs(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));w["k"](i,(function(t){w["k"](El,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),o=t.getModel("splitLine"),a=t.getModel("splitArea"),r=o.getModel("lineStyle"),s=a.getModel("areaStyle"),l=o.get("show"),c=a.get("show"),u=r.get("color"),h=s.get("color"),d=w["t"](u)?u:[u],p=w["t"](h)?h:[h],g=[],f=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,b=0;b<y.length;b++){if(l){var x=C(g,d,b);g[x].push(new Pl["a"]({shape:{cx:v,cy:m,r:y[b].coord}}))}if(c&&b<y.length-1){x=C(f,p,b);f[x].push(new Nl["a"]({shape:{cx:v,cy:m,r0:y[b].coord,r:y[b+1].coord}}))}}else{var _,O=w["H"](n,(function(t,n){var i=t.getTicksCoords();return _=null==_?i.length-1:Math.min(i.length-1,_),w["H"](i,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(b=0;b<=_;b++){for(var M=[],I=0;I<n.length;I++)M.push(O[I][b]);if(M[0]&&M.push(M[0].slice()),l){x=C(g,d,b);g[x].push(new Wo["a"]({shape:{points:M}}))}if(c&&S){x=C(f,p,b-1);f[x].push(new Sl["a"]({shape:{points:M.concat(S)}}))}S=M.slice().reverse()}}var j=r.getLineStyle(),A=s.getAreaStyle();w["k"](f,(function(t,e){this.group.add(wn["mergePath"](t,{style:w["i"]({stroke:"none",fill:p[e%p.length]},A),silent:!0}))}),this),w["k"](g,(function(t,e){this.group.add(wn["mergePath"](t,{style:w["i"]({fill:"none",stroke:d[e%d.length]},j),silent:!0}))}),this)}function C(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(_a["a"]),zl=Rl,Vl=function(t){function e(e,n,i){var o=t.call(this,e,n,i)||this;return o.type="value",o.angle=0,o.name="",o}return Object(le["a"])(e,t),e}(bs),Bl=Vl,Gl=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(w["H"])(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new Bl(n,new nr);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,o=this.cx+t*Math.cos(i),a=this.cy-t*Math.sin(i);return[o,a]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var o,a=Math.atan2(-n,e),r=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(a-c.angle);u<r&&(o=c,s=l,r=u)}return[s,+(o&&o.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),a=Math.min(i,o)/2;this.cx=ii["o"](n[0],i),this.cy=ii["o"](n[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;var r=t.get("radius");(Object(w["C"])(r)||Object(w["z"])(r))&&(r=[0,r]),this.r0=ii["o"](r[0],a),this.r=ii["o"](r[1],a),Object(w["k"])(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;Object(w["k"])(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,o){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var a=e.getData();Object(w["k"])(n,(function(t){t.scale.unionExtentFromData(a,a.mapDimension(t.dim))}))}}),this);var o=i.get("splitNumber"),a=new nr;a.setExtent(0,o),a.setInterval(1),Object(w["k"])(n,(function(t,e){Is(t.scale,t.model,a)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(o){var a=new t(o,e,n);i.push(a),o.coordinateSystem=a})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}(),Hl=Gl;function Fl(t){t.registerCoordinateSystem("radar",Hl),t.registerComponentModel(Ll),t.registerComponentView(zl),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}function Wl(t){Object(l["a"])(Fl),t.registerChartView(Il),t.registerSeriesModel(Cl),t.registerLayout(xl),t.registerProcessor(Fo("radar")),t.registerPreprocessor(wl)}var Yl=n("6fd3"),Xl=n("607d"),Zl=n("1be7"),Ul="\0_ec_interaction_mutex";function ql(t,e,n){var i=$l(t);i[e]=n}function Kl(t,e,n){var i=$l(t),o=i[e];o===n&&(i[e]=null)}function Jl(t,e){return!!$l(t)[e]}function $l(t){return t[Ul]||(t[Ul]={})}Zl["c"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},w["L"]);var Ql=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=Object(w["c"])(n._mousedownHandler,n),o=Object(w["c"])(n._mousemoveHandler,n),a=Object(w["c"])(n._mouseupHandler,n),r=Object(w["c"])(n._mousewheelHandler,n),s=Object(w["c"])(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Object(w["i"])(Object(w["d"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",o),e.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",r),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",o),e.off("mouseup",a),e.off("mousewheel",r),e.off("pinch",s)},n}return Object(le["a"])(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Xl["d"](t)){var e=t.target;while(e){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&nc("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Jl(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,o=this._y,a=e-i,r=n-o;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Xl["g"](t.event),ec(this,"pan","moveOnMouseMove",t,{dx:a,dy:r,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Xl["d"](t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=nc("zoomOnMouseWheel",t,this._opt),n=nc("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),a=t.offsetX,r=t.offsetY;if(0!==i&&(e||n)){if(e){var s=o>3?1.4:o>1?1.2:1.1,l=i>0?s:1/s;tc(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:a,originY:r,isAvailableBehavior:null})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);tc(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:u,originX:a,originY:r,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Jl(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;tc(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Yl["a"]);function tc(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(Xl["g"](i.event),ec(t,e,n,i,o))}function ec(t,e,n,i,o){o.isAvailableBehavior=Object(w["c"])(nc,null,n,i),t.trigger(e,o)}function nc(t,e,n){var i=n[t];return!t||i&&(!Object(w["C"])(i)||e.event[i+"Key"])}var ic=Ql;function oc(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function ac(t,e,n,i){var o=t.target,a=t.zoomLimit,r=t.zoom=t.zoom||1;if(r*=e,a){var s=a.min||0,l=a.max||1/0;r=Math.max(Math.min(l,r),s)}var c=r/t.zoom;t.zoom=r,o.x-=(n-o.x)*(c-1),o.y-=(i-o.y)*(c-1),o.scaleX*=c,o.scaleY*=c,o.dirty()}var rc={axisPointer:1,tooltip:1,brush:1};function sc(t,e,n){var i=e.getComponentByElement(t.topTarget),o=i&&i.coordinateSystem;return i&&i!==n&&!rc.hasOwnProperty(i.mainType)&&o&&o.model!==n}var lc,cc=n("ae69"),uc=n("342d"),hc=n("dded");function dc(t){if(Object(w["C"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var pc={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},gc=Object(w["F"])(pc),fc={"alignment-baseline":"textBaseline","stop-color":"stopColor"},yc=Object(w["F"])(fc),vc=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=dc(t);this._defsUsePending=[];var i=new bn["a"];this._root=i;var o=[],a=n.getAttribute("viewBox")||"",r=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(r)&&(r=null),isNaN(s)&&(s=null),wc(n,i,null,!0,!1);var l,c,u=n.firstChild;while(u)this._parseNode(u,i,o,null,!1,!1),u=u.nextSibling;if(jc(this._defs,this._defsUsePending),this._defsUsePending=[],a){var h=Cc(a);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=r&&null!=s&&(c=Ec(l,{x:0,y:0,width:r,height:s}),!e.ignoreViewBox)){var d=i;i=new bn["a"],i.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return e.ignoreRootClip||null==r||null==s||i.setClipPath(new ei["a"]({shape:{x:0,y:0,width:r,height:s}})),{root:i,width:r,height:s,viewBoxRect:l,viewBoxTransform:c,named:o}},t.prototype._parseNode=function(t,e,n,i,o,a){var r,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(o=!0),"text"===s&&(a=!0),"defs"===s||"switch"===s)r=e;else{if(!o){var c=lc[s];if(c&&Object(w["q"])(lc,s)){r=c.call(this,t,e);var u=t.getAttribute("name");if(u){var h={name:u,namedFrom:null,svgNodeTagLower:s,el:r};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:r});e.add(r)}}var d=mc[s];if(d&&Object(w["q"])(mc,s)){var p=d.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=p)}}if(r&&r.isGroup){var f=t.firstChild;while(f)1===f.nodeType?this._parseNode(f,r,n,l,o,a):3===f.nodeType&&a&&this._parseText(f,r),f=f.nextSibling}},t.prototype._parseText=function(t,e){var n=new g["a"]({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});_c(e,n),wc(t,n,this._defsUsePending,!1,!1),Sc(n,e);var i=n.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,n.scaleX*=o/9,n.scaleY*=o/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var r=n.getBoundingRect();return this._textX+=r.width,e.add(n),n},t.internalField=function(){lc={g:function(t,e){var n=new bn["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new ei["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Pl["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Ls["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new cc["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=Oc(i));var o=new Sl["a"]({shape:{points:n||[]},silent:!0});return _c(e,o),wc(t,o,this._defsUsePending,!1,!1),o},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=Oc(i));var o=new Wo["a"]({shape:{points:n||[]},silent:!0});return _c(e,o),wc(t,o,this._defsUsePending,!1,!1),o},image:function(t,e){var n=new d["a"];return _c(e,n),wc(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var r=new bn["a"];return _c(e,r),wc(t,r,this._defsUsePending,!1,!0),r},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",r=new bn["a"];return _c(e,r),wc(t,r,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),r},path:function(t,e){var n=t.getAttribute("d")||"",i=Object(uc["b"])(n);return _c(e,i),wc(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),mc={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),o=parseInt(t.getAttribute("y2")||"0",10),a=new Wn["a"](e,n,i,o);return bc(t,a),xc(t,a),a},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),o=new hc["a"](e,n,i);return bc(t,o),xc(t,o),o}};function bc(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function xc(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),o=void 0;o=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var a={};Pc(n,a,a);var r=a.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:o,color:r})}n=n.nextSibling}}function _c(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(w["i"])(e.__inheritedStyle,t.__inheritedStyle))}function Oc(t){for(var e=Cc(t),n=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),a=parseFloat(e[i+1]);n.push([o,a])}return n}function wc(t,e,n,i,o){var a=e,r=a.__inheritedStyle=a.__inheritedStyle||{},s={};1===t.nodeType&&(kc(t,e),Pc(t,r,s),i||Nc(t,r,s)),a.style=a.style||{},null!=r.fill&&(a.style.fill=Ic(a,"fill",r.fill,n)),null!=r.stroke&&(a.style.stroke=Ic(a,"stroke",r.stroke,n)),Object(w["k"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=r[t]&&(a.style[t]=parseFloat(r[t]))})),Object(w["k"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=r[t]&&(a.style[t]=r[t])})),o&&(a.__selfStyle=s),r.lineDash&&(a.style.lineDash=Object(w["H"])(Cc(r.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==r.visibility&&"collapse"!==r.visibility||(a.invisible=!0),"none"===r.display&&(a.ignore=!0)}function Sc(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,o=i;i&&"auto"!==i?"baseline"===i?o="alphabetic":"before-edge"===i||"text-before-edge"===i?o="top":"after-edge"===i||"text-after-edge"===i?o="bottom":"central"!==i&&"mathematical"!==i||(o="middle"):o="alphabetic",t.style.textBaseline=o}var a=e.__inheritedStyle;if(a){var r=a.textAlign,s=r;r&&("middle"===r&&(s="center"),t.style.textAlign=s)}}var Mc=/^url\(\s*#(.*?)\)/;function Ic(t,e,n,i){var o=n&&n.match(Mc);if(!o)return"none"===n&&(n=null),n;var a=Object(w["T"])(o[1]);i.push([t,e,a])}function jc(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}var Ac=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Cc(t){return t.match(Ac)||[]}var Dc=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Tc=Math.PI/180;function kc(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],o=null;n.replace(Dc,(function(t,e,n){return i.push(e,n),""}));for(var a=i.length-1;a>0;a-=2){var r=i[a],s=i[a-1],l=Cc(r);switch(o=o||Zr["c"](),s){case"translate":Zr["i"](o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Zr["h"](o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Zr["g"](o,o,-parseFloat(l[0])*Tc,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var c=Math.tan(parseFloat(l[0])*Tc);Zr["f"](o,[1,0,c,1,0,0],o);break;case"skewY":var u=Math.tan(parseFloat(l[0])*Tc);Zr["f"](o,[1,u,0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5]);break}}e.setLocalTransform(o)}}var Lc=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Pc(t,e,n){var i=t.getAttribute("style");if(i){var o;Lc.lastIndex=0;while(null!=(o=Lc.exec(i))){var a=o[1],r=Object(w["q"])(pc,a)?pc[a]:null;r&&(e[r]=o[2]);var s=Object(w["q"])(fc,a)?fc[a]:null;s&&(n[s]=o[2])}}}function Nc(t,e,n){for(var i=0;i<gc.length;i++){var o=gc[i],a=t.getAttribute(o);null!=a&&(e[pc[o]]=a)}for(i=0;i<yc.length;i++){o=yc[i],a=t.getAttribute(o);null!=a&&(n[fc[o]]=a)}}function Ec(t,e){var n=e.width/t.width,i=e.height/t.height,o=Math.min(n,i);return{scale:o,x:-(t.x+t.width/2)*o+(e.x+e.width/2),y:-(t.y+t.height/2)*o+(e.y+e.height/2)}}function Rc(t,e){var n=new vc;return n.parse(t,e)}var zc=n("8728"),Vc=1e-8;function Bc(t,e){return Math.abs(t-e)<Vc}function Gc(t,e,n){var i=0,o=t[0];if(!o)return!1;for(var a=1;a<t.length;a++){var r=t[a];i+=Object(zc["a"])(o[0],o[1],r[0],r[1],e,n),o=r}var s=t[0];return Bc(o[0],s[0])&&Bc(o[1],s[1])||(i+=Object(zc["a"])(o[0],o[1],s[0],s[1],e,n)),0!==i}var Hc=[];function Fc(t,e){for(var n=0;n<t.length;n++)Ur["b"](t[n],t[n],e)}function Wc(t,e,n,i){for(var o=0;o<t.length;o++){var a=t[o];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Ur["l"](e,e,a),Ur["k"](n,n,a))}}function Yc(t){for(var e=0,n=0,i=0,o=t.length,a=t[o-1][0],r=t[o-1][1],s=0;s<o;s++){var l=t[s][0],c=t[s][1],u=a*c-l*r;e+=u,n+=(a+l)*u,i+=(r+c)*u,a=l,r=c}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var Xc=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),Zc=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),Uc=function(){function t(t){this.type="linestring",this.points=t}return t}(),qc=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.type="geoJSON",o.geometries=n,o._center=i&&[i[0],i[1]],o}return Object(le["a"])(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var o=e[i],a=o.exterior,r=a&&a.length;r>n&&(t=o,n=r)}if(t)return Yc(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return Object(w["k"])(o,(function(e){"polygon"===e.type?Wc(e.exterior,n,i,t):Object(w["k"])(e.points,(function(e){Wc(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new pa["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var a=n[i];if("polygon"===a.type){var r=a.exterior,s=a.interiors;if(Gc(r,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Gc(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var o=this.getBoundingRect(),a=o.width/o.height;n?i||(i=n/a):n=a*i;for(var r=new pa["a"](t,e,n,i),s=o.calculateTransform(r),l=this.geometries,c=0;c<l.length;c++){var u=l[c];"polygon"===u.type?(Fc(u.exterior,s),Object(w["k"])(u.interiors,(function(t){Fc(t,s)}))):Object(w["k"])(u.points,(function(t){Fc(t,s)}))}o=this._rect,o.copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(Xc),Kc=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return Object(le["a"])(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=Zr["d"](Hc),o=t;while(o&&!o.isGeoSVGGraphicRoot)Zr["f"](i,o.getLocalTransform(),i),o=o.parent;return Zr["e"](i,i),Ur["b"](n,n,i),n},e}(Xc),Jc=Object(w["f"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),$c=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(w["f"])(),this._freedGraphics=[],this._mapName=t,this._parsedXML=dc(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=tu(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&Rc(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Object(w["b"])(null!=n)}catch(f){throw new Error("Invalid svg format\n"+f.message)}var i=new bn["a"];i.add(n),i.isGeoSVGGraphicRoot=!0;var o=e.width,a=e.height,r=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,c=void 0,u=void 0,h=void 0;if(null!=o?(l=0,u=o):r&&(l=r.x,u=r.width),null!=a?(c=0,h=a):r&&(c=r.y,h=r.height),null==l||null==c){var d=n.getBoundingRect();null==l&&(l=d.x,u=d.width),null==c&&(c=d.y,h=d.height)}s=this._boundingRect=new pa["a"](l,c,u,h)}if(r){var p=Ec(r,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new ei["a"]({shape:s.plain()}));var g=[];return Object(w["k"])(e.named,(function(t){null!=Jc.get(t.svgNodeTagLower)&&(g.push(t),Qc(t.el))})),{root:i,boundingRect:s,named:g}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function Qc(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function tu(t){var e=[],n=Object(w["f"])();return Object(w["k"])(t,(function(t){if(null==t.namedFrom){var i=new Kc(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}function eu(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return w["k"](i,(function(t){var e=t.geometry,i=e.encodeOffsets,o=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=iu(o,i,n);break;case"Polygon":nu(o,i,n);break;case"MultiLineString":nu(o,i,n);break;case"MultiPolygon":w["k"](o,(function(t,e){return nu(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}function nu(t,e,n){for(var i=0;i<t.length;i++)t[i]=iu(t[i],e[i],n)}function iu(t,e,n){for(var i=[],o=e[0],a=e[1],r=0;r<t.length;r+=2){var s=t.charCodeAt(r)-64,l=t.charCodeAt(r+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=o,l+=a,o=s,a=l,i.push([s/n,l/n])}return i}function ou(t,e){return t=eu(t),w["H"](w["n"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,o=[];switch(i.type){case"Polygon":var a=i.coordinates;o.push(new Zc(a[0],a.slice(1)));break;case"MultiPolygon":w["k"](i.coordinates,(function(t){t[0]&&o.push(new Zc(t[0],t.slice(1)))}));break;case"LineString":o.push(new Uc([i.coordinates]));break;case"MultiLineString":o.push(new Uc(i.coordinates))}var r=new qc(n[e||"name"],o,n.cp);return r.properties=n,r}))}for(var au=[126,25],ru="南海诸岛",su=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],lu=0;lu<su.length;lu++)for(var cu=0;cu<su[lu].length;cu++)su[lu][cu][0]/=10.5,su[lu][cu][1]/=-14,su[lu][cu][0]+=au[0],su[lu][cu][1]+=au[1];function uu(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===ru)return;e.push(new qc(ru,w["H"](su,(function(t){return{type:"polygon",exterior:t}})),au))}}var hu={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function du(t,e){if("china"===t){var n=hu[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}var pu=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function gu(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:pu[0]})}var fu="name",yu=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=Object(w["f"])(),this._mapName=t,this._specialAreas=n,this._geoJSON=mu(e)}return t.prototype.load=function(t,e){e=e||fu;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:vu(i)})}var o=Object(w["f"])(),a=[];return Object(w["k"])(n.regions,(function(e){var n=e.name;t&&Object(w["q"])(t,n)&&(e=e.cloneShallow(n=t[n])),a.push(e),o.set(n,e)})),{regions:a,boundingRect:n.boundingRect||new pa["a"](0,0,0,0),regionsMap:o}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?ou(i,t):[]}catch(o){throw new Error("Invalid geoJson format\n"+o.message)}return uu(n,e),Object(w["k"])(e,(function(t){var e=t.name;du(n,t),gu(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function vu(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function mu(t){return Object(w["C"])(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var bu=Object(w["f"])(),xu={registerMap:function(t,e,n){if(e.svg){var i=new $c(t,e.svg);bu.set(t,i)}else{var o=e.geoJson||e.geoJSON;o&&!e.features?n=e.specialAreas:o=e;i=new yu(t,o,n);bu.set(t,i)}},getGeoResource:function(t){return bu.get(t)},getMapForUser:function(t){var e=bu.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=bu.get(t);if(i)return i.load(e,n)}},_u=n("b3c1"),Ou=n("19eb"),wu=["rect","circle","line","ellipse","polygon","polyline","path"],Su=w["f"](wu),Mu=w["f"](wu.concat(["g"])),Iu=w["f"](wu.concat(["g"])),ju=Object(we["o"])();function Au(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function Cu(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Du=function(){function t(t){var e=new bn["a"];this.uid=Object(Ki["c"])("ec_map_draw"),this._controller=new ic(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new bn["a"]),e.add(this._svgGroup=new bn["a"])}return t.prototype.draw=function(t,e,n,i,o){var a="geo"===t.mainType,r=t.getData&&t.getData();a&&e.eachComponent({mainType:"series",subType:"map"},(function(e){r||e.getHostGeoModel()!==t||(r=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),h=u.raw,d=u.roam,p=!l.childAt(0)||o;p?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):On["h"](c,d,t);var g=r&&r.getVisual("visualMeta")&&r.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:r,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=w["f"](),n=w["f"](),i=this._regionsGroup,o=t.transformInfoRaw,a=t.mapOrGeoModel,r=t.data,s=t.geo.projection,l=s&&s.stream;function c(t,e){return e&&(t=e(t)),t&&[t[0]*o.scaleX+o.x,t[1]*o.scaleY+o.y]}function u(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var o=c(t[i],n);o&&e.push(o)}return e}function h(t){return{shape:{points:u(t)}}}i.removeAll(),w["k"](t.geo.regions,(function(o){var u=o.name,d=e.get(u),p=n.get(u)||{},g=p.dataIdx,f=p.regionModel;d||(d=e.set(u,new bn["a"]),i.add(d),g=r?r.indexOfName(u):null,f=t.isGeo?a.getRegionModel(u):r?r.getItemModel(g):null,n.set(u,{dataIdx:g,regionModel:f}));var y=[],v=[];w["k"](o.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=Eu(e,l)),w["k"](e,(function(t){y.push(new Sl["a"](h(t)))}))}else{var n=t.points;l&&(n=Eu(n,l,!0)),w["k"](n,(function(t){v.push(new Wo["a"](h(t)))}))}}));var m=c(o.getCenter(),s&&s.project);function b(e,n){if(e.length){var i=new U["a"]({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(i),Tu(t,i,g,f),ku(t,i,u,f,a,g,m),n&&(Cu(i),w["k"](i.states,Cu))}}b(y),b(v,!0)})),e.each((function(e,i){var o=n.get(i),r=o.dataIdx,s=o.regionModel;Lu(t,e,i,s,a,r),Pu(t,e,i,s,a),Nu(t,e,i,s,a)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=w["f"](),o=!1;w["k"](this._svgGraphicRecord.named,(function(e){var n=e.name,a=t.mapOrGeoModel,r=t.data,s=e.svgNodeTagLower,l=e.el,c=r?r.indexOfName(n):null,u=a.getRegionModel(n);if(null!=Su.get(s)&&l instanceof Ou["c"]&&Tu(t,l,c,u),l instanceof Ou["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=Iu.get(s)&&ku(t,l,n,u,a,c,null),Lu(t,l,n,u,a,c),Pu(t,l,n,u,a),null!=Mu.get(s))){var h=Nu(t,l,n,u,a);"self"===h&&(o=!0);var d=i.get(n)||i.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(o,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Object(Sn["G"])(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=i&&(e.opacity=i),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var o=i.get(t);return o?[o]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=xu.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=xu.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=i.getZoom(),o.enable(t.get("roam")||!1);var r=t.mainType;function s(){var e={type:"geoRoam",componentType:r};return e[r+"Id"]=t.id,e}o.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,oc(a,t.dx,t.dy),n.dispatchAction(w["m"](s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),o.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,ac(a,t.scale,t.originX,t.originY),n.dispatchAction(w["m"](s(),{totalZoom:a.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),o.setPointerChecker((function(e,o,a){return i.containPoint([o,a])&&!sc(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=ju(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var o=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){o._mouseDownFlag=!0})),e.on("click",(function(t){o._mouseDownFlag&&(o._mouseDownFlag=!1)})))},t}();function Tu(t,e,n,i){var o=i.getModel("itemStyle"),a=i.getModel(["emphasis","itemStyle"]),r=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=Au(o),c=Au(a),u=Au(s),h=Au(r),d=t.data;if(d){var p=d.getItemVisual(n,"style"),g=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),g&&(l.decal=Object(_u["a"])(g,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=c,e.ensureState("select").style=u,e.ensureState("blur").style=h,Object(Sn["G"])(e)}function ku(t,e,n,i,o,a,r){var s=t.data,l=t.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),a)),u=s&&s.getItemLayout(a);if(l||c||u&&u.showLabel){var h=l?n:a,d=void 0;(!s||a>=0)&&(d=o);var p=r?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(jn["g"])(e,Object(jn["e"])(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var g=e.getTextContent();if(g&&(ju(g).ignore=g.ignore,e.textConfig&&r)){var f=e.getBoundingRect().clone();e.textConfig.layoutRect=f,e.textConfig.position=[(r[0]-f.x)/f.width*100+"%",(r[1]-f.y)/f.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Lu(t,e,n,i,o,a){t.data?t.data.setItemGraphicEl(a,e):Object(Se["a"])(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function Pu(t,e,n,i,o){t.data||wn["setTooltipConfig"]({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function Nu(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var a=i.getModel("emphasis"),r=a.get("focus");return Object(Sn["J"])(e,r,a.get("blurScope"),a.get("disabled")),t.isGeo&&Object(Sn["n"])(e,o,n),r}function Eu(t,e,n){var i,o=[];function a(){i=[]}function r(){i.length&&(o.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:r,lineStart:a,lineEnd:r,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),w["k"](t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),o}var Ru=Du,zu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){a=this._mapDraw;a&&o.add(a.group)}else if(t.needsDrawMap){var a=this._mapDraw||new Ru(n);o.add(a.group),a.draw(t,e,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var a=i.getItemLayout(n);if(a&&a.point){var r=a.point,s=a.offset,l=new Pl["a"]({style:{fill:t.getData().getVisual("style").fill},shape:{cx:r[0]+9*s,cy:r[1],r:3},silent:!0,z2:8+(s?0:Sn["j"]+1)});if(!s){var c=t.mainSeries.getData(),u=i.getName(n),h=c.indexOfName(u),d=i.getItemModel(n),p=d.getModel("label"),g=c.getItemGraphicEl(h);Object(jn["g"])(l,Object(jn["e"])(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:u}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(t){Object(Sn["H"])(l,t)}}o.add(l)}}}))},e.type="map",e}(ti["a"]),Vu=zu,Bu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t){for(var e=ia(this,{coordDimensions:["value"],encodeDefaulter:w["h"](Ke["d"],this)}),n=w["f"](),i=[],o=0,a=e.count();o<a;o++){var r=e.getName(o);n.set(r,!0)}var s=xu.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return w["k"](s.regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),o=this.getRawValue(t),a=i.getName(t),r=this.seriesGroup,s=[],l=0;l<r.length;l++){var c=r[l].originalData.indexOfName(a),u=i.mapDimension("value");isNaN(r[l].originalData.get(u,c))||s.push(r[l].name)}return Object(jl["c"])("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(jl["c"])("nameValue",{name:a,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Object(mn["a"])(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(vn["b"]),Gu=Bu;function Hu(t,e){var n={};return w["k"](t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var o="ec-"+t.getName(i);n[o]=n[o]||[],isNaN(e)||n[o].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,o){for(var a,r="ec-"+t[0].getName(o),s=0,l=1/0,c=-1/0,u=n[r].length,h=0;h<u;h++)l=Math.min(l,n[r][h]),c=Math.max(c,n[r][h]),s+=n[r][h];return a="min"===e?l:"max"===e?c:"average"===e?s/u:s,0===u?NaN:a}))}function Fu(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),w["k"](e,(function(t,e){for(var n=Hu(w["H"](t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]}))}function Wu(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var o={};w["k"](n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var a=i.getName(e),r=n.getRegion(a);if(r&&!isNaN(t)){var s=o[a]||0,l=n.dataToPoint(r.getCenter());o[a]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var a=n.getData();a.each((function(t){var e=a.getName(t),n=a.getItemLayout(t)||{};n.showLabel=!o[e],a.setItemLayout(t,n)})),e[i]=!0}}))}var Yu=Ur["b"],Xu=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new X["c"],n._rawTransformable=new X["c"],n.name=e,n}return Object(le["a"])(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new pa["a"](t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new pa["a"](t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),a=this._rawTransformable;a.transform=o.calculateTransform(new pa["a"](t,e,n,i));var r=a.parent;a.parent=null,a.decomposeTransform(),a.parent=r,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[Object(ii["o"])(t[0],e.getWidth()),Object(ii["o"])(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Ur["b"]([],i,t),n=Ur["b"]([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Zr["b"](this.transform||(this.transform=[]),e.transform||Zr["c"]()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Zr["e"](this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new X["c"];return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?Yu(n,t,i):Ur["d"](n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?Yu([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=Zu(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=Zu(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(X["c"]);function Zu(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var Uu=Xu,qu={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Ku=["lng","lat"],Ju=function(t){function e(e,n,i){var o=t.call(this,e)||this;o.dimensions=Ku,o.type="geo",o._nameCoordMap=w["f"](),o.map=n;var a,r=i.projection,s=xu.load(n,i.nameMap,i.nameProperty),l=xu.getGeoResource(n),c=(o.resourceType=l?l.type:null,o.regions=s.regions),u=qu[l.type];if(o._regionsMap=s.regionsMap,o.regions=s.regions,o.projection=r,r)for(var h=0;h<c.length;h++){var d=c[h].getBoundingRect(r);a=a||d.clone(),a.union(d)}else a=s.boundingRect;return o.setBoundingRect(a.x,a.y,a.width,a.height),o.aspectScale=r?1:w["P"](i.aspectScale,u.aspectScale),o._invertLongitute=!r&&u.invertLongitute,o}return Object(le["a"])(e,t),e.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),a=this._invertLongitute;o=o.clone(),a&&(o.y=-o.y-o.height);var r=this._rawTransformable;r.transform=o.calculateTransform(new pa["a"](t,e,n,i));var s=r.parent;r.parent=null,r.decomposeTransform(),r.parent=s,a&&(r.scaleY=-r.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(w["C"](t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=$u(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=$u(e);return i===this?i.pointToData(n):null},e}(Uu);function $u(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",we["b"]).models[0]||{}).coordinateSystem:null}w["K"](Ju,Uu);var Qu=Ju;function th(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],o=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])){var a=this.projection;if(a){var r=i[0],s=i[1],l=o[0],c=o[1];i=[1/0,1/0],o=[-1/0,-1/0];var u=function(t,e,n,r){for(var s=n-t,l=r-e,c=0;c<=100;c++){var u=c/100,h=a.project([t+s*u,e+l*u]);Ur["l"](i,i,h),Ur["k"](o,o,h)}};u(r,s,l,s),u(l,s,l,c),u(l,c,r,c),u(r,c,l,s)}this.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1])}else 0}var h,d,p,g=this.getBoundingRect(),f=t.get("layoutCenter"),y=t.get("layoutSize"),v=e.getWidth(),m=e.getHeight(),b=g.width/g.height*this.aspectScale,x=!1;if(f&&y&&(h=[ii["o"](f[0],v),ii["o"](f[1],m)],d=ii["o"](y,Math.min(v,m)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(x=!0)),x)p={},b>1?(p.width=d,p.height=d/b):(p.height=d,p.width=d*b),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var _=t.getBoxLayoutParams();_.aspect=b,p=Eo["g"](_,{width:v,height:m})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function eh(t,e){w["k"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var nh=function(){function t(){this.dimensions=Ku}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,o){var a=t.get("map"),r=new Qu(a+o,a,w["m"]({nameMap:t.get("nameMap")},i(t)));r.zoomLimit=t.get("scaleLimit"),n.push(r),t.coordinateSystem=r,r.model=t,r.resize=th,r.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var o={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();o[e]=o[e]||[],o[e].push(t)}})),w["k"](o,(function(t,o){var a=w["H"](t,(function(t){return t.get("nameMap")})),r=new Qu(o,o,w["m"]({nameMap:w["J"](a)},i(t[0])));r.zoomLimit=w["O"].apply(null,w["H"](t,(function(t){return t.get("scaleLimit")}))),n.push(r),r.resize=th,r.resize(t[0],e),w["k"](t,(function(t){t.coordinateSystem=r,eh(r,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),a=w["f"](),r=0;r<o.length;r++)a.set(o[r].name,o[r]);var s=xu.load(e,n,i);return w["k"](s.regions,(function(t){var e=t.name;!a.get(e)&&o.push({name:e})})),o},t}(),ih=new nh,oh=ih,ah=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(t,e,n){var i=xu.getGeoResource(t.map);if(i&&"geoJSON"===i.type){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),we["f"](t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=oh.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=w["N"](e.regions||[],(function(e,i){var o=i.name;return o&&(e.set(o,new ce["a"](i,t,t.ecModel)),i.selected&&(n[o]=!0)),e}),w["f"]()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new ce["a"](null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};return w["w"](i)?(o.status=e,i(o)):w["C"](i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var i=e.selectedMap||(e.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(Oa["a"]),rh=ah;function sh(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function lh(t,e,n,i){var o=t.getZoom(),a=t.getCenter(),r=e.zoom,s=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(sh(t,s),i)),null!=r){if(n){var l=n.min||0,c=n.max||1/0;r=Math.max(Math.min(o*r,c),l)/o}t.scaleX*=r,t.scaleY*=r;var u=(e.originX-t.x)*(r-1),h=(e.originY-t.y)*(r-1);t.x-=u,t.y-=h,t.updateTransform(),t.setCenter(sh(t,s),i),t.setZoom(r*o)}return{center:t.getCenter(),zoom:t.getZoom()}}var ch=n("fadd"),uh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new Ru(n));var o=this._mapDraw;o.draw(t,e,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;Object(ch["a"])(t.target,(function(t){return null!=(e=Object(Se["a"])(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=Object(Se["a"])(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(_a["a"]),hh=uh;function dh(t,e,n){xu.registerMap(t,e,n)}function ph(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},o=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var a=n.coordinateSystem;Object(w["k"])(a.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var r=[];Object(w["k"])(i,(function(t,e){i[e]&&r.push(e)})),o.push({geoIndex:n.componentIndex,name:r})})),{selected:i,allSelected:o,name:t.name}}))}t.registerCoordinateSystem("geo",oh),t.registerComponentModel(rh),t.registerComponentView(hh),t.registerImpl("registerMap",dh),t.registerImpl("getMap",(function(t){return xu.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var o=e.coordinateSystem;if("geo"===o.type){var a=lh(o,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===i&&Object(w["k"])(e.seriesGroup,(function(t){t.setCenter(a.center),t.setZoom(a.zoom)}))}}))}))}function gh(t){Object(l["a"])(ph),t.registerChartView(Vu),t.registerSeriesModel(Gu),t.registerLayout(Wu),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Fu),Object(No["a"])("map",t.registerAction)}var fh=n("ac0f");function yh(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,o=[e];while(n=o.pop())if(i=n.children,n.isExpand&&i.length)for(var a=i.length,r=a-1;r>=0;r--){var s=i[r];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},o.push(s)}}function vh(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,o=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){Oh(t);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(t.hierNode.prelim=o.hierNode.prelim+e(t,o),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else o&&(t.hierNode.prelim=o.hierNode.prelim+e(t,o));t.parentNode.hierNode.defaultAncestor=wh(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function mh(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function bh(t){return arguments.length?t:Ah}function xh(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function _h(t,e){return Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Oh(t){var e=t.children,n=e.length,i=0,o=0;while(--n>=0){var a=e[n];a.hierNode.prelim+=i,a.hierNode.modifier+=i,o+=a.hierNode.change,i+=a.hierNode.shift+o}}function wh(t,e,n,i){if(e){var o=t,a=t,r=a.parentNode.children[0],s=e,l=o.hierNode.modifier,c=a.hierNode.modifier,u=r.hierNode.modifier,h=s.hierNode.modifier;while(s=Sh(s),a=Mh(a),s&&a){o=Sh(o),r=Mh(r),o.hierNode.ancestor=t;var d=s.hierNode.prelim+h-a.hierNode.prelim-c+i(s,a);d>0&&(jh(Ih(s,t,n),t,d),c+=d,l+=d),h+=s.hierNode.modifier,c+=a.hierNode.modifier,l+=o.hierNode.modifier,u+=r.hierNode.modifier}s&&!Sh(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=h-l),a&&!Mh(r)&&(r.hierNode.thread=a,r.hierNode.modifier+=c-u,n=t)}return n}function Sh(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Mh(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function Ih(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function jh(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function Ah(t,e){return t.parentNode===e.parentNode?1:2}var Ch=n("e263"),Dh=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),Th=function(t){function e(e){return t.call(this,e)||this}return Object(le["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Dh},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,o=e.parentPoint,a=n[0],r=n[i-1];if(1===i)return t.moveTo(o[0],o[1]),void t.lineTo(a[0],a[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Object(ii["o"])(e.forkPosition,1),h=[];h[l]=o[l],h[c]=o[c]+(r[c]-o[c])*u,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(a[0],a[1]),h[l]=a[l],t.lineTo(h[0],h[1]),h[l]=r[l],t.lineTo(h[0],h[1]),t.lineTo(r[0],r[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(h["b"]),kh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new bn["a"],n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){this._controller=new ic(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),o=t.layoutInfo,a=this._mainGroup,r=t.get("layout");"radial"===r?(a.x=o.x+o.width/2,a.y=o.y+o.height/2):(a.x=o.x,a.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var s=this._data;i.diff(s).add((function(e){Lh(i,e)&&Ph(i,e,null,a,t)})).update((function(e,n){var o=s.getItemGraphicEl(n);Lh(i,e)?Ph(i,e,o,a,t):o&&zh(s,n,o,a,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&zh(s,e,n,a,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var o=[],a=[];Ch["d"](i,o,a);var r=this._min,s=this._max;a[0]-o[0]===0&&(o[0]=r?r[0]:o[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-o[1]===0&&(o[1]=r?r[1]:o[1]-1,a[1]=s?s[1]:a[1]+1);var l=t.coordinateSystem=new Uu;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(o[0],o[1],a[0]-o[0],a[1]-o[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=o,this._max=a},e.prototype._updateController=function(t,e,n){var i=this,o=this._controller,a=this._controllerHost,r=this.group;o.setPointerChecker((function(e,i,o){var a=r.getBoundingRect();return a.applyTransform(r.transform),a.contain(i,o)&&!sc(e,n,t)})),o.enable(t.get("roam")),a.zoomLimit=t.get("scaleLimit"),a.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(e){oc(a,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){ac(a,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1,o=e.getZoom(),a=(o-1)*n+1;return a/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(ti["a"]);function Lh(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function Ph(t,e,n,i,o){var a=!n,r=t.tree.getNodeByDataIndex(e),s=r.getModel(),l=r.getVisual("style").fill,c=!1===r.isExpand&&0!==r.children.length?l:"#fff",u=t.tree.root,h=r.parentNode===u?r:r.parentNode||r,d=t.getItemGraphicEl(h.dataIndex),p=h.getLayout(),g=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,f=r.getLayout();a?(n=new Dn(t,e,null,{symbolInnerColor:c,useNameLabel:!0}),n.x=g.x,n.y=g.y):n.updateData(t,e,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=f.rawX,n.__radialRawY=f.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,On["h"](n,{x:f.x,y:f.y},o);var y=n.getSymbolPath();if("radial"===o.get("layout")){var v=u.children[0],m=v.getLayout(),b=v.children.length,x=void 0,_=void 0;if(f.x===m.x&&!0===r.isExpand&&v.children.length){var O={x:(v.children[0].getLayout().x+v.children[b-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[b-1].getLayout().y)/2};x=Math.atan2(O.y-m.y,O.x-m.x),x<0&&(x=2*Math.PI+x),_=O.x<m.x,_&&(x-=Math.PI)}else x=Math.atan2(f.y-m.y,f.x-m.x),x<0&&(x=2*Math.PI+x),0===r.children.length||0!==r.children.length&&!1===r.isExpand?(_=f.x<m.x,_&&(x-=Math.PI)):(_=f.x>m.x,_||(x-=Math.PI));var S=_?"left":"right",M=s.getModel("label"),I=M.get("rotate"),j=I*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-x:j,origin:"center"}),A.setStyle("verticalAlign","middle"))}var C=s.get(["emphasis","focus"]),D="relative"===C?w["e"](r.getAncestorsIndices(),r.getDescendantIndices()):"ancestor"===C?r.getAncestorsIndices():"descendant"===C?r.getDescendantIndices():null;D&&(Object(Se["a"])(n).focus=D),Nh(o,r,u,n,g,p,f,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=r.parentNode&&t.getItemGraphicEl(r.parentNode.dataIndex);i&&i.hoverState===Sn["d"]||Object(Sn["H"])(n.__edge,e)}})}function Nh(t,e,n,i,o,a,r,s){var l=e.getModel(),c=t.get("edgeShape"),u=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),f=i.__edge;if("curve"===c)e.parentNode&&e.parentNode!==n&&(f||(f=i.__edge=new fh["a"]({shape:Vh(u,h,d,o,o)})),On["h"](f,{shape:Vh(u,h,d,a,r)},t));else if("polyline"===c)if("orthogonal"===u){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;m<y.length;m++){var b=y[m].getLayout();v.push([b.x,b.y])}f||(f=i.__edge=new Th({shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]],orient:h,forkPosition:p}})),On["h"](f,{shape:{parentPoint:[r.x,r.y],childPoints:v}},t)}}else 0;f&&("polyline"!==c||e.isExpand)&&(f.useStyle(w["i"]({strokeNoScale:!0,fill:null},g)),Object(Sn["I"])(f,l,"lineStyle"),Object(Sn["G"])(f),s.add(f))}function Eh(t,e,n,i,o){var a=e.tree.root,r=Rh(a,t),s=r.source,l=r.sourceLayout,c=e.getItemGraphicEl(t.dataIndex);if(c){var u=e.getItemGraphicEl(s.dataIndex),h=u.__edge,d=c.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),p=i.get("edgeShape"),g=i.get("layout"),f=i.get("orient"),y=i.get(["lineStyle","curveness"]);d&&("curve"===p?On["e"](d,{shape:Vh(g,f,y,l,l),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:o}):"polyline"===p&&"orthogonal"===i.get("layout")&&On["e"](d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:o}))}}function Rh(t,e){var n,i=e.parentNode===t?e:e.parentNode||e;while(n=i.getLayout(),null==n)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function zh(t,e,n,i,o){var a=t.tree.getNodeByDataIndex(e),r=t.tree.root,s=Rh(r,a).sourceLayout,l={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};On["e"](n,{x:s.x+1,y:s.y+1},o,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach((function(e){Eh(e,t,i,o,l)})),Eh(a,t,i,o,l)}function Vh(t,e,n,i,o){var a,r,s,l,c,u,h,d;if("radial"===t){c=i.rawX,h=i.rawY,u=o.rawX,d=o.rawY;var p=xh(c,h),g=xh(c,h+(d-h)*n),f=xh(u,d+(h-d)*n),y=xh(u,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:f.x||0,cpy2:f.y||0}}return c=i.x,h=i.y,u=o.x,d=o.y,"LR"!==e&&"RL"!==e||(a=c+(u-c)*n,r=h,s=u+(c-u)*n,l=d),"TB"!==e&&"BT"!==e||(a=c,r=h+(d-h)*n,s=u,l=d+(h-d)*n),{x1:c,y1:h,x2:u,y2:d,cpx1:a,cpy1:r,cpx2:s,cpy2:l}}var Bh=kh,Gh=Object(we["o"])();function Hh(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,qh(e,n,t),Object(w["k"])(n,(function(n){Object(w["k"])(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(w["h"])(Fh,t))}))})),e.wrapMethod("cloneShallow",Object(w["h"])(Yh,t)),Object(w["k"])(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(w["h"])(Wh,t))})),Object(w["b"])(n[e.dataType]===e)}function Fh(t,e){if(Uh(this)){var n=Object(w["m"])({},Gh(this).datas);n[this.dataType]=e,qh(e,n,t)}else Kh(e,this.dataType,Gh(this).mainData,t);return e}function Wh(t,e){return t.struct&&t.struct.update(),e}function Yh(t,e){return Object(w["k"])(Gh(e).datas,(function(n,i){n!==e&&Kh(n.cloneShallow(),i,e,t)})),e}function Xh(t){var e=Gh(this).mainData;return null==t||null==e?e:Gh(e).datas[t]}function Zh(){var t=Gh(this).mainData;return null==t?[{data:t}]:Object(w["H"])(Object(w["F"])(Gh(t).datas),(function(e){return{type:e,data:Gh(t).datas[e]}}))}function Uh(t){return Gh(t).mainData===t}function qh(t,e,n){Gh(t).datas={},Object(w["k"])(e,(function(e,i){Kh(e,i,t,n)}))}function Kh(t,e,n,i){Gh(n).datas[e]=t,Gh(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=Xh,t.getLinkedDataAll=Zh}var Jh=Hh,$h=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){w["w"](t)&&(n=e,e=t,t=null),t=t||{},w["C"](t)&&(t={order:t});var i,o=t.order||"preorder",a=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var r=0;!i&&r<a.length;r++)a[r].eachNode(t,e,n);"postorder"===o&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].getNodeById(t);if(o)return o}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].contains(t);if(o)return o}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),Qh=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var o=new t(n),a=[],r=1;function s(t,e){var n=t.value;r=Math.max(r,w["t"](n)?n.length:1),a.push(t);var i=new $h(Object(we["e"])(t.name,""),o);e?td(i,e):o.root=i,o._nodes.push(i);var l=t.children;if(l)for(var c=0;c<l.length;c++)s(l[c],i)}s(e),o.root.updateDepthAndHeight(0);var l=Je(a,{coordDimensions:["value"],dimensionsCount:r}).dimensions,c=new qe(l,n);return c.initData(a),i&&i(c),Jh({mainData:c,struct:o,structAttr:"tree"}),o.update(),o},t}();function td(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var ed=Qh;function nd(t,e,n){if(t&&w["r"](e,t.type)>=0){var i=n.getData().tree.root,o=t.targetNode;if(w["C"](o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var a=t.targetNodeId;if(null!=a&&(o=i.getNodeById(a)))return{node:o}}}function id(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function od(t,e){var n=id(t);return w["r"](n,e)>=0}function ad(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var rd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new ce["a"](n,this,this.ecModel),o=ed.createTree(e,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=o.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}var r=0;o.eachNode("preorder",(function(t){t.depth>r&&(r=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return o.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().tree,o=i.root.children[0],a=i.getNodeByDataIndex(t),r=a.getValue(),s=a.name;while(a&&a!==o)s=a.parentNode.name+"."+s,a=a.parentNode;return Object(jl["c"])("nameValue",{name:s,value:r,noValue:isNaN(r)||null==r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=ad(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(vn["b"]),sd=rd;function ld(t,e,n){var i,o=[t],a=[];while(i=o.pop())if(a.push(i),i.isExpand){var r=i.children;if(r.length)for(var s=0;s<r.length;s++)o.push(r[s])}while(i=a.pop())e(i,n)}function cd(t,e){var n,i=[t];while(n=i.pop())if(e(n),n.isExpand){var o=n.children;if(o.length)for(var a=o.length-1;a>=0;a--)i.push(o[a])}}function ud(t,e){t.eachSeriesByType("tree",(function(t){hd(t,e)}))}function hd(t,e){var n=_h(t,e);t.layoutInfo=n;var i=t.get("layout"),o=0,a=0,r=null;"radial"===i?(o=2*Math.PI,a=Math.min(n.height,n.width)/2,r=bh((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(o=n.width,a=n.height,r=bh());var s=t.getData().tree.root,l=s.children[0];if(l){yh(s),ld(l,vh,r),s.hierNode.modifier=-l.hierNode.prelim,cd(l,mh);var c=l,u=l,h=l;cd(l,(function(t){var e=t.getLayout().x;e<c.getLayout().x&&(c=t),e>u.getLayout().x&&(u=t),t.depth>h.depth&&(h=t)}));var d=c===u?1:r(c,u)/2,p=d-c.getLayout().x,g=0,f=0,y=0,v=0;if("radial"===i)g=o/(u.getLayout().x+d+p),f=a/(h.depth-1||1),cd(l,(function(t){y=(t.getLayout().x+p)*g,v=(t.depth-1)*f;var e=xh(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(f=a/(u.getLayout().x+d+p),g=o/(h.depth-1||1),cd(l,(function(t){v=(t.getLayout().x+p)*f,y="LR"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(g=o/(u.getLayout().x+d+p),f=a/(h.depth-1||1),cd(l,(function(t){y=(t.getLayout().x+p)*g,v="TB"===m?(t.depth-1)*f:a-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)})))}}}function dd(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),i=n.getModel("itemStyle").getItemStyle(),o=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(w["m"])(o,i)}))}))}function pd(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,o=lh(i,t,void 0,n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom)}))}))}function gd(t){t.registerChartView(Bh),t.registerSeriesModel(sd),t.registerLayout(ud),t.registerVisual(dd),pd(t)}var fd=["treemapZoomToNode","treemapRender","treemapMove"];function yd(t){for(var e=0;e<fd.length;e++)t.registerAction({type:fd[e],update:"updateView"},w["L"]);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var i=["treemapZoomToNode","treemapRootToNode"],o=nd(t,i,e);if(o){var a=e.getViewRoot();a&&(t.direction=od(a,o.node)?"rollUp":"drillDown"),e.resetViewRoot(o.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}var vd=n("4041");function md(t){var e=t.getData(),n=e.tree,i={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var o=Object(vd["b"])(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",o)}))}var bd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};xd(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},a=new ce["a"]({itemStyle:o},this,e);i=t.levels=_d(i,e);var r=w["H"](i||[],(function(t){return new ce["a"](t,a,e)}),this),s=ed.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?r[n.depth]:null;return t.parentModel=i||a,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),a=i.getName(t);return Object(jl["c"])("nameValue",{name:a,value:o})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=ad(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},w["m"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=w["f"](),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){md(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(vn["b"]);function xd(t){var e=0;w["k"](t.children,(function(t){xd(t);var n=t.value;w["t"](n)&&(n=n[0]),e+=n}));var n=t.value;w["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),w["t"](t.value)?t.value[0]=n:t.value=n}function _d(t,e){var n=Object(we["r"])(e.get("color")),i=Object(we["r"])(e.get(["aria","decal","decals"]));if(n){var o,a;t=t||[],w["k"](t,(function(t){var e=new ce["a"](t),n=e.get("color"),i=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(o=!0),(e.get(["itemStyle","decal"])||i&&"none"!==i)&&(a=!0)}));var r=t[0]||(t[0]={});return o||(r.color=n.slice()),!a&&i&&(r.decal=i.slice()),t}}var Od=bd,wd=8,Sd=8,Md=5,Id=function(){function t(t){this.group=new bn["a"],t.add(this.group)}return t.prototype.render=function(t,e,n,i){var o=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&n){var r=o.getModel("itemStyle"),s=o.getModel("emphasis"),l=r.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,r,s,l,c,i),Eo["i"](a,u.pos,u.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=Object(we["e"])(i.getModel().get("name"),""),a=n.getTextRect(o),r=Math.max(a.width+2*wd,e.emptyItemWidth);e.totalWidth+=r+Sd,e.renderList.push({node:i,text:o,width:r})}},t.prototype._renderContent=function(t,e,n,i,o,a,r){for(var s=0,l=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),u=Eo["e"](e.pos,e.box),h=e.totalWidth,d=e.renderList,p=i.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var f=d[g],y=f.node,v=f.width,m=f.text;h>u.width&&(h-=v-l,v=l,m=null);var b=new Sl["a"]({shape:{points:jd(s,0,v,c,g===d.length-1,0===g)},style:Object(w["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new st["a"]({style:Object(jn["c"])(o,{text:m})}),textConfig:{position:"inside"},z2:1e4*Sn["j"],onclick:Object(w["h"])(r,y)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=Object(jn["c"])(a,{text:m}),b.ensureState("emphasis").style=p,Object(Sn["J"])(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),Ad(b,t,y),s+=v+Sd}},t.prototype.remove=function(){this.group.removeAll()},t}();function jd(t,e,n,i,o,a){var r=[[o?t:t-Md,e],[t+n,e],[t+n,e+i],[o?t:t-Md,e+i]];return!a&&r.splice(2,0,[t+n+Md,e+i/2]),!o&&r.push([t,e+i/2]),r}function Ad(t,e,n){Object(Se["a"])(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&ad(n,e)}}var Cd=Id,Dd=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,o){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:o}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var a=this._storage[i];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function Td(){return new Dd}var kd=n("282b"),Ld=bn["a"],Pd=ei["a"],Nd=3,Ed="label",Rd="upperLabel",zd=10*Sn["j"],Vd=2*Sn["j"],Bd=3*Sn["j"],Gd=Object(kd["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Hd=function(t){var e=Gd(t);return e.stroke=e.fill=e.lineWidth=null,e},Fd=Object(we["o"])(),Wd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=Yd(),n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){var o=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(w["r"])(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var a=["treemapZoomToNode","treemapRootToNode"],r=nd(i,a,t),s=i&&i.type,l=t.layoutInfo,c=!this._oldTree,u=this._storage,h="treemapRootToNode"===s&&r&&u?{rootNodeGroup:u.nodeGroup[r.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),p=t.get("animation"),g=this._doRender(d,t,h);!p||c||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?g.renderFinally():this._doAnimation(d,g,t,h),this._resetController(n),this._renderBreadcrumb(t,n,r)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new Ld,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,o=this._oldTree,a=Yd(),r=Yd(),s=this._storage,l=[];function c(t,i,o,c){return Xd(e,r,s,n,a,l,t,i,o,c)}p(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var u=g(s);if(this._oldTree=i,this._storage=r,this._controllerHost){var h=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===h.width&&d.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:a,willDeleteEls:u,renderFinally:f};function p(t,e,n,i,o){function a(t){return t.getId()}function r(a,r){var s=null!=a?t[a]:null,l=null!=r?e[r]:null,u=c(s,l,n,o);u&&p(s&&s.viewChildren||[],l&&l.viewChildren||[],u,i,o+1)}i?(e=t,Object(w["k"])(t,(function(t,e){!t.isRemoved()&&r(e,e)}))):new pe(e,t,a,a).add(r).update(r).remove(Object(w["h"])(r,null)).execute()}function g(t){var e=Yd();return t&&Object(w["k"])(t,(function(t,n){var i=e[n];Object(w["k"])(t,(function(t){t&&(i.push(t),Fd(t).willDelete=!0)}))})),e}function f(){Object(w["k"])(u,(function(t){Object(w["k"])(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(w["k"])(l,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,i){var o=n.get("animationDurationUpdate"),a=n.get("animationEasing"),r=(Object(w["w"])(o)?0:o)||0,s=(Object(w["w"])(a)?null:a)||"cubicOut",l=Td();Object(w["k"])(e.willDeleteEls,(function(t,e){Object(w["k"])(t,(function(t,n){if(!t.invisible){var o,a=t.parent,c=Fd(a);if(i&&"drillDown"===i.direction)o=a===i.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;c.willDelete||(u=c.nodeWidth/2,h=c.nodeHeight/2),o="nodeGroup"===e?{x:u,y:h,style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}o&&l.add(t,o,r,0,s)}}))})),Object(w["k"])(this._storage,(function(t,n){Object(w["k"])(t,(function(t,i){var o=e.lastsForAnimation[n][i],a={};o&&(t instanceof bn["a"]?null!=o.oldX&&(a.x=t.x,a.y=t.y,t.x=o.oldX,t.y=o.oldY):(o.oldShape&&(a.shape=Object(w["m"])({},t.shape),t.setShape(o.oldShape)),o.fadein?(t.setStyle("opacity",0),a.style={opacity:1}):1!==t.style.opacity&&(a.style={opacity:1})),l.add(t,a,r,0,s))}))}),this),this._state="animating",l.finished(Object(w["c"])((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),e||(e=this._controller=new ic(t.getZr()),e.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",Object(w["c"])(this._onPan,this)),e.on("zoom",Object(w["c"])(this._onZoom,this)));var i=new pa["a"](0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return i.contain(e,n)}))},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>Nd||Math.abs(t.dy)>Nd)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale;if("animating"!==this._state){var o=this.seriesModel.getData().tree.root;if(!o)return;var a=o.getLayout();if(!a)return;var r=new pa["a"](a.x,a.y,a.width,a.height),s=null,l=this._controllerHost;s=l.zoomLimit;var c=l.zoom=l.zoom||1;if(c*=i,s){var u=s.min||0,h=s.max||1/0;c=Math.max(Math.min(h,c),u)}var d=c/l.zoom;l.zoom=c;var p=this.seriesModel.layoutInfo;e-=p.x,n-=p.y;var g=Zr["c"]();Zr["i"](g,g,[-e,-n]),Zr["h"](g,g,[d,d]),Zr["i"](g,g,[e,n]),r.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var o=i.node;if(o.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var a=o.hostTree.data.getItemModel(o.dataIndex),r=a.get("link",!0),s=a.get("target",!0)||"blank";r&&Object(li["i"])(r,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Cd(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(od(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Yd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var o=this._storage.background[i.getRawIndex()];if(o){var a=o.transformCoordToLocal(t,e),r=o.shape;if(!(r.x<=a[0]&&a[0]<=r.x+r.width&&r.y<=a[1]&&a[1]<=r.y+r.height))return!1;n={node:i,offsetX:a[0],offsetY:a[1]}}}),this),n},e.type="treemap",e}(ti["a"]);function Yd(){return{nodeGroup:[],background:[],content:[]}}function Xd(t,e,n,i,o,a,r,s,l,c){if(r){var u=r.getLayout(),h=t.getData(),d=r.getModel();if(h.setItemGraphicEl(r.dataIndex,null),u&&u.isInView){var p=u.width,g=u.height,f=u.borderWidth,y=u.invisible,v=r.getRawIndex(),m=s&&s.getRawIndex(),b=r.viewChildren,x=u.upperHeight,_=b&&b.length,O=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),j=O.get("borderRadius")||0,A=G("nodeGroup",Ld);if(A){if(l.add(A),A.x=u.x||0,A.y=u.y||0,A.markRedraw(),Fd(A).nodeWidth=p,Fd(A).nodeHeight=g,u.isAboveViewRoot)return A;var C=G("background",Pd,c,Vd);C&&E(A,C,_&&u.upperLabelHeight);var D=d.getModel("emphasis"),T=D.get("focus"),k=D.get("blurScope"),L=D.get("disabled"),P="ancestor"===T?r.getAncestorsIndices():"descendant"===T?r.getDescendantIndices():T;if(_)Object(Sn["y"])(A)&&Object(Sn["F"])(A,!1),C&&(Object(Sn["F"])(C,!L),h.setItemGraphicEl(r.dataIndex,C),Object(Sn["p"])(C,P,k));else{var N=G("content",Pd,c,Bd);N&&R(A,N),C.disableMorphing=!0,C&&Object(Sn["y"])(C)&&Object(Sn["F"])(C,!1),Object(Sn["F"])(A,!L),h.setItemGraphicEl(r.dataIndex,A),Object(Sn["p"])(A,P,k)}return A}}}function E(e,n,i){var o=Object(Se["a"])(n);if(o.dataIndex=r.dataIndex,o.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:g,r:j}),y)z(n);else{n.invisible=!1;var a=r.getVisual("style"),s=a.stroke,l=Hd(O);l.fill=s;var c=Gd(S);c.fill=S.get("borderColor");var u=Gd(M);u.fill=M.get("borderColor");var h=Gd(I);if(h.fill=I.get("borderColor"),i){var d=p-2*f;V(n,s,a.opacity,{x:f,y:0,width:d,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=h,Object(Sn["G"])(n)}e.add(n)}function R(e,n){var i=Object(Se["a"])(n);i.dataIndex=r.dataIndex,i.seriesIndex=t.seriesIndex;var o=Math.max(p-2*f,0),a=Math.max(g-2*f,0);if(n.culling=!0,n.setShape({x:f,y:f,width:o,height:a,r:j}),y)z(n);else{n.invisible=!1;var s=r.getVisual("style"),l=s.fill,c=Hd(O);c.fill=l,c.decal=s.decal;var u=Gd(S),h=Gd(M),d=Gd(I);V(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=d,Object(Sn["G"])(n)}e.add(n)}function z(t){!t.invisible&&a.push(t)}function V(e,n,i,o){var a=d.getModel(o?Rd:Ed),s=Object(we["e"])(d.get("name"),null),l=a.getShallow("show");Object(jn["g"])(e,Object(jn["e"])(d,o?Rd:Ed),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:r.dataIndex});var c=e.getTextContent();if(c){var h=c.style,p=Object(w["M"])(h.padding||0);o&&(e.setTextConfig({layoutRect:o}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var t=Math.max((o?o.width:e.shape.width)-p[1]-p[3],0),n=Math.max((o?o.height:e.shape.height)-p[0]-p[2],0);h.width===t&&h.height===n||c.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",B(h,o,u);var g=c.getState("emphasis");B(g?g.style:null,o,u)}}function B(e,n,i){var o=e?e.text:null;if(!n&&i.isLeafRoot&&null!=o){var a=t.get("drillDownIcon",!0);e.text=a?a+" "+o:o}}function G(t,i,a,r){var s=null!=m&&n[t][m],l=o[t];return s?(n[t][m]=null,H(l,s)):y||(s=new i,s instanceof Ou["c"]&&(s.z2=Zd(a,r)),F(l,s)),e[t][v]=s}function H(t,e){var n=t[v]={};e instanceof Ld?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(w["m"])({},e.shape)}function F(t,e){var n=t[v]={},a=r.parentNode,s=e instanceof bn["a"];if(a&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=o.background[a.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}function Zd(t,e){return t*zd+e}var Ud=Wd,qd=n("edae"),Kd=w["k"],Jd=w["A"],$d=-1,Qd=function(){function t(e){var n=e.mappingMethod,i=e.type,o=this.option=w["d"](e);this.type=i,this.mappingMethod=n,this._normalizeData=hp[n];var a=t.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(np(o),tp(o)):"category"===n?o.categories?ep(o):np(o,!0):(w["b"]("linear"!==n||o.dataExtent),np(o))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return w["c"](this._normalizeData,this)},t.listVisualTypes=function(){return w["F"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){w["A"](t)?w["k"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var o,a=w["t"](e)?[]:w["A"](e)?{}:(o=!0,null);return t.eachVisual(e,(function(t,e){var r=n.call(i,t,e);o?a=r:a[e]=r})),a},t.retrieveVisuals=function(e){var n,i={};return e&&Kd(t.visualHandlers,(function(t,o){e.hasOwnProperty(o)&&(i[o]=e[o],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(w["t"](t))t=t.slice();else{if(!Jd(t))return[];var e=[];Kd(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,o=1/0,a=0,r=e.length;a<r;a++){var s=e[a].value;if(null!=s){if(s===t||w["C"](s)&&s===t+"")return a;n&&h(s,a)}}for(a=0,r=e.length;a<r;a++){var l=e[a],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(dp(u[1],t,c[1]))return a}else if(c[1]===1/0){if(dp(u[0],c[0],t))return a}else if(dp(u[0],c[0],t)&&dp(u[1],t,c[1]))return a;n&&h(c[0],a),n&&h(c[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){var a=Math.abs(e-t);a<o&&(o=a,i=n)}},t.visualHandlers={color:{applyVisual:ap("color"),getColorMapper:function(){var t=this.option;return w["c"]("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),rp.call(this,t)}:function(e,n,i){var o=!!i;return!n&&(e=this._normalizeData(e)),i=ct["a"](e,t.parsedVisual,i),o?i:ct["i"](i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return ct["i"](ct["a"](t,this.option.parsedVisual),"rgba")},category:rp,piecewise:function(t,e){var n=cp.call(this,e);return null==n&&(n=ct["i"](ct["a"](t,this.option.parsedVisual),"rgba")),n},fixed:sp}},colorHue:ip((function(t,e){return ct["g"](t,e)})),colorSaturation:ip((function(t,e){return ct["g"](t,null,e)})),colorLightness:ip((function(t,e){return ct["g"](t,null,null,e)})),colorAlpha:ip((function(t,e){return ct["f"](t,e)})),decal:{applyVisual:ap("decal"),_normalizedToVisual:{linear:null,category:rp,piecewise:null,fixed:null}},opacity:{applyVisual:ap("opacity"),_normalizedToVisual:lp([0,1])},liftZ:{applyVisual:ap("liftZ"),_normalizedToVisual:{linear:sp,category:sp,piecewise:sp,fixed:sp}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:op,category:rp,piecewise:function(t,e){var n=cp.call(this,e);return null==n&&(n=op.call(this,t)),n},fixed:sp}},symbolSize:{applyVisual:ap("symbolSize"),_normalizedToVisual:lp([0,1])}},t}();function tp(t){var e=t.pieceList;t.hasSpecialVisual=!1,w["k"](e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function ep(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(Kd(e,(function(t,e){n[t]=e})),!w["t"](i)){var o=[];w["A"](i)?Kd(i,(function(t,e){var i=n[e];o[null!=i?i:$d]=t})):o[$d]=i,i=up(t,o)}for(var a=e.length-1;a>=0;a--)null==i[a]&&(delete n[e[a]],e.pop())}function np(t,e){var n=t.visual,i=[];w["A"](n)?Kd(n,(function(t){i.push(t)})):null!=n&&i.push(n);var o={color:1,symbol:1};e||1!==i.length||o.hasOwnProperty(t.type)||(i[1]=i[0]),up(t,i)}function ip(t){return{applyVisual:function(e,n,i){var o=this.mapValueToVisual(e);i("color",t(n("color"),o))},_normalizedToVisual:lp([0,1])}}function op(t){var e=this.option.visual;return e[Math.round(Object(ii["k"])(t,[0,1],[0,e.length-1],!0))]||{}}function ap(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function rp(t){var e=this.option.visual;return e[this.option.loop&&t!==$d?t%e.length:t]}function sp(){return this.option.visual[0]}function lp(t){return{linear:function(e){return Object(ii["k"])(e,t,this.option.visual,!0)},category:rp,piecewise:function(e,n){var i=cp.call(this,n);return null==i&&(i=Object(ii["k"])(e,t,this.option.visual,!0)),i},fixed:sp}}function cp(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=Qd.findPieceIndex(t,n),o=n[i];if(o&&o.visual)return o.visual[this.type]}}function up(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=w["H"](e,(function(t){var e=ct["h"](t);return e||[0,0,0,1]}))),e}var hp={linear:function(t){return Object(ii["k"])(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Qd.findPieceIndex(t,e,!0);if(null!=n)return Object(ii["k"])(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?$d:e},fixed:w["L"]};function dp(t,e,n){return t?e<=n:e<n}var pp=Qd,gp="itemStyle",fp=Object(we["o"])(),yp={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||vp(n,{},t.getViewRoot().getAncestors(),t)}};function vp(t,e,n,i){var o=t.getModel(),a=t.getLayout(),r=t.hostTree.data;if(a&&!a.invisible&&a.isInView){var s,l=o.getModel(gp),c=mp(l,e,i),u=r.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=bp(c),h=xp(d,s)),u.stroke=h;var p=t.viewChildren;if(p&&p.length){var g=Op(t,o,a,l,c,p);Object(w["k"])(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var a=Sp(o,c,t,e,g,i);vp(t,a,n,i)}}))}else s=bp(c),u.fill=s}}function mp(t,e,n){var i=Object(w["m"])({},e),o=n.designatedVisualItemStyle;return Object(w["k"])(["color","colorAlpha","colorSaturation"],(function(n){o[n]=e[n];var a=t.get(n);o[n]=null,null!=a&&(i[n]=a)})),i}function bp(t){var e=_p(t,"color");if(e){var n=_p(t,"colorAlpha"),i=_p(t,"colorSaturation");return i&&(e=Object(ct["g"])(e,null,null,i)),n&&(e=Object(ct["f"])(e,n)),e}}function xp(t,e){return null!=e?Object(ct["g"])(e,null,null,t):null}function _p(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function Op(t,e,n,i,o,a){if(a&&a.length){var r=wp(e,"color")||null!=o.color&&"none"!==o.color&&(wp(e,"colorAlpha")||wp(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=e.get("colorMappingBy"),h={type:r.name,dataExtent:c,visual:r.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new pp(h);return fp(d).drColorMappingBy=u,d}}}function wp(t,e){var n=t.get(e);return Object(w["t"])(n)&&n.length?{name:e,range:n}:null}function Sp(t,e,n,i,o,a){var r=Object(w["m"])({},e);if(o){var s=o.type,l="color"===s&&fp(o).drColorMappingBy,c="index"===l?i:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));r[s]=o.mapValueToVisual(c)}return r}var Mp=Math.max,Ip=Math.min,jp=w["O"],Ap=w["k"],Cp=["itemStyle","borderWidth"],Dp=["itemStyle","gapWidth"],Tp=["upperLabel","show"],kp=["upperLabel","height"],Lp={seriesType:"treemap",reset:function(t,e,n,i){var o=n.getWidth(),a=n.getHeight(),r=t.option,s=Eo["g"](t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=r.size||[],c=Object(ii["o"])(jp(s.width,l[0]),o),u=Object(ii["o"])(jp(s.height,l[1]),a),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],p=nd(i,d,t),g="treemapRender"===h||"treemapMove"===h?i.rootRect:null,f=t.getViewRoot(),y=id(f);if("treemapMove"!==h){var v="treemapZoomToNode"===h?Gp(t,p,f,c,u):g?[g.width,g.height]:[c,u],m=r.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var b={squareRatio:r.squareRatio,sort:m,leafDepth:r.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};f.setLayout(x),Pp(f,b,!1,0),x=f.getLayout(),Ap(y,(function(t,e){var n=(y[e+1]||f).getValue();t.setLayout(w["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var _=t.getData().tree.root;_.setLayout(Hp(s,g,p),!0),t.setLayoutInfo(s),Fp(_,new pa["a"](-s.x,-s.y,o,a),y,f,0)}};function Pp(t,e,n,i){var o,a;if(!t.isRemoved()){var r=t.getLayout();o=r.width,a=r.height;var s=t.getModel(),l=s.get(Cp),c=s.get(Dp)/2,u=Wp(s),h=Math.max(l,u),d=l-c,p=h-c;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:u},!0),o=Mp(o-2*d,0),a=Mp(a-d-p,0);var g=o*a,f=Np(t,s,g,e,n,i);if(f.length){var y={x:d,y:p,width:o,height:a},v=Ip(o,a),m=1/0,b=[];b.area=0;for(var x=0,_=f.length;x<_;){var O=f[x];b.push(O),b.area+=O.getLayout().area;var w=Vp(b,v,e.squareRatio);w<=m?(x++,m=w):(b.area-=b.pop().getLayout().area,Bp(b,v,y,c,!1),v=Ip(y.width,y.height),b.length=b.area=0,m=1/0)}if(b.length&&Bp(b,v,y,c,!0),!n){var S=s.get("childrenVisibleMin");null!=S&&g<S&&(n=!0)}for(x=0,_=f.length;x<_;x++)Pp(f[x],e,n,i+1)}}}function Np(t,e,n,i,o,a){var r=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=a;if(o&&!l)return t.viewChildren=[];r=w["n"](r,(function(t){return!t.isRemoved()})),Rp(r,s);var c=zp(e,r,s);if(0===c.sum)return t.viewChildren=[];if(c.sum=Ep(e,n,c.sum,s,r),0===c.sum)return t.viewChildren=[];for(var u=0,h=r.length;u<h;u++){var d=r[u].getValue()/c.sum*n;r[u].setLayout({area:d})}return l&&(r.length&&t.setLayout({isLeafRoot:!0},!0),r.length=0),t.viewChildren=r,t.setLayout({dataExtent:c.dataExtent},!0),r}function Ep(t,e,n,i,o){if(!i)return n;for(var a=t.get("visibleMin"),r=o.length,s=r,l=r-1;l>=0;l--){var c=o["asc"===i?r-l-1:l].getValue();c/n*e<a&&(s=l,n-=c)}return"asc"===i?o.splice(0,r-s):o.splice(s,r-s),n}function Rp(t,e){return e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i})),t}function zp(t,e,n){for(var i=0,o=0,a=e.length;o<a;o++)i+=e[o].getValue();var r,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(r=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&r.reverse()):(r=[1/0,-1/0],Ap(e,(function(t){var e=t.getValue(s);e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e)}))):r=[NaN,NaN],{sum:i,dataExtent:r}}function Vp(t,e,n){for(var i=0,o=1/0,a=0,r=void 0,s=t.length;a<s;a++)r=t[a].getLayout().area,r&&(r<o&&(o=r),r>i&&(i=r));var l=t.area*t.area,c=e*e*n;return l?Mp(c*i/l,l/(c*o)):1/0}function Bp(t,e,n,i,o){var a=e===n.width?0:1,r=1-a,s=["x","y"],l=["width","height"],c=n[s[a]],u=e?t.area/e:0;(o||u>n[l[r]])&&(u=n[l[r]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],g={},f=u?p.getLayout().area/u:0,y=g[l[r]]=Mp(u-2*i,0),v=n[s[a]]+n[l[a]]-c,m=h===d-1||v<f?v:f,b=g[l[a]]=Mp(m-2*i,0);g[s[r]]=n[s[r]]+Ip(i,y/2),g[s[a]]=c+Ip(i,b/2),c+=m,p.setLayout(g,!0)}n[s[r]]+=u,n[l[r]]-=u}function Gp(t,e,n,i,o){var a,r=(e||{}).node,s=[i,o];if(!r||r===n)return s;var l=i*o,c=l*t.option.zoomToNodeRatio;while(a=r.parentNode){for(var u=0,h=a.children,d=0,p=h.length;d<p;d++)u+=h[d].getValue();var g=r.getValue();if(0===g)return s;c*=u/g;var f=a.getModel(),y=f.get(Cp),v=Math.max(y,Wp(f));c+=4*y*y+(3*y+v)*Math.pow(c,.5),c>ii["a"]&&(c=ii["a"]),r=a}c<l&&(c=l);var m=Math.pow(c/l,.5);return[i*m,o*m]}function Hp(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var o=n.node,a=o.getLayout();if(!a)return i;var r=[a.width/2,a.height/2],s=o;while(s){var l=s.getLayout();r[0]+=l.x,r[1]+=l.y,s=s.parentNode}return{x:t.width/2-r[0],y:t.height/2-r[1]}}function Fp(t,e,n,i,o){var a=t.getLayout(),r=n[o],s=r&&r===t;if(!(r&&!s||o===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new pa["a"](e.x-a.x,e.y-a.y,e.width,e.height);Ap(t.viewChildren||[],(function(t){Fp(t,l,n,i,o+1)}))}}function Wp(t){return t.get(Tp)?t.get(kp):0}function Yp(t){t.registerSeriesModel(Od),t.registerChartView(Ud),t.registerVisual(yp),t.registerLayout(Lp),yd(t)}function Xp(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph(),o=i.data,a=n.mapArray(n.getName);o.filterSelf((function(t){var n=o.getItemModel(t),i=n.getShallow("category");if(null!=i){Object(w["z"])(i)&&(i=a[i]);for(var r=0;r<e.length;r++)if(!e[r].isSelected(i))return!1}return!0}))}))}function Zp(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),o={};n.each((function(i){var a=n.getName(i);o["ec-"+a]=i;var r=n.getItemModel(i),s=r.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(a,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=r.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t),a=e.getShallow("category");if(null!=a){Object(w["C"])(a)&&(a=o["ec-"+a]);var r=n.getItemVisual(a,"style"),s=i.ensureUniqueItemVisual(t,"style");Object(w["m"])(s,r);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++)i.setItemVisual(t,l[c],n.getItemVisual(a,l[c]))}}))}))}function Up(t){return t instanceof Array||(t=[t,t]),t}function qp(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=Up(t.get("edgeSymbol")),o=Up(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),o=e.getEdgeByIndex(t),a=Up(i.getShallow("symbol",!0)),r=Up(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Object(w["m"])(l,s),l.stroke){case"source":var c=o.node1.getVisual("style");l.stroke=c&&c.fill;break;case"target":c=o.node2.getVisual("style");l.stroke=c&&c.fill;break}a[0]&&o.setVisual("fromSymbol",a[0]),a[1]&&o.setVisual("toSymbol",a[1]),r[0]&&o.setVisual("fromSymbolSize",r[0]),r[1]&&o.setVisual("toSymbolSize",r[1])}))}))}var Kp="--\x3e",Jp=function(t){return t.get("autoCurveness")||null},$p=function(t,e){var n=Jp(t),i=20,o=[];if(w["z"](n))i=n;else if(w["t"](n))return void(t.__curvenessList=n);e>i&&(i=e);var a=i%2?i+2:i+3;o=[];for(var r=0;r<a;r++)o.push((r%2?r+1:r)/10*(r%2?-1:1));t.__curvenessList=o},Qp=function(t,e,n){var i=[t.id,t.dataIndex].join("."),o=[e.id,e.dataIndex].join(".");return[n.uid,i,o].join(Kp)},tg=function(t){var e=t.split(Kp);return[e[0],e[2],e[1]].join(Kp)},eg=function(t,e){var n=Qp(t.node1,t.node2,e);return e.__edgeMap[n]},ng=function(t,e){var n=ig(Qp(t.node1,t.node2,e),e),i=ig(Qp(t.node2,t.node1,e),e);return n+i},ig=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function og(t){Jp(t)&&(t.__curvenessList=[],t.__edgeMap={},$p(t))}function ag(t,e,n,i){if(Jp(n)){var o=Qp(t,e,n),a=n.__edgeMap,r=a[tg(o)];a[o]&&!r?a[o].isForward=!0:r&&a[o]&&(r.isForward=!0,a[o].isForward=!1),a[o]=a[o]||[],a[o].push(i)}}function rg(t,e,n,i){var o=Jp(e),a=w["t"](o);if(!o)return null;var r=eg(t,e);if(!r)return null;for(var s=-1,l=0;l<r.length;l++)if(r[l]===n){s=l;break}var c=ng(t,e);$p(e,c),t.lineStyle=t.lineStyle||{};var u=Qp(t.node1,t.node2,e),h=e.__curvenessList,d=a||c%2?0:1;if(r.isForward)return h[d+s];var p=tg(u),g=ig(p,e),f=h[s+g+d];return i?a?o&&0===o[0]?(g+d)%2?f:-f:((g%2?0:1)+d)%2?f:-f:(g+d)%2?f:-f:h[s+g+d]}function sg(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),lg(n,t)}}function lg(t,e){t.eachEdge((function(t,n){var i=w["Q"](t.getModel().get(["lineStyle","curveness"]),-rg(t,e,n,!0),0),o=Ur["c"](t.node1.getLayout()),a=Ur["c"](t.node2.getLayout()),r=[o,a];+i&&r.push([(o[0]+a[0])/2-(o[1]-a[1])*i,(o[1]+a[1])/2-(a[0]-o[0])*i]),t.setLayout(r)}))}function cg(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),o=[];Object(w["k"])(n.dimensions,(function(t){o=o.concat(i.mapDimensionsAll(t))}));for(var a=0;a<i.count();a++){for(var r=[],s=!1,l=0;l<o.length;l++){var c=i.get(o[l],a);isNaN(c)||(s=!0),r.push(c)}s?i.setItemLayout(a,n.dataToPoint(r)):i.setItemLayout(a,[NaN,NaN])}lg(i.graph,t)}else e&&"none"!==e||sg(t)}))}function ug(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX,o=e.getZoom(),a=(o-1)*n+1;return a/i}function hg(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var dg=Math.PI,pg=[];function gg(t,e,n,i){var o=t.coordinateSystem;if(!o||"view"===o.type){var a=o.getBoundingRect(),r=t.getData(),s=r.graph,l=a.width/2+a.x,c=a.height/2+a.y,u=Math.min(a.width,a.height)/2,h=r.count();if(r.setLayout({cx:l,cy:c}),h){if(n){var d=o.pointToData(i),p=d[0],g=d[1],f=[p-l,g-c];Ur["m"](f,f),Ur["n"](f,f,u),n.setLayout([l+f[0],c+f[1]],!0);var y=t.get(["circular","rotateLabel"]);yg(n,y,l,c)}fg[e](t,s,r,u,l,c,h),s.eachEdge((function(e,n){var i,o=w["Q"](e.getModel().get(["lineStyle","curveness"]),rg(e,t,n),0),a=Ur["c"](e.node1.getLayout()),r=Ur["c"](e.node2.getLayout()),s=(a[0]+r[0])/2,u=(a[1]+r[1])/2;+o&&(o*=3,i=[l*o+s*(1-o),c*o+u*(1-o)]),e.setLayout([a,r,i])}))}}}var fg={value:function(t,e,n,i,o,a,r){var s=0,l=n.getSum("value"),c=2*Math.PI/(l||r);e.eachNode((function(t){var e=t.getValue("value"),n=c*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+o,i*Math.sin(s)+a]),s+=n}))},symbolSize:function(t,e,n,i,o,a,r){var s=0;pg.length=r;var l=ug(t);e.eachNode((function(t){var e=hg(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=dg/2),pg[t.dataIndex]=n,s+=2*n}));var c=(2*dg-s)/r/2,u=0;e.eachNode((function(t){var e=c+pg[t.dataIndex];u+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(u)+o,i*Math.sin(u)+a]),u+=e}))}};function yg(t,e,n,i){var o=t.getGraphicEl();if(o){var a=t.getModel(),r=a.get(["label","rotate"])||0,s=o.getSymbolPath();if(e){var l=t.getLayout(),c=Math.atan2(l[1]-i,l[0]-n);c<0&&(c=2*Math.PI+c);var u=l[0]<n;u&&(c-=Math.PI);var h=u?"left":"right";s.setTextConfig({rotation:-c,position:h,origin:"center"});var d=s.ensureState("emphasis");w["m"](d.textConfig||(d.textConfig={}),{position:h})}else s.setTextConfig({rotation:r*=Math.PI/180})}}function vg(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&gg(t,"symbolSize")}))}var mg=Ur["o"];function bg(t,e,n){for(var i=t,o=e,a=n.rect,r=a.width,s=a.height,l=[a.x+r/2,a.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<i.length;u++){var h=i[u];h.p||(h.p=Ur["e"](r*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=Ur["c"](h.p),h.edges=null}var d,p,g=null==n.friction?.6:n.friction,f=g;return{warmUp:function(){f=.8*g},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(i,o);for(var e=[],n=i.length,a=0;a<o.length;a++){var r=o[a];if(!r.ignoreForceLayout){var s=r.n1,u=r.n2;Ur["q"](e,u.p,s.p);var h=Ur["i"](e)-r.d,g=u.w/(s.w+u.w);isNaN(g)&&(g=0),Ur["m"](e,e),!s.fixed&&mg(s.p,s.p,e,g*h*f),!u.fixed&&mg(u.p,u.p,e,-(1-g)*h*f)}}for(a=0;a<n;a++){var y=i[a];y.fixed||(Ur["q"](e,l,y.p),mg(y.p,y.p,e,c*f))}for(a=0;a<n;a++){s=i[a];for(var v=a+1;v<n;v++){u=i[v];Ur["q"](e,u.p,s.p);h=Ur["i"](e);0===h&&(Ur["p"](e,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+u.rep)/h/h;!s.fixed&&mg(s.pp,s.pp,e,m),!u.fixed&&mg(u.pp,u.pp,e,-m)}}var b=[];for(a=0;a<n;a++){y=i[a];y.fixed||(Ur["q"](b,y.p,y.pp),mg(y.p,y.p,b,f),Ur["d"](y.pp,y.p))}f*=.992;var x=f<.01;p&&p(i,o,x),t&&t(x)}}}function xg(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),o=i.data,a=i.edgeData,r=t.getModel("force"),s=r.get("initLayout");t.preservedPoints?o.each((function(t){var e=o.getId(t);o.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&gg(t,"value"):sg(t);var l=o.getDataExtent("value"),c=a.getDataExtent("value"),u=r.get("repulsion"),h=r.get("edgeLength"),d=w["t"](u)?u:[u,u],p=w["t"](h)?h:[h,h];p=[p[1],p[0]];var g=o.mapArray("value",(function(t,e){var n=o.getItemLayout(e),i=Object(ii["k"])(t,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:o.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),f=a.mapArray("value",(function(e,n){var o=i.getEdgeByIndex(n),a=Object(ii["k"])(e,c,p);isNaN(a)&&(a=(p[0]+p[1])/2);var r=o.getModel(),s=w["Q"](o.getModel().get(["lineStyle","curveness"]),-rg(o,t,n,!0),0);return{n1:g[o.node1.dataIndex],n2:g[o.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:r.get("ignoreForceLayout")}})),y=e.getBoundingRect(),v=bg(g,f,{rect:y,gravity:r.get("gravity"),friction:r.get("friction")});v.beforeStep((function(t,e){for(var n=0,o=t.length;n<o;n++)t[n].fixed&&Ur["d"](t[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(t,e,a){for(var r=0,s=t.length;r<s;r++)t[r].fixed||i.getNodeByIndex(r).setLayout(t[r].p),n[o.getId(r)]=t[r].p;for(r=0,s=e.length;r<s;r++){var l=e[r],c=i.getEdgeByIndex(r),u=l.n1.p,h=l.n2.p,d=c.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],Ur["d"](d[0],u),Ur["d"](d[1],h),+l.curveness&&(d[2]=[(u[0]+h[0])/2-(u[1]-h[1])*l.curveness,(u[1]+h[1])/2-(h[0]-u[0])*l.curveness]),c.setLayout(d)}})),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null}))}function _g(t,e,n){var i=Object(w["m"])(t.getBoxLayoutParams(),{aspect:n});return Object(Eo["g"])(i,{width:e.getWidth(),height:e.getHeight()})}function Og(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var o=t.getData(),a=o.mapArray((function(t){var e=o.getItemModel(t);return[+e.get("x"),+e.get("y")]})),r=[],s=[];Ch["d"](a,r,s),s[0]-r[0]===0&&(s[0]+=1,r[0]-=1),s[1]-r[1]===0&&(s[1]+=1,r[1]-=1);var l=(s[0]-r[0])/(s[1]-r[1]),c=_g(t,e,l);isNaN(l)&&(r=[c.x,c.y],s=[c.x+c.width,c.y+c.height]);var u=s[0]-r[0],h=s[1]-r[1],d=c.width,p=c.height,g=t.coordinateSystem=new Uu;g.zoomLimit=t.get("scaleLimit"),g.setBoundingRect(r[0],r[1],u,h),g.setViewRect(c.x,c.y,d,p),g.setCenter(t.get("center"),e),g.setZoom(t.get("zoom")),n.push(g)}})),n}var wg=Ls["a"].prototype,Sg=fh["a"].prototype,Mg=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(le["a"])(e,t)})(Mg);function Ig(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var jg=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return Object(le["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Mg},e.prototype.buildPath=function(t,e){Ig(e)?wg.buildPath.call(this,t,e):Sg.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return Ig(this.shape)?wg.pointAt.call(this,t):Sg.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=Ig(e)?[e.x2-e.x1,e.y2-e.y1]:Sg.tangentAt.call(this,t);return Ur["m"](n,n)},e}(h["b"]),Ag=jg,Cg=["fromSymbol","toSymbol"];function Dg(t){return"_"+t+"Type"}function Tg(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var o=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),r=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=mn["c"](o),c=mn["b"](r||0,l);return i+l+c+(a||"")+(s||"")}function kg(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var o=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),r=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=mn["c"](o),c=mn["b"](r||0,l),u=mn["a"](i,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,u.name=t,u}}function Lg(t){var e=new Ag({name:"line",subPixelOptimize:!0});return Pg(e.shape,t),e}function Pg(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var Ng=function(t){function e(e,n,i){var o=t.call(this)||this;return o._createLine(e,n,i),o}return Object(le["a"])(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,o=t.getItemLayout(e),a=Lg(o);a.shape.percent=0,On["c"](a,{shape:{percent:1}},i,e),this.add(a),Object(w["k"])(Cg,(function(n){var i=kg(n,t,e);this.add(i),this[Dg(n)]=Tg(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,o=this.childOfName("line"),a=t.getItemLayout(e),r={shape:{}};Pg(r.shape,a),On["h"](o,r,i,e),Object(w["k"])(Cg,(function(n){var i=Tg(n,t,e),o=Dg(n);if(this[o]!==i){this.remove(this.childOfName(n));var a=kg(n,t,e);this.add(a)}this[o]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,o=this.childOfName("line"),a=n&&n.emphasisLineStyle,r=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,u=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),p=d.getModel("emphasis");a=p.getModel("lineStyle").getLineStyle(),r=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),u=p.get("focus"),h=p.get("blurScope"),l=Object(jn["e"])(d)}var g=t.getItemVisual(e,"style"),f=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=a,o.ensureState("blur").style=r,o.ensureState("select").style=s,Object(w["k"])(Cg,(function(t){var e=this.childOfName(t);if(e){e.setColor(f),e.style.opacity=g.opacity;for(var n=0;n<Sn["g"].length;n++){var i=Sn["g"][n],a=o.getState(i);if(a){var r=a.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=r.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=r.stroke),null!=r.opacity&&(l.opacity=r.opacity)}}e.markRedraw()}}),this);var y=i.getRawValue(e);Object(jn["g"])(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:f||"#000",defaultOpacity:g.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?Object(ii["u"])(y):y)+""});var v=this.getTextContent();if(v){var m=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=m.get("position")||"middle";var b=m.get("distance");Object(w["t"])(b)||(b=[b,b]),v.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Object(Sn["J"])(this,u,h,c)},e.prototype.highlight=function(){Object(Sn["r"])(this)},e.prototype.downplay=function(){Object(Sn["C"])(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");Pg(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){var o=1,a=this.parent;while(a)a.scaleX&&(o/=a.scaleX),a=a.parent;var r=t.childOfName("line");if(this.__dirty||r.__dirty){var s=r.shape.percent,l=r.pointAt(0),c=r.pointAt(s),u=Ur["q"]([],c,l);if(Ur["m"](u,u),e&&(e.setPosition(l),w(e,0),e.scaleX=e.scaleY=o*s,e.markRedraw()),n&&(n.setPosition(c),w(n,1),n.scaleX=n.scaleY=o*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,g=p[0]*o,f=p[1]*o,y=s/2,v=r.tangentAt(y),m=[v[1],-v[0]],b=r.pointAt(y);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var x=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(v[1],v[0]);c[0]<l[0]&&(_=Math.PI+_),i.rotation=_}var O=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":O=-f,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":O=f,d="top";break;default:O=0,d="middle"}switch(i.__position){case"end":i.x=u[0]*g+c[0],i.y=u[1]*f+c[1],h=u[0]>.8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*g+l[0],i.y=-u[1]*f+l[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*x+l[0],i.y=l[1]+O,h=v[0]<0?"right":"left",i.originX=-g*x,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+O,h="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*x+c[0],i.y=c[1]+O,h=v[0]>=0?"right":"left",i.originX=g*x,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function w(t,e){var n=t.__specifiedRotation;if(null==n){var i=r.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(bn["a"]),Eg=Ng,Rg=function(){function t(t){this.group=new bn["a"],this._LineCtor=t||Eg}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,o=n._lineData;n._lineData=t,o||i.removeAll();var a=Vg(t);t.diff(o).add((function(n){e._doAdd(t,n,a)})).update((function(n,i){e._doUpdate(o,t,i,n,a)})).remove((function(t){i.remove(o.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Vg(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||zg(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Gg(o)){var a=new this._LineCtor(e,i,this._seriesScope);a.traverse(n),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){wn["traverseElements"](this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(Gg(i)){var o=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,o),this.group.add(o)}},t.prototype._doUpdate=function(t,e,n,i,o){var a=t.getItemGraphicEl(n);Gg(e.getItemLayout(i))?(a?a.updateData(e,i,o):a=new this._LineCtor(e,i,o),e.setItemGraphicEl(i,a),this.group.add(a)):this.group.remove(a)},t}();function zg(t){return t.animators&&t.animators.length>0}function Vg(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(jn["e"])(e)}}function Bg(t){return isNaN(t[0])||isNaN(t[1])}function Gg(t){return t&&!Bg(t[0])&&!Bg(t[1])}var Hg=Rg,Fg=[],Wg=[],Yg=[],Xg=Yn["h"],Zg=Ur["g"],Ug=Math.abs;function qg(t,e,n){for(var i,o=t[0],a=t[1],r=t[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){Fg[0]=Xg(o[0],a[0],r[0],u),Fg[1]=Xg(o[1],a[1],r[1],u);var h=Ug(Zg(Fg,e)-l);h<s&&(s=h,i=u)}for(var d=0;d<32;d++){var p=i+c;Wg[0]=Xg(o[0],a[0],r[0],i),Wg[1]=Xg(o[1],a[1],r[1],i),Yg[0]=Xg(o[0],a[0],r[0],p),Yg[1]=Xg(o[1],a[1],r[1],p);h=Zg(Wg,e)-l;if(Ug(h)<.01)break;var g=Zg(Yg,e)-l;c/=2,h<0?g>=0?i+=c:i-=c:g>=0?i-=c:i+=c}return i}function Kg(t,e){var n=[],i=Yn["n"],o=[[],[],[]],a=[[],[]],r=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),c=t.getVisual("fromSymbol"),u=t.getVisual("toSymbol");l.__original||(l.__original=[Ur["c"](l[0]),Ur["c"](l[1])],l[2]&&l.__original.push(Ur["c"](l[2])));var h=l.__original;if(null!=l[2]){if(Ur["d"](o[0],h[0]),Ur["d"](o[1],h[2]),Ur["d"](o[2],h[1]),c&&"none"!==c){var d=hg(t.node1),p=qg(o,h[0],d*e);i(o[0][0],o[1][0],o[2][0],p,n),o[0][0]=n[3],o[1][0]=n[4],i(o[0][1],o[1][1],o[2][1],p,n),o[0][1]=n[3],o[1][1]=n[4]}if(u&&"none"!==u){d=hg(t.node2),p=qg(o,h[1],d*e);i(o[0][0],o[1][0],o[2][0],p,n),o[1][0]=n[1],o[2][0]=n[2],i(o[0][1],o[1][1],o[2][1],p,n),o[1][1]=n[1],o[2][1]=n[2]}Ur["d"](l[0],o[0]),Ur["d"](l[1],o[2]),Ur["d"](l[2],o[1])}else{if(Ur["d"](a[0],h[0]),Ur["d"](a[1],h[1]),Ur["q"](r,a[1],a[0]),Ur["m"](r,r),c&&"none"!==c){d=hg(t.node1);Ur["o"](a[0],a[0],r,d*e)}if(u&&"none"!==u){d=hg(t.node2);Ur["o"](a[1],a[1],r,-d*e)}Ur["d"](l[0],a[0]),Ur["d"](l[1],a[1])}}))}function Jg(t){return"view"===t.type}var $g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){var n=new Nn,i=new Hg,o=this.group;this._controller=new ic(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem;this._model=t;var a=this._symbolDraw,r=this._lineDraw,s=this.group;if(Jg(o)){var l={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?s.attr(l):On["h"](s,l,t)}Kg(t.getGraph(),ug(t));var c=t.getData();a.updateData(c);var u=t.getEdgeData();r.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=t.get("layout");c.graph.eachNode((function(e){var n=e.dataIndex,o=e.getGraphicEl(),a=e.getModel();if(o){o.off("drag").off("dragend");var r=a.get("draggable");r&&o.on("drag",(function(a){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),c.setItemLayout(n,[o.x,o.y]);break;case"circular":c.setItemLayout(n,[o.x,o.y]),e.setLayout({fixed:!0},!0),gg(t,"symbolSize",e,[a.offsetX,a.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(n,[o.x,o.y]),lg(t.getGraph(),t),i.updateLayout(t);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),o.setDraggable(r,!!a.get("cursor"));var s=a.get(["emphasis","focus"]);"adjacency"===s&&(Object(Se["a"])(o).focus=e.getAdjacentDataIndices())}})),c.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Object(Se["a"])(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var g="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),f=c.getLayout("cx"),y=c.getLayout("cy");c.graph.eachNode((function(t){yg(t,g,f,y)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))})()},e.prototype._updateController=function(t,e,n){var i=this,o=this._controller,a=this._controllerHost,r=this.group;o.setPointerChecker((function(e,i,o){var a=r.getBoundingRect();return a.applyTransform(r.transform),a.contain(i,o)&&!sc(e,n,t)})),Jg(t.coordinateSystem)?(o.enable(t.get("roam")),a.zoomLimit=t.get("scaleLimit"),a.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",(function(e){oc(a,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){ac(a,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),Kg(t.getGraph(),ug(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):o.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=ug(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){Kg(t.getGraph(),ug(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(ti["a"]),Qg=$g;function tf(t){return"_EC_"+t}var ef=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[tf(t)]){var i=new nf(t,e);return i.hostGraph=this,this.nodes.push(i),n[tf(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[tf(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if(w["z"](t)&&(t=this.nodes[t]),w["z"](e)&&(e=this.nodes[e]),t instanceof nf||(t=i[tf(t)]),e instanceof nf||(e=i[tf(e)]),t&&e){var a=t.id+"-"+e.id,r=new of(t,e,n);return r.hostGraph=this,this._directed&&(t.outEdges.push(r),e.inEdges.push(r)),t.edges.push(r),t!==e&&e.edges.push(r),this.edges.push(r),o[a]=r,r}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof nf&&(t=t.id),e instanceof nf&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&t.call(e,n[o],o)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,o=0;o<i;o++)n[o].dataIndex>=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&t.call(e,n[o],o)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof nf||(e=this._nodesMap[tf(e)]),e){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!t.call(i,e,null)){var r=[e];while(r.length){var s=r.shift(),l=s[o];for(a=0;a<l.length;a++){var c=l[a],u=c.node1===s?c.node2:c.node1;if(!u.__visited){if(t.call(i,u,s))return;r.push(u),u.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,o=0,a=n.length;o<a;o++)n[o].dataIndex=-1;for(o=0,a=t.count();o<a;o++)n[t.getRawIndex(o)].dataIndex=o;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(o=0,a=i.length;o<a;o++)i[o].dataIndex=-1;for(o=0,a=e.count();o<a;o++)i[e.getRawIndex(o)].dataIndex=o},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,o=0;o<n.length;o++)e.addNode(n[o].id,n[o].dataIndex);for(o=0;o<i.length;o++){var a=i[o];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t}(),nf=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=w["f"](),e=w["f"](),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);var o=[i.node1],a=[i.node2],r=0;while(r<o.length){var s=o[r];r++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),o.push(s.inEdges[l].node1)}r=0;while(r<a.length){var c=a[r];r++,e.set(c.dataIndex,!0);for(l=0;l<c.outEdges.length;l++)t.set(c.outEdges[l].dataIndex,!0),a.push(c.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),of=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=w["f"](),e=w["f"]();t.set(this.dataIndex,!0);var n=[this.node1],i=[this.node2],o=0;while(o<n.length){var a=n[o];o++,e.set(a.dataIndex,!0);for(var r=0;r<a.inEdges.length;r++)t.set(a.inEdges[r].dataIndex,!0),n.push(a.inEdges[r].node1)}o=0;while(o<i.length){var s=i[o];o++,e.set(s.dataIndex,!0);for(r=0;r<s.outEdges.length;r++)t.set(s.outEdges[r].dataIndex,!0),i.push(s.outEdges[r].node2)}return{edge:t.keys(),node:e.keys()}},t}();function af(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}w["K"](nf,af("hostGraph","data")),w["K"](of,af("hostGraph","edgeData"));var rf=ef;function sf(t,e,n,i,o){for(var a=new rf(i),r=0;r<t.length;r++)a.addNode(w["O"](t[r].id,t[r].name,r),r);var s=[],l=[],c=0;for(r=0;r<e.length;r++){var u=e[r],h=u.source,d=u.target;a.addEdge(h,d,c)&&(l.push(u),s.push(w["O"](Object(we["e"])(u.id,null),h+" > "+d)),c++)}var p,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)p=yn(t,n);else{var f=en["a"].get(g),y=f&&f.dimensions||[];w["r"](y,"value")<0&&y.concat(["value"]);var v=Je(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;p=new qe(v,n),p.initData(t)}var m=new qe(["value"],n);return m.initData(l,s),o&&o(p,m),Jh({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var lf=n("f6d8"),cf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(le["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new aa(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(we["f"])(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){og(this);var a=sf(i,n,this,!0,r);return w["k"](a.edges,(function(t){ag(t.node1,t.node2,this,t.dataIndex)}),this),a.data}function r(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var n=ce["a"].prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=a,i}function a(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=a,t.getModel=i,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(t,n),a=i.graph.getEdgeByIndex(t),r=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return null!=r&&l.push(r),null!=s&&l.push(s),Object(jl["c"])("nameValue",{name:l.join(" > "),value:o.value,noValue:null==o.value})}var c=Object(lf["a"])({series:this,dataIndex:t,multipleSeries:e});return c},e.prototype._updateCategoriesData=function(){var t=w["H"](this.option.categories||[],(function(t){return null!=t.value?t:w["m"]({value:0},t)})),e=new qe(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(vn["b"]),uf=cf,hf={type:"graphRoam",event:"graphRoam",update:"none"};function df(t){t.registerChartView(Qg),t.registerSeriesModel(uf),t.registerProcessor(Xp),t.registerVisual(Zp),t.registerVisual(qp),t.registerLayout(cg),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,vg),t.registerLayout(xg),t.registerCoordinateSystem("graphView",{dimensions:Uu.dimensions,create:Og}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},w["L"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},w["L"]),t.registerAction(hf,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=e.coordinateSystem,o=lh(i,t,void 0,n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom)}))}))}var pf=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),gf=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new pf},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,a=e.width,r=e.angle,s=e.x-n(r)*a*(a>=o/3?1:2),l=e.y-i(r)*a*(a>=o/3?1:2);r=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(r)*a,e.y+i(r)*a),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(r)*a,e.y-i(r)*a),t.lineTo(s,l)},e}(h["b"]),ff=gf;function yf(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),a=Math.min(i,o),r=Object(ii["o"])(n[0],e.getWidth()),s=Object(ii["o"])(n[1],e.getHeight()),l=Object(ii["o"])(t.get("radius"),a/2);return{cx:r,cy:s,r:l}}function vf(t,e){var n=null==t?"":t+"";return e&&(Object(w["C"])(e)?n=e.replace("{value}",n):Object(w["w"])(e)&&(n=e(t))),n}var mf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=yf(t,n);this._renderMain(t,e,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,o){var a=this.group,r=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),u=c.get("roundCap"),h=u?no:ni["a"],d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),f=[s,l];Object(Z["b"])(f,!r),s=f[0],l=f[1];for(var y=l-s,v=s,m=[],b=0;d&&b<i.length;b++){var x=Math.min(Math.max(i[b][0],0),1);l=s+y*x;var _=new h({shape:{startAngle:v,endAngle:l,cx:o.cx,cy:o.cy,clockwise:r,r0:o.r-g,r:o.r},silent:!0});_.setStyle({fill:i[b][1]}),_.setStyle(p.getLineStyle(["color","width"])),m.push(_),v=l}m.reverse(),Object(w["k"])(m,(function(t){return a.add(t)}));var O=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,O,o,s,l,r,g),this._renderTitleAndDetail(t,e,n,O,o),this._renderAnchor(t,o),this._renderPointer(t,e,n,O,o,s,l,r,g)},e.prototype._renderTicks=function(t,e,n,i,o,a,r,s,l){for(var c,u,h=this.group,d=o.cx,p=o.cy,g=o.r,f=+t.get("min"),y=+t.get("max"),v=t.getModel("splitLine"),m=t.getModel("axisTick"),b=t.getModel("axisLabel"),x=t.get("splitNumber"),_=m.get("splitNumber"),O=Object(ii["o"])(v.get("length"),g),S=Object(ii["o"])(m.get("length"),g),M=a,I=(r-a)/x,j=I/_,A=v.getModel("lineStyle").getLineStyle(),C=m.getModel("lineStyle").getLineStyle(),D=v.get("distance"),T=0;T<=x;T++){if(c=Math.cos(M),u=Math.sin(M),v.get("show")){var k=D?D+l:l,L=new Ls["a"]({shape:{x1:c*(g-k)+d,y1:u*(g-k)+p,x2:c*(g-O-k)+d,y2:u*(g-O-k)+p},style:A,silent:!0});"auto"===A.stroke&&L.setStyle({stroke:i(T/x)}),h.add(L)}if(b.get("show")){k=b.get("distance")+D;var P=vf(Object(ii["u"])(T/x*(y-f)+f),b.get("formatter")),N=i(T/x),E=c*(g-O-k)+d,R=u*(g-O-k)+p,z=b.get("rotate"),V=0;"radial"===z?(V=-M+2*Math.PI,V>Math.PI/2&&(V+=Math.PI)):"tangential"===z?V=-M-Math.PI/2:Object(w["z"])(z)&&(V=z*Math.PI/180),0===V?h.add(new st["a"]({style:Object(jn["c"])(b,{text:P,x:E,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:N}),silent:!0})):h.add(new st["a"]({style:Object(jn["c"])(b,{text:P,x:E,y:R,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:E,originY:R,rotation:V}))}if(m.get("show")&&T!==x){k=m.get("distance");k=k?k+l:l;for(var B=0;B<=_;B++){c=Math.cos(M),u=Math.sin(M);var G=new Ls["a"]({shape:{x1:c*(g-k)+d,y1:u*(g-k)+p,x2:c*(g-S-k)+d,y2:u*(g-S-k)+p},silent:!0,style:C});"auto"===C.stroke&&G.setStyle({stroke:i((T+B/_)/x)}),h.add(G),M+=j}M-=j}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,o,a,r,s,l){var c=this.group,u=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),f=t.getModel("progress"),y=f.get("show"),v=t.getData(),m=v.mapDimension("value"),b=+t.get("min"),x=+t.get("max"),_=[b,x],O=[a,r];function S(e,n){var i,a=v.getItemModel(e),r=a.getModel("pointer"),s=Object(ii["o"])(r.get("width"),o.r),l=Object(ii["o"])(r.get("length"),o.r),c=t.get(["pointer","icon"]),u=r.get("offsetCenter"),h=Object(ii["o"])(u[0],o.r),d=Object(ii["o"])(u[1],o.r),p=r.get("keepAspect");return i=c?Object(mn["a"])(c,h-s/2,d-l,s,l,null,p):new ff({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=o.cx,i.y=o.cy,i}function M(t,e){var n=f.get("roundCap"),i=n?no:ni["a"],r=f.get("overlap"),c=r?f.get("width"):l/v.count(),u=r?o.r-c:o.r-(t+1)*c,h=r?o.r:o.r-t*c,d=new i({shape:{startAngle:a,endAngle:e,cx:o.cx,cy:o.cy,clockwise:s,r0:u,r:h}});return r&&(d.z2=x-v.get(m,t)%x),d}(y||g)&&(v.diff(u).add((function(e){var n=v.get(m,e);if(g){var i=S(e,a);On["c"](i,{rotation:-((isNaN(+n)?O[0]:Object(ii["k"])(n,_,O,!0))+Math.PI/2)},t),c.add(i),v.setItemGraphicEl(e,i)}if(y){var o=M(e,a),r=f.get("clip");On["c"](o,{shape:{endAngle:Object(ii["k"])(n,_,O,r)}},t),c.add(o),Object(Se["b"])(t.seriesIndex,v.dataType,e,o),p[e]=o}})).update((function(e,n){var i=v.get(m,e);if(g){var o=u.getItemGraphicEl(n),r=o?o.rotation:a,s=S(e,r);s.rotation=r,On["h"](s,{rotation:-((isNaN(+i)?O[0]:Object(ii["k"])(i,_,O,!0))+Math.PI/2)},t),c.add(s),v.setItemGraphicEl(e,s)}if(y){var l=h[n],d=l?l.shape.endAngle:a,b=M(e,d),x=f.get("clip");On["h"](b,{shape:{endAngle:Object(ii["k"])(i,_,O,x)}},t),c.add(b),Object(Se["b"])(t.seriesIndex,v.dataType,e,b),p[e]=b}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),o=n.get("focus"),a=n.get("blurScope"),r=n.get("disabled");if(g){var s=v.getItemGraphicEl(t),l=v.getItemVisual(t,"style"),c=l.fill;if(s instanceof d["a"]){var u=s.style;s.useStyle(Object(w["m"])({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Object(ii["k"])(v.get(m,t),_,[0,1],!0))),s.z2EmphasisLift=0,Object(Sn["I"])(s,e),Object(Sn["J"])(s,o,a,r)}if(y){var h=p[t];h.useStyle(v.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,Object(Sn["I"])(h,e),Object(Sn["J"])(h,o,a,r)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),a=n.get("icon"),r=n.get("offsetCenter"),s=n.get("keepAspect"),l=Object(mn["a"])(a,e.cx-o/2+Object(ii["o"])(r[0],e.r),e.cy-o/2+Object(ii["o"])(r[1],e.r),o,o,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,o){var a=this,r=t.getData(),s=r.mapDimension("value"),l=+t.get("min"),c=+t.get("max"),u=new bn["a"],h=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);r.diff(this._data).add((function(t){h[t]=new st["a"]({silent:!0}),d[t]=new st["a"]({silent:!0})})).update((function(t,e){h[t]=a._titleEls[e],d[t]=a._detailEls[e]})).execute(),r.each((function(e){var n=r.getItemModel(e),a=r.get(s,e),f=new bn["a"],y=i(Object(ii["k"])(a,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),b=o.cx+Object(ii["o"])(m[0],o.r),x=o.cy+Object(ii["o"])(m[1],o.r),_=h[e];_.attr({z2:g?0:2,style:Object(jn["c"])(v,{x:b,y:x,text:r.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),f.add(_)}var O=n.getModel("detail");if(O.get("show")){var w=O.get("offsetCenter"),S=o.cx+Object(ii["o"])(w[0],o.r),M=o.cy+Object(ii["o"])(w[1],o.r),I=Object(ii["o"])(O.get("width"),o.r),j=Object(ii["o"])(O.get("height"),o.r),A=t.get(["progress","show"])?r.getItemVisual(e,"style").fill:y,C=(_=d[e],O.get("formatter"));_.attr({z2:g?0:2,style:Object(jn["c"])(O,{x:S,y:M,text:vf(a,C),width:isNaN(I)?null:I,height:isNaN(j)?null:j,align:"center",verticalAlign:"middle"},{inheritColor:A})}),Object(jn["h"])(_,{normal:O},a,(function(t){return vf(t,C)})),p&&Object(jn["a"])(_,e,r,t,{getFormattedLabel:function(t,e,n,i,o,r){return vf(r?r.interpolatedValue:a,C)}}),f.add(_)}u.add(f)})),this.group.add(u),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(ti["a"]),bf=mf,xf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){return ia(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(vn["b"]),_f=xf;function Of(t){t.registerChartView(bf),t.registerSeriesModel(_f)}var wf=["itemStyle","opacity"],Sf=function(t){function e(e,n){var i=t.call(this)||this,o=i,a=new Wo["a"],r=new st["a"];return o.setTextContent(r),i.setTextGuideLine(a),i.updateData(e,n,!0),i}return Object(le["a"])(e,t),e.prototype.updateData=function(t,e,n){var i=this,o=t.hostModel,a=t.getItemModel(e),r=t.getItemLayout(e),s=a.getModel("emphasis"),l=a.get(wf);l=null==l?1:l,n||Object(On["g"])(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:r.points}),i.style.opacity=0,On["c"](i,{style:{opacity:l}},o,e)):On["h"](i,{style:{opacity:l},shape:{points:r.points}},o,e),Object(Sn["I"])(i,a),this._updateLabel(t,e),Object(Sn["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),a=t.hostModel,r=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,c=t.getItemVisual(e,"style"),u=c.fill;Object(jn["g"])(o,Object(jn["e"])(r),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:c.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Yo["a"](h[0][0],h[0][1]):null},On["h"](o,{style:{x:l.x,y:l.y}},a,e),o.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(Xo["d"])(n,Object(Xo["a"])(r),{stroke:u})},e}(Sl["a"]),Mf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this._data,a=this.group;i.diff(o).add((function(t){var e=new Sf(i,t);i.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(i,t),a.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=o.getItemGraphicEl(e);On["f"](n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(ti["a"]),If=Mf,jf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new aa(w["c"](this.getData,this),w["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return ia(this,{coordDimensions:["value"],encodeDefaulter:w["h"](Ke["d"],this)})},e.prototype._defaultLabelLine=function(t){Object(we["f"])(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),o=n.mapDimension("value"),a=n.getSum(o);return i.percent=a?+(n.get(o,e)/a*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(vn["b"]),Af=jf;function Cf(t,e){return Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Df(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),o=[],a="ascending"===e,r=0,s=t.count();r<s;r++)o[r]=r;return Object(w["w"])(e)?o.sort(e):"none"!==e&&o.sort((function(t,e){return a?i[t]-i[e]:i[e]-i[t]})),o}function Tf(t){var e=t.hostModel,n=e.get("orient");t.each((function(e){var i,o,a,r,s=t.getItemModel(e),l=s.getModel("label"),c=l.get("position"),u=s.getModel("labelLine"),h=t.getItemLayout(e),d=h.points,p="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(p)"insideLeft"===c?(o=(d[0][0]+d[3][0])/2+5,a=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===c?(o=(d[1][0]+d[2][0])/2-5,a=(d[1][1]+d[2][1])/2,i="right"):(o=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,a=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),r=[[o,a],[o,a]];else{var g=void 0,f=void 0,y=void 0,v=void 0,m=u.get("length");0,"left"===c?(g=(d[3][0]+d[0][0])/2,f=(d[3][1]+d[0][1])/2,y=g-m,o=y-5,i="right"):"right"===c?(g=(d[1][0]+d[2][0])/2,f=(d[1][1]+d[2][1])/2,y=g+m,o=y+5,i="left"):"top"===c?(g=(d[3][0]+d[0][0])/2,f=(d[3][1]+d[0][1])/2,v=f-m,a=v-5,i="center"):"bottom"===c?(g=(d[1][0]+d[2][0])/2,f=(d[1][1]+d[2][1])/2,v=f+m,a=v+5,i="center"):"rightTop"===c?(g="horizontal"===n?d[3][0]:d[1][0],f="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(v=f-m,a=v-5,i="center"):(y=g+m,o=y+5,i="top")):"rightBottom"===c?(g=d[2][0],f=d[2][1],"horizontal"===n?(v=f+m,a=v+5,i="center"):(y=g+m,o=y+5,i="bottom")):"leftTop"===c?(g=d[0][0],f="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(v=f-m,a=v-5,i="center"):(y=g-m,o=y-5,i="right")):"leftBottom"===c?(g="horizontal"===n?d[1][0]:d[3][0],f="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(v=f+m,a=v+5,i="center"):(y=g-m,o=y-5,i="right")):(g=(d[1][0]+d[2][0])/2,f=(d[1][1]+d[2][1])/2,"horizontal"===n?(v=f+m,a=v+5,i="center"):(y=g+m,o=y+5,i="left")),"horizontal"===n?(y=g,o=y):(v=f,a=v),r=[[g,f],[y,v]]}h.label={linePoints:r,x:o,y:a,verticalAlign:"middle",textAlign:i,inside:p}}))}function kf(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),o=t.get("sort"),a=Cf(t,e),r=t.get("orient"),s=a.width,l=a.height,c=Df(n,o),u=a.x,h=a.y,d="horizontal"===r?[Object(ii["o"])(t.get("minSize"),l),Object(ii["o"])(t.get("maxSize"),l)]:[Object(ii["o"])(t.get("minSize"),s),Object(ii["o"])(t.get("maxSize"),s)],p=n.getDataExtent(i),g=t.get("min"),f=t.get("max");null==g&&(g=Math.min(p[0],0)),null==f&&(f=p[1]);var y=t.get("funnelAlign"),v=t.get("gap"),m="horizontal"===r?s:l,b=(m-v*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===r){var o=n.get(i,t)||0,a=Object(ii["k"])(o,[g,f],d,!0),c=void 0;switch(y){case"top":c=h;break;case"center":c=h+(l-a)/2;break;case"bottom":c=h+(l-a);break}return[[e,c],[e,c+a]]}var p,v=n.get(i,t)||0,m=Object(ii["k"])(v,[g,f],d,!0);switch(y){case"left":p=u;break;case"center":p=u+(s-m)/2;break;case"right":p=u+s-m;break}return[[p,e],[p+m,e]]};"ascending"===o&&(b=-b,v=-v,"horizontal"===r?u+=s:h+=l,c=c.reverse());for(var _=0;_<c.length;_++){var O=c[_],w=c[_+1],S=n.getItemModel(O);if("horizontal"===r){var M=S.get(["itemStyle","width"]);null==M?M=b:(M=Object(ii["o"])(M,s),"ascending"===o&&(M=-M));var I=x(O,u),j=x(w,u+M);u+=M+v,n.setItemLayout(O,{points:I.concat(j.slice().reverse())})}else{var A=S.get(["itemStyle","height"]);null==A?A=b:(A=Object(ii["o"])(A,l),"ascending"===o&&(A=-A));I=x(O,h),j=x(w,h+A);h+=A+v,n.setItemLayout(O,{points:I.concat(j.slice().reverse())})}}Tf(n)}))}function Lf(t){t.registerChartView(If),t.registerSeriesModel(Af),t.registerLayout(kf),t.registerProcessor(Fo("funnel"))}var Pf=.3,Nf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new bn["a"],n._initialized=!1,n}return Object(le["a"])(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var o=this._dataGroup,a=t.getData(),r=this._data,s=t.coordinateSystem,l=s.dimensions,c=Vf(t);function u(t){var e=zf(a,o,t,l,s);Bf(e,a,t,c)}function h(e,n){var i=r.getItemGraphicEl(n),o=Rf(a,e,l,s);a.setItemGraphicEl(e,i),On["h"](i,{shape:{points:o}},t,e),Object(On["g"])(i),Bf(i,a,e,c)}function d(t){var e=r.getItemGraphicEl(t);o.remove(e)}if(a.diff(r).add(u).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=Ef(s,t,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(p)}this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),o=e.coordinateSystem,a=o.dimensions,r=Vf(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var c=zf(i,this._dataGroup,l,a,o);c.incremental=!0,Bf(c,i,l,r),s.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(ti["a"]);function Ef(t,e,n){var i=t.model,o=t.getRect(),a=new ei["a"]({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),r="horizontal"===i.get("layout")?"width":"height";return a.setShape(r,0),On["c"](a,{shape:{width:o.width,height:o.height}},e,n),a}function Rf(t,e,n,i){for(var o=[],a=0;a<n.length;a++){var r=n[a],s=t.get(t.mapDimension(r),e);Gf(s,i.getAxis(r).type)||o.push(i.dataToPoint(s,r))}return o}function zf(t,e,n,i,o){var a=Rf(t,n,i,o),r=new Wo["a"]({shape:{points:a},z2:10});return e.add(r),t.setItemGraphicEl(n,r),r}function Vf(t){var e=t.get("smooth",!0);return!0===e&&(e=Pf),e=Object(ii["m"])(e),Object(w["l"])(e)&&(e=0),{smooth:e}}function Bf(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var o=e.getItemModel(n),a=o.getModel("emphasis");Object(Sn["I"])(t,o,"lineStyle"),Object(Sn["J"])(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function Gf(t,e){return"category"===e?null==t:null==t||isNaN(t)}var Hf=Nf,Ff=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){return yn(null,this,{useEncodeDefaulter:Object(w["c"])(Wf,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,o){t===e&&i.push(n.getRawIndex(o))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(vn["b"]);function Wf(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(w["k"])(e.dimensions,(function(t){var e=Yf(t);n[t]=e})),n}}function Yf(t){return+t.replace("dim","")}var Xf=Ff,Zf=["lineStyle","opacity"],Uf={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var o=i[t];if("normal"===t&&e.hasItemOption){var a=e.getItemModel(n).get(Zf,!0);null!=a&&(o=a)}var r=e.ensureUniqueItemVisual(n,"style");r.opacity=o}),t.start,t.end)}}}},qf=Uf;function Kf(t){Jf(t),$f(t)}function Jf(t){if(!t.parallel){var e=!1;w["k"](t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function $f(t){var e=we["r"](t.parallelAxis);w["k"](e,(function(e){if(w["A"](e)){var n=e.parallelIndex||0,i=we["r"](t.parallel)[n];i&&i.parallelAxisDefault&&w["I"](e,i.parallelAxisDefault,!1)}}))}var Qf=5,ty=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(w["k"])(ey,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(w["c"])(t,this))}),this)),Object(Qi["b"])(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){Object(Qi["a"])(this,"_throttledDispatchExpand"),Object(w["k"])(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(w["m"])({type:"parallelAxisExpand"},t))},e.type="parallel",e}(_a["a"]),ey={mousedown:function(t){ny(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(ny(this,"click")&&e){var n=[t.offsetX,t.offsetY],i=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(i>Qf)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==o.behavior&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&ny(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function ny(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var iy=ty,oy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&w["I"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){w["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=w["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);w["k"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Oa["a"]),ay=oy,ry=function(t){function e(e,n,i,o,a){var r=t.call(this,e,n,i)||this;return r.type=o||"value",r.axisIndex=a,r}return Object(le["a"])(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(bs),sy=ry;function ly(t,e,n,i,o,a){t=t||0;var r=n[1]-n[0];if(null!=o&&(o=uy(o,[0,r])),null!=a&&(a=Math.max(a,null!=o?o:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=uy(s,[0,r]),o=a=uy(s,[o,a]),i=0}e[0]=uy(e[0],n),e[1]=uy(e[1],n);var l=cy(e,i);e[i]+=t;var c,u=o||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,e[i]=uy(e[i],h),c=cy(e,i),null!=o&&(c.sign!==l.sign||c.span<o)&&(e[1-i]=e[i]+l.sign*o),c=cy(e,i),null!=a&&c.span>a&&(e[1-i]=e[i]+c.sign*a),e}function cy(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function uy(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var hy=w["k"],dy=Math.min,py=Math.max,gy=Math.floor,fy=Math.ceil,yy=ii["u"],vy=Math.PI,my=function(){function t(t,e,n){this.type="parallel",this._axesMap=w["f"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,o=t.parallelAxisIndex;hy(i,(function(t,n){var i=o[n],a=e.getComponent("parallelAxis",i),r=this._axesMap.set(t,new sy(t,Nr(a),[0,0],a.get("type"),i)),s="category"===r.type;r.onBand=s&&a.get("boundaryGap"),r.inverse=a.get("inverse"),a.axis=r,r.model=a,r.coordinateSystem=a.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,a=t[1-o],r=t[o];return a>=n&&a<=n+e.axisLength&&r>=i&&r<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();hy(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),Pr(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],o=["width","height"],a=e.get("layout"),r="horizontal"===a?0:1,s=n[o[r]],l=[0,s],c=this.dimensions.length,u=by(e.get("axisExpandWidth"),l),h=by(e.get("axisExpandCount")||0,[0,c]),d=e.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,p=e.get("axisExpandWindow");if(p)t=by(p[1]-p[0],l),p[1]=p[0]+t;else{t=by(u*(h-1),l);var g=e.get("axisExpandCenter")||gy(c/2);p=[u*g-t/2],p[1]=p[0]+t}var f=(s-t)/(c-h);f<3&&(f=0);var y=[gy(yy(p[0]/u,1))+1,fy(yy(p[1]/u,1))-1],v=f/u*p[0];return{layout:a,pixelDimIndex:r,layoutBase:n[i[r]],layoutLength:s,axisBase:n[i[1-r]],axisLength:n[o[1-r]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:p,axisCount:c,winInnerIndices:y,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),hy(n,(function(e,n){var a=(i.axisExpandable?_y:xy)(n,i),r={horizontal:{x:a.position,y:i.axisLength},vertical:{x:0,y:a.position}},s={horizontal:vy/2,vertical:0},l=[r[o].x+t.x,r[o].y+t.y],c=s[o],u=Zr["c"]();Zr["g"](u,u,c),Zr["i"](u,u,l),this._axesLayout[e]={position:l,rotation:c,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var o=this._axesMap,a=this.dimensions,r=[],s=[];w["k"](a,(function(e){r.push(t.mapDimension(e)),s.push(o.get(e).model)}));for(var l=this.hasAxisBrushed(),c=n;c<i;c++){var u=void 0;if(l){u="active";for(var h=t.getValues(r,c),d=0,p=a.length;d<p;d++){var g=s[d].getActiveState(h[d]);if("inactive"===g){u="inactive";break}}}else u="normal";e(u,c)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,o=t.length;i<o;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return wn["applyTransform"]([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return w["d"](this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),o=i[1]-i[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var r,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",c=e.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),h=null!=u[0];if(c)h&&c&&s<o*u[0]?(l="jump",r=s-o*u[2]):h&&c&&s>o*(1-u[0])?(l="jump",r=s-o*(1-u[2])):(r=s-o*u[1])>=0&&(r=s-o*(1-u[1]))<=0&&(r=0),r*=e.axisExpandWidth/c,r?ly(r,i,a,"all"):l="none";else{var d=i[1]-i[0],p=a[1]*s/d;i=[py(0,p-d/2)],i[1]=dy(a[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function by(t,e){return dy(py(t,e[0]),e[1])}function xy(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function _y(t,e){var n,i,o=e.layoutLength,a=e.axisExpandWidth,r=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,c=s,u=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*a-e.axisExpandWindow[0],c=a,u=!0):(n=o-(r-1-t)*s,i=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}var Oy=my;function wy(t,e){var n=[];return t.eachComponent("parallel",(function(i,o){var a=new Oy(i,t,e);a.name="parallel_"+o,a.resize(i,e),i.coordinateSystem=a,a.model=i,n.push(a)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",we["b"]).models[0];t.coordinateSystem=e.coordinateSystem}})),n}var Sy={create:wy},My=Sy,Iy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return Object(le["a"])(e,t),e.prototype.getAreaSelectStyle=function(){return Object(kd["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=w["d"](t);if(e)for(var n=e.length-1;n>=0;n--)ii["c"](e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;i<o;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(Oa["a"]);w["K"](Iy,Ma);var jy=Iy,Ay=!0,Cy=Math.min,Dy=Math.max,Ty=Math.pow,ky=1e4,Ly=6,Py=6,Ny="globalPan",Ey={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Ry={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},zy={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Vy=0,By=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new bn["a"],n._uid="brushController_"+Vy++,Object(w["k"])(mv,(function(t,e){this._handlers[e]=Object(w["c"])(t,this)}),n),n}return Object(le["a"])(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||ql(e,Ny,this._uid),Object(w["k"])(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(w["I"])(Object(w["d"])(zy),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;Kl(t,Ny,this._uid),Object(w["k"])(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(w["k"])(t,(function(t){e[t.panelId]=Object(w["d"])(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(w["H"])(t,(function(t){return Object(w["I"])(Object(w["d"])(zy),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,a=this._creatingCover;return new pe(n,t,s,r).add(l).update(l).remove(c).execute(),this;function r(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(t,e){return r(t.__brushOption,e)}function l(e,r){var s=t[e];if(null!=r&&n[r]===a)i[e]=n[r];else{var l=i[e]=null!=r?(n[r].__brushOption=s,n[r]):Hy(o,Gy(o,s));Yy(o,l)}}function c(t){n[t]!==a&&o.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),qy(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Yl["a"]);function Gy(t,e){var n=_v[e.brushType].createCover(t,e);return n.__brushOption=e,Wy(n,e),t.group.add(n),n}function Hy(t,e){var n=Xy(e);return n.endCreating&&(n.endCreating(t,e),Wy(e,e.__brushOption)),e}function Fy(t,e){var n=e.__brushOption;Xy(e).updateCoverShape(t,e,n.range,n)}function Wy(t,e){var n=e.z;null==n&&(n=ky),t.traverse((function(t){t.z=n,t.z2=n}))}function Yy(t,e){Xy(e).updateCommon(t,e),Fy(t,e)}function Xy(t){return _v[t.__brushOption.brushType]}function Zy(t,e,n){var i,o=t._panels;if(!o)return Ay;var a=t._transform;return Object(w["k"])(o,(function(t){t.isTargetByCursor(e,n,a)&&(i=t)})),i}function Uy(t,e){var n=t._panels;if(!n)return Ay;var i=e.__brushOption.panelId;return null!=i?n[i]:Ay}function qy(t){var e=t._covers,n=e.length;return Object(w["k"])(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function Ky(t,e){var n=Object(w["H"])(t._covers,(function(t){var e=t.__brushOption,n=Object(w["d"])(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Jy(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],o=n[0]-i[0],a=n[1]-i[1],r=Ty(o*o+a*a,.5);return r>Ly}function $y(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Qy(t,e,n,i){var o=new bn["a"];return o.add(new ei["a"]({name:"main",style:iv(n),silent:!0,draggable:!0,cursor:"move",drift:Object(w["h"])(lv,t,e,o,["n","s","w","e"]),ondragend:Object(w["h"])(Ky,e,{isEnd:!0})})),Object(w["k"])(i,(function(n){o.add(new ei["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(w["h"])(lv,t,e,o,n),ondragend:Object(w["h"])(Ky,e,{isEnd:!0})}))})),o}function tv(t,e,n,i){var o=i.brushStyle.lineWidth||0,a=Dy(o,Py),r=n[0][0],s=n[1][0],l=r-o/2,c=s-o/2,u=n[0][1],h=n[1][1],d=u-a+o/2,p=h-a+o/2,g=u-r,f=h-s,y=g+o,v=f+o;nv(t,e,"main",r,s,g,f),i.transformable&&(nv(t,e,"w",l,c,a,v),nv(t,e,"e",d,c,a,v),nv(t,e,"n",l,c,y,a),nv(t,e,"s",l,p,y,a),nv(t,e,"nw",l,c,a,a),nv(t,e,"ne",d,c,a,a),nv(t,e,"sw",l,p,a,a),nv(t,e,"se",d,p,a,a))}function ev(t,e){var n=e.__brushOption,i=n.transformable,o=e.childAt(0);o.useStyle(iv(n)),o.attr({silent:!i,cursor:i?"move":"default"}),Object(w["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var o=e.childOfName(n.join("")),a=1===n.length?rv(t,n[0]):sv(t,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?Ry[a]+"-resize":null})}))}function nv(t,e,n,i,o,a,r){var s=e.childOfName(n);s&&s.setShape(dv(hv(t,e,[[i,o],[i+a,o+r]])))}function iv(t){return Object(w["i"])({strokeNoScale:!0},t.brushStyle)}function ov(t,e,n,i){var o=[Cy(t,n),Cy(e,i)],a=[Dy(t,n),Dy(e,i)];return[[o[0],a[0]],[o[1],a[1]]]}function av(t){return wn["getTransform"](t.group)}function rv(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},o=wn["transformDirection"](n[e],av(t));return i[o]}function sv(t,e){var n=[rv(t,e[0]),rv(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function lv(t,e,n,i,o,a){var r=n.__brushOption,s=t.toRectRange(r.range),l=uv(e,o,a);Object(w["k"])(i,(function(t){var e=Ey[t];s[e[0]][e[1]]+=l[e[0]]})),r.range=t.fromRectRange(ov(s[0][0],s[1][0],s[0][1],s[1][1])),Yy(e,n),Ky(e,{isEnd:!1})}function cv(t,e,n,i){var o=e.__brushOption.range,a=uv(t,n,i);Object(w["k"])(o,(function(t){t[0]+=a[0],t[1]+=a[1]})),Yy(t,e),Ky(t,{isEnd:!1})}function uv(t,e,n){var i=t.group,o=i.transformCoordToLocal(e,n),a=i.transformCoordToLocal(0,0);return[o[0]-a[0],o[1]-a[1]]}function hv(t,e,n){var i=Uy(t,e);return i&&i!==Ay?i.clipPath(n,t._transform):Object(w["d"])(n)}function dv(t){var e=Cy(t[0][0],t[1][0]),n=Cy(t[0][1],t[1][1]),i=Dy(t[0][0],t[1][0]),o=Dy(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:o-n}}function pv(t,e,n){if(t._brushType&&!xv(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,a=Zy(t,e,n);if(!t._dragging)for(var r=0;r<o.length;r++){var s=o[r].__brushOption;if(a&&(a===Ay||s.panelId===a.panelId)&&_v[s.brushType].contain(o[r],n[0],n[1]))return}a&&i.setCursorStyle("crosshair")}}function gv(t){var e=t.event;e.preventDefault&&e.preventDefault()}function fv(t,e,n){return t.childOfName("main").contain(e,n)}function yv(t,e,n,i){var o,a=t._creatingCover,r=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),Jy(t)||a){if(r&&!a){"single"===s.brushMode&&qy(t);var l=Object(w["d"])(s);l.brushType=vv(l.brushType,r),l.panelId=r===Ay?null:r.panelId,a=t._creatingCover=Gy(t,l),t._covers.push(a)}if(a){var c=_v[vv(t._brushType,r)],u=a.__brushOption;u.range=c.getCreatingRange(hv(t,a,t._track)),i&&(Hy(t,a),c.updateCommon(t,a)),Fy(t,a),o={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Zy(t,e,n)&&qy(t)&&(o={isEnd:i,removeOnClick:!0});return o}function vv(t,e){return"auto"===t?e.defaultBrushType:t}var mv={mousedown:function(t){if(this._dragging)bv(this,t);else if(!t.target||!t.target.draggable){gv(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=Zy(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(pv(this,t,i),this._dragging){gv(t);var o=yv(this,t,i,!1);o&&Ky(this,o)}},mouseup:function(t){bv(this,t)}};function bv(t,e){if(t._dragging){gv(e);var n=e.offsetX,i=e.offsetY,o=t.group.transformCoordToLocal(n,i),a=yv(t,e,o,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&Ky(t,a)}}function xv(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}var _v={lineX:Ov(0),lineY:Ov(1),rect:{createCover:function(t,e){function n(t){return t}return Qy({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=$y(t);return ov(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){tv(t,e,n,i)},updateCommon:ev,contain:fv},polygon:{createCover:function(t,e){var n=new bn["a"];return n.add(new Wo["a"]({name:"main",style:iv(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Sl["a"]({name:"main",draggable:!0,drift:Object(w["h"])(cv,t,e),ondragend:Object(w["h"])(Ky,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:hv(t,e,n)})},updateCommon:ev,contain:fv}};function Ov(t){return{createCover:function(e,n){return Qy({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=$y(e),i=Cy(n[0][t],n[1][t]),o=Dy(n[0][t],n[1][t]);return[i,o]},updateCoverShape:function(e,n,i,o){var a,r=Uy(e,n);if(r!==Ay&&r.getLinearBrushOtherExtent)a=r.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,a];t&&l.reverse(),tv(e,n,l,o)},updateCommon:ev,contain:fv}}var wv=By;function Sv(t){return t=jv(t),function(e){return wn["clipPointsByRect"](e,t)}}function Mv(t,e){return t=jv(t),function(n){var i=null!=e?e:n,o=i?t.width:t.height,a=i?t.x:t.y;return[a,a+(o||0)]}}function Iv(t,e,n){var i=jv(t);return function(t,o){return i.contain(o[0],o[1])&&!sc(t,e,n)}}function jv(t){return pa["a"].create(t)}var Av=["axisLine","axisTickLabel","axisName"],Cv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new wv(n.getZr())).on("brush",w["c"](this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!Dv(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new bn["a"],this.group.add(this._axisGroup),t.get("show")){var a=kv(t,e),r=a.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,c=t.axis.dim,u=r.getAxisLayout(c),h=w["m"]({strokeContainThreshold:l},u),d=new Xs(t,h);w["k"](Av,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,s,t,a,l,n),wn["groupTransition"](o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,o,a){var r=n.axis.getExtent(),s=r[1]-r[0],l=Math.min(30,.1*Math.abs(s)),c=pa["a"].create({x:r[0],y:-o/2,width:s,height:o});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Sv(c),isTargetByCursor:Iv(c,a,i),getLinearBrushOtherExtent:Mv(c,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(Tv(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,o=w["H"](e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(_a["a"]);function Dv(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function Tv(t){var e=t.axis;return w["H"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function kv(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var Lv=Cv,Pv={type:"axisAreaSelect",event:"axisAreaSelected"};function Nv(t){t.registerAction(Pv,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var Ev={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Rv(t){t.registerComponentView(iy),t.registerComponentModel(ay),t.registerCoordinateSystem("parallel",My),t.registerPreprocessor(Kf),t.registerComponentModel(jy),t.registerComponentView(Lv),za(t,"parallel",jy,Ev),Nv(t)}function zv(t){Object(l["a"])(Rv),t.registerChartView(Hf),t.registerSeriesModel(Xf),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,qf)}var Vv=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),Bv=function(t){function e(e){return t.call(this,e)||this}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new Vv},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Object(Sn["r"])(this)},e.prototype.downplay=function(){Object(Sn["C"])(this)},e}(h["b"]),Gv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=this,o=t.getGraph(),a=this.group,r=t.layoutInfo,s=r.width,l=r.height,c=t.getData(),u=t.getData("edge"),h=t.get("orient");this._model=t,a.removeAll(),a.x=r.x,a.y=r.y,o.eachEdge((function(e){var n=new Bv,i=Object(Se["a"])(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var o,r,c,d,p,g,f,y,v=e.getModel(),m=v.getModel("lineStyle"),b=m.get("curveness"),x=e.node1.getLayout(),_=e.node1.getModel(),O=_.get("localX"),S=_.get("localY"),M=e.node2.getLayout(),I=e.node2.getModel(),j=I.get("localX"),A=I.get("localY"),C=e.getLayout();n.shape.extent=Math.max(1,C.dy),n.shape.orient=h,"vertical"===h?(o=(null!=O?O*s:x.x)+C.sy,r=(null!=S?S*l:x.y)+x.dy,c=(null!=j?j*s:M.x)+C.ty,d=null!=A?A*l:M.y,p=o,g=r*(1-b)+d*b,f=c,y=r*b+d*(1-b)):(o=(null!=O?O*s:x.x)+x.dx,r=(null!=S?S*l:x.y)+C.sy,c=null!=j?j*s:M.x,d=(null!=A?A*l:M.y)+C.ty,p=o*(1-b)+c*b,g=r,f=o*b+c*(1-b),y=d),n.setShape({x1:o,y1:r,x2:c,y2:d,cpx1:p,cpy1:g,cpx2:f,cpy2:y}),n.useStyle(m.getItemStyle()),Hv(n.style,h,e);var D=""+v.get("value"),T=Object(jn["e"])(v,"edgeLabel");Object(jn["g"])(n,T,{labelFetcher:{getFormattedLabel:function(e,n,i,o,a,r){return t.getFormattedLabel(e,n,"edge",o,Object(w["Q"])(a,T.normal&&T.normal.get("formatter"),D),r)}},labelDataIndex:e.dataIndex,defaultText:D}),n.setTextConfig({position:"inside"});var k=v.getModel("emphasis");Object(Sn["I"])(n,v,"lineStyle",(function(t){var n=t.getItemStyle();return Hv(n,h,e),n})),a.add(n),u.setItemGraphicEl(e.dataIndex,n);var L=k.get("focus");Object(Sn["J"])(n,"adjacency"===L?e.getAdjacentDataIndices():"trajectory"===L?e.getTrajectoryDataIndices():L,k.get("blurScope"),k.get("disabled"))})),o.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),o=i.get("localX"),r=i.get("localY"),u=i.getModel("emphasis"),h=i.get(["itemStyle","borderRadius"])||0,d=new ei["a"]({shape:{x:null!=o?o*s:n.x,y:null!=r?r*l:n.y,width:n.dx,height:n.dy,r:h},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(jn["g"])(d,Object(jn["e"])(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),Object(Sn["I"])(d,i),a.add(d),c.setItemGraphicEl(e.dataIndex,d),Object(Se["a"])(d).dataType="node";var p=u.get("focus");Object(Sn["J"])(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(e,o){var a=c.getItemModel(o);a.get("draggable")&&(e.drift=function(e,a){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=a,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(o),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&a.setClipPath(Fv(a.getBoundingRect(),t,(function(){a.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(ti["a"]);function Hv(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),o=n.node2.getVisual("color");Object(w["C"])(i)&&Object(w["C"])(o)&&(t.fill=new Wn["a"](0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:o,offset:1}]))}}function Fv(t,e,n){var i=new ei["a"]({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return On["c"](i,{shape:{width:t.width+20}},e,n),i}var Wv=Gv,Yv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var a=this.levelModels,r=0;r<o.length;r++)null!=o[r].depth&&o[r].depth>=0&&(a[o[r].depth]=new ce["a"](o[r],this,e));if(i&&n){var s=sf(i,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var o=i.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),o=i.node1.getLayout();if(o){var a=o.depth,r=n.levelModels[a];r&&(t.parentModel=r)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var o=this.getDataParams(t,n),a=o.data,r=o.value,s=a.source+" -- "+a.target;return Object(jl["c"])("nameValue",{name:s,value:r,noValue:i(r)})}var l=this.getGraph().getNodeByIndex(t),c=l.getLayout().value,u=this.getDataParams(t,n).data.name;return Object(jl["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var o=this.getGraph().getNodeByIndex(e),a=o.getLayout().value;i.value=a}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(vn["b"]),Xv=Yv;function Zv(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),o=Uv(t,e);t.layoutInfo=o;var a=o.width,r=o.height,s=t.getGraph(),l=s.nodes,c=s.edges;Kv(l);var u=w["n"](l,(function(t){return 0===t.getLayout().value})),h=0!==u.length?0:t.get("layoutIterations"),d=t.get("orient"),p=t.get("nodeAlign");qv(l,c,n,i,a,r,h,d,p)}))}function Uv(t,e){return Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function qv(t,e,n,i,o,a,r,s,l){Jv(t,e,n,o,a,s,l),nm(t,e,a,o,i,r,s),fm(t,s)}function Kv(t){w["k"](t,(function(t){var e=pm(t.outEdges,dm),n=pm(t.inEdges,dm),i=t.getValue()||0,o=Math.max(e,n,i);t.setLayout({value:o},!0)}))}function Jv(t,e,n,i,o,a,r){for(var s=[],l=[],c=[],u=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&c.push(t[d]);var p=-1;while(c.length){for(var g=0;g<c.length;g++){var f=c[g],y=f.hostGraph.data.getRawDataItem(f.dataIndex),v=null!=y.depth&&y.depth>=0;v&&y.depth>p&&(p=y.depth),f.setLayout({depth:v?y.depth:h},!0),"vertical"===a?f.setLayout({dy:n},!0):f.setLayout({dx:n},!0);for(var m=0;m<f.outEdges.length;m++){var b=f.outEdges[m],x=e.indexOf(b);s[x]=0;var _=b.node2,O=t.indexOf(_);0===--l[O]&&u.indexOf(_)<0&&u.push(_)}}++h,c=u,u=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var w=p>h-1?p:h-1;r&&"left"!==r&&Qv(t,r,a,w);var S="vertical"===a?(o-n)/w:(i-n)/w;em(t,S,a)}function $v(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Qv(t,e,n,i){if("right"===e){var o=[],a=t,r=0;while(a.length){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:r},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];o.indexOf(u.node1)<0&&o.push(u.node1)}}a=o,o=[],++r}w["k"](t,(function(t){$v(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&tm(t,i)}function tm(t,e){w["k"](t,(function(t){$v(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function em(t,e,n){w["k"](t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}function nm(t,e,n,i,o,a,r){var s=im(t,r);om(s,e,n,i,o,r),am(s,o,n,i,r);for(var l=1;a>0;a--)l*=.99,rm(s,l,r),am(s,o,n,i,r),gm(s,l,r),am(s,o,n,i,r)}function im(t,e){var n=[],i="vertical"===e?"y":"x",o=Object(we["j"])(t,(function(t){return t.getLayout()[i]}));return o.keys.sort((function(t,e){return t-e})),w["k"](o.keys,(function(t){n.push(o.buckets.get(t))})),n}function om(t,e,n,i,o,a){var r=1/0;w["k"](t,(function(t){var e=t.length,s=0;w["k"](t,(function(t){s+=t.getLayout().value}));var l="vertical"===a?(i-(e-1)*o)/s:(n-(e-1)*o)/s;l<r&&(r=l)})),w["k"](t,(function(t){w["k"](t,(function(t,e){var n=t.getLayout().value*r;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),w["k"](e,(function(t){var e=+t.getValue()*r;t.setLayout({dy:e},!0)}))}function am(t,e,n,i,o){var a="vertical"===o?"x":"y";w["k"](t,(function(t){var r,s,l;t.sort((function(t,e){return t.getLayout()[a]-e.getLayout()[a]}));for(var c=0,u=t.length,h="vertical"===o?"dx":"dy",d=0;d<u;d++)s=t[d],l=c-s.getLayout()[a],l>0&&(r=s.getLayout()[a]+l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[a]+s.getLayout()[h]+e;var p="vertical"===o?i:n;if(l=c-e-p,l>0){r=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0),c=r;for(d=u-2;d>=0;--d)s=t[d],l=s.getLayout()[a]+s.getLayout()[h]+e-c,l>0&&(r=s.getLayout()[a]-l,"vertical"===o?s.setLayout({x:r},!0):s.setLayout({y:r},!0)),c=s.getLayout()[a]}}))}function rm(t,e,n){w["k"](t.slice().reverse(),(function(t){w["k"](t,(function(t){if(t.outEdges.length){var i=pm(t.outEdges,sm,n)/pm(t.outEdges,dm);if(isNaN(i)){var o=t.outEdges.length;i=o?pm(t.outEdges,lm,n)/o:0}if("vertical"===n){var a=t.getLayout().x+(i-hm(t,n))*e;t.setLayout({x:a},!0)}else{var r=t.getLayout().y+(i-hm(t,n))*e;t.setLayout({y:r},!0)}}}))}))}function sm(t,e){return hm(t.node2,e)*t.getValue()}function lm(t,e){return hm(t.node2,e)}function cm(t,e){return hm(t.node1,e)*t.getValue()}function um(t,e){return hm(t.node1,e)}function hm(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function dm(t){return t.getValue()}function pm(t,e,n){var i=0,o=t.length,a=-1;while(++a<o){var r=+e(t[a],n);isNaN(r)||(i+=r)}return i}function gm(t,e,n){w["k"](t,(function(t){w["k"](t,(function(t){if(t.inEdges.length){var i=pm(t.inEdges,cm,n)/pm(t.inEdges,dm);if(isNaN(i)){var o=t.inEdges.length;i=o?pm(t.inEdges,um,n)/o:0}if("vertical"===n){var a=t.getLayout().x+(i-hm(t,n))*e;t.setLayout({x:a},!0)}else{var r=t.getLayout().y+(i-hm(t,n))*e;t.setLayout({y:r},!0)}}}))}))}function fm(t,e){var n="vertical"===e?"x":"y";w["k"](t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),w["k"](t,(function(t){var e=0,n=0;w["k"](t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),w["k"](t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}function ym(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var o=1/0,a=-1/0;w["k"](n,(function(t){var e=t.getLayout().value;e<o&&(o=e),e>a&&(a=e)})),w["k"](n,(function(e){var n=new pp({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:t.get("color")}),i=n.mapValueToVisual(e.getLayout().value),r=e.getModel().get(["itemStyle","color"]);null!=r?(e.setVisual("color",r),e.setVisual("style",{fill:r})):(e.setVisual("color",i),e.setVisual("style",{fill:i}))}))}i.length&&w["k"](i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}function vm(t){t.registerChartView(Wv),t.registerSeriesModel(Xv),t.registerLayout(Zv),t.registerVisual(ym),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var mm=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,o=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),r=o.get("type"),s=a.get("type");"category"===r?(t.layout="horizontal",n=o.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=a.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],c="horizontal"===t.layout?0:1,u=this._baseAxisDim=l[c],h=l[1-c],d=[o,a],p=d[c].get("type"),g=d[1-c].get("type"),f=t.data;if(f&&i){var y=[];w["k"](f,(function(t,e){var n;w["t"](t)?(n=t.slice(),t.unshift(e)):w["t"](t.value)?(n=w["m"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var v=this.defaultValueDimensions,m=[{name:u,type:be(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:be(g),dimsDef:v.slice()}];return ia(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:w["h"](Ke["c"],m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),bm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(le["a"])(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(vn["b"]);Object(w["K"])(bm,mm,!0);var xm=bm,_m=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this.group,a=this._data;this._data||o.removeAll();var r="horizontal"===t.get("layout")?1:0;i.diff(a).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=Sm(e,i,t,r,!0);i.setItemGraphicEl(t,n),o.add(n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(Object(On["g"])(n),Mm(s,n,i,t)):n=Sm(s,i,t,r),o.add(n),i.setItemGraphicEl(t,n)}else o.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&o.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(ti["a"]),Om=function(){function t(){}return t}(),wm=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new Om},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(h["b"]);function Sm(t,e,n,i,o){var a=t.ends,r=new wm({shape:{points:o?Im(a,i,t):a}});return Mm(t,r,e,n,o),r}function Mm(t,e,n,i,o){var a=n.hostModel,r=wn[o?"initProps":"updateProps"];r(e,{shape:{points:t.ends}},a,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(i),l=s.getModel("emphasis");Object(Sn["I"])(e,s),Object(Sn["J"])(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Im(t,e,n){return w["H"](t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var jm=_m,Am=w["k"];function Cm(t){var e=Dm(t);Am(e,(function(t){var e=t.seriesModels;e.length&&(Tm(t),Am(e,(function(e,n){km(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function Dm(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),o=w["r"](n,i);o<0&&(o=n.length,n[o]=i,e[o]={axis:i,seriesModels:[]}),e[o].seriesModels.push(t)})),e}function Tm(t){var e,n=t.axis,i=t.seriesModels,o=i.length,a=t.boxWidthList=[],r=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;Am(i,(function(t){l=Math.max(l,t.getData().count())}));var c=n.getExtent();e=Math.abs(c[1]-c[0])/l}Am(i,(function(t){var n=t.get("boxWidth");w["t"](n)||(n=[n,n]),s.push([Object(ii["o"])(n[0],e)||0,Object(ii["o"])(n[1],e)||0])}));var u=.8*e-2,h=u/o*.3,d=(u-h*(o-1))/o,p=d/2-u/2;Am(i,(function(t,e){r.push(p),p+=h+d,a.push(Math.min(Math.max(d,s[e][0]),s[e][1]))}))}function km(t,e,n){var i=t.coordinateSystem,o=t.getData(),a=n/2,r="horizontal"===t.get("layout")?0:1,s=1-r,l=["x","y"],c=o.mapDimension(l[r]),u=o.mapDimensionsAll(l[s]);if(!(null==c||u.length<5))for(var h=0;h<o.count();h++){var d=o.get(c,h),p=b(d,u[2],h),g=b(d,u[0],h),f=b(d,u[1],h),y=b(d,u[3],h),v=b(d,u[4],h),m=[];x(m,f,!1),x(m,y,!0),m.push(g,f,v,y),_(m,g),_(m,v),_(m,p),o.setItemLayout(h,{initBaseline:p[s],ends:m})}function b(t,n,a){var l,c=o.get(n,a),u=[];return u[r]=t,u[s]=c,isNaN(t)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u),l[r]+=e),l}function x(t,e,n){var i=e.slice(),o=e.slice();i[r]+=a,o[r]-=a,n?t.push(i,o):t.push(o,i)}function _(t,e){var n=e.slice(),i=e.slice();n[r]-=a,i[r]+=a,t.push(n,i)}}function Lm(t,e){e=e||{};for(var n=[],i=[],o=e.boundIQR,a="none"===o||0===o,r=0;r<t.length;r++){var s=Object(ii["c"])(t[r].slice()),l=Object(ii["p"])(s,.25),c=Object(ii["p"])(s,.5),u=Object(ii["p"])(s,.75),h=s[0],d=s[s.length-1],p=(null==o?1.5:o)*(u-l),g=a?h:Math.max(h,l-p),f=a?d:Math.min(d,u+p),y=e.itemNameFormatter,v=Object(w["w"])(y)?y({value:r}):Object(w["C"])(y)?y.replace("{value}",r+""):r+"";n.push([v,g,l,c,u,f]);for(var m=0;m<s.length;m++){var b=s[m];if(b<g||b>f){var x=[v,b];i.push(x)}}}return{boxData:n,outliers:i}}var Pm={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==fe["c"]){var n="";0,Object(qd["c"])(n)}var i=Lm(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Nm(t){t.registerSeriesModel(xm),t.registerChartView(jm),t.registerLayout(Cm),t.registerTransform(Pm)}var Em=["color","borderColor"],Rm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){wn["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,o=e.getLayout("isSimpleBox"),a=t.get("clip",!0),r=t.coordinateSystem,s=r.getArea&&r.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var r=e.getItemLayout(n);if(a&&Gm(s,r))return;var l=Bm(r,n,!0);On["c"](l,{shape:{points:r.ends}},t,n),Hm(l,e,n,o),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(r,l){var c=n.getItemGraphicEl(l);if(e.hasValue(r)){var u=e.getItemLayout(r);a&&Gm(s,u)?i.remove(c):(c?(On["h"](c,{shape:{points:u.ends}},t,r),Object(On["g"])(c)):c=Bm(u,r),Hm(c,e,r,o),i.add(c),e.setItemGraphicEl(r,c))}else i.remove(c)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),Xm(t,this.group);var e=t.get("clip",!0)?ri(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,i=e.getData(),o=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var a=i.getItemLayout(n),r=Bm(a,n);Hm(r,i,n,o),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},e.prototype._incrementalRenderLarge=function(t,e){Xm(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(ti["a"]),zm=function(){function t(){}return t}(),Vm=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new zm},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(h["b"]);function Bm(t,e,n){var i=t.ends;return new Vm({shape:{points:n?Fm(i,t):i},z2:100})}function Gm(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function Hm(t,e,n,i){var o=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,Object(Sn["I"])(t,o)}function Fm(t,e){return w["H"](t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var Wm=function(){function t(){}return t}(),Ym=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return Object(le["a"])(e,t),e.prototype.getDefaultShape=function(){return new Wm},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e}(h["b"]);function Xm(t,e,n,i){var o=t.getData(),a=o.getLayout("largePoints"),r=new Ym({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(r);var s=new Ym({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Ym({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});e.add(l),Zm(1,r,t,o),Zm(-1,s,t,o),Zm(0,l,t,o),i&&(r.incremental=!0,s.incremental=!0),n&&n.push(r,s)}function Zm(t,e,n,i){var o=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(o=n.get(["itemStyle","borderColorDoji"]));var a=n.getModel("itemStyle").getItemStyle(Em);e.useStyle(a),e.style.fill=null,e.style.stroke=o}var Um=Rm,qm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(le["a"])(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(vn["b"]);Object(w["K"])(qm,mm,!0);var Km=qm;function Jm(t){t&&w["t"](t.series)&&w["k"](t.series,(function(t){w["A"](t)&&"k"===t.type&&(t.type="candlestick")}))}var $m=["itemStyle","borderColor"],Qm=["itemStyle","borderColor0"],tb=["itemStyle","borderColorDoji"],eb=["itemStyle","color"],nb=["itemStyle","color0"],ib={seriesType:"candlestick",plan:Object(Ai["a"])(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?eb:nb)}function i(t,e){return e.get(0===t?tb:t>0?$m:Qm)}if(!e.isSeriesFiltered(t)){var o=t.pipelineContext.large;return!o&&{progress:function(t,e){var o;while(null!=(o=t.next())){var a=e.getItemModel(o),r=e.getItemLayout(o).sign,s=a.getItemStyle();s.fill=n(r,a),s.stroke=i(r,a)||s.fill;var l=e.ensureUniqueItemVisual(o,"style");Object(w["m"])(l,s)}}}}}},ob=ib,ab={seriesType:"candlestick",plan:Object(Ai["a"])(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=sb(t,n),o=0,a=1,r=["x","y"],s=n.getDimensionIndex(n.mapDimension(r[o])),l=Object(w["H"])(n.mapDimensionsAll(r[a]),n.getDimensionIndex,n),c=l[0],u=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?g:p};function p(t,n){var r,l=n.getStore();while(null!=(r=t.next())){var p=l.get(s,r),g=l.get(c,r),f=l.get(u,r),y=l.get(h,r),v=l.get(d,r),m=Math.min(g,f),b=Math.max(g,f),x=j(m,p),_=j(b,p),O=j(y,p),w=j(v,p),S=[];A(S,_,0),A(S,x,1),S.push(D(w),D(_),D(O),D(x));var M=n.getItemModel(r),I=!!M.get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:rb(l,r,g,f,u,I),initBaseline:g>f?_[a]:x[a],ends:S,brushRect:C(y,v,p)})}function j(t,n){var i=[];return i[o]=n,i[a]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function A(t,e,n){var a=e.slice(),r=e.slice();a[o]=Object(wn["subPixelOptimize"])(a[o]+i/2,1,!1),r[o]=Object(wn["subPixelOptimize"])(r[o]-i/2,1,!0),n?t.push(a,r):t.push(r,a)}function C(t,e,n){var r=j(t,n),s=j(e,n);return r[o]-=i/2,s[o]-=i/2,{x:r[0],y:r[1],width:a?i:s[0]-r[0],height:a?s[1]-r[1]:i}}function D(t){return t[o]=Object(wn["subPixelOptimize"])(t[o],1),t}}function g(n,i){var r,l,p=Gn(4*n.count),g=0,f=[],y=[],v=i.getStore(),m=!!t.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var b=v.get(s,l),x=v.get(c,l),_=v.get(u,l),O=v.get(h,l),w=v.get(d,l);isNaN(b)||isNaN(O)||isNaN(w)?(p[g++]=NaN,g+=3):(p[g++]=rb(v,l,x,_,u,m),f[o]=b,f[a]=O,r=e.dataToPoint(f,null,y),p[g++]=r?r[0]:NaN,p[g++]=r?r[1]:NaN,f[a]=w,r=e.dataToPoint(f,null,y),p[g++]=r?r[1]:NaN)}i.setLayout("largePoints",p)}}};function rb(t,e,n,i,o,a){var r;return r=n>i?-1:n<i?1:a?0:e>0?t.get(o,e-1)<=i?1:-1:1,r}function sb(t,e){var n,i=t.getBaseAxis(),o="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),a=Object(ii["o"])(Object(w["P"])(t.get("barMaxWidth"),o),o),r=Object(ii["o"])(Object(w["P"])(t.get("barMinWidth"),1),o),s=t.get("barWidth");return null!=s?Object(ii["o"])(s,o):Math.max(Math.min(o/2,a),r)}var lb=ab;function cb(t){t.registerChartView(Um),t.registerSeriesModel(Km),t.registerPreprocessor(Jm),t.registerVisual(ob),t.registerLayout(lb)}function ub(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var hb=function(t){function e(e,n){var i=t.call(this)||this,o=new Dn(e,n),a=new bn["a"];return i.add(o),i.add(a),i.updateData(e,n),i}return Object(le["a"])(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),a=0;a<i;a++){var r=Object(mn["a"])(e,-1,-1,2,2,n);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/i*t.period+t.effectOffset;r.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),r.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),o.add(r)}ub(o,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var a=i[o];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}ub(n,t)},e.prototype.highlight=function(){Object(Sn["r"])(this)},e.prototype.downplay=function(){Object(Sn["C"])(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var o=this.childAt(1),a=t.getItemModel(e),r=t.getItemVisual(e,"symbol"),s=Object(mn["c"])(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),c=l&&l.fill,u=a.getModel("emphasis");o.setScale(s),o.traverse((function(t){t.setStyle("fill",c)}));var h=Object(mn["b"])(t.getItemVisual(e,"symbolOffset"),s);h&&(o.x=h[0],o.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=a.get(["rippleEffect","scale"]),p.brushType=a.get(["rippleEffect","brushType"]),p.period=1e3*a.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=r,p.color=c,p.rippleEffectColor=a.get(["rippleEffect","color"]),p.rippleNumber=a.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Object(Sn["J"])(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(bn["a"]),db=hb,pb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(){this._symbolDraw=new Nn(db)},e.prototype.render=function(t,e,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var o=Ci("").reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Zr["a"](e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(ti["a"]),gb=pb,fb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){return yn(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(vn["b"]),yb=fb;function vb(t){t.registerChartView(gb),t.registerSeriesModel(yb),t.registerLayout(Ci("effectScatter"))}var mb=function(t){function e(e,n,i){var o=t.call(this)||this;return o.add(o.createLine(e,n,i)),o._updateEffectSymbol(e,n),o}return Object(le["a"])(e,t),e.prototype.createLine=function(t,e,n){return new Eg(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),o=i.get("symbolSize"),a=i.get("symbol");w["t"](o)||(o=[o,o]);var r=t.getItemVisual(e,"style"),s=i.get("color")||r&&r.stroke,l=this.childAt(1);this._symbolType!==a&&(this.remove(l),l=Object(mn["a"])(a,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=o[0],l.scaleY=o[1],l.setColor(s),this._symbolType=a,this._symbolScale=o,this._updateEffectAnimation(t,i,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),a=1e3*e.get("period"),r=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),c=w["O"](e.get("delay"),(function(e){return e/t.count()*a/3}));if(i.ignore=!0,this._updateAnimationPoints(i,o),l>0&&(a=this._getLineLength(i)/l*1e3),a!==this._period||r!==this._loop||s!==this._roundTrip){i.stopAnimation();var u=void 0;u=w["w"](c)?c(n):c,i.__t>0&&(u=-a*i.__t),this._animateSymbol(i,a,u,r,s)}this._period=a,this._loop=r,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,o){if(e>0){t.__t=0;var a=this,r=t.animate("",i).when(o?2*e:e,{__t:o?2:1}).delay(n).during((function(){a._updateSymbolPosition(t)}));i||r.done((function(){a.remove(t)})),r.start()}},e.prototype._getLineLength=function(t){return Ur["f"](t.__p1,t.__cp1)+Ur["f"](t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,a=[t.x,t.y],r=a.slice(),s=Yn["h"],l=Yn["i"];a[0]=s(e[0],i[0],n[0],o),a[1]=s(e[1],i[1],n[1],o);var c=t.__t<1?l(e[0],i[0],n[0],o):l(n[0],i[0],e[0],1-o),u=t.__t<1?l(e[1],i[1],n[1],o):l(n[1],i[1],e[1],1-o);t.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*Ur["f"](r,a),1===o&&(a[0]=r[0]+(a[0]-r[0])/2,a[1]=r[1]+(a[1]-r[1])/2)):1===t.__lastT?t.scaleY=2*Ur["f"](e,a):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=a[0],t.y=a[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(bn["a"]),bb=mb,xb=function(t){function e(e,n,i){var o=t.call(this)||this;return o._createPolyline(e,n,i),o}return Object(le["a"])(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),o=new Wo["a"]({shape:{points:i}});this.add(o),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,o=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};On["h"](o,a,i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),o=t.getItemModel(e),a=n&&n.emphasisLineStyle,r=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var c=o.getModel("emphasis");a=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),r=c.get("focus"),s=c.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var u=i.ensureState("emphasis");u.style=a,Object(Sn["J"])(this,r,s,l)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},e}(bn["a"]),_b=xb,Ob=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return Object(le["a"])(e,t),e.prototype.createLine=function(t,e,n){return new _b(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,o=1;o<e.length;o++){var a=e[o-1],r=e[o];i+=Ur["f"](a,r),n.push(i)}if(0!==i){for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var a,r=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(r+1,o-1);for(a=s;a>=0;a--)if(i[a]<=e)break;a=Math.min(a,o-2)}else{for(a=r;a<o;a++)if(i[a]>e)break;a=Math.min(a-1,o-2)}var l=(e-i[a])/(i[a+1]-i[a]),c=n[a],u=n[a+1];t.x=c[0]*(1-l)+l*u[0],t.y=c[1]*(1-l)+l*u[1];var h=t.__t<1?u[0]-c[0]:c[0]-u[0],d=t.__t<1?u[1]-c[1]:c[1]-u[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},e}(bb),wb=Ob,Sb=n("9680"),Mb=n("68ab"),Ib=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),jb=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(le["a"])(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ib},e.prototype.buildPath=function(t,e){var n,i=e.segs,o=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var a=i[n++];if(a>0){t.moveTo(i[n++],i[n++]);for(var r=1;r<a;r++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],c=i[n++],u=i[n++];if(t.moveTo(s,l),o>0){var h=(s+c)/2-(l-u)*o,d=(l+u)/2-(c-s)*o;t.quadraticCurveTo(h,d,c,u)}else t.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,o=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var r=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var c=i[s++],u=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(Sb["a"](c,u,d,p,a,t,e))return r}r++}else for(r=0,s=0;s<i.length;){c=i[s++],u=i[s++],d=i[s++],p=i[s++];if(o>0){var g=(c+d)/2-(u-p)*o,f=(u+p)/2-(d-c)*o;if(Mb["a"](c,u,g,f,d,p,a,t,e))return r}else if(Sb["a"](c,u,d,p,a,t,e))return r;r++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var o=this.hoverDataIdx=this.findDataIndex(t,e);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,o=1/0,a=-1/0,r=-1/0,s=0;s<n.length;){var l=n[s++],c=n[s++];i=Math.min(l,i),a=Math.max(l,a),o=Math.min(c,o),r=Math.max(c,r)}t=this._rect=new pa["a"](i,o,a,r)}return t},e}(h["b"]),Ab=function(){function t(){this.group=new bn["a"]}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),o=n&&n.shape.segs;if(o&&o.length<2e4){var a=o.length,r=new Float32Array(a+i.length);r.set(o),r.set(i,a),n.setShape({segs:r})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new jb({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var o=e.getVisual("style");o&&o.stroke&&t.setStyle("stroke",o.stroke),t.setStyle("fill",null);var a=Object(Se["a"])(t);a.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){a.dataIndex=null;var n=t.hoverDataIdx;n>0&&(a.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Cb=Ab,Db={seriesType:"lines",plan:Object(Ai["a"])(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(o,a){var r=[];if(i){var s=void 0,l=o.end-o.start;if(n){for(var c=0,u=o.start;u<o.end;u++)c+=t.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var h=0,d=[];for(u=o.start;u<o.end;u++){var p=t.getLineCoords(u,r);n&&(s[h++]=p);for(var g=0;g<p;g++)d=e.dataToPoint(r[g],!1,d),s[h++]=d[0],s[h++]=d[1]}a.setLayout("linesPoints",s)}else for(u=o.start;u<o.end;u++){var f=a.getItemModel(u),y=(p=t.getLineCoords(u,r),[]);if(n)for(var v=0;v<p;v++)y.push(e.dataToPoint(r[v]));else{y[0]=e.dataToPoint(r[0]),y[1]=e.dataToPoint(r[1]);var m=f.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}a.setItemLayout(u,y)}}}}}},Tb=Db,kb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t),a=t.get("zlevel"),r=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(a).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&r>0&&(l||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(r/10+.9,1),0)})),o.updateData(i);var c=t.get("clip",!0)&&ri(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var a=Tb.reset(t,e,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),o=!!e.get("polyline"),a=e.pipelineContext,r=a.large;return n&&i===this._hasEffet&&o===this._isPolyline&&r===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=r?new Cb:new Hg(o?i?wb:_b:i?bb:Eg),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=r),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(ti["a"]),Lb=kb,Pb="undefined"===typeof Uint32Array?Array:Uint32Array,Nb="undefined"===typeof Float64Array?Array:Float64Array;function Eb(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(w["H"])(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Object(w["J"])([n,t[0],t[1]])})))}var Rb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(le["a"])(e,t),e.prototype.init=function(e){e.data=e.data||[],Eb(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(Eb(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(w["e"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(w["e"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o<i;o++)e[o]=e[o]||[],e[o][0]=this._flatCoords[n+2*o],e[o][1]=this._flatCoords[n+2*o+1];return i}var a=this._getCoordsFromItemModel(t);for(o=0;o<a.length;o++)e[o]=e[o]||[],e[o][0]=a[o][0],e[o][1]=a[o][1];return a.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(w["z"])(t[0])){for(var n=t.length,i=new Pb(n),o=new Nb(n),a=0,r=0,s=0,l=0;l<n;){s++;var c=t[l++];i[r++]=a+e,i[r++]=c;for(var u=0;u<c;u++){var h=t[l++],d=t[l++];o[a++]=h,o[a++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,r),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new qe(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,o){if(t instanceof Array)return NaN;n.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[o]:a:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=i.getItemModel(t),a=o.get("name");if(a)return a;var r=o.get("fromName"),s=o.get("toName"),l=[];return null!=r&&l.push(r),null!=s&&l.push(s),Object(jl["c"])("nameValue",{name:l.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(vn["b"]),zb=Rb;function Vb(t){return t instanceof Array||(t=[t,t]),t}var Bb={seriesType:"lines",reset:function(t){var e=Vb(t.get("symbol")),n=Vb(t.get("symbolSize")),i=t.getData();function o(t,e){var n=t.getItemModel(e),i=Vb(n.getShallow("symbol",!0)),o=Vb(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),o[0]&&t.setItemVisual(e,"fromSymbolSize",o[0]),o[1]&&t.setItemVisual(e,"toSymbolSize",o[1])}return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?o:null}}},Gb=Bb;function Hb(t){t.registerChartView(Lb),t.registerSeriesModel(zb),t.registerLayout(Tb),t.registerVisual(Gb)}var Fb=256,Wb=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=lt["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,o,a){var r=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),d=t.length;u.width=e,u.height=n;for(var p=0;p<d;++p){var g=t[p],f=g[0],y=g[1],v=g[2],m=i(v);h.globalAlpha=m,h.drawImage(r,f-c,y-c)}if(!u.width||!u.height)return u;var b=h.getImageData(0,0,u.width,u.height),x=b.data,_=0,O=x.length,w=this.minOpacity,S=this.maxOpacity,M=S-w;while(_<O){m=x[_+3]/256;var I=4*Math.floor(m*(Fb-1));if(m>0){var j=a(m)?s:l;m>0&&(m=m*M+w),x[_++]=j[I],x[_++]=j[I+1],x[_++]=j[I+2],x[_++]=j[I+3]*m*256}else _+=4}return h.putImageData(b,0,0),u},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=lt["d"].createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,r=0;r<256;r++)t[e](r/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i},t}(),Yb=Wb;function Xb(t,e,n){var i=t[1]-t[0];e=w["H"](e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var o=e.length,a=0;return function(t){var i;for(i=a;i<o;i++){var r=e[i].interval;if(r[0]<=t&&t<=r[1]){a=i;break}}if(i===o)for(i=a-1;i>=0;i--){r=e[i].interval;if(r[0]<=t&&t<=r[1]){a=i;break}}return i>=0&&i<o&&n[i]}}function Zb(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function Ub(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var qb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):Ub(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var o=e.coordinateSystem;o&&(Ub(o)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){wn["traverseElements"](this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){var a,r,s,l,c=t.coordinateSystem,u=si(c,"cartesian2d");if(u){var h=c.getAxis("x"),d=c.getAxis("y");0,a=h.getBandWidth()+.5,r=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,g=t.getData(),f=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),b=Object(jn["e"])(t),x=t.getModel("emphasis"),_=x.get("focus"),O=x.get("blurScope"),w=x.get("disabled"),S=u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=n;M<i;M++){var I=void 0,j=g.getItemVisual(M,"style");if(u){var A=g.get(S[0],M),C=g.get(S[1],M);if(isNaN(g.get(S[2],M))||isNaN(A)||isNaN(C)||A<s[0]||A>s[1]||C<l[0]||C>l[1])continue;var D=c.dataToPoint([A,C]);I=new ei["a"]({shape:{x:D[0]-a/2,y:D[1]-r/2,width:a,height:r},style:j})}else{if(isNaN(g.get(S[1],M)))continue;I=new ei["a"]({z2:1,shape:c.dataToRect([g.get(S[0],M)]).contentShape,style:j})}if(g.hasItemOption){var T=g.getItemModel(M),k=T.getModel("emphasis");f=k.getModel("itemStyle").getItemStyle(),y=T.getModel(["blur","itemStyle"]).getItemStyle(),v=T.getModel(["select","itemStyle"]).getItemStyle(),m=T.get(["itemStyle","borderRadius"]),_=k.get("focus"),O=k.get("blurScope"),w=k.get("disabled"),b=Object(jn["e"])(T)}I.shape.r=m;var L=t.getRawValue(M),P="-";L&&null!=L[2]&&(P=L[2]+""),Object(jn["g"])(I,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:j.opacity,defaultText:P}),I.ensureState("emphasis").style=f,I.ensureState("blur").style=y,I.ensureState("select").style=v,Object(Sn["J"])(I,_,O,w),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(t,e,n,i){var o=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,r=e.getData(),s=this._hmLayer||this._hmLayer||new Yb;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),c=t.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),h=Math.max(l.y,0),p=Math.min(l.width+l.x,i.getWidth()),g=Math.min(l.height+l.y,i.getHeight()),f=p-u,y=g-h,v=[r.mapDimension("lng"),r.mapDimension("lat"),r.mapDimension("value")],m=r.mapArray(v,(function(e,n,i){var o=t.dataToPoint([e,n]);return o[0]-=u,o[1]-=h,o.push(i),o})),b=n.getExtent(),x="visualMap.continuous"===n.type?Zb(b,n.option.range):Xb(b,n.getPieceList(),n.option.selected);s.update(m,f,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:a.color.getColorMapper()},x);var _=new d["a"]({style:{width:f,height:y,x:u,y:h,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(ti["a"]),Kb=qb,Jb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){return yn(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=en["a"].get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(vn["b"]),$b=Jb;function Qb(t){t.registerChartView(Kb),t.registerSeriesModel($b)}var tx=["itemStyle","borderWidth"],ex=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],nx=new Pl["a"],ix=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group,o=t.getData(),a=this._data,r=t.coordinateSystem,s=r.getBaseAxis(),l=s.isHorizontal(),c=r.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:r,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:ex[+l],categoryDim:ex[1-+l]};o.diff(a).add((function(t){if(o.hasValue(t)){var e=fx(o,t),n=ox(o,t,e,u),a=mx(o,u,n);o.setItemGraphicEl(t,a),i.add(a),Sx(a,u,n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(o.hasValue(t)){var r=fx(o,t),s=ox(o,t,r,u),l=_x(o,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),o.setItemGraphicEl(t,null),n=null),n?bx(n,u,s):n=mx(o,u,s,!0),o.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),Sx(n,u,s)}else i.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&xx(a,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var h=t.get("clip",!0)?ri(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){xx(i,Object(Se["a"])(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(ti["a"]);function ox(t,e,n,i){var o=t.getItemLayout(e),a=n.get("symbolRepeat"),r=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:e,layout:o,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:r,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};ax(n,a,o,i,d),sx(t,e,o,a,r,d.boundingLength,d.pxSign,u,i,d),lx(n,d.symbolScale,c,i,d);var p=d.symbolSize,g=Object(mn["b"])(n.get("symbolOffset"),p);return cx(n,p,o,a,r,g,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function ax(t,e,n,i,o){var a,r=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[r.wh]<=0);if(w["t"](s)){var h=[rx(l,s[0])-c,rx(l,s[1])-c];h[1]<h[0]&&h.reverse(),a=h[u]}else a=null!=s?rx(l,s)-c:e?i.coordSysExtent[r.index][u]-c:n[r.wh];o.boundingLength=a,e&&(o.repeatCutLength=n[r.wh]),o.pxSign=a>0?1:-1}function rx(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function sx(t,e,n,i,o,a,r,s,l,c){var u,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),g=t.getItemVisual(e,"symbolSize");u=w["t"](g)?g.slice():null==g?["100%","100%"]:[g,g],u[d.index]=Object(ii["o"])(u[d.index],p),u[h.index]=Object(ii["o"])(u[h.index],i?p:Math.abs(a)),c.symbolSize=u;var f=c.symbolScale=[u[0]/s,u[1]/s];f[h.index]*=(l.isHorizontal?-1:1)*r}function lx(t,e,n,i,o){var a=t.get(tx)||0;a&&(nx.attr({scaleX:e[0],scaleY:e[1],rotation:n}),nx.updateTransform(),a/=nx.getLineScale(),a*=e[i.valueDim.index]),o.valueLineWidth=a||0}function cx(t,e,n,i,o,a,r,s,l,c,u,h){var d=u.categoryDim,p=u.valueDim,g=h.pxSign,f=Math.max(e[p.index]+s,0),y=f;if(i){var v=Math.abs(l),m=w["O"](t.get("symbolMargin"),"15%")+"",b=!1;m.lastIndexOf("!")===m.length-1&&(b=!0,m=m.slice(0,m.length-1));var x=Object(ii["o"])(m,e[p.index]),_=Math.max(f+2*x,0),O=b?0:2*x,S=Object(ii["i"])(i),M=S?i:Mx((v+O)/_),I=v-M*f;x=I/2/(b?M:Math.max(M-1,1)),_=f+2*x,O=b?0:2*x,S||"fixed"===i||(M=c?Mx((Math.abs(c)+O)/_):0),y=M*_-O,h.repeatTimes=M,h.symbolMargin=x}var j=g*(y/2),A=h.pathPosition=[];A[d.index]=n[d.wh]/2,A[p.index]="start"===r?j:"end"===r?l-j:l/2,a&&(A[0]+=a[0],A[1]+=a[1]);var C=h.bundlePosition=[];C[d.index]=n[d.xy],C[p.index]=n[p.xy];var D=h.barRectShape=w["m"]({},n);D[p.wh]=g*Math.max(Math.abs(n[p.wh]),Math.abs(A[p.index]+j)),D[d.wh]=n[d.wh];var T=h.clipShape={};T[d.xy]=-n[d.xy],T[d.wh]=u.ecSize[d.wh],T[p.xy]=0,T[p.wh]=n[p.wh]}function ux(t){var e=t.symbolPatternSize,n=Object(mn["a"])(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function hx(t,e,n,i){var o=t.__pictorialBundle,a=n.symbolSize,r=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,c=n.repeatTimes||0,u=0,h=a[e.valueDim.index]+r+2*n.symbolMargin;for(Ox(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=c,u<c?wx(t,null,g(u),n,i):wx(t,null,{scaleX:0,scaleY:0},n,i,(function(){o.remove(t)})),u++}));u<c;u++){var d=ux(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,o.add(d);var p=g(u);wx(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function g(t){var e=s.slice(),i=n.pxSign,o=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(o=c-1-t),e[l.index]=h*(o-c/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function dx(t,e,n,i){var o=t.__pictorialBundle,a=t.__pictorialMainPath;a?wx(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(a=t.__pictorialMainPath=ux(n),o.add(a),wx(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function px(t,e,n){var i=w["m"]({},e.barRectShape),o=t.__pictorialBarRect;o?wx(o,null,{shape:i},e,n):(o=t.__pictorialBarRect=new ei["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.disableMorphing=!0,t.add(o))}function gx(t,e,n,i){if(n.symbolClip){var o=t.__pictorialClipPath,a=w["m"]({},n.clipShape),r=e.valueDim,s=n.animationModel,l=n.dataIndex;if(o)On["h"](o,{shape:a},s,l);else{a[r.wh]=0,o=new ei["a"]({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var c={};c[r.wh]=n.clipShape[r.wh],wn[i?"updateProps":"initProps"](o,{shape:c},s,l)}}}function fx(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=yx,n.isAnimationEnabled=vx,n}function yx(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function vx(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function mx(t,e,n,i){var o=new bn["a"],a=new bn["a"];return o.add(a),o.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?hx(o,e,n):dx(o,e,n),px(o,n,i),gx(o,e,n,i),o.__pictorialShapeStr=_x(t,n),o.__pictorialSymbolMeta=n,o}function bx(t,e,n){var i=n.animationModel,o=n.dataIndex,a=t.__pictorialBundle;On["h"](a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,o),n.symbolRepeat?hx(t,e,n,!0):dx(t,e,n,!0),px(t,n,!0),gx(t,e,n,!0)}function xx(t,e,n,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var a=[];Ox(i,(function(t){a.push(t)})),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),w["k"](a,(function(t){On["e"](t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function _x(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Ox(t,e,n){w["k"](t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function wx(t,e,n,i,o,a){e&&t.attr(e),i.symbolClip&&!o?n&&t.attr(n):n&&wn[o?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function Sx(t,e,n){var i=n.dataIndex,o=n.itemModel,a=o.getModel("emphasis"),r=a.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),c=o.getShallow("cursor"),u=a.get("focus"),h=a.get("blurScope"),p=a.get("scale");Ox(t,(function(t){if(t instanceof d["a"]){var e=t.style;t.useStyle(w["m"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=r,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,c&&(t.cursor=c),t.z2=n.z2}));var g=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,Object(jn["g"])(f,Object(jn["e"])(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Mn(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:g}),Object(Sn["J"])(t,u,h,a.get("disabled"))}function Mx(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Ix=ix,jx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Object(Ki["d"])(qi.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(qi),Ax=jx;function Cx(t){t.registerChartView(Ix),t.registerSeriesModel(Ax),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(w["h"])(Fi,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Wi("pictorialBar"))}var Dx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),o=this,a=this.group,r=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(t){return t.name}a.x=0,a.y=l.y+c[0];var h=new pe(this._layersSeries||[],r,u,u),d=[];function p(e,n,s){var l=o._layers;if("remove"!==e){for(var c,u,h=[],p=[],g=r[n].indices,f=0;f<g.length;f++){var y=i.getItemLayout(g[f]),v=y.x,m=y.y0,b=y.y;h.push(v,m),p.push(v,m+b),c=i.getItemVisual(g[f],"style")}var x=i.getItemLayout(g[0]),_=t.getModel("label"),O=_.get("margin"),w=t.getModel("emphasis");if("add"===e){var S=d[n]=new bn["a"];u=new Qn({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(u),a.add(S),t.isAnimationEnabled()&&u.setClipPath(Tx(u.getBoundingRect(),t,(function(){u.removeClipPath()})))}else{S=l[s];u=S.childAt(0),a.add(S),d[n]=S,On["h"](u,{shape:{points:h,stackedOnPoints:p}},t),Object(On["g"])(u)}Object(jn["g"])(u,Object(jn["e"])(t),{labelDataIndex:g[f-1],defaultText:i.getName(g[f-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var M=u.getTextContent();M&&(M.x=x.x-O,M.y=x.y0+x.y/2),u.useStyle(c),i.setItemGraphicEl(n,u),Object(Sn["I"])(u,t),Object(Sn["J"])(u,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else a.remove(l[n])}h.add(Object(w["c"])(p,this,"add")).update(Object(w["c"])(p,this,"update")).remove(Object(w["c"])(p,this,"remove")).execute(),this._layersSeries=r,this._layers=d},e.type="themeRiver",e}(ti["a"]);function Tx(t,e,n){var i=new ei["a"]({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return On["c"](i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}var kx=Dx,Lx=2,Px=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new aa(w["c"](this.getData,this),w["c"](this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=Object(we["j"])(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),o=[];i.buckets.each((function(t,e){o.push({name:e,dataList:t})}));for(var a=o.length,r=0;r<a;++r){for(var s=o[r].name,l=0;l<o[r].dataList.length;++l){var c=o[r].dataList[l][0]+"";n[c]=r}for(var c in n)n.hasOwnProperty(c)&&n[c]!==r&&(n[c]=r,t[e]=[c,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",we["b"]).models[0],i=n.get("type"),o=w["n"](t.data,(function(t){return void 0!==t[2]})),a=this.fixData(o||[]),r=[],s=this.nameMap=w["f"](),l=0,c=0;c<a.length;++c)r.push(a[c][Lx]),s.get(a[c][Lx])||(s.set(a[c][Lx],l),l++);var u=Je(a,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:be(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new qe(u,this);return h.initData(a),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var o=t.mapDimension("single"),a=Object(we["j"])(n,(function(e){return t.get("name",e)})),r=[];return a.buckets.each((function(e,n){e.sort((function(e,n){return t.get(o,e)-t.get(o,n)})),r.push({name:n,indices:e})})),r},e.prototype.getAxisTooltipData=function(t,e,n){w["t"](t)||(t=t?[t]:[]);for(var i,o=this.getData(),a=this.getLayerSeries(),r=[],s=a.length,l=0;l<s;++l){for(var c=Number.MAX_VALUE,u=-1,h=a[l].indices.length,d=0;d<h;++d){var p=o.get(t[0],a[l].indices[d]),g=Math.abs(p-e);g<=c&&(i=p,c=g,u=a[l].indices[d])}r.push(u)}return{dataIndices:r,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=i.getName(t),a=i.get(i.mapDimension("value"),t);return Object(jl["c"])("nameValue",{name:o,value:a})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(vn["b"]),Nx=Px;function Ex(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var a=t.get("boundaryGap"),r=n.getAxis();if(i.boundaryGap=a,"horizontal"===r.orient){a[0]=ii["o"](a[0],o.height),a[1]=ii["o"](a[1],o.height);var s=o.height-a[0]-a[1];Rx(e,t,s)}else{a[0]=ii["o"](a[0],o.width),a[1]=ii["o"](a[1],o.width);var l=o.width-a[0]-a[1];Rx(e,t,l)}e.setLayout("layoutInfo",i)}))}function Rx(t,e,n){if(t.count())for(var i,o=e.coordinateSystem,a=e.getLayerSeries(),r=t.mapDimension("single"),s=t.mapDimension("value"),l=w["H"](a,(function(e){return w["H"](e.indices,(function(e){var n=o.dataToPoint(t.get(r,e));return n[1]=t.get(s,e),n}))})),c=zx(l),u=c.y0,h=n/c.max,d=a.length,p=a[0].indices.length,g=0;g<p;++g){i=u[g]*h,t.setItemLayout(a[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:i,y:l[0][g][1]*h});for(var f=1;f<d;++f)i+=l[f-1][g][1]*h,t.setItemLayout(a[f].indices[g],{layerIndex:f,x:l[f][g][0],y0:i,y:l[f][g][1]*h})}}function zx(t){for(var e=t.length,n=t[0].length,i=[],o=[],a=0,r=0;r<n;++r){for(var s=0,l=0;l<e;++l)s+=t[l][r][1];s>a&&(a=s),i.push(s)}for(var c=0;c<n;++c)o[c]=(a-i[c])/2;a=0;for(var u=0;u<n;++u){var h=i[u]+o[u];h>a&&(a=h)}return{y0:o,max:a}}function Vx(t){t.registerChartView(kx),t.registerSeriesModel(Nx),t.registerLayout(Ex),t.registerProcessor(Fo("themeRiver"))}var Bx=n("857d"),Gx=2,Hx=4,Fx=function(t){function e(e,n,i,o){var a=t.call(this)||this;a.z2=Gx,a.textConfig={inside:!0},Object(Se["a"])(a).seriesIndex=n.seriesIndex;var r=new st["a"]({z2:Hx,silent:e.getModel().get(["label","silent"])});return a.setTextContent(r),a.updateData(!0,e,n,i,o),a}return Object(le["a"])(e,t),e.prototype.updateData=function(t,e,n,i,o){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var a=this;Object(Se["a"])(a).dataIndex=e.dataIndex;var r=e.getModel(),s=r.getModel("emphasis"),l=e.getLayout(),c=w["m"]({},l);c.label=null;var u=e.getVisual("style");u.lineJoin="bevel";var h=e.getVisual("decal");h&&(u.decal=Object(_u["a"])(h,o));var d=so(r.getModel("itemStyle"),c,!0);w["m"](c,d),w["k"](Sn["g"],(function(t){var e=a.ensureState(t),n=r.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=so(n,c);i&&(e.shape=i)})),t?(a.setShape(c),a.shape.r=l.r0,On["c"](a,{shape:{r:l.r}},n,e.dataIndex)):(On["h"](a,{shape:c},n),Object(On["g"])(a)),a.useStyle(u),this._updateLabel(n);var p=r.getShallow("cursor");p&&a.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=s.get("focus"),f="ancestor"===g?e.getAncestorsIndices():"descendant"===g?e.getDescendantIndices():g;Object(Sn["J"])(this,f,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),a=o.endAngle-o.startAngle,r=(o.startAngle+o.endAngle)/2,s=Math.cos(r),l=Math.sin(r),c=this,u=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(a)<d);function g(t,e){var n=t.get(e);return null==n?i.get(e):n}u.ignore=!p,w["k"](Sn["a"],(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,f=p?u:u.ensureState(i),y=t.getFormattedLabel(h,i);p&&(y=y||e.node.name),f.style=Object(jn["c"])(d,{},null,"normal"!==i,!0),y&&(f.style.text=y);var v=d.get("show");null==v||p||(f.ignore=!v);var m,b=g(d,"position"),x=p?c:c.states[i],_=x.style.fill;x.textConfig={outsideFill:"inherit"===d.get("color")?_:null,inside:"outside"!==b};var O=g(d,"distance")||0,S=g(d,"align"),M=g(d,"rotate"),I=.5*Math.PI,j=1.5*Math.PI,A=Object(Bx["a"])("tangential"===M?Math.PI/2-r:r),C=A>I&&!Object(ii["j"])(A-I)&&A<j;"outside"===b?(m=o.r+O,S=C?"right":"left"):S&&"center"!==S?"left"===S?(m=o.r0+O,S=C?"right":"left"):"right"===S&&(m=o.r-O,S=C?"left":"right"):(m=a===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,S="center"),f.style.align=S,f.style.verticalAlign=g(d,"verticalAlign")||"middle",f.x=m*s+o.cx,f.y=m*l+o.cy;var D=0;"radial"===M?D=Object(Bx["a"])(-r)+(C?Math.PI:0):"tangential"===M?D=Object(Bx["a"])(Math.PI/2-r)+(C?Math.PI:0):w["z"](M)&&(D=M*Math.PI/180),f.rotation=Object(Bx["a"])(D)})),u.dirtyStyle()},e}(ni["a"]),Wx=Fx,Yx="sunburstRootToNode",Xx="sunburstHighlight",Zx="sunburstUnhighlight";function Ux(t){t.registerAction({type:Yx,update:"updateView"},(function(t,e){function n(e,n){var i=nd(t,[Yx],e);if(i){var o=e.getViewRoot();o&&(t.direction=od(o,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:Xx,update:"none"},(function(t,e,n){function i(e){var n=nd(t,[Xx],e);n&&(t.dataIndex=n.node.dataIndex)}t=Object(w["m"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i),n.dispatchAction(Object(w["m"])(t,{type:"highlight"}))})),t.registerAction({type:Zx,update:"updateView"},(function(t,e,n){t=Object(w["m"])({},t),n.dispatchAction(Object(w["m"])(t,{type:"downplay"}))}))}var qx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=e;var a=t.getData(),r=a.tree.root,s=t.getViewRoot(),l=this.group,c=t.get("renderLabelForZeroData"),u=[];s.eachNode((function(t){u.push(t)}));var h=this._oldChildren||[];function d(t,e){function n(t){return t.getId()}function i(n,i){var o=null==n?null:t[n],a=null==i?null:e[i];p(o,a)}0===t.length&&0===e.length||new pe(e,t,n,n).add(i).update(i).remove(w["h"](i,null)).execute()}function p(i,o){if(c||!i||i.getValue()||(i=null),i!==r&&o!==r)if(o&&o.piece)i?(o.piece.updateData(!1,i,t,e,n),a.setItemGraphicEl(i.dataIndex,o.piece)):g(o);else if(i){var s=new Wx(i,t,e,n);l.add(s),a.setItemGraphicEl(i.dataIndex,s)}}function g(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function f(i,a){a.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,i,t,e,n):(o.virtualPiece=new Wx(i,t,e,n),l.add(o.virtualPiece)),a.piece.off("click"),o.virtualPiece.on("click",(function(t){o._rootToNode(a.parentNode)}))):o.virtualPiece&&(l.remove(o.virtualPiece),o.virtualPiece=null)}d(u,h),f(r,s),this._initEvents(),this._oldChildren=u},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var o=i.getModel().get("nodeClick");if("rootToNode"===o)t._rootToNode(i);else if("link"===o){var a=i.getModel(),r=a.get("link");if(r){var s=a.get("target",!0)||"_blank";Object(li["i"])(r,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Yx,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(o*o+a*a);return r<=i.r&&r>=i.r0}},e.type="sunburst",e}(ti["a"]),Kx=qx,Jx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return Object(le["a"])(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};$x(n);var i=this._levelModels=w["H"](t.levels||[],(function(t){return new ce["a"](t,this,e)}),this),o=ed.createTree(n,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=o.getNodeByDataIndex(e),a=i[n.depth];return a&&(t.parentModel=a),t}))}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=ad(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){md(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(vn["b"]);function $x(t){var e=0;w["k"](t.children,(function(t){$x(t);var n=t.value;w["t"](n)&&(n=n[0]),e+=n}));var n=t.value;w["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),w["t"](t.value)?t.value[0]=n:t.value=n}var Qx=Jx,t_=Math.PI/180;function e_(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");w["t"](i)||(i=[0,i]),w["t"](e)||(e=[e,e]);var o=n.getWidth(),a=n.getHeight(),r=Math.min(o,a),s=Object(ii["o"])(e[0],o),l=Object(ii["o"])(e[1],a),c=Object(ii["o"])(i[0],r/2),u=Object(ii["o"])(i[1],r/2),h=-t.get("startAngle")*t_,d=t.get("minAngle")*t_,p=t.getData().tree.root,g=t.getViewRoot(),f=g.depth,y=t.get("sort");null!=y&&n_(g,y);var v=0;w["k"](g.children,(function(t){!isNaN(t.getValue())&&v++}));var m=g.getValue(),b=Math.PI/(m||v)*2,x=g.depth>0,_=g.height-(x?-1:1),O=(u-c)/(_||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,j=function(e,n){if(e){var i=n;if(e!==p){var o=e.getValue(),a=0===m&&M?b:o*b;a<d&&(a=d),i=n+I*a;var u=e.depth-f-(x?-1:1),h=c+O*u,g=c+O*(u+1),y=t.getLevelModel(e);if(y){var v=y.get("r0",!0),_=y.get("r",!0),A=y.get("radius",!0);null!=A&&(v=A[0],_=A[1]),null!=v&&(h=Object(ii["o"])(v,r/2)),null!=_&&(g=Object(ii["o"])(_,r/2))}e.setLayout({angle:a,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:h,r:g})}if(e.children&&e.children.length){var C=0;w["k"](e.children,(function(t){C+=j(t,n+C)}))}return i-n}};if(x){var A=c,C=c+O,D=2*Math.PI;p.setLayout({angle:D,startAngle:h,endAngle:h+D,clockwise:S,cx:s,cy:l,r0:A,r:C})}j(g,h)}))}function n_(t,e){var n=t.children||[];t.children=i_(n,e),n.length&&w["k"](t.children,(function(t){n_(t,e)}))}function i_(t,e){if(w["w"](e)){var n=w["H"](t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),w["H"](n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}function o_(t){var e={};function n(t,n,i){var o=t;while(o&&o.depth>1)o=o.parentNode;var a=n.getColorFromPalette(o.name||o.dataIndex+"",e);return t.depth>1&&Object(w["C"])(a)&&(a=Object(ct["c"])(a,(t.depth-1)/(i-1)*.5)),a}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(o){var a=o.getModel(),r=a.getModel("itemStyle").getItemStyle();r.fill||(r.fill=n(o,t,i.root.height));var s=e.ensureUniqueItemVisual(o.dataIndex,"style");Object(w["m"])(s,r)}))}))}function a_(t){t.registerChartView(Kx),t.registerSeriesModel(Qx),t.registerLayout(Object(w["h"])(e_,"sunburst")),t.registerProcessor(Object(w["h"])(Fo,"sunburst")),t.registerVisual(o_),Ux(t)}var r_={color:"fill",borderColor:"stroke"},s_={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},l_=Object(we["o"])(),c_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return yn(null,this)},e.prototype.getDataParams=function(e,n,i){var o=t.prototype.getDataParams.call(this,e,n);return i&&(o.info=l_(i).info),o},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(vn["b"]),u_=c_;function h_(t,e){return e=e||[0,0],w["H"](["x","y"],(function(n,i){var o=this.getAxis(n),a=e[i],r=t[i]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-r)-o.dataToCoord(a+r))}),this)}function d_(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:w["c"](h_,t)}}}function p_(t,e){return e=e||[0,0],w["H"]([0,1],(function(n){var i=e[n],o=t[n]/2,a=[],r=[];return a[n]=i-o,r[n]=i+o,a[1-n]=r[1-n]=e[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(r)[n])}),this)}function g_(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:w["c"](p_,t)}}}function f_(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,o=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}function y_(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:Object(w["c"])(f_,t)}}}function v_(t,e){return e=e||[0,0],w["H"](["Radius","Angle"],(function(n,i){var o="get"+n+"Axis",a=this[o](),r=e[i],s=t[i]/2,l="category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(r-s)-a.dataToCoord(r+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function m_(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 o=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),r=t.coordToPoint([o,a]);return r.push(o,a*Math.PI/180),r},size:w["c"](v_,t)}}}function b_(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 x_(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(w["q"])(t,"text")))}function __(t,e,n){var i,o,a,r=t;if("text"===e)a=r;else{a={},Object(w["q"])(r,"text")&&(a.text=r.text),Object(w["q"])(r,"rich")&&(a.rich=r.rich),Object(w["q"])(r,"textFill")&&(a.fill=r.textFill),Object(w["q"])(r,"textStroke")&&(a.stroke=r.textStroke),Object(w["q"])(r,"fontFamily")&&(a.fontFamily=r.fontFamily),Object(w["q"])(r,"fontSize")&&(a.fontSize=r.fontSize),Object(w["q"])(r,"fontStyle")&&(a.fontStyle=r.fontStyle),Object(w["q"])(r,"fontWeight")&&(a.fontWeight=r.fontWeight),o={type:"text",style:a,silent:!0},i={};var s=Object(w["q"])(r,"textPosition");n?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),Object(w["q"])(r,"textPosition")&&(i.position=r.textPosition),Object(w["q"])(r,"textOffset")&&(i.offset=r.textOffset),Object(w["q"])(r,"textRotation")&&(i.rotation=r.textRotation),Object(w["q"])(r,"textDistance")&&(i.distance=r.textDistance)}return O_(a,t),Object(w["k"])(a.rich,(function(t){O_(t,t)})),{textConfig:i,textContent:o}}function O_(t,e){e&&(e.font=e.textFont||e.font,Object(w["q"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(w["q"])(e,"textAlign")&&(t.align=e.textAlign),Object(w["q"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(w["q"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(w["q"])(e,"textWidth")&&(t.width=e.textWidth),Object(w["q"])(e,"textHeight")&&(t.height=e.textHeight),Object(w["q"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(w["q"])(e,"textPadding")&&(t.padding=e.textPadding),Object(w["q"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(w["q"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(w["q"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(w["q"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(w["q"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(w["q"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(w["q"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function w_(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 o=i.textPosition.indexOf("inside")>=0,a=t.fill||"#000";S_(i,e);var r=null==i.textFill;return o?r&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=a),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(r&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(w["k"])(e.rich,(function(t){S_(t,t)})),i}function S_(t,e){e&&(Object(w["q"])(e,"fill")&&(t.textFill=e.fill),Object(w["q"])(e,"stroke")&&(t.textStroke=e.fill),Object(w["q"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(w["q"])(e,"font")&&(t.font=e.font),Object(w["q"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(w["q"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(w["q"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(w["q"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(w["q"])(e,"align")&&(t.textAlign=e.align),Object(w["q"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(w["q"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(w["q"])(e,"width")&&(t.textWidth=e.width),Object(w["q"])(e,"height")&&(t.textHeight=e.height),Object(w["q"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(w["q"])(e,"padding")&&(t.textPadding=e.padding),Object(w["q"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(w["q"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(w["q"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(w["q"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(w["q"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(w["q"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(w["q"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(w["q"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(w["q"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(w["q"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(w["q"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var M_=n("06ad"),I_={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},j_=Object(w["F"])(I_),A_=(Object(w["N"])(X["a"],(function(t,e){return t[e]=1,t}),{}),X["a"].join(", "),["","style","shape","extra"]),C_=Object(we["o"])();function D_(t,e,n,i,o){var a=t+"Animation",r=Object(On["a"])(t,i,o)||{},s=C_(e).userDuring;return r.duration>0&&(r.during=s?Object(w["c"])(B_,{el:e,userDuring:s}):null,r.setToFinal=!0,r.scope=t),Object(w["m"])(r,n[a]),r}function T_(t,e,n,i){i=i||{};var o=i.dataIndex,a=i.isInit,r=i.clearStyle,s=n.isAnimationEnabled(),l=C_(t),c=e.style;l.userDuring=e.during;var u={},h={};if(W_(t,e,h),H_("shape",e,h),H_("extra",e,h),!a&&s&&(F_(t,e,u),G_("shape",t,e,u),G_("extra",t,e,u),Y_(t,e,c,u)),h.style=c,N_(t,h,r),R_(t,e),s)if(a){var d={};Object(w["k"])(A_,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(d[t]=d[t]||{}),Object(w["m"])(t?d[t]:d,n.enterFrom))}));var p=D_("enter",t,e,n,o);p.duration>0&&t.animateFrom(d,p)}else E_(t,e,o||0,n,u);k_(t,e),c?t.dirty():t.markRedraw()}function k_(t,e){for(var n=C_(t).leaveToProps,i=0;i<A_.length;i++){var o=A_[i],a=o?e[o]:e;a&&a.leaveTo&&(n||(n=C_(t).leaveToProps={}),o&&(n[o]=n[o]||{}),Object(w["m"])(o?n[o]:n,a.leaveTo))}}function L_(t,e,n,i){if(t){var o=t.parent,a=C_(t).leaveToProps;if(a){var r=D_("update",t,e,n,0);r.done=function(){o.remove(t),i&&i()},t.animateTo(a,r)}else o.remove(t),i&&i()}}function P_(t){return"all"===t}function N_(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var o=t.animators,a=0;a<o.length;a++){var r=o[a];"style"===r.targetName&&r.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}function E_(t,e,n,i,o){if(o){var a=D_("update",t,e,i,n);a.duration>0&&t.animateFrom(o,a)}}function R_(t,e){Object(w["q"])(e,"silent")&&(t.silent=e.silent),Object(w["q"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof Ou["c"]&&Object(w["q"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof h["b"]&&Object(w["q"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var z_={},V_={setTransform:function(t,e){return z_.el[t]=e,this},getTransform:function(t){return z_.el[t]},setShape:function(t,e){var n=z_.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=z_.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=z_.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=z_.el.style;if(e)return e[t]},setExtra:function(t,e){var n=z_.el.extra||(z_.el.extra={});return n[t]=e,this},getExtra:function(t){var e=z_.el.extra;if(e)return e[t]}};function B_(){var t=this,e=t.el;if(e){var n=C_(e).userDuring,i=t.userDuring;n===i?(z_.el=e,i(V_)):t.el=t.userDuring=null}}function G_(t,e,n,i){var o=n[t];if(o){var a,r=e[t];if(r){var s=n.transition,l=o.transition;if(l)if(!a&&(a=i[t]={}),P_(l))Object(w["m"])(a,r);else for(var c=Object(we["r"])(l),u=0;u<c.length;u++){var h=c[u],d=r[h];a[h]=d}else if(P_(s)||Object(w["r"])(s,t)>=0){!a&&(a=i[t]={});var p=Object(w["F"])(r);for(u=0;u<p.length;u++){h=p[u],d=r[h];X_(o[h],d)&&(a[h]=d)}}}}}function H_(t,e,n){var i=e[t];if(i)for(var o=n[t]={},a=Object(w["F"])(i),r=0;r<a.length;r++){var s=a[r];o[s]=Object(M_["a"])(i[s])}}function F_(t,e,n){for(var i=e.transition,o=P_(i)?X["a"]:Object(we["r"])(i||[]),a=0;a<o.length;a++){var r=o[a];if("style"!==r&&"shape"!==r&&"extra"!==r){var s=t[r];0,n[r]=s}}}function W_(t,e,n){for(var i=0;i<j_.length;i++){var o=j_[i],a=I_[o],r=e[o];r&&(n[a[0]]=r[0],n[a[1]]=r[1])}for(i=0;i<X["a"].length;i++){var s=X["a"][i];null!=e[s]&&(n[s]=e[s])}}function Y_(t,e,n,i){if(n){var o,a=t.style;if(a){var r=n.transition,s=e.transition;if(r&&!P_(r)){var l=Object(we["r"])(r);!o&&(o=i.style={});for(var c=0;c<l.length;c++){var u=l[c],h=a[u];o[u]=h}}else if(t.getAnimationStyleProps&&(P_(s)||P_(r)||Object(w["r"])(s,"style")>=0)){var d=t.getAnimationStyleProps(),p=d?d.style:null;if(p){!o&&(o=i.style={});var g=Object(w["F"])(n);for(c=0;c<g.length;c++){u=g[c];if(p[u]){h=a[u];o[u]=h}}}}}}}function X_(t,e){return Object(w["u"])(t)?t!==e:null!=t&&isFinite(t)}var Z_=Object(we["o"])(),U_=["percent","easing","shape","style","extra"];function q_(t){t.stopAnimation("keyframe"),t.attr(Z_(t))}function K_(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(w["t"])(e))Object(w["k"])(e,(function(e){K_(t,e,n)}));else{var i=e.keyframes,o=e.duration;if(n&&null==o){var a=Object(On["a"])("enter",n,0);o=a&&a.duration}if(i&&o){var r=Z_(t);Object(w["k"])(A_,(function(n){if(!n||t[n]){var a;i.sort((function(t,e){return t.percent-e.percent})),Object(w["k"])(i,(function(i){var s=t.animators,l=n?i[n]:i;if(l){var c=Object(w["F"])(l);if(n||(c=Object(w["n"])(c,(function(t){return Object(w["r"])(U_,t)<0}))),c.length){a||(a=t.animate(n,e.loop,!0),a.scope="keyframe");for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(c);n&&(r[n]=r[n]||{});var h=n?r[n]:r;Object(w["k"])(c,(function(e){h[e]=((n?t[n]:t)||{})[e]})),a.whenWithKeys(o*i.percent,l,c,i.easing)}}})),a&&a.delay(e.delay||0).duration(o).start(e.easing)}}))}}}var J_="emphasis",$_="normal",Q_="blur",tO="select",eO=[$_,J_,Q_,tO],nO={normal:["itemStyle"],emphasis:[J_,"itemStyle"],blur:[Q_,"itemStyle"],select:[tO,"itemStyle"]},iO={normal:["label"],emphasis:[J_,"label"],blur:[Q_,"label"],select:[tO,"label"]},oO=["x","y"],aO="e\0\0",rO={normal:{},emphasis:{},blur:{},select:{}},sO={cartesian2d:d_,geo:g_,single:y_,polar:m_,calendar:b_};function lO(t){return t instanceof h["b"]}function cO(t){return t instanceof Ou["c"]}function uO(t,e){e.copyTransform(t),cO(e)&&cO(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,lO(e)&&lO(t)&&e.setShape(t.shape))}var hO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var o=this._data,a=t.getData(),r=this.group,s=mO(t,a,e,n);o||r.removeAll(),a.diff(o).add((function(e){xO(n,null,e,s(e,i),t,r,a)})).remove((function(e){var n=o.getItemGraphicEl(e);n&&L_(n,l_(n).option,t)})).update((function(e,l){var c=o.getItemGraphicEl(l);xO(n,c,e,s(e,i),t,r,a)})).execute();var l=t.get("clip",!0)?ri(t.coordinateSystem,!1,t):null;l?r.setClipPath(l):r.removeClipPath(),this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,o){var a=e.getData(),r=mO(e,a,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var u=xO(null,null,c,r(c,o),e,this.group,a);u&&(u.traverse(l),s.push(u))}},e.prototype.eachRendered=function(t){wn["traverseElements"](this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var o=e.element;if(null==o||n.name===o)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===o)return!0;return!1},e.type="custom",e}(ti["a"]),dO=hO;function pO(t){var e,n=t.type;if("path"===n){var i=t.shape,o=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,a=PO(i);e=wn["makePath"](a,null,o,i.layout||"center"),l_(e).customPathData=a}else if("image"===n)e=new d["a"]({}),l_(e).customImagePath=t.style.image;else if("text"===n)e=new st["a"]({});else if("group"===n)e=new bn["a"];else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var r=wn["getShapeClass"](n);if(!r){var s="";0,Object(qd["c"])(s)}e=new r}return l_(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function gO(t,e,n,i,o,a,r){q_(e);var s=o&&o.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=oO);var l=i&&i.style;if(l){if("text"===e.type){var c=l;Object(w["q"])(c,"textFill")&&(c.fill=c.textFill),Object(w["q"])(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,h=lO(e)?l.decal:null;t&&h&&(h.dirty=!0,u=Object(_u["a"])(h,t)),l.__decalPattern=u}if(cO(e)&&l){u=l.__decalPattern;u&&(l.decal=u)}T_(e,i,a,{dataIndex:n,isInit:r,clearStyle:!0}),K_(e,i.keyframeAnimation,a)}function fO(t,e,n,i,o){var a=e.isGroup?null:e,r=o&&o[t].cfg;if(a){var s=a.ensureState(t);if(!1===i){var l=a.getState(t);l&&(l.style=null)}else s.style=i||null;r&&(s.textConfig=r),Object(Sn["G"])(a)}}function yO(t,e,n){if(!t.isGroup){var i=t,o=n.currentZ,a=n.currentZLevel;i.z=o,i.zlevel=a;var r=e.z2;null!=r&&(i.z2=r||0);for(var s=0;s<eO.length;s++)vO(i,e,eO[s])}}function vO(t,e,n){var i,o=n===$_,a=o?e:IO(e,n),r=a?a.z2:null;null!=r&&(i=o?t:t.ensureState(n),i.z2=r||0)}function mO(t,e,n,i){var o=t.get("renderItem"),a=t.coordinateSystem,r={};a&&(r=a.prepareCustoms?a.prepareCustoms(a):sO[a.type](a));for(var s,l,c=Object(w["i"])({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:x,style:O,ordinalRawValue:_,styleEmphasis:S,visual:j,barLayout:A,currentSeriesIndices:C,font:D},r.api||{}),u={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:r.coordSys,dataInsideLength:e.count(),encode:bO(t.getData())},h={},d={},p={},g={},f=0;f<eO.length;f++){var y=eO[f];p[y]=t.getModel(nO[y]),g[y]=t.getModel(iO[y])}function v(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function m(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=v(t).getModel(nO[n])):v(t).getModel(nO[n]):p[n]}function b(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=v(t).getModel(iO[n])):v(t).getModel(iO[n]):g[n]}return function(t,n){return s=t,l=null,h={},d={},o&&o(Object(w["i"])({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},u),c)};function x(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)}function _(t,n){null==n&&(n=s),t=t||0;var i=e.getDimensionInfo(t);if(!i){var o=e.getDimensionIndex(t);return o>=0?e.getStore().get(o,n):void 0}var a=e.get(i.name,n),r=i&&i.ordinalMeta;return r?r.categories[a]:a}function O(n,i){null==i&&(i=s);var o=e.getItemVisual(i,"style"),a=o&&o.fill,r=o&&o.opacity,l=m(i,$_).getItemStyle();null!=a&&(l.fill=a),null!=r&&(l.opacity=r);var c={inheritColor:Object(w["C"])(a)?a:"#000"},u=b(i,$_),h=jn["c"](u,null,c,!1,!0);h.text=u.getShallow("show")?Object(w["P"])(t.getFormattedLabel(i,$_),Mn(e,i)):null;var d=jn["b"](u,c,!1);return I(n,l),l=w_(l,h,d),n&&M(l,n),l.legacy=!0,l}function S(n,i){null==i&&(i=s);var o=m(i,J_).getItemStyle(),a=b(i,J_),r=jn["c"](a,null,null,!0,!0);r.text=a.getShallow("show")?Object(w["Q"])(t.getFormattedLabel(i,J_),t.getFormattedLabel(i,$_),Mn(e,i)):null;var l=jn["b"](a,null,!0);return I(n,o),o=w_(o,r,l),n&&M(o,n),o.legacy=!0,o}function M(t,e){for(var n in e)Object(w["q"])(e,n)&&(t[n]=e[n])}function I(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function j(t,n){if(null==n&&(n=s),Object(w["q"])(r_,t)){var i=e.getItemVisual(n,"style");return i?i[r_[t]]:null}if(Object(w["q"])(s_,t))return e.getItemVisual(n,t)}function A(t){if("cartesian2d"===a.type){var e=a.getBaseAxis();return Ri(Object(w["i"])({axis:e},t))}}function C(){return n.getCurrentSeriesIndices()}function D(t){return jn["d"](t,n)}}function bO(t){var e={};return Object(w["k"])(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var o=i.coordDim,a=e[o]=e[o]||[];a[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function xO(t,e,n,i,o,a,r){if(i){var s=_O(t,e,n,i,o,a);return s&&r.setItemGraphicEl(n,s),s&&Object(Sn["J"])(s,i.focus,i.blurScope,i.emphasisDisabled),s}a.remove(e)}function _O(t,e,n,i,o,a){var r=-1,s=e;e&&OO(e,i,o)&&(r=Object(w["r"])(a.childrenRef(),e),e=null);var l=!e,c=e;c?c.clearStates():(c=pO(i),s&&uO(s,c)),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),rO.normal.cfg=rO.normal.conOpt=rO.emphasis.cfg=rO.emphasis.conOpt=rO.blur.cfg=rO.blur.conOpt=rO.select.cfg=rO.select.conOpt=null,rO.isLegacy=!1,SO(c,n,i,o,l,rO),wO(c,n,i,o,l),gO(t,c,n,i,rO,o,l),Object(w["q"])(i,"info")&&(l_(c).info=i.info);for(var u=0;u<eO.length;u++){var h=eO[u];if(h!==$_){var d=IO(i,h),p=jO(i,d,h);fO(h,c,d,p,rO)}}return yO(c,i,o),"group"===i.type&&AO(t,c,n,i,o),r>=0?a.replaceAt(c,r):a.add(c),c}function OO(t,e,n){var i=l_(t),o=e.type,a=e.shape,r=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&NO(a)&&PO(a)!==i.customPathData||"image"===o&&Object(w["q"])(r,"image")&&r.image!==i.customImagePath}function wO(t,e,n,i,o){var a=n.clipPath;if(!1===a)t&&t.getClipPath()&&t.removeClipPath();else if(a){var r=t.getClipPath();r&&OO(r,a,i)&&(r=null),r||(r=pO(a),t.setClipPath(r)),gO(null,r,e,a,null,i,o)}}function SO(t,e,n,i,o,a){if(!t.isGroup){MO(n,null,a),MO(n,J_,a);var r=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,c=a.select.conOpt;if(null!=r||null!=s||null!=c||null!=l){var u=t.getTextContent();if(!1===r)u&&t.removeTextContent();else{r=a.normal.conOpt=r||{type:"text"},u?u.clearStates():(u=pO(r),t.setTextContent(u)),gO(null,u,e,r,null,i,o);for(var h=r&&r.style,d=0;d<eO.length;d++){var p=eO[d];if(p!==$_){var g=a[p].conOpt;fO(p,u,g,jO(r,g,p),null)}}h?u.dirty():u.markRedraw()}}}}function MO(t,e,n){var i=e?IO(t,e):t,o=e?jO(t,i,J_):t.style,a=t.type,r=i?i.textConfig:null,s=t.textContent,l=s?e?IO(s,e):s:null;if(o&&(n.isLegacy||x_(o,a,!!r,!!l))){n.isLegacy=!0;var c=__(o,a,!e);!r&&c.textConfig&&(r=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!e&&l){var u=l;!u.type&&(u.type="text")}var h=e?n[e]:n.normal;h.cfg=r,h.conOpt=l}function IO(t,e){return e?t?t[e]:null:t}function jO(t,e,n){var i=e&&e.style;return null==i&&n===J_&&t&&(i=t.styleEmphasis),i}function AO(t,e,n,i,o){var a=i.children,r=a?a.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(r||l||c)if(l)DO({api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:n,seriesModel:o,group:e});else{c&&e.removeAll();for(var u=0;u<r;u++){var h=a[u],d=e.childAt(u);h?(null==h.ignore&&(h.ignore=!1),_O(t,d,n,h,o,e)):d.ignore=!0}for(var p=e.childCount()-1;p>=u;p--){var g=e.childAt(p);CO(e,g,o)}}}function CO(t,e,n){e&&L_(e,l_(t).option,n)}function DO(t){new pe(t.oldChildren,t.newChildren,TO,TO,t).add(kO).update(kO).remove(LO).execute()}function TO(t,e){var n=t&&t.name;return null!=n?n:aO+e}function kO(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,o=null!=e?n.oldChildren[e]:null;_O(n.api,o,n.dataIndex,i,n.seriesModel,n.group)}function LO(t){var e=this.context,n=e.oldChildren[t];n&&L_(n,l_(n).option,e.seriesModel)}function PO(t){return t&&(t.pathData||t.d)}function NO(t){return t&&(Object(w["q"])(t,"pathData")||Object(w["q"])(t,"d"))}function EO(t){t.registerChartView(dO),t.registerSeriesModel(u_)}var RO=Object(we["o"])(),zO=w["d"],VO=w["c"],BO=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var r=this._group,s=this._handle;if(!a||"hide"===a)return r&&r.hide(),void(s&&s.hide());r&&r.show(),s&&s.show();var l={};this.makeElOption(l,o,t,e,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(t,e);if(r){var h=w["h"](GO,e,u);this.updatePointerEl(r,l,h),this.updateLabelEl(r,l,h,e)}else r=this._group=new bn["a"],this.createPointerEl(r,l,t,e),this.createLabelEl(r,l,t,e),n.getZr().add(r);YO(r,e,!0),this._renderHandle(o)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,o="category"===i.type,a=e.get("snap");if(!a&&!o)return!1;if("auto"===n||null==n){var r=this.animationThreshold;if(o&&i.getBandWidth()>r)return!0;if(a){var s=tl(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>r}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,o){},t.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;if(o){var a=RO(t).pointerEl=new wn[o.type](zO(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var o=RO(t).labelEl=new st["a"](zO(e.label));t.add(o),FO(o,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=RO(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var o=RO(t).labelEl;o&&(o.setStyle(e.label.style),n(o,{x:e.label.x,y:e.label.y}),FO(o,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,a=n.getModel("handle"),r=n.get("status");if(!a.get("show")||!r||"hide"===r)return o&&i.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=wn["createIcon"](a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Xl["g"](t.event)},onmousedown:VO(this._onHandleDragMove,this,0,0),drift:VO(this._onHandleDragMove,this),ondragend:VO(this._onHandleDragEnd,this)}),i.add(o)),YO(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");w["t"](s)||(s=[s,s]),o.scaleX=s[0]/2,o.scaleY=s[1]/2,Qi["b"](this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){GO(this._axisPointerModel,!e&&this._moveAnimation,this._handle,WO(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(WO(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(WO(i)),RO(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Qi["a"](this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function GO(t,e,n,i){HO(RO(n).lastProp,i)||(RO(n).lastProp=i,e?On["h"](n,i,t):(n.stopAnimation(),n.attr(i)))}function HO(t,e){if(w["A"](t)&&w["A"](e)){var n=!0;return w["k"](e,(function(e,i){n=n&&HO(t[i],e)})),!!n}return t===e}function FO(t,e){t[e.get(["label","show"])?"show":"hide"]()}function WO(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function YO(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)}))}var XO=BO;function ZO(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 UO(t,e,n,i,o){var a=n.get("value"),r=KO(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=li["g"](s.get("padding")||0),c=s.getFont(),u=p["d"](r,c),h=o.position,d=u.width+l[1]+l[3],g=u.height+l[0]+l[2],f=o.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var y=o.verticalAlign;"bottom"===y&&(h[1]-=g),"middle"===y&&(h[1]-=g/2),qO(h,d,g,i);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Object(jn["c"])(s,{text:r,font:c,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function qO(t,e,n,i){var o=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,o)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function KO(t,e,n,i,o){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:o.precision}),r=o.formatter;if(r){var s={value:zr(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w["k"](i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,o=e&&e.getDataParams(i);o&&s.seriesData.push(o)})),w["C"](r)?a=r.replace("{value}",a):w["w"](r)&&(a=r(s))}return a}function JO(t,e,n){var i=Zr["c"]();return Zr["g"](i,i,n.rotation),Zr["i"](i,i,n.position),wn["applyTransform"]([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function $O(t,e,n,i,o,a){var r=Xs.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),UO(e,i,o,a,{position:JO(i.axis,t,n),align:r.textAlign,verticalAlign:r.textVerticalAlign})}function QO(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function tw(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function ew(t,e,n,i,o,a){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:a,clockwise:!0}}var nw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var a=n.axis,r=a.grid,s=i.get("type"),l=iw(r,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var u=ZO(i),h=ow[s](a,c,l);h.style=u,t.graphicKey=h.type,t.pointer=h}var d=Os(r.model,n);$O(e,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,e,n){var i=Os(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=JO(e.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,a=o.grid,r=o.getGlobalExtent(!0),s=iw(a,o).getOtherAxis(o).getGlobalExtent(),l="x"===o.dim?0:1,c=[t.x,t.y];c[l]+=e[l],c[l]=Math.min(r[1],c[l]),c[l]=Math.max(r[0],c[l]);var u=(s[1]+s[0])/2,h=[u,u];h[l]=c[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(XO);function iw(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var ow={line:function(t,e,n){var i=QO([e,n[0]],[e,n[1]],aw(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:tw([e-i/2,n[0]],[i,o],aw(t))}}};function aw(t){return"x"===t.dim?0:1}var rw=nw,sw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Oa["a"]),lw=sw,cw=n("22d1"),uw=Object(we["o"])(),hw=w["k"];function dw(t,e,n){if(!cw["a"].node){var i=e.getZr();uw(i).records||(uw(i).records={}),pw(i,e);var o=uw(i).records[t]||(uw(i).records[t]={});o.handler=n}}function pw(t,e){function n(n,i){t.on(n,(function(n){var o=vw(e);hw(uw(t).records,(function(t){t&&i(t,n,o.dispatchAction)})),gw(o.pendings,e)}))}uw(t).initialized||(uw(t).initialized=!0,n("click",w["h"](yw,"click")),n("mousemove",w["h"](yw,"mousemove")),n("globalout",fw))}function gw(t,e){var n,i=t.showTip.length,o=t.hideTip.length;i?n=t.showTip[i-1]:o&&(n=t.hideTip[o-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function fw(t,e,n){t.handler("leave",null,n)}function yw(t,e,n,i){e.handler(t,n,i)}function vw(t){var e={showTip:[],hideTip:[]},n=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function mw(t,e){if(!cw["a"].node){var n=e.getZr(),i=(uw(n).records||{})[t];i&&(uw(n).records[t]=null)}}var bw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";dw("axisPointer",n,(function(t,e,n){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){mw("axisPointer",e)},e.prototype.dispose=function(t,e){mw("axisPointer",e)},e.type="axisPointer",e}(_a["a"]),xw=bw;function _w(t,e){var n,i=[],o=t.seriesIndex;if(null==o||!(n=e.getSeriesByIndex(o)))return{point:[]};var a=n.getData(),r=we["u"](a,t);if(null==r||r<0||w["t"](r))return{point:[]};var s=a.getItemGraphicEl(r),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(r)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),h=u.dim,d=c.dim,p="x"===h||"radius"===h?1:0,g=a.mapDimension(d),f=[];f[p]=a.get(g,r),f[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),r),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(a.getValues(w["H"](l.dimensions,(function(t){return a.mapDimension(t)})),r))||[];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}}var Ow=Object(we["o"])();function ww(t,e,n){var i=t.currTrigger,o=[t.x,t.y],a=t,r=t.dispatchAction||Object(w["c"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Lw(o)&&(o=_w({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Lw(o),c=a.axesInfo,u=s.axesInfo,h="leave"===i||Lw(o),d={},p={},g={list:[],map:{}},f={showPointer:Object(w["h"])(Iw,p),showTooltip:Object(w["h"])(jw,g)};Object(w["k"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(o);Object(w["k"])(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,a=Tw(c,t);if(!h&&n&&(!c||a)){var r=a&&a.value;null!=r||l||(r=i.pointToData(o)),null!=r&&Sw(t,r,f,!1,d)}}))}));var y={};return Object(w["k"])(u,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(w["k"])(n.axesInfo,(function(e,i){var o=p[i];if(e!==t&&o){var a=o.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,kw(e),kw(t)))),y[t.key]=a}}))})),Object(w["k"])(y,(function(t,e){Sw(u[e],t,f,!0,d)})),Aw(p,u,d),Cw(g,o,t,r),Dw(u,r,n),d}}function Sw(t,e,n,i,o){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var r=Mw(e,t),s=r.payloadBatch,l=r.snapToValue;s[0]&&null==o.seriesIndex&&Object(w["m"])(o,s[0]),!i&&t.snap&&a.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,r,l)}else n.showPointer(t,e)}function Mw(t,e){var n=e.axis,i=n.dim,o=t,a=[],r=Number.MAX_VALUE,s=-1;return Object(w["k"])(e.seriesModels,(function(e,l){var c,u,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);u=d.dataIndices,c=d.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!u.length)return;c=e.getData().get(h[0],u[0])}if(null!=c&&isFinite(c)){var p=t-c,g=Math.abs(p);g<=r&&((g<r||p>=0&&s<0)&&(r=g,s=p,o=c,a.length=0),Object(w["k"])(u,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:o}}function Iw(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function jw(t,e,n,i){var o=n.payloadBatch,a=e.axis,r=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&o.length){var l=e.coordSys.model,c=il(l),u=t.map[c];u||(u=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:r.componentIndex,axisType:r.type,axisId:r.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function Aw(t,e,n){var i=n.axesInfo=[];Object(w["k"])(e,(function(e,n){var o=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(o.status="show"),o.value=a.value,o.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(o.status="hide"),"show"===o.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:o.value})}))}function Cw(t,e,n,i){if(!Lw(e)&&t.list.length){var o=((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:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function Dw(t,e,n){var i=n.getZr(),o="axisPointerLastHighlights",a=Ow(i)[o]||{},r=Ow(i)[o]={};Object(w["k"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(w["k"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t}))}));var s=[],l=[];Object(w["k"])(a,(function(t,e){!r[e]&&l.push(t)})),Object(w["k"])(r,(function(t,e){!a[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 Tw(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 kw(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 Lw(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Pw(t){rl.registerAxisPointerClass("CartesianAxisPointer",rw),t.registerComponentModel(lw),t.registerComponentView(xw),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(w["t"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Zs(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ww)}function Nw(t){Object(l["a"])(ml),Object(l["a"])(Pw)}var Ew=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var r=a.polar,s=r.getOtherAxis(a),l=s.getExtent(),c=a.dataToCoord(e),u=i.get("type");if(u&&"none"!==u){var h=ZO(i),d=zw[u](a,r,c,l);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=Rw(e,n,i,r,p);UO(t,n,i,o,g)},e}(XO);function Rw(t,e,n,i,o){var a=e.axis,r=a.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,h=i.getRadiusAxis().getExtent();if("radius"===a.dim){var d=Zr["c"]();Zr["g"](d,d,s),Zr["i"](d,d,[i.cx,i.cy]),l=wn["applyTransform"]([r,-o],d);var p=e.getModel("axisLabel").get("rotate")||0,g=Xs.innerTextLayout(s,p*Math.PI/180,-1);c=g.textAlign,u=g.textVerticalAlign}else{var f=h[1];l=i.coordToPoint([f+o,r]);var y=i.cx,v=i.cy;c=Math.abs(l[0]-y)/f<.3?"center":l[0]>y?"left":"right",u=Math.abs(l[1]-v)/f<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var zw={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:QO(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),a=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:ew(e.cx,e.cy,i[0],i[1],(-n-o/2)*a,(o/2-n)*a)}:{type:"Sector",shape:ew(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},Vw=Ew,Bw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Oa["a"]),Gw=Bw,Hw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",we["b"]).models[0]},e.type="polarAxis",e}(Oa["a"]);w["K"](Hw,Ma);var Fw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="angleAxis",e}(Hw),Ww=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="radiusAxis",e}(Hw),Yw=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return Object(le["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(bs);Yw.prototype.dataToRadius=bs.prototype.dataToCoord,Yw.prototype.radiusToData=bs.prototype.coordToData;var Xw=Yw,Zw=Object(we["o"])(),Uw=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return Object(le["a"])(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var a=i[0],r=t.dataToCoord(a+1)-t.dataToCoord(a),s=Math.abs(r),l=p["d"](null==a?"":a+"",e.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),d=Zw(t.model),g=d.lastAutoInterval,f=d.lastTickCount;return null!=g&&null!=f&&Math.abs(g-h)<=1&&Math.abs(f-o)<=1&&g>h?h=g:(d.lastTickCount=o,d.lastAutoInterval=h),h},e}(bs);Uw.prototype.dataToAngle=bs.prototype.dataToCoord,Uw.prototype.angleToData=bs.prototype.coordToData;var qw=Uw,Kw=["radius","angle"],Jw=function(){function t(t){this.dimensions=Kw,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Xw,this._angleAxis=new qw,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),a=Math.min(o[0],o[1]),r=Math.max(o[0],o[1]);i.inverse?a=r-360:r=a+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,c=l<a?1:-1;while(l<a||l>r)l+=360*c;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,o=-Math.sin(n)*e+this.cy;return[i,o]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,o=n*n+i*i-1e-4,a=this.r,r=this.r0;return o<=a*a&&o>=r*r}}},t.prototype.convertToPixel=function(t,e,n){var i=$w(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=$w(e);return i===this?this.pointToData(n):null},t}();function $w(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var Qw=Jw;function tS(t,e,n){var i=e.get("center"),o=n.getWidth(),a=n.getHeight();t.cx=Object(ii["o"])(i[0],o),t.cy=Object(ii["o"])(i[1],a);var r=t.getRadiusAxis(),s=Math.min(o,a)/2,l=e.get("radius");null==l?l=[0,"100%"]:w["t"](l)||(l=[0,l]);var c=[Object(ii["o"])(l[0],s),Object(ii["o"])(l[1],s)];r.inverse?r.setExtent(c[1],c[0]):r.setExtent(c[0],c[1])}function eS(t,e){var n=this,i=n.getAngleAxis(),o=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();w["k"](Fr(e,"radius"),(function(t){o.scale.unionExtentFromData(e,t)})),w["k"](Fr(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),Pr(i.scale,i.model),Pr(o.scale,o.model),"category"===i.type&&!i.onBand){var a=i.getExtent(),r=360/i.scale.count();i.inverse?a[1]+=r:a[1]-=r,i.setExtent(a[0],a[1])}}function nS(t){return"angleAxis"===t.mainType}function iS(t,e){var n;if(t.type=e.get("type"),t.scale=Nr(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),nS(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),o=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,o)}e.axis=t,t.model=e}var oS={dimensions:Kw,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var o=new Qw(i+"");o.update=eS;var a=o.getRadiusAxis(),r=o.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");iS(a,s),iS(r,l),tS(o,t,e),n.push(o),t.coordinateSystem=o,o.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",we["b"]).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},aS=oS,rS=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sS(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),o=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function lS(t){var e=t.getRadiusAxis();return e.inverse?0:1}function cS(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var uS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(le["a"])(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),a=n.getTicksCoords(),r=n.getMinorTicksCoords(),s=w["H"](n.getViewLabels(),(function(t){t=w["d"](t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));cS(s),cS(a),w["k"](rS,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||hS[e](this.group,t,i,a,r,o,s)}),this)}},e.type="angleAxis",e}(rl),hS={axisLine:function(t,e,n,i,o,a){var r,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),c=Math.PI/180,u=l.getExtent(),h=lS(n),d=h?0:1,p=360===Math.abs(u[1]-u[0])?"Circle":"Arc";r=0===a[d]?new wn[p]({shape:{cx:n.cx,cy:n.cy,r:a[h],startAngle:-u[0]*c,endAngle:-u[1]*c,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Nl["a"]({shape:{cx:n.cx,cy:n.cy,r:a[h],r0:a[d]},style:s.getLineStyle(),z2:1,silent:!0}),r.style.fill=null,t.add(r)},axisTick:function(t,e,n,i,o,a){var r=e.getModel("axisTick"),s=(r.get("inside")?-1:1)*r.get("length"),l=a[lS(n)],c=w["H"](i,(function(t){return new Ls["a"]({shape:sS(n,[l,l+s],t.coord)})}));t.add(wn["mergePath"](c,{style:w["i"](r.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,o,a){if(o.length){for(var r=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(r.get("inside")?-1:1)*s.get("length"),c=a[lS(n)],u=[],h=0;h<o.length;h++)for(var d=0;d<o[h].length;d++)u.push(new Ls["a"]({shape:sS(n,[c,c+l],o[h][d].coord)}));t.add(wn["mergePath"](u,{style:w["i"](s.getModel("lineStyle").getLineStyle(),w["i"](r.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,o,a,r){var s=e.getCategories(!0),l=e.getModel("axisLabel"),c=l.get("margin"),u=e.get("triggerEvent");w["k"](r,(function(i,o){var r=l,h=i.tickValue,d=a[lS(n)],p=n.coordToPoint([d+c,i.coord]),g=n.cx,f=n.cy,y=Math.abs(p[0]-g)/d<.3?"center":p[0]>g?"left":"right",v=Math.abs(p[1]-f)/d<.3?"middle":p[1]>f?"top":"bottom";if(s&&s[h]){var m=s[h];w["A"](m)&&m.textStyle&&(r=new ce["a"](m.textStyle,l,l.ecModel))}var b=new st["a"]({silent:Xs.isLabelSilent(e),style:Object(jn["c"])(r,{x:p[0],y:p[1],fill:r.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(t.add(b),u){var x=Xs.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=i.rawLabel,Object(Se["a"])(b).eventData=x}}),this)},splitLine:function(t,e,n,i,o,a){var r=e.getModel("splitLine"),s=r.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=0;h<i.length;h++){var d=c++%l.length;u[d]=u[d]||[],u[d].push(new Ls["a"]({shape:sS(n,a,i[h].coord)}))}for(h=0;h<u.length;h++)t.add(wn["mergePath"](u[h],{style:w["i"]({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,o,a){if(o.length){for(var r=e.getModel("minorSplitLine"),s=r.getModel("lineStyle"),l=[],c=0;c<o.length;c++)for(var u=0;u<o[c].length;u++)l.push(new Ls["a"]({shape:sS(n,a,o[c][u].coord)}));t.add(wn["mergePath"](l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,o,a){if(i.length){var r=e.getModel("splitArea"),s=r.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=Math.PI/180,d=-i[0].coord*h,p=Math.min(a[0],a[1]),g=Math.max(a[0],a[1]),f=e.get("clockwise"),y=1,v=i.length;y<=v;y++){var m=y===v?i[0].coord:i[y].coord,b=c++%l.length;u[b]=u[b]||[],u[b].push(new ni["a"]({shape:{cx:n.cx,cy:n.cy,r0:p,r:g,startAngle:d,endAngle:-m*h,clockwise:f},silent:!0})),d=-m*h}for(y=0;y<u.length;y++)t.add(wn["mergePath"](u[y],{style:w["i"]({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}},dS=uS,pS=["axisLine","axisTickLabel","axisName"],gS=["splitLine","splitArea","minorSplitLine"],fS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return Object(le["a"])(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new bn["a"];this.group.add(i);var o=t.axis,a=o.polar,r=a.getAngleAxis(),s=o.getTicksCoords(),l=o.getMinorTicksCoords(),c=r.getExtent()[0],u=o.getExtent(),h=vS(a,t,c),d=new Xs(t,h);w["k"](pS,d.add,d),i.add(d.getGroup()),wn["groupTransition"](n,i,t),w["k"](gS,(function(e){t.get([e,"show"])&&!o.scale.isBlank()&&yS[e](this.group,t,a,c,u,s,l)}),this)}},e.type="radiusAxis",e}(rl),yS={splitLine:function(t,e,n,i,o,a){var r=e.getModel("splitLine"),s=r.getModel("lineStyle"),l=s.get("color"),c=0,u=n.getAngleAxis(),h=Math.PI/180,d=u.getExtent(),p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],f=0;f<a.length;f++){var y=c++%l.length;g[y]=g[y]||[],g[y].push(new wn[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[f].coord,0),startAngle:-d[0]*h,endAngle:-d[1]*h,clockwise:u.inverse}}))}for(f=0;f<g.length;f++)t.add(wn["mergePath"](g[f],{style:w["i"]({stroke:l[f%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,o,a,r){if(r.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),c=[],u=0;u<r.length;u++)for(var h=0;h<r[u].length;h++)c.push(new Pl["a"]({shape:{cx:n.cx,cy:n.cy,r:r[u][h].coord}}));t.add(wn["mergePath"](c,{style:w["i"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,o,a){if(a.length){var r=e.getModel("splitArea"),s=r.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=a[0].coord,d=1;d<a.length;d++){var p=c++%l.length;u[p]=u[p]||[],u[p].push(new ni["a"]({shape:{cx:n.cx,cy:n.cy,r0:h,r:a[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=a[d].coord}for(d=0;d<u.length;d++)t.add(wn["mergePath"](u[d],{style:w["i"]({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function vS(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var mS=fS;function bS(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function xS(t,e){return e.dim+t.model.componentIndex}function _S(t,e,n){var i={},o=OS(w["n"](e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),r=xS(n,a),s=bS(t),l=o[r][s],c=l.offset,u=l.width,h=n.getOtherAxis(a),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,g=t.get("barMinHeight")||0,f=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var y=e.mapDimension(h.dim),v=e.mapDimension(a.dim),m=cn(e,y),b="radius"!==a.dim||!t.get("roundCap",!0),x=h.model,_=x.get("startValue"),O=h.dataToCoord(_||0),w=0,S=e.count();w<S;w++){var M=e.get(y,w),I=e.get(v,w),j=M>=0?"p":"n",A=O;m&&(i[s][I]||(i[s][I]={p:O,n:O}),A=i[s][I][j]);var C=void 0,D=void 0,T=void 0,k=void 0;if("radius"===h.dim){var L=h.dataToCoord(M)-O,P=a.dataToCoord(I);Math.abs(L)<g&&(L=(L<0?-1:1)*g),C=A,D=A+L,T=P-c,k=T-u,m&&(i[s][I][j]=D)}else{var N=h.dataToCoord(M,b)-O,E=a.dataToCoord(I);Math.abs(N)<f&&(N=(N<0?-1:1)*f),C=E+c,D=C+u,T=A,k=A+N,m&&(i[s][I][j]=k)}e.setItemLayout(w,{cx:d,cy:p,r0:C,r:D,startAngle:-T*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:T>=k})}}}))}function OS(t){var e={};w["k"](t,(function(t,n){var i=t.getData(),o=t.coordinateSystem,a=o.getBaseAxis(),r=xS(o,a),s=a.getExtent(),l="category"===a.type?a.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=e[r]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;e[r]=c;var h=bS(t);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=Object(ii["o"])(t.get("barWidth"),l),p=Object(ii["o"])(t.get("barMaxWidth"),l),g=t.get("barGap"),f=t.get("barCategoryGap");d&&!u[h].width&&(d=Math.min(c.remainedWidth,d),u[h].width=d,c.remainedWidth-=d),p&&(u[h].maxWidth=p),null!=g&&(c.gap=g),null!=f&&(c.categoryGap=f)}));var n={};return w["k"](e,(function(t,e){n[e]={};var i=t.stacks,o=t.bandWidth,a=Object(ii["o"])(t.categoryGap,o),r=Object(ii["o"])(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,c=(s-a)/(l+(l-1)*r);c=Math.max(c,0),w["k"](i,(function(t,e){var n=t.maxWidth;n&&n<c&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),c=(s-a)/(l+(l-1)*r),c=Math.max(c,0);var u,h=0;w["k"](i,(function(t,e){t.width||(t.width=c),u=t,h+=t.width*(1+r)})),u&&(h-=u.width*r);var d=-h/2;w["k"](i,(function(t,i){n[e][i]=n[e][i]||{offset:d,width:t.width},d+=t.width*(1+r)}))})),n}var wS=_S,SS={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},MS={splitNumber:5},IS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="polar",e}(_a["a"]);function jS(t){Object(l["a"])(Pw),rl.registerAxisPointerClass("PolarAxisPointer",Vw),t.registerCoordinateSystem("polar",aS),t.registerComponentModel(Gw),t.registerComponentView(IS),za(t,"angle",Fw,SS),za(t,"radius",Ww,MS),t.registerComponentView(dS),t.registerComponentView(mS),t.registerLayout(Object(w["h"])(wS,"bar"))}function AS(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,o={},a=i.position,r=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=["vertical"===r?c.vertical[a]:l[0],"horizontal"===r?c.horizontal[a]:l[3]];var u={horizontal:0,vertical:1};o.rotation=Math.PI/2*u[r];var h={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=h[a],t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),w["O"](e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var d=e.rotate;return null==d&&(d=t.get(["axisLabel","rotate"])),o.labelRotation="top"===a?-d:d,o.z2=1,o}var CS=["axisLine","axisTickLabel","axisName"],DS=["splitArea","splitLine"],TS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return Object(le["a"])(e,t),e.prototype.render=function(e,n,i,o){var a=this.group;a.removeAll();var r=this._axisGroup;this._axisGroup=new bn["a"];var s=AS(e),l=new Xs(e,s);w["k"](CS,l.add,l),a.add(this._axisGroup),a.add(l.getGroup()),w["k"](DS,(function(t){e.get([t,"show"])&&kS[t](this,this.group,this._axisGroup,e)}),this),wn["groupTransition"](r,this._axisGroup,e),t.prototype.render.call(this,e,n,i,o)},e.prototype.remove=function(){cl(this)},e.type="singleAxis",e}(rl),kS={splitLine:function(t,e,n,i){var o=i.axis;if(!o.scale.isBlank()){var a=i.getModel("splitLine"),r=a.getModel("lineStyle"),s=r.get("color");s=s instanceof Array?s:[s];for(var l=r.get("width"),c=i.coordinateSystem.getRect(),u=o.isHorizontal(),h=[],d=0,p=o.getTicksCoords({tickModel:a}),g=[],f=[],y=0;y<p.length;++y){var v=o.toGlobalCoord(p[y].coord);u?(g[0]=v,g[1]=c.y,f[0]=v,f[1]=c.y+c.height):(g[0]=c.x,g[1]=v,f[0]=c.x+c.width,f[1]=v);var m=new Ls["a"]({shape:{x1:g[0],y1:g[1],x2:f[0],y2:f[1]},silent:!0});wn["subPixelOptimizeLine"](m.shape,l);var b=d++%s.length;h[b]=h[b]||[],h[b].push(m)}var x=r.getLineStyle(["color"]);for(y=0;y<h.length;++y)e.add(wn["mergePath"](h[y],{style:w["i"]({stroke:s[y%s.length]},x),silent:!0}))}},splitArea:function(t,e,n,i){ll(t,n,i,i)}},LS=TS,PS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Oa["a"]);Object(w["K"])(PS,Ma.prototype);var NS=PS,ES=function(t){function e(e,n,i,o,a){var r=t.call(this,e,n,i)||this;return r.type=o||"value",r.position=a||"bottom",r}return Object(le["a"])(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(bs),RS=ES,zS=["single"],VS=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=zS,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,o=new RS(i,Nr(t),[0,0],t.get("type"),t.get("position")),a="category"===o.type;o.onBand=a&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(w["k"])(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),Pr(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Object(Eo["g"])({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.inverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],o=t.isHorizontal();t.toGlobalCoord=o?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=o?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=BS(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=BS(e);return i===this?this.pointToData(n):null},t}();function BS(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var GS=VS;function HS(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,o){var a=new GS(i,t,e);a.name="single_"+o,a.resize(i,e),i.coordinateSystem=a,n.push(a)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",we["b"]).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var FS={create:HS,dimensions:zS},WS=FS,YS=["x","y"],XS=["width","height"],ZS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.makeElOption=function(t,e,n,i,o){var a=n.axis,r=a.coordinateSystem,s=KS(r,1-qS(a)),l=r.dataToPoint(e)[0],c=i.get("type");if(c&&"none"!==c){var u=ZO(i),h=US[c](a,l,s);h.style=u,t.graphicKey=h.type,t.pointer=h}var d=AS(n);$O(e,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,e,n){var i=AS(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=JO(e.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,a=o.coordinateSystem,r=qS(o),s=KS(a,r),l=[t.x,t.y];l[r]+=e[r],l[r]=Math.min(s[1],l[r]),l[r]=Math.max(s[0],l[r]);var c=KS(a,1-r),u=(c[1]+c[0])/2,h=[u,u];return h[r]=l[r],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(XO),US={line:function(t,e,n){var i=QO([e,n[0]],[e,n[1]],qS(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:tw([e-i/2,n[0]],[i,o],qS(t))}}};function qS(t){return t.isHorizontal()?0:1}function KS(t,e){var n=t.getRect();return[n[YS[e]],n[YS[e]]+n[XS[e]]]}var JS=ZS,$S=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="single",e}(_a["a"]);function QS(t){Object(l["a"])(Pw),rl.registerAxisPointerClass("SingleAxisPointer",JS),t.registerComponentView($S),t.registerComponentView(LS),t.registerComponentModel(NS),za(t,"single",NS,NS.defaultOption),t.registerCoordinateSystem("single",WS)}var tM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(e,n,i){var o=Object(Eo["f"])(e);t.prototype.init.apply(this,arguments),eM(e,o)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),eM(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Oa["a"]);function eM(t,e){var n,i=t.cellSize;n=w["t"](i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var o=w["H"]([0,1],(function(t){return Object(Eo["j"])(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Object(Eo["h"])(t,e,{type:"box",ignoreSize:o})}var nM=tM,iM=n("ef59"),oM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,a=o.getRangeInfo(),r=o.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,a,i),this._renderLines(t,a,r,i),this._renderYearText(t,a,r,i),this._renderMonthText(t,s,r,i),this._renderWeekText(t,s,a,r,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),r=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new ei["a"]({shape:{x:l[0],y:l[1],width:a,height:r},cursor:"default",style:o});n.add(c)}},e.prototype._renderLines=function(t,e,n,i){var o=this,a=t.coordinateSystem,r=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,u=0;c.time<=e.end.time;u++){d(c.formatedDate),0===u&&(c=a.getDateInfo(e.start.y+"-"+e.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=a.getDateInfo(h)}function d(e){o._firstDayOfMonth.push(a.getDateInfo(e)),o._firstDayPoints.push(a.dataToRect([e],!1).tl);var l=o._getLinePointsOfOneWeek(t,e,n);o._tlpoints.push(l[0]),o._blpoints.push(l[l.length-1]),s&&o._drawSplitline(l,r,i)}d(a.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),r,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),r,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-e/2,i[1][o]=i[1][o]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Wo["a"]({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),a=[],r=0;r<7;r++){var s=i.getNextNDay(o.time,r),l=i.dataToRect([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},e.prototype._formatterLabel=function(t,e){return Object(w["C"])(t)&&t?Object(li["d"])(t,e):Object(w["w"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,o){var a=e[0],r=e[1],s=["center","bottom"];"bottom"===i?(r+=o,s=["center","top"]):"left"===i?a-=o:"right"===i?(a+=o,s=["center","top"]):r-=o;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:a,y:r,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),r=o.get("position");r||(r="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,h={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=o.get("formatter"),g={start:e.start.y,end:e.end.y,nameMap:d},f=this._formatterLabel(p,g),y=new st["a"]({z2:30,style:Object(jn["c"])(o,{text:f})});y.attr(this._yearTextPositionControl(y,h[r],n,r,a)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,i,o){var a="left",r="top",s=t[0],l=t[1];return"horizontal"===n?(l+=o,e&&(a="center"),"start"===i&&(r="bottom")):(s+=o,e&&(r="middle"),"start"===i&&(a="right")),{x:s,y:l,align:a,verticalAlign:r}},e.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var a=o.get("nameMap"),r=o.get("margin"),s=o.get("position"),l=o.get("align"),c=[this._tlpoints,this._blpoints];a&&!Object(w["C"])(a)||(a&&(e=Object(iM["d"])(a)||e),a=e.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,h="horizontal"===n?0:1;r="start"===s?-r:r;for(var d="center"===l,p=0;p<c[u].length-1;p++){var g=c[u][p].slice(),f=this._firstDayOfMonth[p];if(d){var y=this._firstDayPoints[p];g[h]=(y[h]+c[0][p+1][h])/2}var v=o.get("formatter"),m=a[+f.m-1],b={yyyy:f.y,yy:(f.y+"").slice(2),MM:f.m,M:+f.m,nameMap:m},x=this._formatterLabel(v,b),_=new st["a"]({z2:30,style:Object(w["m"])(Object(jn["c"])(o,{text:x}),this._monthTextPositionControl(g,d,n,s,r))});i.add(_)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,o){var a="center",r="middle",s=t[0],l=t[1],c="start"===n;return"horizontal"===e?(s=s+i+(c?1:-1)*o[0]/2,a=c?"right":"left"):(l=l+i+(c?1:-1)*o[1]/2,r=c?"bottom":"top"),{x:s,y:l,align:a,verticalAlign:r}},e.prototype._renderWeekText=function(t,e,n,i,o){var a=t.getModel("dayLabel");if(a.get("show")){var r=t.coordinateSystem,s=a.get("position"),l=a.get("nameMap"),c=a.get("margin"),u=r.getFirstDayOfWeek();if(!l||Object(w["C"])(l)){l&&(e=Object(iM["d"])(l)||e);var h=e.get(["time","dayOfWeekShort"]);l=h||Object(w["H"])(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))}var d=r.getNextNDay(n.end.time,7-n.lweek).time,p=[r.getCellWidth(),r.getCellHeight()];c=Object(ii["o"])(c,Math.min(p[1],p[0])),"start"===s&&(d=r.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var g=0;g<7;g++){var f=r.getNextNDay(d,g),y=r.dataToRect([f.time],!1).center,v=g;v=Math.abs((g+u)%7);var m=new st["a"]({z2:30,style:Object(w["m"])(Object(jn["c"])(a,{text:l[v]}),this._weekTextPositionControl(y,i,s,c,p))});o.add(m)}}},e.type="calendar",e}(_a["a"]),aM=oM,rM=864e5,sM=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=ii["n"](t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,o=t.getDate(),a=o<10?"0"+o:""+o,r=t.getDay();return r=Math.abs((r+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:a,day:r,time:t.getTime(),formatedDate:e+"-"+i+"-"+a,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),r="horizontal"===this._orient?[n,7]:[7,n];w["k"]([0,1],(function(t){c(o,t)&&(a[i[t]]=o[t]*r[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Eo["g"](a,s);function c(t,e){return null!=t[e]&&"auto"!==t[e]}w["k"]([0,1],(function(t){c(o,t)||(o[t]=l[i[t]]/r[t])})),this._sw=o[0],this._sh=o[1]},t.prototype.dataToPoint=function(t,e){w["t"](t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+rM))return[NaN,NaN];var a=n.day,r=this._getRangeInfo([i.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]:[this._rect.x+r*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=lM(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=lM(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(w["t"](e)&&1===e.length&&(e=e[0]),w["t"](e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),o=i.date;o.setMonth(o.getMonth()+1);var a=this.getNextNDay(o,-1);t=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var r=this._getRangeInfo(t);return r.start.time>r.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/rM)-Math.floor(n[0].time/rM)+1,o=new Date(n[0].time),a=o.getDate(),r=n[1].date.getDate();o.setDate(a+i-1);var s=o.getDate();if(s!==r){var l=o.getTime()-n[1].time>0?1:-1;while((s=o.getDate())!==r&&(o.getTime()-n[1].time)*l>0)i-=l,o.setDate(s-l)}var c=Math.floor((i+n[0].day+6)/7),u=e?1-c:c-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var o=7*(t-1)-i.fweek+e,a=new Date(i.start.time);return a.setDate(+i.start.d+o),this.getDateInfo(a)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(o){var a=new t(o,e,n);i.push(a),o.coordinateSystem=a})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function lM(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var cM=sM;function uM(t){t.registerComponentModel(nM),t.registerComponentView(aM),t.registerCoordinateSystem("calendar",cM)}function hM(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function dM(t,e){var n;return w["k"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function pM(t,e,n){var i=w["m"]({},n),o=t[e],a=n.$action||"merge";"merge"===a?o?(w["I"](o,i,!0),Object(Eo["h"])(o,i,{ignoreSize:!0}),Object(Eo["c"])(n,o),yM(n,o),yM(n,o,"shape"),yM(n,o,"style"),yM(n,o,"extra"),n.clipPath=o.clipPath):t[e]=i:"replace"===a?t[e]=i:"remove"===a&&o&&(t[e]=null)}var gM=["transition","enterFrom","leaveTo"],fM=gM.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function yM(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?gM:fM,o=0;o<i.length;o++){var a=i[o];null==t[a]&&null!=e[a]&&(t[a]=e[a])}}function vM(t,e){if(t&&(t.hv=e.hv=[dM(e,["left","right"]),dM(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var mM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return Object(le["a"])(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,o=n.elements=e?[]:n.elements,a=[];this._flatten(i,a,null);var r=we["q"](o,a,"normalMerge"),s=this._elOptionsToUpdate=[];w["k"](r,(function(t,e){var n=t.newOption;n&&(s.push(n),hM(t,n),pM(o,e,n),vM(o[e],n))}),this),n.elements=w["n"](o,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){w["k"](t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Oa["a"]),bM={path:null,compoundPath:null,group:bn["a"],image:d["a"],text:st["a"]},xM=we["o"](),_M=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(){this._elMap=w["f"]()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,o=t.get("z"),a=t.get("zlevel");w["k"](e,(function(e){var r=we["e"](e.id,null),s=null!=r?n.get(r):null,l=we["e"](e.parentId,null),c=null!=l?n.get(l):i,u=e.type,h=e.style;"text"===u&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,p=e.textConfig;if(h&&x_(h,u,!!p,!!d)){var g=__(h,u,!0);!p&&g.textConfig&&(p=e.textConfig=g.textConfig),!d&&g.textContent&&(d=g.textContent)}var f=IM(e);var y=e.$action||"merge",v="merge"===y,m="replace"===y;if(v){var b=!s,x=s;b?x=wM(r,c,e.type,n):(x&&(xM(x).isNew=!1),q_(x)),x&&(T_(x,f,t,{isInit:b}),MM(x,e,o,a))}else if(m){SM(s,e,n,t);var _=wM(r,c,e.type,n);_&&(T_(_,f,t,{isInit:!0}),MM(_,e,o,a))}else"remove"===y&&(k_(s,e),SM(s,e,n,t));var O=n.get(r);if(O&&d)if(v){var w=O.getTextContent();w?w.attr(d):O.setTextContent(new st["a"](d))}else m&&O.setTextContent(new st["a"](d));if(O){var S=e.clipPath;if(S){var M=S.type,I=void 0;b=!1;if(v){var j=O.getClipPath();b=!j||xM(j).type!==M,I=b?OM(M):j}else m&&(b=!0,I=OM(M));O.setClipPath(I),T_(I,S,t,{isInit:b}),K_(I,S.keyframeAnimation,t)}var A=xM(O);O.setTextConfig(p),A.option=e,jM(O,t,e),wn["setTooltipConfig"]({el:O,componentModel:t,itemName:O.name,itemTooltipOption:e.tooltip}),K_(O,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,o=this._elMap,a=e.getWidth(),r=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var c=n[l],u=we["e"](c.id,null),h=null!=u?o.get(u):null;if(h&&h.isGroup){var d=h.parent,p=d===i,g=xM(h),f=xM(d);g.width=Object(ii["o"])(g.option.width,p?a:f.width)||0,g.height=Object(ii["o"])(g.option.height,p?r:f.height)||0}}for(l=n.length-1;l>=0;l--){c=n[l],u=we["e"](c.id,null),h=null!=u?o.get(u):null;if(h){d=h.parent,f=xM(d);var y=d===i?{width:a,height:r}:{width:f.width,height:f.height},v={},m=Eo["i"](h,c,y,null,{hv:c.hv,boundingMode:c.bounding},v);if(!xM(h).isNew&&m){for(var b=c.transition,x={},_=0;_<s.length;_++){var O=s[_],S=v[O];b&&(P_(b)||w["r"](b,O)>=0)?x[O]=S:h[O]=S}Object(On["h"])(h,x,t,0)}else h.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){SM(n,xM(n).option,e,t._lastGraphicModel)})),this._elMap=w["f"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(_a["a"]);function OM(t){var e=w["q"](bM,t)?bM[t]:wn["getShapeClass"](t);var n=new e({});return xM(n).type=t,n}function wM(t,e,n,i){var o=OM(n);return e.add(o),i.set(t,o),xM(o).id=t,xM(o).isNew=!0,o}function SM(t,e,n,i){var o=t&&t.parent;o&&("group"===t.type&&t.traverse((function(t){SM(t,e,n,i)})),L_(t,e,i),n.removeKey(xM(t).id))}function MM(t,e,n,i){t.isGroup||w["k"]([["cursor",Ou["c"].prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];w["q"](e,i)?t[i]=w["P"](e[i],n[1]):null==t[i]&&(t[i]=n[1])})),w["k"](w["F"](e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=w["w"](i)?i:null}})),w["q"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function IM(t){return t=w["m"]({},t),w["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Eo["a"]),(function(e){delete t[e]})),t}function jM(t,e,n){var i=Object(Se["a"])(t).eventData;t.silent||t.ignore||i||(i=Object(Se["a"])(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}function AM(t){t.registerComponentModel(mM),t.registerComponentView(_M),t.registerPreprocessor((function(t){var e=t.graphic;Object(w["t"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var CM=["x","y","radius","angle","single"],DM=["cartesian2d","polar","singleAxis"];function TM(t){var e=t.get("coordinateSystem");return Object(w["r"])(DM,e)>=0}function kM(t){return t+"Axis"}function LM(t,e){var n,i=Object(w["f"])(),o=[],a=Object(w["f"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){a.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",r)}while(n);function r(t){!a.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){a.set(t.uid,!0),o.push(t),c(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var o=i.get(t);o&&o[n]&&(e=!0)})),e}function c(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return o}function PM(t){var e=t.ecModel,n={infoList:[],infoMap:Object(w["f"])()};return t.eachTargetAxis((function(t,i){var o=e.getComponent(kM(t),i);if(o){var a=o.getCoordSysModel();if(a){var r=a.uid,s=n.infoMap.get(r);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(r,s)),s.axisModels.push(o)}}})),n}var NM=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),EM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(le["a"])(e,t),e.prototype.init=function(t,e,n){var i=RM(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=RM(t);Object(w["I"])(this.option,t,!0),Object(w["I"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(w["k"])([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(w["f"])(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(w["k"])(CM,(function(n){var i=this.getReferringComponents(kM(n),we["a"]);if(i.specified){e=!0;var o=new NM;Object(w["k"])(i.models,(function(t){o.add(t.componentIndex)})),t.set(n,o)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var o="vertical"===e?"y":"x",a=n.findComponents({mainType:o+"Axis"});r(a,o)}if(i){a=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});r(a,"single")}function r(e,n){var o=e[0];if(o){var a=new NM;if(a.add(o.componentIndex),t.set(n,a),i=!1,"x"===n||"y"===n){var r=o.getReferringComponents("grid",we["b"]).models[0];r&&Object(w["k"])(e,(function(t){o.componentIndex!==t.componentIndex&&r===t.getReferringComponents("grid",we["b"]).models[0]&&a.add(t.componentIndex)}))}}}i&&Object(w["k"])(CM,(function(e){if(i){var o=n.findComponents({mainType:kM(e),filter:function(t){return"category"===t.get("type",!0)}});if(o[0]){var a=new NM;a.add(o[0].componentIndex),t.set(e,a),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(w["k"])([["start","startValue"],["end","endValue"]],(function(i,o){var a=null!=t[i[0]],r=null!=t[i[1]];a&&!r?e[o]="percent":!a&&r?e[o]="value":n?e[o]=n[o]:a&&(e[o]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(kM(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(w["k"])(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(kM(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(w["k"])([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(w["k"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],a=this._targetAxisInfoMap.get(o),r=0;r<a.indexList.length;r++){var s=this.getAxisProxy(o,a.indexList[r]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Oa["a"]);function RM(t){var e={};return Object(w["k"])(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var zM=EM,VM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="dataZoom.select",e}(zM),BM=VM,GM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(_a["a"]),HM=GM,FM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="dataZoom.select",e}(HM),WM=FM,YM=w["k"],XM=ii["c"],ZM=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(TM(e)){var n=kM(this._dimName),i=e.getReferringComponents(n,we["b"]).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return w["d"](this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel(),o=i.axis.scale,a=this._dataZoomModel.getRangePropMode(),r=[0,100],s=[],l=[];YM(["start","end"],(function(i,c){var u=t[i],h=t[i+"Value"];"percent"===a[c]?(null==u&&(u=r[c]),h=o.parse(ii["k"](u,r,n))):(e=!0,h=null==h?n[c]:o.parse(h),u=ii["k"](h,n,r)),l[c]=null==h||isNaN(h)?n[c]:h,s[c]=null==u||isNaN(u)?r[c]:u})),XM(l),XM(s);var c=this._minMaxSpan;function u(t,e,n,i,a){var r=a?"Span":"ValueSpan";ly(0,t,n,"all",c["min"+r],c["max"+r]);for(var s=0;s<2;s++)e[s]=ii["k"](t[s],n,i,!0),a&&(e[s]=o.parse(e[s]))}return e?u(l,s,n,r,!1):u(s,l,r,n,!0),{valueWindow:l,percentWindow:s}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=UM(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;"none"!==o&&YM(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===o){var s=e.getStore(),l=w["H"](i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,o,r=0;r<i.length;r++){var c=s.get(l[r],t),u=!isNaN(c),h=c<a[0],d=c>a[1];if(u&&!h&&!d)return!0;u&&(o=!0),h&&(e=!0),d&&(n=!0)}return o&&e&&n}))}else YM(i,(function(n){if("empty"===o)t.setData(e=e.map(n,(function(t){return r(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}}));YM(i,(function(t){e.setApproximateExtent(a,t)}))}}))}function r(t){return t>=a[0]&&t<=a[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;YM(["min","max"],(function(i){var o=e.get(i+"Span"),a=e.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?o=ii["k"](n[0]+a,n,[0,100],!0):null!=o&&(a=ii["k"](o,[0,100],n,!0)-n[0]),t[i+"Span"]=o,t[i+"ValueSpan"]=a}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=ii["f"](n,[0,500]);i=Math.min(i,20);var o=t.axis.scale.rawExtentInfo;0!==e[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(i)),o.freeze()}},t}();function UM(t,e,n){var i=[1/0,-1/0];YM(n,(function(t){Wr(i,t.getData(),e)}));var o=t.getAxisModel(),a=Dr(o.axis.scale,o,i).calculate();return[a.min,a.max]}var qM=ZM,KM={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,o){var a=t.getComponent(kM(i),o);e(i,o,a,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,o,a){o.__dzAxisProxy||(o.__dzAxisProxy=new qM(e,i,a,t),n.push(o.__dzAxisProxy))}));var i=Object(w["f"])();return Object(w["k"])(n,(function(t){Object(w["k"])(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},JM=KM;function $M(t){t.registerAction("dataZoom",(function(t,e){var n=LM(e,t);Object(w["k"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var QM=!1;function tI(t){QM||(QM=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,JM),$M(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function eI(t){t.registerComponentModel(BM),t.registerComponentView(WM),tI(t)}var nI=function(){function t(){}return t}(),iI={};function oI(t,e){iI[t]=e}function aI(t){return iI[t]}var rI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w["k"](this.option.feature,(function(t,n){var i=aI(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),w["I"](t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Oa["a"]),sI=rI;function lI(t,e,n){var i=e.getBoxLayoutParams(),o=e.get("padding"),a={width:n.getWidth(),height:n.getHeight()},r=Object(Eo["g"])(i,a,o);Object(Eo["b"])(e.get("orient"),t,e.get("itemGap"),r.width,r.height),Object(Eo["i"])(t,i,a,o)}function cI(t,e){var n=li["g"](e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new ei["a"]({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}),t}var uI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){var o=this.group;if(o.removeAll(),t.get("show")){var a=+t.get("itemSize"),r="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),c=[];w["k"](s,(function(t,e){c.push(e)})),new pe(this._featureNames||[],c).add(u).update(u).remove(w["h"](u,null)).execute(),this._featureNames=c,lI(o,t,n),o.add(cI(o.getBoundingRect(),t)),r||o.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),r=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!w["w"](l)&&e){var c=l.style||(l.style={}),u=p["d"](e,st["a"].makeFont(c)),h=t.x+o.x,d=t.y+o.y+a,g=!1;d+u.height>n.getHeight()&&(r.position="top",g=!0);var f=g?-5-u.height:a+10;h+u.width/2>n.getWidth()?(r.position=["100%",f],c.align="right"):h-u.width/2<0&&(r.position=[0,f],c.align="left")}}))}function u(o,a){var r,u=c[o],d=c[a],p=s[u],g=new ce["a"](p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(p.title=i.newTitle),u&&!d){if(hI(u))r={onclick:g.option.onclick,featureName:u};else{var f=aI(u);if(!f)return;r=new f}l[u]=r}else if(r=l[d],!r)return;r.uid=Object(Ki["c"])("toolbox-feature"),r.model=g,r.ecModel=e,r.api=n;var y=r instanceof nI;u||!d?!g.get("show")||y&&r.unusable?y&&r.remove&&r.remove(e,n):(h(g,r,u),g.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Sn["r"]:Sn["C"])(i[t])},r instanceof nI&&r.render&&r.render(g,e,n,i)):y&&r.dispose&&r.dispose(e,n)}function h(i,s,l){var c,u,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof nI&&s.getIcons?s.getIcons():i.get("icon"),g=i.get("title")||{};w["C"](p)?(c={},c[l]=p):c=p,w["C"](g)?(u={},u[l]=g):u=g;var f=i.iconPaths={};w["k"](c,(function(l,c){var p=wn["createIcon"](l,{},{x:-a/2,y:-a/2,width:a,height:a});p.setStyle(h.getItemStyle());var g=p.ensureState("emphasis");g.style=d.getItemStyle();var y=new st["a"]({style:{text:u[c],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:Object(jn["d"])({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(y),wn["setTooltipConfig"]({el:p,componentModel:t,itemName:c,formatterParamsExtra:{title:u[c]}}),p.__title=u[c],p.on("mouseover",(function(){var e=d.getItemStyle(),i=r?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";y.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),y.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===i.get(["iconStatus",c])?Sn["r"]:Sn["C"])(p),o.add(p),p.on("click",w["c"](s.onclick,s,e,n,c)),f[c]=p}))}},e.prototype.updateView=function(t,e,n,i){w["k"](this._features,(function(t){t instanceof nI&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){w["k"](this._features,(function(n){n instanceof nI&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){w["k"](this._features,(function(n){n instanceof nI&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(_a["a"]);function hI(t){return 0===t.indexOf("my")}var dI=uI,pI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),a=o?"svg":n.get("type",!0)||"png",r=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=cw["a"].browser;if("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||o){var l=r.split(","),c=l[0].indexOf("base64")>-1,u=o?decodeURIComponent(l[1]):l[1];c&&(u=window.atob(u));var h=i+"."+a;if(window.navigator.msSaveOrOpenBlob){var d=u.length,p=new Uint8Array(d);while(d--)p[d]=u.charCodeAt(d);var g=new Blob([p]);window.navigator.msSaveOrOpenBlob(g,h)}else{var f=document.createElement("iframe");document.body.appendChild(f);var y=f.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),y.focus(),v.execCommand("SaveAs",!0,h),document.body.removeChild(f)}}else{var m=n.get("lang"),b='<body style="margin:0;"><img src="'+r+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',x=window.open();x.document.write(b),x.document.title=i}else{var _=document.createElement("a");_.download=i+"."+a,_.target="_blank",_.href=r;var O=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});_.dispatchEvent(O)}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(nI),gI=pI,fI="__ec_magicType_stack__",yI=[["line","bar"],["stack"]],vI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return w["k"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var i=this.model,o=i.get(["seriesIndex",n]);if(mI[n]){var a,r={series:[]},s=function(t){var e=t.subType,o=t.id,a=mI[n](e,o,t,i);a&&(w["i"](a,t.option),r.series.push(a));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",h=t.getReferringComponents(u,we["b"]).models[0],d=h.componentIndex;r[u]=r[u]||[];for(var p=0;p<=d;p++)r[u][d]=r[u][d]||{};r[u][d].boundaryGap="bar"===n}}};w["k"](yI,(function(t){w["r"](t,n)>=0&&w["k"](t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},s);var l=n;"stack"===n&&(a=w["I"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:r,newTitle:a,featureName:"magicType"})}},e}(nI),mI={line:function(t,e,n,i){if("bar"===t)return w["I"]({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return w["I"]({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var o=n.get("stack")===fI;if("line"===t||"bar"===t)return i.setIconStatus("stack",o?"normal":"emphasis"),w["I"]({id:e,stack:o?"":fI},i.get(["option","stack"])||{},!0)}};Zl["c"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var bI=vI,xI=new Array(60).join("-"),_I="\t";function OI(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var o=t.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(t);else{var a=o.getBaseAxis();if("category"===a.type){var r=a.dim+"_"+a.index;e[r]||(e[r]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[r].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function wI(t){var e=[];return w["k"](t,(function(t,n){var i=t.categoryAxis,o=t.valueAxis,a=o.dim,r=[" "].concat(w["H"](t.series,(function(t){return t.name}))),s=[i.model.getCategories()];w["k"](t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(a),(function(t){return t})))}));for(var l=[r.join(_I)],c=0;c<s[0].length;c++){for(var u=[],h=0;h<s.length;h++)u.push(s[h][c]);l.push(u.join(_I))}e.push(l.join("\n"))})),e.join("\n\n"+xI+"\n\n")}function SI(t){return w["H"](t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,o=arguments[t-1],a=e.getName(o),r=0;r<t-1;r++)i[r]=arguments[r];n.push((a?a+_I:"")+i.join(_I))})),n.join("\n")})).join("\n\n"+xI+"\n\n")}function MI(t){var e=OI(t);return{value:w["n"]([wI(e.seriesGroupByCategoryAxis),SI(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+xI+"\n\n"),meta:e.meta}}function II(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jI(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(_I)>=0)return!0}var AI=new RegExp("["+_I+"]+","g");function CI(t){for(var e=t.split(/\n+/g),n=II(e.shift()).split(AI),i=[],o=w["H"](n,(function(t){return{name:t,data:[]}})),a=0;a<e.length;a++){var r=II(e[a]).split(AI);i.push(r.shift());for(var s=0;s<r.length;s++)o[s]&&(o[s].data[a]=r[s])}return{series:o,categories:i}}function DI(t){for(var e=t.split(/\n+/g),n=II(e.shift()),i=[],o=0;o<e.length;o++){var a=II(e[o]);if(a){var r=a.split(AI),s="",l=void 0,c=!1;isNaN(r[0])?(c=!0,s=r[0],r=r.slice(1),i[o]={name:s,value:[]},l=i[o].value):l=i[o]=[];for(var u=0;u<r.length;u++)l.push(+r[u]);1===l.length&&(c?i[o].value=l[0]:i[o]=l[0])}}return{name:n,data:i}}function TI(t,e){var n=t.split(new RegExp("\n*"+xI+"\n*","g")),i={series:[]};return w["k"](n,(function(t,n){if(jI(t)){var o=CI(t),a=e[n],r=a.axisDim+"Axis";a&&(i[r]=i[r]||[],i[r][a.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{o=DI(t);i.series.push(o)}})),i}var kI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var a=document.createElement("h4"),r=i.get("lang")||[];a.innerHTML=r[0]||i.get("title"),a.style.cssText="margin:10px 20px",a.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var c=i.get("optionToContent"),u=i.get("contentToOption"),h=MI(t);if(w["w"](c)){var d=c(e.getOption());w["C"](d)?s.innerHTML=d:w["v"](d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=h.value,s.appendChild(l)}var g=h.meta,f=document.createElement("div");f.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),m=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var b=this;function x(){n.removeChild(o),b._dom=null}Object(Xl["a"])(v,"click",x),Object(Xl["a"])(m,"click",(function(){if(null==u&&null!=c||null!=u&&null==c)x();else{var t;try{t=w["w"](u)?u(s,e.getOption()):TI(l.value,g)}catch(n){throw x(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),x()}})),v.innerHTML=r[1],m.innerHTML=r[2],m.style.cssText=v.style.cssText=y,!i.get("readOnly")&&f.appendChild(m),f.appendChild(v),o.appendChild(a),o.appendChild(s),o.appendChild(f),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){var e={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(nI);function LI(t,e){return w["H"](t,(function(t,n){var i=e&&e[n];if(w["A"](i)&&!w["t"](i)){var o=w["A"](t)&&!w["t"](t);o||(t={value:t});var a=null!=i.name&&null==t.name;return t=w["i"](t,i),a&&delete t.name,t}return t}))}Zl["c"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];w["k"](t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var o=i.get("data");n.push({name:t.name,data:LI(t.data,o)})}else n.push(w["m"]({type:"scatter"},t))})),e.mergeOption(w["i"]({series:n},t.newOption))}));var PI=kI,NI=w["k"],EI=Object(we["o"])();function RI(t,e){var n=GI(t);NI(e,(function(e,i){for(var o=n.length-1;o>=0;o--){var a=n[o];if(a[i])break}if(o<0){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(r){var s=r.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function zI(t){var e=GI(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return NI(n,(function(t,n){for(var o=e.length-1;o>=0;o--)if(t=e[o][n],t){i[n]=t;break}})),i}function VI(t){EI(t).snapshots=null}function BI(t){return GI(t).length}function GI(t){var e=EI(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var HI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.onclick=function(t,e){VI(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(nI);Zl["c"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var FI=HI,WI=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],YI=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var o=ZI(e,t);Object(w["k"])(UI,(function(t,e){(!n||!n.include||Object(w["r"])(n.include,e)>=0)&&t(o,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=JI[t.brushType](0,n,e);t.__rangeOffset={offset:QI[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(w["k"])(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(w["k"])(i.coordSyses,(function(i){var o=JI[t.brushType](1,i,t.range,!0);n(t,o.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(w["k"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=JI[t.brushType](0,n.coordSys,t.coordRange),o=t.__rangeOffset;t.range=o?QI[t.brushType](i.values,o.offset,ej(i.xyMinMax,o.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(w["H"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:Sv(i),isTargetByCursor:Iv(i,t,n.coordSysModel),getLinearBrushOtherExtent:Mv(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(w["r"])(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=ZI(e,t),o=0;o<n.length;o++){var a=n[o],r=t.panelId;if(r){if(a.panelId===r)return a}else for(var s=0;s<qI.length;s++)if(qI[s](i,a))return a}return!0},t}();function XI(t){return t[0]>t[1]&&t.reverse(),t}function ZI(t,e){return Object(we["s"])(t,e,{includeMainTypes:WI})}var UI={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=t.gridModels,a=Object(w["f"])(),r={},s={};(n||i||o)&&(Object(w["k"])(n,(function(t){var e=t.axis.grid.model;a.set(e.id,e),r[e.id]=!0})),Object(w["k"])(i,(function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0})),Object(w["k"])(o,(function(t){a.set(t.id,t),r[t.id]=!0,s[t.id]=!0})),a.each((function(t){var o=t.coordinateSystem,a=[];Object(w["k"])(o.getCartesians(),(function(t,e){(Object(w["r"])(n,t.getAxis("x").model)>=0||Object(w["r"])(i,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:KI.grid,xAxisDeclared:r[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(w["k"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:KI.geo})}))}},qI=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,o=t.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],KI={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(wn["getTransform"](t)),e}},JI={lineX:Object(w["h"])($I,0),lineY:Object(w["h"])($I,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),a=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),r=[XI([o[0],a[0]]),XI([o[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(t,e,n,i){var o=[[1/0,-1/0],[1/0,-1/0]],a=Object(w["H"])(n,(function(n){var a=t?e.pointToData(n,i):e.dataToPoint(n,i);return o[0][0]=Math.min(o[0][0],a[0]),o[1][0]=Math.min(o[1][0],a[1]),o[0][1]=Math.max(o[0][1],a[0]),o[1][1]=Math.max(o[1][1],a[1]),a}));return{values:a,xyMinMax:o}}};function $I(t,e,n,i){var o=n.getAxis(["x","y"][t]),a=XI(Object(w["H"])([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))}))),r=[];return r[t]=a,r[1-t]=[NaN,NaN],{values:a,xyMinMax:r}}var QI={lineX:Object(w["h"])(tj,0),lineY:Object(w["h"])(tj,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(w["H"])(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function tj(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function ej(t,e){var n=nj(t),i=nj(e),o=[n[0]/i[0],n[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function nj(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var ij=YI,oj=n("2f1f"),aj=w["k"],rj=Object(we["p"])("toolbox-dataZoom_"),sj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new wv(n.getZr()),this._brushController.on("brush",w["c"](this._onBrush,this)).mount()),hj(t,e,this,i,n),uj(t,e)},e.prototype.onclick=function(t,e,n){lj[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new ij(cj(this.model),i,{include:["grid"]});o.matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(a("x",n,e[0]),a("y",n,e[1])):a({lineX:"x",lineY:"y"}[i],n,e)}})),RI(i,n),this._dispatchZoomAction(n)}function a(t,e,o){var a=e.getAxis(t),s=a.model,l=r(t,s,i),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(o=ly(0,o.slice(),a.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:o[0],endValue:o[1]})}function r(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var o=n.getAxisModel(t,e.componentIndex);o&&(i=n)})),i}},e.prototype._dispatchZoomAction=function(t){var e=[];aj(t,(function(t,n){e.push(w["d"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(nI),lj={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(zI(this.ecModel))}};function cj(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function uj(t,e){t.setIconStatus("back",BI(e)>1?"emphasis":"normal")}function hj(t,e,n,i,o){var a=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(a="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var r=new ij(cj(t),e,{include:["grid"]}),s=r.makePanelOpts(o,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Object(oj["b"])("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),o=[],a=cj(i),r=Object(we["s"])(t,a);return aj(r.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),aj(r.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),o}function s(t,e,n){var a=t.componentIndex,r={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:rj+e+a};r[n]=a,o.push(r)}}));var dj=sj;function pj(t){t.registerComponentModel(sI),t.registerComponentView(dI),oI("saveAsImage",gI),oI("magicType",bI),oI("dataView",PI),oI("dataZoom",dj),oI("restore",FI),Object(l["a"])(eI)}var gj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Oa["a"]),fj=gj;function yj(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function vj(t){if(cw["a"].domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var mj=vj(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),bj=vj(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function xj(t,e){if(!t)return e;e=Object(li["h"])(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function _j(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var Oj=xj(bj,"transition"),wj=xj(mj,"transform"),Sj="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(cw["a"].transform3dSupported?"will-change:transform;":"");function Mj(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function Ij(t,e,n){if(!Object(w["C"])(n)||"inside"===n)return"";var i=t.get("backgroundColor"),o=t.get("borderWidth");e=Object(li["b"])(e);var a,r=Mj(n),s=Math.max(1.5*Math.round(o),6),l="",c=wj+":";Object(w["r"])(["left","right"],r)>-1?(l+="top:50%",c+="translateY(-50%) rotate("+(a="left"===r?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(a="top"===r?225:45)+"deg)");var u=a*Math.PI/180,h=s+o,d=h*Math.abs(Math.cos(u))+h*Math.abs(Math.sin(u)),p=Math.round(100*((d-Math.SQRT2*o)/2+Math.SQRT2*o-(d-h)/2))/100;l+=";"+r+":-"+p+"px";var g=e+" solid "+o+"px;",f=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'<div style="'+f.join("")+'"></div>'}function jj(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,o="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,o+=cw["a"].transformSupported?","+wj+i:",left"+i+",top"+i),Oj+":"+o}function Aj(t,e,n){var i=t.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!cw["a"].transformSupported)return n?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var a=cw["a"].transform3dSupported,r="translate"+(a?"3d":"")+"("+i+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+wj+":"+r+";":[["top",0],["left",0],[mj,r]]}function Cj(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 o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,r=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+r+"px "+s+"px "+a+"px "+o),Object(w["k"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function Dj(t,e,n){var i=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),r=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),u=t.getModel("textStyle"),h=Object(jl["d"])(t,"html"),d=l+"px "+c+"px "+r+"px "+s;return i.push("box-shadow:"+d),e&&o&&i.push(jj(o,n)),a&&i.push("background-color:"+a),Object(w["k"])(["width","color","radius"],(function(e){var n="border-"+e,o=Object(li["h"])(n),a=t.get(o);null!=a&&i.push(n+":"+a+("color"===e?"":"px"))})),i.push(Cj(u)),null!=h&&i.push("padding:"+Object(li["g"])(h).join("px ")+"px"),i.join(";")+";"}function Tj(t,e,n,i,o){var a=e&&e.painter;if(n){var r=a&&a.getViewportRoot();r&&Object(T["d"])(t,r,n,i,o)}else{t[0]=i,t[1]=o;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var kj=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,cw["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=e.appendTo,a=o&&(Object(w["C"])(o)?document.querySelector(o):Object(w["v"])(o)?o:Object(w["w"])(o)&&o(t.getDom()));Tj(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(n),this._api=t,this._container=a;var r=this;n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!r._enterable){var e=i.handler,n=i.painter.getViewportRoot();Object(Xl["e"])(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=_j(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=Sj+Dj(t,!this._firstShow,this._longHide)+Aj(o[0],o[1],!0)+"border-color:"+Object(li["b"])(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,o){var a=this.el;if(null!=t){var r="";if(Object(w["C"])(o)&&"item"===n.get("trigger")&&!yj(n)&&(r=Ij(n,i,o)),Object(w["C"])(t))a.innerHTML=t+r;else if(t){a.innerHTML="",Object(w["t"])(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(w["v"])(t[s])&&t[s].parentNode!==a&&a.appendChild(t[s]);if(r&&a.childNodes.length){var l=document.createElement("div");l.innerHTML=r,a.appendChild(l)}}}else a.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(Tj(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,o=Aj(n[0],n[1]);Object(w["k"])(o,(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",cw["a"].transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(w["c"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),Lj=kj,Pj=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Rj(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,o){var a=this;w["A"](t)&&Object(qd["c"])(""),this.el&&this._zr.remove(this.el);var r=n.getModel("textStyle");this.el=new st["a"]({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:r.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Object(jl["d"])(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),w["k"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){a.el.style[t]=n.get(t)})),w["k"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){a.el.style[t]=r.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Ej(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;Rj(i,this._zr,t,e),t=i[0],e=i[1];var o=n.style,a=Nj(o.borderWidth||0),r=Ej(o);n.x=t+a+r.left,n.y=e+a+r.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(w["c"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Nj(t){return Math.max(0,t)}function Ej(t){var e=Nj(t.shadowBlur||0),n=Nj(t.shadowOffsetX||0),i=Nj(t.shadowOffsetY||0);return{left:Nj(e-n),right:Nj(e+n),top:Nj(e-i),bottom:Nj(e+i)}}function Rj(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var zj=Pj,Vj=n("38a2"),Bj=new ei["a"]({shape:{x:-1,y:-1,width:2,height:2}}),Gj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){if(!cw["a"].node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=Object(we["i"])(n.get("renderMode"));this._tooltipContent="richText"===i?new zj(e):new Lj(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!cw["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Object(Qi["b"])(this,"_updatePosition",50,"fixRate"):Object(Qi["a"])(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");dw("itemTooltip",this._api,Object(w["c"])((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&o.manuallyShowTip(t,e,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!cw["a"].node&&n.getDom()){var o=Fj(i,n);this._ticket="";var a=i.dataByCoordSys,r=Uj(i,e,n);if(r){var s=r.el.getBoundingRect().clone();s.applyTransform(r.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:r.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=Bj;l.x=i.x,l.y=i.y,l.update(),Object(Se["a"])(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},o)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=_w(i,e),u=c.point[0],h=c.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Fj(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,a=i.dataIndex,r=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=a&&null!=r){var s=e.getSeriesByIndex(o);if(s){var l=s.getData(),c=Hj([l.getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:a,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var a,r,s=Object(Se["a"])(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,Object(ch["a"])(n,(function(t){return null!=Object(Se["a"])(t).dataIndex?(a=t,!0):null!=Object(Se["a"])(t).tooltipConfig?(r=t,!0):void 0}),!0),a?this._showSeriesItemTooltip(t,a,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(w["c"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,o=[e.offsetX,e.offsetY],a=Hj([e.tooltipOption],i),r=this._renderMode,s=[],l=Object(jl["c"])("section",{blocks:[],noHeader:!0}),c=[],u=new jl["a"];Object(w["k"])(t,(function(t){Object(w["k"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),o=t.value;if(e&&null!=o){var a=KO(o,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Object(jl["c"])("section",{header:a,noHeader:!Object(w["T"])(a),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(w["k"])(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,g=d.getDataParams(p);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=zr(e.axis,{value:o}),g.axisValueLabel=a,g.marker=u.makeTooltipMarker("item",Object(li["b"])(g.color),r);var f=Object(Vj["b"])(d.formatTooltip(p,!0,null)),y=f.frag;if(y){var v=Hj([d],i).get("valueFormatter");h.blocks.push(v?Object(w["m"])({valueFormatter:v},y):y)}f.text&&c.push(f.text),s.push(g)}}))}}))})),l.blocks.reverse(),c.reverse();var h=e.position,d=a.get("order"),p=Object(jl["b"])(l,u,r,d,n.get("useUTC"),a.get("textStyle"));p&&c.unshift(p);var g="richText"===r?"\n\n":"<br/>",f=c.join(g);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(a,h,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(a,f,s,Math.random()+"",o[0],o[1],h,null,u)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,o=Object(Se["a"])(e),a=o.seriesIndex,r=i.getSeriesByIndex(a),s=o.dataModel||r,l=o.dataIndex,c=o.dataType,u=s.getData(c),h=this._renderMode,d=t.positionDefault,p=Hj([u.getItemModel(l),s,r&&(r.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(null==g||"item"===g){var f=s.getDataParams(l,c),y=new jl["a"];f.marker=y.makeTooltipMarker("item",Object(li["b"])(f.color),h);var v=Object(Vj["b"])(s.formatTooltip(l,!1,c)),m=p.get("order"),b=p.get("valueFormatter"),x=v.frag,_=x?Object(jl["b"])(b?Object(w["m"])({valueFormatter:b},x):x,y,h,m,i.get("useUTC"),p.get("textStyle")):v.text,O="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,_,f,O,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,o=Object(Se["a"])(e),a=o.tooltipConfig,r=a.option||{},s=r.encodeHTMLContent;if(Object(w["C"])(r)){var l=r;r={content:l,formatter:l},s=!0}s&&i&&r.content&&(r=Object(w["d"])(r),r.content=Object(T["a"])(r.content));var c=[r],u=this._ecModel.getComponent(o.componentMainType,o.componentIndex);u&&c.push(u),c.push({formatter:r.content});var h=t.positionDefault,d=Hj(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",f=new jl["a"];this._showOrMove(d,(function(){var n=Object(w["d"])(d.get("formatterParams")||{});this._showTooltipContent(d,p,n,g,t.offsetX,t.offsetY,t.position,e,f)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,o,a,r,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var u=t.get("formatter");r=r||t.get("position");var h=e,d=this._getNearestPoint([o,a],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(u)if(Object(w["C"])(u)){var g=t.ecModel.get("useUTC"),f=Object(w["t"])(n)?n[0]:n,y=f&&f.axisType&&f.axisType.indexOf("time")>=0;h=u,y&&(h=Object(ir["h"])(f.axisValue,h,g)),h=Object(li["c"])(h,n,!0)}else if(Object(w["w"])(u)){var v=Object(w["c"])((function(e,i){e===this._ticket&&(c.setContent(i,l,t,p,r),this._updatePosition(t,r,o,a,c,n,s))}),this);this._ticket=i,h=u(n,i,v)}else h=u;c.setContent(h,l,t,p,r),c.show(t,p),this._updatePosition(t,r,o,a,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(w["t"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(w["t"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,o,a,r){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=o.getSize(),u=t.get("align"),h=t.get("verticalAlign"),d=r&&r.getBoundingRect().clone();if(r&&d.applyTransform(r.transform),Object(w["w"])(e)&&(e=e([n,i],a,o.el,d,{viewSize:[s,l],contentSize:c.slice()})),Object(w["t"])(e))n=Object(ii["o"])(e[0],s),i=Object(ii["o"])(e[1],l);else if(Object(w["A"])(e)){var p=e;p.width=c[0],p.height=c[1];var g=Object(Eo["g"])(p,{width:s,height:l});n=g.x,i=g.y,u=null,h=null}else if(Object(w["C"])(e)&&r){var f=Xj(e,d,c,t.get("borderWidth"));n=f[0],i=f[1]}else{f=Wj(n,i,o,s,l,u?null:20,h?null:20);n=f[0],i=f[1]}if(u&&(n-=Zj(u)?c[0]/2:"right"===u?c[0]:0),h&&(i-=Zj(h)?c[1]/2:"bottom"===h?c[1]:0),yj(t)){f=Yj(n,i,o,s,l);n=f[0],i=f[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&Object(w["k"])(n,(function(n,a){var r=n.dataByAxis||[],s=t[a]||{},l=s.dataByAxis||[];o=o&&r.length===l.length,o&&Object(w["k"])(r,(function(t,n){var a=l[n]||{},r=t.seriesDataIndices||[],s=a.seriesDataIndices||[];o=o&&t.value===a.value&&t.axisType===a.axisType&&t.axisId===a.axisId&&r.length===s.length,o&&Object(w["k"])(r,(function(t,e){var n=s[e];o=o&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(w["k"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,a=e[n],r=i[n];a&&r&&r.data!==a.data&&(o=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!cw["a"].node&&e.getDom()&&(Object(Qi["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),mw("itemTooltip",e))},e.type="tooltip",e}(_a["a"]);function Hj(t,e,n){var i,o=e.ecModel;n?(i=new ce["a"](n,o,o),i=new ce["a"](e.option,i,o)):i=e;for(var a=t.length-1;a>=0;a--){var r=t[a];r&&(r instanceof ce["a"]&&(r=r.get("tooltip",!0)),Object(w["C"])(r)&&(r={formatter:r}),r&&(i=new ce["a"](r,i,o)))}return i}function Fj(t,e){return t.dispatchAction||Object(w["c"])(e.dispatchAction,e)}function Wj(t,e,n,i,o,a,r){var s=n.getSize(),l=s[0],c=s[1];return null!=a&&(t+l+a+2>i?t-=l+a:t+=a),null!=r&&(e+c+r>o?e-=c+r:e+=r),[t,e]}function Yj(t,e,n,i,o){var a=n.getSize(),r=a[0],s=a[1];return t=Math.min(t+r,i)-r,e=Math.min(e+s,o)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Xj(t,e,n,i){var o=n[0],a=n[1],r=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=e.width,u=e.height;switch(t){case"inside":s=e.x+c/2-o/2,l=e.y+u/2-a/2;break;case"top":s=e.x+c/2-o/2,l=e.y-a-r;break;case"bottom":s=e.x+c/2-o/2,l=e.y+u+r;break;case"left":s=e.x-o-r,l=e.y+u/2-a/2;break;case"right":s=e.x+c+r,l=e.y+u/2-a/2}return[s,l]}function Zj(t){return"center"===t||"middle"===t}function Uj(t,e,n){var i=Object(we["t"])(t).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var a=Object(we["v"])(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),r=a.models[0];if(r){var s,l=n.getViewOfComponentModel(r);return l.group.traverse((function(e){var n=Object(Se["a"])(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:o,componentIndex:r.componentIndex,el:s}:void 0}}}var qj=Gj;function Kj(t){Object(l["a"])(Pw),t.registerComponentModel(fj),t.registerComponentView(qj),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},w["L"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},w["L"])}var Jj=["rect","polygon","keep","clear"];function $j(t,e){var n=Object(we["r"])(t?t.brush:[]);if(n.length){var i=[];w["k"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var o=t&&t.toolbox;w["t"](o)&&(o=o[0]),o||(o={feature:{}},t.toolbox=[o]);var a=o.feature||(o.feature={}),r=a.brush||(a.brush={}),s=r.type||(r.type=[]);s.push.apply(s,i),Qj(s),e&&!s.length&&s.push.apply(s,Jj)}}function Qj(t){var e={};w["k"](t,(function(t){e[t]=1})),t.length=0,w["k"](e,(function(e,n){t.push(n)}))}var tA=n("0924"),eA=w["k"];function nA(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function iA(t,e,n){var i={};return eA(e,(function(e){var a=i[e]=o();eA(t[e],(function(t,i){if(pp.isValidType(i)){var o={type:i,visual:t};n&&n(o,e),a[i]=new pp(o),"opacity"===i&&(o=w["d"](o),o.type="colorAlpha",a.__hidden.__alphaForOpacity=new pp(o))}}))})),i;function o(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function oA(t,e,n){var i;w["k"](n,(function(t){e.hasOwnProperty(t)&&nA(e[t])&&(i=!0)})),i&&w["k"](n,(function(n){e.hasOwnProperty(n)&&nA(e[n])?t[n]=w["d"](e[n]):delete t[n]}))}function aA(t,e,n,i,o,a){var r,s={};function l(t){return Object(tA["a"])(n,r,t)}function c(t,e){Object(tA["c"])(n,r,t,e)}function u(t,u){r=null==a?t:u;var h=n.getRawDataItem(r);if(!h||!1!==h.visualMap)for(var d=i.call(o,t),p=e[d],g=s[d],f=0,y=g.length;f<y;f++){var v=g[f];p[v]&&p[v].applyVisual(t,l,c)}}w["k"](t,(function(t){var n=pp.prepareVisualTypes(e[t]);s[t]=n})),null==a?n.each(u):n.each([a],u)}function rA(t,e,n,i){var o={};return w["k"](t,(function(t){var n=pp.prepareVisualTypes(e[t]);o[t]=n})),{progress:function(t,a){var r,s;function l(t){return Object(tA["a"])(a,s,t)}function c(t,e){Object(tA["c"])(a,s,t,e)}null!=i&&(r=a.getDimensionIndex(i));var u=a.getStore();while(null!=(s=t.next())){var h=a.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=i?u.get(r,s):s,p=n(d),g=e[p],f=o[p],y=0,v=f.length;y<v;y++){var m=f[y];g[m]&&g[m].applyVisual(d,l,c)}}}}}function sA(t){var e=t.brushType,n={point:function(i){return lA[e].point(i,n,t)},rect:function(i){return lA[e].rect(i,n,t)}};return n}var lA={lineX:cA(0),lineY:cA(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Gc(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var o=t.x,a=t.y,r=t.width,s=t.height,l=i[0];return!!(Gc(i,o,a)||Gc(i,o+r,a)||Gc(i,o,a+s)||Gc(i,o+r,a+s)||pa["a"].create(t).contain(l[0],l[1])||Object(wn["linePolygonIntersect"])(o,a,o+r,a,i)||Object(wn["linePolygonIntersect"])(o,a,o,a+s,i)||Object(wn["linePolygonIntersect"])(o+r,a,o+r,a+s,i)||Object(wn["linePolygonIntersect"])(o,a+s,o+r,a+s,i))||void 0}}};function cA(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var o=i.range,a=e[t];return uA(a,o)}},rect:function(i,o,a){if(i){var r=a.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),uA(s[0],r)||uA(s[1],r)||uA(r[0],s)||uA(r[1],s)}}}}function uA(t,e){return e[0]<=t&&t<=e[1]}var hA=["inBrush","outOfBrush"],dA="__ecBrushSelect",pA="__ecInBrushSelectEvent";function gA(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new ij(e.option,t);n.setInputRanges(e.areas,t)}))}function fA(t,e,n){var i,o,a=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),gA(t),t.eachComponent({mainType:"brush"},(function(e,n){var r={brushId:e.id,brushIndex:n,brushName:e.name,areas:w["d"](e.areas),selected:[]};a.push(r);var s=e.option,l=s.brushLink,c=[],u=[],h=[],d=!1;n||(i=s.throttleType,o=s.throttleDelay);var p=w["H"](e.areas,(function(t){var e=xA[t.brushType],n=w["i"]({boundingRect:e?e(t):void 0},t);return n.selectors=sA(n),n})),g=iA(e.option,hA,(function(t){t.mappingMethod="fixed"}));function f(t){return"all"===l||!!c[t]}function y(t){return!!t.length}function v(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),f(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(u[e]=1)}))}function m(n,i,o){if(n.brushSelector&&!bA(e,i)&&(w["k"](p,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&o.push(i),d=d||y(o)})),f(i)&&y(o))){var a=n.getData();a.each((function(t){mA(n,o,a,t)&&(u[t]=1)}))}}w["t"](l)&&w["k"](l,(function(t){c[t]=1})),t.eachSeries((function(t,e){var n=h[e]=[];"parallel"===t.subType?v(t,e):m(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};r.selected.push(n);var i=h[e],o=t.getData(),a=f(e)?function(t){return u[t]?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return mA(t,i,o,e)?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"};(f(e)?d:y(i))&&aA(hA,g,o,a)}))})),yA(e,i,o,a,n)}function yA(t,e,n,i,o){if(o){var a=t.getZr();if(!a[pA]){a[dA]||(a[dA]=vA);var r=Qi["b"](a,dA,n,e);r(t,i)}}}function vA(t,e){if(!t.isDisposed()){var n=t.getZr();n[pA]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[pA]=!1}}function mA(t,e,n,i){for(var o=0,a=e.length;o<a;o++){var r=e[o];if(t.brushSelector(i,n,r.selectors,r))return!0}}function bA(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(w["t"](n)?w["r"](n,e)<0:e!==n)}var xA={rect:function(t){return _A(t.range)},polygon:function(t){for(var e,n=t.range,i=0,o=n.length;i<o;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=n[i];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&_A(e)}};function _A(t){return new pa["a"](t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var OA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new wv(e.getZr())).on("brush",w["c"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){gA(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:w["d"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:w["d"](n),$from:e})},e.type="brush",e}(_a["a"]),wA=OA,SA="#ddd",MA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&oA(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:SA},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=w["H"](t,(function(t){return IA(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=IA(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Oa["a"]);function IA(t,e){return w["I"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new ce["a"](t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var jA=MA,AA=["rect","polygon","lineX","lineY","keep","clear"],CA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){var i,o,a;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,o=t.brushOption.brushMode||"single",a=a||!!t.areas.length})),this._brushType=i,this._brushMode=o,w["k"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===o:"clear"===e?a:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return w["k"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},e.getDefaultOption=function(t){var e={show:!0,type:AA.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(nI),DA=CA;function TA(t){t.registerComponentView(wA),t.registerComponentModel(jA),t.registerPreprocessor($j),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,fA),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},w["L"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},w["L"]),oI("brush",DA)}var kA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(le["a"])(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Oa["a"]),LA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,o=t.getModel("textStyle"),a=t.getModel("subtextStyle"),r=t.get("textAlign"),s=w["P"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new st["a"]({style:Object(jn["c"])(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=t.get("subtext"),h=new st["a"]({style:Object(jn["c"])(a,{text:u,fill:a.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);l.silent=!d&&!g,h.silent=!p&&!g,d&&l.on("click",(function(){Object(li["i"])(d,"_"+t.get("target"))})),p&&h.on("click",(function(){Object(li["i"])(p,"_"+t.get("subtarget"))})),Object(Se["a"])(l).eventData=Object(Se["a"])(h).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),u&&i.add(h);var f=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=f.width,y.height=f.height;var v=Object(Eo["g"])(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));r||(r=t.get("left")||t.get("right"),"middle"===r&&(r="center"),"right"===r?v.x+=v.width:"center"===r&&(v.x+=v.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:r,verticalAlign:s};l.setStyle(m),h.setStyle(m),f=i.getBoundingRect();var b=v.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var _=new ei["a"]({shape:{x:f.x-b[3],y:f.y-b[0],width:f.width+b[1]+b[3],height:f.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(_)}},e.type="title",e}(_a["a"]);function PA(t){t.registerComponentModel(kA),t.registerComponentView(LA)}var NA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return Object(le["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,o=this._names=[];"category"===i?(t=[],Object(w["k"])(n,(function(e,n){var i,a=Object(we["e"])(Object(we["h"])(e),"");Object(w["A"])(e)?(i=Object(w["d"])(e),i.value=n):i=n,t.push(i),o.push(a)}))):t=n;var a={category:"ordinal",time:"time",value:"number"}[i]||"number",r=this._data=new qe([{name:"value",type:a}],this);r.initData(t,o)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Oa["a"]),EA=NA,RA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="timeline.slider",e.defaultOption=Object(Ki["d"])(EA.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(EA);Object(w["K"])(RA,Vj["a"].prototype);var zA=RA,VA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="timeline",e}(_a["a"]),BA=VA,GA=function(t){function e(e,n,i,o){var a=t.call(this,e,n,i)||this;return a.type=o||"value",a}return Object(le["a"])(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(bs),HA=GA,FA=Math.PI,WA=Object(we["o"])(),YA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=r.scale.getLabel({value:t});return Object(jl["c"])("nameValue",{noName:!0,value:e})},Object(w["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,o,r,t)}),this),this._renderAxisLabel(i,a,r,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i=t.get(["label","position"]),o=t.get("orient"),a=ZA(t,e);n=null==i||"auto"===i?"horizontal"===o?a.y+a.height/2<e.getHeight()/2?"-":"+":a.x+a.width/2<e.getWidth()/2?"+":"-":Object(w["C"])(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][i]:i;var r,s,l,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:FA/2},d="vertical"===o?a.height:a.width,p=t.getModel("controlStyle"),g=p.get("show",!0),f=g?p.get("itemSize"):0,y=g?p.get("itemGap"):0,v=f+y,m=t.get(["label","rotate"])||0;m=m*FA/180;var b=p.get("position",!0),x=g&&p.get("showPlayBtn",!0),_=g&&p.get("showPrevBtn",!0),O=g&&p.get("showNextBtn",!0),S=0,M=d;"left"===b||"bottom"===b?(x&&(r=[0,0],S+=v),_&&(s=[S,0],S+=v),O&&(l=[M-f,0],M-=v)):(x&&(r=[M-f,0],M-=v),_&&(s=[0,0],S+=v),O&&(l=[M-f,0],M-=v));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:a,mainLength:d,orient:o,rotation:h[o],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||c[o],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[o],playPosition:r,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:f,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var a=Zr["c"](),r=o.x,s=o.y+o.height;Zr["i"](a,a,[-r,-s]),Zr["g"](a,a,-FA/2),Zr["i"](a,a,[r,s]),o=o.clone(),o.applyTransform(a)}var l=y(o),c=y(n.getBoundingRect()),u=y(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p=t.labelPosOpt;if(null==p||Object(w["C"])(p)){var g="+"===p?0:1;v(h,c,l,1,g),v(d,u,l,1,1-g)}else{g=p>=0?0:1;v(h,c,l,1,g),d[1]=h[1]+p}function f(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,f(n),f(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),o=XA(e,i);o.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var a=n.getDataExtent("value");o.setExtent(a[0],a[1]),o.calcNiceTicks();var r=new HA("value",o,t.axisExtent,i);return r.model=e,r},e.prototype._createGroup=function(t){var e=this[t]=new bn["a"];return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var a=new Ls["a"]({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Object(w["m"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(a);var r=this._progressLine=new Ls["a"]({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Object(w["i"])({lineCap:"round",lineWidth:a.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(r)}},e.prototype._renderAxisTick=function(t,e,n,i){var o=this,a=i.getData(),r=n.scale.getTicks();this._tickSymbols=[],Object(w["k"])(r,(function(t){var r=n.dataToCoord(t.value),s=a.getItemModel(t.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),h={x:r,y:0,onclick:Object(w["c"])(o._changeTimeline,o,t.value)},d=qA(s,l,e,h);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=u.getItemStyle(),Object(Sn["o"])(d);var p=Object(Se["a"])(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,o._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var o=this,a=n.getLabelModel();if(a.get("show")){var r=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(w["k"])(s,(function(i){var a=i.tickValue,s=r.getItemModel(a),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new st["a"]({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(w["c"])(o._changeTimeline,o,a),silent:!1,style:Object(jn["c"])(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=Object(jn["c"])(c),d.ensureState("progress").style=Object(jn["c"])(u),e.add(d),Object(Sn["o"])(d),WA(d).dataIndex=a,o._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var o=t.controlSize,a=t.rotation,r=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function u(t,n,l,c){if(t){var u=Object(p["g"])(Object(w["P"])(i.get(["controlStyle",n+"BtnSize"]),o),o),h=[0,-u/2,u,u],d=UA(i,n+"Icon",h,{x:t[0],y:t[1],originX:o/2,originY:0,rotation:c?-a:0,rectHover:!0,style:r,onclick:l});d.ensureState("emphasis").style=s,e.add(d),Object(Sn["o"])(d)}}u(t.nextBtnPosition,"next",Object(w["c"])(this._changeTimeline,this,c?"-":"+")),u(t.prevBtnPosition,"prev",Object(w["c"])(this._changeTimeline,this,c?"+":"-")),u(t.playPosition,l?"stop":"play",Object(w["c"])(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),a=i.getCurrentIndex(),r=o.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(w["c"])(s._handlePointerDrag,s),t.ondragend=Object(w["c"])(s._handlePointerDragend,s),KA(t,s._progressLine,a,n,i,!0)},onUpdate:function(t){KA(t,s._progressLine,a,n,i)}};this._currentPointer=qA(r,r,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,o=ii["c"](i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var r=this._findNearestTick(n),s=this.model;(e||r!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(r)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return wn["applyTransform"](t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,o=this._axis;return n.each(["value"],(function(n,a){var r=o.dataToCoord(n),s=Math.abs(r-t);s<i&&(i=s,e=a)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",WA(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(BA);function XA(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Qa({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new fr({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new nr}}function ZA(t,e){return Eo["g"](t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function UA(t,e,n,i){var o=i.style,a=wn["createIcon"](t.get(["controlStyle",e]),i||{},new pa["a"](n[0],n[1],n[2],n[3]));return o&&a.setStyle(o),a}function qA(t,e,n,i,o,a){var r=e.get("color");if(o)o.setColor(r),n.add(o),a&&a.onUpdate(o);else{var s=t.get("symbol");o=Object(mn["a"])(s,-1,-1,2,2,r),o.setStyle("strokeNoScale",!0),n.add(o),a&&a.onCreate(o)}var l=e.getItemStyle(["color"]);o.setStyle(l),i=Object(w["I"])({rectHover:!0,z2:100},i,!0);var c=Object(mn["c"])(t.get("symbolSize"));i.scaleX=c[0]/2,i.scaleY=c[1]/2;var u=Object(mn["b"])(t.get("symbolOffset"),c);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var h=t.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function KA(t,e,n,i,o,a){if(!t.dragging){var r=o.getModel("checkpointStyle"),s=i.dataToCoord(o.getData().get("value",n));if(a||!r.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:r.get("animationDuration",!0),easing:r.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var JA=YA;function $A(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)}),Object(w["i"])({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 QA(t){var e=t&&t.timeline;w["t"](e)||(e=e?[e]:[]),w["k"](e,(function(t){t&&tC(t)}))}function tC(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),eC(t),nC(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});nC(i,"position")||(i.position=t.controlPosition),"none"!==i.position||nC(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}w["k"](t.data||[],(function(t){w["A"](t)&&!w["t"](t)&&(!nC(t,"value")&&nC(t,"name")&&(t.value=t.name),eC(t))}))}function eC(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},o=i.normal||(i.normal={}),a={normal:1,emphasis:1};w["k"](i,(function(t,e){a[e]||nC(o,e)||(o[e]=t)})),n.label&&!nC(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function nC(t,e){return t.hasOwnProperty(e)}function iC(t){t.registerComponentModel(zA),t.registerComponentView(JA),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),$A(t),t.registerPreprocessor(QA)}function oC(t,e){if(!t)return!1;for(var n=Object(w["t"])(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function aC(t){Object(we["f"])(t,"label",["show"])}var rC=Object(we["o"])(),sC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return Object(le["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(cw["a"].node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var o=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),a=rC(t)[o];n&&n.data?(a?a._mergeOption(n,e,!0):(i&&aC(n),w["k"](n.data,(function(t){t instanceof Array?(aC(t[0]),aC(t[1])):aC(t)})),a=this.createMarkerModelFromSeries(n,this,e),w["m"](a,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),a.__hostSeries=t),rC(t)[o]=a):rC(t)[o]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),a=i.getName(t);return Object(jl["c"])("section",{header:this.name,blocks:[Object(jl["c"])("nameValue",{name:a,value:o,noName:!a,noValue:null==o})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=Vj["a"].prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return rC(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Oa["a"]);w["K"](sC,Vj["a"].prototype);var lC=sC,cC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(lC),uC=cC,hC=n("b7d9");function dC(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function pC(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function gC(t,e,n,i,o,a){var r=[],s=cn(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,c=OC(e,l,t),u=e.indicesOfNearest(l,c)[0];r[o]=e.get(n,u),r[a]=e.get(l,u);var h=e.get(i,u),d=ii["g"](e.get(i,u));return d=Math.min(d,20),d>=0&&(r[a]=+r[a].toFixed(d)),[r,h]}var fC={min:Object(w["h"])(gC,"min"),max:Object(w["h"])(gC,"max"),average:Object(w["h"])(gC,"average"),median:Object(w["h"])(gC,"median")};function yC(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,o=i&&i.dimensions;if(!pC(e)&&!Object(w["t"])(e.coord)&&Object(w["t"])(o)){var a=vC(e,n,i,t);if(e=Object(w["d"])(e),e.type&&fC[e.type]&&a.baseAxis&&a.valueAxis){var r=Object(w["r"])(o,a.baseAxis.dim),s=Object(w["r"])(o,a.valueAxis.dim),l=fC[e.type](n,a.baseDataDim,a.valueDataDim,r,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(w["t"])(o))for(var c=e.coord,u=0;u<2;u++)fC[c[u]]&&(c[u]=OC(n,n.mapDimension(o[u]),c[u]));else e.coord=[];return e}}function vC(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(mC(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function mC(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function bC(t,e){return!(t&&t.containData&&e.coord&&!dC(e))||t.containData(e.coord)}function xC(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!dC(e)&&!dC(n))||t.containZone(e.coord,n.coord)}function _C(t,e){return t?function(t,n,i,o){var a=o<2?t.coord&&t.coord[o]:t.value;return Object(hC["d"])(a,e[o])}:function(t,n,i,o){return Object(hC["d"])(t.value,e[o])}}function OC(t,e,n){if("average"===n){var i=0,o=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,o++)})),i/o}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var wC=Object(we["o"])(),SC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.init=function(){this.markerGroupMap=Object(w["f"])()},e.prototype.render=function(t,e,n){var i=this,o=this.markerGroupMap;o.each((function(t){wC(t).keep=!1})),e.eachSeries((function(t){var o=lC.getMarkerModelFromSeries(t,i.type);o&&i.renderSeries(t,o,e,n)})),o.each((function(t){!wC(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){wC(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(w["k"])(t,(function(t){var i=lC.getMarkerModelFromSeries(t,n.type);if(i){var o=i.getData();o.eachItemGraphicEl((function(t){t&&(e?Object(Sn["q"])(t):Object(Sn["B"])(t))}))}}))},e.type="marker",e}(_a["a"]),MC=SC;function IC(t,e,n){var i=e.coordinateSystem;t.each((function(o){var a,r=t.getItemModel(o),s=ii["o"](r.get("x"),n.getWidth()),l=ii["o"](r.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,o));else if(i){var c=t.get(i.dimensions[0],o),u=t.get(i.dimensions[1],o);a=i.dataToPoint([c,u])}}else a=[s,l];isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),t.setItemLayout(o,a)}))}var jC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=lC.getMarkerModelFromSeries(t,"markPoint");e&&(IC(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,a=t.id,r=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new Nn),c=AC(o,t,e);e.setData(c),IC(e.getData(),t,i),c.each((function(t){var n=c.getItemModel(t),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(w["w"])(i)||Object(w["w"])(o)||Object(w["w"])(a)||Object(w["w"])(s)){var u=e.getRawValue(t),h=e.getDataParams(t);Object(w["w"])(i)&&(i=i(u,h)),Object(w["w"])(o)&&(o=o(u,h)),Object(w["w"])(a)&&(a=a(u,h)),Object(w["w"])(s)&&(s=s(u,h))}var d=n.getModel("itemStyle").getItemStyle(),p=Object(tA["b"])(r,"color");d.fill||(d.fill=p),c.setItemVisual(t,{symbol:i,symbolSize:o,symbolRotate:a,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(t){t.traverse((function(t){Object(Se["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(MC);function AC(t,e,n){var i;i=t?Object(w["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(w["m"])(Object(w["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new qe(i,n),a=Object(w["H"])(n.get("data"),Object(w["h"])(yC,e));t&&(a=Object(w["n"])(a,Object(w["h"])(bC,t)));var r=_C(!!t,i);return o.initData(a,null,r),o}var CC=jC;function DC(t){t.registerComponentModel(uC),t.registerComponentView(CC),t.registerPreprocessor((function(t){oC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var TC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(lC),kC=TC,LC=Object(we["o"])(),PC=function(t,e,n,i){var o,a=t.getData();if(Object(w["t"])(i))o=i;else{var r=i.type;if("min"===r||"max"===r||"average"===r||"median"===r||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=Object(w["O"])(i.yAxis,i.xAxis);else{var c=vC(i,a,e,t);s=c.valueAxis;var u=un(a,c.valueDataDim);l=OC(a,u,r)}var h="x"===s.dim?0:1,d=1-h,p=Object(w["d"])(i),g={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,g.coord[d]=1/0;var f=n.get("precision");f>=0&&Object(w["z"])(l)&&(l=+l.toFixed(Math.min(f,20))),p.coord[h]=g.coord[h]=l,o=[p,g,{type:r,valueIndex:i.valueIndex,value:l}]}else o=[]}var y=[yC(t,o[0]),yC(t,o[1]),Object(w["m"])({},o[2])];return y[2].type=y[2].type||null,Object(w["I"])(y[2],y[0]),Object(w["I"])(y[2],y[1]),y};function NC(t){return!isNaN(t)&&!isFinite(t)}function EC(t,e,n,i){var o=1-t,a=i.dimensions[t];return NC(e[o])&&NC(n[o])&&e[t]===n[t]&&i.getAxis(a).containData(e[t])}function RC(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(EC(1,n,i,t)||EC(0,n,i,t)))return!0}return bC(t,e[0])&&bC(t,e[1])}function zC(t,e,n,i,o){var a,r=i.coordinateSystem,s=t.getItemModel(e),l=ii["o"](s.get("x"),o.getWidth()),c=ii["o"](s.get("y"),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)a=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var u=r.dimensions,h=t.get(u[0],e),d=t.get(u[1],e);a=r.dataToPoint([h,d])}if(si(r,"cartesian2d")){var p=r.getAxis("x"),g=r.getAxis("y");u=r.dimensions;NC(t.get(u[0],e))?a[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):NC(t.get(u[1],e))&&(a[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];t.setItemLayout(e,a)}var VC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=lC.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),o=LC(e).from,a=LC(e).to;o.each((function(e){zC(o,e,!0,t,n),zC(a,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[o.getItemLayout(t),a.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,a=t.id,r=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new Hg);this.group.add(l.group);var c=BC(o,t,e),u=c.from,h=c.to,d=c.line;LC(e).from=u,LC(e).to=h,e.setData(d);var p=e.get("symbol"),g=e.get("symbolSize"),f=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,n,o){var a=e.getItemModel(n);zC(e,n,o,t,i);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(tA["b"])(r,"color")),e.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:Object(w["P"])(a.get("symbolOffset",!0),y[o?0:1]),symbolRotate:Object(w["P"])(a.get("symbolRotate",!0),f[o?0:1]),symbolSize:Object(w["P"])(a.get("symbolSize"),g[o?0:1]),symbol:Object(w["P"])(a.get("symbol",!0),p[o?0:1]),style:s})}Object(w["t"])(p)||(p=[p,p]),Object(w["t"])(g)||(g=[g,g]),Object(w["t"])(f)||(f=[f,f]),Object(w["t"])(y)||(y=[y,y]),c.from.each((function(t){v(u,t,!0),v(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[u.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=u.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(t,"symbolOffset"),fromSymbolRotate:u.getItemVisual(t,"symbolRotate"),fromSymbolSize:u.getItemVisual(t,"symbolSize"),fromSymbol:u.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),c.line.eachItemGraphicEl((function(t){Object(Se["a"])(t).dataModel=e,t.traverse((function(t){Object(Se["a"])(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(MC);function BC(t,e,n){var i;i=t?Object(w["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(w["m"])(Object(w["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var o=new qe(i,n),a=new qe(i,n),r=new qe([],n),s=Object(w["H"])(n.get("data"),Object(w["h"])(PC,e,t,n));t&&(s=Object(w["n"])(s,Object(w["h"])(RC,t)));var l=_C(!!t,i);return o.initData(Object(w["H"])(s,(function(t){return t[0]})),null,l),a.initData(Object(w["H"])(s,(function(t){return t[1]})),null,l),r.initData(Object(w["H"])(s,(function(t){return t[2]}))),r.hasItemOption=!0,{from:o,to:a,line:r}}var GC=VC;function HC(t){t.registerComponentModel(kC),t.registerComponentView(GC),t.registerPreprocessor((function(t){oC(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var FC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(lC),WC=FC,YC=Object(we["o"])(),XC=function(t,e,n,i){var o=i[0],a=i[1];if(o&&a){var r=yC(t,o),s=yC(t,a),l=r.coord,c=s.coord;l[0]=Object(w["O"])(l[0],-1/0),l[1]=Object(w["O"])(l[1],-1/0),c[0]=Object(w["O"])(c[0],1/0),c[1]=Object(w["O"])(c[1],1/0);var u=Object(w["J"])([{},r,s]);return u.coord=[r.coord,s.coord],u.x0=r.x,u.y0=r.y,u.x1=s.x,u.y1=s.y,u}};function ZC(t){return!isNaN(t)&&!isFinite(t)}function UC(t,e,n,i){var o=1-t;return ZC(e[o])&&ZC(n[o])}function qC(t,e){var n=e.coord[0],i=e.coord[1],o={coord:n,x:e.x0,y:e.y0},a={coord:i,x:e.x1,y:e.y1};return si(t,"cartesian2d")?!(!n||!i||!UC(1,n,i,t)&&!UC(0,n,i,t))||xC(t,o,a):bC(t,o)||bC(t,a)}function KC(t,e,n,i,o){var a,r=i.coordinateSystem,s=t.getItemModel(e),l=ii["o"](s.get(n[0]),o.getWidth()),c=ii["o"](s.get(n[1]),o.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=r.clampData(u),p=r.clampData(h),g=[];"x0"===n[0]?g[0]=d[0]>p[0]?h[0]:u[0]:g[0]=d[0]>p[0]?u[0]:h[0],"y0"===n[1]?g[1]=d[1]>p[1]?h[1]:u[1]:g[1]=d[1]>p[1]?u[1]:h[1],a=i.getMarkerPosition(g,n,!0)}else{var f=t.get(n[0],e),y=t.get(n[1],e),v=[f,y];r.clampData&&r.clampData(v,v),a=r.dataToPoint(v,!0)}if(si(r,"cartesian2d")){var m=r.getAxis("x"),b=r.getAxis("y");f=t.get(n[0],e),y=t.get(n[1],e);ZC(f)?a[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):ZC(y)&&(a[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c)}else a=[l,c];return a}var JC=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],$C=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=lC.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var o=Object(w["H"])(JC,(function(o){return KC(i,e,o,t,n)}));i.setItemLayout(e,o);var a=i.getItemGraphicEl(e);a.setShape("points",o)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var o=t.coordinateSystem,a=t.id,r=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,{group:new bn["a"]});this.group.add(l.group),this.markKeep(l);var c=QC(o,t,e);e.setData(c),c.each((function(e){var n=Object(w["H"])(JC,(function(n){return KC(c,e,n,t,i)})),a=o.getAxis("x").scale,s=o.getAxis("y").scale,l=a.getExtent(),u=s.getExtent(),h=[a.parse(c.get("x0",e)),a.parse(c.get("x1",e))],d=[s.parse(c.get("y0",e)),s.parse(c.get("y1",e))];ii["c"](h),ii["c"](d);var p=!(l[0]>h[1]||l[1]<h[0]||u[0]>d[1]||u[1]<d[0]),g=!p;c.setItemLayout(e,{points:n,allClipped:g});var f=c.getItemModel(e).getModel("itemStyle").getItemStyle(),y=Object(tA["b"])(r,"color");f.fill||(f.fill=y,Object(w["C"])(f.fill)&&(f.fill=ct["f"](f.fill,.4))),f.stroke||(f.stroke=y),c.setItemVisual(e,"style",f)})),c.diff(YC(l).data).add((function(t){var e=c.getItemLayout(t);if(!e.allClipped){var n=new Sl["a"]({shape:{points:e.points}});c.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var i=YC(l).data.getItemGraphicEl(n),o=c.getItemLayout(t);o.allClipped?i&&l.group.remove(i):(i?On["h"](i,{shape:{points:o.points}},e,t):i=new Sl["a"]({shape:{points:o.points}}),c.setItemGraphicEl(t,i),l.group.add(i))})).remove((function(t){var e=YC(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),c.eachItemGraphicEl((function(t,n){var i=c.getItemModel(n),o=c.getItemVisual(n,"style");t.useStyle(c.getItemVisual(n,"style")),Object(jn["g"])(t,Object(jn["e"])(i),{labelFetcher:e,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(w["C"])(o.fill)?ct["f"](o.fill,1):"#000"}),Object(Sn["I"])(t,i),Object(Sn["J"])(t,null,null,i.get(["emphasis","disabled"])),Object(Se["a"])(t).dataModel=e})),YC(l).data=c,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(MC);function QC(t,e,n){var i,o,a=["x0","y0","x1","y1"];if(t){var r=Object(w["H"])(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return Object(w["m"])(Object(w["m"])({},i),{name:t,ordinalMeta:null})}));o=Object(w["H"])(a,(function(t,e){return{name:t,type:r[e%2].type}})),i=new qe(o,n)}else o=[{name:"value",type:"float"}],i=new qe(o,n);var s=Object(w["H"])(n.get("data"),Object(w["h"])(XC,e,t,n));t&&(s=Object(w["n"])(s,Object(w["h"])(qC,t)));var l=t?function(t,e,n,i){var a=t.coord[Math.floor(i/2)][i%2];return Object(hC["d"])(a,o[i])}:function(t,e,n,i){return Object(hC["d"])(t.value,o[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}var tD=$C;function eD(t){t.registerComponentModel(WC),t.registerComponentView(tD),t.registerPreprocessor((function(t){oC(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var nD=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},iD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(le["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),w["t"](e)&&w["k"](e,(function(t,i){w["C"](t)&&(t={type:t}),e[i]=w["I"](t,nD(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var o,a=i.name;if(n.push(a),i.legendVisualProvider){var r=i.legendVisualProvider,s=r.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):o=!0}else o=!0;o&&Object(we["n"])(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,o=w["f"](),a=w["H"](i,(function(t){return(w["C"](t)||w["z"](t))&&(t={name:t}),o.get(t.name)?null:(o.set(t.name,!0),new ce["a"](t,this,this.ecModel))}),this);this._data=w["n"](a,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;w["k"](i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;w["k"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;w["k"](t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&w["r"](this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Oa["a"]),oD=iD,aD=w["h"],rD=w["k"],sD=bn["a"],lD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(le["a"])(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new sD),this.group.add(this._selectorGroup=new sD),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),a=t.get("orient");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===a?"right":"left");var r=t.get("selector",!0),s=t.get("selectorPosition",!0);!r||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(o,t,e,n,r,a,s);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=t.get("padding"),h=Eo["g"](l,c,u),d=this.layoutInner(t,o,h,i,r,s),p=Eo["g"](w["i"]({width:d.width,height:d.height},l),c,u);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=cI(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,o,a,r){var s=this.getContentGroup(),l=w["f"](),c=e.get("selectedMode"),u=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&u.push(t.id)})),rD(e.getData(),(function(o,a){var r=o.get("name");if(!this.newlineDisabled&&(""===r||"\n"===r)){var h=new sD;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(r)[0];if(!l.get(r)){if(d){var p=d.getData(),g=p.getVisual("legendLineStyle")||{},f=p.getVisual("legendIcon"),y=p.getVisual("style"),v=this._createItem(d,r,a,o,e,t,g,y,f,c,i);v.on("click",aD(hD,r,null,i,u)).on("mouseover",aD(pD,d.name,null,i,u)).on("mouseout",aD(gD,d.name,null,i,u)),n.ssr&&v.eachChild((function(t){var e=Object(Se["a"])(t);e.seriesIndex=d.seriesIndex,e.dataIndex=a,e.ssrType="legend"})),l.set(r,!0)}else n.eachRawSeries((function(s){if(!l.get(r)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(r))return;var d=h.indexOfName(r),p=h.getItemVisual(d,"style"),g=h.getItemVisual(d,"legendIcon"),f=Object(ct["h"])(p.fill);f&&0===f[3]&&(f[3]=.2,p=w["m"](w["m"]({},p),{fill:Object(ct["i"])(f,"rgba")}));var y=this._createItem(s,r,a,o,e,t,{},p,g,c,i);y.on("click",aD(hD,null,r,i,u)).on("mouseover",aD(pD,null,r,i,u)).on("mouseout",aD(gD,null,r,i,u)),n.ssr&&y.eachChild((function(t){var e=Object(Se["a"])(t);e.seriesIndex=s.seriesIndex,e.dataIndex=a,e.ssrType="legend"})),l.set(r,!0)}}),this);0}}),this),o&&this._createSelector(o,e,i,a,r)},e.prototype._createSelector=function(t,e,n,i,o){var a=this.getSelectorGroup();rD(t,(function(t){var i=t.type,o=new st["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(o);var r=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Object(jn["g"])(o,{normal:r,emphasis:s},{defaultText:t.title}),Object(Sn["o"])(o)}))},e.prototype._createItem=function(t,e,n,i,o,a,r,s,l,c,u){var h=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(e),f=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),v=i.get("icon");l=v||l||"roundRect";var m=cD(l,i,r,s,h,g,u),b=new sD,x=i.getModel("textStyle");if(!w["w"](t.getLegendIcon)||v&&"inherit"!==v){var _="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0;b.add(uD({itemWidth:d,itemHeight:p,icon:l,iconRotate:_,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}))}else b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:f,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));var O="left"===a?d+5:-5,S=a,M=o.get("formatter"),I=e;w["C"](M)&&M?I=M.replace("{name}",null!=e?e:""):w["w"](M)&&(I=M(e));var j=g?x.getTextColor():i.get("inactiveColor");b.add(new st["a"]({style:Object(jn["c"])(x,{text:I,x:O,y:p/2,fill:j,align:S,verticalAlign:"middle"},{inheritColor:j})}));var A=new ei["a"]({shape:b.getBoundingRect(),style:{fill:"transparent"}}),C=i.getModel("tooltip");return C.get("show")&&wn["setTooltipConfig"]({el:A,componentModel:o,itemName:e,itemTooltipOption:C.option}),b.add(A),b.eachChild((function(t){t.silent=!0})),A.silent=!c,this.getContentGroup().add(b),Object(Sn["o"])(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,i,o,a){var r=this.getContentGroup(),s=this.getSelectorGroup();Eo["b"](t.get("orient"),r,t.get("itemGap"),n.width,n.height);var l=r.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),r.markRedraw(),o){Eo["b"]("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",f=0===p?"height":"width",y=0===p?"y":"x";"end"===a?h[p]+=l[g]+d:c[p]+=u[g]+d,h[1-p]+=l[f]/2-u[f]/2,s.x=h[0],s.y=h[1],r.x=c[0],r.y=c[1];var v={x:0,y:0};return v[g]=l[g]+d+u[g],v[f]=Math.max(l[f],u[f]),v[y]=Math.min(0,u[y]+h[1-p]),v}return r.x=c[0],r.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(_a["a"]);function cD(t,e,n,i,o,a,r){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),rD(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),c=l.getItemStyle(),u=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");c.decal=h&&"inherit"!==h?Object(_u["a"])(h,r):i.decal,"inherit"===c.fill&&(c.fill=i[o]),"inherit"===c.stroke&&(c.stroke=i[u]),"inherit"===c.opacity&&(c.opacity=("fill"===o?i:n).opacity),s(c,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!a){var g=e.get("inactiveBorderWidth"),f=c[u];c.lineWidth="auto"===g?i.lineWidth>0&&f?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function uD(t){var e=t.icon||"roundRect",n=Object(mn["a"])(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 hD(t,e,n,i){gD(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),pD(t,e,n,i)}function dD(t){var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;while(i<o&&!(e=n[i].states.emphasis))i++;return e&&e.hoverLayer}function pD(t,e,n,i){dD(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function gD(t,e,n,i){dD(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var fD=lD;function yD(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 vD(t,e,n){var i,o={},a="toggleSelected"===t;return n.eachComponent("legend",(function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var r=n.getData();Object(w["k"])(r,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);o.hasOwnProperty(e)?o[e]=o[e]&&i:o[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function mD(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(w["h"])(vD,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(w["h"])(vD,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(w["h"])(vD,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(w["h"])(vD,"select")),t.registerAction("legendUnSelect","legendunselected",Object(w["h"])(vD,"unSelect"))}function bD(t){t.registerComponentModel(oD),t.registerComponentView(fD),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,yD),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),mD(t)}var xD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var o=Object(Eo["f"])(e);t.prototype.init.call(this,e,n,i),_D(this,e,o)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),_D(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Object(Ki["d"])(oD.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(oD);function _D(t,e,n){var i=t.getOrient(),o=[1,1];o[i.index]=0,Object(Eo["h"])(e,n,{type:"box",ignoreSize:!!o})}var OD=xD,wD=bn["a"],SD=["width","height"],MD=["x","y"],ID=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Object(le["a"])(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new wD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new wD)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,o,a,r,s){var l=this;t.prototype.renderInner.call(this,e,n,i,o,a,r,s);var c=this._controllerGroup,u=n.get("pageIconSize",!0),h=w["t"](u)?u:[u,u];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",a=wn["createIcon"](n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:w["c"](l._pageGo,l,i,n,o)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});a.name=t,c.add(a)}c.add(new st["a"]({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,o,a){var r=this.getSelectorGroup(),s=t.getOrient().index,l=SD[s],c=MD[s],u=SD[1-s],h=MD[1-s];o&&Eo["b"]("horizontal",r,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=r.getBoundingRect(),g=[-p.x,-p.y],f=w["d"](n);o&&(f[l]=n[l]-p[l]-d);var y=this._layoutContentAndController(t,i,f,s,l,u,h,c);if(o){if("end"===a)g[s]+=y[l]+d;else{var v=p[l]+d;g[s]-=v,y[c]-=v}y[l]+=p[l]+d,g[1-s]+=y[h]+y[u]/2-p[u]/2,y[u]=Math.max(y[u],p[u]),y[h]=Math.min(y[h],p[h]+g[1-s]),r.x=g[0],r.y=g[1],r.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,i,o,a,r,s){var l=this.getContentGroup(),c=this._containerGroup,u=this._controllerGroup;Eo["b"](t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Eo["b"]("horizontal",u,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=u.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];e||(g[i]=l[s]);var f=[0,0],y=[-d.x,-d.y],v=w["P"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var m=t.get("pageButtonPosition",!0);"end"===m?y[i]+=n[o]-d[o]:f[i]+=d[o]+v}y[1-i]+=h[a]/2-d[a]/2,l.setPosition(g),c.setPosition(f),u.setPosition(y);var b={x:0,y:0};if(b[o]=p?n[o]:h[o],b[a]=Math.max(h[a],d[a]),b[r]=Math.min(0,d[r]+y[1-i]),c.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-v,0),x[a]=b[a],c.setClipPath(new ei["a"]({shape:x})),c.__rectSize=x[o]}else u.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&On["h"](l,{x:_.contentPosition[0],y:_.contentPosition[1]},p?t:null),this._updatePageInfoView(t,_),b},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;w["k"](["pagePrev","pageNext"],(function(i){var o=i+"DataIndex",a=null!=e[o],r=n.childOfName(i);r&&(r.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")}));var i=n.childOfName("pageText"),o=t.get("pageFormatter"),a=e.pageIndex,r=null!=a?a+1:0,s=e.pageCount;i&&o&&i.setStyle("text",w["C"](o)?o.replace("{current}",null==r?"":r+"").replace("{total}",null==s?"":s+""):o({current:r,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,a=SD[o],r=MD[o],s=this._findTargetItemIndex(e),l=n.children(),c=l[s],u=l.length,h=u?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=m(c);d.contentPosition[o]=-p.s;for(var g=s+1,f=p,y=p,v=null;g<=u;++g)v=m(l[g]),(!v&&y.e>f.s+i||v&&!b(v,f.s))&&(f=y.i>f.i?y:v,f&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=f.i),++d.pageCount)),y=v;for(g=s-1,f=p,y=p,v=null;g>=-1;--g)v=m(l[g]),v&&b(y,v.s)||!(f.i<y.i)||(y=f,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=f.i),++d.pageCount,++d.pageIndex),f=v;return d;function m(t){if(t){var e=t.getBoundingRect(),n=e[r]+t[r];return{s:n,e:n+e[a],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,o){var a=i.__legendDataIndex;null==n&&null!=a&&(n=o),a===t&&(e=o)})),null!=e?e:n},e.type="legend.scroll",e}(fD),jD=ID;function AD(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 CD(t){Object(l["a"])(bD),t.registerComponentModel(OD),t.registerComponentView(jD),AD(t)}function DD(t){Object(l["a"])(bD),Object(l["a"])(CD)}var TD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="dataZoom.inside",e.defaultOption=Object(Ki["d"])(zM.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(zM),kD=TD,LD=Object(we["o"])();function PD(t,e,n){LD(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function ND(t,e){for(var n=LD(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var a=i[o],r=n.get(a),s=r.dataZoomInfoMap;if(s){var l=e.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||ED(n,r))}}}function ED(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function RD(t,e){var n={model:e,containsPoint:Object(w["h"])(VD,e),dispatchAction:Object(w["h"])(zD,t),dataZoomInfoMap:null,controller:null},i=n.controller=new ic(t.getZr());return Object(w["k"])(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(o){if(e.isAvailableBehavior(o.model.option)){var a=(o.getRange||{})[t],r=a&&a(o.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!o.model.get("disabled",!0)&&r&&i.push({dataZoomId:o.model.id,start:r[0],end:r[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function zD(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function VD(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function BD(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return t.each((function(t){var a=t.model,r=!a.get("disabled",!0)&&(!a.get("zoomLock",!0)||"move");i[n+r]>i[n+e]&&(e=r),o=o&&a.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function GD(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=LD(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(w["f"])());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=PM(t);Object(w["k"])(n.infoList,(function(n){var o=n.model.uid,a=i.get(o)||i.set(o,RD(e,n.model)),r=a.dataZoomInfoMap||(a.dataZoomInfoMap=Object(w["f"])());r.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,o=t.dataZoomInfoMap;if(o){var a=o.keys()[0];null!=a&&(e=o.get(a))}if(e){var r=BD(o);n.enable(r.controlType,r.opt),n.setPointerChecker(t.containsPoint),Qi["b"](t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else ED(i,t)}))}))}var HD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return Object(le["a"])(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),PD(i,e,{pan:Object(w["c"])(FD.pan,this),zoom:Object(w["c"])(FD.zoom,this),scrollMove:Object(w["c"])(FD.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ND(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(HM),FD={zoom:function(t,e,n,i){var o=this.range,a=o.slice(),r=t.axisModels[0];if(r){var s=YD[e](null,[i.originX,i.originY],r,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],c=Math.max(1/i.scale,0);a[0]=(a[0]-l)*c+l,a[1]=(a[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return ly(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}},pan:WD((function(t,e,n,i,o,a){var r=YD[i]([a.oldX,a.oldY],[a.newX,a.newY],e,o,n);return r.signal*(t[1]-t[0])*r.pixel/r.pixelLength})),scrollMove:WD((function(t,e,n,i,o,a){var r=YD[i]([0,0],[a.scrollDelta,a.scrollDelta],e,o,n);return r.signal*(t[1]-t[0])*a.scrollDelta}))};function WD(t){return function(e,n,i,o){var a=this.range,r=a.slice(),s=e.axisModels[0];if(s){var l=t(r,s,e,n,i,o);return ly(l,r,[0,100],"all"),this.range=r,a[0]!==r[0]||a[1]!==r[1]?r:void 0}}}var YD={grid:function(t,e,n,i,o){var a=n.axis,r={},s=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(r.pixel=e[0]-t[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=a.inverse?-1:1),r},polar:function(t,e,n,i,o){var a=n.axis,r={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(r.pixel=e[0]-t[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=c[1]-c[0],r.pixelStart=c[0],r.signal=a.inverse?-1:1),r},singleAxis:function(t,e,n,i,o){var a=n.axis,r=o.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=a.inverse?-1:1),s}},XD=HD;function ZD(t){tI(t),t.registerComponentModel(kD),t.registerComponentView(XD),GD(t)}var UD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Object(Ki["d"])(zM.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(zM),qD=UD,KD=ei["a"],JD=7,$D=1,QD=30,tT=7,eT="horizontal",nT="vertical",iT=5,oT=["line","bar","candlestick","scatter"],aT={easing:"cubicOut",duration:100,delay:0},rT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(w["c"])(this._onBrush,this),this._onBrushEnd=Object(w["c"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,o){if(t.prototype.render.apply(this,arguments),Qi["b"](this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();o&&"dataZoom"===o.type&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Qi["a"](this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new bn["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?tT:0,o=this._findCoordRect(),a={width:e.getWidth(),height:e.getHeight()},r=this._orient===eT?{right:a.width-o.x-o.width,top:a.height-QD-JD-i,width:o.width,height:QD}:{right:JD,top:o.y,width:QD,height:o.height},s=Eo["f"](t.option);Object(w["k"])(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=r[t])}));var l=Eo["g"](s,a);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===nT&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),a=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==eT||o?n===eT&&o?{scaleY:r?1:-1,scaleX:-1}:n!==nT||o?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1});var s=t.getBoundingRect([a]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new KD({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new KD({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(w["c"])(this._onClickPanel,this)}),a=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),a=i.getShadowDim&&i.getShadowDim(),r=a&&o.getDimensionInfo(a)?i.getShadowDim():t.otherDim;if(null!=r){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(o!==this._shadowData||r!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var c=o.getDataExtent(r),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var h,d=[0,e[1]],p=[0,e[0]],g=[[e[0],0],[0,0]],f=[],y=p[1]/(o.count()-1),v=0,m=Math.round(o.count()/e[0]);o.each([r],(function(t,e){if(m>0&&e%m)v+=y;else{var n=null==t||isNaN(t)||""===t,i=n?0:Object(ii["k"])(t,c,d,!0);n&&!h&&e?(g.push([g[g.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&h&&(g.push([v,0]),f.push([v,0])),g.push([v,i]),f.push([v,i]),v+=y,h=n}})),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=f}this._shadowData=o,this._shadowDim=r,this._shadowSize=[e[0],e[1]];for(var b=this.dataZoomModel,x=0;x<3;x++){var _=O(1===x);this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}function O(t){var e=b.getModel(t?"selectedDataBackground":"dataBackground"),n=new bn["a"],i=new Sl["a"]({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new Wo["a"]({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(o),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(o,a){var r=t.getAxisProxy(o,a).getTargetSeriesModels();Object(w["k"])(r,(function(t){if(!n&&!(!0!==e&&Object(w["r"])(oT,t.get("type"))<0)){var r,s=i.getComponent(kM(o),a).axis,l=sT(o),c=t.coordinateSystem;null!=l&&c.getOtherAxis&&(r=c.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:o,otherDim:l,otherAxisInverse:r}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],o=this._displayables.sliderGroup,a=this._size,r=this.dataZoomModel,s=this.api,l=r.get("borderRadius")||0,c=r.get("brushSelect"),u=e.filler=new KD({silent:c,style:{fill:r.get("fillerColor")},textConfig:{position:"inside"}});o.add(u),o.add(new KD({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:l},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:$D,fill:"rgba(0,0,0,0)"}})),Object(w["k"])([0,1],(function(e){var a=r.get("handleIcon");!mn["d"][a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=Object(mn["a"])(a,-1,0,2,2,null,!0);s.attr({cursor:lT(this._orient),draggable:!0,drift:Object(w["c"])(this._onDragMove,this,e),ondragend:Object(w["c"])(this._onDragEnd,this),onmouseover:Object(w["c"])(this._showDataInfo,this,!0),onmouseout:Object(w["c"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=r.get("handleSize");this._handleHeight=Object(ii["o"])(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(r.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(Sn["o"])(s);var u=r.get("handleColor");null!=u&&(s.style.fill=u),o.add(n[e]=s);var h=r.getModel("textStyle");t.add(i[e]=new st["a"]({silent:!0,invisible:!0,style:Object(jn["c"])(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=u;if(c){var d=Object(ii["o"])(r.get("moveHandleSize"),a[1]),p=e.moveHandle=new ei["a"]({style:r.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:d}}),g=.8*d,f=e.moveHandleIcon=Object(mn["a"])(r.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);f.silent=!0,f.y=a[1]+d/2-.5,p.ensureState("emphasis").style=r.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(a[1]/2,Math.max(d,10));h=e.moveZone=new ei["a"]({invisible:!0,shape:{y:a[1]-y,height:d+y}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),o.add(p),o.add(f),o.add(h)}h.attr({draggable:!0,cursor:lT(this._orient),drift:Object(w["c"])(this._onDragMove,this,"all"),ondragstart:Object(w["c"])(this._showDataInfo,this,!0),ondragend:Object(w["c"])(this._onDragEnd,this),onmouseover:Object(w["c"])(this._showDataInfo,this,!0),onmouseout:Object(w["c"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Object(ii["k"])(t[0],[0,100],e,!0),Object(ii["k"])(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100];ly(e,i,o,n.get("zoomLock")?"all":t,null!=a.minSpan?Object(ii["k"])(a.minSpan,r,o,!0):null,null!=a.maxSpan?Object(ii["k"])(a.maxSpan,r,o,!0):null);var s=this._range,l=this._range=Object(ii["c"])([Object(ii["k"])(i[0],o,r,!0),Object(ii["k"])(i[1],o,r,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Object(ii["c"])(n.slice()),o=this._size;Object(w["k"])([0,1],(function(t){var i=e.handles[t],a=this._handleHeight;i.attr({scaleX:a/2,scaleY:a/2,x:n[t]+(t?-1:1),y:o[1]/2-a/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var a={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(a),e.moveZone.setShape(a),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",a.x+a.width/2));for(var r=e.dataShadowSegs,s=[0,i[0],i[1],o[0]],l=0;l<r.length;l++){var c=r[l],u=c.getClipPath();u||(u=new ei["a"],c.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,a=["",""];if(e.get("showDetail")){var r=e.findRepresentativeAxisProxy();if(r){var s=r.getAxisModel().axis,l=this._range,c=t?r.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:r.getDataValueWindow();a=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=Object(ii["c"])(this._handleEnds.slice());function h(t){var e=wn["getTransform"](n.handles[t].parent,this.group),r=wn["transformDirection"](0===t?"right":"left",e),s=this._handleWidth/2+iT,l=wn["applyTransform"]([u[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:o===eT?"middle":r,align:o===eT?r:"center",text:a[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return Object(w["w"])(i)?i(t,a):Object(w["C"])(i)?i.replace("{value}",a):a},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Xl["g"](i.event);var o=this._displayables.sliderGroup.getLocalTransform(),a=wn["applyTransform"]([e,n],o,!0),r=this._updateInterval(t,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),r&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-o);this._updateView(),a&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Yo["a"](e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),a=[0,100];this._range=Object(ii["c"])([Object(ii["k"])(n.x,o,a,!0),Object(ii["k"])(n.x+n.width,o,a,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Xl["g"](t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new KD({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var a=this._brushStart,r=this._displayables.sliderGroup,s=r.transformCoordToLocal(t,e),l=r.transformCoordToLocal(a.x,a.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),o.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?aT:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=PM(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return t},e.type="dataZoom.slider",e}(HM);function sT(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function lT(t){return"vertical"===t?"ns-resize":"ew-resize"}var cT=rT;function uT(t){t.registerComponentModel(qD),t.registerComponentView(cT),tI(t)}function hT(t){Object(l["a"])(ZD),Object(l["a"])(uT)}var dT={get:function(t,e,n){var i=w["d"]((pT[t]||{})[e]);return n&&w["t"](i)?i[i.length-1]:i}},pT={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},gT=dT,fT=pp.mapVisual,yT=pp.eachVisual,vT=w["t"],mT=w["k"],bT=ii["c"],xT=ii["k"],_T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(le["a"])(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&oA(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=w["c"](t,this),this.controllerVisuals=iA(this.option.controller,e,t),this.targetVisuals=iA(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=we["r"](t),e},e.prototype.eachTargetSeries=function(t,e){w["k"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,o=this.option,a=o.precision,r=this.dataBound,s=o.formatter;n=n||["<",">"],w["t"](t)&&(t=t.slice(),i=!0);var l=e?t:i?[c(t[0]),c(t[1])]:c(t);return w["C"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):w["w"](s)?i?s(t[0],t[1]):s(t):i?t[0]===r[0]?n[0]+" "+l[1]:t[1]===r[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(t){return t===r[0]?"min":t===r[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=bT([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],a=t.getDimensionInfo(o);if(!a.isCalculationCoord)return a.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),o=e.controller||(e.controller={});w["I"](i,n),w["I"](o,n);var a=this.isCategory();function r(n){vT(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var i=t[e],o=t[n];i&&!o&&(o=t[n]={},mT(i,(function(t,e){if(pp.isValidType(e)){var n=gT.get(e,"inactive",a);null!=n&&(o[e]=n,"color"!==e||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol(),r=o||"roundRect";mT(this.stateList,(function(o){var s=this.itemSize,l=t[o];l||(l=t[o]={color:a?i:[i]}),null==l.symbol&&(l.symbol=e&&w["d"](e)||(a?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&w["d"](n)||(a?s[0]:[s[0],s[0]])),l.symbol=fT(l.symbol,(function(t){return"none"===t?r:t}));var c=l.symbolSize;if(null!=c){var u=-1/0;yT(c,(function(t){t>u&&(u=t)})),l.symbolSize=fT(c,(function(t){return xT(t,[0,u],[0,s[0]],!0)}))}}),this)}r.call(this,i),r.call(this,o),s.call(this,i,"inRange","outOfRange"),l.call(this,o)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Oa["a"]),OT=_T,wT=[20,140],ST=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=wT[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=wT[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):w["t"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),w["k"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=ii["c"]((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=MT(this,"outOfRange",this.getExtent()),n=MT(this,"inRange",this.option.range.slice()),i=[];function o(e,n){i.push({value:e,color:t(e,n)})}for(var a=0,r=0,s=n.length,l=e.length;r<l&&(!n.length||e[r]<=n[0]);r++)e[r]<n[a]&&o(e[r],"outOfRange");for(var c=1;a<s;a++,c=0)c&&i.length&&o(n[a],"outOfRange"),o(n[a],"inRange");for(c=1;r<l;r++)(!n.length||n[n.length-1]<e[r])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(e[r],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Object(Ki["d"])(OT.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(OT);function MT(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,o=(n[1]-n[0])/i,a=n[0],r=[],s=0;s<=i&&a<n[1];s++)r.push(a),a+=o;return r.push(n[1]),r}var IT=ST,jT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(le["a"])(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=li["g"](e.get("padding")||0),i=t.getBoundingRect();t.add(new ei["a"]({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){n=n||{};var i=n.forceState,o=this.visualMapModel,a={};if("color"===e){var r=o.get("contentColor");a.color=r}function s(t){return a[t]}function l(t,e){a[t]=e}var c=o.controllerVisuals[i||o.getValueState(t)],u=pp.prepareVisualTypes(c);return w["k"](u,(function(i){var o=c[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",o=c.__alphaForOpacity),pp.dependsOn(i,e)&&o&&o.applyVisual(t,s,l)})),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Eo["i"](t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(_a["a"]),AT=jT,CT=[["left","right","width"],["top","bottom","height"]];function DT(t,e,n){var i=t.option,o=i.align;if(null!=o&&"auto"!==o)return o;for(var a={width:e.getWidth(),height:e.getHeight()},r="horizontal"===i.orient?1:0,s=CT[r],l=[0,null,10],c={},u=0;u<3;u++)c[CT[1-r][u]]=l[u],c[s[u]]=2===u?n[0]:i[s[u]];var h=[["x","width",3],["y","height",0]][r],d=Object(Eo["g"])(c,a,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*a[h[1]]?0:1]}function TT(t,e){return w["k"](t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var kT=ii["k"],LT=w["k"],PT=Math.min,NT=Math.max,ET=12,RT=6,zT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(le["a"])(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=w["c"](this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=w["c"](this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var o=this.visualMapModel,a=o.get("textGap"),r=o.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([r[0]/2,0===n?-a:r[1]+a],s),c=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new st["a"]({style:Object(jn["c"])(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,a=this._useHandle,r=DT(e,this.api,i),s=n.mainGroup=this._createBarGroup(r),l=new bn["a"];s.add(l),l.add(n.outOfRange=VT()),l.add(n.inRange=VT(null,a?HT(this._orient):null,w["c"](this._dragHandle,this,"all",!1),w["c"](this._dragHandle,this,"all",!0))),l.setClipPath(new ei["a"]({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=e.textStyleModel.getTextRect("国"),u=NT(c.width,c.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,u,o),this._createHandle(e,s,1,i,u,o)),this._createIndicator(e,s,i,u,o),t.add(s)},e.prototype._createHandle=function(t,e,n,i,o,a){var r=w["c"](this._dragHandle,this,n,!1),s=w["c"](this._dragHandle,this,n,!0),l=Object(p["g"])(t.get("handleSize"),i[0]),c=Object(mn["a"])(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),u=HT(this._orient);c.attr({cursor:u,draggable:!0,drift:r,ondragend:s,onmousemove:function(t){Xl["g"](t.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(Sn["F"])(c,!0),e.add(c);var h=this.visualMapModel.textStyleModel,d=new st["a"]({cursor:u,draggable:!0,drift:r,onmousemove:function(t){Xl["g"](t.event)},ondragend:s,style:Object(jn["c"])(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var g=[l,0],f=this._shapes;f.handleThumbs[n]=c,f.handleLabelPoints[n]=g,f.handleLabels[n]=d},e.prototype._createIndicator=function(t,e,n,i,o){var a=Object(p["g"])(t.get("indicatorSize"),n[0]),r=Object(mn["a"])(t.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);r.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(r instanceof d["a"]){var l=r.style;r.useStyle(w["m"]({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else r.useStyle(s);e.add(r);var c=this.visualMapModel.textStyleModel,u=new st["a"]({silent:!0,invisible:!0,style:Object(jn["c"])(c,{x:0,y:0,text:""})});this.group.add(u);var h=[("horizontal"===o?i/2:RT)+n[0]/2,0],g=this._shapes;g.indicator=r,g.indicatorLabel=u,g.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():GT(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[kT(e[0],n,i,!0),kT(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];ly(e,i,o,t,0);var a=n.getExtent();this._dataInterval=[kT(i[0],o,a,!0),kT(i[1],o,a,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,o=[0,e.itemSize[1]],a=t?o:this._handleEnds,r=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:r.barColor}).setShape("points",r.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,r)},e.prototype._createBarVisual=function(t,e,n,i){var o={forceState:i,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,o),r=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],s=this._createBarPoints(n,r);return{barColor:new Wn["a"](0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var a=1;a<n;a++){var r=t[0]+o*a;if(r>t[1])break;i.push({color:this.getControllerVisual(r,"color",e),offset:a/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new bn["a"]("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,a=n.handleLabels,r=i.itemSize,s=i.getExtent();LT([0,1],(function(l){var c=o[l];c.setStyle("fill",e.handlesColor[l]),c.y=t[l];var u=kT(t[l],[0,r[1]],s,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/r[0],c.x=r[0]-h/2;var d=wn["applyTransform"](n.handleLabelPoints[l],wn["getTransform"](c,this.group));a[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var o=this.visualMapModel,a=o.getExtent(),r=o.itemSize,s=[0,r[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",u),d=this.getControllerVisual(t,"symbolSize"),p=kT(t,a,s,!0),g=r[0]-d/2,f={x:c.x,y:c.y};c.y=p,c.x=g;var y=wn["applyTransform"](l.indicatorLabelPoint,wn["getTransform"](c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;v.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:x?m:"middle",align:x?"center":m});var _={x:g,y:p,style:{fill:h}},O={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};c.x=f.x,c.y=f.y,c.animateTo(_,w),v.animateTo(O,w)}else c.attr(_),v.attr(O);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var M=0;M<S.length;M++)this.api.enterBlur(S[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=PT(NT(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],a=n.getExtent();t=PT(NT(o[0],t),o[1]);var r=BT(n,a,o),s=[t-r,t+r],l=kT(t,o,a,!0),c=[kT(s[0],o,a,!0),kT(s[1],o,a,!0)];s[0]<o[0]&&(c[0]=-1/0),s[1]>o[1]&&(c[1]=1/0),e&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",r):c[1]===1/0?this._showIndicator(l,c[0],"> ",r):this._showIndicator(l,l,"≈ ",r));var u=this._hoverLinkDataIndices,h=[];(e||GT(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=we["d"](u,h);this._dispatchHighDown("downplay",TT(d[0],n)),this._dispatchHighDown("highlight",TT(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(Object(ch["a"])(t.target,(function(t){var n=Object(Se["a"])(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(e.dataType),a=o.getStore().get(i.getDataDimensionIndex(o),e.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",TT(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var o=wn["getTransform"](e,i?null:this.group);return w["t"](t)?wn["applyTransform"](t,o,n):wn["transformDirection"](t,o,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(AT);function VT(t,e,n,i){return new Sl["a"]({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Xl["g"](t.event)},ondragend:i})}function BT(t,e,n){var i=ET/2,o=t.get("hoverLinkDataSize");return o&&(i=kT(o,e,n,!0)/2),i}function GT(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function HT(t){return"vertical"===t?"ns-resize":"ew-resize"}var FT=zT,WT={type:"selectDataRange",event:"dataRangeSelected",update:"update"},YT=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},XT=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(rA(e.stateList,e.targetVisuals,w["c"](e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var o=e.getVisualMeta(w["c"](ZT,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(n);a>=0&&(o.dimension=a,i.push(o))}})),t.getData().setVisual("visualMeta",i)}}];function ZT(t,e,n,i){for(var o=e.targetVisuals[i],a=pp.prepareVisualTypes(o),r={color:Object(tA["b"])(t.getData(),"color")},s=0,l=a.length;s<l;s++){var c=a[s],u=o["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,h,d)}return r.color;function h(t){return r[t]}function d(t,e){r[t]=e}}var UT=w["k"];function qT(t){var e=t&&t.visualMap;w["t"](e)||(e=e?[e]:[]),UT(e,(function(t){if(t){KT(t,"splitList")&&!KT(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&w["t"](e)&&UT(e,(function(t){w["A"](t)&&(KT(t,"start")&&!KT(t,"min")&&(t.min=t.start),KT(t,"end")&&!KT(t,"max")&&(t.max=t.end))}))}}))}function KT(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var JT=!1;function $T(t){JT||(JT=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(WT,YT),Object(w["k"])(XT,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(qT))}function QT(t){t.registerComponentModel(IT),t.registerComponentView(FT),$T(t)}var tk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return Object(le["a"])(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],ek[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var o=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=w["d"](o)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=w["H"](this._pieceList,(function(t){return t=w["d"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=pp.listVisualTypes(),o=this.isCategory();function a(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}w["k"](e.pieces,(function(t){w["k"](i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),w["k"](n,(function(t,n){var i=!1;w["k"](this.stateList,(function(t){i=i||a(e,t,n)||a(e.target,t,n)}),this),!i&&w["k"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=gT.get(n,"inRange"===t?"active":"inactive",o)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,o=(e?n:t).selected||{};if(n.selected=o,w["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var a=!1;w["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);o[n]&&(a?o[n]=!1:a=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=w["d"](t)},e.prototype.getValueState=function(t){var e=pp.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var o=[],a=i.getData();a.each(this.getDataDimensionIndex(a),(function(e,i){var a=pp.findPieceIndex(e,n);a===t&&o.push(i)}),this),e.push({seriesId:i.id,dataIndex:o})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),a=o[o.length-1].interval[1],a!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var r=-1/0;return w["k"](o,(function(t){var e=t.interval;e&&(e[0]>r&&s([r,e[0]],"outOfRange"),s(e.slice()),r=e[1])}),this),{stops:e,outerColors:n}}function s(o,a){var r=i.getRepresentValue({interval:o});a||(a=i.getValueState(r));var s=t(r,a);o[0]===-1/0?n[0]=s:o[1]===1/0?n[1]=s:e.push({value:o[0],color:s},{value:o[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Object(Ki["d"])(OT.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(OT),ek={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;var a=(i[1]-i[0])/o;while(+a.toFixed(n)!==a&&n<5)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var r=0,s=i[0];r<o;s+=a,r++){var l=r===o-1?i[1]:s+a;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),Object(ii["s"])(t),w["k"](t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;w["k"](e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),nk(e,t)},pieces:function(t){var e=this.option;w["k"](e.pieces,(function(e,n){w["A"](e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var o=i.value=e.value;i.interval=[o,o],i.close=[1,1]}else{for(var a=i.interval=[],r=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],c=[],u=0;u<2;u++){for(var h=[["gte","gt","min"],["lte","lt","max"]][u],d=0;d<3&&null==a[u];d++)a[u]=e[h[d]],r[u]=s[d],c[u]=2===d;null==a[u]&&(a[u]=l[u])}c[0]&&a[1]===1/0&&(r[0]=0),c[1]&&a[0]===-1/0&&(r[1]=0),a[0]===a[1]&&r[0]&&r[1]&&(i.value=a[0])}i.visual=pp.retrieveVisuals(e),t.push(i)}),this),nk(e,t),Object(ii["s"])(t),w["k"](t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function nk(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var ik=tk,ok=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(le["a"])(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,o=i.getFont(),a=i.getTextColor(),r=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),c=l.endsText,u=w["O"](e.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],s,u,r),w["k"](l.viewPieceList,(function(i){var l=i.piece,c=new bn["a"];c.onclick=w["c"](this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(c,h,[0,0,s[0],s[1]]),u){var d=this.visualMapModel.getValueState(h);c.add(new st["a"]({style:{x:"right"===r?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:r,font:o,fill:a,opacity:"outOfRange"===d?.5:1}}))}t.add(c)}),this),c&&this._renderEndsText(t,c[1],s,u,r),Eo["b"](e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:TT(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return DT(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,o){if(e){var a=new bn["a"],r=this.visualMapModel.textStyleModel;a.add(new st["a"]({style:Object(jn["c"])(r,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e})})),t.add(a)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=w["H"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return("horizontal"===i?o:!o)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(Object(mn["a"])(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var o=w["d"](n.selected),a=e.getSelectedMapKey(t);"single"===i||!0===i?(o[a]=!0,w["k"](o,(function(t,e){o[e]=e===a}))):o[a]=!o[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(AT),ak=ok;function rk(t){t.registerComponentModel(ik),t.registerComponentView(ak),$T(t)}function sk(t){Object(l["a"])(QT),Object(l["a"])(rk)}var lk={label:{enabled:!0},decal:{show:!1}},ck=Object(we["o"])(),uk={};function hk(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=w["d"](lk);w["I"](i.label,t.getLocaleModel().get("aria"),!1),w["I"](n.option,i,!1),o(),a()}function o(){var e=n.getModel("decal"),i=e.get("show");if(i){var o=w["f"]();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=o.get(t.type);e||(e={},o.set(t.type,e)),ck(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(w["w"](e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=Object(vd["b"])(e.ecModel,e.name,uk,t.getSeriesCount()),o=n.getVisual("decal");n.setVisual("decal",c(o,i))}else{var a=e.getRawData(),r={},s=ck(e).scope;n.each((function(t){var e=n.getRawIndex(t);r[e]=t}));var l=a.count();a.each((function(t){var i=r[t],o=a.getName(t)||t+"",u=Object(vd["b"])(e.ecModel,o,s,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(h,u))}))}}function c(t,e){var n=t?w["m"](w["m"]({},e),t):e;return n.dirty=!0,n}}))}}function a(){var i=e.getZr().dom;if(i){var o=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=w["i"](a.option,o),a.get("enabled"))if(a.get("description"))i.setAttribute("aria-label",a.get("description"));else{var c,u=t.getSeriesCount(),h=a.get(["data","maxCount"])||10,d=a.get(["series","maxCount"])||10,p=Math.min(u,d);if(!(u<1)){var g=s();if(g){var f=a.get(["general","withTitle"]);c=r(f,{title:g})}else c=a.get(["general","withoutTitle"]);var y=[],v=u>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);c+=r(v,{seriesCount:u}),t.eachSeries((function(t,e){if(e<p){var n=void 0,i=t.get("name"),o=i?"withName":"withoutName";n=u>1?a.get(["series","multiple",o]):a.get(["series","single",o]),n=r(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>h){var c=a.get(["data","partialData"]);n+=r(c,{displayCnt:h})}else n+=a.get(["data","allData"]);for(var d=a.get(["data","separator","middle"]),g=a.get(["data","separator","end"]),f=[],v=0;v<s.count();v++)if(v<h){var m=s.getName(v),b=s.getValues(v),x=a.get(["data",m?"withName":"withoutName"]);f.push(r(x,{name:m,value:b.join(d)}))}n+=f.join(d)+g,y.push(n)}}));var m=a.getModel(["series","multiple","separator"]),b=m.get("middle"),x=m.get("end");c+=y.join(b)+x,i.setAttribute("aria-label",c)}}}}function r(t,e){if(!w["C"](t))return t;var n=t;return w["k"](e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function s(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function l(e){var n=t.getLocaleModel().get(["series","typeNames"]);return n[e]||n.chart}}function dk(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},w["k"](["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function pk(t){t.registerPreprocessor(dk),t.registerVisual(t.PRIORITY.VISUAL.ARIA,hk)}var gk={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},fk=function(){function t(t){var e=this._condVal=Object(w["C"])(t)?new RegExp(t):Object(w["B"])(t)?t:null;if(null==e){var n="";0,Object(qd["c"])(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(w["C"])(e)?this._condVal.test(t):!!Object(w["z"])(e)&&this._condVal.test(t+"")},t}(),yk=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),vk=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),mk=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),bk=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),xk=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(t?i:n))return!1;return!0},t}();function _k(t,e){if(!0===t||!1===t){var n=new yk;return n.value=t,n}var i="";return Mk(t)||Object(qd["c"])(i),t.and?Ok("and",t,e):t.or?Ok("or",t,e):t.not?wk(t,e):Sk(t,e)}function Ok(t,e,n){var i=e[t],o="";Object(w["t"])(i)||Object(qd["c"])(o),i.length||Object(qd["c"])(o);var a="and"===t?new vk:new mk;return a.children=Object(w["H"])(i,(function(t){return _k(t,n)})),a.children.length||Object(qd["c"])(o),a}function wk(t,e){var n=t.not,i="";Mk(n)||Object(qd["c"])(i);var o=new bk;return o.child=_k(n,e),o.child||Object(qd["c"])(i),o}function Sk(t,e){for(var n="",i=e.prepareGetValue(t),o=[],a=Object(w["F"])(t),r=t.parser,s=r?Object(hC["c"])(r):null,l=0;l<a.length;l++){var c=a[l];if("parser"!==c&&!e.valueGetterAttrMap.get(c)){var u=Object(w["q"])(gk,c)?gk[c]:c,h=t[c],d=s?s(h):h,p=Object(hC["b"])(u,d)||"reg"===u&&new fk(d);p||Object(qd["c"])(n),o.push(p)}}o.length||Object(qd["c"])(n);var g=new xk;return g.valueGetterParam=i,g.valueParser=s,g.getValue=e.getValue,g.subCondList=o,g}function Mk(t){return Object(w["A"])(t)&&!Object(w["u"])(t)}var Ik=function(){function t(t,e){this._cond=_k(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function jk(t,e){return new Ik(t,e)}var Ak={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,i=jk(t.config,{valueGetterAttrMap:Object(w["f"])({dimension:!0}),prepareGetValue:function(t){var e="",i=t.dimension;Object(w["q"])(t,"dimension")||Object(qd["c"])(e);var o=n.getDimensionInfo(i);return o||Object(qd["c"])(e),{dimIdx:o.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),o=[],a=0,r=n.count();a<r;a++)e=n.getRawDataItem(a),i.evaluate()&&o.push(e);return{data:o}}};var Ck={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",o=Object(we["r"])(n);o.length||Object(qd["c"])(i);var a=[];Object(w["k"])(o,(function(t){var n=t.dimension,o=t.order,r=t.parser,s=t.incomparable;if(null==n&&Object(qd["c"])(i),"asc"!==o&&"desc"!==o&&Object(qd["c"])(i),s&&"min"!==s&&"max"!==s){var l="";0,Object(qd["c"])(l)}if("asc"!==o&&"desc"!==o){var c="";0,Object(qd["c"])(c)}var u=e.getDimensionInfo(n);u||Object(qd["c"])(i);var h=r?Object(hC["c"])(r):null;r&&!h&&Object(qd["c"])(i),a.push({dimIdx:u.index,parser:h,comparator:new hC["a"](o,s)})}));var r=e.sourceFormat;r!==fe["c"]&&r!==fe["e"]&&Object(qd["c"])(i);for(var s=[],l=0,c=e.count();l<c;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<a.length;i++){var o=a[i],r=e.retrieveValueFromItem(t,o.dimIdx),s=e.retrieveValueFromItem(n,o.dimIdx);o.parser&&(r=o.parser(r),s=o.parser(s));var l=o.comparator.evaluate(r,s);if(0!==l)return l}return 0})),{data:s}}};function Dk(t){t.registerTransform(Ak),t.registerTransform(Ck)}var Tk=n("5e81"),kk=Z["a"].CMD;function Lk(t,e){return Math.abs(t-e)<1e-5}function Pk(t){var e,n,i,o,a,r=t.data,s=t.len(),l=[],c=0,u=0,h=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function g(t,n,i,o){Lk(t,i)&&Lk(n,o)||e.push(t,n,i,o,i,o)}function f(t,n,i,o,a,r){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,c=n<t?-1:1,u=Math.cos(t),h=Math.sin(t),d=Math.cos(n),p=Math.sin(n),g=u*a+i,f=h*r+o,y=d*a+i,v=p*r+o,m=a*l*c,b=r*l*c;e.push(g-m*h,f+b*u,y+m*p,v-b*d,y,v)}for(var y=0;y<s;){var v=r[y++],m=1===y;switch(m&&(c=r[y],u=r[y+1],h=c,d=u,v!==kk.L&&v!==kk.C&&v!==kk.Q||(e=[h,d])),v){case kk.M:c=h=r[y++],u=d=r[y++],p(h,d);break;case kk.L:n=r[y++],i=r[y++],g(c,u,n,i),c=n,u=i;break;case kk.C:e.push(r[y++],r[y++],r[y++],r[y++],c=r[y++],u=r[y++]);break;case kk.Q:n=r[y++],i=r[y++],o=r[y++],a=r[y++],e.push(c+2/3*(n-c),u+2/3*(i-u),o+2/3*(n-o),a+2/3*(i-a),o,a),c=o,u=a;break;case kk.A:var b=r[y++],x=r[y++],_=r[y++],O=r[y++],w=r[y++],S=r[y++]+w;y+=1;var M=!r[y++];n=Math.cos(w)*_+b,i=Math.sin(w)*O+x,m?(h=n,d=i,p(h,d)):g(c,u,n,i),c=Math.cos(S)*_+b,u=Math.sin(S)*O+x;for(var I=(M?-1:1)*Math.PI/2,j=w;M?j>S:j<S;j+=I){var A=M?Math.max(j+I,S):Math.min(j+I,S);f(j,A,b,x,_,O)}break;case kk.R:h=c=r[y++],d=u=r[y++],n=h+r[y++],i=d+r[y++],p(n,d),g(n,d,n,i),g(n,i,h,i),g(h,i,h,d),g(h,d,n,d);break;case kk.Z:e&&g(c,u,h,d),c=h,u=d;break}}return e&&e.length>2&&l.push(e),l}function Nk(t,e,n,i,o,a,r,s,l,c){if(Lk(t,n)&&Lk(e,i)&&Lk(o,r)&&Lk(a,s))l.push(r,s);else{var u=2/c,h=u*u,d=r-t,p=s-e,g=Math.sqrt(d*d+p*p);d/=g,p/=g;var f=n-t,y=i-e,v=o-r,m=a-s,b=f*f+y*y,x=v*v+m*m;if(b<h&&x<h)l.push(r,s);else{var _=d*f+p*y,O=-d*v-p*m,w=b-_*_,S=x-O*O;if(w<h&&_>=0&&S<h&&O>=0)l.push(r,s);else{var M=[],I=[];Object(Yn["g"])(t,n,o,r,.5,M),Object(Yn["g"])(e,i,a,s,.5,I),Nk(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,c),Nk(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,c)}}}}function Ek(t,e){var n=Pk(t),i=[];e=e||1;for(var o=0;o<n.length;o++){var a=n[o],r=[],s=a[0],l=a[1];r.push(s,l);for(var c=2;c<a.length;){var u=a[c++],h=a[c++],d=a[c++],p=a[c++],g=a[c++],f=a[c++];Nk(s,l,u,h,d,p,g,f,r,e),s=g,l=f}i.push(r)}return i}function Rk(t,e,n){var i=t[e],o=t[1-e],a=Math.abs(i/o),r=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/r);0===s&&(s=1,r=n);for(var l=[],c=0;c<r;c++)l.push(s);var u=r*s,h=n-u;if(h>0)for(c=0;c<h;c++)l[c%r]+=1;return l}function zk(t,e,n){for(var i=t.r0,o=t.r,a=t.startAngle,r=t.endAngle,s=Math.abs(r-a),l=s*o,c=o-i,u=l>Math.abs(c),h=Rk([l,c],u?0:1,e),d=(u?s:c)/h.length,p=0;p<h.length;p++)for(var g=(u?c:s)/h[p],f=0;f<h[p];f++){var y={};u?(y.startAngle=a+d*p,y.endAngle=a+d*(p+1),y.r0=i+g*f,y.r=i+g*(f+1)):(y.startAngle=a+g*f,y.endAngle=a+g*(f+1),y.r0=i+d*p,y.r=i+d*(p+1)),y.clockwise=t.clockwise,y.cx=t.cx,y.cy=t.cy,n.push(y)}}function Vk(t,e,n){for(var i=t.width,o=t.height,a=i>o,r=Rk([i,o],a?0:1,e),s=a?"width":"height",l=a?"height":"width",c=a?"x":"y",u=a?"y":"x",h=t[s]/r.length,d=0;d<r.length;d++)for(var p=t[l]/r[d],g=0;g<r[d];g++){var f={};f[c]=d*h,f[u]=g*p,f[s]=h,f[l]=p,f.x+=t.x,f.y+=t.y,n.push(f)}}function Bk(t,e,n,i){return t*i-n*e}function Gk(t,e,n,i,o,a,r,s){var l=n-t,c=i-e,u=r-o,h=s-a,d=Bk(u,h,l,c);if(Math.abs(d)<1e-6)return null;var p=t-o,g=e-a,f=Bk(p,g,u,h)/d;return f<0||f>1?null:new Yo["a"](f*l+t,f*c+e)}function Hk(t,e,n){var i=new Yo["a"];Yo["a"].sub(i,n,e),i.normalize();var o=new Yo["a"];Yo["a"].sub(o,t,e);var a=o.dot(i);return a}function Fk(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function Wk(t,e,n){for(var i=t.length,o=[],a=0;a<i;a++){var r=t[a],s=t[(a+1)%i],l=Gk(r[0],r[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&o.push({projPt:Hk(l,e,n),pt:l,idx:a})}if(o.length<2)return[{points:t},{points:t}];o.sort((function(t,e){return t.projPt-e.projPt}));var c=o[0],u=o[o.length-1];if(u.idx<c.idx){var h=c;c=u,u=h}var d=[c.pt.x,c.pt.y],p=[u.pt.x,u.pt.y],g=[d],f=[p];for(a=c.idx+1;a<=u.idx;a++)Fk(g,t[a].slice());Fk(g,p),Fk(g,d);for(a=u.idx+1;a<=c.idx+i;a++)Fk(f,t[a%i].slice());return Fk(f,d),Fk(f,p),[{points:g},{points:f}]}function Yk(t){var e=t.points,n=[],i=[];Object(Ch["d"])(e,n,i);var o=new pa["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),a=o.width,r=o.height,s=o.x,l=o.y,c=new Yo["a"],u=new Yo["a"];return a>r?(c.x=u.x=s+a/2,c.y=l,u.y=l+r):(c.y=u.y=l+r/2,c.x=s,u.x=s+a),Wk(e,c,u)}function Xk(t,e,n,i){if(1===n)i.push(e);else{var o=Math.floor(n/2),a=t(e);Xk(t,a[0],o,i),Xk(t,a[1],n-o,i)}return i}function Zk(t,e){for(var n=[],i=0;i<e;i++)n.push(Object(uc["a"])(t));return n}function Uk(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function qk(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function Kk(t,e){var n,i=[],o=t.shape;switch(t.type){case"rect":Vk(o,e,i),n=ei["a"];break;case"sector":zk(o,e,i),n=ni["a"];break;case"circle":zk({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},e,i),n=ni["a"];break;default:var a=t.getComputedTransform(),r=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Object(w["H"])(Ek(t.getUpdatedPathProxy(),r),(function(t){return qk(t)})),l=s.length;if(0===l)Xk(Yk,{points:s[0]},e,i);else if(l===e)for(var c=0;c<l;c++)i.push({points:s[c]});else{var u=0,h=Object(w["H"])(s,(function(t){var e=[],n=[];Object(Ch["d"])(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return u+=i,{poly:t,area:i}}));h.sort((function(t,e){return e.area-t.area}));var d=e;for(c=0;c<l;c++){var p=h[c];if(d<=0)break;var g=c===l-1?d:Math.ceil(p.area/u*e);g<0||(Xk(Yk,{points:p.poly},g,i),d-=g)}}n=Sl["a"];break}if(!n)return Zk(t,e);var f=[];for(c=0;c<i.length;c++){var y=new n;y.setShape(i[c]),Uk(t,y),f.push(y)}return f}function Jk(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var o=[],a=[],r=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,h=[r[0],r[1]],d=l,p=2;p<s;){var g=r[p-2],f=r[p-1],y=r[p++],v=r[p++],m=r[p++],b=r[p++],x=r[p++],_=r[p++];if(d<=0)h.push(y,v,m,b,x,_);else{for(var O=Math.min(d,u-1)+1,w=1;w<=O;w++){var S=w/O;Object(Yn["g"])(g,y,m,x,S,o),Object(Yn["g"])(f,v,b,_,S,a),g=o[3],f=a[3],h.push(o[1],a[1],o[2],a[2],g,f),y=o[5],v=a[5],m=o[6],b=a[6]}d-=O-1}}return r===t?[h,e]:[t,h]}function $k(t,e){for(var n=t.length,i=t[n-2],o=t[n-1],a=[],r=0;r<e.length;)a[r++]=i,a[r++]=o;return a}function Qk(t,e){for(var n,i,o,a=[],r=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],c=e[s],u=void 0,h=void 0;l?c?(n=Jk(l,c),u=n[0],h=n[1],i=u,o=h):(h=$k(o||l,l),u=l):(u=$k(i||c,c),h=c),a.push(u),r.push(h)}return[a,r]}function tL(t){for(var e=0,n=0,i=0,o=t.length,a=0,r=o-2;a<o;r=a,a+=2){var s=t[r],l=t[r+1],c=t[a],u=t[a+1],h=s*u-c*l;e+=h,n+=(s+c)*h,i+=(l+u)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function eL(t,e,n,i){for(var o=(t.length-2)/6,a=1/0,r=0,s=t.length,l=s-2,c=0;c<o;c++){for(var u=6*c,h=0,d=0;d<s;d+=2){var p=0===d?u:(u+d-2)%l+2,g=t[p]-n[0],f=t[p+1]-n[1],y=e[d]-i[0],v=e[d+1]-i[1],m=y-g,b=v-f;h+=m*m+b*b}h<a&&(a=h,r=c)}return r}function nL(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function iL(t,e,n,i){for(var o,a=[],r=0;r<t.length;r++){var s=t[r],l=e[r],c=tL(s),u=tL(l);null==o&&(o=c[2]<0!==u[2]<0);var h=[],d=[],p=0,g=1/0,f=[],y=s.length;o&&(s=nL(s));for(var v=6*eL(s,l,c,u),m=y-2,b=0;b<m;b+=2){var x=(v+b)%m+2;h[b+2]=s[x]-c[0],h[b+3]=s[x+1]-c[1]}if(h[0]=s[v]-c[0],h[1]=s[v+1]-c[1],n>0)for(var _=i/n,O=-i/2;O<=i/2;O+=_){var w=Math.sin(O),S=Math.cos(O),M=0;for(b=0;b<s.length;b+=2){var I=h[b],j=h[b+1],A=l[b]-u[0],C=l[b+1]-u[1],D=A*S-C*w,T=A*w+C*S;f[b]=D,f[b+1]=T;var k=D-I,L=T-j;M+=k*k+L*L}if(M<g){g=M,p=O;for(var P=0;P<f.length;P++)d[P]=f[P]}}else for(var N=0;N<y;N+=2)d[N]=l[N]-u[0],d[N+1]=l[N+1]-u[1];a.push({from:h,to:d,fromCp:c,toCp:u,rotation:-p})}return a}function oL(t){return t.__isCombineMorphing}var aL="__mOriginal_";function rL(t,e,n){var i=aL+e,o=t[i]||t[e];t[i]||(t[i]=t[e]);var a=n.replace,r=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=a?a.apply(this,e):o.apply(this,e),r&&r.apply(this,e),t}}function sL(t,e){var n=aL+e;t[n]&&(t[e]=t[n],t[n]=null)}function lL(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.length;){var a=i[o],r=i[o+1];i[o++]=e[0]*a+e[2]*r+e[4],i[o++]=e[1]*a+e[3]*r+e[5]}}function cL(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),o=Qk(Pk(n),Pk(i)),a=o[0],r=o[1],s=t.getComputedTransform(),l=e.getComputedTransform();function c(){this.transform=null}s&&lL(a,s),l&&lL(r,l),rL(e,"updateTransform",{replace:c}),e.transform=null;var u=iL(a,r,10,Math.PI),h=[];rL(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,o=[],a=0;a<u.length;a++){var r=u[a],s=r.from,l=r.to,c=r.rotation*n,d=r.fromCp,p=r.toCp,g=Math.sin(c),f=Math.cos(c);Object(Ur["j"])(o,d,p,n);for(var y=0;y<s.length;y+=2){var v=s[y],m=s[y+1],b=l[y],x=l[y+1],_=v*i+b*n,O=m*i+x*n;h[y]=_*f-O*g+o[0],h[y+1]=_*g+O*f+o[1]}var w=h[0],S=h[1];t.moveTo(w,S);for(y=2;y<s.length;){b=h[y++],x=h[y++];var M=h[y++],I=h[y++],j=h[y++],A=h[y++];w===b&&S===x&&M===j&&I===A?t.lineTo(j,A):t.bezierCurveTo(b,x,M,I,j,A),w=j,S=A}}}})}function uL(t,e,n){if(!t||!e)return e;var i=n.done,o=n.during;function a(){sL(e,"buildPath"),sL(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return cL(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(w["i"])({during:function(t){e.dirtyShape(),o&&o(t)},done:function(){a(),i&&i()}},n)),e}function hL(t,e,n,i,o,a){var r=16;t=o===n?0:Math.round(32767*(t-n)/(o-n)),e=a===i?0:Math.round(32767*(e-i)/(a-i));for(var s,l=0,c=(1<<r)/2;c>0;c/=2){var u=0,h=0;(t&c)>0&&(u=1),(e&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(t=c-1-t,e=c-1-e),s=t,t=e,e=s)}return l}function dL(t){var e=1/0,n=1/0,i=-1/0,o=-1/0,a=Object(w["H"])(t,(function(t){var a=t.getBoundingRect(),r=t.getComputedTransform(),s=a.x+a.width/2+(r?r[4]:0),l=a.y+a.height/2+(r?r[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),o=Math.max(l,o),[s,l]})),r=Object(w["H"])(a,(function(a,r){return{cp:a,z:hL(a[0],a[1],e,n,i,o),path:t[r]}}));return r.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function pL(t){return Kk(t.path,t.count)}function gL(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fL(t,e,n){var i=[];function o(t){for(var e=0;e<t.length;e++){var n=t[e];oL(n)?o(n.childrenRef()):n instanceof h["b"]&&i.push(n)}}o(t);var a=i.length;if(!a)return gL();var r=n.dividePath||pL,s=r({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),gL();i=dL(i),s=dL(s);for(var l=n.done,c=n.during,u=n.individualDelay,d=new X["c"],p=0;p<a;p++){var g=i[p],f=s[p];f.parent=e,f.copyTransform(d),u||cL(g,f)}function y(t){for(var e=0;e<s.length;e++)s[e].addSelfToZr(t)}function v(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,sL(e,"addSelfToZr"),sL(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return s},rL(e,"addSelfToZr",{after:function(t){y(t)}}),rL(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<s.length;e++)s[e].removeSelfFromZr(t)}});var m=s.length;if(u){var b=m,x=function(){b--,0===b&&(v(),l&&l())};for(p=0;p<m;p++){var _=u?Object(w["i"])({delay:(n.delay||0)+u(p,m,i[p],s[p]),done:x},n):n;uL(i[p],s[p],_)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(w["i"])({during:function(t){for(var n=0;n<m;n++){var i=s[n];i.__morphT=e.__morphT,i.dirtyShape()}c&&c(t)},done:function(){v();for(var e=0;e<t.length;e++)sL(t[e],"updateTransform");l&&l()}},n));return e.__zr&&y(e.__zr),{fromIndividuals:i,toIndividuals:s,count:m}}function yL(t,e,n){var i=e.length,o=[],a=n.dividePath||pL;function r(t){for(var e=0;e<t.length;e++){var n=t[e];oL(n)?r(n.childrenRef()):n instanceof h["b"]&&o.push(n)}}if(oL(t)){r(t.childrenRef());var s=o.length;if(s<i)for(var l=0,c=s;c<i;c++)o.push(Object(uc["a"])(o[l++%s]));o.length=i}else{o=a({path:t,count:i});var u=t.getComputedTransform();for(c=0;c<o.length;c++)o[c].setLocalTransform(u);if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),gL()}o=dL(o),e=dL(e);var d=n.individualDelay;for(c=0;c<i;c++){var p=d?Object(w["i"])({delay:(n.delay||0)+d(c,i,o[c],e[c])},n):n;uL(o[c],e[c],p)}return{fromIndividuals:o,toIndividuals:e,count:e.length}}function vL(t){return Object(w["t"])(t[0])}function mL(t,e){for(var n=[],i=t.length,o=0;o<i;o++)n.push({one:t[o],many:[]});for(o=0;o<e.length;o++){var a=e[o].length,r=void 0;for(r=0;r<a;r++)n[r%i].many.push(e[o][r])}var s=0;for(o=i-1;o>=0;o--)if(!n[o].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var c=Math.ceil(a/2);n[o].many=l.slice(c,a),n[s].many=l.slice(0,c),s++}return n}var bL={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var o=Object(uc["a"])(t.path);o.setStyle("opacity",n),e.push(o)}return e},split:null};function xL(t,e,n,i,o,a){if(t.length&&e.length){var r=Object(On["a"])("update",i,o);if(r&&r.duration>0){var s,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},r);vL(t)&&(s=t,l=e),vL(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?mL(l,s):mL(h?e:t,[h?t:e]),p=0,g=0;g<d.length;g++)p+=d[g].many.length;var f=0;for(g=0;g<d.length;g++)y(d[g],h,f,p),f+=d[g].many.length}}function y(t,e,i,o,r){var s=t.many,l=t.one;if(1!==s.length||r)for(var h=Object(w["i"])({dividePath:bL[n],individualDelay:c&&function(t,e,n,a){return c(t+i,o)}},u),d=e?fL(s,l,h):yL(l,s,h),p=d.fromIndividuals,g=d.toIndividuals,f=p.length,v=0;v<f;v++){x=c?Object(w["i"])({delay:c(v,f)},u):u;a(p[v],g[v],e?s[v]:t.one,e?t.one:s[v],x)}else{var m=e?s[0]:l,b=e?l:s[0];if(oL(m))y({many:[m],one:b},!0,i,o,!0);else{var x=c?Object(w["i"])({delay:c(i,o)},u):u;uL(m,b,x),a(m,b,m,b,x)}}}}function _L(t){if(!t)return[];if(Object(w["t"])(t)){for(var e=[],n=0;n<t.length;n++)e.push(_L(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof h["b"]&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var OL=1e4,wL=0,SL=1,ML=2,IL=Object(we["o"])();function jL(t,e){for(var n=t.dimensions,i=0;i<n.length;i++){var o=t.getDimensionInfo(n[i]);if(o&&0===o.otherDims[e])return n[i]}}function AL(t,e,n){var i=t.getDimensionInfo(n),o=i&&i.ordinalMeta;if(i){var a=t.get(i.name,e);return o&&o.categories[a]||a+""}}function CL(t,e,n,i){var o=i?"itemChildGroupId":"itemGroupId",a=jL(t,o);if(a){var r=AL(t,e,a);return r}var s=t.getRawDataItem(e),l=i?"childGroupId":"groupId";return s&&s[l]?s[l]+"":i?void 0:n||t.getId(e)}function DL(t){var e=[];return Object(w["k"])(t,(function(t){var n=t.data,i=t.dataGroupId;if(!(n.count()>OL))for(var o=n.getIndices(),a=0;a<o.length;a++)e.push({data:n,groupId:CL(n,a,i,!1),childGroupId:CL(n,a,i,!0),divide:t.divide,dataIndex:a})})),e}function TL(t,e,n){t.traverse((function(t){t instanceof h["b"]&&Object(On["c"])(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function kL(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function LL(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function PL(t,e,n){var i=Object(On["a"])("update",n,e);i&&t.traverse((function(t){if(t instanceof Ou["c"]){var e=Object(On["b"])(t);e&&t.animateFrom({style:e},i)}}))}function NL(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var o=t[i],a=e[i];if(o.data.getId(o.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function EL(t,e,n){var i=DL(t),o=DL(e);function a(t,e,n,i,o){(n||t)&&e.animateFrom({style:n&&n!==t?Object(w["m"])(Object(w["m"])({},n.style),t.style):t.style},o)}var r=!1,s=wL,l=Object(w["f"])(),c=Object(w["f"])();i.forEach((function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&c.set(t.childGroupId,!0)}));for(var u=0;u<o.length;u++){var d=o[u].groupId;if(c.get(d)){s=SL;break}var p=o[u].childGroupId;if(p&&l.get(p)){s=ML;break}}function g(t,e){return function(n){var i=n.data,o=n.dataIndex;return e?i.getId(o):t?s===SL?n.childGroupId:n.groupId:s===ML?n.childGroupId:n.groupId}}var f=NL(i,o),y={};if(!f)for(u=0;u<o.length;u++){var v=o[u],m=v.data.getItemGraphicEl(v.dataIndex);m&&(y[m.id]=!0)}function b(t,e){var n=i[e],s=o[t],l=s.data.hostModel,c=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);c!==u?c&&y[c.id]||u&&(LL(u),c?(LL(c),kL(c),r=!0,xL(_L(c),_L(u),s.divide,l,t,a)):TL(u,l,t)):u&&PL(u,s.dataIndex,l)}new pe(i,o,g(!0,f),g(!1,f),null,"multiple").update(b).updateManyToOne((function(t,e){var n=o[t],s=n.data,l=s.hostModel,c=s.getItemGraphicEl(n.dataIndex),u=Object(w["n"])(Object(w["H"])(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==c&&!y[t.id]}));c&&(LL(c),u.length?(Object(w["k"])(u,(function(t){LL(t),kL(t)})),r=!0,xL(_L(u),_L(c),n.divide,l,t,a)):TL(c,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!y[s.id]){var l=Object(w["n"])(Object(w["H"])(t,(function(t){return o[t].data.getItemGraphicEl(o[t].dataIndex)})),(function(t){return t&&t!==s})),c=o[t[0]].data.hostModel;l.length&&(Object(w["k"])(l,(function(t){return LL(t)})),s?(LL(s),kL(s),r=!0,xL(_L(s),_L(l),n.divide,c,t[0],a)):Object(w["k"])(l,(function(e){return TL(e,c,t[0])})))}})).updateManyToMany((function(t,e){new pe(e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return o[t].data.getId(o[t].dataIndex)})).update((function(n,i){b(t[n],e[i])})).execute()})).execute(),r&&Object(w["k"])(e,(function(t){var e=t.data,i=e.hostModel,o=i&&n.getViewOfSeriesModel(i),a=Object(On["a"])("update",i,0);o&&i.isAnimationEnabled()&&a&&a.duration>0&&o.group.traverse((function(t){t instanceof h["b"]&&!t.animators.length&&t.animateFrom({style:{opacity:0}},a)}))}))}function RL(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function zL(t){return Object(w["t"])(t)?t.sort().join(","):t}function VL(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function BL(t,e){var n=Object(w["f"])(),i=Object(w["f"])(),o=Object(w["f"])();return Object(w["k"])(t.oldSeries,(function(e,n){var a=t.oldDataGroupIds[n],r=t.oldData[n],s=RL(e),l=zL(s);i.set(l,{dataGroupId:a,data:r}),Object(w["t"])(s)&&Object(w["k"])(s,(function(t){o.set(t,{key:l,dataGroupId:a,data:r})}))})),Object(w["k"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),a=t.getData(),r=RL(t),s=zL(r),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:VL(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:VL(a),data:a}]});else if(Object(w["t"])(r)){0;var c=[];Object(w["k"])(r,(function(t){var e=i.get(t);e.data&&c.push({dataGroupId:e.dataGroupId,divide:VL(e.data),data:e.data})})),c.length&&n.set(s,{oldSeries:c,newSeries:[{dataGroupId:e,data:a,divide:VL(a)}]})}else{var u=o.get(r);if(u){var h=n.get(u.key);h||(h={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:VL(u.data)}],newSeries:[]},n.set(u.key,h)),h.newSeries.push({dataGroupId:e,data:a,divide:VL(a)})}}}})),n}function GL(t,e){for(var n=0;n<t.length;n++){var i=null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id;if(i)return n}}function HL(t,e,n,i){var o=[],a=[];Object(w["k"])(Object(we["r"])(t.from),(function(t){var n=GL(e.oldSeries,t);n>=0&&o.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:VL(e.oldData[n]),groupIdDim:t.dimension})})),Object(w["k"])(Object(we["r"])(t.to),(function(t){var i=GL(n.updatedSeries,t);if(i>=0){var o=n.updatedSeries[i].getData();a.push({dataGroupId:e.oldDataGroupIds[i],data:o,divide:VL(o),groupIdDim:t.dimension})}})),o.length>0&&a.length>0&&EL(o,a,i)}function FL(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(w["k"])(Object(we["r"])(n.seriesTransition),(function(t){Object(w["k"])(Object(we["r"])(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][vn["a"]]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=IL(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var o=n.seriesTransition;if(o)Object(w["k"])(Object(we["r"])(o),(function(t){HL(t,i,n,e)}));else{var a=BL(i,n);Object(w["k"])(a.keys(),(function(t){var n=a.get(t);EL(n.oldSeries,n.newSeries,e)}))}Object(w["k"])(n.updatedSeries,(function(t){t[vn["a"]]&&(t[vn["a"]]=!1)}))}for(var r=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],c=i.oldData=[],u=0;u<r.length;u++){var h=r[u].getData();h.count()<OL&&(s.push(r[u]),l.push(r[u].get("dataGroupId")),c.push(h))}}))}var WL=n("ee29");Object(l["a"])([c["a"]]),Object(l["a"])([se]),Object(l["a"])([Li,Po,ua,bl,Wl,gh,gd,Yp,df,Of,Lf,zv,vm,Nm,cb,vb,Hb,Qb,Cx,Vx,a_,EO]),Object(l["a"])(Nw),Object(l["a"])(jS),Object(l["a"])(ph),Object(l["a"])(QS),Object(l["a"])(Rv),Object(l["a"])(uM),Object(l["a"])(AM),Object(l["a"])(pj),Object(l["a"])(Kj),Object(l["a"])(Pw),Object(l["a"])(TA),Object(l["a"])(PA),Object(l["a"])(iC),Object(l["a"])(DC),Object(l["a"])(HC),Object(l["a"])(eD),Object(l["a"])(DD),Object(l["a"])(hT),Object(l["a"])(ZD),Object(l["a"])(uT),Object(l["a"])(sk),Object(l["a"])(QT),Object(l["a"])(rk),Object(l["a"])(pk),Object(l["a"])(Dk),Object(l["a"])(Tk["a"]),Object(l["a"])(FL),Object(l["a"])(WL["a"]),Object(l["a"])(ua),Object(l["a"])(Kj),Object(l["a"])(DD);n("d9a3");function YL(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function XL(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?YL(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):YL(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ZL={name:"adminIndex",data:function(){return{loading:!1,activeNames:["1","2","3","5"],logActiveNames:["28"],topOption:{data:[]},chartOptions:{title:{text:""},tooltip:{trigger:"item"},legend:{top:"5%",left:"center"},series:[{name:"日志统计",type:"pie",radius:["45%","70%"],avoidLabelOverlap:!1,padAngle:5,itemStyle:{borderRadius:10,normal:{color:function(t){var e=["rgb(230, 71, 88)","rgb(178, 159, 255)","rgb(27, 201, 142)"];return e[t.dataIndex]}}},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}},labelLine:{show:!1},data:[]}]}}},computed:XL({},Object(r["mapGetters"])(["userInfo"])),created:function(){this.getLogHandler()},methods:{getLogHandler:function(){var t=this;this.loading=!0;var e=[{logType:"1",logName:"登录日志统计",text:"当前登录日志总记录数",color:"rgb(230, 71, 88)",router:"/LogInfoMain?logType=1&roleType=2"},{logType:"3",logName:"授权日志统计",text:"当前授权日志总记录数",color:"rgb(178, 159, 255)",router:"/LogAuthorizeMain?logType=3&roleType=2"},{logType:"4",logName:"操作日志统计",text:"当前操作日志总记录数",color:"rgb(27, 201, 142)",router:"/LogOperateMain?logType=4&roleType=2"}],n="2",i=e.map((function(t){return Object(s["getLogListByContion"])(1,-1,{logType:t.logType,roleType:n})}));Promise.all(i).then((function(n){var i=n.reduce((function(t,e){return t+(e.data.total||0)}),0);t.topOption.data=n.map((function(n,o){return{title:e[o].logName,text:e[o].text,color:e[o].color,subtitle:"实时",count:n.data.total,allcount:"日志总数:".concat(i),key:"日志",click:function(){return t.$router.push({path:e[o].router})}}}));var o=n.map((function(t,n){return{name:e[n].logName,value:t.data.total}}));t.$set(t.chartOptions.series[0],"data",o),t.loading=!1})).catch((function(e){t.loading=!1}))}}},UL=ZL,qL=(n("57b7"),n("2877")),KL=Object(qL["a"])(UL,i,o,!1,null,null,null);e["default"]=KL.exports},"57b7":function(t,e,n){"use strict";n("e29f")},e29f:function(t,e,n){}}]);