(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d9624322"],{"22d1":function(t,e,n){"use strict";var i=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),r=function(){function t(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new r;function a(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:!o.hasGlobalWindow||"Deno"in window?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"41ef":function(t,e,n){"use strict";n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return _})),n.d(e,"b",(function(){return x})),n.d(e,"a",(function(){return w}));var i=n("d51b"),r=n("6d8b"),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return t=Math.round(t),t<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new i["a"](20),d=null;function g(t,e){d&&p(d,e),d=f.put(t,d||e.slice())}function v(t,e){if(t){e=e||[];var n=f.get(t);if(n)return p(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in o)return p(e,o[i]),g(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===r){var c=i.substr(0,a),d=i.substr(a+1,s-(a+1)).split(","),v=1;switch(c){case"rgba":if(4!==d.length)return 3===d.length?h(e,+d[0],+d[1],+d[2],1):h(e,0,0,0,1);v=u(d.pop());case"rgb":return d.length>=3?(h(e,l(d[0]),l(d[1]),l(d[2]),3===d.length?v:u(d[3])),g(t,e),e):void h(e,0,0,0,1);case"hsla":return 4!==d.length?void h(e,0,0,0,1):(d[3]=u(d[3]),y(d,e),g(t,e),e);case"hsl":return 3!==d.length?void h(e,0,0,0,1):(y(d,e),g(t,e),e);default:return}}h(e,0,0,0,1)}else{if(4===r||5===r){var m=parseInt(i.slice(1,4),16);return m>=0&&m<=4095?(h(e,(3840&m)>>4|(3840&m)>>8,240&m|(240&m)>>4,15&m|(15&m)<<4,5===r?parseInt(i.slice(4),16)/15:1),g(t,e),e):void h(e,0,0,0,1)}if(7===r||9===r){m=parseInt(i.slice(1,7),16);return m>=0&&m<=16777215?(h(e,(16711680&m)>>16,(65280&m)>>8,255&m,9===r?parseInt(i.slice(7),16)/255:1),g(t,e),e):void h(e,0,0,0,1)}}}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=u(t[1]),r=u(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return e=e||[],h(e,a(255*c(s,o,n+1/3)),a(255*c(s,o,n)),a(255*c(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function m(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return _(n,4===n.length?"rgba":"rgb")}}function _(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function x(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var b=new i["a"](100);function w(t){if(Object(r["A"])(t)){var e=b.get(t);return e||(e=m(t,-.1),b.put(t,e)),e}if(Object(r["w"])(t)){var n=Object(r["m"])({},t);return n.colorStops=Object(r["F"])(t.colorStops,(function(t){return{offset:t.offset,color:m(t.color,-.1)}})),n}return t}},"51f3":function(t,e,n){"use strict";n("5b66")},"5b66":function(t,e,n){},"6d8b":function(t,e,n){"use strict";n.d(e,"o",(function(){return v})),n.d(e,"E",(function(){return y})),n.d(e,"d",(function(){return m})),n.d(e,"G",(function(){return _})),n.d(e,"m",(function(){return x})),n.d(e,"i",(function(){return b})),n.d(e,"q",(function(){return w})),n.d(e,"r",(function(){return S})),n.d(e,"H",(function(){return O})),n.d(e,"t",(function(){return T})),n.d(e,"k",(function(){return k})),n.d(e,"F",(function(){return M})),n.d(e,"K",(function(){return C})),n.d(e,"n",(function(){return I})),n.d(e,"D",(function(){return D})),n.d(e,"c",(function(){return A})),n.d(e,"h",(function(){return P})),n.d(e,"s",(function(){return L})),n.d(e,"v",(function(){return R})),n.d(e,"A",(function(){return z})),n.d(e,"B",(function(){return N})),n.d(e,"y",(function(){return B})),n.d(e,"z",(function(){return E})),n.d(e,"C",(function(){return H})),n.d(e,"u",(function(){return V})),n.d(e,"w",(function(){return G})),n.d(e,"x",(function(){return W})),n.d(e,"l",(function(){return U})),n.d(e,"L",(function(){return q})),n.d(e,"M",(function(){return X})),n.d(e,"N",(function(){return Y})),n.d(e,"P",(function(){return Z})),n.d(e,"J",(function(){return K})),n.d(e,"b",(function(){return Q})),n.d(e,"Q",(function(){return $})),n.d(e,"O",(function(){return tt})),n.d(e,"f",(function(){return at})),n.d(e,"e",(function(){return st})),n.d(e,"g",(function(){return lt})),n.d(e,"j",(function(){return ut})),n.d(e,"p",(function(){return ct})),n.d(e,"I",(function(){return ht})),n.d(e,"a",(function(){return pt}));var i=n("726e"),r=C(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=C(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,p=function(){}.constructor,f=p?p.prototype:null,d="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e=0)u=l*n.length;else for(var p=0;p=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},f85a:function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"updateProps",(function(){return Sl})),n.d(i,"initProps",(function(){return Ol})),n.d(i,"removeElement",(function(){return kl})),n.d(i,"removeElementWithFadeOut",(function(){return Cl})),n.d(i,"isElementRemoved",(function(){return Tl})),n.d(i,"extendShape",(function(){return kg})),n.d(i,"extendPath",(function(){return Cg})),n.d(i,"registerShape",(function(){return Ig})),n.d(i,"getShapeClass",(function(){return Dg})),n.d(i,"makePath",(function(){return jg})),n.d(i,"makeImage",(function(){return Ag})),n.d(i,"mergePath",(function(){return Lg})),n.d(i,"resizePath",(function(){return Rg})),n.d(i,"subPixelOptimizeLine",(function(){return zg})),n.d(i,"subPixelOptimizeRect",(function(){return Ng})),n.d(i,"subPixelOptimize",(function(){return Bg})),n.d(i,"getTransform",(function(){return Eg})),n.d(i,"applyTransform",(function(){return Fg})),n.d(i,"transformDirection",(function(){return Hg})),n.d(i,"groupTransition",(function(){return Wg})),n.d(i,"clipPointsByRect",(function(){return Ug})),n.d(i,"clipRectByRect",(function(){return qg})),n.d(i,"createIcon",(function(){return Xg})),n.d(i,"linePolygonIntersect",(function(){return Yg})),n.d(i,"lineLineIntersect",(function(){return Zg})),n.d(i,"setTooltipConfig",(function(){return $g})),n.d(i,"traverseElements",(function(){return tv})),n.d(i,"Group",(function(){return _i})),n.d(i,"Image",(function(){return La})),n.d(i,"Text",(function(){return ss})),n.d(i,"Circle",(function(){return gd})),n.d(i,"Ellipse",(function(){return md})),n.d(i,"Sector",(function(){return zd})),n.d(i,"Ring",(function(){return Ed})),n.d(i,"Polygon",(function(){return Wd})),n.d(i,"Polyline",(function(){return Xd})),n.d(i,"Rect",(function(){return Ga})),n.d(i,"Line",(function(){return Qd})),n.d(i,"BezierCurve",(function(){return ng})),n.d(i,"Arc",(function(){return og})),n.d(i,"IncrementalDisplayable",(function(){return wg})),n.d(i,"CompoundPath",(function(){return sg})),n.d(i,"LinearGradient",(function(){return hg})),n.d(i,"RadialGradient",(function(){return fg})),n.d(i,"BoundingRect",(function(){return Ot})),n.d(i,"OrientedBoundingRect",(function(){return _g})),n.d(i,"Point",(function(){return dt})),n.d(i,"Path",(function(){return ka}));n("b0c0");var r=function(){var t=this,e=t._self._c;return e("d2-container",[e("div",{staticClass:"page-header"},[e("el-avatar",{staticClass:"user-avatar",attrs:{src:"https://q1.qlogo.cn/g?b=qq&nk=190848757&s=640"}}),e("div",{staticClass:"title"},[e("h1",[t._v("早安, 开始您一天的工作吧!")]),e("span",[t._v(" 今日晴,20℃ - 32℃! ")])])],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"grid-content bg-purple"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",[t._v("快捷导航")])]),e("el-row",t._l(t.navigators,(function(n,i){var r=n.name,o=n.icon,a=n.route,s=n.color;return e("el-col",{key:i,staticStyle:{padding:"0"},attrs:{span:8}},[e("el-card",{attrs:{shadow:"hover"}},[e("div",{staticStyle:{display:"flex","align-items":"center","flex-direction":"column",cursor:"pointer"},on:{click:function(){t.gotoRoute(a)}}},[e("d2-icon-svg",{staticStyle:{width:"25px",height:"25px"},style:{fill:s},attrs:{name:o}}),e("div",{staticStyle:{"text-align":"center","font-size":"12px","margin-top":"20px"},domProps:{textContent:t._s(r)}})],1)])],1)})),1)],1),e("el-card",{staticClass:"box-card",staticStyle:{"margin-top":"25px"}},[e("div",{staticClass:"work"},[e("d2-icon-svg",{staticStyle:{"margin-left":"50%",transform:"translateX(-50%)",height:"216px"},attrs:{name:"work"}})],1)])],1)])],1)],1)},o=[],a=(n("14d9"),function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},a(t,e)});function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var l=n("22d1"),u=n("6d8b");function c(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function h(t){return[t[0],t[1]]}function p(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function f(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function d(t){return Math.sqrt(g(t))}function g(t){return t[0]*t[0]+t[1]*t[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=d(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function m(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var _=m;function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var b=x;function w(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function S(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function O(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function T(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var k=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),M=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new k(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new k(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new k(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new k(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new k(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new k(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),C=M,I=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function E(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,f=c.top;a.push(p,f),l=l&&o&&p===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?P(s,a):P(a,s))}function F(t){return"CANVAS"===t.nodeName.toUpperCase()}var H=/([&<>"'])/g,V={"&":"&","<":"<",">":">",'"':""","'":"'"};function G(t){return null==t?"":(t+"").replace(H,(function(t,e){return V[e]}))}var W=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,U=[],q=l["a"].browser.firefox&&+l["a"].browser.version.split(".")[0]<39;function X(t,e,n,i){return n=n||{},i?Y(t,e,n):q&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Y(t,e,n),n}function Y(t,e,n){if(l["a"].domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(F(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(N(U,t,i,r))return n.zrX=U[0],void(n.zrY=U[1])}n.zrX=n.zrY=0}function Z(t){return t||window.event}function K(t,e,n){if(e=Z(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&X(t,o,e,n)}else{X(t,e,e,n);var a=Q(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&W.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Q(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function $(t,e,n,i){t.addEventListener(e,n,i)}function J(t,e,n,i){t.removeEventListener(e,n,i)}var tt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var et=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&i&&i.length>1){var o=nt(i)/nt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=it(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function ot(){return[1,0,0,1,0,0]}function at(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function st(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function lt(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ut(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ct(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function ht(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function pt(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var ft=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),dt=ft,gt=Math.min,vt=Math.max,yt=new dt,mt=new dt,_t=new dt,xt=new dt,bt=new dt,wt=new dt,St=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=gt(t.x,this.x),n=gt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=vt(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=vt(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=ot();return ut(r,r,[-e.x,-e.y]),ht(r,r,[n,i]),ut(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,p=!(od&&(d=_,gd&&(d=x,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}yt.x=_t.x=n.x,yt.y=xt.y=n.y,mt.x=xt.x=n.x+n.width,mt.y=_t.y=n.y+n.height,yt.transform(i),xt.transform(i),mt.transform(i),_t.transform(i),e.x=gt(yt.x,mt.x,_t.x,xt.x),e.y=gt(yt.y,mt.y,_t.y,xt.y);var l=vt(yt.x,mt.x,_t.x,xt.x),u=vt(yt.y,mt.y,_t.y,xt.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Ot=St,Tt="silent";function kt(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Mt}}function Mt(){tt(this.event)}var Ct=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return s(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(D),It=function(){function t(t,e){this.x=t,this.y=e}return t}(),Dt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],jt=new Ot(0,0,0,0),At=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new It(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Ct,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new C(a),a}return s(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(u["k"](Dt,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Rt(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new It(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new It(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,o=kt(e,t,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new It(t,e);if(Lt(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Ot(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(jt.copy(c.getBoundingRect()),c.transform&&jt.applyTransform(c.transform),jt.intersect(l)&&o.push(c))}if(o.length)for(var h=4,p=Math.PI/12,f=2*Math.PI,d=0;d=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Pt(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Tt)){e.target=a;break}}}function Rt(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}u["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){At.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Rt(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||_(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var zt=At,Nt=32,Bt=7;function Et(t){var e=0;while(t>=Nt)e|=1&t,t>>=1;return t+e}function Ft(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r=0)r++;return r-e}function Ht(t,e,n){n--;while(e>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function Gt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){s=i-r;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(ls&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Wt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){s=r+1;while(ls&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Ut(t,e){var n,i,r=Bt,o=0,a=[];function s(t,e){n[o]=t,i[o]=e,o+=1}function l(){while(o>1){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;c(t)}}function u(){while(o>1){var t=o-2;t>0&&i[t-1]=Bt||f>=Bt);if(d)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l=0;l--)t[f+l]=t[p+l];if(0===i){y=!0;break}}if(t[h--]=a[c--],1===--s){y=!0;break}if(v=s-Gt(t[u],a,0,s,s-1,e),0!==v){for(h-=v,c-=v,s-=v,f=h+1,p=c+1,l=0;l=Bt||v>=Bt);if(y)break;d<0&&(d=0),d+=2}if(r=d,r<1&&(r=1),1===s){for(h-=i,u-=i,f=h+1,p=u+1,l=i-1;l>=0;l--)t[f+l]=t[p+l];t[h]=a[c]}else{if(0===s)throw new Error;for(p=h-(s-1),l=0;l=0;l--)t[f+l]=t[p+l];t[h]=a[c]}else for(p=h-(s-1),l=0;ls&&(l=s),Vt(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var Xt=1,Yt=2,Zt=4,Kt=!1;function Qt(){Kt||(Kt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $t(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Jt,te=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$t}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(Qt(),u.z=0),isNaN(u.z2)&&(Qt(),u.z2=0),isNaN(u.zlevel)&&(Qt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),ee=te;Jt=l["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ne=Jt,ie={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ie.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*ie.bounceIn(2*t):.5*ie.bounceOut(2*t-1)+.5}},re=ie,oe=Math.pow,ae=Math.sqrt,se=1e-8,le=1e-4,ue=ae(3),ce=1/3,he=c(),pe=c(),fe=c();function de(t){return t>-se&&tse||t<-se}function ve(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ye(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function me(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,f=0;if(de(c)&&de(h))if(de(s))o[0]=0;else{var d=-l/s;d>=0&&d<=1&&(o[f++]=d)}else{var g=h*h-4*c*p;if(de(g)){var v=h/c,y=(d=-s/a+v,-v/2);d>=0&&d<=1&&(o[f++]=d),y>=0&&y<=1&&(o[f++]=y)}else if(g>0){var m=ae(g),_=c*s+1.5*a*(-h+m),x=c*s+1.5*a*(-h-m);_=_<0?-oe(-_,ce):oe(_,ce),x=x<0?-oe(-x,ce):oe(x,ce);d=(-s-(_+x))/(3*a);d>=0&&d<=1&&(o[f++]=d)}else{var b=(2*c*s-3*a*h)/(2*ae(c*c*c)),w=Math.acos(b)/3,S=ae(c),O=Math.cos(w),T=(d=(-s-2*S*O)/(3*a),y=(-s+S*(O+ue*Math.sin(w)))/(3*a),(-s+S*(O-ue*Math.sin(w)))/(3*a));d>=0&&d<=1&&(o[f++]=d),y>=0&&y<=1&&(o[f++]=y),T>=0&&T<=1&&(o[f++]=T)}}return f}function _e(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(de(a)){if(ge(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(de(c))r[0]=-o/(2*a);else if(c>0){var h=ae(c),p=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function xe(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function be(t,e,n,i,r,o,a,s,l,u,c){var h,p,f,d,g,v=.005,y=1/0;he[0]=l,he[1]=u;for(var m=0;m<1;m+=.05)pe[0]=ve(t,n,r,a,m),pe[1]=ve(e,i,o,s,m),d=b(he,pe),d=0&&d=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(de(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=ae(c),p=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function ke(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Me(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Ce(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;he[0]=a,he[1]=s;for(var p=0;p<1;p+=.05){pe[0]=Se(t,n,r,p),pe[1]=Se(e,i,o,p);var f=b(he,pe);f=0&&f=1?1:me(0,i,o,1,t,s)&&ve(0,r,a,1,s[0])}}}var Ae=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||u["I"],this.ondestroy=t.ondestroy||u["I"],this.onrestart=t.onrestart||u["I"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(u["v"])(t)?t:re[t]||je(t)},t}(),Pe=Ae,Le=n("41ef"),Re=n("7a29"),ze=Array.prototype.slice;function Ne(t,e,n){return(e-t)*n+t}function Be(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)i.length=a;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=Je,s=e;if(Object(u["t"])(e)){var l=qe(e);a=l,(1===l&&!Object(u["y"])(e[0])||2===l&&!Object(u["y"])(e[0][0]))&&(o=!0)}else if(Object(u["y"])(e)&&!Object(u["l"])(e))a=Xe;else if(Object(u["A"])(e))if(isNaN(+e)){var c=Le["c"](e);c&&(s=c,a=Ke)}else a=Xe;else if(Object(u["w"])(e)){var h=Object(u["m"])({},s);h.colorStops=Object(u["F"])(e.colorStops,(function(t){return{offset:t.offset,color:Le["c"](t.color)}})),Object(Re["a"])(e)?a=Qe:Object(Re["b"])(e)&&(a=$e),s=h}0===r?this.valType=a:a===this.valType&&a!==Je||(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return n&&(p.easing=n,p.easingFunc=Object(u["v"])(n)?n:re[n]||je(n)),i.push(p),p},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=en(i),l=tn(i),u=0;u=0;n--)if(l[n].percent<=e)break;n=d(n,c-2)}else{for(n=f;ne)break;n=d(n-1,c-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var v=r.percent-i.percent,y=0===v?1:d((e-i.percent)/v,1);r.easingFunc&&(y=r.easingFunc(y));var m=o?this._additiveValue:p?nn:t[h];if(!en(s)&&!p||m||(m=this._additiveValue=[]),this.discrete)t[h]=y<1?i.rawValue:r.rawValue;else if(en(s))s===Ye?Be(m,i[a],r[a],y):Ee(m,i[a],r[a],y);else if(tn(s)){var _=i[a],x=r[a],b=s===Qe;t[h]={type:b?"linear":"radial",x:Ne(_.x,x.x,y),y:Ne(_.y,x.y,y),colorStops:Object(u["F"])(_.colorStops,(function(t,e){var n=x.colorStops[e];return{offset:Ne(t.offset,n.offset,y),color:Ue(Be([],t.color,n.color,y))}})),global:x.global},b?(t[h].x2=Ne(_.x2,x.x2,y),t[h].y2=Ne(_.y2,x.y2,y)):t[h].r=Ne(_.r,x.r,y)}else if(p)Be(m,i[a],r[a],y),o||(t[h]=Ue(m));else{var w=Ne(i[a],r[a],y);o?this._additiveValue=w:t[h]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Xe?t[n]=t[n]+i:e===Ke?(Le["c"](t[n],nn),Fe(nn,nn,i,1),t[n]=Ue(nn)):e===Ye?Fe(t[n],t[n],i,1):e===Ze&&He(t[n],t[n],i,1)},t}(),on=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?Object(u["E"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(u["D"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o0&&s.addKeyframe(0,We(l),i),this._trackKeys.push(a)}s.addKeyframe(t,We(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),an=on;function sn(){return(new Date).getTime()}var ln=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return s(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=sn()-this._pausedTime,n=e-this._time,i=this._head;while(i){var r=i.next,o=i.step(e,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(ne(e),!t._paused&&t.update())}this._running=!0,ne(e)},e.prototype.start=function(){this._running||(this._time=sn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=sn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=sn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new an(t,e.loop);return this.addAnimator(n),n},e}(D),un=ln,cn=300,hn=l["a"].domSupported,pn=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=u["F"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:i}}(),fn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},dn=!1;function gn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function vn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function yn(t){t&&(t.zrByTouch=!0)}function mn(t,e){return K(t.dom,new xn(t,e),!0)}function _n(t,e){var n=e,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return i}var xn=function(){function t(t,e){this.stopPropagation=u["I"],this.stopImmediatePropagation=u["I"],this.preventDefault=u["I"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),bn={mousedown:function(t){t=K(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=K(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=K(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=K(this.dom,t);var e=t.toElement||t.relatedTarget;_n(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){dn=!0,t=K(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){dn||(t=K(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=K(this.dom,t),yn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),bn.mousemove.call(this,t),bn.mousedown.call(this,t)},touchmove:function(t){t=K(this.dom,t),yn(t),this.handler.processGesture(t,"change"),bn.mousemove.call(this,t)},touchend:function(t){t=K(this.dom,t),yn(t),this.handler.processGesture(t,"end"),bn.mouseup.call(this,t),+new Date-+this.__lastTouchMomentNn||t<-Nn}var En=[],Fn=[],Hn=ot(),Vn=Math.abs,Gn=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Bn(this.rotation)||Bn(this.x)||Bn(this.y)||Bn(this.scaleX-1)||Bn(this.scaleY-1)||Bn(this.skewX)||Bn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||ot(),e?this.getLocalTransform(n):zn(n),t&&(e?lt(n,t,n):st(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(zn(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(En);var n=En[0]<0?-1:1,i=En[1]<0?-1:1,r=((En[0]-n)*e+n)/En[0]||0,o=((En[1]-i)*e+i)/En[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ot(),pt(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ot(),lt(Fn,t.invTransform,e),e=Fn);var n=this.originX,i=this.originY;(n||i)&&(Hn[4]=n,Hn[5]=i,lt(Fn,e,Hn),Fn[4]-=n,Fn[5]-=i,e=Fn),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&S(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&S(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Vn(t[0]-1)>1e-10&&Vn(t[3]-1)>1e-10?Math.sqrt(Vn(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Un(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var f=n+a,d=i+s;e[4]=-f*r-h*d*o,e[5]=-d*o-p*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=h*o,l&&ct(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Wn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Un(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function ii(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=ni(i[0],n.width),u+=ni(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var ri="__zr_normal__",oi=Wn.concat(["ignore"]),ai=Object(u["K"])(Wn,(function(t,e){return t[e]=!0,t}),{ignore:!1}),si={},li=new Ot(0,0,0,0),ui=function(){function t(t){this.id=Object(u["o"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=li;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(si,n,u):ii(si,n,u),r.x=si.x,r.y=si.y,o=si.align,a=si.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,p=void 0;"center"===c?(h=.5*u.width,p=.5*u.height):(h=ni(c[0],u.width),p=ni(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var d=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Xt,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ln:Pn},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(Le["c"])(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Object(Le["d"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(u["m"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(u["z"])(t))for(var n=t,i=Object(u["D"])(n),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(ri,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===ri,o=this.hasState();if(o||!r){var a=this.currentStates,s=this.stateTransition;if(!(Object(u["q"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||r){r||this.saveCurrentToNormalState(l);var c=!!(l&&l.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,p=this._textGuide;return h&&h.useState(t,e,n,c),p&&p.useState(t,e,n,c),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xt),l}Object(u["E"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,f);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Xt)}else this.clearStates()},t.prototype.isSilent=function(){var t=this.silent,e=this.parent;while(!t&&e){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=Object(u["q"])(i,t),o=Object(u["q"])(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p0||r.force&&!a.length){var T=void 0,k=void 0,M=void 0;if(s){k={},f&&(T={});for(b=0;b=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=u["q"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=u["q"](n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Ai(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return u["A"](t)?Di(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Pi(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Ii),t=(+t).toFixed(e),n?t:+t}function Li(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Ri(t)}function Ri(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function zi(t,e){var n=u["K"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var i=Math.pow(10,e),r=u["F"](t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=u["F"](r,(function(t){return Math.floor(t)})),s=u["K"](a,(function(t,e){return t+e}),0),l=u["F"](r,(function(t,e){return t-a[e]}));while(sc&&(c=l[p],h=p);++a[h],l[h]=0,++s}return u["F"](a,(function(t){return t/i}))}function Ni(t,e){var n=Math.max(Li(t),Li(e)),i=t+e;return n>Ii?i:Pi(i,n)}function Bi(t){var e=2*Math.PI;return(t%e+e)%e}function Ei(t){return t>-Ci&&t=10&&e++,e}function Wi(t,e){var n,i=Gi(t),r=Math.pow(10,i),o=t/r;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function Ui(t){var e=parseFloat(t);return e==t&&(0!==e||!u["A"](t)||t.indexOf("x")<=0)?e:NaN}function qi(t){return!isNaN(Ui(t))}function Xi(){return Math.round(9*Math.random())}function Yi(t,e){return 0===e?t:Yi(e,t%e)}function Zi(t,e){return null==t?e:null==e?t:t*e/Yi(t,e)}var Ki="series\0",Qi="\0_ec_\0";function $i(t){return t instanceof Array?t:null==t?[]:[t]}function Ji(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i=0||r&&u["q"](r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Hr=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Vr=Fr(Hr),Gr=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Vr(this,t,e)},t}(),Wr=new Xn["a"](50);function Ur(t){if("string"===typeof t){var e=Wr.get(t);return e&&e.image}return t}function qr(t,e,n,i,r){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Wr.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!Yr(e)&&o.pending.push(a)):(e=Yn["c"].loadImage(t,Xr,Xr),e.__zrImageSrc=t,Wr.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Xr(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var c=Kn(n,e);return c>s&&(n="",c=0),s=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=s,r.containerWidth=t,r}function $r(t,e,n){var i=n.containerWidth,r=n.font,o=n.contentWidth;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=Kn(e,r);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?Jr(e,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(e.length*o/a):0;e=e.substr(0,l),a=Kn(e,r)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function Jr(t,e,n,i){for(var r=0,o=0,a=t.length;og&&h){var v=Math.floor(g/l);p=p||n.length>v,n=n.slice(0,v)}if(t&&a&&null!=f)for(var y=Qr(f,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},_=0;_l&&oo(n,t.substring(l,c),e,s),oo(n,i[2],e,s,i[1]),l=Zr.lastIndex}lo){var D=n.lines.length;S>0?(x.tokens=x.tokens.slice(0,S),m(x,w,b),n.lines=n.lines.slice(0,_+1)):n.lines=n.lines.slice(0,_),n.isTruncated=n.isTruncated||n.lines.length0&&d+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=d}else{var g=uo(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var so=Object(u["K"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function lo(t){return!ao(t)||!!so[t]}function uo(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:r+c+f>n)?c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=p,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=f)):d?(o.push(l),a.push(u),l=p,u=f):(o.push(p),a.push(f)):(c+=f,d?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var co="__zr_style_"+Math.round(10*Math.random()),ho={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},po={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ho[co]=!0;var fo=["z","z2","invisible"],go=["invisible"],vo=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype._init=function(e){for(var n=Object(u["D"])(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(ko[0]=Oo(r)*n+t,ko[1]=So(r)*i+e,Mo[0]=Oo(o)*n+t,Mo[1]=So(o)*i+e,u(s,ko,Mo),c(l,ko,Mo),r%=To,r<0&&(r+=To),o%=To,o<0&&(o+=To),r>o&&!a?o+=To:rr&&(Co[0]=Oo(f)*n+t,Co[1]=So(f)*i+e,u(s,Co,s),c(l,Co,l))}var Ro={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},zo=[],No=[],Bo=[],Eo=[],Fo=[],Ho=[],Vo=Math.min,Go=Math.max,Wo=Math.cos,Uo=Math.sin,qo=Math.abs,Xo=Math.PI,Yo=2*Xo,Zo="undefined"!==typeof Float32Array,Ko=[];function Qo(t){var e=Math.round(t/Xo*1e8)/1e8;return e%2*Xo}function $o(t,e){var n=Qo(t[0]);n<0&&(n+=Yo);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=Yo?r=n+Yo:e&&n-r>=Yo?r=n-Yo:!e&&n>r?r=n+(Yo-Qo(n-r)):e&&n0&&(this._ux=qo(n/jn/t)||0,this._uy=qo(n/jn/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ro.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=qo(t-this._xi),i=qo(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ro.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Ro.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ro.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Ko[0]=i,Ko[1]=r,$o(Ko,o),i=Ko[0],r=Ko[1];var a=r-i;return this.addData(Ro.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Wo(r)*n+t,this._yi=Uo(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ro.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ro.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Zo||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Bo[0]=Bo[1]=Fo[0]=Fo[1]=Number.MAX_VALUE,Eo[0]=Eo[1]=Ho[0]=Ho[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||qo(m)>i||h===e-1)&&(d=Math.sqrt(y*y+m*m),r=g,o=v);break;case Ro.C:var _=t[h++],x=t[h++],b=(g=t[h++],v=t[h++],t[h++]),w=t[h++];d=we(r,o,_,x,g,v,b,w,10),r=b,o=w;break;case Ro.Q:_=t[h++],x=t[h++],g=t[h++],v=t[h++];d=Ie(r,o,_,x,g,v,10),r=g,o=v;break;case Ro.A:var S=t[h++],O=t[h++],T=t[h++],k=t[h++],M=t[h++],C=t[h++],I=C+M;h+=1,f&&(a=Wo(M)*T+S,s=Uo(M)*k+O),d=Go(T,k)*Vo(Yo,Math.abs(C)),r=Wo(I)*T+S,o=Uo(I)*k+O;break;case Ro.R:a=r=t[h++],s=o=t[h++];var D=t[h++],j=t[h++];d=2*D+2*j;break;case Ro.Z:y=a-r,m=s-o;d=Math.sqrt(y*y+m*m),r=a,o=s;break}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,p,f=this.data,d=this._ux,g=this._uy,v=this._len,y=e<1,m=0,_=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var b=0;b0&&(t.lineTo(h,p),x=0),w){case Ro.M:n=r=f[b++],i=o=f[b++],t.moveTo(r,o);break;case Ro.L:a=f[b++],s=f[b++];var O=qo(a-r),T=qo(s-o);if(O>d||T>g){if(y){var k=l[_++];if(m+k>c){var M=(c-m)/k;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}m+=k}t.lineTo(a,s),r=a,o=s,x=0}else{var C=O*O+T*T;C>x&&(h=a,p=s,x=C)}break;case Ro.C:var I=f[b++],D=f[b++],j=f[b++],A=f[b++],P=f[b++],L=f[b++];if(y){k=l[_++];if(m+k>c){M=(c-m)/k;xe(r,I,j,P,M,zo),xe(o,D,A,L,M,No),t.bezierCurveTo(zo[1],No[1],zo[2],No[2],zo[3],No[3]);break t}m+=k}t.bezierCurveTo(I,D,j,A,P,L),r=P,o=L;break;case Ro.Q:I=f[b++],D=f[b++],j=f[b++],A=f[b++];if(y){k=l[_++];if(m+k>c){M=(c-m)/k;Me(r,I,j,M,zo),Me(o,D,A,M,No),t.quadraticCurveTo(zo[1],No[1],zo[2],No[2]);break t}m+=k}t.quadraticCurveTo(I,D,j,A),r=j,o=A;break;case Ro.A:var R=f[b++],z=f[b++],N=f[b++],B=f[b++],E=f[b++],F=f[b++],H=f[b++],V=!f[b++],G=N>B?N:B,W=qo(N-B)>.001,U=E+F,q=!1;if(y){k=l[_++];m+k>c&&(U=E+F*(c-m)/k,q=!0),m+=k}if(W&&t.ellipse?t.ellipse(R,z,N,B,H,E,U,V):t.arc(R,z,G,E,U,V),q)break t;S&&(n=Wo(E)*N+R,i=Uo(E)*B+z),r=Wo(U)*N+R,o=Uo(U)*B+z;break;case Ro.R:n=r=f[b],i=o=f[b+1],a=f[b++],s=f[b++];var X=f[b++],Y=f[b++];if(y){k=l[_++];if(m+k>c){var Z=c-m;t.moveTo(a,s),t.lineTo(a+Vo(Z,X),s),Z-=X,Z>0&&t.lineTo(a+X,s+Vo(Z,Y)),Z-=Y,Z>0&&t.lineTo(a+Go(X-Z,0),s+Y),Z-=X,Z>0&&t.lineTo(a,s+Go(Y-Z,0));break t}m+=k}t.rect(a,s,X,Y);break;case Ro.Z:if(y){k=l[_++];if(m+k>c){M=(c-m)/k;t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}m+=k}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Ro,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),ta=Jo;function ea(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||at+s&&o>n+s||oe+h&&c>i+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>r+h&&u>a+h||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||c+ur&&(r+=aa);var p=Math.atan2(l,s);return p<0&&(p+=aa),p>=i&&p<=r||p+aa>=i&&p+aa<=r}function la(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var ua=ta.CMD,ca=2*Math.PI,ha=1e-4;function pa(t,e){return Math.abs(t-e)e&&u>i&&u>o&&u>s||u1&&ga(),f=ve(e,i,o,s,da[0]),p>1&&(d=ve(e,i,o,s,da[1]))),2===p?ve&&s>i&&s>o||s=0&&u<=1){for(var c=0,h=Se(e,i,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);fa[0]=-l,fa[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=ca-1e-4){i=0,r=ca;var c=o?1:-1;return a>=fa[0]+t&&a<=fa[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=ca,r+=ca);for(var p=0,f=0;f<2;f++){var d=fa[f];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;g<0&&(g=ca+g),(g>=i&&g<=r||g+ca>=i&&g+ca<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function _a(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,p=0,f=0,d=0;d1&&(n||(u+=la(c,h,p,f,i,r))),v&&(c=s[d],h=s[d+1],p=c,f=h),g){case ua.M:p=s[d++],f=s[d++],c=p,h=f;break;case ua.L:if(n){if(ea(c,h,s[d],s[d+1],e,i,r))return!0}else u+=la(c,h,s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case ua.C:if(n){if(na(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=va(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case ua.Q:if(n){if(ia(c,h,s[d++],s[d++],s[d],s[d+1],e,i,r))return!0}else u+=ya(c,h,s[d++],s[d++],s[d],s[d+1],i,r)||0;c=s[d++],h=s[d++];break;case ua.A:var y=s[d++],m=s[d++],_=s[d++],x=s[d++],b=s[d++],w=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(b)*_+y,a=Math.sin(b)*x+m,v?(p=o,f=a):u+=la(c,h,o,a,i,r);var O=(i-y)*x/_+y;if(n){if(sa(y,m,x,b,b+w,S,e,O,r))return!0}else u+=ma(y,m,x,b,b+w,S,O,r);c=Math.cos(b+w)*_+y,h=Math.sin(b+w)*x+m;break;case ua.R:p=c=s[d++],f=h=s[d++];var T=s[d++],k=s[d++];if(o=p+T,a=f+k,n){if(ea(p,f,o,f,e,i,r)||ea(o,f,o,a,e,i,r)||ea(o,a,p,a,e,i,r)||ea(p,a,p,f,e,i,r))return!0}else u+=la(o,f,o,a,i,r),u+=la(p,a,p,f,i,r);break;case ua.Z:if(n){if(ea(c,h,p,f,e,i,r))return!0}else u+=la(c,h,p,f,i,r);c=p,h=f;break}}return n||pa(h,f)||(u+=la(c,h,p,f,i,r)||0),0!==u}function xa(t,e,n){return _a(t,0,!1,e,n)}function ba(t,e,n,i){return _a(t,e,!0,n,i)}var wa=Object(u["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ho),Sa={style:Object(u["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},po.style)},Oa=Wn.concat(["invisible","culling","z","z2","zlevel","parent"]),Ta=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Pn:e>.2?Rn:Ln}if(t)return Ln}return Pn},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(u["A"])(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Object(Le["b"])(t,0)0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Zt)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ba(o,a/s,t,e)))return!0}if(this.hasFill())return xa(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Zt,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(u["m"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Zt)},e.prototype.createStyle=function(t){return Object(u["g"])(wa,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(u["m"])({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=Object(u["m"])({},i.shape),Object(u["m"])(s,n.shape)):(s=Object(u["m"])({},r?this.shape:i.shape),Object(u["m"])(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=Object(u["m"])({},this.shape);for(var c={},h=Object(u["D"])(s),p=0;p0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(u["g"])(Ma,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=$n(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);Ca.prototype.type="tspan";var Ia=Ca,Da=Object(u["i"])({x:0,y:0},ho),ja={style:Object(u["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},po.style)};function Aa(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.createStyle=function(t){return Object(u["g"])(Da,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=Aa(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[r]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ja},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ot(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);Pa.prototype.type="image";var La=Pa;function Ra(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),i+r>c&&(a=i+r,i*=c/a,r*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var za=Math.round;function Na(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(za(2*i)===za(2*r)&&(t.x1=t.x2=Ea(i,s,!0)),za(2*o)===za(2*a)&&(t.y1=t.y2=Ea(o,s,!0)),t):t}}function Ba(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Ea(i,s,!0),t.y=Ea(r,s,!0),t.width=Math.max(Ea(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ea(r+a,s,!1)-t.y,0===a?0:1),t):t}}function Ea(t,e,n){if(!e)return t;var i=za(2*t);return(i+za(e))%2===0?i/2:(i+(n?1:-1))/2}var Fa=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),Ha={},Va=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultShape=function(){return new Fa},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Ba(Ha,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?Ra(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ka);Va.prototype.type="rect";var Ga=Va,Wa={fill:"#000"},Ua=2,qa={style:Object(u["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},po.style)},Xa=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Wa,n.attr(e),n}return s(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,k=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=r.calculatedLineHeight,C=0;C=0&&(C=x[M],"right"===C.align))this._placeToken(C,t,w,g,k,"right",y),S-=C.width,k-=C.width,M--;T+=(i-(T-d)-(v-k)-S)/2;while(O<=M)C=x[O],this._placeToken(C,t,w,g,T+C.width/2,"center",y),T+=C.width,O++;g+=w}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,c=i+n/2;"top"===l?c=i+t.height/2:"bottom"===l&&(c=i+n-t.height/2);var h=!t.isLineHolder&&as(s);h&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,c-t.height/2,t.width,t.height);var p=!!s.backgroundColor,f=t.textPadding;f&&(r=rs(r,o,f),c-=t.height/2-f[0]-t.innerHeight/2);var d=this._getOrCreateChild(Ia),g=d.createStyle();d.useStyle(g);var v=this._defaultStyle,y=!1,m=0,_=is("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,v.fill)),x=ns("stroke"in s?s.stroke:"stroke"in e?e.stroke:p||a||v.autoStroke&&!y?null:(m=Ua,v.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;g.text=t.text,g.x=r,g.y=c,b&&(g.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,g.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",g.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,g.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),g.textAlign=o,g.textBaseline="middle",g.font=t.font||Yn["a"],g.opacity=Object(u["N"])(s.opacity,e.opacity,1),$a(g,s),x&&(g.lineWidth=Object(u["N"])(s.lineWidth,e.lineWidth,m),g.lineDash=Object(u["M"])(s.lineDash,e.lineDash),g.lineDashOffset=e.lineDashOffset||0,g.stroke=x),_&&(g.fill=_);var w=t.contentWidth,S=t.contentHeight;d.setBoundingRect(new Ot(Jn(g.x,w,g.textAlign),ti(g.y,S,g.textBaseline),w,S))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,c=t.borderWidth,h=t.borderColor,p=l&&l.image,f=l&&!p,d=t.borderRadius,g=this;if(f||t.lineHeight||c&&h){a=this._getOrCreateChild(Ga),a.useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=d,a.dirtyShape()}if(f){var y=a.style;y.fill=l||null,y.fillOpacity=Object(u["M"])(t.fillOpacity,1)}else if(p){s=this._getOrCreateChild(La),s.onload=function(){g.dirtyStyle()};var m=s.style;m.image=l.image,m.x=n,m.y=i,m.width=r,m.height=o}if(c&&h){y=a.style;y.lineWidth=c,y.stroke=h,y.strokeOpacity=Object(u["M"])(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(a||s).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Object(u["N"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Ja(t)&&(e=[t.fontStyle,t.fontWeight,Qa(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(u["Q"])(e)||t.textFont||t.font},e}(xo),Ya={left:!0,right:1,center:1},Za={top:1,bottom:1,middle:1},Ka=["fontStyle","fontWeight","fontSize","fontFamily"];function Qa(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Yn["b"]+"px":t+"px":t}function $a(t,e){for(var n=0;n=0,o=!1;if(t instanceof ka){var a=ps(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(ks(s)||ks(l)){i=i||{};var c=i.style||{};"inherit"===c.fill?(o=!0,i=Object(u["m"])({},i),c=Object(u["m"])({},c),c.fill=s):!ks(c.fill)&&ks(s)?(o=!0,i=Object(u["m"])({},i),c=Object(u["m"])({},c),c.fill=Object(Le["a"])(s)):!ks(c.stroke)&&ks(l)&&(o||(i=Object(u["m"])({},i),c=Object(u["m"])({},c)),c.stroke=Object(Le["a"])(l)),i.style=c}}if(i&&null==i.z2){o||(i=Object(u["m"])({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:_s)}return i}function Bs(t,e,n){if(n&&null==n.z2){n=Object(u["m"])({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:xs)}return n}function Es(t,e,n){var i=Object(u["q"])(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:zs(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(u["m"])({},n),a=Object(u["m"])({opacity:i?r:.1*o.opacity},a),n.style=a),n}function Fs(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return Ns(this,t,e,n);if("blur"===t)return Es(this,t,n);if("select"===t)return Bs(this,t,n)}return n}function Hs(t){t.stateProxy=Fs;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Fs),n&&(n.stateProxy=Fs)}function Vs(t,e){!Ks(t,e)&&!t.__highByOuter&&Rs(t,Cs)}function Gs(t,e){!Ks(t,e)&&!t.__highByOuter&&Rs(t,Is)}function Ws(t,e){t.__highByOuter|=1<<(e||0),Rs(t,Cs)}function Us(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Rs(t,Is)}function qs(t){Rs(t,Ds)}function Xs(t){Rs(t,js)}function Ys(t){Rs(t,As)}function Zs(t){Rs(t,Ps)}function Ks(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Qs(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=fs(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){js(t)})),a&&n.push(r)),o.isBlured=!1})),Object(u["k"])(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function $s(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function sl(t,e,n){dl(t,!0),Rs(t,Hs),cl(t,e,n)}function ll(t){dl(t,!1)}function ul(t,e,n,i){i?ll(t):sl(t,e,n)}function cl(t,e,n){var i=ls(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var hl=["emphasis","blur","select"],pl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fl(t,e,n,i){n=n||"itemStyle";for(var r=0;r0){var p=h.duration,f=h.delay,d=h.easing,g={duration:p,delay:f||0,easing:d,done:o,force:!!o||!!a,setToFinal:!c,scope:t,during:a};l?e.animateFrom(n,g):e.animateTo(n,g)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Sl(t,e,n,i,r,o){wl("update",t,e,n,i,r,o)}function Ol(t,e,n,i,r,o){wl("enter",t,e,n,i,r,o)}function Tl(t){if(!t.__zr)return!0;for(var e=0;e=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,i,r){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};u["k"](t,(function(t){l[t]=!0}));while(s.length){var c=s.pop(),h=a[c],p=!!l[c];p&&(i.call(r,c,h.originalDeps.slice()),delete l[c]),u["k"](h.successor,p?d:f)}u["k"](l,(function(){var t="";throw new Error(t)}))}function f(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function d(t){l[t]=!0,f(t)}}}function lu(t,e){return u["G"](u["G"]({},t,!0),e,!0)}var uu={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},cu={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},hu="ZH",pu="EN",fu=pu,du={},gu={},vu=l["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||fu).toUpperCase();return t.indexOf(hu)>-1?hu:fu}():fu;function yu(t,e){t=t.toUpperCase(),gu[t]=new iu(e),du[t]=e}function mu(t){if(Object(u["A"])(t)){var e=du[t.toUpperCase()]||{};return t===hu||t===pu?Object(u["d"])(e):Object(u["G"])(Object(u["d"])(e),Object(u["d"])(du[fu]),!1)}return Object(u["G"])(Object(u["d"])(t),Object(u["d"])(du[fu]),!1)}function _u(t){return gu[t]}function xu(){return gu[fu]}yu(pu,uu),yu(hu,cu);var bu=1e3,wu=60*bu,Su=60*wu,Ou=24*Su,Tu=365*Ou,ku={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Mu="{yyyy}-{MM}-{dd}",Cu={year:"{yyyy}",month:"{yyyy}-{MM}",day:Mu,hour:Mu+" "+ku.hour,minute:Mu+" "+ku.minute,second:Mu+" "+ku.second,millisecond:ku.none},Iu=["year","month","day","hour","minute","second","millisecond"],Du=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ju(t,e){return t+="","0000".substr(0,e-t.length)+t}function Au(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Pu(t){return t===Au(t)}function Lu(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ru(t,e,n,i){var r=Hi(t),o=r[Eu(n)](),a=r[Fu(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Hu(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[Vu(n)](),h=(c-1)%12+1,p=r[Gu(n)](),f=r[Wu(n)](),d=r[Uu(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),y=i instanceof iu?i:_u(i||vu)||xu(),m=y.getModel("time"),_=m.get("month"),x=m.get("monthAbbr"),b=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,ju(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,ju(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ju(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ju(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ju(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ju(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ju(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,ju(d,3)).replace(/{S}/g,d+"")}function zu(t,e,n,i,r){var o=null;if(u["A"](n))o=n;else if(u["v"](n))o=n(t.value,e,{level:t.level});else{var a=u["m"]({},ku);if(t.level>0)for(var s=0;s=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(u["s"](o)){var p=null==t.level?0:t.level>=0?t.level:o.length+t.level;p=Math.min(p,o.length-1),o=o[p]}}return Ru(new Date(t.value),o,r,i)}function Nu(t,e){var n=Hi(t),i=n[Fu(e)]()+1,r=n[Hu(e)](),o=n[Vu(e)](),a=n[Gu(e)](),s=n[Wu(e)](),l=n[Uu(e)](),u=0===l,c=u&&0===s,h=c&&0===a,p=h&&0===o,f=p&&1===r,d=f&&1===i;return d?"year":f?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Bu(t,e,n){var i=u["y"](t)?Hi(t):t;switch(e=e||Nu(t,n),e){case"year":return i[Eu(n)]();case"half-year":return i[Fu(n)]()>=6?1:0;case"quarter":return Math.floor((i[Fu(n)]()+1)/4);case"month":return i[Fu(n)]();case"day":return i[Hu(n)]();case"half-day":return i[Vu(n)]()/24;case"hour":return i[Vu(n)]();case"minute":return i[Gu(n)]();case"second":return i[Wu(n)]();case"millisecond":return i[Uu(n)]()}}function Eu(t){return t?"getUTCFullYear":"getFullYear"}function Fu(t){return t?"getUTCMonth":"getMonth"}function Hu(t){return t?"getUTCDate":"getDate"}function Vu(t){return t?"getUTCHours":"getHours"}function Gu(t){return t?"getUTCMinutes":"getMinutes"}function Wu(t){return t?"getUTCSeconds":"getSeconds"}function Uu(t){return t?"getUTCMilliseconds":"getMilliseconds"}function qu(t){return t?"setUTCFullYear":"setFullYear"}function Xu(t){return t?"setUTCMonth":"setMonth"}function Yu(t){return t?"setUTCDate":"setDate"}function Zu(t){return t?"setUTCHours":"setHours"}function Ku(t){return t?"setUTCMinutes":"setMinutes"}function Qu(t){return t?"setUTCSeconds":"setSeconds"}function $u(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Ju(t){if(!qi(t))return u["A"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function tc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var ec=u["J"];function nc(t,e,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(t){return t&&u["Q"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?Hi(t):t;if(!isNaN(+l))return Ru(l,i,n);if(s)return"-"}if("ordinal"===e)return u["B"](t)?r(t):u["y"](t)&&o(t)?t+"":"-";var c=Ui(t);return o(c)?Ju(c):u["B"](t)?r(t):"boolean"===typeof t?t+"":"-"}var ic=["a","b","c","d","e","f","g"],rc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function oc(t,e,n){u["s"](e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function sc(t,e){return e=e||"transparent",u["A"](t)?t:u["z"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function lc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var uc=u["k"],cc=["left","right","top","bottom","width","height"],hc=[["width","left","right"],["height","top","bottom"]];function pc(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,p=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect();if("horizontal"===t){var g=p.width+(d?-d.x+p.x:0);c=o+g,c>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(d?-d.y+p.y:0);h=a+v,h>r||l.newline?(o+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var fc=pc;u["h"](pc,"vertical"),u["h"](pc,"horizontal");function dc(t,e,n){n=ec(n||0);var i=e.width,r=e.height,o=Ai(t.left,i),a=Ai(t.top,r),s=Ai(t.right,i),l=Ai(t.bottom,r),u=Ai(t.width,i),c=Ai(t.height,r),h=n[2]+n[0],p=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p;break}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var d=new Ot(o+n[3],a+n[0],u,c);return d.margin=n,d}function gc(t){var e=t.layoutMode||t.constructor.layoutMode;return u["z"](e)?e:e?{type:e}:null}function vc(t,e,n){var i=n&&n.ignoreSize;!u["s"](i)&&(i=[i,i]);var r=a(hc[0],0),o=a(hc[1],1);function a(n,r){var o={},a=0,u={},c=0,h=2;if(uc(n,(function(e){u[e]=t[e]})),uc(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var p=0;p=0;a--)o=u["G"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Sr(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(iu);function bc(t){var e=[];return u["k"](xc.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=u["F"](e,(function(t){return Ir(t).main})),"dataset"!==t&&u["q"](e,"dataset")<=0&&e.unshift("dataset"),e}Lr(xc,iu),Er(xc),au(xc),su(xc,bc);var wc=xc,Sc="";"undefined"!==typeof navigator&&(Sc=navigator.platform||"");var Oc="rgba(0, 0, 0, 0.2)",Tc={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Oc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Oc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Oc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Oc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Oc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Oc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Sc.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},kc=Object(u["f"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Mc="original",Cc="arrayRows",Ic="objectRows",Dc="keyedColumns",jc="typedArray",Ac="unknown",Pc="column",Lc="row",Rc={Must:1,Might:2,Not:3},zc=mr();function Nc(t){zc(t).datasetMap=Object(u["f"])()}function Bc(t,e,n){var i={},r=Ec(t);if(!r)return i;var o,a=e.sourceFormat,s=e.dimensionsDefine;a!==Ic&&a!==Dc||Object(u["k"])(s,(function(t,e){"name"===(Object(u["z"])(t)?t.name:t)&&(o=e)}));var l=function(){for(var t={},i={},r=[],l=0,u=Math.min(5,n);le)return t[i];return t[n-1]}function Yc(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?Xc(i,a):n;if(c=c||n,c&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function Zc(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Kc,Qc,$c;"undefined"!==typeof console&&console.warn&&console.log;function Jc(t){0}function th(t){throw new Error(t)}var eh="\0_ec_inner",nh=1;var ih=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new iu(i),this._locale=new iu(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=lh(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,lh(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):$c(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Object(u["k"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Object(u["f"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=Wc(this,e,$i(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=ir(a,o,l);gr(c,e,wc),n[e]=null,i.set(e,null),r.set(e,0);var h,p=[],f=[],d=0;Object(u["k"])(c,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=wc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=Object(u["m"])({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),Object(u["m"])(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(p.push(i.option),f.push(i),d++):(p.push(void 0),f.push(void 0))}),this),n[e]=p,i.set(e,f),r.set(e,d),"series"===e&&Kc(this)}Nc(this),Object(u["k"])(t,(function(t,e){null!=t&&(wc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(u["d"])(t):Object(u["G"])(n[e],t,!0))})),s&&s.each((function(t,e){wc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),wc.topologicalTravel(o,wc.getAllClassMainTypes(),l,this),this._seriesIndices||Kc(this)},e.prototype.getOption=function(){var t=Object(u["d"])(this.option);return Object(u["k"])(t,(function(e,n){if(wc.hasClass(n)){for(var i=$i(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!dr(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[eh],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e}function bh(t,e){return t.join(",")===e.join(",")}var wh=yh,Sh=u["k"],Oh=u["z"],Th=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function kh(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Th.length;n=0;g--){var v=t[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,h)),p>=0){var y=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&f>=0&&y>0||"samesign"===l&&f<=0&&y<0){f=Ni(f,y),d=y;break}}}return i[0]=f,i[1]=d,i}))}))}var Zh,Kh,Qh,$h,Jh,tp=function(){function t(t){this.data=t.data||(t.sourceFormat===Dc?{}:[]),this.sourceFormat=t.sourceFormat||Ac,this.seriesLayoutBy=t.seriesLayoutBy||Pc,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return wp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Tp(t){var e,n;return u["z"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function kp(t){return new Mp(t)}var Mp=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===l&&s===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=c;var p=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,d=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(o||f1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},jp=(function(){function t(t,e){if(!Object(u["y"])(e)){var n="";0,th(n)}this._opFn=Dp[t],this._rvalFloat=Ui(e)}t.prototype.evaluate=function(t){return Object(u["y"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Ui(t),this._rvalFloat)}}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(u["y"])(t)?t:Ui(t),i=Object(u["y"])(e)?e:Ui(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Object(u["A"])(t),s=Object(u["A"])(e);a&&(n=s?t:0),s&&(i=a?e:0)}return ni?-this._resultLT:0},t}());(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ui(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Ui(t)===this._rvalFloat)}return this._isEQ?e:!e}})();var Ap=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Ip(t,e)},t}();function Pp(t,e){var n=new Ap,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Pc&&th(a);var s=[],l={},c=t.dimensionsDefine;if(c)Object(u["k"])(c,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r="";Object(u["p"])(l,n)&&th(r),l[n]=i}}));else for(var h=0;h65535?Up:qp}function Qp(){return[1/0,-1/0]}function $p(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Jp(t,e,n,i,r){var o=Zp[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(u["F"])(o,(function(t){return t.property})),c=0;cy[1]&&(y[1]=v)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u=0&&s<0)&&(a=f,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=h&&m<=p||isNaN(m))&&(s[l++]=g),g++}d=!0}else if(2===r){v=f[i[0]];var _=f[i[1]],x=t[i[1]][0],b=t[i[1]][1];for(y=0;y=h&&m<=p||isNaN(m))&&(w>=x&&w<=b||isNaN(w))&&(s[l++]=g),g++}d=!0}}if(!d)if(1===r)for(y=0;y=h&&m<=p||isNaN(m))&&(s[l++]=S)}else for(y=0;yt[k][1])&&(O=!1)}O&&(s[l++]=e.getRawIndex(y))}return lv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),p=new(Kp(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));p[u++]=h;for(var f=1;fn&&(n=i,r=_))}k>0&&ka&&(d=a-u);for(var g=0;gf&&(f=y,p=u+g)}var m=this.getRawIndex(c),_=this.getRawIndex(p);cu-f&&(s=u-f,a.length=s);for(var d=0;dc[1]&&(c[1]=v),h[p++]=y}return r._count=p,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();rs&&(s=c)}return i=[a,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Ip(t[i],this._dimensions[i])}Gp={arrayRows:t,objectRows:function(t,e,n,i){return Ip(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Ip(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),ef=tf,nf=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(rf(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var c=i[0];c.prepareSource(),l=c.getSource(),a=l.data,s=l.sourceFormat,e=[c._getVersionSign()]}else a=o.get("data",!0),s=Object(u["C"])(a)?jc:Mc,e=[];var h=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},f=Object(u["M"])(h.seriesLayoutBy,p.seriesLayoutBy)||null,d=Object(u["M"])(h.sourceHeader,p.sourceHeader),g=Object(u["M"])(h.dimensions,p.dimensions),v=f!==p.seriesLayoutBy||!!d!==!!p.sourceHeader||g;t=v?[np(a,{seriesLayoutBy:f,sourceHeader:d,dimensions:g},s)]:[]}else{var y=n;if(r){var m=this._applyTransform(i);t=m.sourceList,e=m.upstreamSignList}else{var _=y.get("source",!0);t=[np(_,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==t.length&&of(o)}var a=[],s=[];return Object(u["k"])(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||of(n),a.push(e),s.push(t._getVersionSign())})),i?e=Fp(i,a,{datasetIndex:n.componentIndex}):null!=r&&(e=[rp(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||n>0&&!t.noHeader;return Object(u["k"])(t.blocks,(function(t){var n=df(t);n>=e&&(e=n+ +(i&&(!n||pf(t)&&!t.noHeader)))})),e}return 0}function gf(t,e,n,i){var r=e.noHeader,o=mf(df(e)),a=[],s=e.blocks||[];Object(u["b"])(!s||Object(u["s"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(u["p"])(c,l)){var h=new jp(c[l],null);s.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(u["k"])(s,(function(n,r){var s=e.valueFormatter,l=ff(n)(s?Object(u["m"])(Object(u["m"])({},t),{valueFormatter:s}):t,n,r>0?o.html:0,i);null!=l&&a.push(l)}));var p="richText"===t.renderMode?a.join(o.richText):_f(i,a.join(""),r?n:o.html);if(r)return p;var f=nc(e.header,"ordinal",t.useUTC),d=lf(i,t.renderMode).nameStyle,g=sf(i);return"richText"===t.renderMode?wf(t,f,d)+o.richText+p:_f(i,'
'+G(f)+"
"+p,n)}function vf(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,c=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=Object(u["s"])(t)?t:[t],Object(u["F"])(t,(function(t,e){return nc(t,Object(u["s"])(d)?d[e]:d,c)}))};if(!o||!a){var p=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),f=o?"":nc(l,"ordinal",c),d=e.valueType,g=a?[]:h(e.value,e.dataIndex),v=!s||!o,y=!s&&o,m=lf(i,r),_=m.nameStyle,x=m.valueStyle;return"richText"===r?(s?"":p)+(o?"":wf(t,f,_))+(a?"":Sf(t,g,v,y,x)):_f(i,(s?"":p)+(o?"":xf(f,!s,_))+(a?"":bf(g,v,y,x)),n)}}function yf(t,e,n,i,r,o){if(t){var a=ff(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function mf(t){return{html:uf[t],richText:cf[t]}}function _f(t,e,n){var i='
',r="margin: "+n+"px 0 0",o=sf(t);return'
'+e+i+"
"}function xf(t,e,n){var i=e?"margin-left:2px":"";return''+G(t)+""}function bf(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Object(u["s"])(t)?t:[t],''+Object(u["F"])(t,(function(t){return G(t)})).join("  ")+""}function wf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Sf(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(u["s"])(e)?e.join(" "):e,o)}function Of(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return sc(i)}function Tf(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var kf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Xi()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=ac({color:e,type:t,renderMode:n,markerId:i});return Object(u["A"])(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(u["s"])(e)?Object(u["k"])(e,(function(t){return Object(u["m"])(n,t)})):Object(u["m"])(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Mf(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),c=l.mapDimensionsAll("defaultedTooltip"),h=c.length,p=o.getRawValue(a),f=Object(u["s"])(p),d=Of(o,a);if(h>1||f&&!h){var g=Cf(p,o,a,c,d);e=g.inlineValues,n=g.inlineValueTypes,i=g.blocks,r=g.inlineValues[0]}else if(h){var v=l.getDimensionInfo(c[0]);r=e=wp(l,a,c[0]),n=v.type}else r=e=f?p[0]:p;var y=fr(o),m=y&&o.name||"",_=l.getName(a),x=s?m:_;return hf("section",{header:m,noHeader:s||!y,sortParam:r,blocks:[hf("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Object(u["Q"])(x),value:e,valueType:n,dataIndex:a})].concat(i||[])})}function Cf(t,e,n,i,r){var o=e.getData(),a=Object(u["K"])(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],c=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?c.push(hf("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?Object(u["k"])(i,(function(t){h(wp(o,n,t),t)})):Object(u["k"])(t,h),{inlineValues:s,inlineValueTypes:l,blocks:c}}var If=mr();function Df(t,e){return t.getName(e)||t.getId(e)}var jf="__universalTransitionEnabled",Af=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return s(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=kp({count:Rf,reset:zf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=If(this).sourceManager=new nf(this);i.prepareSource();var r=this.getInitialData(t,n);Bf(r,this),this.dataTask.context.data=r,If(this).dataBeforeProcessed=r,Pf(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=gc(this),i=n?yc(t):{},r=this.subType;wc.hasClass(r)&&(r+="Series"),u["G"](t,e.getTheme().get(this.subType)),u["G"](t,this.getDefaultOption()),Ji(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&vc(t,i,n)},e.prototype.mergeOption=function(t,e){t=u["G"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=gc(this);n&&vc(this.option,t,n);var i=If(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Bf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,If(this).dataBeforeProcessed=r,Pf(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!u["C"](t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=qc.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[Df(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[jf])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){u["z"](r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return wc.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(wc);function Pf(t){var e=t.name;fr(t)||(t.name=Lf(t)||e)}function Lf(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return u["k"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function Rf(t){return t.model.getRawData().count()}function zf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Nf}function Nf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Bf(t,e){u["k"](u["e"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,u["h"](Ef,e))}))}function Ef(t,e){var n=Ff(t);return n&&n.setOutputEnd((e||this).count()),e}function Ff(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}u["H"](Af,Op),u["H"](Af,qc),Lr(Af,wc);var Hf=Af,Vf=function(){function t(){this.group=new _i,this.uid=ou("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Ar(Vf),Er(Vf);var Gf=Vf;function Wf(){var t=mr();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Uf=ta.CMD,qf=[[],[],[]],Xf=Math.sqrt,Yf=Math.atan2;function Zf(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=Uf.M,h=Uf.C,p=Uf.L,f=Uf.R,d=Uf.A,g=Uf.Q;for(r=0,o=0;r1&&(a*=Kf(d),s*=Kf(d));var g=(r===o?-1:1)*Kf((a*a*(s*s)-a*a*(f*f)-s*s*(p*p))/(a*a*(f*f)+s*s*(p*p)))||0,v=g*a*f/s,y=g*-s*p/a,m=(t+n)/2+$f(h)*v-Qf(h)*y,_=(e+i)/2+Qf(h)*v+$f(h)*y,x=nd([1,0],[(p-v)/a,(f-y)/s]),b=[(p-v)/a,(f-y)/s],w=[(-1*p-v)/a,(-1*f-y)/s],S=nd(b,w);if(ed(b,w)<=-1&&(S=Jf),ed(b,w)>=1&&(S=0),S<0){var O=Math.round(S/Jf*1e6)/1e6;S=2*Jf+O%2*Jf}c.addData(u,m,_,a,s,x,S,h,o)}var rd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,od=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ad(t){var e=new ta;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=ta.CMD,l=t.match(rd);if(!l)return e;for(var u=0;uD*D+j*j&&(O=k,T=M),{cx:O,cy:T,x0:-c,y0:-h,x1:O*(r/b-1),y1:T*(r/b-1)}}function Ad(t){var e;if(Object(u["s"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Pd(t,e){var n,i=Md(e.r,0),r=Md(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,p=!!e.clockwise,f=Td(u-l),d=f>xd&&f%xd;if(d>Id&&(f=d),i>Id)if(f>xd-Id)t.moveTo(c+i*wd(l),h+i*bd(l)),t.arc(c,h,i,l,u,!p),r>Id&&(t.moveTo(c+r*wd(u),h+r*bd(u)),t.arc(c,h,r,u,l,p));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,O=void 0,T=void 0,k=void 0,M=void 0,C=void 0,I=void 0,D=void 0,j=i*wd(l),A=i*bd(l),P=r*wd(u),L=r*bd(u),R=f>Id;if(R){var z=e.cornerRadius;z&&(n=Ad(z),g=n[0],v=n[1],y=n[2],m=n[3]);var N=Td(i-r)/2;if(_=Cd(N,y),x=Cd(N,m),b=Cd(N,g),w=Cd(N,v),T=S=Md(_,x),k=O=Md(b,w),(S>Id||O>Id)&&(M=i*wd(u),C=i*bd(u),I=r*wd(l),D=r*bd(l),f<_d)){var B=Dd(j,A,I,D,M,C,P,L);if(B){var E=j-B[0],F=A-B[1],H=M-B[0],V=C-B[1],G=1/bd(Sd((E*H+F*V)/(kd(E*E+F*F)*kd(H*H+V*V)))/2),W=kd(B[0]*B[0]+B[1]*B[1]);T=Cd(S,(i-W)/(G+1)),k=Cd(O,(r-W)/(G-1))}}}if(R)if(T>Id){var U=Cd(y,T),q=Cd(m,T),X=jd(I,D,j,A,i,U,p),Y=jd(M,C,P,L,i,q,p);t.moveTo(c+X.cx+X.x0,h+X.cy+X.y0),T0&&t.arc(c+X.cx,h+X.cy,U,Od(X.y0,X.x0),Od(X.y1,X.x1),!p),t.arc(c,h,i,Od(X.cy+X.y1,X.cx+X.x1),Od(Y.cy+Y.y1,Y.cx+Y.x1),!p),q>0&&t.arc(c+Y.cx,h+Y.cy,q,Od(Y.y1,Y.x1),Od(Y.y0,Y.x0),!p))}else t.moveTo(c+j,h+A),t.arc(c,h,i,l,u,!p);else t.moveTo(c+j,h+A);if(r>Id&&R)if(k>Id){U=Cd(g,k),q=Cd(v,k),X=jd(P,L,M,C,r,-q,p),Y=jd(j,A,I,D,r,-U,p);t.lineTo(c+X.cx+X.x0,h+X.cy+X.y0),k0&&t.arc(c+X.cx,h+X.cy,q,Od(X.y0,X.x0),Od(X.y1,X.x1),!p),t.arc(c,h,r,Od(X.cy+X.y1,X.cx+X.x1),Od(Y.cy+Y.y1,Y.cx+Y.x1),p),U>0&&t.arc(c+Y.cx,h+Y.cy,U,Od(Y.y1,Y.x1),Od(Y.y0,Y.x0),!p))}else t.lineTo(c+P,h+L),t.arc(c,h,r,u,l,p);else t.lineTo(c+P,h+L)}else t.moveTo(c,h);t.closePath()}}}var Ld=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),Rd=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultShape=function(){return new Ld},e.prototype.buildPath=function(t,e){Pd(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ka);Rd.prototype.type="sector";var zd=Rd,Nd=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Bd=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.getDefaultShape=function(){return new Nd},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(ka);Bd.prototype.type="ring";var Ed=Bd;function Fd(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],d=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var g=0,y=t.length;g=2){if(i){var o=Fd(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;sgg[1]){if(a=!1,r)return a;var u=Math.abs(gg[0]-dg[1]),c=Math.abs(dg[0]-gg[1]);Math.min(u,c)>i.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Vg(t){return!t.isGroup}function Gg(t){return null!=t.shape}function Wg(t,e,n){if(t&&e){var i=r(t);e.traverse((function(t){if(Vg(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Sl(t,r,n,ls(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){Vg(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Gg(t)&&(e.shape=Object(u["m"])({},t.shape)),e}}function Ug(t,e){return Object(u["F"])(t,(function(t){var n=t[0];n=Sg(n,e.x),n=Og(n,e.x+e.width);var i=t[1];return i=Sg(i,e.y),i=Og(i,e.y+e.height),[n,i]}))}function qg(t,e){var n=Sg(t.x,e.x),i=Og(t.x+t.width,e.x+e.width),r=Sg(t.y,e.y),o=Og(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Xg(t,e,n){var i=Object(u["m"])({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(u["i"])(r,n),new La(i)):jg(t.replace("path://",""),i,n,"center")}function Yg(t,e,n,i,r){for(var o=0,a=r[r.length-1];o1)return!1;var v=Kg(f,d,c,h)/p;return!(v<0||v>1)}function Kg(t,e,n,i){return t*i-n*e}function Qg(t){return t<=1e-6&&t>=-1e-6}function $g(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(u["A"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(u["k"])(Object(u["D"])(l),(function(t){Object(u["p"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var c=ls(t.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:i,option:Object(u["i"])({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function Jg(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function tv(t,e){if(t)if(Object(u["s"])(t))for(var n=0;n=0?h():c=setTimeout(h,-r),l=i};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function dv(t,e,n,i){var r=t[e];if(r){var o=r[cv]||r,a=r[pv],s=r[hv];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=fv(o,n,"debounce"===i),r[cv]=o,r[pv]=i,r[hv]=n}return r}}function gv(t,e){var n=t[e];n&&n[cv]&&(n.clear&&n.clear(),t[e]=n[cv])}var vv=mr(),yv={itemStyle:Fr(Jl,!0),lineStyle:Fr(Kl,!0)},mv={lineStyle:"stroke",itemStyle:"fill"};function _v(t,e){var n=t.visualStyleMapper||yv[e];return n||(console.warn("Unknown style type '"+e+"'."),yv.itemStyle)}function xv(t,e){var n=t.visualDrawType||mv[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var bv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=_v(t,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=xv(t,i),c=a[l],h=Object(u["v"])(c)?c:null,p="auto"===a.fill||"auto"===a.stroke;if(!a[l]||h||p){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(u["v"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(u["v"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(u["m"])({},a);r[l]=h(i),e.setItemVisual(n,"style",r)}}}},wv=new iu,Sv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=_v(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){wv.option=n[i];var a=r(wv),s=t.ensureUniqueItemVisual(e,"style");Object(u["m"])(s,a),wv.option.decal&&(t.setItemVisual(e,"decal",wv.option.decal),wv.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Ov={performRawSeries:!0,overallReset:function(t){var e=Object(u["f"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),vv(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=vv(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=xv(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},Tv=Math.PI;function kv(t,e){e=e||{},u["i"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new _i,i=new Ga({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new ss({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ga({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(r=new og({shape:{startAngle:-Tv/2,endAngle:-Tv/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*Tv/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Tv/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Mv=function(){function t(t,e,n,i){this._stageTaskMap=Object(u["f"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(u["f"])();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(u["k"])(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";Object(u["b"])(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(u["k"])(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,i.block);p.each((function(t){t.perform(f)})),c.perform(f)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(u["f"])(),s=t.seriesType,l=t.getTargetSeries;function c(e){var s=e.uid,l=a.set(s,o&&o.get(s)||kp({plan:Av,reset:Pv,count:zv}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||kp({reset:Cv});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Object(u["f"])(),l=t.seriesType,c=t.getTargetSeries,h=!0,p=!1,f="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(p=!0,kp({reset:Iv,onDirty:jv})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}Object(u["b"])(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,d):c?c(n,i).each(d):(h=!1,Object(u["k"])(n.getSeries(),d)),p&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(u["v"])(t)&&(t={overallReset:t,seriesType:Nv(t)}),t.uid=ou("stageHandler"),e&&(t.visualType=e),t},t}();function Cv(t){t.overallReset(t.ecModel,t.api,t.payload)}function Iv(t){return t.overallProgress&&Dv}function Dv(){this.agent.dirty(),this.getDownstream().dirty()}function jv(){this.agent&&this.agent.dirty()}function Av(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Pv(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=$i(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(u["F"])(e,(function(t,e){return Rv(e)})):Lv}var Lv=Rv(0);function Rv(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),$v=["symbol","symbolSize","symbolRotate","symbolOffset"],Jv=$v.concat(["symbolKeepAspect"]),ty={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<$v.length;a++){var s=$v[a],l=t.get(s);Object(u["v"])(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(Object(u["m"])({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=Object(u["D"])(r);return{dataEach:o?h:null}}}function h(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a=0&&Sy(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function ky(t,e,n){for(var i="radial"===e.type?Ty(t,e,n):Oy(t,e,n),r=e.colorStops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(u["y"])(t)?[t]:Object(u["s"])(t)?t:null:null}function jy(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Dy(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=Object(u["F"])(n,(function(t){return t/r})),i/=r)}return[n,i]}var Ay=new ta(!0);function Py(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Ly(t){return"string"===typeof t&&"none"!==t}function Ry(t){var e=t.fill;return null!=e&&"none"!==e}function zy(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Ny(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function By(t,e,n){var i=qr(e.image,e.__image,n);if(Yr(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*u["a"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function Ey(t,e,n,i){var r,o=Py(n),a=Ry(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Ay,h=e.__dirty;if(!i){var p=n.fill,f=n.stroke,d=a&&!!p.colorStops,g=o&&!!f.colorStops,v=a&&!!p.image,y=o&&!!f.image,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0;(d||g)&&(w=e.getBoundingRect()),d&&(m=h?ky(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=h?ky(t,f,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(x=h||!e.__canvasFillPattern?By(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=x),y&&(b=h||!e.__canvasStrokePattern?By(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),d?t.fillStyle=m:v&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=_:y&&(b?t.strokeStyle=b:o=!1)}var S,O,T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(r=jy(e),S=r[0],O=r[1]);var k=!0;(u||h&Zt)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),k=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),k&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=O),i||(n.strokeFirst?(o&&Ny(t,n),a&&zy(t,n)):(a&&zy(t,n),o&&Ny(t,n))),S&&t.setLineDash([])}function Fy(t,e,n){var i=e.__image=qr(n.image,e.__image,e,e.onload);if(i&&Yr(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,p=s-c;t.drawImage(i,u,c,h,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function Hy(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||Yn["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(i=jy(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Py(n)&&t.strokeText(r,n.x,n.y),Ry(n)&&t.fillText(r,n.x,n.y)):(Ry(n)&&t.fillText(r,n.x,n.y),Py(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}var Vy=["shadowBlur","shadowOffsetX","shadowOffsetY"],Gy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Wy(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){em(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ho.opacity:a}(i||e.blend!==n.blend)&&(o||(em(t,r),o=!0),t.globalCompositeOperation=e.blend||ho.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Bm])if(this._disposed)y_(this.id);else{var i,r,o;if(Object(u["z"])(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Bm]=!0,!this._model||e){var a=new wh(this._api),s=this._theme,l=this._model=new uh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},b_);var c={seriesTransition:o,optionChanged:!0};if(n)this[Em]={silent:i,updateParams:c},this[Bm]=!1,this.getZr().wakeUp();else{try{Zm(this),$m.update.call(this,null,c)}catch(h){throw this[Em]=null,this[Bm]=!1,h}this._ssr||this._zr.flush(),this[Em]=null,this[Bm]=!1,n_.call(this,i),i_.call(this,i)}}},e.prototype.setTheme=function(){Jc("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||l["a"].hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(l["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(u["k"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;Object(u["k"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(u["k"])(i,(function(t){t.group.ignore=!1})),o}y_(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(k_[n]){var a=o,s=o,l=-o,c=-o,h=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();Object(u["k"])(T_,(function(o,p){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(u["d"])(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),c=r(d.bottom,c),h.push({dom:f,left:d.left,top:d.top})}})),a*=p,s*=p,l*=p,c*=p;var f=l-a,d=c-s,g=Yn["c"].createCanvas(),v=Ti(g,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:d}),e){var y="";return Object(u["k"])(h,(function(t){var e=t.left-a,n=t.top-s;y+=''+t.dom+""})),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new Ga({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedBackgroundColor}})),Object(u["k"])(h,(function(t){var e=new La({style:{x:t.left*p-a,y:t.top*p-s,image:t.dom}});v.add(e)})),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}y_(this.id)},e.prototype.convertToPixel=function(t,e){return Jm(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Jm(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=xr(i,t);return Object(u["k"])(r,(function(t,i){i.indexOf("Models")>=0&&Object(u["k"])(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}y_(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=xr(n,t,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?ny(o,a,e):iy(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(u["k"])(v_,(function(e){var n=function(n){var i,r=t.getModel(),o=n.target,a="globalout"===e;if(a?i={}:o&&sy(o,(function(t){var e=ls(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=Object(u["m"])({},e.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var c=s&&null!=l&&r.getComponent(s,l),h=c&&t["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:c,view:h},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(u["k"])(__,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(u["k"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),ay(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?y_(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)y_(this.id);else{this._disposed=!0;var t=this.getDom();t&&Or(this.getDom(),M_,"");var e=this,n=e._api,i=e._model;Object(u["k"])(e._componentsViews,(function(t){t.dispose(i,n)})),Object(u["k"])(e._chartsViews,(function(t){t.dispose(i,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete T_[e.id]}},e.prototype.resize=function(t){if(!this[Bm])if(this._disposed)y_(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Em]&&(null==i&&(i=this[Em].silent),n=!0,this[Em]=null),this[Bm]=!0;try{n&&Zm(this),$m.update.call(this,{type:"resize",animation:Object(u["m"])({duration:0},t&&t.animation)})}catch(r){throw this[Bm]=!1,r}this[Bm]=!1,n_.call(this,i),i_.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)y_(this.id);else if(Object(u["z"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),O_[t]){var n=O_[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?y_(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(u["m"])({},t);return e.type=__[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)y_(this.id);else if(Object(u["z"])(e)||(e={silent:!!e}),m_[t.type]&&this._model)if(this[Bm])this._pendingActions.push(t);else{var n=e.silent;e_.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&l["a"].browser.weChat&&this._throttledZrFlush(),n_.call(this,n),i_.call(this,n)}},e.prototype.updateLabelLayout=function(){ym.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)y_(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,o,a=e.concat(n);qt(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(u["k"])(a,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(t){for(var e=[],n=t.currentStates,i=0;ie.get("hoverLayerThreshold")&&!l["a"].node&&!l["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function r(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,i,-1/0),!0}))}}function a(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(Tl(t))return;if(t instanceof ka&&_l(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}Zm=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Km(t,!0),Km(t,!1),e.plan()},Km=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l=0)){B_.push(n);var o=Vv.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function F_(t,e){O_[t]=e}function H_(t,e,n){var i=xm("registerMap");i&&i(t,e,n)}var V_=Ep;N_(Im,bv),N_(Am,Sv),N_(Am,Ov),N_(Im,ty),N_(Am,ey),N_(zm,gm),I_(qh),D_(Sm,Xh),F_("default",kv),L_({type:bs,event:bs,update:bs},u["I"]),L_({type:ws,event:ws,update:ws},u["I"]),L_({type:Ss,event:Ss,update:Ss},u["I"]),L_({type:Os,event:Os,update:Os},u["I"]),L_({type:Ts,event:Ts,update:Ts},u["I"]),C_("light",Wv),C_("dark",Kv);var G_=[],W_={registerPreprocessor:I_,registerProcessor:D_,registerPostInit:j_,registerPostUpdate:A_,registerUpdateLifecycle:P_,registerAction:L_,registerCoordinateSystem:R_,registerLayout:z_,registerVisual:N_,registerTransform:V_,registerLoading:F_,registerMap:H_,registerImpl:_m,PRIORITY:Nm,ComponentModel:wc,ComponentView:Gf,SeriesModel:Hf,ChartView:uv,registerComponentModel:function(t){wc.registerClass(t)},registerComponentView:function(t){Gf.registerClass(t)},registerSeriesModel:function(t){Hf.registerClass(t)},registerChartView:function(t){uv.registerClass(t)},registerSubTypeDefaulter:function(t,e){wc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ki(t,e)}};function U_(t){Object(u["s"])(t)?Object(u["k"])(t,(function(t){U_(t)})):Object(u["q"])(G_,t)>=0||(G_.push(t),Object(u["v"])(t)&&(t={install:t}),t.install(W_))}function q_(t,e,n){var i=Yn["c"].createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var X_=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||jn,"string"===typeof e?r=q_(e,n,i):u["z"](e)&&(r=e,e=r.id),o.id=e,o.dom=r;var a=r.style;return a&&(u["j"](r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return s(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=q_("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Ot(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Ot(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&u.restore()};if(c)if(0===c.length)s=l.__endIndex;else for(var x=d.dpr,b=0;b0&&t>i[0]){for(s=0;st)break;a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?Q_:0),this._needsManuallyCompositing),c.__builtin__||u["E"]("ZLevel "+l+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,e(o),a=c),i.__dirty&Xt&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,u["k"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?u["G"](n[t],e,!0):n[t]=e;for(var i=0;ii?(o=I+w*i/2,c=o):(o=I+O,c=r-O),e.setItemLayout(n,{angle:i,startAngle:o,endAngle:c,clockwise:m,cx:a,cy:s,r0:u,r:_?ji(t,b,[u,l]):l}),I=r}})),M0){e=e/180*Math.PI,px.fromArray(t[0]),fx.fromArray(t[1]),dx.fromArray(t[2]),dt.sub(gx,px,fx),dt.sub(vx,dx,fx);var n=gx.len(),i=vx.len();if(!(n<.001||i<.001)){gx.scale(1/n),vx.scale(1/i);var r=gx.dot(vx),o=Math.cos(e);if(o1&&dt.copy(mx,dx),mx.toArray(t[1])}}}}function xx(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,px.fromArray(t[0]),fx.fromArray(t[1]),dx.fromArray(t[2]),dt.sub(gx,fx,px),dt.sub(vx,dx,fx);var i=gx.len(),r=vx.len();if(!(i<.001||r<.001)){gx.scale(1/i),vx.scale(1/r);var o=gx.dot(e),a=Math.cos(n);if(o=l)dt.copy(mx,dx);else{mx.scaleAndAdd(vx,s/Math.tan(Math.PI/2-c));var h=dx.x!==fx.x?(mx.x-fx.x)/(dx.x-fx.x):(mx.y-fx.y)/(dx.y-fx.y);if(isNaN(h))return;h<0?dt.copy(mx,fx):h>1&&dt.copy(mx,dx)}mx.toArray(t[1])}}}}function bx(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function wx(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=_(i[0],i[1]),o=_(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=w([],i[1],i[0],a/r),l=w([],i[1],i[2],a/o),u=w([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c0&&o&&w(-h/a,0,a);var v,y,m=t[0],_=t[a-1];return x(),v<0&&S(-v,.8),y<0&&S(y,.8),x(),b(v,y,1),b(y,v,-1),x(),v<0&&O(-v),y<0&&O(y),u}function x(){v=m.rect[e]-i,y=r-_.rect[e]-_.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--){p=o[l-1]*h;w(-p,l,a)}}}function O(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),t-=n,t<=0)return}}function Mx(t,e,n,i){return kx(t,"y","height",e,n,i)}function Cx(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Ot(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;rn?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,p=i+l.len,d=Math.abs(h)t.unconstrainedWidth?null:f:null;i.setStyle("width",d)}var g=i.getBoundingRect();o.width=g.width;var v=(i.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function Px(t){return"center"===t.position}function Lx(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*Ix,s=i.getLayout("viewRect"),l=i.getLayout("r"),c=s.width,h=s.x,p=s.y,f=s.height;function d(t){t.ignore=!0}function g(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var s=i.getItemGraphicEl(t),p=s.shape,f=s.getTextContent(),v=s.getTextGuideLine(),y=i.getItemModel(t),m=y.getModel("label"),_=m.get("position")||y.get(["emphasis","label","position"]),x=m.get("distanceToLabelLine"),b=m.get("alignTo"),w=Ai(m.get("edgeDistance"),c),S=m.get("bleedMargin"),O=y.getModel("labelLine"),T=O.get("length");T=Ai(T,c);var k=O.get("length2");if(k=Ai(k,c),Math.abs(p.endAngle-p.startAngle)0?"right":"left":A>0?"left":"right"}var H=Math.PI,V=0,G=m.get("rotate");if(Object(u["y"])(G))V=G*(H/180);else if("center"===_)V=0;else if("radial"===G||!0===G){var W=A<0?-j+H:-j;V=W}else if("tangential"===G&&"outside"!==_&&"outer"!==_){var U=Math.atan2(A,P);U<0&&(U=2*H+U);var q=P>0;q&&(U=H+U),V=U-H}if(o=!!V,f.x=M,f.y=C,f.rotation=V,f.setStyle({verticalAlign:"middle"}),L){f.setStyle({align:D});var X=f.states.select;X&&(X.x+=f.x,X.y+=f.y)}else{var Y=f.getBoundingRect().clone();Y.applyTransform(f.getComputedTransform());var Z=(f.style.margin||0)+2.1;Y.y-=Z/2,Y.height+=Z,r.push({label:f,labelLine:v,position:_,len:T,len2:k,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new dt(A,P),linePoints:I,textAlign:D,labelDistance:x,labelAlignTo:b,edgeDistance:w,bleedMargin:S,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&jx(r,e,n,l,c,f,h,p);for(var v=0;v0){for(var l=o.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c=i.r0}},e.type="pie",e}(uv),Bx=Nx,Ex=function(){function t(t){this.otherDims={},null!=t&&u["m"](this,t)}return t}(),Fx=Ex,Hx=mr(),Vx={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Gx=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=qx(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(u["M"])(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=cp(this.source),n=!Xx(t),i="",r=[],o=0,a=0;o30}function Yx(t,e){ep(t)||(t=ip(t)),e=e||{};var n=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Object(u["f"])(),o=[],a=Kx(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Xx(a),l=i===t.dimensionsDefine,c=l?qx(t):Ux(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var p=Object(u["f"])(h),f=new Xp(a),d=0;d0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function Kx(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(u["k"])(e,(function(t){var e;Object(u["z"])(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function Qx(t,e,n){if(n||e.hasKey(t)){var i=0;while(e.hasKey(t+i))i++;t+=i}return e.set(t,!0),t}function $x(t){return null==t?0:t.length||1}function Jx(t){return t}var tb=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||Jx,this._newKeyGetter=i||Jx,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var p=0;p1)for(var a=0;a=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===Mc;if(s&&!i.pure)for(var l=[],u=t;u0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),u["s"](r)?r=r.slice():fb(r)&&(r=u["m"]({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,fb(e)?u["m"](i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){fb(t)?u["m"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?u["m"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;us(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){u["k"](this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:db(this.dimensions,this._getDimInfo,this),this.hostModel)),cb(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];u["v"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(u["P"](arguments)))})},t.internalField=function(){ab=function(t){var e=t._invertedIndicesMap;u["k"](e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new gb(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),bb=xb;function wb(t,e,n){e=Object(u["s"])(e)&&{coordDimensions:e}||Object(u["m"])({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Yx(i,e).dimensions,o=new bb(r,t);return o.initData(i,n),o}var Sb=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),Ob=Sb,Tb=mr(),kb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ob(u["c"](this.getData,this),u["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return wb(this,{coordDimensions:["value"],encodeDefaulter:u["h"](Bc,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=Tb(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=zi(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Ji(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Hf),Mb=kb;function Cb(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(u["y"])(i)&&!isNaN(i)&&i<0)}))}}}function Ib(t){t.registerChartView(Bx),t.registerSeriesModel(Mb),ry("pie",t.registerAction),t.registerLayout(Object(u["h"])(lx,"pie")),t.registerProcessor(cx("pie")),t.registerProcessor(Cb("pie"))}var Db=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return s(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(wc),jb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return s(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=u["M"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new ss({style:Rl(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),h=t.get("subtext"),p=new ss({style:Rl(o,{text:h,fill:o.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);l.silent=!f&&!g,p.silent=!d&&!g,f&&l.on("click",(function(){lc(f,"_"+t.get("target"))})),d&&p.on("click",(function(){lc(d,"_"+t.get("subtarget"))})),ls(l).eventData=ls(p).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(p);var v=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=v.width,y.height=v.height;var m=dc(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var _={align:a,verticalAlign:s};l.setStyle(_),p.setStyle(_),v=i.getBoundingRect();var x=m.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new Ga({shape:{x:v.x-x[3],y:v.y-x[0],width:v.width+x[1]+x[3],height:v.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Gf);function Ab(t){t.registerComponentModel(Db),t.registerComponentView(jb)}function Pb(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Lb(n,t,e),n.seriesInvolved&&zb(n,t),n}function Lb(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Object(u["k"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Gb(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var c=n.model,h=c.getModel("tooltip",i);if(Object(u["k"])(n.getAxes(),Object(u["h"])(g,!1,null)),n.getTooltipAxes&&i&&h.get("show")){var p="axis"===h.get("trigger"),f="cross"===h.get(["axisPointer","type"]),d=n.getTooltipAxes(h.get(["axisPointer","axis"]));(p||f)&&Object(u["k"])(d.baseAxes,Object(u["h"])(g,!f||"cross",p)),f&&Object(u["k"])(d.otherAxes,Object(u["h"])(g,"cross",!1))}}function g(i,s,u){var c=u.model.getModel("axisPointer",r),p=c.get("show");if(p&&("auto"!==p||i||Vb(c))){null==s&&(s=c.get("triggerTooltip")),c=i?Rb(u,h,r,e,i,s):c;var f=c.get("snap"),d=c.get("triggerEmphasis"),g=Gb(u.model),v=s||f||"category"===u.type,y=t.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:c,triggerTooltip:s,triggerEmphasis:d,involveSeries:v,snap:f,useHandle:Vb(c),seriesModels:[],linkGroup:null};l[g]=y,t.seriesInvolved=t.seriesInvolved||v;var m=Nb(o,u);if(null!=m){var _=a[m]||(a[m]={axesInfo:{}});_.axesInfo[g]=y,_.mapper=o[m].mapper,y.linkGroup=_}}}}))}function Rb(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(u["k"])(s,(function(t){l[t]=Object(u["d"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===r){var h=a.get(["label","show"]);if(c.show=null==h||h,!o){var p=l.lineStyle=a.get("crossStyle");p&&Object(u["i"])(c,p.textStyle)}}return t.model.getModel("axisPointer",new iu(l,n,i))}function zb(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Object(u["k"])(t.coordSysAxesInfo[Gb(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function Nb(t,e){for(var n=e.model,i=e.dim,r=0;r=0||t===e}function Eb(t){var e=Fb(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Vb(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),aa)return!0;if(o){var s=Fb(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,r){var o=e.pointer;if(o){var a=Xb(t).pointerEl=new i[o.type](Yb(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=Xb(t).labelEl=new ss(Yb(e.label));t.add(r),Jb(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=Xb(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=Xb(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Jb(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Xg(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){tt(t.event)},onmousedown:Zb(this._onHandleDragMove,this,0,0),drift:Zb(this._onHandleDragMove,this),ondragend:Zb(this._onHandleDragEnd,this)}),i.add(r)),ew(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");u["s"](s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,dv(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Qb(this._axisPointerModel,!e&&this._moveAnimation,this._handle,tw(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(tw(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(tw(i)),Xb(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),gv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Qb(t,e,n,i){$b(Xb(n).lastProp,i)||(Xb(n).lastProp=i,e?Sl(n,i,t):(n.stopAnimation(),n.attr(i)))}function $b(t,e){if(u["z"](t)&&u["z"](e)){var n=!0;return u["k"](e,(function(e,i){n=n&&$b(t[i],e)})),!!n}return t===e}function Jb(t,e){t[e.get(["label","show"])?"show":"hide"]()}function tw(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function ew(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var nw=Kb,iw=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Er(iw);var rw=iw,ow=0,aw=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ow}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Object(u["F"])(i,sw);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(u["A"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(u["f"])(this.categories))},t}();function sw(t){return Object(u["z"])(t)&&null!=t.value?t.value:t+""}var lw=aw;function uw(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=Wi(o/e,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=cw(a),l=r.niceTickExtent=[Pi(Math.ceil(t[0]/a)*a,s),Pi(Math.floor(t[1]/a)*a,s)];return pw(l,t),r}function cw(t){return Li(t)+2}function hw(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function pw(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),hw(t,0,e),hw(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function fw(t,e){return t>=e[0]&&t<=e[1]}function dw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function gw(t,e){return t*(e[1]-e[0])+e[0]}var vw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new lw({})),Object(u["s"])(i)&&(i=new lw({categories:Object(u["F"])(i,(function(t){return Object(u["z"])(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return s(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(u["A"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),fw(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),dw(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(gw(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(rw);rw.registerClass(vw);var yw=Pi,mw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return s(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return fw(t,this._extent)},e.prototype.normalize=function(t){return dw(t,this._extent)},e.prototype.scale=function(t){return gw(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=cw(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(t?o.push({value:yw(l+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&h>>1;t[r][1]n&&(this._approxInterval=n);var o=Sw.length,a=Math.min(bw(Sw,this._approxInterval,0,o),o-1);this._interval=Sw[a][1],this._minLevelUnit=Sw[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(u["y"])(t)?t:+Hi(t)},e.prototype.contain=function(t){return fw(this.parse(t),this._extent)},e.prototype.normalize=function(t){return dw(this.parse(t),this._extent)},e.prototype.scale=function(t){return gw(t,this._extent)},e.type="time",e}(_w),Sw=[["second",bu],["minute",wu],["hour",Su],["quarter-day",6*Su],["half-day",12*Su],["day",1.2*Ou],["half-week",3.5*Ou],["week",7*Ou],["month",31*Ou],["quarter",95*Ou],["half-year",Tu/2],["year",Tu]];function Ow(t,e,n,i){var r=Hi(e),o=Hi(n),a=function(t){return Bu(r,t,i)===Bu(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},f=function(){return p()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return f()}}function Tw(t,e){return t/=Ou,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function kw(t){var e=30*Ou;return t/=e,t>6?6:t>3?3:t>2?2:1}function Mw(t){return t/=Su,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Cw(t,e){return t/=e?wu:bu,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Iw(t){return Wi(t,!0)}function Dw(t,e,n){var i=new Date(t);switch(Au(e)){case"year":case"month":i[Xu(n)](0);case"day":i[Yu(n)](1);case"hour":i[Zu(n)](0);case"minute":i[Ku(n)](0);case"second":i[Qu(n)](0),i[$u(n)](0)}return i.getTime()}function jw(t,e,n,i){var r=1e4,o=Du,a=0;function s(t,e,n,r,o,a,s){var l=new Date(e),u=e,c=l[r]();while(u1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u=i[0]&&_<=i[1]&&p++)}var x=(i[1]-i[0])/e;if(p>1.5*x&&f>x/1.5)break;if(c.push(y),p>x||t===o[d])break}h=[]}}}var b=Object(u["n"])(Object(u["F"])(c,(function(t){return Object(u["n"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],S=b.length-1;for(d=0;d0)i*=10;var o=[Pi(zw(e[0]/i)*i),Pi(Rw(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){Pw.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Bw(t)/Bw(this.base),fw(t,this._extent)},e.prototype.normalize=function(t){return t=Bw(t)/Bw(this.base),dw(t,this._extent)},e.prototype.scale=function(t){return t=gw(t,this._extent),Nw(this.base,t)},e.type="log",e}(rw),Fw=Ew.prototype;function Hw(t,e){return Lw(t,Li(e))}Fw.getMinorTicks=Pw.getMinorTicks,Fw.getLabel=Pw.getLabel,rw.registerClass(Ew);(function(){function t(t,e,n){this._prepareParams(t,e,n)}t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!c&&(s=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(a=p,l=!0),null!=f&&(s=f,c=!0),{min:a,max:s,minFixed:l,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[Gw[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=Vw[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0}})();var Vw={min:"_determinedMin",max:"_determinedMax"},Gw={min:"_dataMin",max:"_dataMax"};function Ww(t,e){return null==e?null:Object(u["l"])(e)?NaN:t.parse(e)}function Uw(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function qw(t){var e=t.get("interval");return null==e?"auto":e}function Xw(t){return"category"===t.type&&0===qw(t.getLabelModel())}var Yw=Math.PI,Zw=function(){function t(t,e){this.group=new _i,this.opt=e,this.axisModel=t,Object(u["i"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _i({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Kw[t]},t.prototype.add=function(t){Kw[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Bi(e-t);return Ei(o)?(r=n>0?"top":"bottom",i="center"):Ei(o-Yw)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Kw={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(S(s,s,a),S(l,l,a));var h=Object(u["m"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new Qd({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});zg(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var f=e.get(["axisLine","symbol"]);if(null!=f){var d=e.get(["axisLine","symbolSize"]);Object(u["A"])(f)&&(f=[f,f]),(Object(u["A"])(d)||Object(u["y"])(d))&&(d=[d,d]);var g=wy(e.get(["axisLine","symbolOffset"])||0,d),v=d[0],y=d[1];Object(u["k"])([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==f[i]&&null!=f[i]){var r=by(f[i],-v/2,-y/2,v,y,h.stroke,!0),o=e.r+e.offset,a=c?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=iS(n,i,e,t),o=oS(n,i,e,t);if($w(e,o,r),rS(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=Tx(Object(u["F"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Cx(a)}},axisName:function(t,e,n,i){var r=Object(u["L"])(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,c=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,p=e.axis.getExtent(),f=p[0]>p[1]?-1:1,d=["start"===s?p[0]-f*h:"end"===s?p[1]+f*h:(p[0]+p[1])/2,eS(s)?t.labelOffset+l*h:0],g=e.get("nameRotate");null!=g&&(g=g*Yw/180),eS(s)?o=Zw.innerTextLayout(t.rotation,null!=g?g:t.rotation,l):(o=Qw(t.rotation,s,g||0,p),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var v=c.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,_=Object(u["L"])(t.nameTruncateMaxWidth,y.maxWidth,a),x=new ss({x:d[0],y:d[1],rotation:o.rotation,silent:Zw.isLabelSilent(e),style:Rl(c,{text:r,font:v,overflow:"truncate",width:_,ellipsis:m,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if($g({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var b=Zw.makeAxisEventDataBase(e);b.targetType="axisName",b.name=r,ls(x).eventData=b}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function Qw(t,e,n,i){var r,o,a=Bi(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Ei(a-Yw/2)?(o=l?"bottom":"top",r="center"):Ei(a-1.5*Yw)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*Yw&&a>Yw/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function $w(t,e,n){if(!Xw(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];!1===i?(Jw(o),Jw(u)):tS(o,a)&&(i?(Jw(a),Jw(c)):(Jw(o),Jw(u))),!1===r?(Jw(s),Jw(h)):tS(l,s)&&(r?(Jw(l),Jw(p)):(Jw(s),Jw(h)))}}function Jw(t){t&&(t.ignore=!0)}function tS(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=at([]);return ct(r,r,-t.rotation),n.applyTransform(lt([],r,t.getLocalTransform())),i.applyTransform(lt([],r,e.getLocalTransform())),n.intersect(i)}}function eS(t){return"middle"===t||"center"===t}function nS(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){jS("axisPointer",e)},e.prototype.dispose=function(t,e){jS("axisPointer",e)},e.type="axisPointer",e}(Gf),PS=AS;function LS(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=yr(o,t);if(null==a||a<0||u["s"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),h=l.getOtherAxis(c),p=h.dim,f=c.dim,d="x"===p||"radius"===p?1:0,g=o.mapDimension(f),v=[];v[d]=o.get(g,a),v[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(v)||[]}else i=l.dataToPoint(o.getValues(u["F"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),i=[y.x+y.width/2,y.y+y.height/2]}return{point:i,el:s}}var RS=mr();function zS(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Object(u["c"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){qS(r)&&(r=LS({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=qS(r),c=o.axesInfo,h=s.axesInfo,p="leave"===i||qS(r),f={},d={},g={list:[],map:{}},v={showPointer:Object(u["h"])(ES,d),showTooltip:Object(u["h"])(FS,g)};Object(u["k"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);Object(u["k"])(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=WS(c,t);if(!p&&n&&(!c||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&NS(t,a,v,!1,f)}}))}));var y={};return Object(u["k"])(h,(function(t,e){var n=t.linkGroup;n&&!d[e]&&Object(u["k"])(n.axesInfo,(function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,US(e),US(t)))),y[t.key]=o}}))})),Object(u["k"])(y,(function(t,e){NS(h[e],t,v,!0,f)})),HS(d,h,f),VS(g,r,t,a),GS(h,a,n),f}}function NS(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=BS(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Object(u["m"])(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function BS(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(u["k"])(e.seriesModels,(function(e,l){var c,h,p=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(p,t,n);h=f.dataIndices,c=f.nestestValue}else{if(h=e.getData().indicesOfNearest(p[0],t,"category"===n.type?.5:null),!h.length)return;c=e.getData().get(p[0],h[0])}if(null!=c&&isFinite(c)){var d=t-c,g=Math.abs(d);g<=a&&((g=0&&s<0)&&(a=g,s=d,r=c,o.length=0),Object(u["k"])(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function ES(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function FS(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Gb(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function HS(t,e,n){var i=n.axesInfo=[];Object(u["k"])(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function VS(t,e,n,i){if(!qS(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function GS(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=RS(i)[r]||{},a=RS(i)[r]={};Object(u["k"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(u["k"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(u["k"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(u["k"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function WS(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function US(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function qS(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function XS(t){qb.registerAxisPointerClass("CartesianAxisPointer",xS),t.registerComponentModel(wS),t.registerComponentView(PS),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(u["s"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Pb(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zS)}var YS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return s(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(wc),ZS=YS;function KS(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function QS(t){if(l["a"].domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var h=o*Math.PI/180,p=s+r,f=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),d=Math.round(100*((f-Math.SQRT2*r)/2+Math.SQRT2*r-(f-p)/2))/100;l+=";"+a+":-"+d+"px";var g=e+" solid "+r+"px;",v=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'
'}function sO(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=l["a"].transformSupported?","+iO+i:",left"+i+",top"+i),nO+":"+r}function lO(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!l["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=l["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+iO+":"+a+";":[["top",0],["left",0],[$S,a]]}function uO(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=Object(u["M"])(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Object(u["k"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function cO(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),p=Tf(t,"html"),f=l+"px "+c+"px "+a+"px "+s;return i.push("box-shadow:"+f),e&&r&&i.push(sO(r,n)),o&&i.push("background-color:"+o),Object(u["k"])(["width","color","radius"],(function(e){var n="border-"+e,r=tc(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(uO(h)),null!=p&&i.push("padding:"+ec(p).join("px ")+"px"),i.join(";")+";"}function hO(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&z(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var pO=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,l["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(Object(u["A"])(r)?document.querySelector(r):Object(u["u"])(r)?r:Object(u["v"])(r)&&r(t.getDom()));hO(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();K(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=eO(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=rO+cO(t,!this._firstShow,this._longHide)+lO(r[0],r[1],!0)+"border-color:"+sc(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(Object(u["A"])(r)&&"item"===n.get("trigger")&&!KS(n)&&(a=aO(n,i,r)),Object(u["A"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(u["s"])(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!l["a"].node&&n.getDom()){var r=wO(i,n);this._ticket="";var o=i.dataByCoordSys,a=MO(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var u=_O;u.x=i.x,u.y=i.y,u.update(),ls(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=LS(i,e),h=c.point[0],p=c.point[1];null!=h&&null!=p&&this._tryShow({offsetX:h,offsetY:p,target:c.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(wO(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=bO([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var o,a,s=ls(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,sy(n,(function(t){return null!=ls(t).dataIndex?(o=t,!0):null!=ls(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(u["c"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=bO([e.tooltipOption],i),a=this._renderMode,s=[],l=hf("section",{blocks:[],noHeader:!0}),c=[],h=new kf;Object(u["k"])(t,(function(t){Object(u["k"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=cS(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),p=hf("section",{header:o,noHeader:!Object(u["Q"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(p),Object(u["k"])(t.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,g=f.getDataParams(d);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=Uw(e.axis,{value:r}),g.axisValueLabel=o,g.marker=h.makeTooltipMarker("item",sc(g.color),a);var v=Tp(f.formatTooltip(d,!0,null)),y=v.frag;if(y){var m=bO([f],i).get("valueFormatter");p.blocks.push(m?Object(u["m"])({valueFormatter:m},y):y)}v.text&&c.push(v.text),s.push(g)}}))}}))})),l.blocks.reverse(),c.reverse();var p=e.position,f=o.get("order"),d=yf(l,h,a,f,n.get("useUTC"),o.get("textStyle"));d&&c.unshift(d);var g="richText"===a?"\n\n":"
",v=c.join(g);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+"",r[0],r[1],p,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=ls(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,c=r.dataType,h=s.getData(c),p=this._renderMode,f=t.positionDefault,d=bO([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),g=d.get("trigger");if(null==g||"item"===g){var v=s.getDataParams(l,c),y=new kf;v.marker=y.makeTooltipMarker("item",sc(v.color),p);var m=Tp(s.formatTooltip(l,!1,c)),_=d.get("order"),x=d.get("valueFormatter"),b=m.frag,w=b?yf(x?Object(u["m"])({valueFormatter:x},b):b,y,p,_,i.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,w,v,S,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=ls(e),o=r.tooltipConfig,a=o.option||{},s=a.encodeHTMLContent;if(Object(u["A"])(a)){var l=a;a={content:l,formatter:l},s=!0}s&&i&&a.content&&(a=Object(u["d"])(a),a.content=G(a.content));var c=[a],h=this._ecModel.getComponent(r.componentMainType,r.componentIndex);h&&c.push(h),c.push({formatter:a.content});var p=t.positionDefault,f=bO(c,this._tooltipModel,p?{position:p}:null),d=f.get("content"),g=Math.random()+"",v=new kf;this._showOrMove(f,(function(){var n=Object(u["d"])(f.get("formatterParams")||{});this._showTooltipContent(f,d,n,g,t.offsetX,t.offsetY,t.position,e,v)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var p=e,f=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),d=f.color;if(h)if(Object(u["A"])(h)){var g=t.ecModel.get("useUTC"),v=Object(u["s"])(n)?n[0]:n,y=v&&v.axisType&&v.axisType.indexOf("time")>=0;p=h,y&&(p=Ru(v.axisValue,p,g)),p=oc(p,n,!0)}else if(Object(u["v"])(h)){var m=Object(u["c"])((function(e,i){e===this._ticket&&(c.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,c,n,s))}),this);this._ticket=i,p=h(n,i,m)}else p=h;c.setContent(p,l,t,d,a),c.show(t,d),this._updatePosition(t,a,r,o,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(u["s"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(u["s"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=r.getSize(),h=t.get("align"),p=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(u["v"])(e)&&(e=e([n,i],o,r.el,f,{viewSize:[s,l],contentSize:c.slice()})),Object(u["s"])(e))n=Ai(e[0],s),i=Ai(e[1],l);else if(Object(u["z"])(e)){var d=e;d.width=c[0],d.height=c[1];var g=dc(d,{width:s,height:l});n=g.x,i=g.y,h=null,p=null}else if(Object(u["A"])(e)&&a){var v=TO(e,f,c,t.get("borderWidth"));n=v[0],i=v[1]}else{v=SO(n,i,r,s,l,h?null:20,p?null:20);n=v[0],i=v[1]}if(h&&(n-=kO(h)?c[0]/2:"right"===h?c[0]:0),p&&(i-=kO(p)?c[1]/2:"bottom"===p?c[1]:0),KS(t)){v=OO(n,i,r,s,l);n=v[0],i=v[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(u["k"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&Object(u["k"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&Object(u["k"])(a,(function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(u["k"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!l["a"].node&&e.getDom()&&(gv(this,"_updatePosition"),this._tooltipContent.dispose(),jS("itemTooltip",e))},e.type="tooltip",e}(Gf);function bO(t,e,n){var i,r=e.ecModel;n?(i=new iu(n,r,r),i=new iu(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof iu&&(a=a.get("tooltip",!0)),Object(u["A"])(a)&&(a={formatter:a}),a&&(i=new iu(a,i,r)))}return i}function wO(t,e){return t.dispatchAction||Object(u["c"])(e.dispatchAction,e)}function SO(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function OO(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function TO(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function kO(t){return"center"===t||"middle"===t}function MO(t,e,n){var i=br(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Sr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=ls(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var CO=xO;function IO(t){U_(XS),t.registerComponentModel(ZS),t.registerComponentView(CO),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},u["I"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},u["I"])}var DO=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},jO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return s(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),u["s"](e)&&u["k"](e,(function(t,i){u["A"](t)&&(t={type:t}),e[i]=u["G"](t,DO(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(wc),AO=jO;function PO(t,e){var n=ec(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new Ga({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),t}var LO=u["h"],RO=u["k"],zO=_i,NO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return s(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new zO),this.group.add(this._selectorGroup=new zO),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=dc(l,c,h),f=this.layoutInner(t,r,p,i,a,s),d=dc(u["i"]({width:f.width,height:f.height},l),c,h);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=PO(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=u["f"](),c=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),RO(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var p=new zO;return p.newline=!0,void s.add(p)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var d=f.getData(),g=d.getVisual("legendLineStyle")||{},v=d.getVisual("legendIcon"),y=d.getVisual("style"),m=this._createItem(f,a,o,r,e,t,g,y,v,c,i);m.on("click",LO(FO,a,null,i,h)).on("mouseover",LO(VO,f.name,null,i,h)).on("mouseout",LO(GO,f.name,null,i,h)),n.ssr&&m.eachChild((function(t){var e=ls(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var p=s.legendVisualProvider;if(!p.containName(a))return;var f=p.indexOfName(a),d=p.getItemVisual(f,"style"),g=p.getItemVisual(f,"legendIcon"),v=Object(Le["c"])(d.fill);v&&0===v[3]&&(v[3]=.2,d=u["m"](u["m"]({},d),{fill:Object(Le["d"])(v,"rgba")}));var y=this._createItem(s,a,o,r,e,t,{},d,g,c,i);y.on("click",LO(FO,null,a,i,h)).on("mouseover",LO(VO,null,a,i,h)).on("mouseout",LO(GO,null,a,i,h)),n.ssr&&y.eachChild((function(t){var e=ls(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();RO(t,(function(t){var i=t.type,r=new ss({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Pl(r,{normal:a,emphasis:s},{defaultText:t.title}),sl(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,c,h){var p=t.visualDrawType,f=r.get("itemWidth"),d=r.get("itemHeight"),g=r.isSelected(e),v=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");l=m||l||"roundRect";var _=BO(l,i,a,s,p,g,h),x=new zO,b=i.getModel("textStyle");if(!u["v"](t.getLegendIcon)||m&&"inherit"!==m){var w="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===v?t.getData().getVisual("symbolRotate"):v:0;x.add(EO({itemWidth:f,itemHeight:d,icon:l,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:f,itemHeight:d,icon:l,iconRotate:v,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));var S="left"===o?f+5:-5,O=o,T=r.get("formatter"),k=e;u["A"](T)&&T?k=T.replace("{name}",null!=e?e:""):u["v"](T)&&(k=T(e));var M=g?b.getTextColor():i.get("inactiveColor");x.add(new ss({style:Rl(b,{text:k,x:S,y:d/2,fill:M,align:O,verticalAlign:"middle"},{inheritColor:M})}));var C=new Ga({shape:x.getBoundingRect(),style:{fill:"transparent"}}),I=i.getModel("tooltip");return I.get("show")&&$g({el:C,componentModel:r,itemName:e,itemTooltipOption:I.option}),x.add(C),x.eachChild((function(t){t.silent=!0})),C.silent=!c,this.getContentGroup().add(x),sl(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();fc(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){fc("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),f=t.getOrient().index,d=0===f?"width":"height",g=0===f?"height":"width",v=0===f?"y":"x";"end"===o?h[f]+=l[d]+p:u[f]+=c[d]+p,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[d]=l[d]+p+c[d],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-f]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Gf);function BO(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),RO(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?um(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),f=p.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===f.stroke&&(f.stroke=i.fill),!o){var d=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===d?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=p.get("inactiveColor"),f.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function EO(t){var e=t.icon||"roundRect",n=by(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function FO(t,e,n,i){GO(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),VO(t,e,n,i)}function HO(t){var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;while(in[r],g=[-p.x,-p.y];e||(g[i]=l[s]);var v=[0,0],y=[-f.x,-f.y],m=u["M"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var _=t.get("pageButtonPosition",!0);"end"===_?y[i]+=n[r]-f[r]:v[i]+=f[r]+m}y[1-i]+=p[o]/2-f[o]/2,l.setPosition(g),c.setPosition(v),h.setPosition(y);var x={x:0,y:0};if(x[r]=d?n[r]:p[r],x[o]=Math.max(p[o],f[o]),x[a]=Math.min(0,f[a]+y[1-i]),c.__rectSize=n[r],d){var b={x:0,y:0};b[r]=Math.max(n[r]-f[r]-m,0),b[o]=x[o],c.setClipPath(new Ga({shape:b})),c.__rectSize=b[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&Sl(l,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;u["k"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",u["A"](r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=tT[r],a=eT[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var f=m(u);p.contentPosition[r]=-f.s;for(var d=s+1,g=f,v=f,y=null;d<=c;++d)y=m(l[d]),(!y&&v.e>g.s+i||y&&!_(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount)),v=y;for(d=s-1,g=f,v=f,y=null;d>=-1;--d)y=m(l[d]),y&&_(v,y.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n},e.type="legend.scroll",e}(WO),iT=nT;function rT(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function oT(t){U_(ZO),t.registerComponentModel($O),t.registerComponentView(iT),rT(t)}function aT(t){U_(ZO),U_(oT)}U_([ix,Ib,Ab,IO,aT]);var sT={name:"workbench",data:function(){return{projects:[{name:"官方文档",imageUrl:"/image/django-vue-admin.png",slogan:"Django-Vue-Admin 是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。",link:"http://django-vue-admin.com"},{name:"官方论坛",imageUrl:"/image/django-vue-admin.png",slogan:"Django-Vue-Admin 官方论坛",link:"http://bbs.django-vue-admin.com"},{name:"D2admin",imageUrl:"/image/d2-pub.png",slogan:"D2Admin (opens new window)是一个完全 开源免费 的企业中后台产品前端集成方案,使用最新的前端技术栈,小于 60kb 的本地首屏 js 加载,已经做好大部分项目前期准备工作,并且带有大量示例代码,助力管理系统快速开发。",link:"https://d2.pub/zh"},{name:"SimpleUi",imageUrl:"/image/simple-ui.png",slogan:"一个基于Django Admin的现代化主题。",link:"https://simpleui.72wo.com/"},{name:"若依",imageUrl:"/image/ruoyi.png",slogan:"基于SpringBoot、Shiro、Mybatis的权限后台管理系统。",link:"http://ruoyi.vip/"},{name:"Gin-Vue-Admin",imageUrl:"/image/gin-vue-admin.png",slogan:"使用gin+vue进行极速开发的全栈后台管理系统。",link:"https://www.gin-vue-admin.com/"},{name:"DCM",imageUrl:"/image/django-comment-migrate.png",slogan:"这是一个Django model注释迁移的app",link:"https://github.com/starryrbs/django-comment-migrate"},{name:"Jetbrains",imageUrl:"/image/jetbrains.jpeg",slogan:"我们构建我们的软件,让您可以享受构建自己的软件的乐趣",link:"https://www.jetbrains.com/"},{name:"Django",imageUrl:"/image/django.png",slogan:"有期限的完美主义者的网络框架。",link:"https://github.com/django/django"}],navigators:[{name:"控制台",icon:"home",route:{name:"index"},color:"rgb(31, 218, 202);"},{name:"部门管理",icon:"department",route:{name:"dept"},color:"rgb(225, 133, 37);"},{name:"角色管理",icon:"role",route:{name:"role"},color:"rgb(191, 12, 44);"},{name:"菜单管理",icon:"menu",route:{name:"menu"},color:"rgb(63, 178, 127);"},{name:"用户管理",icon:"user",route:{name:"user"},color:"rgb(191, 12, 44);"},{name:"日志管理",icon:"log",route:{name:"operationLog"},color:"rgb(0, 216, 255);"}],chartData:{columns:["日期","销售额"],rows:[{"日期":"1月1日","销售额":123},{"日期":"1月2日","销售额":1223},{"日期":"1月3日","销售额":2123},{"日期":"1月4日","销售额":4123},{"日期":"1月5日","销售额":3123},{"日期":"1月6日","销售额":7123}]}}},methods:{gotoRoute:function(t){this.$router.push(t)}}},lT=sT,uT=(n("51f3"),n("2877")),cT=Object(uT["a"])(lT,r,o,!1,null,"57a09b24",null);e["default"]=cT.exports}}]);