(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d827b838"],{"70c2":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAE6ADAAQAAAABAAAAEwAAAAADp3KcAAAB6UlEQVQ4EbWUz0tVQRTHv+feefoMpYWbXBTkxoUPX4vaCCJI5VsYbSIXLgzC+8rctGjjUvwj9HmjtdEmghYJEZSrCnz5G6S3UNBNkKCF3pl7OqNc5z4ofPhsNnOG8z2fc+d+Z4Z4Y/Sy3jNzROjAGQcD60rxbWVBSuEZ5abfnJEFXire0RG9gy4XBVz/sByvfowj/H8Ybz5t4sqDrOtZW6TSMl4evWS0eW5+7PcDDXvyH176MBOUD7eicvCBgF2VL90VXbOO9HtZX/Uz1Eud0yuWUwUzkZkB+AY87zEQ/0SM0JDfKLrhpCl/CTLS8BWBOnzP9FFneASqgvFK0GYiDDDTZKZrSqCCXQi2Zfpl4+NBZBRegLnP9+gmdYVfk4yd3ZcdeO3w5JQQ5hMBXSt9SuLjmftBZEUZQ9xSnQOcmyresUnh5RNRtFi8xYsj3claIPu+H/fI+i1iCnn1SavLpWG50ndmzMfAQ70wMhCViwWKMatjGnQF/JFyM5/FlDEwLppDPeVyKZjcTVbZ6L5MFZD3WjYzKwVzCr/H0wU2FncrsttJCe/pb4+GTvJ/u07i2AXr2omohsBynAGpArpeSjmYSpwSOgNOEdaSPl+YHJo1+x7V0vlfGlsvnHXi5eCKfdjqfGnXlNGFP4mtwBxnmMoaAAAAAElFTkSuQmCC"},a49f:function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return a["bb"]})),n.d(t,"dependencies",(function(){return a["l"]})),n.d(t,"PRIORITY",(function(){return a["g"]})),n.d(t,"init",(function(){return a["B"]})),n.d(t,"connect",(function(){return a["j"]})),n.d(t,"disConnect",(function(){return a["m"]})),n.d(t,"disconnect",(function(){return a["n"]})),n.d(t,"dispose",(function(){return a["o"]})),n.d(t,"getInstanceByDom",(function(){return a["w"]})),n.d(t,"getInstanceById",(function(){return a["x"]})),n.d(t,"registerTheme",(function(){return a["R"]})),n.d(t,"registerPreprocessor",(function(){return a["P"]})),n.d(t,"registerProcessor",(function(){return a["Q"]})),n.d(t,"registerPostInit",(function(){return a["N"]})),n.d(t,"registerPostUpdate",(function(){return a["O"]})),n.d(t,"registerUpdateLifecycle",(function(){return a["T"]})),n.d(t,"registerAction",(function(){return a["H"]})),n.d(t,"registerCoordinateSystem",(function(){return a["I"]})),n.d(t,"getCoordinateSystemDimensions",(function(){return a["v"]})),n.d(t,"registerLocale",(function(){return a["L"]})),n.d(t,"registerLayout",(function(){return a["J"]})),n.d(t,"registerVisual",(function(){return a["U"]})),n.d(t,"registerLoading",(function(){return a["K"]})),n.d(t,"setCanvasCreator",(function(){return a["V"]})),n.d(t,"registerMap",(function(){return a["M"]})),n.d(t,"getMap",(function(){return a["y"]})),n.d(t,"registerTransform",(function(){return a["S"]})),n.d(t,"dataTool",(function(){return a["k"]})),n.d(t,"zrender",(function(){return a["db"]})),n.d(t,"matrix",(function(){return a["D"]})),n.d(t,"vector",(function(){return a["ab"]})),n.d(t,"zrUtil",(function(){return a["cb"]})),n.d(t,"color",(function(){return a["i"]})),n.d(t,"throttle",(function(){return a["W"]})),n.d(t,"helper",(function(){return a["A"]})),n.d(t,"use",(function(){return a["Y"]})),n.d(t,"parseGeoJSON",(function(){return a["F"]})),n.d(t,"parseGeoJson",(function(){return a["G"]})),n.d(t,"number",(function(){return a["E"]})),n.d(t,"time",(function(){return a["X"]})),n.d(t,"graphic",(function(){return a["z"]})),n.d(t,"format",(function(){return a["u"]})),n.d(t,"util",(function(){return a["Z"]})),n.d(t,"env",(function(){return a["p"]})),n.d(t,"List",(function(){return a["e"]})),n.d(t,"Model",(function(){return a["f"]})),n.d(t,"Axis",(function(){return a["a"]})),n.d(t,"ComponentModel",(function(){return a["c"]})),n.d(t,"ComponentView",(function(){return a["d"]})),n.d(t,"SeriesModel",(function(){return a["h"]})),n.d(t,"ChartView",(function(){return a["b"]})),n.d(t,"innerDrawElementOnCanvas",(function(){return a["C"]})),n.d(t,"extendComponentModel",(function(){return a["r"]})),n.d(t,"extendComponentView",(function(){return a["s"]})),n.d(t,"extendSeriesModel",(function(){return a["t"]})),n.d(t,"extendChartView",(function(){return a["q"]}));var i=n("b5c7"),a=n("c146"),r=n("b50b"),o=n("de21");function s(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function l(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Object(o["parse"])(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var c=n("d026"),u=n("f9cc"),d=n("9c6c"),p=n("d4dc");function h(e,t,n){n||(n=function(e,t){return e===t}),e=e.slice(),t=t.slice();var i=t.length,a=e.length,r=1,o=i+a,s=[{newPos:-1,components:[]}],l=g(s[0],t,e,0,n);if(s[0].newPos+1>=i&&l+1>=a){for(var c=[],u=0;u=i&&d+1>=a)return y(l.components);s[o]=l}else s[o]=void 0}r++}while(r<=o){var p=d();if(p)return p}}function g(e,t,n,i,a){var r=t.length,o=n.length,s=e.newPos,l=s-i,c=0;while(s+1-D}function P(e){var t=e.fill;return null!=t&&t!==S}function N(e){var t=e.stroke;return null!=t&&t!==S}function k(e,t){t&&E(e,"transform","matrix("+C(t[0])+","+C(t[1])+","+C(t[2])+","+C(t[3])+","+T(t[4])+","+T(t[5])+")")}function E(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function V(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function R(e,t,n){e.setAttributeNS("http://www.w3.org/XML/1998/namespace",t,n)}function z(e,t,n){var i=null==t.opacity?1:t.opacity;if(n instanceof d["a"])E(e,"opacity",i+"");else{if(P(t)){var a=l(t.fill);E(e,"fill",a.color),E(e,"fill-opacity",(null!=t.fillOpacity?t.fillOpacity*a.opacity*i:a.opacity*i)+"")}else E(e,"fill",S);if(N(t)){var r=l(t.stroke);E(e,"stroke",r.color);var o=t.lineWidth,s=t.strokeNoScale?n.getLineScale():1;E(e,"stroke-width",(s?o/s:0)+""),E(e,"paint-order",t.strokeFirst?"stroke":"fill"),E(e,"stroke-opacity",(null!=t.strokeOpacity?t.strokeOpacity*r.opacity*i:r.opacity*i)+"");var u=t.lineDash&&o>0&&Object(_["a"])(t.lineDash,o);if(u){var p=t.lineDashOffset;s&&1!==s&&(u=Object(c["map"])(u,(function(e){return e/s})),p&&(p/=s,p=w(p))),E(e,"stroke-dasharray",u.join(",")),E(e,"stroke-dashoffset",(p||0)+"")}else E(e,"stroke-dasharray",S);t.lineCap&&E(e,"stroke-linecap",t.lineCap),t.lineJoin&&E(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&E(e,"stroke-miterlimit",t.miterLimit+"")}else E(e,"stroke",S)}}var B=function(){function e(){}return e.prototype.reset=function(){this._d=[],this._str=""},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,a,r){this._add("C",e,t,n,i,a,r)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,a,r){this.ellipse(e,t,n,n,0,i,a,r)},e.prototype.ellipse=function(e,t,n,i,a,r,o,s){var l=0===this._d.length,c=o-r,u=!s,d=Math.abs(c),p=L(d-A)||(u?c>=A:-c>=A),h=c>0?c%A:c%A+A,g=!1;g=!!p||!L(d)&&h>=I===!!u;var f=T(e+n*M(r)),y=T(t+i*O(r));p&&(c=u?A-1e-4:1e-4-A,g=!0,l&&this._d.push("M",f,y));var m=T(e+n*M(r+c)),v=T(t+i*O(r+c));if(isNaN(f)||isNaN(y)||isNaN(n)||isNaN(i)||isNaN(a)||isNaN(j)||isNaN(m)||isNaN(v))return"";this._d.push("A",T(n),T(i),w(a*j),+g,+u,m,v)},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("L",e+n,t),this._add("L",e+n,t+i),this._add("L",e,t+i),this._add("L",e,t),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,a,r,o,s,l){this._d.push(e);for(var c=1;c=0;--n)if(t[n]===e)return!0;return!1}),i}return null}return n[0]},e.prototype.doUpdate=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var i=this.add(e);i&&(e[this._domName]=i)}}},e.prototype.add=function(e){return null},e.prototype.addDom=function(e){var t=this.getDefs(!0);e.parentNode!==t&&t.appendChild(e)},e.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},e.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return c["each"](this._tagNames,(function(n){for(var i=e.getElementsByTagName(n),a=0;a-1){var l=o["parse"](s)[3],u=o["toHex"](s);r.setAttribute("stop-color","#"+u),r.setAttribute("stop-opacity",l+"")}else r.setAttribute("stop-color",n[i].color);t.appendChild(r)}e.__dom=t},t.prototype.markUsed=function(t){if(t.style){var n=t.style.fill;n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom),n=t.style.stroke,n&&n.__dom&&e.prototype.markDomUsed.call(this,n.__dom)}},t}(q),ee=$,te=n("c952"),ne=n("da5f");function ie(e){return e&&(!!e.image||!!e.svgElement)}var ae=new ne["a"],re=function(e){function t(t,n){return e.call(this,t,n,["pattern"],"__pattern_in_use__")||this}return Object(b["b"])(t,e),t.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;c["each"](["fill","stroke"],(function(i){var a=t.style[i];if(ie(a)){var r=n.getDefs(!0),o=ae.get(a);o?r.contains(o)||n.addDom(o):o=n.add(a),n.markUsed(t);var s=o.getAttribute("id");e.setAttribute(i,"url(#"+s+")")}}))}},t.prototype.add=function(e){if(ie(e)){var t=this.createElement("pattern");return e.id=null==e.id?this.nextId++:e.id,t.setAttribute("id","zr"+this._zrId+"-pattern-"+e.id),t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(e,t),this.addDom(t),t}},t.prototype.update=function(e){if(ie(e)){var t=this;this.doUpdate(e,(function(){var n=ae.get(e);t.updateDom(e,n)}))}},t.prototype.updateDom=function(e,t){var n=e.svgElement;if(n instanceof SVGElement)n.parentNode!==t&&(t.innerHTML="",t.appendChild(n),t.setAttribute("width",e.svgWidth+""),t.setAttribute("height",e.svgHeight+""));else{var i=void 0,a=t.getElementsByTagName("image");if(a.length){if(!e.image)return void t.removeChild(a[0]);i=a[0]}else e.image&&(i=this.createElement("image"));if(i){var r=void 0,o=e.image;if("string"===typeof o?r=o:o instanceof HTMLImageElement?r=o.src:o instanceof HTMLCanvasElement&&(r=o.toDataURL()),r){i.setAttribute("href",r),i.setAttribute("x","0"),i.setAttribute("y","0");var s={dirty:function(){}},l=Object(te["a"])(r,i,s,(function(e){t.setAttribute("width",e.width+""),t.setAttribute("height",e.height+"")}));l&&l.width&&l.height&&(t.setAttribute("width",l.width+""),t.setAttribute("height",l.height+"")),t.appendChild(i)}}}var c=e.x||0,u=e.y||0,d=(e.rotation||0)/Math.PI*180,p=e.scaleX||1,h=e.scaleY||1,g="translate("+c+", "+u+") rotate("+d+") scale("+p+", "+h+")";t.setAttribute("patternTransform",g),ae.set(e,t)},t.prototype.markUsed=function(t){t.style&&(ie(t.style.fill)&&e.prototype.markDomUsed.call(this,ae.get(t.style.fill)),ie(t.style.stroke)&&e.prototype.markDomUsed.call(this,ae.get(t.style.stroke)))},t}(q),oe=re,se=n("51e2");function le(e){var t=[];if(e)for(var n=0;n0}var ue=function(e){function t(t,n){var i=e.call(this,t,n,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return Object(b["b"])(t,e),t.prototype.markAllUnused=function(){e.prototype.markAllUnused.call(this);var t=this._refGroups;for(var n in t)t.hasOwnProperty(n)&&this.markDomUnused(t[n]);this._keyDuplicateCount={}},t.prototype._getClipPathGroup=function(e,t){if(ce(e)){var n=e.__clipPaths,i=this._keyDuplicateCount,a=le(n);return Object(se["b"])(n,t&&t.__clipPaths)&&(i[a]=i[a]||0,i[a]&&(a+="-"+i[a]),i[a]++),this._refGroups[a]||(this._refGroups[a]=this.createElement("g"))}},t.prototype.update=function(e,t){var n=this._getClipPathGroup(e,t);return n&&(this.markDomUsed(n),this.updateDom(n,e.__clipPaths)),n},t.prototype.updateDom=function(e,t){if(t&&t.length>0){var n=this.getDefs(!0),i=t[0],a=void 0,r=void 0;i._dom?(r=i._dom.getAttribute("id"),a=i._dom,n.contains(a)||n.appendChild(a)):(r="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,a=this.createElement("clipPath"),a.setAttribute("id",r),n.appendChild(a),i._dom=a);var o=this.getSvgProxy(i);o.brush(i);var s=this.getSvgElement(i);a.innerHTML="",a.appendChild(s),e.setAttribute("clip-path","url(#"+r+")"),t.length>1&&this.updateDom(a,t.slice(1))}else e&&e.setAttribute("clip-path","none")},t.prototype.markUsed=function(t){var n=this;t.__clipPaths&&c["each"](t.__clipPaths,(function(t){t._dom&&e.prototype.markDomUsed.call(n,t._dom)}))},t.prototype.removeUnused=function(){e.prototype.removeUnused.call(this);var t={},n=this._refGroups;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];this.isDomUnused(a)?a.parentNode&&a.parentNode.removeChild(a):t[i]=a}this._refGroups=t},t}(q),de=ue,pe=function(e){function t(t,n){var i=e.call(this,t,n,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return Object(b["b"])(t,e),t.prototype._getFromPool=function(){var e=this._shadowDomPool.pop();if(!e){e=this.createElement("filter"),e.setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var t=this.createElement("feDropShadow");e.appendChild(t),this.addDom(e)}return e},t.prototype.update=function(e,t){var n=t.style;if(ge(n)){var i=fe(t),a=t._shadowDom=this._shadowDomMap[i];a||(a=this._getFromPool(),this._shadowDomMap[i]=a),this.updateDom(e,t,a)}else this.remove(e,t)},t.prototype.remove=function(e,t){null!=t._shadowDom&&(t._shadowDom=null,e.removeAttribute("filter"))},t.prototype.updateDom=function(e,t,n){var i=n.children[0],a=t.style,r=t.getGlobalScale(),o=r[0],s=r[1];if(o&&s){var c=a.shadowOffsetX||0,u=a.shadowOffsetY||0,d=a.shadowBlur,p=l(a.shadowColor);i.setAttribute("dx",c/o+""),i.setAttribute("dy",u/s+""),i.setAttribute("flood-color",p.color),i.setAttribute("flood-opacity",p.opacity+"");var h=d/2/o,g=d/2/s,f=h+" "+g;i.setAttribute("stdDeviation",f),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),t._shadowDom=n;var y=n.getAttribute("id");e.setAttribute("filter","url(#"+y+")")}},t.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this._shadowDomPool,n=this._shadowDomMap;for(var i in n)n.hasOwnProperty(i)&&t.push(n[i]);this._shadowDomMap={}}},t}(q),he=pe;function ge(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function fe(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function ye(e){return parseInt(e,10)}function me(e){return e instanceof u["b"]?G:e instanceof d["a"]?H:e instanceof p["a"]?U:G}function ve(e,t){return t&&e&&t.parentNode!==e}function be(e,t,n){if(ve(e,t)&&n){var i=n.nextSibling;i?e.insertBefore(t,i):e.appendChild(t)}}function xe(e,t){if(ve(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function _e(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function Se(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function we(e){return e.__svgEl}var Oe=function(){function e(e,t,n,i){this.type="svg",this.refreshHover=Me("refreshHover"),this.pathToImage=Me("pathToImage"),this.configLayer=Me("configLayer"),this.root=e,this.storage=t,this._opts=n=c["extend"]({},n||{});var a=s("svg");a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),a.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;";var r=s("g");a.appendChild(r);var o=s("g");a.appendChild(o),this._gradientManager=new ee(i,o),this._patternManager=new oe(i,o),this._clipPathManager=new de(i,o),this._shadowManager=new he(i,o);var l=document.createElement("div");l.style.cssText="overflow:hidden;position:relative",this._svgDom=a,this._svgRoot=o,this._backgroundRoot=r,this._viewport=l,e.appendChild(l),l.appendChild(a),this.resize(n.width,n.height),this._visibleList=[]}return e.prototype.getType=function(){return"svg"},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.getSvgRoot=function(){return this._svgRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},e.prototype.setBackgroundColor=function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=s("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0);var n=l(e),i=n.color,a=n.opacity;t.setAttribute("fill",i),t.setAttribute("fill-opacity",a),this._backgroundRoot.appendChild(t),this._backgroundNode=t},e.prototype.createSVGElement=function(e){return s(e)},e.prototype.paintOne=function(e){var t=me(e);return t&&t.brush(e),we(e)},e.prototype._paintList=function(e){var t=this._gradientManager,n=this._patternManager,i=this._clipPathManager,a=this._shadowManager;t.markAllUnused(),n.markAllUnused(),i.markAllUnused(),a.markAllUnused();for(var r=this._svgRoot,o=this._visibleList,s=e.length,l=[],c=0;c\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+n},e}();function Me(e){return function(){c["logError"]('In SVG mode painter not support method "'+e+'"')}}var Ie=Oe;function Ae(e){e.registerPainter("svg",Ie)}var je=n("a27a"),De=n("14cb"),Ce=n("0e41"),Te=n("8b3f"),Le=n("da3b"),Pe=2*Math.PI,Ne=Math.PI/180;function ke(e,t){return Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ee(e,t){var n=ke(e,t),i=e.get("center"),a=e.get("radius");c["isArray"](a)||(a=[0,a]),c["isArray"](i)||(i=[i,i]);var r=Object(Te["p"])(n.width,t.getWidth()),o=Object(Te["p"])(n.height,t.getHeight()),s=Math.min(r,o),l=Object(Te["p"])(i[0],r)+n.x,u=Object(Te["p"])(i[1],o)+n.y,d=Object(Te["p"])(a[0],s/2),p=Object(Te["p"])(a[1],s/2);return{cx:l,cy:u,r0:d,r:p}}function Ve(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),a=ke(e,n),r=Ee(e,n),o=r.cx,s=r.cy,l=r.r,c=r.r0,u=-e.get("startAngle")*Ne,d=e.get("minAngle")*Ne,p=0;t.each(i,(function(e){!isNaN(e)&&p++}));var h=t.getSum(i),g=Math.PI/(h||p)*2,f=e.get("clockwise"),y=e.get("roseType"),m=e.get("stillShowZeroSum"),v=t.getDataExtent(i);v[0]=0;var b=Pe,x=0,_=u,S=f?1:-1;if(t.setLayout({viewRect:a,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:f,cx:o,cy:s,r0:c,r:y?NaN:l});else{i="area"!==y?0===h&&m?g:e*g:Pe/p,in?o:r,u=Math.abs(l.label.y-n);if(u>c.maxY){var d=l.label.x-t-l.len2*a,p=i+l.len,g=Math.abs(d)0?"right":"left":L>0?"left":"right"}var H=v.get("rotate");if("number"===typeof H)N=H*(Math.PI/180);else if("center"===b)N=0;else{var W=L<0?-T+Math.PI:-T;"radial"===H||!0===H?N=W:"tangential"===H&&"outside"!==b&&"outer"!==b?(N=W+Math.PI/2,N>Math.PI/2&&(N-=Math.PI)):N=0}if(r=!!N,h.x=A,h.y=j,h.rotation=N,h.setStyle({verticalAlign:"middle"}),k){h.setStyle({align:C});var F=h.states.select;F&&(F.x+=h.x,F.y+=h.y)}else{var U=h.getBoundingRect().clone();U.applyTransform(h.getComputedTransform());var Y=(h.style.margin||0)+2.1;U.y-=Y/2,U.height+=Y,a.push({label:h,labelLine:y,position:b,len:M,len2:I,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Ye["a"](L,P),linePoints:D,textAlign:C,labelDistance:x,labelAlignTo:_,edgeDistance:S,bleedMargin:w,rect:U})}s.setTextConfig({inside:k})}})),!r&&e.get("avoidLabelOverlap")&&Qe(a,t,n,l,u,h,d,p);for(var y=0;y0){for(var l=r.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=i.r0}},t.type="pie",t}(Ue["a"]),at=it,rt=n("8f8b"),ot=n("7c40");function st(e,t,n){t=Object(c["isArray"])(t)&&{coordDimensions:t}||Object(c["extend"])({encodeDefine:e.getEncode()},t);var i=e.getSource(),a=Object(rt["b"])(i,t).dimensions,r=new ot["a"](a,e);return r.initData(i,n),r}var lt=n("5413"),ct=n("7b00"),ut=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),dt=ut,pt=n("14dc"),ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new dt(c["bind"](this.getData,this),c["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return st(this,{coordDimensions:["value"],encodeDefaulter:c["curry"](ct["d"],this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),a=[];return n.each(n.mapDimension("value"),(function(e){a.push(e)})),i.percent=Object(Te["e"])(a,t,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},t.prototype._defaultLabelLine=function(e){lt["f"](e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={zlevel:0,z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,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"},t}(pt["b"]),gt=ht;function ft(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!("number"===typeof i&&!isNaN(i)&&i<0)}))}}}function yt(e){e.registerChartView(at),e.registerSeriesModel(gt),Object(Ce["a"])("pie",e.registerAction),e.registerLayout(Object(c["curry"])(Ve,"pie")),e.registerProcessor(Re("pie")),e.registerProcessor(ft("pie"))}var mt=n("63c8"),vt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(mt["a"])(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,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"}},t}(pt["b"]),bt=vt,xt=n("4822"),_t=n("8256"),St=n("89b7"),wt=n("1f20"),Ot=4,Mt=function(){function e(){}return e}(),It=function(e){function t(t){return e.call(this,t)||this}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new Mt},t.prototype.buildPath=function(e,t){var n=t.points,i=t.size,a=this.symbolProxy,r=a.shape,o=e.getContext?e.getContext():e,s=o&&i[0]=0;s--){var l=2*s,c=i[l]-r/2,u=i[l+1]-o/2;if(e>=c&&t>=u&&e<=c+r&&t<=u+o)return s}return-1},t}(u["b"]),At=function(){function e(){this.group=new We["a"]}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e,t){this.group.removeAll();var n=new It({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},e.prototype.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t)}))}},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new St["a"]({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t,n){var i;this._incremental?(i=new It,this._incremental.addDisplayable(i,!0)):(i=new It({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,!!this._incremental,n)},e.prototype._setCommon=function(e,t,n,i){var a=t.hostModel;i=i||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=i.clipShape||null,e.symbolProxy=Object(_t["a"])(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]=0&&(c.dataIndex=n+(e.startIndex||0))}))}},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),jt=At,Dt=n("d445"),Ct=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this._updateSymbolDraw(i,e);a.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),a=this._updateSymbolDraw(i,e);a.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=Object(Dt["a"])("").reset(e,t,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,a=i.large;return n&&a===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=a?new jt:new xt["a"],this._isLargeDraw=a,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Ue["a"]),Tt=Ct,Lt=n("7696");function Pt(e){Object(i["a"])(Lt["a"]),e.registerSeriesModel(bt),e.registerChartView(Tt),e.registerLayout(Object(Dt["a"])("scatter"))}function Nt(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();c["each"](a,(function(e,r){t.each(t.mapDimension(a[r].dim),(function(e,t){n[t]=n[t]||[];var a=i.dataToPoint(e,r);n[t][r]=kt(a)?a:Et(i)}))})),t.each((function(e){var a=c["find"](n[e],(function(e){return kt(e)}))||Et(i);n[e].push(a.slice()),t.setItemLayout(e,n[e])}))}}))}function kt(e){return!isNaN(e[0])&&!isNaN(e[1])}function Et(e){return[e.cx,e.cy]}function Vt(e){var t=e.polar;if(t){c["isArray"](t)||(t=[t]);var n=[];c["each"](t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],c["isArray"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}c["each"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var Rt=n("c336"),zt=n("e342"),Bt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,a=this.group,r=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=_t["c"](e.getItemVisual(t,"symbolSize")),a=_t["a"](n,-1,-1,2,2),r=e.getItemVisual(t,"symbolRotate")||0;return a.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:r*Math.PI/180||0}),a}}function l(t,n,i,a,r,o){i.removeAll();for(var l=0;l0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var h=o;null!=p.color&&(h=c["defaults"]({color:p.color},o));var g=c["merge"](c["clone"](p),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:a,axisLabel:r,name:p.text,nameLocation:"end",nameGap:u,nameTextStyle:h,triggerEvent:d},!1);if(s||(g.name=""),"string"===typeof l){var f=g.name;g.name=l.replace("{value}",null!=f?f:"")}else"function"===typeof l&&(g.name=l(g.name,g));var y=new Yt["a"](g,null,this.ecModel);return c["mixin"](y,Xt["a"].prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this._indicatorModels=p},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:c["merge"]({lineStyle:{color:"#bbb"}},qt.axisLine),axisLabel:Kt(qt.axisLabel,!1),axisTick:Kt(qt.axisTick,!1),splitLine:Kt(qt.splitLine,!0),splitArea:Kt(qt.splitArea,!0),indicator:[]},t}(Zt["a"]),Jt=Qt,$t=n("dd2c"),en=n("227f"),tn=n("d950"),nn=n("1e62"),an=["axisLine","axisTickLabel","axisName"],rn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=c["map"](n,(function(e){var n=new $t["a"](e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));c["each"](i,(function(e){c["each"](an,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),a=e.getModel("splitLine"),r=e.getModel("splitArea"),o=a.getModel("lineStyle"),s=r.getModel("areaStyle"),l=a.get("show"),u=r.get("show"),d=o.get("color"),p=s.get("color"),h=c["isArray"](d)?d:[d],g=c["isArray"](p)?p:[p],f=[],y=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=t.cx,b=t.cy,x=0;xn[0]&&isFinite(d)&&isFinite(n[0]))}else{var p=o.getTicks().length-1;p>a&&(c=r(c));u=Math.ceil(n[1]/c)*c,d=Te["v"](u-c*a);o.setExtent(d,u),o.setInterval(c)}}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(a){var r=new e(a,t,n);i.push(r),a.coordinateSystem=r})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}(),gn=hn;function fn(e){e.registerCoordinateSystem("radar",gn),e.registerComponentModel(Jt),e.registerComponentView(on),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function yn(e){Object(i["a"])(fn),e.registerChartView(Gt),e.registerSeriesModel(Ft),e.registerLayout(Nt),e.registerProcessor(Re("radar")),e.registerPreprocessor(Vt)}var mn=n("ee55");function vn(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function bn(e,t,n,i){var a=e.target,r=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,r){var s=r.min||0,l=r.max||1/0;o=Math.max(Math.min(l,o),s)}var c=o/e.zoom;e.zoom=o,a.x-=(n-a.x)*(c-1),a.y-=(i-a.y)*(c-1),a.scaleX*=c,a.scaleY*=c,a.dirty()}var xn={axisPointer:1,tooltip:1,brush:1};function _n(e,t,n){var i=t.getComponentByElement(e.topTarget),a=i&&i.coordinateSystem;return i&&i!==n&&!xn.hasOwnProperty(i.mainType)&&a&&a.model!==n}var Sn=n("0ad8"),wn=n("caf8"),On=n("328a"),Mn=n("34e7"),In=n("1cf1"),An=["rect","circle","line","ellipse","polygon","polyline","path"],jn=c["createHashMap"](An),Dn=c["createHashMap"](An.concat(["g"])),Cn=c["createHashMap"](An.concat(["g"])),Tn=Object(lt["o"])();function Ln(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}var Pn=function(){function e(e){var t=new We["a"];this.uid=Object(On["c"])("ec_map_draw"),this._controller=new mn["a"](e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new We["a"]),t.add(this._svgGroup=new We["a"])}return e.prototype.draw=function(e,t,n,i,a){var r="geo"===e.mainType,o=e.getData&&e.getData();r&&t.eachComponent({mainType:"series",subType:"map"},(function(t){o||t.getHostGeoModel()!==e||(o=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),d=u.raw,p=u.roam,h=!l.childAt(0)||a;h?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):Be["h"](c,p,e);var g=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:g,isGeo:r,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=c["createHashMap"](),n=c["createHashMap"](),i=this._regionsGroup,a=e.transformInfoRaw,r=e.mapOrGeoModel,o=e.data,s=function(e){return[e[0]*a.scaleX+a.x,e[1]*a.scaleY+a.y]};i.removeAll(),c["each"](e.geo.regions,(function(a){var l=a.name,u=t.get(l),d=n.get(l)||{},p=d.dataIdx,h=d.regionModel;u||(u=t.set(l,new We["a"]),i.add(u),p=o?o.indexOfName(l):null,h=e.isGeo?r.getRegionModel(l):o?o.getItemModel(p):null,n.set(l,{dataIdx:p,regionModel:h}));var g=new Sn["a"]({segmentIgnoreThreshold:1,shape:{paths:[]}});u.add(g),c["each"](a.geometries,(function(e){if("polygon"===e.type){for(var t=[],n=0;n=0)&&(p=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(et["g"])(t,Object(et["e"])(i),{labelFetcher:p,labelDataIndex:d,defaultText:n},h);var g=t.getTextContent();if(g&&(Tn(g).ignore=g.ignore,t.textConfig&&o)){var f=t.getBoundingRect().clone();t.textConfig.layoutRect=f,t.textConfig.position=[(o[0]-f.x)/f.width*100+"%",(o[1]-f.y)/f.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function En(e,t,n,i,a,r){e.data?e.data.setItemGraphicEl(r,t):Object(wt["a"])(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:i&&i.option||{}}}function Vn(e,t,n,i,a){e.data||Rt["setTooltipConfig"]({el:t,componentModel:a,itemName:n,itemTooltipOption:i.get("tooltip")})}function Rn(e,t,n,i,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var r=i.getModel("emphasis"),o=r.get("focus");return Object(Fe["o"])(t,o,r.get("blurScope")),e.isGeo&&Object(Fe["n"])(t,a,n),o}var zn=Pn,Bn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){r=this._mapDraw;r&&a.add(r.group)}else if(e.needsDrawMap){var r=this._mapDraw||new zn(n);a.add(r.group),r.draw(e,t,n,this,i),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,a=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var r=i.getItemLayout(n);if(r&&r.point){var o=r.point,s=r.offset,l=new en["a"]({style:{fill:e.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:Fe["j"]+1)});if(!s){var c=e.mainSeries.getData(),u=i.getName(n),d=c.indexOfName(u),p=i.getItemModel(n),h=p.getModel("label"),g=c.getItemGraphicEl(d);Object(et["g"])(l,Object(et["e"])(p),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}}}),l.disableLabelAnimation=!0,h.get("position")||l.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(e){Object(Fe["H"])(l,e)}}a.add(l)}}}))},t.type="map",t}(Ue["a"]),Gn=Bn,Hn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e){for(var t=st(this,{coordDimensions:["value"],encodeDefaulter:c["curry"](ct["d"],this)}),n=c["createHashMap"](),i=[],a=0,r=t.count();a-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={zlevel:0,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"},t}(pt["b"]),Wn=Hn;function Fn(e,t){var n={};return c["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var a="ec-"+e.getName(i);n[a]=n[a]||[],isNaN(t)||n[a].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,a){for(var r,o="ec-"+e[0].getName(a),s=0,l=1/0,c=-1/0,u=n[o].length,d=0;d1?(s.width=o,s.height=o/h):(s.height=o,s.width=o*h),s.y=r[1]-s.height/2,s.x=r[0]-s.width/2;else{var f=e.getBoxLayoutParams();f.aspect=h,s=Le["g"](f,{width:d,height:p})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function si(e,t){c["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var li=function(){function e(){this.dimensions=ni}return e.prototype.create=function(e,t){var n=[];e.eachComponent("geo",(function(e,i){var a=e.get("map"),r=new ri(a+i,a,{nameMap:e.get("nameMap"),nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale")});r.zoomLimit=e.get("scaleLimit"),n.push(r),e.coordinateSystem=r,r.model=e,r.resize=oi,r.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),c["each"](i,(function(e,i){var a=c["map"](e,(function(e){return e.get("nameMap")})),r=new ri(i,i,{nameMap:c["mergeAll"](a),nameProperty:e[0].get("nameProperty"),aspectScale:e[0].get("aspectScale")});r.zoomLimit=c["retrieve"].apply(null,c["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(r),r.resize=oi,r.resize(e[0],t),c["each"](e,(function(e){e.coordinateSystem=r,si(r,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var a=(e||[]).slice(),r=c["createHashMap"](),o=0;o=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},a.push(s)}}function Si(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,a=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){Ai(e);var r=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=ji(e,a,e.parentNode.hierNode.defaultAncestor||i[0],t)}function wi(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Oi(e){return arguments.length?e:Pi}function Mi(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Ii(e,t){return Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ai(e){var t=e.children,n=t.length,i=0,a=0;while(--n>=0){var r=t[n];r.hierNode.prelim+=i,r.hierNode.modifier+=i,a+=r.hierNode.change,i+=r.hierNode.shift+a}}function ji(e,t,n,i){if(t){var a=e,r=e,o=r.parentNode.children[0],s=t,l=a.hierNode.modifier,c=r.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;while(s=Di(s),r=Ci(r),s&&r){a=Di(a),o=Ci(o),a.hierNode.ancestor=e;var p=s.hierNode.prelim+d-r.hierNode.prelim-c+i(s,r);p>0&&(Li(Ti(s,e,n),e,p),c+=p,l+=p),d+=s.hierNode.modifier,c+=r.hierNode.modifier,l+=a.hierNode.modifier,u+=o.hierNode.modifier}s&&!Di(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),r&&!Ci(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=c-u,n=e)}return n}function Di(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Ci(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Ti(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function Li(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function Pi(e,t){return e.parentNode===t.parentNode?1:2}var Ni=n("5aa1"),ki=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Ei=function(e){function t(t){return e.call(this,t)||this}return Object(b["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ki},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,a=t.parentPoint,r=n[0],o=n[i-1];if(1===i)return e.moveTo(a[0],a[1]),void e.lineTo(r[0],r[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Object(Te["p"])(t.forkPosition,1),d=[];d[l]=a[l],d[c]=a[c]+(o[c]-a[c])*u,e.moveTo(a[0],a[1]),e.lineTo(d[0],d[1]),e.moveTo(r[0],r[1]),d[l]=r[l],e.lineTo(d[0],d[1]),d[l]=o[l],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var p=1;pv.x,_||(x-=Math.PI));var w=_?"left":"right",O=s.getModel("label"),M=O.get("rotate"),I=M*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:O.get("position")||w,rotation:null==M?-x:I,origin:"center"}),A.setStyle("verticalAlign","middle"))}var j=s.get(["emphasis","focus"]),D="ancestor"===j?o.getAncestorsIndices():"descendant"===j?o.getDescendantIndices():null;D&&(Object(wt["a"])(n).focus=D),Bi(a,o,u,n,g,h,f,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);i&&i.hoverState===Fe["d"]||Object(Fe["H"])(n.__edge,t)}})}function Bi(e,t,n,i,a,r,o,s){var l=t.getModel(),u=e.get("edgeShape"),d=e.get("layout"),p=e.getOrient(),h=e.get(["lineStyle","curveness"]),g=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),y=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(y||(y=i.__edge=new bi["a"]({shape:Fi(d,p,h,a,a)})),Be["h"](y,{shape:Fi(d,p,h,r,o)},e));else if("polyline"===u)if("orthogonal"===d){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],b=0;bt&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var i=n.getData().tree.root,a=e.targetNode;if("string"===typeof a&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var r=e.targetNodeId;if(null!=r&&(a=i.getNodeById(r)))return{node:a}}}function la(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function ca(e,t){var n=la(e);return c["indexOf"](n,t)>=0}function ua(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var da=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Yt["a"](n,this,this.ecModel),a=oa.createTree(t,this,r);function r(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var o=0;a.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return a.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),a.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,a=i.root.children[0],r=i.getNodeByDataIndex(e),o=r.getValue(),s=r.name;while(r&&r!==a)s=r.parentNode.name+"."+s,r=r.parentNode;return Object(Ht["c"])("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ua(i,this),n},t.type="series.tree",t.layoutMode="box",t.defaultOption={zlevel:0,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},t}(pt["b"]),pa=da;function ha(e,t,n){var i,a=[e],r=[];while(i=a.pop())if(r.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;r--)i.push(a[r])}}function fa(e,t){e.eachSeriesByType("tree",(function(e){ya(e,t)}))}function ya(e,t){var n=Ii(e,t);e.layoutInfo=n;var i=e.get("layout"),a=0,r=0,o=null;"radial"===i?(a=2*Math.PI,r=Math.min(n.height,n.width)/2,o=Oi((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(a=n.width,r=n.height,o=Oi());var s=e.getData().tree.root,l=s.children[0];if(l){_i(s),ha(l,Si,o),s.hierNode.modifier=-l.hierNode.prelim,ga(l,wi);var c=l,u=l,d=l;ga(l,(function(e){var t=e.getLayout().x;tu.getLayout().x&&(u=e),e.depth>d.depth&&(d=e)}));var p=c===u?1:o(c,u)/2,h=p-c.getLayout().x,g=0,f=0,y=0,m=0;if("radial"===i)g=a/(u.getLayout().x+p+h),f=r/(d.depth-1||1),ga(l,(function(e){y=(e.getLayout().x+h)*g,m=(e.depth-1)*f;var t=Mi(y,m);e.setLayout({x:t.x,y:t.y,rawX:y,rawY:m},!0)}));else{var v=e.getOrient();"RL"===v||"LR"===v?(f=r/(u.getLayout().x+p+h),g=a/(d.depth-1||1),ga(l,(function(e){m=(e.getLayout().x+h)*f,y="LR"===v?(e.depth-1)*g:a-(e.depth-1)*g,e.setLayout({x:y,y:m},!0)}))):"TB"!==v&&"BT"!==v||(g=a/(u.getLayout().x+p+h),f=r/(d.depth-1||1),ga(l,(function(e){y=(e.getLayout().x+h)*g,m="TB"===v?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:y,y:m},!0)})))}}}function ma(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),a=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(c["extend"])(a,i)}))}))}function va(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,a=i.getNodeByDataIndex(n);a.isExpand=!a.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=t.coordinateSystem,i=hi(n,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function ba(e){e.registerChartView(Ui),e.registerSeriesModel(pa),e.registerLayout(fa),e.registerVisual(ma),va(e)}var xa=function(){},_a=["treemapZoomToNode","treemapRender","treemapMove"];function Sa(e){for(var t=0;t<_a.length;t++)e.registerAction({type:_a[t],update:"updateView"},xa);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],a=sa(e,i,t);if(a){var r=t.getViewRoot();r&&(e.direction=ca(r,a.node)?"rollUp":"drillDown"),t.resetViewRoot(a.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}var wa=n("92e5");function Oa(e){var t=e.getData(),n=t.tree,i={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var a=Object(wa["b"])(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",a)}))}var Ma=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Ia(n);var i=e.levels||[],a=this.designatedVisualItemStyle={},r=new Yt["a"]({itemStyle:a},this,t);i=e.levels=Aa(i,t);var o=c["map"](i||[],(function(e){return new Yt["a"](e,r,t)}),this),s=oa.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?o[n.depth]:null;return e.parentModel=i||r,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),a=this.getRawValue(e),r=i.getName(e);return Object(Ht["c"])("nameValue",{name:r,value:a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=ua(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},c["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=c["createHashMap"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Oa(this)},t.type="series.treemap",t.layoutMode="box",t.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,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"}}},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%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(pt["b"]);function Ia(e){var t=0;c["each"](e.children,(function(e){Ia(e);var n=e.value;c["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;c["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),c["isArray"](e.value)?e.value[0]=n:e.value=n}function Aa(e,t){var n=Object(lt["r"])(t.get("color")),i=Object(lt["r"])(t.get(["aria","decal","decals"]));if(n){var a,r;e=e||[],c["each"](e,(function(e){var t=new Yt["a"](e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(a=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(r=!0)}));var o=e[0]||(e[0]={});return a||(o.color=n.slice()),!r&&i&&(o.decal=i.slice()),e}}var ja=Ma,Da=n("e07c"),Ca=n("251d"),Ta=8,La=8,Pa=5,Na=function(){function e(e){this.group=new We["a"],e.add(this.group)}return e.prototype.render=function(e,t,n,i){var a=e.getModel("breadcrumb"),r=this.group;if(r.removeAll(),a.get("show")&&n){var o=a.getModel("itemStyle"),s=o.getModel("textStyle"),l={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(e,l,o,s,i),Le["i"](r,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var a=Object(lt["e"])(i.getModel().get("name"),""),r=n.getTextRect(a),o=Math.max(r.width+2*Ta,t.emptyItemWidth);t.totalWidth+=o+La,t.renderList.push({node:i,text:a,width:o})}},e.prototype._renderContent=function(e,t,n,i,a){for(var r=0,o=t.emptyItemWidth,s=e.get(["breadcrumb","height"]),l=Le["e"](t.pos,t.box),u=t.totalWidth,d=t.renderList,p=d.length-1;p>=0;p--){var h=d[p],g=h.node,f=h.width,y=h.text;u>l.width&&(u-=f-o,f=o,y=null);var m=new zt["a"]({shape:{points:ka(r,0,f,s,p===d.length-1,0===p)},style:Object(c["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ze["a"]({style:{text:y,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e4*Fe["j"],onclick:Object(c["curry"])(a,g)});m.disableLabelAnimation=!0,this.group.add(m),Ea(m,e,g),r+=f+La}},e.prototype.remove=function(){this.group.removeAll()},e}();function ka(e,t,n,i,a,r){var o=[[a?e:e-Pa,t],[e+n,t],[e+n,t+i],[a?e:e-Pa,t+i]];return!r&&o.splice(2,0,[e+n+Pa,t+i/2]),!a&&o.push([e,t+i/2]),o}function Ea(e,t,n){Object(wt["a"])(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&ua(n,t)}}var Va=Na,Ra=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,a){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;iFa||Math.abs(e.dy)>Fa)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var r=new Xn["a"](a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;t-=o.x,n-=o.y;var s=qn["create"]();qn["translate"](s,s,[-t,-n]),qn["scale"](s,s,[e.scale,e.scale]),qn["translate"](s,s,[t,n]),r.applyTransform(s),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}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var a=i.node;if(a.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var r=a.hostTree.data.getItemModel(a.dataIndex),o=r.get("link",!0),s=r.get("target",!0)||"blank";o&&Object(Ga["l"])(o,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Va(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(ca(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=er(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var a=this._storage.background[i.getRawIndex()];if(a){var r=a.transformCoordToLocal(e,t),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;n={node:i,offsetX:r[0],offsetY:r[1]}}}),this),n},t.type="treemap",t}(Ue["a"]);function er(){return{nodeGroup:[],background:[],content:[]}}function tr(e,t,n,i,a,r,o,s,l,u){if(o){var d=o.getLayout(),p=e.getData(),h=o.getModel();if(p.setItemGraphicEl(o.dataIndex,null),d&&d.isInView){var g=d.width,f=d.height,y=d.borderWidth,m=d.invisible,v=o.getRawIndex(),b=s&&s.getRawIndex(),x=o.viewChildren,_=d.upperHeight,S=x&&x.length,w=h.getModel("itemStyle"),O=h.getModel(["emphasis","itemStyle"]),M=h.getModel(["blur","itemStyle"]),I=h.getModel(["select","itemStyle"]),A=w.get("borderRadius")||0,j=z("nodeGroup",Ha);if(j){if(l.add(j),j.x=d.x||0,j.y=d.y||0,j.markRedraw(),Ja(j).nodeWidth=g,Ja(j).nodeHeight=f,d.isAboveViewRoot)return j;var D=z("background",Wa,u,Za);D&&N(j,D,S&&d.upperLabelHeight);var C=h.get(["emphasis","focus"]),T=h.get(["emphasis","blurScope"]),L="ancestor"===C?o.getAncestorsIndices():"descendant"===C?o.getDescendantIndices():C;if(S)Object(Fe["y"])(j)&&Object(Fe["F"])(j,!1),D&&(Object(Fe["F"])(D,!0),p.setItemGraphicEl(o.dataIndex,D),Object(Fe["p"])(D,L,T));else{var P=z("content",Wa,u,qa);P&&k(j,P),D.disableMorphing=!0,D&&Object(Fe["y"])(D)&&Object(Fe["F"])(D,!1),Object(Fe["F"])(j,!0),p.setItemGraphicEl(o.dataIndex,j),Object(Fe["p"])(j,L,T)}return j}}}function N(t,n,i){var a=Object(wt["a"])(n);if(a.dataIndex=o.dataIndex,a.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:g,height:f,r:A}),m)E(n);else{n.invisible=!1;var r=o.getVisual("style"),s=r.stroke,l=Qa(w);l.fill=s;var c=Ka(O);c.fill=O.get("borderColor");var u=Ka(M);u.fill=M.get("borderColor");var d=Ka(I);if(d.fill=I.get("borderColor"),i){var p=g-2*y;V(n,s,r.opacity,{x:y,y:0,width:p,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=d,Object(Fe["G"])(n)}t.add(n)}function k(t,n){var i=Object(wt["a"])(n);i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex;var a=Math.max(g-2*y,0),r=Math.max(f-2*y,0);if(n.culling=!0,n.setShape({x:y,y:y,width:a,height:r,r:A}),m)E(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,c=Qa(w);c.fill=l,c.decal=s.decal;var u=Ka(O),d=Ka(M),p=Ka(I);V(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=d,n.ensureState("select").style=p,Object(Fe["G"])(n)}t.add(n)}function E(e){!e.invisible&&r.push(e)}function V(t,n,i,a){var r=h.getModel(a?Ya:Ua),s=Object(lt["e"])(h.get("name"),null),l=r.getShallow("show");Object(et["g"])(t,Object(et["e"])(h,a?Ya:Ua),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:o.dataIndex});var u=t.getTextContent();if(u){var p=u.style,g=Object(c["normalizeCssArray"])(p.padding||0);a&&(t.setTextConfig({layoutRect:a}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((a?a.width:t.shape.width)-g[1]-g[3],0),n=Math.max((a?a.height:t.shape.height)-g[0]-g[2],0);p.width===e&&p.height===n||u.setStyle({width:e,height:n})},p.truncateMinChar=2,p.lineOverflow="truncate",R(p,a,d);var f=u.getState("emphasis");R(f?f.style:null,a,d)}}function R(t,n,i){var a=t?t.text:null;if(!n&&i.isLeafRoot&&null!=a){var r=e.get("drillDownIcon",!0);t.text=r?r+" "+a:a}}function z(e,i,r,o){var s=null!=b&&n[e][b],l=a[e];return s?(n[e][b]=null,B(l,s)):m||(s=new i,s instanceof In["c"]&&(s.z2=nr(r,o)),G(l,s)),t[e][v]=s}function B(e,t){var n=e[v]={};t instanceof Ha?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(c["extend"])({},t.shape)}function G(e,t){var n=e[v]={},r=o.parentNode,s=t instanceof We["a"];if(r&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=a.background[r.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 nr(e,t){return e*Xa+t}var ir=$a,ar=c["each"],rr=c["isObject"],or=-1,sr=function(){function e(t){var n=t.mappingMethod,i=t.type,a=this.option=c["clone"](t);this.type=i,this.mappingMethod=n,this._normalizeData=br[n];var r=e.visualHandlers[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[n],"piecewise"===n?(ur(a),lr(a)):"category"===n?a.categories?cr(a):ur(a,!0):(c["assert"]("linear"!==n||a.dataExtent),ur(a))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return c["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return c["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){c["isObject"](e)?c["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var a,r=c["isArray"](t)?[]:c["isObject"](t)?{}:(a=!0,null);return e.eachVisual(t,(function(e,t){var o=n.call(i,e,t);a?r=o:r[t]=o})),r},e.retrieveVisuals=function(t){var n,i={};return t&&ar(e.visualHandlers,(function(e,a){t.hasOwnProperty(a)&&(i[a]=t[a],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(c["isArray"](e))e=e.slice();else{if(!rr(e))return[];var t=[];ar(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,a=1/0,r=0,o=t.length;r=0;r--)null==i[r]&&(delete n[t[r]],t.pop())}function ur(e,t){var n=e.visual,i=[];c["isObject"](n)?ar(n,(function(e){i.push(e)})):null!=n&&i.push(n);var a={color:1,symbol:1};t||1!==i.length||a.hasOwnProperty(e.type)||(i[1]=i[0]),vr(e,i)}function dr(e){return{applyVisual:function(t,n,i){var a=this.mapValueToVisual(t);i("color",e(n("color"),a))},_normalizedToVisual:yr([0,1])}}function pr(e){var t=this.option.visual;return t[Math.round(Object(Te["l"])(e,[0,1],[0,t.length-1],!0))]||{}}function hr(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function gr(e){var t=this.option.visual;return t[this.option.loop&&e!==or?e%t.length:e]}function fr(){return this.option.visual[0]}function yr(e){return{linear:function(t){return Object(Te["l"])(t,e,this.option.visual,!0)},category:gr,piecewise:function(t,n){var i=mr.call(this,n);return null==i&&(i=Object(Te["l"])(t,e,this.option.visual,!0)),i},fixed:fr}}function mr(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=sr.findPieceIndex(e,n),a=n[i];if(a&&a.visual)return a.visual[this.type]}}function vr(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=c["map"](t,(function(e){return o["parse"](e)}))),t}var br={linear:function(e){return Object(Te["l"])(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=sr.findPieceIndex(e,t,!0);if(null!=n)return Object(Te["l"])(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?or:t},fixed:c["noop"]};function xr(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var r=Lr(a,u,e,t,f,i);Mr(e,r,n,i)}}))}else s=Ar(u),d.fill=s}}function Ir(e,t,n){var i=Object(c["extend"])({},t),a=n.designatedVisualItemStyle;return Object(c["each"])(["color","colorAlpha","colorSaturation"],(function(n){a[n]=t[n];var r=e.get(n);a[n]=null,null!=r&&(i[n]=r)})),i}function Ar(e){var t=Dr(e,"color");if(t){var n=Dr(e,"colorAlpha"),i=Dr(e,"colorSaturation");return i&&(t=Object(o["modifyHSL"])(t,null,null,i)),n&&(t=Object(o["modifyAlpha"])(t,n)),t}}function jr(e,t){return null!=t?Object(o["modifyHSL"])(t,null,null,e):null}function Dr(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function Cr(e,t,n,i,a,r){if(r&&r.length){var o=Tr(t,"color")||null!=a.color&&"none"!==a.color&&(Tr(t,"colorAlpha")||Tr(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var u=t.get("colorMappingBy"),d={type:o.name,dataExtent:c,visual:o.range};"color"!==d.type||"index"!==u&&"id"!==u?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var p=new _r(d);return wr(p).drColorMappingBy=u,p}}}function Tr(e,t){var n=e.get(t);return Object(c["isArray"])(n)&&n.length?{name:t,range:n}:null}function Lr(e,t,n,i,a,r){var o=Object(c["extend"])({},t);if(a){var s=a.type,l="color"===s&&wr(a).drColorMappingBy,u="index"===l?i:"id"===l?r.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Pr=Math.max,Nr=Math.min,kr=c["retrieve"],Er=c["each"],Vr=["itemStyle","borderWidth"],Rr=["itemStyle","gapWidth"],zr=["upperLabel","show"],Br=["upperLabel","height"],Gr={seriesType:"treemap",reset:function(e,t,n,i){var a=n.getWidth(),r=n.getHeight(),o=e.option,s=Le["g"](e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=Object(Te["p"])(kr(s.width,l[0]),a),d=Object(Te["p"])(kr(s.height,l[1]),r),p=i&&i.type,h=["treemapZoomToNode","treemapRootToNode"],g=sa(i,h,e),f="treemapRender"===p||"treemapMove"===p?i.rootRect:null,y=e.getViewRoot(),m=la(y);if("treemapMove"!==p){var v="treemapZoomToNode"===p?qr(e,g,y,u,d):f?[f.width,f.height]:[u,d],b=o.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var x={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};y.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};y.setLayout(_),Hr(y,x,!1,0),_=y.getLayout(),Er(m,(function(e,t){var n=(m[t+1]||y).getValue();e.setLayout(c["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))}))}var S=e.getData().tree.root;S.setLayout(Kr(s,f,g),!0),e.setLayoutInfo(s),Qr(S,new Xn["a"](-s.x,-s.y,a,r),m,y,0)}};function Hr(e,t,n,i){var a,r;if(!e.isRemoved()){var o=e.getLayout();a=o.width,r=o.height;var s=e.getModel(),l=s.get(Vr),c=s.get(Rr)/2,u=Jr(s),d=Math.max(l,u),p=l-c,h=d-c;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:u},!0),a=Pr(a-2*p,0),r=Pr(r-p-h,0);var g=a*r,f=Wr(e,s,g,t,n,i);if(f.length){var y={x:p,y:h,width:a,height:r},m=Nr(a,r),v=1/0,b=[];b.area=0;for(var x=0,_=f.length;x<_;){var S=f[x];b.push(S),b.area+=S.getLayout().area;var w=Xr(b,m,t.squareRatio);w<=v?(x++,v=w):(b.area-=b.pop().getLayout().area,Zr(b,m,y,c,!1),m=Nr(y.width,y.height),b.length=b.area=0,v=1/0)}if(b.length&&Zr(b,m,y,c,!0),!n){var O=s.get("childrenVisibleMin");null!=O&&g=0;l--){var c=a["asc"===i?o-l-1:l].getValue();c/n*to[1]&&(o[1]=t)}))):o=[NaN,NaN],{sum:i,dataExtent:o}}function Xr(e,t,n){for(var i=0,a=1/0,r=0,o=void 0,s=e.length;ri&&(i=o));var l=e.area*e.area,c=t*t*n;return l?Pr(c*i/l,l/(c*a)):1/0}function Zr(e,t,n,i,a){var r=t===n.width?0:1,o=1-r,s=["x","y"],l=["width","height"],c=n[s[r]],u=t?e.area/t:0;(a||u>n[l[o]])&&(u=n[l[o]]);for(var d=0,p=e.length;dTe["a"]&&(c=Te["a"]),o=r}ci&&(i=t);var r=i%2?i+2:i+3;a=[];for(var o=0;o0&&(v[0]=-v[0],v[1]=-v[1]);var x=m[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(m[1],m[0]);c[0].8?"left":u[0]<-.8?"right":"center",p=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],d=u[0]>.8?"right":u[0]<-.8?"left":"center",p=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]+S,d=m[0]<0?"right":"left",i.originX=-g*x,i.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+S,d="center",i.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*x+c[0],i.y=c[1]+S,d=m[0]>=0?"right":"left",i.originX=g*x,i.originY=-S;break}i.scaleX=i.scaleY=a,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}}}function w(e,t){var n=e.__specifiedRotation;if(null==n){var i=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(We["a"]),Fo=Wo,Uo=function(){function e(e){this.group=new We["a"],this._LineCtor=e||Fo}return e.prototype.isPersistent=function(){return!0},e.prototype.updateData=function(e){var t=this,n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var r=Xo(e);e.diff(a).add((function(n){t._doAdd(e,n,r)})).update((function(n,i){t._doUpdate(a,e,i,n,r)})).remove((function(e){i.remove(a.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Xo(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||Yo(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0}function Xo(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Object(et["e"])(t)}}function Zo(e){return isNaN(e[0])||isNaN(e[1])}function qo(e){return!Zo(e[0])&&!Zo(e[1])}var Ko=Uo,Qo=n("4300"),Jo=[],$o=[],es=[],ts=Qo["h"],ns=Zn["distSquare"],is=Math.abs;function as(e,t,n){for(var i,a=e[0],r=e[1],o=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){Jo[0]=ts(a[0],r[0],o[0],u),Jo[1]=ts(a[1],r[1],o[1],u);var d=is(ns(Jo,t)-l);d=0?i+=c:i-=c:g>=0?i-=c:i+=c}return i}function rs(e,t){var n=[],i=Qo["n"],a=[[],[],[]],r=[[],[]],o=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Zn["clone"](l[0]),Zn["clone"](l[1])],l[2]&&l.__original.push(Zn["clone"](l[2])));var d=l.__original;if(null!=l[2]){if(Zn["copy"](a[0],d[0]),Zn["copy"](a[1],d[2]),Zn["copy"](a[2],d[1]),c&&"none"!==c){var p=xo(e.node1),h=as(a,d[0],p*t);i(a[0][0],a[1][0],a[2][0],h,n),a[0][0]=n[3],a[1][0]=n[4],i(a[0][1],a[1][1],a[2][1],h,n),a[0][1]=n[3],a[1][1]=n[4]}if(u&&"none"!==u){p=xo(e.node2),h=as(a,d[1],p*t);i(a[0][0],a[1][0],a[2][0],h,n),a[1][0]=n[1],a[2][0]=n[2],i(a[0][1],a[1][1],a[2][1],h,n),a[1][1]=n[1],a[2][1]=n[2]}Zn["copy"](l[0],a[0]),Zn["copy"](l[1],a[2]),Zn["copy"](l[2],a[1])}else{if(Zn["copy"](r[0],d[0]),Zn["copy"](r[1],d[1]),Zn["sub"](o,r[1],r[0]),Zn["normalize"](o,o),c&&"none"!==c){p=xo(e.node1);Zn["scaleAndAdd"](r[0],r[0],o,p*t)}if(u&&"none"!==u){p=xo(e.node2);Zn["scaleAndAdd"](r[1],r[1],o,-p*t)}Zn["copy"](l[0],r[0]),Zn["copy"](l[1],r[1])}}))}function os(e){return"view"===e.type}var ss=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(e,t){var n=new xt["a"],i=new Ko,a=this.group;this._controller=new mn["a"](t.getZr()),this._controllerHost={target:a},a.add(n.group),a.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,a=e.coordinateSystem;this._model=e;var r=this._symbolDraw,o=this._lineDraw,s=this.group;if(os(a)){var l={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?s.attr(l):Be["h"](s,l,e)}rs(e.getGraph(),bo(e));var u=e.getData();r.updateData(u);var d=e.getEdgeData();o.updateData(d),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var p=e.forceLayout,h=e.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,h),u.graph.eachNode((function(e){var t=e.dataIndex,n=e.getGraphicEl(),a=e.getModel();n.off("drag").off("dragend");var r=a.get("draggable");r&&n.on("drag",(function(){p&&(p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,h),p.setFixed(t),u.setItemLayout(t,[n.x,n.y]))})).on("dragend",(function(){p&&p.setUnfixed(t)})),n.setDraggable(r&&!!p);var o=a.get(["emphasis","focus"]);"adjacency"===o&&(Object(wt["a"])(n).focus=e.getAdjacentDataIndices())})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);"adjacency"===n&&(Object(wt["a"])(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var g="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),f=u.getLayout("cx"),y=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),i=n.get(["label","rotate"])||0,a=e.getSymbolPath();if(g){var r=u.getItemLayout(t),o=Math.atan2(r[1]-y,r[0]-f);o<0&&(o=2*Math.PI+o);var s=r[0]=0&&e.call(t,n[a],a)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(t,n[a],a)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof ds||(t=this._nodesMap[cs(t)]),t){for(var a="out"===n?"outEdges":"in"===n?"inEdges":"edges",r=0;r=0&&n.node2.dataIndex>=0}));for(a=0,r=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}c["mixin"](ds,hs("hostGraph","data")),c["mixin"](ps,hs("hostGraph","edgeData"));var gs=us,fs=n("9ed2");function ys(e,t,n,i,a){for(var r=new gs(i),o=0;o "+h)),u++)}var g,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)g=Object(mt["a"])(e,n);else{var y=fs["a"].get(f),m=y&&y.dimensions||[];c["indexOf"](m,"value")<0&&m.concat(["value"]);var v=Object(rt["b"])(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;g=new ot["a"](v,n),g.initData(e)}var b=new ot["a"](["value"],n);return b.initData(l,s),a&&a(g,b),na({mainData:g,struct:r,structAttr:"graph",datas:{node:g,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var ms=n("919a"),vs=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(b["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new dt(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(lt["f"])(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],a=this;if(i&&n){ho(this);var r=ys(i,n,this,!0,o);return c["each"](r.edges,(function(e){go(e.node1,e.node2,this,e.dataIndex)}),this),r.data}function o(e,t){e.wrapMethod("getItemModel",(function(e){var t=a._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Yt["a"].prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=r,i}function r(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=r,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),a=this.getDataParams(e,n),r=i.graph.getEdgeByIndex(e),o=i.getName(r.node1.dataIndex),s=i.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Object(Ht["c"])("nameValue",{name:l.join(" > "),value:a.value,noValue:null==a.value})}var c=Object(ms["a"])({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=c["map"](this.option.categories||[],(function(e){return null!=e.value?e:c["extend"]({value:0},e)})),t=new ot["a"](["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={zlevel:0,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"}}},t}(pt["b"]),bs=vs,xs={type:"graphRoam",event:"graphRoam",update:"none"};function _s(e){e.registerChartView(ls),e.registerSeriesModel(bs),e.registerProcessor(eo),e.registerVisual(to),e.registerVisual(io),e.registerLayout(vo),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Mo),e.registerLayout(jo),e.registerCoordinateSystem("graphView",{dimensions:ei.dimensions,create:Co}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){})),e.registerAction(xs,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var n=t.coordinateSystem,i=hi(n,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var Ss=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),ws=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new Ss},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,a=t.r,r=t.width,o=t.angle,s=t.x-n(o)*r*(r>=a/3?1:2),l=t.y-i(o)*r*(r>=a/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(o)*r,t.y+i(o)*r),e.lineTo(t.x+n(t.angle)*a,t.y+i(t.angle)*a),e.lineTo(t.x-n(o)*r,t.y-i(o)*r),e.lineTo(s,l)},t}(u["b"]),Os=ws,Ms=n("16f4");function Is(e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight(),r=Math.min(i,a),o=Object(Te["p"])(n[0],t.getWidth()),s=Object(Te["p"])(n[1],t.getHeight()),l=Object(Te["p"])(e.get("radius"),r/2);return{cx:o,cy:s,r:l}}function As(e,t){var n=null==e?"":e+"";return t&&("string"===typeof t?n=t.replace("{value}",n):"function"===typeof t&&(n=t(e))),n}var js=2*Math.PI,Ds=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),a=Is(e,n);this._renderMain(e,t,n,i,a),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,a){for(var r=this.group,o=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap"),d=u?Ms["a"]:He["a"],p=c.get("show"),h=c.getModel("lineStyle"),g=h.get("width"),f=(l-s)%js||l===s?(l-s)%js:js,y=s,m=0;p&&m=e&&(0===t?0:i[t-1][0]).8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:N}),silent:!0}))}if(v.get("show")&&C!==x){T=v.get("distance");T=T?T+l:l;for(var k=0;k<=_;k++){c=Math.cos(O),u=Math.sin(O);var E=new To["a"]({shape:{x1:c*(g-T)+p,y1:u*(g-T)+h,x2:c*(g-w-T)+p,y2:u*(g-w-T)+h},silent:!0,style:j});"auto"===j.stroke&&E.setStyle({stroke:i((C+k/_)/x)}),d.add(E),O+=I}O-=I}else O+=M}},t.prototype._renderPointer=function(e,t,n,i,a,r,o,s,l){var u=this.group,p=this._data,h=this._progressEls,g=[],f=e.get(["pointer","show"]),y=e.getModel("progress"),m=y.get("show"),v=e.getData(),b=v.mapDimension("value"),x=+e.get("min"),_=+e.get("max"),S=[x,_],w=[r,o];function O(t,n){var i,r=v.getItemModel(t),o=r.getModel("pointer"),s=Object(Te["p"])(o.get("width"),a.r),l=Object(Te["p"])(o.get("length"),a.r),c=e.get(["pointer","icon"]),u=o.get("offsetCenter"),d=Object(Te["p"])(u[0],a.r),p=Object(Te["p"])(u[1],a.r),h=o.get("keepAspect");return i=c?Object(_t["a"])(c,d-s/2,p-l,s,l,null,h):new Os({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:p}}),i.rotation=-(n+Math.PI/2),i.x=a.cx,i.y=a.cy,i}function M(e,t){var n=y.get("roundCap"),i=n?Ms["a"]:He["a"],o=y.get("overlap"),c=o?y.get("width"):l/v.count(),u=o?a.r-c:a.r-(e+1)*c,d=o?a.r:a.r-e*c,p=new i({shape:{startAngle:r,endAngle:t,cx:a.cx,cy:a.cy,clockwise:s,r0:u,r:d}});return o&&(p.z2=_-v.get(b,e)%_),p}(m||f)&&(v.diff(p).add((function(t){if(f){var n=O(t,r);Be["c"](n,{rotation:-(Object(Te["l"])(v.get(b,t),S,w,!0)+Math.PI/2)},e),u.add(n),v.setItemGraphicEl(t,n)}if(m){var i=M(t,r),a=y.get("clip");Be["c"](i,{shape:{endAngle:Object(Te["l"])(v.get(b,t),S,w,a)}},e),u.add(i),Object(wt["b"])(e.seriesIndex,v.dataType,t,i),g[t]=i}})).update((function(t,n){if(f){var i=p.getItemGraphicEl(n),a=i?i.rotation:r,o=O(t,a);o.rotation=a,Be["h"](o,{rotation:-(Object(Te["l"])(v.get(b,t),S,w,!0)+Math.PI/2)},e),u.add(o),v.setItemGraphicEl(t,o)}if(m){var s=h[n],l=s?s.shape.endAngle:r,c=M(t,l),d=y.get("clip");Be["h"](c,{shape:{endAngle:Object(Te["l"])(v.get(b,t),S,w,d)}},e),u.add(c),Object(wt["b"])(e.seriesIndex,v.dataType,t,c),g[t]=c}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis");if(f){var a=v.getItemGraphicEl(e),r=v.getItemVisual(e,"style"),o=r.fill;if(a instanceof d["a"]){var s=a.style;a.useStyle(Object(c["extend"])({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},r))}else a.useStyle(r),"pointer"!==a.type&&a.setColor(o);a.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===a.style.fill&&a.setStyle("fill",i(Object(Te["l"])(v.get(b,e),S,[0,1],!0))),a.z2EmphasisLift=0,Object(Fe["I"])(a,t),Object(Fe["o"])(a,n.get("focus"),n.get("blurScope"))}if(m){var l=g[e];l.useStyle(v.getItemVisual(e,"style")),l.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),l.z2EmphasisLift=0,Object(Fe["I"])(l,t),Object(Fe["o"])(l,n.get("focus"),n.get("blurScope"))}})),this._progressEls=g)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var a=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),s=n.get("keepAspect"),l=Object(_t["a"])(r,t.cx-a/2+Object(Te["p"])(o[0],t.r),t.cy-a/2+Object(Te["p"])(o[1],t.r),a,a,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,a){var r=this,o=e.getData(),s=o.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new We["a"],d=[],p=[],h=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);o.diff(this._data).add((function(e){d[e]=new ze["a"]({silent:!0}),p[e]=new ze["a"]({silent:!0})})).update((function(e,t){d[e]=r._titleEls[t],p[e]=r._detailEls[t]})).execute(),o.each((function(t){var n=o.getItemModel(t),r=o.get(s,t),f=new We["a"],y=i(Object(Te["l"])(r,[l,c],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var v=m.get("offsetCenter"),b=a.cx+Object(Te["p"])(v[0],a.r),x=a.cy+Object(Te["p"])(v[1],a.r),_=d[t];_.attr({z2:g?0:2,style:Object(et["c"])(m,{x:b,y:x,text:o.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:y})}),f.add(_)}var S=n.getModel("detail");if(S.get("show")){var w=S.get("offsetCenter"),O=a.cx+Object(Te["p"])(w[0],a.r),M=a.cy+Object(Te["p"])(w[1],a.r),I=Object(Te["p"])(S.get("width"),a.r),A=Object(Te["p"])(S.get("height"),a.r),j=e.get(["progress","show"])?o.getItemVisual(t,"style").fill:y,D=(_=p[t],S.get("formatter"));_.attr({z2:g?0:2,style:Object(et["c"])(S,{x:O,y:M,text:As(r,D),width:isNaN(I)?null:I,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:j})}),Object(et["h"])(_,{normal:S},r,(function(e){return As(e,D)})),h&&Object(et["a"])(_,t,o,e,{getFormattedLabel:function(e,t,n,i,a,o){return As(o?o.interpolatedValue:r,D)}}),f.add(_)}u.add(f)})),this.group.add(u),this._titleEls=d,this._detailEls=p},t.type="gauge",t}(Ue["a"]),Cs=Ds,Ts=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){return st(this,["value"])},t.type="series.gauge",t.defaultOption={zlevel:0,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},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}},t}(pt["b"]),Ls=Ts;function Ps(e){e.registerChartView(Cs),e.registerSeriesModel(Ls)}var Ns=["itemStyle","opacity"],ks=function(e){function t(t,n){var i=e.call(this)||this,a=i,r=new Ge["a"],o=new ze["a"];return a.setTextContent(o),i.setTextGuideLine(r),i.updateData(t,n,!0),i}return Object(b["b"])(t,e),t.prototype.updateData=function(e,t,n){var i=this,a=e.hostModel,r=e.getItemModel(t),o=e.getItemLayout(t),s=r.getModel("emphasis"),l=r.get(Ns);l=null==l?1:l,n||Object(Be["g"])(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:o.points}),i.style.opacity=0,Be["c"](i,{style:{opacity:l}},a,t)):Be["h"](i,{style:{opacity:l},shape:{points:o.points}},a,t),Object(Fe["I"])(i,r),this._updateLabel(e,t),Object(Fe["o"])(this,s.get("focus"),s.get("blurScope"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),a=n.getTextContent(),r=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"style"),u=c.fill;Object(et["g"])(a,Object(et["e"])(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var d=l.linePoints;i.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Ye["a"](d[0][0],d[0][1]):null},Be["h"](a,{style:{x:l.x,y:l.y}},r,t),a.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(Xe["d"])(n,Object(Xe["a"])(o),{stroke:u})},t}(zt["a"]),Es=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this._data,r=this.group;i.diff(a).add((function(e){var t=new ks(i,e);i.setItemGraphicEl(e,t),r.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e),r.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);Be["f"](n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Ue["a"]),Vs=Es,Rs=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new dt(c["bind"](this.getData,this),c["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return st(this,{coordDimensions:["value"],encodeDefaulter:c["curry"](ct["d"],this)})},t.prototype._defaultLabelLine=function(e){Object(lt["f"])(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),a=n.mapDimension("value"),r=n.getSum(a);return i.percent=r?+(n.get(a,t)/r*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={zlevel:0,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"}}},t}(pt["b"]),zs=Rs;function Bs(e,t){return Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Gs(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),a=[],r="ascending"===t,o=0,s=e.count();odl)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==a.behavior&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&gl(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function gl(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var fl=pl,yl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&c["merge"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){c["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=c["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);c["each"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Zt["a"]),ml=yl,vl=function(e){function t(t,n,i,a,r){var o=e.call(this,t,n,i)||this;return o.type=a||"value",o.axisIndex=r,o}return Object(b["b"])(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(sn["a"]),bl=vl,xl=n("8706"),_l=c["each"],Sl=Math.min,wl=Math.max,Ol=Math.floor,Ml=Math.ceil,Il=Te["v"],Al=Math.PI,jl=function(){function e(e,t,n){this.type="parallel",this._axesMap=c["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,a=e.parallelAxisIndex;_l(i,(function(e,n){var i=a[n],r=t.getComponent("parallelAxis",i),o=this._axesMap.set(e,new bl(e,dn["a"](r),[0,0],r.get("type"),i)),s="category"===o.type;o.onBand=s&&r.get("boundaryGap"),o.inverse=r.get("inverse"),r.axis=o,o.model=r,o.coordinateSystem=r.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,a=t.pixelDimIndex,r=e[1-a],o=e[a];return r>=n&&r<=n+t.axisLength&&o>=i&&o<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();_l(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),dn["i"](t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],a=["width","height"],r=t.get("layout"),o="horizontal"===r?0:1,s=n[a[o]],l=[0,s],c=this.dimensions.length,u=Dl(t.get("axisExpandWidth"),l),d=Dl(t.get("axisExpandCount")||0,[0,c]),p=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,h=t.get("axisExpandWindow");if(h)e=Dl(h[1]-h[0],l),h[1]=h[0]+e;else{e=Dl(u*(d-1),l);var g=t.get("axisExpandCenter")||Ol(c/2);h=[u*g-e/2],h[1]=h[0]+e}var f=(s-e)/(c-d);f<3&&(f=0);var y=[Ol(Il(h[0]/u,1))+1,Ml(Il(h[1]/u,1))-1],m=f/u*h[0];return{layout:r,pixelDimIndex:o,layoutBase:n[i[o]],layoutLength:s,axisBase:n[i[1-o]],axisLength:n[a[1-o]],axisExpandable:p,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:h,axisCount:c,winInnerIndices:y,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),_l(n,(function(t,n){var r=(i.axisExpandable?Tl:Cl)(n,i),o={horizontal:{x:r.position,y:i.axisLength},vertical:{x:0,y:r.position}},s={horizontal:Al/2,vertical:0},l=[o[a].x+e.x,o[a].y+e.y],c=s[a],u=qn["create"]();qn["rotate"](u,u,c),qn["translate"](u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:r.axisNameAvailableWidth,axisLabelShow:r.axisLabelShow,nameTruncateMaxWidth:r.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var a=this._axesMap,r=this.dimensions,o=[],s=[];c["each"](r,(function(t){o.push(e.mapDimension(t)),s.push(a.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;ua*(1-u[0])?(l="jump",o=s-a*(1-u[2])):(o=s-a*u[1])>=0&&(o=s-a*(1-u[1]))<=0&&(o=0),o*=t.axisExpandWidth/c,o?Object(xl["a"])(o,i,r,"all"):l="none";else{var p=i[1]-i[0],h=r[1]*s/p;i=[wl(0,h-p/2)],i[1]=Sl(r[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:l}},e}();function Dl(e,t){return Sl(wl(e,t[0]),t[1])}function Cl(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function Tl(e,t){var n,i,a=t.layoutLength,r=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e=0;n--)Te["c"](t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,a=t.length;iYl}function dc(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function pc(e,t,n,i){var a=new We["a"];return a.add(new Da["a"]({name:"main",style:yc(n),silent:!0,draggable:!0,cursor:"move",drift:Object(c["curry"])(_c,e,t,a,["n","s","w","e"]),ondragend:Object(c["curry"])(cc,t,{isEnd:!0})})),Object(c["each"])(i,(function(n){a.add(new Da["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(c["curry"])(_c,e,t,a,n),ondragend:Object(c["curry"])(cc,t,{isEnd:!0})}))})),a}function hc(e,t,n,i){var a=i.brushStyle.lineWidth||0,r=Wl(a,Xl),o=n[0][0],s=n[1][0],l=o-a/2,c=s-a/2,u=n[0][1],d=n[1][1],p=u-r+a/2,h=d-r+a/2,g=u-o,f=d-s,y=g+a,m=f+a;fc(e,t,"main",o,s,g,f),i.transformable&&(fc(e,t,"w",l,c,r,m),fc(e,t,"e",p,c,r,m),fc(e,t,"n",l,c,y,r),fc(e,t,"s",l,h,y,r),fc(e,t,"nw",l,c,r,r),fc(e,t,"ne",p,c,r,r),fc(e,t,"sw",l,h,r,r),fc(e,t,"se",p,h,r,r))}function gc(e,t){var n=t.__brushOption,i=n.transformable,a=t.childAt(0);a.useStyle(yc(n)),a.attr({silent:!i,cursor:i?"move":"default"}),Object(c["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var a=t.childOfName(n.join("")),r=1===n.length?bc(e,n[0]):xc(e,n);a&&a.attr({silent:!i,invisible:!i,cursor:i?Kl[r]+"-resize":null})}))}function fc(e,t,n,i,a,r,o){var s=t.childOfName(n);s&&s.setShape(Mc(Oc(e,t,[[i,a],[i+r,a+o]])))}function yc(e){return Object(c["defaults"])({strokeNoScale:!0},e.brushStyle)}function mc(e,t,n,i){var a=[Hl(e,n),Hl(t,i)],r=[Wl(e,n),Wl(t,i)];return[[a[0],r[0]],[a[1],r[1]]]}function vc(e){return Rt["getTransform"](e.group)}function bc(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=Rt["transformDirection"](n[t],vc(e));return i[a]}function xc(e,t){var n=[bc(e,t[0]),bc(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function _c(e,t,n,i,a,r){var o=n.__brushOption,s=e.toRectRange(o.range),l=wc(t,a,r);Object(c["each"])(i,(function(e){var t=ql[e];s[t[0]][t[1]]+=l[t[0]]})),o.range=e.fromRectRange(mc(s[0][0],s[1][0],s[0][1],s[1][1])),ac(t,n),cc(t,{isEnd:!1})}function Sc(e,t,n,i){var a=t.__brushOption.range,r=wc(e,n,i);Object(c["each"])(a,(function(e){e[0]+=r[0],e[1]+=r[1]})),ac(e,t),cc(e,{isEnd:!1})}function wc(e,t,n){var i=e.group,a=i.transformCoordToLocal(t,n),r=i.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function Oc(e,t,n){var i=sc(e,t);return i&&i!==Gl?i.clipPath(n,e._transform):Object(c["clone"])(n)}function Mc(e){var t=Hl(e[0][0],e[1][0]),n=Hl(e[0][1],e[1][1]),i=Wl(e[0][0],e[1][0]),a=Wl(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:a-n}}function Ic(e,t,n){if(e._brushType&&!Pc(e,t.offsetX,t.offsetY)){var i=e._zr,a=e._covers,r=oc(e,t,n);if(!e._dragging)for(var o=0;oi.getWidth()||n<0||n>i.getHeight()}var Nc={lineX:kc(0),lineY:kc(1),rect:{createCover:function(e,t){function n(e){return e}return pc({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=dc(e);return mc(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){hc(e,t,n,i)},updateCommon:gc,contain:jc},polygon:{createCover:function(e,t){var n=new We["a"];return n.add(new Ge["a"]({name:"main",style:yc(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new zt["a"]({name:"main",draggable:!0,drift:Object(c["curry"])(Sc,e,t),ondragend:Object(c["curry"])(cc,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:Oc(e,t,n)})},updateCommon:gc,contain:jc}};function kc(e){return{createCover:function(t,n){return pc({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=dc(t),i=Hl(n[0][e],n[1][e]),a=Wl(n[0][e],n[1][e]);return[i,a]},updateCoverShape:function(t,n,i,a){var r,o=sc(t,n);if(o!==Gl&&o.getLinearBrushOtherExtent)r=o.getLinearBrushOtherExtent(e);else{var s=t._zr;r=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,r];e&&l.reverse(),hc(t,n,l,a)},updateCommon:gc,contain:jc}}var Ec=$l;function Vc(e){return e=Bc(e),function(t){return Rt["clipPointsByRect"](t,e)}}function Rc(e,t){return e=Bc(e),function(n){var i=null!=t?t:n,a=i?e.width:e.height,r=i?e.x:e.y;return[r,r+(a||0)]}}function zc(e,t,n){var i=Bc(e);return function(e,a){return i.contain(a[0],a[1])&&!_n(e,t,n)}}function Bc(e){return Xn["a"].create(e)}var Gc=["axisLine","axisTickLabel","axisName"],Hc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Ec(n.getZr())).on("brush",c["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!Wc(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new We["a"],this.group.add(this._axisGroup),e.get("show")){var r=Uc(e,t),o=r.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,d=o.getAxisLayout(u),p=c["extend"]({strokeContainThreshold:l},d),h=new $t["a"](e,p);c["each"](Gc,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(p,s,e,r,l,n),Rt["groupTransition"](a,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,a,r){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),c=Xn["a"].create({x:o[0],y:-a/2,width:s,height:a});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Vc(c),isTargetByCursor:zc(c,r,i),getLinearBrushOtherExtent:Rc(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Fc(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,a=c["map"](t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:a})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(nn["a"]);function Wc(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Fc(e){var t=e.axis;return c["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function Uc(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var Yc=Hc,Xc={type:"axisAreaSelect",event:"axisAreaSelected"};function Zc(e){e.registerAction(Xc,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var qc={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Kc(e){e.registerComponentView(fl),e.registerComponentModel(ml),e.registerCoordinateSystem("parallel",kl),e.registerPreprocessor(sl),e.registerComponentModel(Rl),e.registerComponentView(Yc),Object(El["a"])(e,"parallel",Rl,qc),Zc(e)}function Qc(e){Object(i["a"])(Kc),e.registerChartView($s),e.registerSeriesModel(il),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,ol)}var Jc=n("3783"),$c=function(){function e(){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 e}(),eu=function(e){function t(t){return e.call(this,t)||this}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new $c},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Object(Fe["r"])(this)},t.prototype.downplay=function(){Object(Fe["C"])(this)},t}(u["b"]),tu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=this,a=e.getGraph(),r=this.group,o=e.layoutInfo,s=o.width,l=o.height,c=e.getData(),u=e.getData("edge"),d=e.get("orient");this._model=e,r.removeAll(),r.x=o.x,r.y=o.y,a.eachEdge((function(t){var n=new eu,i=Object(wt["a"])(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var a,o,c,p,h,g,f,y,m=t.getModel(),v=m.getModel("lineStyle"),b=v.get("curveness"),x=t.node1.getLayout(),_=t.node1.getModel(),S=_.get("localX"),w=_.get("localY"),O=t.node2.getLayout(),M=t.node2.getModel(),I=M.get("localX"),A=M.get("localY"),j=t.getLayout();switch(n.shape.extent=Math.max(1,j.dy),n.shape.orient=d,"vertical"===d?(a=(null!=S?S*s:x.x)+j.sy,o=(null!=w?w*l:x.y)+x.dy,c=(null!=I?I*s:O.x)+j.ty,p=null!=A?A*l:O.y,h=a,g=o*(1-b)+p*b,f=c,y=o*b+p*(1-b)):(a=(null!=S?S*s:x.x)+x.dx,o=(null!=w?w*l:x.y)+j.sy,c=null!=I?I*s:O.x,p=(null!=A?A*l:O.y)+j.ty,h=a*(1-b)+c*b,g=o,f=a*b+c*(1-b),y=p),n.setShape({x1:a,y1:o,x2:c,y2:p,cpx1:h,cpy1:g,cpx2:f,cpy2:y}),n.useStyle(v.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var D=t.node1.getVisual("color"),C=t.node2.getVisual("color");"string"===typeof D&&"string"===typeof C&&(n.style.fill=new Jc["a"](0,0,+("horizontal"===d),+("vertical"===d),[{color:D,offset:0},{color:C,offset:1}]))}var T=m.getModel("emphasis");Object(Fe["I"])(n,m,"lineStyle",(function(e){return e.getItemStyle()})),r.add(n),u.setItemGraphicEl(t.dataIndex,n);var L=T.get("focus");Object(Fe["o"])(n,"adjacency"===L?t.getAdjacentDataIndices():L,T.get("blurScope")),Object(wt["a"])(n).dataType="edge"})),a.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),a=i.get("localX"),o=i.get("localY"),u=i.getModel("emphasis"),d=new Da["a"]({shape:{x:null!=a?a*s:n.x,y:null!=o?o*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(et["g"])(d,Object(et["e"])(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Object(Fe["I"])(d,i),r.add(d),c.setItemGraphicEl(t.dataIndex,d),Object(wt["a"])(d).dataType="node";var p=u.get("focus");Object(Fe["o"])(d,"adjacency"===p?t.getAdjacentDataIndices():p,u.get("blurScope"))})),c.eachItemGraphicEl((function(t,a){var r=c.getItemModel(a);r.get("draggable")&&(t.drift=function(t,r){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(a),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&r.setClipPath(nu(r.getBoundingRect(),e,(function(){r.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Ue["a"]);function nu(e,t,n){var i=new Da["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Be["c"](i,{shape:{width:e.width+20}},t,n),i}var iu=tu,au=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,a=e.levels;this.levelModels=[];for(var r=this.levelModels,o=0;o=0&&(r[a[o].depth]=new Yt["a"](a[o],this,t));if(i&&n){var s=ys(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var a=i.depth,r=n.levelModels[a];r&&(e.parentModel=r)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),a=i.node1.getLayout();if(a){var r=a.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var a=this.getDataParams(e,n),r=a.data,o=a.value,s=r.source+" -- "+r.target;return Object(Ht["c"])("nameValue",{name:s,value:o,noValue:i(o)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,n).data.name;return Object(Ht["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var a=this.getGraph().getNodeByIndex(t),r=a.getLayout().value;i.value=r}return i},t.type="series.sankey",t.defaultOption={zlevel:0,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},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},t}(pt["b"]),ru=au;function ou(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),a=su(e,t);e.layoutInfo=a;var r=a.width,o=a.height,s=e.getGraph(),l=s.nodes,u=s.edges;cu(l);var d=c["filter"](l,(function(e){return 0===e.getLayout().value})),p=0!==d.length?0:e.get("layoutIterations"),h=e.get("orient"),g=e.get("nodeAlign");lu(l,u,n,i,r,o,p,h,g)}))}function su(e,t){return Le["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lu(e,t,n,i,a,r,o,s,l){uu(e,t,n,a,r,s,l),fu(e,t,r,a,i,o,s),ju(e,s)}function cu(e){c["each"](e,(function(e){var t=Iu(e.outEdges,Mu),n=Iu(e.inEdges,Mu),i=e.getValue()||0,a=Math.max(t,n,i);e.setLayout({value:a},!0)}))}function uu(e,t,n,i,a,r,o){for(var s=[],l=[],c=[],u=[],d=0,p=0;p=0;m&&y.depth>h&&(h=y.depth),f.setLayout({depth:m?y.depth:d},!0),"vertical"===r?f.setLayout({dy:n},!0):f.setLayout({dx:n},!0);for(var v=0;vd-1?h:d-1;o&&"left"!==o&&pu(e,o,r,w);var O="vertical"===r?(a-n)/w:(i-n)/w;gu(e,O,r)}function du(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function pu(e,t,n,i){if("right"===t){var a=[],r=e,o=0;while(r.length){for(var s=0;s0;r--)l*=.99,bu(s,l,o),vu(s,a,n,i,o),Au(s,l,o),vu(s,a,n,i,o)}function yu(e,t){var n=[],i="vertical"===t?"y":"x",a=Object(lt["j"])(e,(function(e){return e.getLayout()[i]}));return a.keys.sort((function(e,t){return e-t})),c["each"](a.keys,(function(e){n.push(a.buckets.get(e))})),n}function mu(e,t,n,i,a,r){var o=1/0;c["each"](e,(function(e){var t=e.length,s=0;c["each"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===r?(i-(t-1)*a)/s:(n-(t-1)*a)/s;l0&&(o=s.getLayout()[r]+l,"vertical"===a?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[r]+s.getLayout()[d]+t;var h="vertical"===a?i:n;if(l=c-t-h,l>0){o=s.getLayout()[r]-l,"vertical"===a?s.setLayout({x:o},!0):s.setLayout({y:o},!0),c=o;for(p=u-2;p>=0;--p)s=e[p],l=s.getLayout()[r]+s.getLayout()[d]+t-c,l>0&&(o=s.getLayout()[r]-l,"vertical"===a?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),c=s.getLayout()[r]}}))}function bu(e,t,n){c["each"](e.slice().reverse(),(function(e){c["each"](e,(function(e){if(e.outEdges.length){var i=Iu(e.outEdges,xu,n)/Iu(e.outEdges,Mu);if(isNaN(i)){var a=e.outEdges.length;i=a?Iu(e.outEdges,_u,n)/a:0}if("vertical"===n){var r=e.getLayout().x+(i-Ou(e,n))*t;e.setLayout({x:r},!0)}else{var o=e.getLayout().y+(i-Ou(e,n))*t;e.setLayout({y:o},!0)}}}))}))}function xu(e,t){return Ou(e.node2,t)*e.getValue()}function _u(e,t){return Ou(e.node2,t)}function Su(e,t){return Ou(e.node1,t)*e.getValue()}function wu(e,t){return Ou(e.node1,t)}function Ou(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Mu(e){return e.getValue()}function Iu(e,t,n){var i=0,a=e.length,r=-1;while(++ra&&(a=t)})),c["each"](n,(function(t){var n=new _r({type:"color",mappingMethod:"linear",dataExtent:[i,a],visual:e.get("color")}),r=n.mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",r),t.setVisual("style",{fill:r}))}))}}))}function Cu(e){e.registerChartView(iu),e.registerSeriesModel(ru),e.registerLayout(ou),e.registerVisual(Du),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var Tu=n("0af0"),Lu=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,a=t.getComponent("xAxis",this.get("xAxisIndex")),r=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=r.get("type");"category"===o?(e.layout="horizontal",n=a.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=r.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,d=this._baseAxisDim=l[u],p=l[1-u],h=[a,r],g=h[u].get("type"),f=h[1-u].get("type"),y=e.data;if(y&&i){var m=[];c["each"](y,(function(e,t){var n;c["isArray"](e)?(n=e.slice(),e.unshift(t)):c["isArray"](e.value)?(n=c["extend"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,b=[{name:d,type:Object(Tu["a"])(g),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:Object(Tu["a"])(f),dimsDef:v.slice()}];return st(this,{coordDimensions:b,dimensionsCount:v.length+1,encodeDefaulter:c["curry"](ct["c"],b,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),Pu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.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(b["b"])(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,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},t}(pt["b"]);Object(c["mixin"])(Pu,Lu,!0);var Nu=Pu,ku=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this.group,r=this._data;this._data||a.removeAll();var o="horizontal"===e.get("layout")?1:0;i.diff(r).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=Ru(t,i,e,o,!0);i.setItemGraphicEl(e,n),a.add(n)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(Object(Be["g"])(n),zu(s,n,i,e)):n=Ru(s,i,e,o),a.add(n),i.setItemGraphicEl(e,n)}else a.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&a.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(Ue["a"]),Eu=function(){function e(){}return e}(),Vu=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new Eu},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();iy){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}var qu=n("34f7"),Ku=n("2952"),Qu={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ku["c"]){var n="";0,Object(qu["c"])(n)}var i=Zu(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Ju(e){e.registerSeriesModel(Nu),e.registerChartView(Gu),e.registerVisual(Hu),e.registerLayout(Fu),e.registerTransform(Qu)}var $u=n("60e0"),ed=["color","borderColor"],td=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,a=t.getLayout("isSimpleBox"),r=e.get("clip",!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(r&&rd(s,o))return;var l=ad(o,n,!0);Be["c"](l,{shape:{points:o.ends}},e,n),od(l,t,n,a),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(o,l){var c=n.getItemGraphicEl(l);if(t.hasValue(o)){var u=t.getItemLayout(o);r&&rd(s,u)?i.remove(c):(c?(Be["h"](c,{shape:{points:u.ends}},e,o),Object(Be["g"])(c)):c=ad(u,o),od(c,t,o,a),i.add(c),t.setItemGraphicEl(o,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),ud(e,this.group);var t=e.get("clip",!0)?Object($u["a"])(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),a=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var r=i.getItemLayout(n),o=ad(r,n);od(o,i,n,a),o.incremental=!0,this.group.add(o)}},t.prototype._incrementalRenderLarge=function(e,t){ud(t,this.group,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Ue["a"]),nd=function(){function e(){}return e}(),id=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(b["b"])(t,e),t.prototype.getDefaultShape=function(){return new nd},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(u["b"]);function ad(e,t,n){var i=e.ends;return new id({shape:{points:n?sd(i,e):i},z2:100})}function rd(e,t){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),r=n.getModel("itemStyle").getItemStyle(ed);t.useStyle(r),t.style.fill=null,t.style.stroke=a}var pd=td,hd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(b["b"])(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",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},t}(pt["b"]);Object(c["mixin"])(hd,Lu,!0);var gd=hd;function fd(e){e&&c["isArray"](e.series)&&c["each"](e.series,(function(e){c["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var yd=n("964c"),md=["itemStyle","borderColor"],vd=["itemStyle","borderColor0"],bd=["itemStyle","color"],xd=["itemStyle","color0"],_d={seriesType:"candlestick",plan:Object(yd["a"])(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?bd:xd)}function i(e,t){return t.get(e>0?md:vd)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(e,t){var a;while(null!=(a=e.next())){var r=t.getItemModel(a),o=t.getItemLayout(a).sign,s=r.getItemStyle();s.fill=n(o,r),s.stroke=i(o,r)||s.fill;var l=t.ensureUniqueItemVisual(a,"style");Object(c["extend"])(l,s)}}}}}},Sd=_d,wd="undefined"!==typeof Float32Array?Float32Array:Array,Od={seriesType:"candlestick",plan:Object(yd["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=Id(e,n),a=0,r=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=Object(c["map"])(n.mapDimensionsAll(o[r]),n.getDimensionIndex,n),u=l[0],d=l[1],p=l[2],h=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?f:g};function g(e,n){var o,l=n.getStore();while(null!=(o=e.next())){var c=l.get(s,o),g=l.get(u,o),f=l.get(d,o),y=l.get(p,o),m=l.get(h,o),v=Math.min(g,f),b=Math.max(g,f),x=M(v,c),_=M(b,c),S=M(y,c),w=M(m,c),O=[];I(O,_,0),I(O,x,1),O.push(j(w),j(_),j(S),j(x)),n.setItemLayout(o,{sign:Md(l,o,g,f,d),initBaseline:g>f?_[r]:x[r],ends:O,brushRect:A(y,m,c)})}function M(e,n){var i=[];return i[a]=n,i[r]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function I(e,t,n){var r=t.slice(),o=t.slice();r[a]=Object(Rt["subPixelOptimize"])(r[a]+i/2,1,!1),o[a]=Object(Rt["subPixelOptimize"])(o[a]-i/2,1,!0),n?e.push(r,o):e.push(o,r)}function A(e,t,n){var o=M(e,n),s=M(t,n);return o[a]-=i/2,s[a]-=i/2,{x:o[0],y:o[1],width:r?i:s[0]-o[0],height:r?s[1]-o[1]:i}}function j(e){return e[a]=Object(Rt["subPixelOptimize"])(e[a],1),e}}function f(e,n){var i,o,l=new wd(4*e.count),c=0,g=[],f=[],y=n.getStore();while(null!=(o=e.next())){var m=y.get(s,o),v=y.get(u,o),b=y.get(d,o),x=y.get(p,o),_=y.get(h,o);isNaN(m)||isNaN(x)||isNaN(_)?(l[c++]=NaN,c+=3):(l[c++]=Md(y,o,v,b,d),g[a]=m,g[r]=x,i=t.dataToPoint(g,null,f),l[c++]=i?i[0]:NaN,l[c++]=i?i[1]:NaN,g[r]=_,i=t.dataToPoint(g,null,f),l[c++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function Md(e,t,n,i,a){var r;return r=n>i?-1:n0?e.get(a,t-1)<=i?1:-1:1,r}function Id(e,t){var n,i=e.getBaseAxis(),a="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),r=Object(Te["p"])(Object(c["retrieve2"])(e.get("barMaxWidth"),a),a),o=Object(Te["p"])(Object(c["retrieve2"])(e.get("barMinWidth"),1),a),s=e.get("barWidth");return null!=s?Object(Te["p"])(s,a):Math.max(Math.min(a/2,r),o)}var Ad=Od;function jd(e){e.registerChartView(pd),e.registerSeriesModel(gd),e.registerPreprocessor(fd),e.registerVisual(Sd),e.registerLayout(Ad)}function Dd(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var Cd=function(e){function t(t,n){var i=e.call(this)||this,a=new xi["a"](t,n),r=new We["a"];return i.add(a),i.add(r),i.updateData(t,n),i}return Object(b["b"])(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,a=this.childAt(1),r=0;r0&&(o=this._getLineLength(i)/l*1e3),(o!==this._period||s!==this._loop)&&(i.stopAnimation(),o>0)){var d=void 0;d="function"===typeof u?u(n):u,i.__t>0&&(d=-o*i.__t),i.__t=0;var p=i.animate("",s).when(o,{__t:1}).delay(d).during((function(){a._updateSymbolPosition(i)}));s||p.done((function(){a.remove(i)})),p.start()}this._period=o,this._loop=s}},t.prototype._getLineLength=function(e){return Zn["dist"](e.__p1,e.__cp1)+Zn["dist"](e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,a=e.__t,r=[e.x,e.y],o=r.slice(),s=Qo["h"],l=Qo["i"];r[0]=s(t[0],i[0],n[0],a),r[1]=s(t[1],i[1],n[1],a);var c=l(t[0],i[0],n[0],a),u=l(t[1],i[1],n[1],a);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT=0;r--)if(i[r]<=t)break;r=Math.min(r,a-2)}else{for(r=o;rt)break;r=Math.min(r-1,a-2)}var l=(t-i[r])/(i[r+1]-i[r]),c=n[r],u=n[r+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var d=u[0]-c[0],p=u[1]-c[1];e.rotation=-Math.atan2(p,d)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=t,e.ignore=!1}},t}(Rd),Hd=Gd,Wd=n("085e"),Fd=n("f2f8"),Ud=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),Yd=function(e){function t(t){return e.call(this,t)||this}return Object(b["b"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ud},t.prototype.buildPath=function(e,t){var n=t.segs,i=t.curveness;if(t.polyline)for(var a=0;a0){e.moveTo(n[a++],n[a++]);for(var o=1;o0){var d=(s+c)/2-(l-u)*i,p=(l+u)/2-(c-s)*i;e.quadraticCurveTo(d,p,c,u)}else e.lineTo(c,u)}},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,a=n.curveness,r=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s0)for(var c=i[s++],u=i[s++],d=1;d0){var g=(c+p)/2-(u-h)*a,f=(u+h)/2-(p-c)*a;if(Fd["a"](c,u,g,f,p,h,r,e,t))return o}else if(Wd["a"](c,u,p,h,r,e,t))return o;o++}return-1},t}(u["b"]),Xd=function(){function e(){this.group=new We["a"]}return e.prototype.isPersistent=function(){return!this._incremental},e.prototype.updateData=function(e){this.group.removeAll();var t=new Yd({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new St["a"]({silent:!0})),this.group.add(this._incremental)):this._incremental=null},e.prototype.incrementalUpdate=function(e,t){var n=new Yd;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},e.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=t.getVisual("style");if(a&&a.stroke&&e.setStyle("stroke",a.stroke),e.setStyle("fill",null),!n){var r=Object(wt["a"])(e);r.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){r.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(r.dataIndex=n+e.__startIndex)}))}},e.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e}(),Zd=Xd,qd={seriesType:"lines",plan:Object(yd["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(a,r){var o=[];if(i){var s=void 0,l=a.end-a.start;if(n){for(var c=0,u=a.start;u ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",zlevel:0,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}},t}(pt["b"]),ip=np;function ap(e){return e instanceof Array||(e=[e,e]),e}var rp={seriesType:"lines",reset:function(e){var t=ap(e.get("symbol")),n=ap(e.get("symbolSize")),i=e.getData();function a(e,t){var n=e.getItemModel(t),i=ap(n.getShallow("symbol",!0)),a=ap(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),a[0]&&e.setItemVisual(t,"fromSymbolSize",a[0]),a[1]&&e.setItemVisual(t,"toSymbolSize",a[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?a:null}}},op=rp;function sp(e){e.registerChartView(Jd),e.registerSeriesModel(ip),e.registerLayout(Kd),e.registerVisual(op)}var lp=256,cp=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=c["createCanvas"]();this.canvas=e}return e.prototype.update=function(e,t,n,i,a,r){var o=this._getBrush(),s=this._getGradient(a,"inRange"),l=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext("2d"),p=e.length;u.width=t,u.height=n;for(var h=0;h0){var A=r(v)?s:l;v>0&&(v=v*M+w),x[_++]=A[I],x[_++]=A[I+1],x[_++]=A[I+2],x[_++]=A[I+3]*v*256}else _+=4}return d.putImageData(b,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=c["createCanvas"]()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),a=[0,0,0,0],r=0,o=0;o<256;o++)e[t](o/255,!0,a),i[r++]=a[0],i[r++]=a[1],i[r++]=a[2],i[r++]=a[3];return i},e}(),up=cp,dp=n("842f");function pp(e,t,n){var i=e[1]-e[0];t=c["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var a=t.length,r=0;return function(e){var i;for(i=r;i=0;i--){o=t[i].interval;if(o[0]<=e&&e<=o[1]){r=i;break}}return i>=0&&i=t[0]&&e<=t[1]}}function gp(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var fp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var a=e.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):gp(a)&&this._renderOnGeo(a,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var a=t.coordinateSystem;a&&(gp(a)?this.render(t,n,i):this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0))},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,a){var r,o,s,l,c=e.coordinateSystem;if(Object(dp["a"])(c,"cartesian2d")){var u=c.getAxis("x"),d=c.getAxis("y");0,r=u.getBandWidth(),o=d.getBandWidth(),s=u.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,h=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),f=e.getModel(["blur","itemStyle"]).getItemStyle(),y=e.getModel(["select","itemStyle"]).getItemStyle(),m=Object(et["e"])(e),v=e.get(["emphasis","focus"]),b=e.get(["emphasis","blurScope"]),x=Object(dp["a"])(c,"cartesian2d")?[h.mapDimension("x"),h.mapDimension("y"),h.mapDimension("value")]:[h.mapDimension("time"),h.mapDimension("value")],_=n;_s[1]||Ml[1])continue;var I=c.dataToPoint([O,M]);S=new Da["a"]({shape:{x:Math.floor(Math.round(I[0])-r/2),y:Math.floor(Math.round(I[1])-o/2),width:Math.ceil(r),height:Math.ceil(o)},style:w})}else{if(isNaN(h.get(x[1],_)))continue;S=new Da["a"]({z2:1,shape:c.dataToRect([h.get(x[0],_)]).contentShape,style:w})}var A=h.getItemModel(_);if(h.hasItemOption){var j=A.getModel("emphasis");g=j.getModel("itemStyle").getItemStyle(),f=A.getModel(["blur","itemStyle"]).getItemStyle(),y=A.getModel(["select","itemStyle"]).getItemStyle(),v=j.get("focus"),b=j.get("blurScope"),m=Object(et["e"])(A)}var D=e.getRawValue(_),C="-";D&&null!=D[2]&&(C=D[2]+""),Object(et["g"])(S,m,{labelFetcher:e,labelDataIndex:_,defaultOpacity:w.opacity,defaultText:C}),S.ensureState("emphasis").style=g,S.ensureState("blur").style=f,S.ensureState("select").style=y,Object(Fe["o"])(S,v,b),S.incremental=a,a&&(S.states.emphasis.hoverLayer=!0),p.add(S),h.setItemGraphicEl(_,S)}},t.prototype._renderOnGeo=function(e,t,n,i){var a=n.targetVisuals.inRange,r=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new up;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),p=Math.max(l.y,0),h=Math.min(l.width+l.x,i.getWidth()),g=Math.min(l.height+l.y,i.getHeight()),f=h-u,y=g-p,m=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],v=o.mapArray(m,(function(t,n,i){var a=e.dataToPoint([t,n]);return a[0]-=u,a[1]-=p,a.push(i),a})),b=n.getExtent(),x="visualMap.continuous"===n.type?hp(b,n.option.range):pp(b,n.getPieceList(),n.option.selected);s.update(v,f,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:r.color.getColorMapper()},x);var _=new d["a"]({style:{width:f,height:y,x:u,y:p,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(Ue["a"]),yp=fp,mp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){return Object(mt["a"])(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=fs["a"].get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(pt["b"]),vp=mp;function bp(e){e.registerChartView(yp),e.registerSeriesModel(vp)}var xp=n("6988"),_p=["itemStyle","borderWidth"],Sp=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],wp=new en["a"],Op=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=this.group,a=e.getData(),r=this._data,o=e.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),c=o.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:Sp[+l],categoryDim:Sp[1-+l]};return a.diff(r).add((function(e){if(a.hasValue(e)){var t=Ep(a,e),n=Mp(a,e,t,u),r=zp(a,u,n);a.setItemGraphicEl(e,r),i.add(r),Up(r,u,n)}})).update((function(e,t){var n=r.getItemGraphicEl(t);if(a.hasValue(e)){var o=Ep(a,e),s=Mp(a,e,o,u),l=Hp(a,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),a.setItemGraphicEl(e,null),n=null),n?Bp(n,u,s):n=zp(a,u,s,!0),a.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),Up(n,u,s)}else i.remove(n)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&Gp(r,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=a,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){Gp(i,Object(wt["a"])(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(Ue["a"]);function Mp(e,t,n,i){var a=e.getItemLayout(t),r=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),p={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:r,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Ip(n,r,a,i,p),jp(e,t,a,r,o,p.boundingLength,p.pxSign,u,i,p),Dp(n,p.symbolScale,c,i,p);var h=p.symbolSize,g=Object(_t["b"])(n.get("symbolOffset"),h);return Cp(n,h,a,r,o,g,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function Ip(e,t,n,i,a){var r,o=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),d=1-+(n[o.wh]<=0);if(c["isArray"](s)){var p=[Ap(l,s[0])-u,Ap(l,s[1])-u];p[1]0?1:r<0?-1:0}function Ap(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function jp(e,t,n,i,a,r,o,s,l,u){var d,p=l.valueDim,h=l.categoryDim,g=Math.abs(n[h.wh]),f=e.getItemVisual(t,"symbolSize");d=c["isArray"](f)?f.slice():null==f?["100%","100%"]:[f,f],d[h.index]=Object(Te["p"])(d[h.index],g),d[p.index]=Object(Te["p"])(d[p.index],i?g:Math.abs(r)),u.symbolSize=d;var y=u.symbolScale=[d[0]/s,d[1]/s];y[p.index]*=(l.isHorizontal?-1:1)*o}function Dp(e,t,n,i,a){var r=e.get(_p)||0;r&&(wp.attr({scaleX:t[0],scaleY:t[1],rotation:n}),wp.updateTransform(),r/=wp.getLineScale(),r*=t[i.valueDim.index]),a.valueLineWidth=r}function Cp(e,t,n,i,a,r,o,s,l,u,d,p){var h=d.categoryDim,g=d.valueDim,f=p.pxSign,y=Math.max(t[g.index]+s,0),m=y;if(i){var v=Math.abs(l),b=c["retrieve"](e.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var _=Object(Te["p"])(b,t[g.index]),S=Math.max(y+2*_,0),w=x?0:2*_,O=Object(Te["j"])(i),M=O?i:Yp((v+w)/S),I=v-M*y;_=I/2/(x?M:Math.max(M-1,1)),S=y+2*_,w=x?0:2*_,O||"fixed"===i||(M=u?Yp((Math.abs(u)+w)/S):0),m=M*S-w,p.repeatTimes=M,p.symbolMargin=_}var A=f*(m/2),j=p.pathPosition=[];j[h.index]=n[h.wh]/2,j[g.index]="start"===o?A:"end"===o?l-A:l/2,r&&(j[0]+=r[0],j[1]+=r[1]);var D=p.bundlePosition=[];D[h.index]=n[h.xy],D[g.index]=n[g.xy];var C=p.barRectShape=c["extend"]({},n);C[g.wh]=f*Math.max(Math.abs(n[g.wh]),Math.abs(j[g.index]+A)),C[h.wh]=n[h.wh];var T=p.clipShape={};T[h.xy]=-n[h.xy],T[h.wh]=d.ecSize[h.wh],T[g.xy]=0,T[g.wh]=n[g.wh]}function Tp(e){var t=e.symbolPatternSize,n=Object(_t["a"])(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Lp(e,t,n,i){var a=e.__pictorialBundle,r=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,d=r[t.valueDim.index]+o+2*n.symbolMargin;for(Wp(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u0:i<0)&&(a=c-1-e),t[l.index]=d*(a-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Pp(e,t,n,i){var a=e.__pictorialBundle,r=e.__pictorialMainPath;r?Fp(r,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(r=e.__pictorialMainPath=Tp(n),a.add(r),Fp(r,{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 Np(e,t,n){var i=c["extend"]({},t.barRectShape),a=e.__pictorialBarRect;a?Fp(a,null,{shape:i},t,n):(a=e.__pictorialBarRect=new Da["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function kp(e,t,n,i){if(n.symbolClip){var a=e.__pictorialClipPath,r=c["extend"]({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)Be["h"](a,{shape:r},s,l);else{r[o.wh]=0,a=new Da["a"]({shape:r}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],Rt[i?"updateProps":"initProps"](a,{shape:u},s,l)}}}function Ep(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Vp,n.isAnimationEnabled=Rp,n}function Vp(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Rp(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function zp(e,t,n,i){var a=new We["a"],r=new We["a"];return a.add(r),a.__pictorialBundle=r,r.x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?Lp(a,t,n):Pp(a,t,n),Np(a,n,i),kp(a,t,n,i),a.__pictorialShapeStr=Hp(e,n),a.__pictorialSymbolMeta=n,a}function Bp(e,t,n){var i=n.animationModel,a=n.dataIndex,r=e.__pictorialBundle;Be["h"](r,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,a),n.symbolRepeat?Lp(e,t,n,!0):Pp(e,t,n,!0),Np(e,n,!0),kp(e,t,n,!0)}function Gp(e,t,n,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var r=[];Wp(i,(function(e){r.push(e)})),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),c["each"](r,(function(e){Be["e"](e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function Hp(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Wp(e,t,n){c["each"](e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function Fp(e,t,n,i,a,r){t&&e.attr(t),i.symbolClip&&!a?n&&e.attr(n):n&&Rt[a?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,r)}function Up(e,t,n){var i=n.dataIndex,a=n.itemModel,r=a.getModel("emphasis"),o=r.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),p=r.get("focus"),h=r.get("blurScope"),g=r.get("scale");Wp(e,(function(e){if(e instanceof d["a"]){var t=e.style;e.useStyle(c["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=o,g&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var f=t.valueDim.posDesc[+(n.boundingLength>0)],y=e.__pictorialBarRect;Object(et["g"])(y,Object(et["e"])(a),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:Object(xp["b"])(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Object(Fe["o"])(e,p,h)}function Yp(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Xp=Op,Zp=n("25df"),qp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Object(On["d"])(Zp["a"].defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Zp["a"]),Kp=qp,Qp=n("e043");function Jp(e){e.registerChartView(Xp),e.registerSeriesModel(Kp),e.registerLayout(Object(c["curry"])(Qp["c"],"pictorialBar"))}var $p=n("9217"),eh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),a=this,r=this.group,o=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function d(e){return e.name}r.x=0,r.y=l.y+u[0];var p=new Ca["a"](this._layersSeries||[],o,d,d),h=[];function g(t,n,s){var l=a._layers;if("remove"!==t){for(var c,u,d=[],p=[],g=o[n].indices,f=0;fr&&(r=s),i.push(s)}for(var c=0;cr&&(r=d)}return{y0:a,max:r}}function ch(e){e.registerChartView(nh),e.registerSeriesModel(rh),e.registerLayout(oh),e.registerProcessor(Re("themeRiver"))}var uh=2,dh=4,ph=function(e){function t(t,n,i,a){var r=e.call(this)||this;r.z2=uh,r.textConfig={inside:!0},Object(wt["a"])(r).seriesIndex=n.seriesIndex;var o=new ze["a"]({z2:dh,silent:t.getModel().get(["label","silent"])});return r.setTextContent(o),r.updateData(!0,t,n,i,a),r}return Object(b["b"])(t,e),t.prototype.updateData=function(e,t,n,i,a){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var r=this;Object(wt["a"])(r).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel("emphasis"),l=t.getLayout(),u=c["extend"]({},l);u.label=null;var d=t.getVisual("style");d.lineJoin="bevel";var p=t.getVisual("decal");p&&(d.decal=Object(Mn["a"])(p,a));var h=tt(o.getModel("itemStyle"),u,!0);c["extend"](u,h),c["each"](Fe["g"],(function(e){var t=r.ensureState(e),n=o.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=tt(n,u);i&&(t.shape=i)})),e?(r.setShape(u),r.shape.r=l.r0,Be["h"](r,{shape:{r:l.r}},n,t.dataIndex)):(Be["h"](r,{shape:u},n),Object(Be["g"])(r)),r.useStyle(d),this._updateLabel(n);var g=o.getShallow("cursor");g&&r.attr("cursor",g),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),y="ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Object(Fe["o"])(this,y,s.get("blurScope"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),a=this.node.getLayout(),r=a.endAngle-a.startAngle,o=(a.startAngle+a.endAngle)/2,s=Math.cos(o),l=Math.sin(o),u=this,d=u.getTextContent(),p=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(null!=h&&Math.abs(r)Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(m=a.r0+_,o>Math.PI/2&&(S="right")):"right"===S&&(m=a.r-_,o>Math.PI/2&&(S="left")):(m=(a.r+a.r0)/2,S="center"),h.style.align=S,h.style.verticalAlign=f(r,"verticalAlign")||"middle",h.x=m*s+a.cx,h.y=m*l+a.cy;var w=f(r,"rotate"),O=0;"radial"===w?(O=-o,O<-Math.PI/2&&(O+=Math.PI)):"tangential"===w?(O=Math.PI/2-o,O>Math.PI/2?O-=Math.PI:O<-Math.PI/2&&(O+=Math.PI)):"number"===typeof w&&(O=w*Math.PI/180),h.rotation=O})),d.dirtyStyle()},t}(He["a"]),hh=ph,gh="sunburstRootToNode",fh="sunburstHighlight",yh="sunburstUnhighlight";function mh(e){e.registerAction({type:gh,update:"updateView"},(function(e,t){function n(t,n){var i=sa(e,[gh],t);if(i){var a=t.getViewRoot();a&&(e.direction=ca(a,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:fh,update:"none"},(function(e,t,n){function i(t){var n=sa(e,[fh],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(c["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(Object(c["extend"])(e,{type:"highlight"}))})),e.registerAction({type:yh,update:"updateView"},(function(e,t,n){e=Object(c["extend"])({},e),n.dispatchAction(Object(c["extend"])(e,{type:"downplay"}))}))}var vh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n,i){var a=this;this.seriesModel=e,this.api=n,this.ecModel=t;var r=e.getData(),o=r.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),d=[];s.eachNode((function(e){d.push(e)}));var p=this._oldChildren||[];function h(e,t){function n(e){return e.getId()}function i(n,i){var a=null==n?null:e[n],r=null==i?null:t[i];g(a,r)}0===e.length&&0===t.length||new Ca["a"](t,e,n,n).add(i).update(i).remove(c["curry"](i,null)).execute()}function g(i,a){if(u||!i||i.getValue()||(i=null),i!==o&&a!==o)if(a&&a.piece)i?(a.piece.updateData(!1,i,e,t,n),r.setItemGraphicEl(i.dataIndex,a.piece)):f(a);else if(i){var s=new hh(i,e,t,n);l.add(s),r.setItemGraphicEl(i.dataIndex,s)}}function f(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function y(i,r){r.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,i,e,t,n):(a.virtualPiece=new hh(i,e,t,n),l.add(a.virtualPiece)),r.piece.off("click"),a.virtualPiece.on("click",(function(e){a._rootToNode(r.parentNode)}))):a.virtualPiece&&(l.remove(a.virtualPiece),a.virtualPiece=null)}h(d,p),y(o,s),this._initEvents(),this._oldChildren=d},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var a=i.getModel().get("nodeClick");if("rootToNode"===a)e._rootToNode(i);else if("link"===a){var r=i.getModel(),o=r.get("link");if(o){var s=r.get("target",!0)||"_blank";Object(Ga["l"])(o,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:gh,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var a=e[0]-i.cx,r=e[1]-i.cy,o=Math.sqrt(a*a+r*r);return o<=i.r&&o>=i.r0}},t.type="sunburst",t}(Ue["a"]),bh=vh,xh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(b["b"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};_h(n);var i=this._levelModels=c["map"](e.levels||[],(function(e){return new Yt["a"](e,this,t)}),this),a=oa.createTree(n,this,r);function r(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t),r=i[n.depth];return r&&(e.parentModel=r),e}))}return a.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=ua(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Oa(this)},t.type="series.sunburst",t.defaultOption={zlevel:0,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"},t}(pt["b"]);function _h(e){var t=0;c["each"](e.children,(function(e){_h(e);var n=e.value;c["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;c["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),c["isArray"](e.value)?e.value[0]=n:e.value=n}var Sh=xh,wh=Math.PI/180;function Oh(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");c["isArray"](i)||(i=[0,i]),c["isArray"](t)||(t=[t,t]);var a=n.getWidth(),r=n.getHeight(),o=Math.min(a,r),s=Object(Te["p"])(t[0],a),l=Object(Te["p"])(t[1],r),u=Object(Te["p"])(i[0],o/2),d=Object(Te["p"])(i[1],o/2),p=-e.get("startAngle")*wh,h=e.get("minAngle")*wh,g=e.getData().tree.root,f=e.getViewRoot(),y=f.depth,m=e.get("sort");null!=m&&Mh(f,m);var v=0;c["each"](f.children,(function(e){!isNaN(e.getValue())&&v++}));var b=f.getValue(),x=Math.PI/(b||v)*2,_=f.depth>0,S=f.height-(_?-1:1),w=(d-u)/(S||1),O=e.get("clockwise"),M=e.get("stillShowZeroSum"),I=O?1:-1,A=function(t,n){if(t){var i=n;if(t!==g){var a=t.getValue(),r=0===b&&M?x:a*x;r1)a=a.parentNode;var r=n.getColorFromPalette(a.name||a.dataIndex+"",t);return e.depth>1&&"string"===typeof r&&(r=Object(o["lift"])(r,(e.depth-1)/(i-1)*.5)),r}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(a){var r=a.getModel(),o=r.getModel("itemStyle").getItemStyle();o.fill||(o.fill=n(a,e,i.root.height));var s=t.ensureUniqueItemVisual(a.dataIndex,"style");Object(c["extend"])(s,o)}))}))}function jh(e){e.registerChartView(bh),e.registerSeriesModel(Sh),e.registerLayout(Object(c["curry"])(Oh,"sunburst")),e.registerProcessor(Object(c["curry"])(Re,"sunburst")),e.registerVisual(Ah),mh(e)}var Dh={x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1},Ch={color:"fill",borderColor:"stroke"},Th={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Lh=Object(lt["o"])(),Ph=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Object(mt["a"])(null,this)},t.prototype.getDataParams=function(t,n,i){var a=e.prototype.getDataParams.call(this,t,n);return i&&(a.info=Lh(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},t}(pt["b"]),Nh=Ph;function kh(e,t){return t=t||[0,0],c["map"](["x","y"],(function(n,i){var a=this.getAxis(n),r=t[i],o=e[i]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(r-o)-a.dataToCoord(r+o))}),this)}function Eh(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:c["bind"](kh,e)}}}function Vh(e,t){return t=t||[0,0],c["map"]([0,1],(function(n){var i=t[n],a=e[n]/2,r=[],o=[];return r[n]=i-a,o[n]=i+a,r[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(r)[n]-this.dataToPoint(o)[n])}),this)}function Rh(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:c["bind"](Vh,e)}}}function zh(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-a)-n.dataToCoord(i+a))}function Bh(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(c["bind"])(zh,e)}}}function Gh(e,t){return t=t||[0,0],c["map"](["Radius","Angle"],(function(n,i){var a="get"+n+"Axis",r=this[a](),o=t[i],s=e[i]/2,l="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-s)-r.dataToCoord(o+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function Hh(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),r=n.dataToAngle(i[1]),o=e.coordToPoint([a,r]);return o.push(a,r*Math.PI/180),o},size:c["bind"](Gh,e)}}}function Wh(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function Fh(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(c["hasOwn"])(e,"text")))}function Uh(e,t,n){var i,a,r,o=e;if("text"===t)r=o;else{r={},Object(c["hasOwn"])(o,"text")&&(r.text=o.text),Object(c["hasOwn"])(o,"rich")&&(r.rich=o.rich),Object(c["hasOwn"])(o,"textFill")&&(r.fill=o.textFill),Object(c["hasOwn"])(o,"textStroke")&&(r.stroke=o.textStroke),Object(c["hasOwn"])(o,"fontFamily")&&(r.fontFamily=o.fontFamily),Object(c["hasOwn"])(o,"fontSize")&&(r.fontSize=o.fontSize),Object(c["hasOwn"])(o,"fontStyle")&&(r.fontStyle=o.fontStyle),Object(c["hasOwn"])(o,"fontWeight")&&(r.fontWeight=o.fontWeight),a={type:"text",style:r,silent:!0},i={};var s=Object(c["hasOwn"])(o,"textPosition");n?i.position=s?o.textPosition:"inside":s&&(i.position=o.textPosition),Object(c["hasOwn"])(o,"textPosition")&&(i.position=o.textPosition),Object(c["hasOwn"])(o,"textOffset")&&(i.offset=o.textOffset),Object(c["hasOwn"])(o,"textRotation")&&(i.rotation=o.textRotation),Object(c["hasOwn"])(o,"textDistance")&&(i.distance=o.textDistance)}return Yh(r,e),Object(c["each"])(r.rich,(function(e){Yh(e,e)})),{textConfig:i,textContent:a}}function Yh(e,t){t&&(t.font=t.textFont||t.font,Object(c["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(c["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(c["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(c["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(c["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(c["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(c["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(c["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(c["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(c["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(c["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(c["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(c["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(c["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(c["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Xh(e,t,n){var i=e;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 a=i.textPosition.indexOf("inside")>=0,r=e.fill||"#000";Zh(i,t);var o=null==i.textFill;return a?o&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=r),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(o&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(c["each"])(t.rich,(function(e){Zh(e,e)})),i}function Zh(e,t){t&&(Object(c["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(c["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(c["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(c["hasOwn"])(t,"font")&&(e.font=t.font),Object(c["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(c["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(c["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(c["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(c["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(c["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(c["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(c["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(c["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(c["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(c["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(c["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(c["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(c["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(c["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(c["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(c["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(c["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(c["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(c["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(c["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(c["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var qh=n("e6aa"),Kh={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]};function Qh(e,t,n){var i=e[n],a=Kh[n];i&&(t[a[0]]=i[0],t[a[1]]=i[1])}function Jh(e,t,n){null!=e[n]&&(t[n]=e[n])}function $h(e,t,n){n&&(e[t]=n[t])}function eg(e,t,n,i,a){var r=n[e];if(r){var o,s=t[e],l=r.enterFrom;if(a&&l){!o&&(o=i[e]={});for(var u=Object(c["keys"])(l),d=0;d=0){!o&&(o=i[e]={});var f=Object(c["keys"])(s);for(d=0;d=0){var g=e.getAnimationStyleProps(),f=g?g.style:null;if(f){!r&&(r=i.style={});var y=Object(c["keys"])(n);for(u=0;u=0?t.getStore().get(a,n):void 0}var r=t.get(i.name,n),o=i&&i.ordinalMeta;return o?o.categories[r]:r}function w(n,i){null==i&&(i=s);var a=t.getItemVisual(i,"style"),r=a&&a.fill,o=a&&a.opacity,l=b(i,lg).getItemStyle();null!=r&&(l.fill=r),null!=o&&(l.opacity=o);var u={inheritColor:Object(c["isString"])(r)?r:"#000"},d=x(i,lg),p=et["c"](d,null,u,!1,!0);p.text=d.getShallow("show")?Object(c["retrieve2"])(e.getFormattedLabel(i,lg),Object(xp["b"])(t,i)):null;var h=et["b"](d,u,!1);return I(n,l),l=Xh(l,p,h),n&&M(l,n),l.legacy=!0,l}function O(n,i){null==i&&(i=s);var a=b(i,sg).getItemStyle(),r=x(i,sg),o=et["c"](r,null,null,!0,!0);o.text=r.getShallow("show")?Object(c["retrieve3"])(e.getFormattedLabel(i,sg),e.getFormattedLabel(i,lg),Object(xp["b"])(t,i)):null;var l=et["b"](r,null,!0);return I(n,a),a=Xh(a,o,l),n&&M(a,n),a.legacy=!0,a}function M(e,t){for(var n in t)Object(c["hasOwn"])(t,n)&&(e[n]=t[n])}function I(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function A(e,n){if(null==n&&(n=s),Object(c["hasOwn"])(Ch,e)){var i=t.getItemVisual(n,"style");return i?i[Ch[e]]:null}if(Object(c["hasOwn"])(Th,e))return t.getItemVisual(n,e)}function j(e){if("cartesian2d"===r.type){var t=r.getBaseAxis();return Object(Qp["a"])(Object(c["defaults"])({axis:t},e))}}function D(){return n.getCurrentSeriesIndices()}function C(e){return et["d"](e,n)}}function Ng(e){var t={};return Object(c["each"])(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var a=i.coordDim,r=t[a]=t[a]||[];r[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function kg(e,t,n,i,a,r,o){if(i){var s=Eg(e,t,n,i,a,r,!0);return s&&o.setItemGraphicEl(n,s),s&&Object(Fe["o"])(s,i.focus,i.blurScope),s}r.remove(t)}function Eg(e,t,n,i,a,r,o){var s=-1,l=t;t&&Vg(t,i,a)&&(s=Object(c["indexOf"])(r.childrenRef(),t),t=null);var u=!t,d=t;d?d.clearStates():(d=Sg(i),l&&bg(l,d)),!1===i.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),fg.normal.cfg=fg.normal.conOpt=fg.emphasis.cfg=fg.emphasis.conOpt=fg.blur.cfg=fg.blur.conOpt=fg.select.cfg=fg.select.conOpt=null,fg.isLegacy=!1,zg(d,n,i,a,u,fg),Rg(d,n,i,a,u),wg(e,d,n,i,fg,a,u,!1);for(var p=0;p=0?r.replaceAt(d,s):r.add(d),d}function Vg(e,t,n){var i=Lh(e),a=t.type,r=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||null!=a&&a!==i.customGraphicType||"path"===a&&Kg(r)&&qg(r)!==i.customPathData||"image"===a&&Object(c["hasOwn"])(o,"image")&&o.image!==i.customImagePath}function Rg(e,t,n,i,a){var r=n.clipPath;if(!1===r)e&&e.getClipPath()&&e.removeClipPath();else if(r){var o=e.getClipPath();o&&Vg(o,r,i)&&(o=null),o||(o=Sg(r),e.setClipPath(o)),wg(null,o,t,r,null,i,a,!1)}}function zg(e,t,n,i,a,r){if(!e.isGroup){Bg(n,null,r),Bg(n,sg,r);var o=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,c=r.select.conOpt;if(null!=o||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===o)u&&e.removeTextContent();else{o=r.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=Sg(o),e.setTextContent(u)),wg(null,u,t,o,null,i,a,!0);for(var d=o&&o.style,p=0;p=u;d--)Zg(t.childAt(d),a,t)}}function Fg(e){new Ca["a"](e.oldChildren,e.newChildren,Ug,Ug,e).add(Yg).update(Yg).remove(Xg).execute()}function Ug(e,t){var n=e&&e.name;return null!=n?n:gg+t}function Yg(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,a=null!=t?n.oldChildren[t]:null;Eg(n.api,a,n.dataIndex,i,n.seriesModel,n.group,!1)}function Xg(e){var t=this.context,n=t.oldChildren[e];Zg(n,t.seriesModel,t.group)}function Zg(e,t,n){if(e){var i=Lh(e).leaveToProps;i?Be["h"](e,i,t,{cb:function(){n.remove(e)}}):n.remove(e)}}function qg(e){return e&&(e.pathData||e.d)}function Kg(e){return e&&(Object(c["hasOwn"])(e,"pathData")||Object(c["hasOwn"])(e,"d"))}function Qg(e){e.registerChartView(_g),e.registerSeriesModel(Nh)}var Jg=n("7898"),$g=n("05ff"),ef=n("c5f7"),tf=n("d560"),nf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.makeElOption=function(e,t,n,i,a){var r=n.axis;"angle"===r.dim&&(this.animationThreshold=Math.PI/18);var o=r.polar,s=o.getOtherAxis(r),l=s.getExtent(),c=r.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var d=tf["b"](i),p=rf[u](r,o,c,l);p.style=d,e.graphicKey=p.type,e.pointer=p}var h=i.get(["label","margin"]),g=af(t,n,i,o,h);tf["c"](e,n,i,a,g)},t}(ef["a"]);function af(e,t,n,i,a){var r=t.axis,o=r.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,d=i.getRadiusAxis().getExtent();if("radius"===r.dim){var p=qn["create"]();qn["rotate"](p,p,s),qn["translate"](p,p,[i.cx,i.cy]),l=Rt["applyTransform"]([o,-a],p);var h=t.getModel("axisLabel").get("rotate")||0,g=$t["a"].innerTextLayout(s,h*Math.PI/180,-1);c=g.textAlign,u=g.textVerticalAlign}else{var f=d[1];l=i.coordToPoint([f+a,o]);var y=i.cx,m=i.cy;c=Math.abs(l[0]-y)/f<.3?"center":l[0]>y?"left":"right",u=Math.abs(l[1]-m)/f<.3?"middle":l[1]>m?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var rf={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:tf["f"](t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var a=Math.max(1,e.getBandWidth()),r=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:tf["h"](t.cx,t.cy,i[0],i[1],(-n-a/2)*r,(a/2-n)*r)}:{type:"Sector",shape:tf["h"](t.cx,t.cy,n-a/2,n+a/2,0,2*Math.PI)}}},of=nf,sf=n("9685"),lf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},t}(Zt["a"]),cf=lf,uf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",lt["b"]).models[0]},t.type="polarAxis",t}(Zt["a"]);c["mixin"](uf,Xt["a"]);var df=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="angleAxis",t}(uf),pf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="radiusAxis",t}(uf),hf=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(b["b"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(sn["a"]);hf.prototype.dataToRadius=sn["a"].prototype.dataToCoord,hf.prototype.radiusToData=sn["a"].prototype.coordToData;var gf=hf,ff=Object(lt["o"])(),yf=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(b["b"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),a=n.count();if(i[1]-i[0]<1)return 0;var r=i[0],o=e.dataToCoord(r+1)-e.dataToCoord(r),s=Math.abs(o),l=x["e"](null==r?"":r+"",t.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var d=Math.max(0,Math.floor(u)),p=ff(e.model),h=p.lastAutoInterval,g=p.lastTickCount;return null!=h&&null!=g&&Math.abs(h-d)<=1&&Math.abs(g-a)<=1&&h>d?d=h:(p.lastTickCount=a,p.lastAutoInterval=d),d},t}(sn["a"]);yf.prototype.dataToAngle=sn["a"].prototype.dataToCoord,yf.prototype.angleToData=sn["a"].prototype.coordToData;var mf=yf,vf=["radius","angle"],bf=function(){function e(e){this.dimensions=vf,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new gf,this._angleAxis=new mf,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),r=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]);i.inverse?r=o-360:o=r+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,c=lo)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,a=-Math.sin(n)*t+this.cy;return[i,a]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,a=n*n+i*i,r=this.r,o=this.r0;return a<=r*r&&a>=o*o}}},e.prototype.convertToPixel=function(e,t,n){var i=xf(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=xf(t);return i===this?this.pointToData(n):null},e}();function xf(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var _f=bf;function Sf(e,t,n){var i=t.get("center"),a=n.getWidth(),r=n.getHeight();e.cx=Object(Te["p"])(i[0],a),e.cy=Object(Te["p"])(i[1],r);var o=e.getRadiusAxis(),s=Math.min(a,r)/2,l=t.get("radius");null==l?l=[0,"100%"]:c["isArray"](l)||(l=[0,l]);var u=[Object(Te["p"])(l[0],s),Object(Te["p"])(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function wf(e,t){var n=this,i=n.getAngleAxis(),a=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();c["each"](Object(dn["d"])(t,"radius"),(function(e){a.scale.unionExtentFromData(t,e)})),c["each"](Object(dn["d"])(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),Object(dn["i"])(i.scale,i.model),Object(dn["i"])(a.scale,a.model),"category"===i.type&&!i.onBand){var r=i.getExtent(),o=360/i.scale.count();i.inverse?r[1]+=o:r[1]-=o,i.setExtent(r[0],r[1])}}function Of(e){return"angleAxis"===e.mainType}function Mf(e,t){if(e.type=t.get("type"),e.scale=Object(dn["a"])(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),Of(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var If={dimensions:vf,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var a=new _f(i+"");a.update=wf;var r=a.getRadiusAxis(),o=a.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");Mf(r,s),Mf(o,l),Sf(a,e,t),n.push(a),e.coordinateSystem=a,a.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",lt["b"]).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},Af=If,jf=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Df(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function Cf(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Tf(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var Lf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(b["b"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,a=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=c["map"](n.getViewLabels(),(function(e){e=c["clone"](e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));Tf(s),Tf(r),c["each"](jf,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||Pf[t](this.group,e,i,r,o,a,s)}),this)}},t.type="angleAxis",t}($g["a"]),Pf={axisLine:function(e,t,n,i,a,r){var o,s=t.getModel(["axisLine","lineStyle"]),l=Cf(n),c=l?0:1;o=0===r[c]?new en["a"]({shape:{cx:n.cx,cy:n.cy,r:r[l]},style:s.getLineStyle(),z2:1,silent:!0}):new tn["a"]({shape:{cx:n.cx,cy:n.cy,r:r[l],r0:r[c]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,e.add(o)},axisTick:function(e,t,n,i,a,r){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=r[Cf(n)],u=c["map"](i,(function(e){return new To["a"]({shape:Df(n,[l,l+s],e.coord)})}));e.add(Rt["mergePath"](u,{style:c["defaults"](o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,a,r){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=r[Cf(n)],d=[],p=0;pf?"left":"right",v=Math.abs(g[1]-y)/h<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[p]){var b=s[p];c["isObject"](b)&&b.textStyle&&(o=new Yt["a"](b.textStyle,l,l.ecModel))}var x=new ze["a"]({silent:$t["a"].isLabelSilent(t),style:Object(et["c"])(o,{x:g[0],y:g[1],fill:o.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(e.add(x),d){var _=$t["a"].makeAxisEventDataBase(t);_.targetType="axisLabel",_.value=i.rawLabel,Object(wt["a"])(x).eventData=_}}),this)},splitLine:function(e,t,n,i,a,r){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var d=[],p=0;p=0?"p":"n",I=x;v&&(i[s][O]||(i[s][O]={p:x,n:x}),I=i[s][O][M]);var A=void 0,j=void 0,D=void 0,C=void 0;if("radius"===d.dim){var T=d.dataToCoord(w)-x,L=r.dataToCoord(O);Math.abs(T)=C})}}}))}function Uf(e){var t={};c["each"](e,(function(e,n){var i=e.getData(),a=e.coordinateSystem,r=a.getBaseAxis(),o=Wf(a,r),s=r.getExtent(),l="category"===r.type?r.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=t[o]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[o]=c;var d=Hf(e);u[d]||c.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var p=Object(Te["p"])(e.get("barWidth"),l),h=Object(Te["p"])(e.get("barMaxWidth"),l),g=e.get("barGap"),f=e.get("barCategoryGap");p&&!u[d].width&&(p=Math.min(c.remainedWidth,p),u[d].width=p,c.remainedWidth-=p),h&&(u[d].maxWidth=h),null!=g&&(c.gap=g),null!=f&&(c.categoryGap=f)}));var n={};return c["each"](t,(function(e,t){n[t]={};var i=e.stacks,a=e.bandWidth,r=Object(Te["p"])(e.categoryGap,a),o=Object(Te["p"])(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-r)/(l+(l-1)*o);u=Math.max(u,0),c["each"](i,(function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],a="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[a]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-a]=0===a?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=uy(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=uy(t);return i===this?this.pointToData(n):null},e}();function uy(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var dy=cy;function py(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,a){var r=new dy(i,e,t);r.name="single_"+a,r.resize(i,t),i.coordinateSystem=r,n.push(r)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",lt["b"]).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var hy={create:py,dimensions:ly},gy=hy,fy=["x","y"],yy=["width","height"],my=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.makeElOption=function(e,t,n,i,a){var r=n.axis,o=r.coordinateSystem,s=xy(o,1-by(r)),l=o.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=tf["b"](i),d=vy[c](r,l,s);d.style=u,e.graphicKey=d.type,e.pointer=d}var p=Qf(n);tf["a"](t,e,p,n,i,a)},t.prototype.getHandleTransform=function(e,t,n){var i=Qf(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var a=tf["d"](t.axis,e,i);return{x:a[0],y:a[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var a=n.axis,r=a.coordinateSystem,o=by(a),s=xy(r,o),l=[e.x,e.y];l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var c=xy(r,1-o),u=(c[1]+c[0])/2,d=[u,u];return d[o]=l[o],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(ef["a"]),vy={line:function(e,t,n){var i=tf["f"]([t,n[0]],[t,n[1]],by(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:tf["g"]([t-i/2,n[0]],[i,a],by(e))}}};function by(e){return e.isHorizontal()?0:1}function xy(e,t){var n=e.getRect();return[n[fy[t]],n[fy[t]]+n[yy[t]]]}var _y=my,Sy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="single",t}(nn["a"]);function wy(e){Object(i["a"])(sf["a"]),$g["a"].registerAxisPointerClass("SingleAxisPointer",_y),e.registerComponentView(Sy),e.registerComponentView(iy),e.registerComponentModel(ry),Object(El["a"])(e,"single",ry,ry.defaultOption),e.registerCoordinateSystem("single",gy)}var Oy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(t,n,i){var a=Object(Le["f"])(t);e.prototype.init.apply(this,arguments),My(t,a)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),My(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Zt["a"]);function My(e,t){var n,i=e.cellSize;n=c["isArray"](i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var a=c["map"]([0,1],(function(e){return Object(Le["j"])(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(Le["h"])(e,t,{type:"box",ignoreSize:a})}var Iy=Oy,Ay={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},jy={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},Dy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var a=e.coordinateSystem,r=a.getRangeInfo(),o=a.getOrient();this._renderDayRect(e,r,i),this._renderLines(e,r,o,i),this._renderYearText(e,r,o,i),this._renderMonthText(e,o,i),this._renderWeekText(e,r,o,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,a=e.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),o=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new Da["a"]({shape:{x:l[0],y:l[1],width:r,height:o},cursor:"default",style:a});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var a=this,r=e.coordinateSystem,o=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){p(c.formatedDate),0===u&&(c=r.getDateInfo(t.start.y+"-"+t.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=r.getDateInfo(d)}function p(t){a._firstDayOfMonth.push(r.getDateInfo(t)),a._firstDayPoints.push(r.dataToRect([t],!1).tl);var l=a._getLinePointsOfOneWeek(e,t,n);a._tlpoints.push(l[0]),a._blpoints.push(l[l.length-1]),s&&a._drawSplitline(l,o,i)}p(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,l,n),o,i),s&&this._drawSplitline(a._getEdgesPoints(a._blpoints,l,n),o,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],a="horizontal"===n?0:1;return i[0][a]=i[0][a]-t/2,i[1][a]=i[1][a]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Ge["a"]({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,a=i.getDateInfo(t),r=[],o=0;o<7;o++){var s=i.getNextNDay(a.time,o),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},t.prototype._formatterLabel=function(e,t){return"string"===typeof e&&e?Ga["g"](e,t):"function"===typeof e?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,a){var r=t[0],o=t[1],s=["center","bottom"];"bottom"===i?(o+=a,s=["center","top"]):"left"===i?r-=a:"right"===i?(r+=a,s=["center","top"]):o-=a;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:r,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var a=e.getModel("yearLabel");if(a.get("show")){var r=a.get("margin"),o=a.get("position");o||(o="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,d={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var h=a.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:p},f=this._formatterLabel(h,g),y=new ze["a"]({z2:30,style:Object(et["c"])(a,{text:f})});y.attr(this._yearTextPositionControl(y,d[o],n,o,r)),i.add(y)}},t.prototype._monthTextPositionControl=function(e,t,n,i,a){var r="left",o="top",s=e[0],l=e[1];return"horizontal"===n?(l+=a,t&&(r="center"),"start"===i&&(o="bottom")):(s+=a,t&&(o="middle"),"start"===i&&(r="right")),{x:s,y:l,align:r,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n){var i=e.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),r=i.get("margin"),o=i.get("position"),s=i.get("align"),l=[this._tlpoints,this._blpoints];c["isString"](a)&&(a=Ay[a.toUpperCase()]||[]);var u="start"===o?0:1,d="horizontal"===t?0:1;r="start"===o?-r:r;for(var p="center"===s,h=0;h=i.start.time&&n.timeo.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/Ty)-Math.floor(n[0].time/Ty)+1,a=new Date(n[0].time),r=a.getDate(),o=n[1].date.getDate();a.setDate(r+i-1);var s=a.getDate();if(s!==o){var l=a.getTime()-n[1].time>0?1:-1;while((s=a.getDate())!==o&&(a.getTime()-n[1].time)*l>0)i-=l,a.setDate(s-l)}var c=Math.floor((i+n[0].day+6)/7),u=t?1-c:c-1;return t&&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}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&ti.lweek)return null;var a=7*(e-1)-i.fweek+t,r=new Date(i.start.time);return r.setDate(+i.start.d+a),this.getDateInfo(r)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(a){var r=new e(a,t,n);i.push(r),a.coordinateSystem=r})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function Py(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}var Ny=Ly;function ky(e){e.registerComponentModel(Iy),e.registerComponentView(Cy),e.registerCoordinateSystem("calendar",Ny)}var Ey=lt["o"](),Vy={path:null,compoundPath:null,group:We["a"],image:d["a"],text:ze["a"]},Ry=function(e){var t=e.graphic;c["isArray"](t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])},zy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return Object(b["b"])(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,a=n.elements=t?[]:n.elements,r=[];this._flatten(i,r,null);var o=lt["q"](a,r,"normalMerge"),s=this._elOptionsToUpdate=[];c["each"](o,(function(e,t){var n=e.newOption;n&&(s.push(n),Uy(e,n),Yy(a,t,n),Xy(a[t],n))}),this);for(var l=a.length-1;l>=0;l--)null==a[l]?a.splice(l,1):delete a[l].$action},t.prototype._flatten=function(e,t,n){c["each"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;"group"===e.type&&i&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Zt["a"]),By=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(){this._elMap=c["createHashMap"]()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group;c["each"](t,(function(t){var a=lt["e"](t.id,null),r=null!=a?n.get(a):null,o=lt["e"](t.parentId,null),s=null!=o?n.get(o):i,l=t.type,c=t.style;"text"===l&&c&&t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=c.verticalAlign=c.align=null);var u=t.textContent,d=t.textConfig;if(c&&Fh(c,l,!!d,!!u)){var p=Uh(c,l,!0);!d&&p.textConfig&&(d=t.textConfig=p.textConfig),!u&&p.textContent&&(u=p.textContent)}var h=Wy(t);var g=t.$action||"merge";"merge"===g?r?r.attr(h):Gy(a,s,h,n):"replace"===g?(Hy(r,n),Gy(a,s,h,n)):"remove"===g&&Hy(r,n);var f=n.get(a);if(f&&u)if("merge"===g){var y=f.getTextContent();y?y.attr(u):f.setTextContent(new ze["a"](u))}else"replace"===g&&f.setTextContent(new ze["a"](u));if(f){var m=Ey(f);m.__ecGraphicWidthOption=t.width,m.__ecGraphicHeightOption=t.height,Zy(f,e,t),Rt["setTooltipConfig"]({el:f,componentModel:e,itemName:f.name,itemTooltipOption:t.tooltip})}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,a=this._elMap,r=t.getWidth(),o=t.getHeight(),s=0;s=0;s--){l=n[s],c=lt["e"](l.id,null),u=null!=c?a.get(c):null;if(u){d=u.parent,g=Ey(d);var f=d===i?{width:r,height:o}:{width:g.__ecGraphicWidth,height:g.__ecGraphicHeight};Le["i"](u,l,f,null,{hv:l.hv,boundingMode:l.bounding})}}},t.prototype._clear=function(){var e=this._elMap;e.each((function(t){Hy(t,e)})),this._elMap=c["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(nn["a"]);function Gy(e,t,n,i){var a=n.type;var r=c["hasOwn"](Vy,a)?Vy[a]:Rt["getShapeClass"](a);var o=new r(n);t.add(o),i.set(e,o),Ey(o).__ecGraphicId=e}function Hy(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){Hy(e,t)})),t.removeKey(Ey(e).__ecGraphicId),n.remove(e))}function Wy(e){return e=c["extend"]({},e),c["each"](["id","parentId","$action","hv","bounding","textContent"].concat(Le["a"]),(function(t){delete e[t]})),e}function Fy(e,t){var n;return c["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function Uy(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Yy(e,t,n){var i=c["extend"]({},n),a=e[t],r=n.$action||"merge";"merge"===r?a?(c["merge"](a,i,!0),Le["h"](a,i,{ignoreSize:!0}),Le["c"](n,a)):e[t]=i:"replace"===r?e[t]=i:"remove"===r&&a&&(e[t]=null)}function Xy(e,t){if(e&&(e.hv=t.hv=[Fy(t,["left","right"]),Fy(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}function Zy(e,t,n){var i=Object(wt["a"])(e).eventData;e.silent||e.ignore||i||(i=Object(wt["a"])(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function qy(e){e.registerComponentModel(zy),e.registerComponentView(By),e.registerPreprocessor(Ry)}var Ky=n("4790"),Qy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="dataZoom.select",t}(Ky["a"]),Jy=Qy,$y=n("c966"),em=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="dataZoom.select",t}($y["a"]),tm=em,nm=n("5ad0");function im(e){e.registerComponentModel(Jy),e.registerComponentView(tm),Object(nm["a"])(e)}var am=function(){function e(){}return e}(),rm={};function om(e,t){rm[e]=t}function sm(e){return rm[e]}var lm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;c["each"](this.option.feature,(function(e,n){var i=sm(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),c["merge"](e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Zt["a"]),cm=lm,um=n("563d"),dm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n,i){var a=this.group;if(a.removeAll(),e.get("show")){var r=+e.get("itemSize"),o=e.get("feature")||{},s=this._features||(this._features={}),l=[];c["each"](o,(function(e,t){l.push(t)})),new Ca["a"](this._featureNames||[],l).add(u).update(u).remove(c["curry"](u,null)).execute(),this._featureNames=l,um["a"](a,e,n),a.add(um["b"](a.getBoundingRect(),e)),a.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),o=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.states.emphasis;if(l&&!c["isFunction"](l)&&t){var u=l.style||(l.style={}),d=x["e"](t,ze["a"].makeFont(u)),p=e.x+a.x,h=e.y+a.y+r,g=!1;h+d.height>n.getHeight()&&(o.position="top",g=!0);var f=g?-5-d.height:r+8;p+d.width/2>n.getWidth()?(o.position=["100%",f],u.align="right"):p-d.width/2<0&&(o.position=[0,f],u.align="left")}}))}function u(a,r){var c,u=l[a],p=l[r],h=o[u],g=new Yt["a"](h,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(h.title=i.newTitle),u&&!p){if(pm(u))c={onclick:g.option.onclick,featureName:u};else{var f=sm(u);if(!f)return;c=new f}s[u]=c}else if(c=s[p],!c)return;c.uid=Object(On["c"])("toolbox-feature"),c.model=g,c.ecModel=t,c.api=n;var y=c instanceof am;u||!p?!g.get("show")||y&&c.unusable?y&&c.remove&&c.remove(t,n):(d(g,c,u),g.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?Fe["r"]:Fe["C"])(i[e])},c instanceof am&&c.render&&c.render(g,t,n,i)):y&&c.dispose&&c.dispose(t,n)}function d(i,o,s){var l,u,d=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),h=o instanceof am&&o.getIcons?o.getIcons():i.get("icon"),g=i.get("title")||{};"string"===typeof h?(l={},l[s]=h):l=h,"string"===typeof g?(u={},u[s]=g):u=g;var f=i.iconPaths={};c["each"](l,(function(s,l){var h=Rt["createIcon"](s,{},{x:-r/2,y:-r/2,width:r,height:r});h.setStyle(d.getItemStyle());var g=h.ensureState("emphasis");g.style=p.getItemStyle();var y=new ze["a"]({style:{text:u[l],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});h.setTextContent(y),Rt["setTooltipConfig"]({el:h,componentModel:e,itemName:l,formatterParamsExtra:{title:u[l]}}),h.__title=u[l],h.on("mouseover",(function(){var t=p.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";y.setStyle({fill:p.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),h.setTextConfig({position:p.get("textPosition")||n}),y.ignore=!e.get("showTitle"),Object(Fe["r"])(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",l])&&Object(Fe["C"])(this),y.hide()})),("emphasis"===i.get(["iconStatus",l])?Fe["r"]:Fe["C"])(h),a.add(h),h.on("click",c["bind"](o.onclick,o,t,n,l)),f[l]=h}))}},t.prototype.updateView=function(e,t,n,i){c["each"](this._features,(function(e){e instanceof am&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){c["each"](this._features,(function(n){n instanceof am&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){c["each"](this._features,(function(n){n instanceof am&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(nn["a"]);function pm(e){return 0===e.indexOf("my")}var hm=dm,gm=n("a6d3"),fm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",a="svg"===t.getZr().painter.getType(),r=a?"svg":n.get("type",!0)||"png",o=t.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||!gm["a"].browser.newEdge&&(gm["a"].browser.ie||gm["a"].browser.edge))if(window.navigator.msSaveOrOpenBlob||a){var s=o.split(","),l=s[0].indexOf("base64")>-1,c=a?decodeURIComponent(s[1]):s[1];l&&(c=window.atob(c));var u=i+"."+r;if(window.navigator.msSaveOrOpenBlob){var d=c.length,p=new Uint8Array(d);while(d--)p[d]=c.charCodeAt(d);var h=new Blob([p]);window.navigator.msSaveOrOpenBlob(h,u)}else{var g=document.createElement("iframe");document.body.appendChild(g);var f=g.contentWindow,y=f.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),f.focus(),y.execCommand("SaveAs",!0,u),document.body.removeChild(g)}}else{var m=n.get("lang"),v='',b=window.open();b.document.write(v),b.document.title=i}else{var x=document.createElement("a");x.download=i+"."+r,x.target="_blank",x.href=o;var _=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(_)}},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(am);fm.prototype.unusable=!gm["a"].canvasSupported;var ym=fm,mm=n("868b"),vm="__ec_magicType_stack__",bm=[["line","bar"],["stack"]],xm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return c["each"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,a=i.get(["seriesIndex",n]);if(_m[n]){var r,o={series:[]},s=function(e){var t=e.subType,a=e.id,r=_m[n](t,a,e,i);r&&(c["defaults"](r,e.option),o.series.push(r));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,d=u+"Axis",p=e.getReferringComponents(d,lt["b"]).models[0],h=p.componentIndex;o[d]=o[d]||[];for(var g=0;g<=h;g++)o[d][h]=o[d][h]||{};o[d][h].boundaryGap="bar"===n}}};c["each"](bm,(function(e){c["indexOf"](e,n)>=0&&c["each"](e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},s);var l=n;"stack"===n&&(r=c["merge"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:o,newTitle:r,featureName:"magicType"})}},t}(am),_m={line:function(e,t,n,i){if("bar"===e)return c["merge"]({id:t,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(e,t,n,i){if("line"===e)return c["merge"]({id:t,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(e,t,n,i){var a=n.get("stack")===vm;if("line"===e||"bar"===e)return i.setIconStatus("stack",a?"normal":"emphasis"),c["merge"]({id:t,stack:a?"":vm},i.get(["option","stack"])||{},!0)}};mm["m"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var Sm=xm,wm=n("a22d"),Om=new Array(60).join("-"),Mm="\t";function Im(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var a=e.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)n.push(e);else{var r=a.getBaseAxis();if("category"===r.type){var o=r.dim+"_"+r.index;t[o]||(t[o]={categoryAxis:r,valueAxis:a.getOtherAxis(r),series:[]},i.push({axisDim:r.dim,axisIndex:r.index})),t[o].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function Am(e){var t=[];return c["each"](e,(function(e,n){var i=e.categoryAxis,a=e.valueAxis,r=a.dim,o=[" "].concat(c["map"](e.series,(function(e){return e.name}))),s=[i.model.getCategories()];c["each"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(r),(function(e){return e})))}));for(var l=[o.join(Mm)],u=0;u=0)return!0}var Lm=new RegExp("["+Mm+"]+","g");function Pm(e){for(var t=e.split(/\n+/g),n=Cm(t.shift()).split(Lm),i=[],a=c["map"](n,(function(e){return{name:e,data:[]}})),r=0;r=0;a--){var r=n[a];if(r[i])break}if(a<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function Hm(e){var t=Um(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return zm(n,(function(e,n){for(var a=t.length-1;a>=0;a--)if(e=t[a][n],e){i[n]=e;break}})),i}function Wm(e){Bm(e).snapshots=null}function Fm(e){return Um(e).length}function Um(e){var t=Bm(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Ym=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.onclick=function(e,t){Wm(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(am);mm["m"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var Xm=Ym,Zm=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],qm=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var a=Qm(t,e);Object(c["each"])(Jm,(function(e,t){(!n||!n.include||Object(c["indexOf"])(n.include,t)>=0)&&e(a,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=tv[e.brushType](0,n,t);e.__rangeOffset={offset:iv[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(c["each"])(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Object(c["each"])(i.coordSyses,(function(i){var a=tv[e.brushType](1,i,e.range,!0);n(e,a.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(c["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=tv[e.brushType](0,n.coordSys,e.coordRange),a=e.__rangeOffset;e.range=a?iv[e.brushType](i.values,a.offset,rv(i.xyMinMax,a.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(c["map"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Vc(i),isTargetByCursor:zc(i,e,n.coordSysModel),getLinearBrushOtherExtent:Rc(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Object(c["indexOf"])(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=Qm(t,e),a=0;ae[1]&&e.reverse(),e}function Qm(e,t){return Object(lt["s"])(e,t,{includeMainTypes:Zm})}var Jm={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,a=e.gridModels,r=Object(c["createHashMap"])(),o={},s={};(n||i||a)&&(Object(c["each"])(n,(function(e){var t=e.axis.grid.model;r.set(t.id,t),o[t.id]=!0})),Object(c["each"])(i,(function(e){var t=e.axis.grid.model;r.set(t.id,t),s[t.id]=!0})),Object(c["each"])(a,(function(e){r.set(e.id,e),o[e.id]=!0,s[e.id]=!0})),r.each((function(e){var a=e.coordinateSystem,r=[];Object(c["each"])(a.getCartesians(),(function(e,t){(Object(c["indexOf"])(n,e.getAxis("x").model)>=0||Object(c["indexOf"])(i,e.getAxis("y").model)>=0)&&r.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:ev.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(c["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:ev.geo})}))}},$m=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&i&&(a=i.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],ev={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Rt["getTransform"](e)),t}},tv={lineX:Object(c["curry"])(nv,0),lineY:Object(c["curry"])(nv,1),rect:function(e,t,n,i){var a=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),r=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),o=[Km([a[0],r[0]]),Km([a[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,i){var a=[[1/0,-1/0],[1/0,-1/0]],r=Object(c["map"])(n,(function(n){var r=e?t.pointToData(n,i):t.dataToPoint(n,i);return a[0][0]=Math.min(a[0][0],r[0]),a[1][0]=Math.min(a[1][0],r[1]),a[0][1]=Math.max(a[0][1],r[0]),a[1][1]=Math.max(a[1][1],r[1]),r}));return{values:r,xyMinMax:a}}};function nv(e,t,n,i){var a=n.getAxis(["x","y"][e]),r=Km(Object(c["map"])([0,1],(function(e){return t?a.coordToData(a.toLocalCoord(i[e]),!0):a.toGlobalCoord(a.dataToCoord(i[e]))}))),o=[];return o[e]=r,o[1-e]=[NaN,NaN],{values:r,xyMinMax:o}}var iv={lineX:Object(c["curry"])(av,0),lineY:Object(c["curry"])(av,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(c["map"])(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function av(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function rv(e,t){var n=ov(e),i=ov(t),a=[n[0]/i[0],n[1]/i[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function ov(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var sv=qm,lv=n("7c2a"),cv=c["each"],uv=Object(lt["p"])("toolbox-dataZoom_"),dv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new Ec(n.getZr()),this._brushController.on("brush",c["bind"](this._onBrush,this)).mount()),fv(e,t,this,i,n),gv(e,t)},t.prototype.onclick=function(e,t,n){pv[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var a=new sv(hv(this.model),i,{include:["grid"]});a.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(r("x",n,t[0]),r("y",n,t[1])):r({lineX:"x",lineY:"y"}[i],n,t)}})),Gm(i,n),this._dispatchZoomAction(n)}function r(e,t,a){var r=t.getAxis(e),s=r.model,l=o(e,s,i),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(a=Object(xl["a"])(0,a.slice(),r.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:a[0],endValue:a[1]})}function o(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var a=n.getAxisModel(e,t.componentIndex);a&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];cv(e,(function(e,n){t.push(c["clone"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(am),pv={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Hm(this.ecModel))}};function hv(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function gv(e,t){e.setIconStatus("back",Fm(t)>1?"emphasis":"normal")}function fv(e,t,n,i,a){var r=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=r,e.setIconStatus("zoom",r?"emphasis":"normal");var o=new sv(hv(e),t,{include:["grid"]}),s=o.makePanelOpts(a,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!r||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Object(lv["b"])("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),a=[],r=hv(i),o=Object(lt["s"])(e,r);return cv(o.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),cv(o.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),a}function s(e,t,n){var r=e.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:uv+t+r};o[n]=r,a.push(o)}}));var yv=dv;function mv(e){e.registerComponentModel(cm),e.registerComponentView(hm),om("saveAsImage",ym),om("magicType",Sm),om("dataView",Rm),om("dataZoom",yv),om("restore",Xm),Object(i["a"])(im)}var vv=n("822c"),bv=["rect","polygon","keep","clear"];function xv(e,t){var n=Object(lt["r"])(e?e.brush:[]);if(n.length){var i=[];c["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var a=e&&e.toolbox;c["isArray"](a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var r=a.feature||(a.feature={}),o=r.brush||(r.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),_v(s),t&&!s.length&&s.push.apply(s,bv)}}function _v(e){var t={};c["each"](e,(function(e){t[e]=1})),e.length=0,c["each"](t,(function(t,n){e.push(n)}))}var Sv=n("4322"),wv=c["each"];function Ov(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function Mv(e,t,n){var i={};return wv(t,(function(t){var r=i[t]=a();wv(e[t],(function(e,i){if(_r.isValidType(i)){var a={type:i,visual:e};n&&n(a,t),r[i]=new _r(a),"opacity"===i&&(a=c["clone"](a),a.type="colorAlpha",r.__hidden.__alphaForOpacity=new _r(a))}}))})),i;function a(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function Iv(e,t,n){var i;c["each"](n,(function(e){t.hasOwnProperty(e)&&Ov(t[e])&&(i=!0)})),i&&c["each"](n,(function(n){t.hasOwnProperty(n)&&Ov(t[n])?e[n]=c["clone"](t[n]):delete e[n]}))}function Av(e,t,n,i,a,r){var o,s={};function l(e){return Object(Sv["a"])(n,o,e)}function u(e,t){Object(Sv["c"])(n,o,e,t)}function d(e,c){o=null==r?e:c;var d=n.getRawDataItem(o);if(!d||!1!==d.visualMap)for(var p=i.call(a,e),h=t[p],g=s[p],f=0,y=g.length;ft[0][1]&&(t[0][1]=r[0]),r[1]t[1][1]&&(t[1][1]=r[1])}return t&&Fv(t)}};function Fv(e){return new Xn["a"](e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Uv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Ec(t.getZr())).on("brush",c["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){Vv(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:c["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:c["clone"](n),$from:t})},t.type="brush",t}(nn["a"]),Yv=Uv,Xv="#ddd",Zv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return Object(b["b"])(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Iv(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:Xv},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=c["map"](e,(function(e){return qv(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=qv(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.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},t}(Zt["a"]);function qv(e,t){return c["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Yt["a"](e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Kv=Zv,Qv=["rect","polygon","lineX","lineY","keep","clear"],Jv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(b["b"])(t,e),t.prototype.render=function(e,t,n){var i,a,r;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,a=e.brushOption.brushMode||"single",r=r||!!e.areas.length})),this._brushType=i,this._brushMode=a,c["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===a:"clear"===t?r:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return c["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,a=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===a?"single":"multiple":a}})},t.getDefaultOption=function(e){var t={show:!0,type:Qv.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:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(am),$v=Jv;function eb(e){e.registerComponentView(Yv),e.registerComponentModel(Kv),e.registerPreprocessor(xv),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Rv),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){})),om("brush",$v)}var tb=n("2a36"),nb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Object(b["b"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,a=this._names=[];"category"===i?(e=[],Object(c["each"])(n,(function(t,n){var i,r=Object(lt["e"])(Object(lt["h"])(t),"");Object(c["isObject"])(t)?(i=Object(c["clone"])(t),i.value=n):i=n,e.push(i),a.push(r)}))):e=n;var r={category:"ordinal",time:"time",value:"number"}[i]||"number",o=this._data=new ot["a"]([{name:"value",type:r}],this);o.initData(e,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Zt["a"]),ib=nb,ab=n("a915"),rb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="timeline.slider",t.defaultOption=Object(On["d"])(ib.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:[]}),t}(ib);Object(c["mixin"])(rb,ab["a"].prototype);var ob=rb,sb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.type="timeline",t}(nn["a"]),lb=sb,cb=function(e){function t(t,n,i,a){var r=e.call(this,t,n,i)||this;return r.type=a||"value",r}return Object(b["b"])(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(sn["a"]),ub=cb,db=n("2c0d"),pb=n("01fa"),hb=Math.PI,gb=Object(lt["o"])(),fb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),a=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=o.scale.getLabel({value:e});return Object(Ht["c"])("nameValue",{noName:!0,value:t})},Object(c["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,a,o,e)}),this),this._renderAxisLabel(i,r,o,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),a=e.get("orient"),r=mb(e,t);n=null==i||"auto"===i?"horizontal"===a?r.y+r.height/2=0||"+"===n?"left":"right"},d={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},p={horizontal:0,vertical:hb/2},h="vertical"===a?r.height:r.width,g=e.getModel("controlStyle"),f=g.get("show",!0),y=f?g.get("itemSize"):0,m=f?g.get("itemGap"):0,v=y+m,b=e.get(["label","rotate"])||0;b=b*hb/180;var x=g.get("position",!0),_=f&&g.get("showPlayBtn",!0),S=f&&g.get("showPrevBtn",!0),w=f&&g.get("showNextBtn",!0),O=0,M=h;"left"===x||"bottom"===x?(_&&(o=[0,0],O+=v),S&&(s=[O,0],O+=v),w&&(l=[M-y,0],M-=v)):(_&&(o=[M-y,0],M-=v),S&&(s=[0,0],O+=v),w&&(l=[M-y,0],M-=v));var I=[O,M];return e.get("inverse")&&I.reverse(),{viewRect:r,mainLength:h,orient:a,rotation:p[a],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||d[a],playPosition:o,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:y,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,a=e.viewRect;if("vertical"===e.orient){var r=qn["create"](),o=a.x,s=a.y+a.height;qn["translate"](r,r,[-o,-s]),qn["rotate"](r,r,-hb/2),qn["translate"](r,r,[o,s]),a=a.clone(),a.applyTransform(r)}var l=m(a),u=m(n.getBoundingRect()),d=m(i.getBoundingRect()),p=[n.x,n.y],h=[i.x,i.y];h[0]=p[0]=l[0][0];var g=e.labelPosOpt;if(null==g||Object(c["isString"])(g)){var f="+"===g?0:1;v(p,u,l,1,f),v(h,d,l,1,1-f)}else{f=g>=0?0:1;v(p,u,l,1,f),h[1]=p[1]+g}function y(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,a){e[i]+=n[i][a]-t[i][a]}n.setPosition(p),i.setPosition(h),n.rotation=i.rotation=e.rotation,y(n),y(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),a=yb(t,i);a.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var r=n.getDataExtent("value");a.setExtent(r[0],r[1]),a.niceTicks();var o=new ub("value",a,e.axisExtent,i);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new We["a"];return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var a=n.getExtent();if(i.get(["lineStyle","show"])){var r=new To["a"]({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:Object(c["extend"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(r);var o=this._progressLine=new To["a"]({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:Object(c["defaults"])({lineCap:"round",lineWidth:r.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,i){var a=this,r=i.getData(),o=n.scale.getTicks();this._tickSymbols=[],Object(c["each"])(o,(function(e){var o=n.dataToCoord(e.value),s=r.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),d=s.getModel(["progress","itemStyle"]),p={x:o,y:0,onclick:Object(c["bind"])(a._changeTimeline,a,e.value)},h=bb(s,l,t,p);h.ensureState("emphasis").style=u.getItemStyle(),h.ensureState("progress").style=d.getItemStyle(),Object(Fe["o"])(h);var g=Object(wt["a"])(h);s.get("tooltip")?(g.dataIndex=e.value,g.dataModel=i):g.dataIndex=g.dataModel=null,a._tickSymbols.push(h)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var a=this,r=n.getLabelModel();if(r.get("show")){var o=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(c["each"])(s,(function(i){var r=i.tickValue,s=o.getItemModel(r),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),d=s.getModel(["progress","label"]),p=n.dataToCoord(i.tickValue),h=new ze["a"]({x:p,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(c["bind"])(a._changeTimeline,a,r),silent:!1,style:Object(et["c"])(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});h.ensureState("emphasis").style=Object(et["c"])(u),h.ensureState("progress").style=Object(et["c"])(d),t.add(h),Object(Fe["o"])(h),gb(h).dataIndex=r,a._tickLabels.push(h)}))}},t.prototype._renderControl=function(e,t,n,i){var a=e.controlSize,r=e.rotation,o=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function d(e,n,l,u){if(e){var d=Object(x["h"])(Object(c["retrieve2"])(i.get(["controlStyle",n+"BtnSize"]),a),a),p=[0,-d/2,d,d],h=vb(i,n+"Icon",p,{x:e[0],y:e[1],originX:a/2,originY:0,rotation:u?-r:0,rectHover:!0,style:o,onclick:l});h.ensureState("emphasis").style=s,t.add(h),Object(Fe["o"])(h)}}d(e.nextBtnPosition,"next",Object(c["bind"])(this._changeTimeline,this,u?"-":"+")),d(e.prevBtnPosition,"prev",Object(c["bind"])(this._changeTimeline,this,u?"+":"-")),d(e.playPosition,l?"stop":"play",Object(c["bind"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var a=i.getData(),r=i.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(c["bind"])(s._handlePointerDrag,s),e.ondragend=Object(c["bind"])(s._handlePointerDragend,s),xb(e,s._progressLine,r,n,i,!0)},onUpdate:function(e){xb(e,s._progressLine,r,n,i)}};this._currentPointer=bb(o,o,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,a=Te["c"](i.getExtent().slice());n>a[1]&&(n=a[1]),n=0&&(o[r]=+o[r].toFixed(p)),[o,d]}var zb={min:Object(c["curry"])(Rb,"min"),max:Object(c["curry"])(Rb,"max"),average:Object(c["curry"])(Rb,"average"),median:Object(c["curry"])(Rb,"median")};function Bb(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!Vb(t)&&!Object(c["isArray"])(t.coord)&&i){var a=i.dimensions,r=Gb(t,n,i,e);if(t=Object(c["clone"])(t),t.type&&zb[t.type]&&r.baseAxis&&r.valueAxis){var o=Object(c["indexOf"])(a,r.baseAxis.dim),s=Object(c["indexOf"])(a,r.valueAxis.dim),l=zb[t.type](n,r.baseDataDim,r.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else{for(var u=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],d=0;d<2;d++)zb[u[d]]&&(u[d]=Ub(n,n.mapDimension(a[d]),u[d]));t.coord=u}}return t}function Gb(e,t,n,i){var a={};return null!=e.valueIndex||null!=e.valueDim?(a.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(Hb(i,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=i.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function Hb(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Wb(e,t){return!(e&&e.containData&&t.coord&&!Eb(t))||e.containData(t.coord)}function Fb(e,t){return e?function(e,n,i,a){var r=a<2?e.coord&&e.coord[a]:e.value;return Object(kb["d"])(r,t[a])}:function(e,n,i,a){return Object(kb["d"])(e.value,t[a])}}function Ub(e,t,n){if("average"===n){var i=0,a=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,a++)})),i/a}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var Yb=Object(lt["o"])(),Xb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.init=function(){this.markerGroupMap=Object(c["createHashMap"])()},t.prototype.render=function(e,t,n){var i=this,a=this.markerGroupMap;a.each((function(e){Yb(e).keep=!1})),t.eachSeries((function(e){var a=Lb.getMarkerModelFromSeries(e,i.type);a&&i.renderSeries(e,a,t,n)})),a.each((function(e){!Yb(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){Yb(e).keep=!0},t.prototype.blurSeries=function(e){var t=this;Object(c["each"])(e,(function(e){var n=Lb.getMarkerModelFromSeries(e,t.type);if(n){var i=n.getData();i.eachItemGraphicEl((function(e){e&&Object(Fe["q"])(e)}))}}))},t.type="marker",t}(nn["a"]),Zb=Xb;function qb(e,t,n){var i=t.coordinateSystem;e.each((function(a){var r,o=e.getItemModel(a),s=Te["p"](o.get("x"),n.getWidth()),l=Te["p"](o.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)r=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(i){var c=e.get(i.dimensions[0],a),u=e.get(i.dimensions[1],a);r=i.dataToPoint([c,u])}}else r=[s,l];isNaN(s)||(r[0]=s),isNaN(l)||(r[1]=l),e.setItemLayout(a,r)}))}var Kb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Lb.getMarkerModelFromSeries(e,"markPoint");t&&(qb(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,r=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new xt["a"]),u=Qb(a,e,t);t.setData(u),qb(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),a=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(c["isFunction"])(i)||Object(c["isFunction"])(a)||Object(c["isFunction"])(r)||Object(c["isFunction"])(s)){var d=t.getRawValue(e),p=t.getDataParams(e);Object(c["isFunction"])(i)&&(i=i(d,p)),Object(c["isFunction"])(a)&&(a=a(d,p)),Object(c["isFunction"])(r)&&(r=r(d,p)),Object(c["isFunction"])(s)&&(s=s(d,p))}var h=n.getModel("itemStyle").getItemStyle(),g=Object(Sv["b"])(o,"color");h.fill||(h.fill=g),u.setItemVisual(e,{symbol:i,symbolSize:a,symbolRotate:r,symbolOffset:s,symbolKeepAspect:l,style:h})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Object(wt["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(Zb);function Qb(e,t,n){var i;i=e?Object(c["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(c["extend"])(Object(c["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var a=new ot["a"](i,n),r=Object(c["map"])(n.get("data"),Object(c["curry"])(Bb,t));e&&(r=Object(c["filter"])(r,Object(c["curry"])(Wb,e)));var o=Fb(!!e,i);return a.initData(r,null,o),a}var Jb=Kb;function $b(e){e.registerComponentModel(Nb),e.registerComponentView(Jb),e.registerPreprocessor((function(e){jb(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var ex=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={zlevel:0,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"},t}(Lb),tx=ex,nx=Object(lt["o"])(),ix=function(e,t,n,i){var a,r=e.getData();if(Object(c["isArray"])(i))a=i;else{var o=i.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=Object(c["retrieve"])(i.yAxis,i.xAxis);else{var u=Gb(i,r,t,e);s=u.valueAxis;var d=Object(Gf["b"])(r,u.valueDataDim);l=Ub(r,d,o)}var p="x"===s.dim?0:1,h=1-p,g=Object(c["clone"])(i),f={coord:[]};g.type=null,g.coord=[],g.coord[h]=-1/0,f.coord[h]=1/0;var y=n.get("precision");y>=0&&"number"===typeof l&&(l=+l.toFixed(Math.min(y,20))),g.coord[p]=f.coord[p]=l,a=[g,f,{type:o,valueIndex:i.valueIndex,value:l}]}else a=[]}var m=[Bb(e,a[0]),Bb(e,a[1]),Object(c["extend"])({},a[2])];return m[2].type=m[2].type||null,Object(c["merge"])(m[2],m[0]),Object(c["merge"])(m[2],m[1]),m};function ax(e){return!isNaN(e)&&!isFinite(e)}function rx(e,t,n,i){var a=1-e,r=i.dimensions[e];return ax(t[a])&&ax(n[a])&&t[e]===n[e]&&i.getAxis(r).containData(t[e])}function ox(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(rx(1,n,i,e)||rx(0,n,i,e)))return!0}return Wb(e,t[0])&&Wb(e,t[1])}function sx(e,t,n,i,a){var r,o=i.coordinateSystem,s=e.getItemModel(t),l=Te["p"](s.get("x"),a.getWidth()),c=Te["p"](s.get("y"),a.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=o.dimensions,d=e.get(u[0],t),p=e.get(u[1],t);r=o.dataToPoint([d,p])}if(Object(dp["a"])(o,"cartesian2d")){var h=o.getAxis("x"),g=o.getAxis("y");u=o.dimensions;ax(e.get(u[0],t))?r[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):ax(e.get(u[1],t))&&(r[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];e.setItemLayout(t,r)}var lx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Lb.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),a=nx(t).from,r=nx(t).to;a.each((function(t){sx(a,t,!0,e,n),sx(r,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[a.getItemLayout(e),r.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,r=e.id,o=e.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new Ko);this.group.add(l.group);var u=cx(a,e,t),d=u.from,p=u.to,h=u.line;nx(t).from=d,nx(t).to=p,t.setData(h);var g=t.get("symbol"),f=t.get("symbolSize"),y=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,a){var r=t.getItemModel(n);sx(t,n,a,e,i);var s=r.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(Sv["b"])(o,"color")),t.setItemVisual(n,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:Object(c["retrieve2"])(r.get("symbolOffset",!0),m[a?0:1]),symbolRotate:Object(c["retrieve2"])(r.get("symbolRotate",!0),y[a?0:1]),symbolSize:Object(c["retrieve2"])(r.get("symbolSize"),f[a?0:1]),symbol:Object(c["retrieve2"])(r.get("symbol",!0),g[a?0:1]),style:s})}Object(c["isArray"])(g)||(g=[g,g]),Object(c["isArray"])(f)||(f=[f,f]),Object(c["isArray"])(y)||(y=[y,y]),Object(c["isArray"])(m)||(m=[m,m]),u.from.each((function(e){v(d,e,!0),v(p,e,!1)})),h.each((function(e){var t=h.getItemModel(e).getModel("lineStyle").getLineStyle();h.setItemLayout(e,[d.getItemLayout(e),p.getItemLayout(e)]),null==t.stroke&&(t.stroke=d.getItemVisual(e,"style").fill),h.setItemVisual(e,{fromSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(e,"symbolOffset"),fromSymbolRotate:d.getItemVisual(e,"symbolRotate"),fromSymbolSize:d.getItemVisual(e,"symbolSize"),fromSymbol:d.getItemVisual(e,"symbol"),toSymbolKeepAspect:p.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(e,"symbolOffset"),toSymbolRotate:p.getItemVisual(e,"symbolRotate"),toSymbolSize:p.getItemVisual(e,"symbolSize"),toSymbol:p.getItemVisual(e,"symbol"),style:t})})),l.updateData(h),u.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){Object(wt["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(Zb);function cx(e,t,n){var i;i=e?Object(c["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(c["extend"])(Object(c["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var a=new ot["a"](i,n),r=new ot["a"](i,n),o=new ot["a"]([],n),s=Object(c["map"])(n.get("data"),Object(c["curry"])(ix,t,e,n));e&&(s=Object(c["filter"])(s,Object(c["curry"])(ox,e)));var l=Fb(!!e,i);return a.initData(Object(c["map"])(s,(function(e){return e[0]})),null,l),r.initData(Object(c["map"])(s,(function(e){return e[1]})),null,l),o.initData(Object(c["map"])(s,(function(e){return e[2]}))),o.hasItemOption=!0,{from:a,to:r,line:o}}var ux=lx;function dx(e){e.registerComponentModel(tx),e.registerComponentView(ux),e.registerPreprocessor((function(e){jb(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var px=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Lb),hx=px,gx=Object(lt["o"])(),fx=function(e,t,n,i){var a=Bb(e,i[0]),r=Bb(e,i[1]),o=a.coord,s=r.coord;o[0]=Object(c["retrieve"])(o[0],-1/0),o[1]=Object(c["retrieve"])(o[1],-1/0),s[0]=Object(c["retrieve"])(s[0],1/0),s[1]=Object(c["retrieve"])(s[1],1/0);var l=Object(c["mergeAll"])([{},a,r]);return l.coord=[a.coord,r.coord],l.x0=a.x,l.y0=a.y,l.x1=r.x,l.y1=r.y,l};function yx(e){return!isNaN(e)&&!isFinite(e)}function mx(e,t,n,i){var a=1-e;return yx(t[a])&&yx(n[a])}function vx(e,t){var n=t.coord[0],i=t.coord[1];return!!(Object(dp["a"])(e,"cartesian2d")&&n&&i&&(mx(1,n,i,e)||mx(0,n,i,e)))||(Wb(e,{coord:n,x:t.x0,y:t.y0})||Wb(e,{coord:i,x:t.x1,y:t.y1}))}function bx(e,t,n,i,a){var r,o=i.coordinateSystem,s=e.getItemModel(t),l=Te["p"](s.get(n[0]),a.getWidth()),c=Te["p"](s.get(n[1]),a.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(n,t));else{var u=e.get(n[0],t),d=e.get(n[1],t),p=[u,d];o.clampData&&o.clampData(p,p),r=o.dataToPoint(p,!0)}if(Object(dp["a"])(o,"cartesian2d")){var h=o.getAxis("x"),g=o.getAxis("y");u=e.get(n[0],t),d=e.get(n[1],t);yx(u)?r[0]=h.toGlobalCoord(h.getExtent()["x0"===n[0]?0:1]):yx(d)&&(r[1]=g.toGlobalCoord(g.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(r[0]=l),isNaN(c)||(r[1]=c)}else r=[l,c];return r}var xx=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],_x=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=Lb.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var a=Object(c["map"])(xx,(function(a){return bx(i,t,a,e,n)}));i.setItemLayout(t,a);var r=i.getItemGraphicEl(t);r.setShape("points",a)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var a=e.coordinateSystem,r=e.id,s=e.getData(),l=this.markerGroupMap,u=l.get(r)||l.set(r,{group:new We["a"]});this.group.add(u.group),this.markKeep(u);var d=Sx(a,e,t);t.setData(d),d.each((function(t){var n=Object(c["map"])(xx,(function(n){return bx(d,t,n,e,i)})),r=a.getAxis("x").scale,l=a.getAxis("y").scale,u=r.getExtent(),p=l.getExtent(),h=[r.parse(d.get("x0",t)),r.parse(d.get("x1",t))],g=[l.parse(d.get("y0",t)),l.parse(d.get("y1",t))];Te["c"](h),Te["c"](g);var f=!(u[0]>h[1]||u[1]g[1]||p[1]"],c["isArray"](e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return c["isString"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):c["isFunction"](s)?i?s(e[0],e[1]):s(e):i?e[0]===o[0]?n[0]+" "+l[1]:e[1]===o[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===o[0]?"min":e===o[1]?"max":(+e).toFixed(Math.min(r,20))}},t.prototype.resetExtent=function(){var e=this.option,t=Ex([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var a=n[i],r=e.getDimensionInfo(a);if(!r.isCalculationCoord)return r.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),a=t.controller||(t.controller={});c["merge"](i,n),c["merge"](a,n);var r=this.isCategory();function o(n){Nx(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var i=e[t],a=e[n];i&&!a&&(a=e[n]={},kx(i,(function(e,t){if(_r.isValidType(t)){var n=Tx.get(t,"inactive",r);null!=n&&(a[t]=n,"color"!==t||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),a=this.getItemSymbol(),o=a||"roundRect";kx(this.stateList,(function(a){var s=this.itemSize,l=e[a];l||(l=e[a]={color:r?i:[i]}),null==l.symbol&&(l.symbol=t&&c["clone"](t)||(r?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&c["clone"](n)||(r?s[0]:[s[0],s[0]])),l.symbol=Lx(l.symbol,(function(e){return"none"===e?o:e}));var u=l.symbolSize;if(null!=u){var d=-1/0;Px(u,(function(e){e>d&&(d=e)})),l.symbolSize=Lx(u,(function(e){return Vx(e,[0,d],[0,s[0]],!0)}))}}),this)}o.call(this,i),o.call(this,a),s.call(this,i,"inRange","outOfRange"),l.call(this,a)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,zlevel: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"}},t}(Zt["a"]),zx=Rx,Bx=[20,140],Gx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=Bx[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=Bx[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):c["isArray"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),c["each"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Te["c"]((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],a=n.getData();a.each(this.getDataDimensionIndex(a),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=Hx(this,"outOfRange",this.getExtent()),n=Hx(this,"inRange",this.option.range.slice()),i=[];function a(t,n){i.push({value:t,color:e(t,n)})}for(var r=0,o=0,s=n.length,l=t.length;oe[1])break;i.push({color:this.getControllerVisual(o,"color",t),offset:r/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new We["a"]("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,a=n.handleThumbs,r=n.handleLabels,o=i.itemSize,s=i.getExtent();Kx([0,1],(function(l){var c=a[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=qx(e[l],[0,o[1]],s,!0),d=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=d/o[0],c.x=o[0]-d/2;var p=Rt["applyTransform"](n.handleLabelPoints[l],Rt["getTransform"](c,this.group));r[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,s=[0,o[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",u),p=this.getControllerVisual(e,"symbolSize"),h=qx(e,r,s,!0),g=o[0]-p/2,f={x:c.x,y:c.y};c.y=h,c.x=g;var y=Rt["applyTransform"](l.indicatorLabelPoint,Rt["getTransform"](c,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;m.setStyle({text:(n||"")+a.formatValueText(t),verticalAlign:x?v:"middle",align:x?"center":v});var _={x:g,y:h,style:{fill:d}},S={style:{x:y[0],y:y[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};c.x=f.x,c.y=f.y,c.animateTo(_,w),m.animateTo(S,w)}else c.attr(_),m.attr(S);this._firstShowIndicator=!1;var O=this._shapes.handleLabels;if(O)for(var M=0;Ma[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var u=this._hoverLinkDataIndices,d=[];(t||a_(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var p=lt["d"](u,d);this._dispatchHighDown("downplay",Zx(p[0],n)),this._dispatchHighDown("highlight",Zx(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=Object(wt["a"])(t).dataIndex){var i=Object(wt["a"])(t),a=this.ecModel.getSeriesByIndex(i.seriesIndex);if(n.isTargetSeries(a)){var r=a.getData(i.dataType),o=r.getStore().get(n.getDataDimensionIndex(r),i.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(a.dimension=r,i.push(a))}})),e.getData().setVisual("visualMeta",i)}}];function u_(e,t,n,i){for(var a=t.targetVisuals[i],r=_r.prepareVisualTypes(a),o={color:Object(Sv["b"])(e.getData(),"color")},s=0,l=r.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(s_,l_),Object(c["each"])(c_,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(p_))}function y_(e){e.registerComponentModel(Wx),e.registerComponentView(o_),f_(e)}var m_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Object(b["b"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],v_[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var a=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=c["clone"](a)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=c["map"](this._pieceList,(function(e){return e=c["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=_r.listVisualTypes(),a=this.isCategory();function r(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}c["each"](t.pieces,(function(e){c["each"](i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),c["each"](n,(function(e,n){var i=!1;c["each"](this.stateList,(function(e){i=i||r(t,e,n)||r(t.target,e,n)}),this),!i&&c["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=Tx.get(n,"inRange"===e?"active":"inactive",a)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,a=(t?n:e).selected||{};if(n.selected=a,c["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);a.hasOwnProperty(n)||(a[n]=!0)}),this),"single"===n.selectedMode){var r=!1;c["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);a[n]&&(r?a[n]=!1:r=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=c["clone"](e)},t.prototype.getValueState=function(e){var t=_r.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var a=[],r=i.getData();r.each(this.getDataDimensionIndex(r),(function(t,i){var r=_r.findPieceIndex(t,n);r===e&&a.push(i)}),this),t.push({seriesId:i.id,dataIndex:a})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,a=this._pieceList.slice();if(a.length){var r=a[0].interval[0];r!==-1/0&&a.unshift({interval:[-1/0,r]}),r=a[a.length-1].interval[1],r!==1/0&&a.push({interval:[r,1/0]})}else a.push({interval:[-1/0,1/0]});var o=-1/0;return c["each"](a,(function(e){var t=e.interval;t&&(t[0]>o&&s([o,t[0]],"outOfRange"),s(t.slice()),o=t[1])}),this),{stops:t,outerColors:n}}function s(a,r){var o=i.getRepresentValue({interval:a});r||(r=i.getValueState(o));var s=e(o,r);a[0]===-1/0?n[0]=s:a[1]===1/0?n[1]=s:t.push({value:a[0],color:s},{value:a[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Object(On["d"])(zx.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}),t}(zx),v_={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;var r=(i[1]-i[0])/a;while(+r.toFixed(n)!==r&&n<5)n++;t.precision=n,r=+r.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function b_(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var x_=m_,__=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(b["b"])(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,a=i.getFont(),r=i.getTextColor(),o=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,d=c["retrieve"](t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,d,o),c["each"](l.viewPieceList,(function(i){var l=i.piece,u=new We["a"];u.onclick=c["bind"](this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var p=t.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]]),d){var h=this.visualMapModel.getValueState(p);u.add(new ze["a"]({style:{x:"right"===o?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:o,font:a,fill:r,opacity:"outOfRange"===h?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,d,o),Le["b"](t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:Zx(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return Xx(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,a){if(t){var r=new We["a"],o=this.visualMapModel.textStyleModel;r.add(new ze["a"]({style:{x:i?"right"===a?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?a:"center",text:t,font:o.getFont(),fill:o.getTextColor()}})),e.add(r)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=c["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),a=e.get("inverse");return("horizontal"===i?a:!a)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Object(_t["a"])(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=c["clone"](n.selected),a=t.getSelectedMapKey(e);"single"===n.selectedMode?(i[a]=!0,c["each"](i,(function(e,t){i[t]=t===a}))):i[a]=!i[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},t.type="visualMap.piecewise",t}(Ux),S_=__;function w_(e){e.registerComponentModel(x_),e.registerComponentView(S_),f_(e)}function O_(e){Object(i["a"])(y_),Object(i["a"])(w_)}var M_=n("7e0d"),I_={label:{enabled:!0},decal:{show:!1}},A_=Object(lt["o"])(),j_={};function D_(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=c["clone"](I_);c["merge"](i.label,e.getLocaleModel().get("aria"),!1),c["merge"](n.option,i,!1),a(),r()}function a(){var t=n.getModel("decal"),i=t.get("show");if(i){var a=c["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=a.get(e.type);t||(t={},a.set(e.type,t)),A_(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if("function"!==typeof t.enableAriaDecal){var n=t.getData();if(t.isColorBySeries()){var i=Object(wa["b"])(t.ecModel,t.name,j_,e.getSeriesCount()),a=n.getVisual("decal");n.setVisual("decal",u(a,i))}else{var r=t.getRawData(),o={},s=A_(t).scope;n.each((function(e){var t=n.getRawIndex(e);o[t]=e}));var l=r.count();r.each((function(e){var i=o[e],a=r.getName(e)||e+"",c=Object(wa["b"])(t.ecModel,a,s,l),d=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(d,c))}))}}else t.enableAriaDecal();function u(e,t){var n=e?c["extend"](c["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function r(){var i=e.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=c["defaults"](a.option,i),a.get("enabled")){var r=t.getZr().dom;if(a.get("description"))r.setAttribute("aria-label",a.get("description"));else{var u,d=e.getSeriesCount(),p=a.get(["data","maxCount"])||10,h=a.get(["series","maxCount"])||10,g=Math.min(d,h);if(!(d<1)){var f=s();if(f){var y=a.get(["general","withTitle"]);u=o(y,{title:f})}else u=a.get(["general","withoutTitle"]);var m=[],v=d>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);u+=o(v,{seriesCount:d}),e.eachSeries((function(e,t){if(t1?a.get(["series","multiple",r]):a.get(["series","single",r]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>p){var c=a.get(["data","partialData"]);n+=o(c,{displayCnt:p})}else n+=a.get(["data","allData"]);for(var u=[],h=0;h":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},P_=function(){function e(e){var t=this._condVal=Object(c["isString"])(e)?new RegExp(e):Object(c["isRegExp"])(e)?e:null;if(null==t){var n="";0,Object(qu["c"])(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return"string"===t?this._condVal.test(e):"number"===t&&this._condVal.test(e+"")},e}(),N_=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),k_=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,n]}function g(e,n,i,a){$_(e,i)&&$_(n,a)||t.push(e,n,i,a,i,a)}function f(e,n,i,a,r,o){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=nO:A2&&l.push(t),l}function tS(e,t,n,i,a,r,o,s,l,c){if($_(e,n)&&$_(t,i)&&$_(a,o)&&$_(r,s))l.push(o,s);else{var u=2/c,d=u*u,p=o-e,h=s-t,g=Math.sqrt(p*p+h*h);p/=g,h/=g;var f=n-e,y=i-t,m=a-o,v=r-s,b=f*f+y*y,x=m*m+v*v;if(b=0&&O=0)l.push(o,s);else{var M=[],I=[];Object(Qo["g"])(e,n,a,o,.5,M),Object(Qo["g"])(t,i,r,s,.5,I),tS(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,c),tS(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,c)}}}}function nS(e,t){var n=eS(e),i=[];t=t||1;for(var a=0;a0)for(c=0;cMath.abs(c),d=iS([l,c],u?0:1,t),p=(u?s:c)/d.length,h=0;ha,o=iS([i,a],r?0:1,t),s=r?"width":"height",l=r?"height":"width",c=r?"x":"y",u=r?"y":"x",d=e[s]/o.length,p=0;p1?null:new Ye["a"](f*l+e,f*c+t)}function lS(e,t,n){var i=new Ye["a"];Ye["a"].sub(i,n,t),i.normalize();var a=new Ye["a"];Ye["a"].sub(a,e,t);var r=a.dot(i);return r}function cS(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function uS(e,t,n){for(var i=e.length,a=[],r=0;ro?(c.x=u.x=s+r/2,c.y=l,u.y=l+o):(c.y=u.y=l+o/2,c.x=s,u.x=s+r),uS(t,c,u)}function pS(e,t,n,i){if(1===n)i.push(t);else{var a=Math.floor(n/2),r=e(t);pS(e,r[0],a,i),pS(e,r[1],n-a,i)}return i}function hS(e,t){for(var n=[],i=0;i0)for(var _=i/n,S=-i/2;S<=i/2;S+=_){var w=Math.sin(S),O=Math.cos(S),M=0;for(b=0;b0;c/=2){var u=0,d=0;(e&c)>0&&(u=1),(t&c)>0&&(d=1),l+=c*c*(3*u^d),0===d&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function LS(e){var t=1/0,n=1/0,i=-1/0,a=-1/0,r=Object(c["map"])(e,(function(e){var r=e.getBoundingRect(),o=e.getComputedTransform(),s=r.x+r.width/2+(o?o[4]:0),l=r.y+r.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),a=Math.max(l,a),[s,l]})),o=Object(c["map"])(r,(function(r,o){return{cp:r,z:TS(r[0],r[1],t,n,i,a),path:e[o]}}));return o.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function PS(e){return yS(e.path,e.count)}function NS(){return{fromIndividuals:[],toIndividuals:[],count:0}}function kS(e,t,n){var i=[];function a(e){for(var t=0;t=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}r=l.length;var c=Math.ceil(r/2);n[a].many=l.slice(c,r),n[s].many=l.slice(0,c),s++}return n}var zS={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i0){var s,l,u=i.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},o);VS(e)&&(s=e,l=t),VS(t)&&(s=t,l=e);for(var p=s?s===e:e.length>t.length,h=s?RS(l,s):RS(p?t:e,[p?e:t]),g=0,f=0;fHS))for(var i=n.getIndices(),a=FS(n),r=0;r0&&a.group.traverse((function(e){e instanceof u["b"]&&!e.animators.length&&e.animateFrom({style:{opacity:0}},r)}))}))}function JS(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function $S(e){return Object(c["isArray"])(e)?e.sort().join(","):e}function ew(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function tw(e,t){var n=Object(c["createHashMap"])(),i=Object(c["createHashMap"])(),a=Object(c["createHashMap"])();return Object(c["each"])(e.oldSeries,(function(t,n){var r=e.oldData[n],o=JS(t),s=$S(o);i.set(s,r),Object(c["isArray"])(o)&&Object(c["each"])(o,(function(e){a.set(e,{data:r,key:s})}))})),Object(c["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),r=JS(e),o=$S(r),s=i.get(o);if(s)n.set(o,{oldSeries:[{divide:ew(s),data:s}],newSeries:[{divide:ew(t),data:t}]});else if(Object(c["isArray"])(r)){0;var l=[];Object(c["each"])(r,(function(e){var t=i.get(e);t&&l.push({divide:ew(t),data:t})})),l.length&&n.set(o,{oldSeries:l,newSeries:[{data:t,divide:ew(t)}]})}else{var u=a.get(r);if(u){var d=n.get(u.key);d||(d={oldSeries:[{data:u.data,divide:ew(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({data:t,divide:ew(t)})}}}})),n}function nw(e,t){for(var n=0;n=0&&a.push({data:t.oldData[n],divide:ew(t.oldData[n]),dim:e.dimension})})),Object(c["each"])(Object(lt["r"])(e.to),(function(e){var t=nw(n.updatedSeries,e);if(t>=0){var i=n.updatedSeries[t].getData();r.push({data:i,divide:ew(i),dim:e.dimension})}})),a.length>0&&r.length>0&&QS(a,r,i)}function aw(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(c["each"])(Object(lt["r"])(n.seriesTransition),(function(e){Object(c["each"])(Object(lt["r"])(e.to),(function(e){for(var t=n.updatedSeries,i=0;i