5)return;var n=this._model.coordinatesystem.getslidedaxisexpandwindow([t.offsetx,t.offsety]);"none"!==n.behavior&&this._dispatchexpand({axisexpandwindow:n.axisexpandwindow})}this._mousedownpoint=null},mousemove:function(t){if(!this._mousedownpoint&&rc(this,"mousemove")){var e=this._model,i=e.coordinatesystem.getslidedaxisexpandwindow([t.offsetx,t.offsety]),n=i.behavior;"jump"===n&&this._throttleddispatchexpand.debouncenextcall(e.get("axisexpanddebounce")),this._throttleddispatchexpand("none"===n?null:{axisexpandwindow:i.axisexpandwindow,animation:"jump"===n&&null})}}};tr(function(t){wu(t),hu(t)}),yw.extend({type:"series.parallel",dependencies:["parallel"],visualcoloraccesspath:"linestyle.normal.color",getinitialdata:function(t,e){var i=e.getcomponent("parallel",this.get("parallelindex")),n=i.parallelaxisindex,o=t.data,a=i.dimensions,r=f(gc(a,o),function(t,i){var r=l(a,t),s=r>=0&&e.getcomponent("parallelaxis",n[r]);return s&&"category"===s.get("type")?(vc(s,t,o),{name:t,type:"ordinal"}):r<0&&xr.guessordinal(o,i)?{name:t,type:"ordinal"}:t}),s=new as(r,this);return s.initdata(o),this.option.progressive&&(this.option.animation=!1),s},getrawindicesbyactivestate:function(t){var e=this.coordinatesystem,i=this.getdata(),n=[];return e.eachactivestate(i,function(e,o){t===e&&n.push(i.getrawindex(o))}),n},defaultoption:{zlevel:0,z:2,coordinatesystem:"parallel",parallelindex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveopacity:.05,activeopacity:1,linestyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationeasing:"linear"}});ta.extend({type:"parallel",init:function(){this._datagroup=new jy,this.group.add(this._datagroup),this._data},render:function(t,e,i,n){this._renderfornormal(t,n)},dispose:function(){},_renderfornormal:function(t,e){var i=this._datagroup,n=t.getdata(),o=this._data,a=t.coordinatesystem,r=a.dimensions,s=t.option.smooth?.3:null;if(n.diff(o).add(function(t){fc(n,i,t,r,a)}).update(function(i,s){var l=o.getitemgraphicel(s),h=hc(n,i,r,a);n.setitemgraphicel(i,l),wo(l,{shape:{points:h}},e&&!1===e.animation?null:t,i)}).remove(function(t){var e=o.getitemgraphicel(t);i.remove(e)}).execute(),zc(n,s),!this._data){var l=wc(a,t,function(){settimeout(function(){i.removeclippath()})});i.setclippath(l)}this._data=n},remove:function(){this._datagroup&&this._datagroup.removeall(),this._data=null}});var la=["linestyle","normal","opacity"];ar(function(t){t.eachseriesbytype("parallel",function(e){var i=e.getmodel("itemstyle.normal"),n=e.getmodel("linestyle.normal"),o=t.get("color"),a=n.get("color")||i.get("color")||o[e.seriesindex%o.length],r=e.get("inactiveopacity"),s=e.get("activeopacity"),l=e.getmodel("linestyle.normal").getlinestyle(),h=e.coordinatesystem,u=e.getdata(),c={normal:l.opacity,active:s,inactive:r};h.eachactivestate(u,function(t,e){var i=u.getitemmodel(e),n=c[t];if("normal"===t){var o=i.get(la,!0);null!=o&&(n=o)}u.setitemvisual(e,"opacity",n)}),u.setvisual("color",a)})});var ha=yw.extend({type:"series.sankey",layoutinfo:null,getinitialdata:function(t){var e=t.edges||t.links,i=t.data||t.nodes;if(i&&e)return ht(i,e,this,!0).data},getgraph:function(){return this.getdata().graph},getedgedata:function(){return this.getgraph().edgedata},formattooltip:function(t,e,i){if("edge"===i){var n=this.getdataparams(t,i),o=n.data,a=o.source+" -- "+o.target;return n.value&&(a+=" : "+n.value),gi(a)}return ha.supercall(this,"formattooltip",t,e)},defaultoption:{zlevel:0,z:2,coordinatesystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",nodewidth:20,nodegap:8,layoutiterations:32,label:{normal:{show:!0,position:"right",color:"#000",fontsize:12},emphasis:{show:!0}},itemstyle:{normal:{borderwidth:1,bordercolor:"#333"}},linestyle:{normal:{color:"#314656",opacity:.2,curveness:.5},emphasis:{opacity:.6}},animationeasing:"linear",animationduration:1e3}}),ua=zn({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0},buildpath:function(t,e){var i=e.extent/2;t.moveto(e.x1,e.y1-i),t.beziercurveto(e.cpx1,e.cpy1-i,e.cpx2,e.cpy2-i,e.x2,e.y2-i),t.lineto(e.x2,e.y2+i),t.beziercurveto(e.cpx2,e.cpy2+i,e.cpx1,e.cpy1+i,e.x1,e.y1+i),t.closepath()}});ur({type:"sankey",_model:null,render:function(t,e,i){var n=t.getgraph(),o=this.group,a=t.layoutinfo,r=t.getdata(),s=t.getdata("edge");this._model=t,o.removeall(),o.attr("position",[a.x,a.y]),n.eachedge(function(e){var i=new ua;i.dataindex=e.dataindex,i.seriesindex=t.seriesindex,i.datatype="edge";var n=e.getmodel("linestyle.normal"),a=n.get("curveness"),r=e.node1.getlayout(),l=e.node2.getlayout(),h=e.getlayout();i.shape.extent=math.max(1,h.dy);var u=r.x+r.dx,c=r.y+h.sy+h.dy/2,d=l.x,f=l.y+h.ty+h.dy/2,g=u*(1-a)+d*a,p=c,m=u*a+d*(1-a),v=f;switch(i.setshape({x1:u,y1:c,x2:d,y2:f,cpx1:g,cpy1:p,cpx2:m,cpy2:v}),i.setstyle(n.getitemstyle()),i.style.fill){case"source":i.style.fill=e.node1.getvisual("color");break;case"target":i.style.fill=e.node2.getvisual("color")}uo(i,e.getmodel("linestyle.emphasis").getitemstyle()),o.add(i),s.setitemgraphicel(e.dataindex,i)}),n.eachnode(function(e){var i=e.getlayout(),n=e.getmodel(),a=n.getmodel("label.normal"),s=n.getmodel("label.emphasis"),l=new db({shape:{x:i.x,y:i.y,width:e.getlayout().dx,height:e.getlayout().dy},style:n.getmodel("itemstyle.normal").getitemstyle()}),h=e.getmodel("itemstyle.emphasis").getitemstyle();co(l.style,h,a,s,{labelfetcher:t,labeldataindex:e.dataindex,defaulttext:e.id,isrecttext:!0}),l.setstyle("fill",e.getvisual("color")),uo(l,h),o.add(l),r.setitemgraphicel(e.dataindex,l),l.datatype="node"}),!this._data&&t.get("animation")&&o.setclippath(xc(o.getboundingrect(),t,function(){o.removeclippath()})),this._data=t.getdata()},dispose:function(){}});or(function(t,e,i){t.eachseriesbytype("sankey",function(t){var i=t.get("nodewidth"),n=t.get("nodegap"),o=qc(t,e);t.layoutinfo=o;var a=o.width,r=o.height,s=t.getgraph(),l=s.nodes,h=s.edges;$c(l),yc(l,h,i,n,a,r,0!==p(l,function(t){return 0===t.getlayout().value}).length?0:t.get("layoutiterations"))})}),ar(function(t,e){t.eachseriesbytype("sankey",function(t){var e=t.getgraph().nodes;e.sort(function(t,e){return t.getlayout().value-e.getlayout().value});var i=e[0].getlayout().value,n=e[e.length-1].getlayout().value;d(e,function(e){var o=new ji({type:"color",mappingmethod:"linear",dataextent:[i,n],visual:t.get("color")}).mapvaluetovisual(e.getlayout().value);e.setvisual("color",o);var a=e.getmodel().get("itemstyle.normal.color");null!=a&&e.setvisual("color",a)})})});var ca=nn.extend({type:"whiskerinbox",shape:{},buildpath:function(t,e){for(var i in e)if(e.hasownproperty(i)&&0===i.indexof("ends")){var n=e[i];t.moveto(n[0][0],n[0][1]),t.lineto(n[1][0],n[1][1])}}}),da=pd.prototype;da._createcontent=function(t,e,i){var n=t.getitemlayout(e),o="horizontal"===n.chartlayout?1:0,a=0;this.add(new ub({shape:{points:i?md(n.bodyends,o,n):n.bodyends},style:{strokenoscale:!0},z2:100})),this.bodyindex=a++;var r=f(n.whiskerends,function(t){return i?md(t,o,n):t});this.add(new ca({shape:vd(r),style:{strokenoscale:!0},z2:100})),this.whiskerindex=a++},da.updatedata=function(t,e,i){var n=this._seriesmodel=t.hostmodel,o=t.getitemlayout(e),a=tb[i?"initprops":"updateprops"];a(this.childat(this.bodyindex),{shape:{points:o.bodyends}},n,e),a(this.childat(this.whiskerindex),{shape:vd(o.whiskerends)},n,e),this.styleupdater.call(null,this,t,e)},h(pd,jy);var fa=yd.prototype;fa.updatedata=function(t){var e=this.group,i=this._data,n=this.styleupdater;t.diff(i).add(function(i){if(t.hasvalue(i)){var o=new pd(t,i,n,!0);t.setitemgraphicel(i,o),e.add(o)}}).update(function(o,a){var r=i.getitemgraphicel(a);t.hasvalue(o)?(r?r.updatedata(t,o):r=new pd(t,o,n),e.add(r),t.setitemgraphicel(o,r)):e.remove(r)}).remove(function(t){var n=i.getitemgraphicel(t);n&&e.remove(n)}).execute(),this._data=t},fa.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachitemgraphicel(function(e){e&&t.remove(e)})};var ga={_baseaxisdim:null,getinitialdata:function(t,e){var i,n,o=e.getcomponent("xaxis",this.get("xaxisindex")),a=e.getcomponent("yaxis",this.get("yaxisindex")),r=o.get("type"),s=a.get("type");"category"===r?(t.layout="horizontal",i=o.getcategories(),n=!0):"category"===s?(t.layout="vertical",i=a.getcategories(),n=!0):t.layout=t.layout||"horizontal";var l=["x","y"],h="horizontal"===t.layout?0:1,u=this._baseaxisdim=l[h],c=l[1-h],f=t.data;n&&d(f,function(t,e){t.value&&y(t.value)?t.value.unshift(e):y(t)&&t.unshift(e)});var g=this.defaultvaluedimensions,p=[{name:u,otherdims:{tooltip:!1},dimsdef:["base"]},{name:c,dimsdef:g.slice()}];p=xr(p,f,{encodedef:this.get("encode"),dimsdef:this.get("dimensions"),dimcount:g.length+1});var m=new as(p,this);return m.initdata(f,i?i.slice():null),m},getbaseaxis:function(){var t=this._baseaxisdim;return this.ecmodel.getcomponent(t+"axis",this.get(t+"axisindex")).axis}},pa={init:function(){var t=this._whiskerboxdraw=new yd(this.getstyleupdater());this.group.add(t.group)},render:function(t,e,i){this._whiskerboxdraw.updatedata(t.getdata())},remove:function(t){this._whiskerboxdraw.remove()}};u(yw.extend({type:"series.boxplot",dependencies:["xaxis","yaxis","grid"],defaultvaluedimensions:["min","q1","median","q3","max"],dimensions:null,defaultoption:{zlevel:0,z:2,coordinatesystem:"cartesian2d",legendhoverlink:!0,hoveranimation:!0,layout:null,boxwidth:[7,50],itemstyle:{normal:{color:"#fff",borderwidth:1},emphasis:{borderwidth:2,shadowblur:5,shadowoffsetx:2,shadowoffsety:2,shadowcolor:"rgba(0,0,0,0.4)"}},animationeasing:"elasticout",animationduration:800}}),ga,!0),u(ta.extend({type:"boxplot",getstyleupdater:function(){return xd},dispose:n}),pa,!0);var ma=["itemstyle","normal"],va=["itemstyle","emphasis"],ya=["itemstyle","normal","bordercolor"],xa=d;ar(function(t,e){var i=t.get("color");t.eachrawseriesbytype("boxplot",function(e){var n=i[e.seriesindex%i.length],o=e.getdata();o.setvisual({legendsymbol:"roundrect",color:e.get(ya)||n}),t.isseriesfiltered(e)||o.each(function(t){var e=o.getitemmodel(t);o.setitemvisual(t,{color:e.get(ya,!0)})})})}),or(function(t){var e=_d(t);xa(e,function(t){var e=t.seriesmodels;e.length&&(bd(t),xa(e,function(e,i){wd(e,t.boxoffsetlist[i],t.boxwidthlist[i])}))})}),u(yw.extend({type:"series.candlestick",dependencies:["xaxis","yaxis","grid"],defaultvaluedimensions:["open","close","lowest","highest"],dimensions:null,defaultoption:{zlevel:0,z:2,coordinatesystem:"cartesian2d",legendhoverlink:!0,hoveranimation:!0,layout:null,itemstyle:{normal:{color:"#c23531",color0:"#314656",borderwidth:1,bordercolor:"#c23531",bordercolor0:"#314656"},emphasis:{borderwidth:2}},barmaxwidth:null,barminwidth:null,barwidth:null,animationupdate:!1,animationeasing:"linear",animationduration:300},getshadowdim:function(){return"open"},brushselector:function(t,e,i){var n=e.getitemlayout(t);return i.rect(n.brushrect)}}),ga,!0),u(ta.extend({type:"candlestick",getstyleupdater:function(){return sd},dispose:n}),pa,!0);var _a=["itemstyle","normal"],ba=["itemstyle","emphasis"],wa=["itemstyle","normal","bordercolor"],sa=["itemstyle","normal","bordercolor0"],ma=["itemstyle","normal","color"],ia=["itemstyle","normal","color0"],ta=t;tr(function(t){t&&y(t.series)&&d(t.series,function(t){b(t)&&"k"===t.type&&(t.type="candlestick")})}),ar(function(t,e){t.eachrawseriesbytype("candlestick",function(e){var i=e.getdata();i.setvisual({legendsymbol:"roundrect"}),t.isseriesfiltered(e)||i.each(function(t){var e=i.getitemmodel(t),n=i.getitemlayout(t).sign;i.setitemvisual(t,{color:e.get(n>0?ma:ia),bordercolor:e.get(n>0?wa:sa)})})})}),or(function(t){t.eachseriesbytype("candlestick",function(t){var e,i=t.coordinatesystem,n=t.getdata(),o=md(t,n),a=t.get("layout"),r="horizontal"===a?0:1,s=1-r,l=["x","y"],h=[];if(d(n.dimensions,function(t){var i=n.getdimensioninfo(t).coorddim;i===l[s]?h.push(t):i===l[r]&&(e=t)}),!(null==e||h.length<4)){var u=0;n.each([e].concat(h),function(){function t(t){var e=[];return e[r]=d,e[s]=t,isnan(d)||isnan(t)?[nan,nan]:i.datatopoint(e)}function e(t,e){var i=t.slice(),n=t.slice();i[r]=kn(i[r]+o/2,1,!1),n[r]=kn(n[r]-o/2,1,!0),e?m.push(i,n):m.push(n,i)}function l(t){return t[r]=kn(t[r],1),t}var c=arguments,d=c[0],f=c[h.length+1],g=c[1],p=c[2],m=c[3],v=c[4],y=math.min(g,p),x=math.max(g,p),_=t(y),b=t(x),w=t(m),s=[[l(t(v)),l(b)],[l(w),l(_)]],m=[];e(b,0),e(_,1);var i;i=g>p?-1:g0?n.getitemmodel(u-1).get()[2]<=p?1:-1:1,n.setitemlayout(f,{chartlayout:a,sign:i,initbaseline:g>p?b[s]:_[s],bodyends:m,whiskerends:s,brushrect:function(){var e=t(math.min(g,p,m,v)),i=t(math.max(g,p,m,v));return e[r]-=o/2,i[r]-=o/2,{x:e[0],y:e[1],width:s?o:i[0]-e[0],height:s?i[1]-e[1]:o}}()}),++u},!0)}})}),yw.extend({type:"series.effectscatter",dependencies:["grid","polar"],getinitialdata:function(t,e){return sr(t.data,this,e)},brushselector:"point",defaultoption:{coordinatesystem:"cartesian2d",zlevel:0,z:2,legendhoverlink:!0,effecttype:"ripple",progressive:0,showeffecton:"render",rippleeffect:{period:4,scale:2.5,brushtype:"fill"},symbolsize:10}});var aa=ad.prototype;aa.stopeffectanimation=function(){this.childat(1).removeall()},aa.starteffectanimation=function(t){for(var e=t.symboltype,i=t.color,n=this.childat(1),o=0;o<3;o++){var a=hr(e,-1,-1,2,2,i);a.attr({style:{strokenoscale:!0},z2:99,silent:!0,scale:[.5,.5]});var r=-o/3*t.period+t.effectoffset;a.animate("",!0).when(t.period,{scale:[t.ripplescale/2,t.ripplescale/2]}).delay(r).start(),a.animatestyle(!0).when(t.period,{opacity:0}).delay(r).start(),n.add(a)}td(n,t)},aa.updateeffectanimation=function(t){for(var e=this._effectcfg,i=this.childat(1),n=["symboltype","period","ripplescale"],o=0;o "))},defaultoption:{coordinatesystem:"geo",zlevel:0,z:2,legendhoverlink:!0,hoveranimation:!0,xaxisindex:0,yaxisindex:0,symbol:["none","none"],symbolsize:[10,10],geoindex:0,effect:{show:!1,period:4,constantspeed:0,symbol:"circle",symbolsize:3,loop:!0,traillength:.2},large:!1,largethreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},linestyle:{normal:{opacity:.5}}}}),da=dd.prototype;da.createline=function(t,e,i){return new bu(t,e,i)},da._updateeffectsymbol=function(t,e){var i=t.getitemmodel(e).getmodel("effect"),n=i.get("symbolsize"),o=i.get("symbol");y(n)||(n=[n,n]);var a=i.get("color")||t.getitemvisual(e,"color"),r=this.childat(1);this._symboltype!==o&&(this.remove(r),(r=hr(o,-.5,-.5,1,1,a)).z2=100,r.culling=!0,this.add(r)),r&&(r.setstyle("shadowcolor",a),r.setstyle(i.getitemstyle(["color"])),r.attr("scale",n),r.setcolor(a),r.attr("scale",n),this._symboltype=o,this._updateeffectanimation(t,i,e))},da._updateeffectanimation=function(t,e,i){var n=this.childat(1);if(n){var o=this,a=t.getitemlayout(i),r=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantspeed"),h=i(e.get("delay"),function(e){return e/t.count()*r/3}),u="function"==typeof h;if(n.ignore=!0,this.updateanimationpoints(n,a),l>0&&(r=this.getlinelength(n)/l*1e3),r!==this._period||s!==this._loop){n.stopanimation();var c=h;u&&(c=h(i)),n.__t>0&&(c=-r*n.__t),n.__t=0;var d=n.animate("",s).when(r,{__t:1}).delay(c).during(function(){o.updatesymbolposition(n)});s||d.done(function(){o.remove(n)}),d.start()}this._period=r,this._loop=s}},da.getlinelength=function(t){return hy(t.__p1,t.__cp1)+hy(t.__cp1,t.__p2)},da.updateanimationpoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},da.updatedata=function(t,e,i){this.childat(0).updatedata(t,e,i),this._updateeffectsymbol(t,e)},da.updatesymbolposition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t,a=t.position,r=un,s=cn;a[0]=r(e[0],n[0],i[0],o),a[1]=r(e[1],n[1],i[1],o);var l=s(e[0],n[0],i[0],o),h=s(e[1],n[1],i[1],o);t.rotation=-math.atan2(h,l)-math.pi/2,t.ignore=!1},da.updatelayout=function(t,e){this.childat(0).updatelayout(t,e);var i=t.getitemmodel(e).getmodel("effect");this._updateeffectanimation(t,i,e)},h(dd,jy);var la=ld.prototype;la._createpolyline=function(t,e,i){var n=t.getitemlayout(e),o=new cb({shape:{points:n}});this.add(o),this._updatecommonstl(t,e,i)},la.updatedata=function(t,e,i){var n=t.hostmodel;wo(this.childat(0),{shape:{points:t.getitemlayout(e)}},n,e),this._updatecommonstl(t,e,i)},la._updatecommonstl=function(t,e,i){var n=this.childat(0),o=t.getitemmodel(e),a=t.getitemvisual(e,"color"),s=i&&i.linestyle,l=i&&i.hoverlinestyle;i&&!t.hasitemoption||(s=o.getmodel("linestyle.normal").getlinestyle(),l=o.getmodel("linestyle.emphasis").getlinestyle()),n.usestyle(r({strokenoscale:!0,fill:"none",stroke:a},s)),n.hoverstyle=l,uo(this)},la.updatelayout=function(t,e){this.childat(0).setshape("points",t.getitemlayout(e))},h(ld,jy);var ka=kd.prototype;ka.createline=function(t,e,i){return new ld(t,e,i)},ka.updateanimationpoints=function(t,e){this._points=e;for(var i=[0],n=0,o=1;o=0&&!(n[r]<=e);r--);r=math.min(r,o-2)}else{for(var r=a;re);r++);r=math.min(r-1,o-2)}y(t.position,i[r],i[r+1],(e-n[r])/(n[r+1]-n[r]));var s=i[r+1][0]-i[r][0],l=i[r+1][1]-i[r][1];t.rotation=-math.atan2(l,s)-math.pi/2,this._lastframe=r,this._lastframepercent=e,t.ignore=!1}},h(kd,dd);var pa=zn({shape:{polyline:!1,segs:[]},buildpath:function(t,e){for(var i=e.segs,n=e.polyline,o=0;o2?t.quadraticcurveto(a[2][0],a[2][1],a[1][0],a[1][1]):t.lineto(a[1][0],a[1][1])}},finddataindex:function(t,e){for(var i=this.shape,n=i.segs,o=i.polyline,a=math.max(this.style.linewidth,1),r=0;r2){if(sn(s[0][0],s[0][1],s[2][0],s[2][1],s[1][0],s[1][1],a,t,e))return r}else if(bn(s[0][0],s[0][1],s[1][0],s[1][1],a,t,e))return r}return-1}}),oa=pd.prototype;oa.updatedata=function(t){this.group.removeall();var e=this._lineel,i=t.hostmodel;e.setshape({segs:t.maparray(t.getitemlayout),polyline:i.get("polyline")}),e.usestyle(i.getmodel("linestyle.normal").getlinestyle());var n=t.getvisual("color");n&&e.setstyle("stroke",n),e.setstyle("fill"),e.seriesindex=i.seriesindex,e.on("mousemove",function(t){e.dataindex=null;var i=e.finddataindex(t.offsetx,t.offsety);i>0&&(e.dataindex=i)}),this.group.add(e)},oa.updatelayout=function(t){var e=t.getdata();this._lineel.setshape({segs:e.maparray(e.getitemlayout)})},oa.remove=function(){this.group.removeall()},ur({type:"lines",init:function(){},render:function(t,e,i){var n=t.getdata(),o=this._linedraw,a=t.get("effect.show"),r=t.get("polyline"),s=t.get("large")&&n.count()>=t.get("largethreshold");a===this._haseffet&&r===this._ispolyline&&s===this._islarge||(o&&o.remove(),o=this._linedraw=s?new pd:new mu(r?a?kd:ld:a?dd:bu),this._haseffet=a,this._ispolyline=r,this._islarge=s);var l=t.get("zlevel"),h=t.get("effect.traillength"),u=i.getzr(),c="svg"===u.painter.gettype();c||u.painter.getlayer(l).clear(!0),null==this._lastzlevel||c||u.configlayer(this._lastzlevel,{motionblur:!1}),a&&h&&(c||u.configlayer(l,{motionblur:!0,lastframealpha:math.max(math.min(h/10+.9,1),0)})),this.group.add(o.group),o.updatedata(n),this._lastzlevel=l},updatelayout:function(t,e,i){this._linedraw.updatelayout(t);var n=i.getzr();"svg"===n.painter.gettype()||n.painter.getlayer(this._lastzlevel).clear(!0)},remove:function(t,e){this._linedraw&&this._linedraw.remove(e,!0);var i=e.getzr();"svg"===i.painter.gettype()||i.painter.getlayer(this._lastzlevel).clear(!0)},dispose:function(){}});or(function(t){t.eachseriesbytype("lines",function(t){var e=t.coordinatesystem,i=t.getdata();i.each(function(n){var o=i.getitemmodel(n),a=o.option instanceof array?o.option:o.get("coords"),r=[];if(t.get("polyline"))for(var s=0;s0){var i=a(v)?s:l;v>0&&(v=v*s+w),x[_++]=i[m],x[_++]=i[m+1],x[_++]=i[m+2],x[_++]=i[m+3]*v*256}else _+=4}return c.putimagedata(y,0,0),u},_getbrush:function(){var t=this._brushcanvas||(this._brushcanvas=iy()),e=this.pointsize+this.blursize,i=2*e;t.width=i,t.height=i;var n=t.getcontext("2d");return n.clearrect(0,0,i,i),n.shadowoffsetx=i,n.shadowblur=this.blursize,n.shadowcolor="#000",n.beginpath(),n.arc(-e,e,this.pointsize,0,2*math.pi,!0),n.closepath(),n.fill(),t},_getgradient:function(t,e,i){for(var n=this._gradientpixels,o=n[i]||(n[i]=new uint8clampedarray(1024)),a=[0,0,0,0],r=0,s=0;s<256;s++)e[i](s/255,!0,a),o[r++]=a[0],o[r++]=a[1],o[r++]=a[2],o[r++]=a[3];return o}},ur({type:"heatmap",render:function(t,e,i){var n;e.eachcomponent("visualmap",function(e){e.eachtargetseries(function(i){i===t&&(n=e)})}),this.group.removeall();var o=t.coordinatesystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderoncartesianandcalendar(o,t,i):rd(o)&&this._renderongeo(o,t,n,i)},dispose:function(){},_renderoncartesianandcalendar:function(t,e,i){if("cartesian2d"===t.type)var n=t.getaxis("x"),o=t.getaxis("y"),r=n.getbandwidth(),s=o.getbandwidth();var l=this.group,h=e.getdata(),u=e.getmodel("itemstyle.normal").getitemstyle(["color"]),c=e.getmodel("itemstyle.emphasis").getitemstyle(),d=e.getmodel("label.normal"),f=e.getmodel("label.emphasis"),g=t.type,p="cartesian2d"===g?[e.coorddimtodatadim("x")[0],e.coorddimtodatadim("y")[0],e.coorddimtodatadim("value")[0]]:[e.coorddimtodatadim("time")[0],e.coorddimtodatadim("value")[0]];h.each(function(i){var n;if("cartesian2d"===g){if(isnan(h.get(p[2],i)))return;var o=t.datatopoint([h.get(p[0],i),h.get(p[1],i)]);n=new db({shape:{x:o[0]-r/2,y:o[1]-s/2,width:r,height:s},style:{fill:h.getitemvisual(i,"color"),opacity:h.getitemvisual(i,"opacity")}})}else{if(isnan(h.get(p[1],i)))return;n=new db({z2:1,shape:t.datatorect([h.get(p[0],i)]).contentshape,style:{fill:h.getitemvisual(i,"color"),opacity:h.getitemvisual(i,"opacity")}})}var m=h.getitemmodel(i);h.hasitemoption&&(u=m.getmodel("itemstyle.normal").getitemstyle(["color"]),c=m.getmodel("itemstyle.emphasis").getitemstyle(),d=m.getmodel("label.normal"),f=m.getmodel("label.emphasis"));var v=e.getrawvalue(i),y="-";v&&null!=v[2]&&(y=v[2]),co(u,c,d,f,{labelfetcher:e,labeldataindex:i,defaulttext:y,isrecttext:!0}),n.setstyle(u),uo(n,h.hasitemoption?c:a({},c)),l.add(n),h.setitemgraphicel(i,n)})},_renderongeo:function(t,e,i,n){var o=i.targetvisuals.inrange,a=i.targetvisuals.outofrange,r=e.getdata(),s=this._hmlayer||this._hmlayer||new zd;s.blursize=e.get("blursize"),s.pointsize=e.get("pointsize"),s.minopacity=e.get("minopacity"),s.maxopacity=e.get("maxopacity");var l=t.getviewrect().clone(),h=t.getroamtransform().transform;l.applytransform(h);var u=math.max(l.x,0),c=math.max(l.y,0),d=math.min(l.width+l.x,n.getwidth()),f=math.min(l.height+l.y,n.getheight()),g=d-u,p=f-c,m=r.maparray(["lng","lat","value"],function(e,i,n){var o=t.datatopoint([e,i]);return o[0]-=u,o[1]-=c,o.push(n),o}),v=i.getextent(),y="visualmap.continuous"===i.type?ed(v,i.option.range):nd(v,i.getpiecelist(),i.option.selected);s.update(m,g,p,o.color.getnormalizer(),{inrange:o.color.getcolormapper(),outofrange:a.color.getcolormapper()},y);var x=new qe({style:{width:g,height:p,x:u,y:c,image:s.canvas},silent:!0});this.group.add(x)}});var za=zm.extend({type:"series.pictorialbar",dependencies:["grid"],defaultoption:{symbol:"circle",symbolsize:null,symbolrotate:null,symbolposition:null,symboloffset:null,symbolmargin:null,symbolrepeat:!1,symbolrepeatdirection:"end",symbolclip:!1,symbolboundingdata:null,symbolpatternsize:400,bargap:"-100%",progressive:0,hoveranimation:!1},getinitialdata:function(t){return t.stack=null,za.superapply(this,"getinitialdata",arguments)}}),na=["itemstyle","normal","borderwidth"],ea=[{xy:"x",wh:"width",index:0,posdesc:["left","right"]},{xy:"y",wh:"height",index:1,posdesc:["top","bottom"]}],ra=new nb;ur({type:"pictorialbar",render:function(t,e,i){var n=this.group,o=t.getdata(),a=this._data,r=t.coordinatesystem,s=!!r.getbaseaxis().ishorizontal(),l=r.grid.getrect(),h={ecsize:{width:i.getwidth(),height:i.getheight()},seriesmodel:t,coordsys:r,coordsysextent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],ishorizontal:s,valuedim:ea[+s],categorydim:ea[1-s]};return o.diff(a).add(function(t){if(o.hasvalue(t)){var e=yd(o,t),i=vd(o,t,e,h),a=qd(o,h,i);o.setitemgraphicel(t,a),n.add(a),rf(a,h,i)}}).update(function(t,e){var i=a.getitemgraphicel(e);if(o.hasvalue(t)){var r=yd(o,t),s=vd(o,t,r,h),l=nf(o,s);i&&l!==i.__pictorialshapestr&&(n.remove(i),o.setitemgraphicel(t,null),i=null),i?tf(i,h,s):i=qd(o,h,s,!0),o.setitemgraphicel(t,i),i.__pictorialsymbolmeta=s,n.add(i),rf(i,h,s)}else n.remove(i)}).remove(function(t){var e=a.getitemgraphicel(t);e&&ef(a,t,e.__pictorialsymbolmeta.animationmodel,e)}).execute(),this._data=o,this.group},dispose:n,remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachitemgraphicel(function(e){ef(n,e.dataindex,t,e)}):i.removeall()}});or(v(nl,"pictorialbar")),ar(v(cm,"pictorialbar","roundrect",null));var va=function(t,e,i,n,o){us.call(this,t,e,i),this.type=n||"value",this.position=o||"bottom",this.orient=null,this._labelinterval=null};va.prototype={constructor:va,model:null,ishorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointtodata:function(t,e){return this.coordinatesystem.pointtodata(t,e)[0]},toglobalcoord:null,tolocalcoord:null},h(va,us),lf.prototype={type:"singleaxis",axispointerenabled:!0,constructor:lf,_init:function(t,e,i){var n=this.dimension,o=new va(n,er(t),[0,0],t.get("type"),t.get("position")),a="category"===o.type;o.onband=a&&t.get("boundarygap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinatesystem=this,this._axis=o},update:function(t,e){t.eachseries(function(t){if(t.coordinatesystem===this){var e=t.getdata(),i=this.dimension;this._axis.scale.unionextentfromdata(e,t.coorddimtodatadim(i)),nr(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=ko({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getwidth(),height:e.getheight()}),this._adjustaxis()},getrect:function(){return this._rect},_adjustaxis:function(){var t=this._rect,e=this._axis,i=e.ishorizontal(),n=i?[0,t.width]:[0,t.height],o=e.reverse?1:0;e.setextent(n[o],n[1-o]),this._updateaxistransform(e,i?t.x:t.y)},_updateaxistransform:function(t,e){var i=t.getextent(),n=i[0]+i[1],o=t.ishorizontal();t.toglobalcoord=o?function(t){return t+e}:function(t){return n-t+e},t.tolocalcoord=o?function(t){return t-e}:function(t){return n-t+e}},getaxis:function(){return this._axis},getbaseaxis:function(){return this._axis},getaxes:function(){return[this._axis]},gettooltipaxes:function(){return{baseaxes:[this.getaxis()]}},containpoint:function(t){var e=this.getrect(),i=this.getaxis();return"horizontal"===i.orient?i.contain(i.tolocalcoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.tolocalcoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointtodata:function(t){var e=this.getaxis();return[e.coordtodata(e.tolocalcoord(t["horizontal"===e.orient?0:1]))]},datatopoint:function(t){var e=this.getaxis(),i=this.getrect(),n=[],o="horizontal"===e.orient?0:1;return t instanceof array&&(t=t[0]),n[o]=e.toglobalcoord(e.datatocoord(+t)),n[1-o]=0===o?i.y+i.height/2:i.x+i.width/2,n}},ua.register("single",{create:function(t,e){var i=[];return t.eachcomponent("singleaxis",function(n,o){var a=new lf(n,t,e);a.name="single_"+o,a.resize(n,e),n.coordinatesystem=a,i.push(a)}),t.eachseries(function(e){if("singleaxis"===e.get("coordinatesystem")){var i=t.querycomponents({maintype:"singleaxis",index:e.get("singleaxisindex"),id:e.get("singleaxisid")})[0];e.coordinatesystem=i&&i.coordinatesystem}}),i},dimensions:lf.prototype.dimensions});var ba=dm.getinterval,ga=dm.ifignoreontick,wa=["axisline","axisticklabel","axisname"],ha=em.extend({type:"singleaxis",axispointerclass:"singleaxispointer",render:function(t,e,i,n){var o=this.group;o.removeall();var a=hf(t),r=new dm(t,a);d(wa,r.add,r),o.add(r.getgroup()),t.get("splitline.show")&&this._splitline(t,a.labelinterval),ha.supercall(this,"render",t,e,i,n)},_splitline:function(t,e){var i=t.axis;if(!i.scale.isblank()){var n=t.getmodel("splitline"),o=n.getmodel("linestyle"),a=o.get("width"),r=o.get("color"),s=ba(n,e);r=r instanceof array?r:[r];for(var l=t.coordinatesystem.getrect(),h=i.ishorizontal(),u=[],c=0,d=i.gettickscoords(),f=[],g=[],p=t.get("axislabel.showminlabel"),m=t.get("axislabel.showmaxlabel"),v=0;v=0)&&i({type:"updateaxispointer",currtrigger:t,x:e&&e.offsetx,y:e&&e.offsety})})},remove:function(t,e){tf(e.getzr(),"axispointer"),ka.superapply(this._model,"remove",arguments)},dispose:function(t,e){tf("axispointer",e),ka.superapply(this._model,"dispose",arguments)}}),ja=eb(),qa=i,tc=m;(af.prototype={_group:null,_lastgraphickey:null,_handle:null,_dragging:!1,_lastvalue:null,_laststatus:null,_payloadinfo:null,animationthreshold:15,render:function(t,e,i,n){var o=e.get("value"),a=e.get("status");if(this._axismodel=t,this._axispointermodel=e,this._api=i,n||this._lastvalue!==o||this._laststatus!==a){this._lastvalue=o,this._laststatus=a;var r=this._group,s=this._handle;if(!a||"hide"===a)return r&&r.hide(),void(s&&s.hide());r&&r.show(),s&&s.show();var l={};this.makeeloption(l,o,t,e,i);var h=l.graphickey;h!==this._lastgraphickey&&this.clear(i),this._lastgraphickey=h;var u=this._moveanimation=this.determineanimation(t,e);if(r){var c=v(cf,e,u);this.updatepointerel(r,l,c,e),this.updatelabelel(r,l,c,e)}else r=this._group=new jy,this.createpointerel(r,l,t,e),this.createlabelel(r,l,t,e),i.getzr().add(r);pf(r,e,!0),this._renderhandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineanimation:function(t,e){var i=e.get("animation"),n=t.axis,o="category"===n.type,a=e.get("snap");if(!a&&!o)return!1;if("auto"===i||null==i){var r=this.animationthreshold;if(o&&n.getbandwidth()>r)return!0;if(a){var s=xs(t).seriesdatacount,l=n.getextent();return math.abs(l[0]-l[1])/s>r}return!1}return!0===i},makeeloption:function(t,e,i,n,o){},createpointerel:function(t,e,i,n){var o=e.pointer;if(o){var a=ja(t).pointerel=new tb[o.type](qa(e.pointer));t.add(a)}},createlabelel:function(t,e,i,n){if(e.label){var o=ja(t).labelel=new db(qa(e.label));t.add(o),lf(o,n)}},updatepointerel:function(t,e,i){var n=ja(t).pointerel;n&&(n.setstyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updatelabelel:function(t,e,i,n){var o=ja(t).labelel;o&&(o.setstyle(e.label.style),i(o,{shape:e.label.shape,position:e.label.position}),lf(o,n))},_renderhandle:function(t){if(!this._dragging&&this.updatehandletransform){var e=this._axispointermodel,i=this._api.getzr(),n=this._handle,o=e.getmodel("handle"),a=e.get("status");if(!o.get("show")||!a||"hide"===a)return n&&i.remove(n),void(this._handle=null);var r;this._handle||(r=!0,n=this._handle=do(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){bx(t.event)},onmousedown:tc(this._onhandledragmove,this,0,0),drift:tc(this._onhandledragmove,this),ondragend:tc(this._onhandledragend,this)}),i.add(n)),pf(n,e,!1);var s=["color","bordercolor","borderwidth","opacity","shadowcolor","shadowblur","shadowoffsetx","shadowoffsety"];n.setstyle(o.getitemstyle(null,s));var l=o.get("size");y(l)||(l=[l,l]),n.attr("scale",[l[0]/2,l[1]/2]),la(this,"_dodispatchaxispointer",o.get("throttle")||0,"fixrate"),this._movehandletovalue(t,r)}},_movehandletovalue:function(t,e){cf(this._axispointermodel,!e&&this._moveanimation,this._handle,kf(this.gethandletransform(t,this._axismodel,this._axispointermodel)))},_onhandledragmove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updatehandletransform(kf(i),[t,e],this._axismodel,this._axispointermodel);this._payloadinfo=n,i.stopanimation(),i.attr(kf(n)),ja(i).lastprop=null,this._dodispatchaxispointer()}},_dodispatchaxispointer:function(){if(this._handle){var t=this._payloadinfo,e=this._axismodel;this._api.dispatchaction({type:"updateaxispointer",x:t.cursorpoint[0],y:t.cursorpoint[1],tooltipoption:t.tooltipoption,axesinfo:[{axisdim:e.axis.dim,axisindex:e.componentindex}]})}},_onhandledragend:function(t){if(this._dragging=!1,this._handle){var e=this._axispointermodel.get("value");this._movehandletovalue(e),this._api.dispatchaction({type:"hidetip"})}},gethandletransform:null,updatehandletransform:null,clear:function(t){this._lastvalue=null,this._laststatus=null;var e=t.getzr(),i=this._group,n=this._handle;e&&i&&(this._lastgraphickey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadinfo=null)},doclear:function(){},buildlabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}}).constructor=af,ki(af);var ec=af.extend({makeeloption:function(t,e,i,n,o){var a=i.axis,r=a.grid,s=n.get("type"),l=hf(r,a).getotheraxis(a).getglobalextent(),h=a.toglobalcoord(a.datatocoord(e,!0));if(s&&"none"!==s){var u=of(n),c=ic[s](a,h,l,u);c.style=u,t.graphickey=c.type,t.pointer=c}vf(e,t,js(r.model,i),i,n,o)},gethandletransform:function(t,e,i){var n=js(e.axis.grid.model,e,{labelinside:!1});return n.labelmargin=i.get("handle.margin"),{position:rf(e.axis,t,n),rotation:n.rotation+(n.labeldirection<0?math.pi:0)}},updatehandletransform:function(t,e,i,n){var o=i.axis,a=o.grid,r=o.getglobalextent(!0),s=hf(a,o).getotheraxis(o).getglobalextent(),l="x"===o.dim?0:1,h=t.position;h[l]+=e[l],h[l]=math.min(r[1],h[l]),h[l]=math.max(r[0],h[l]);var u=(s[1]+s[0])/2,c=[u,u];c[l]=h[l];var d=[{verticalalign:"middle"},{align:"center"}];return{position:h,rotation:t.rotation,cursorpoint:c,tooltipoption:d[l]}}}),ic={line:function(t,e,i,n){var o=bf([e,i[0]],[e,i[1]],ff(t));return yn({shape:o,style:n}),{type:"line",shape:o}},shadow:function(t,e,i,n){var o=t.getbandwidth(),a=i[1]-i[0];return{type:"rect",shape:gf([e-o/2,i[0]],[o,a],ff(t))}}};em.registeraxispointerclass("cartesianaxispointer",ec),tr(function(t){if(t){(!t.axispointer||0===t.axispointer.length)&&(t.axispointer={});var e=t.axispointer.link;e&&!y(e)&&(t.axispointer.link=[e])}}),er(pw.processor.statistic,function(t,e){t.getcomponent("axispointer").coordsysaxesinfo=bs(t,e)}),ir({type:"updateaxispointer",event:"updateaxispointer",update:":updateaxispointer"},function(t,e,i){var n=t.currtrigger,o=[t.x,t.y],a=t,r=t.dispatchaction||m(i.dispatchaction,i),s=e.getcomponent("axispointer").coordsysaxesinfo;if(s){xf(o)&&(o=ua({seriesindex:a.seriesindex,dataindex:a.dataindex},e).point);var l=xf(o),h=a.axesinfo,u=s.axesinfo,c="leave"===n||xf(o),d={},f={},g={list:[],map:{}},p={showpointer:ja(df,f),showtooltip:ja(ff,g)};xa(s.coordsysmap,function(t,e){var i=l||t.containpoint(o);xa(s.coordsysaxesinfo[e],function(t,e){var n=t.axis,a=vf(h,t);if(!c&&i&&(!h||a)){var r=a&&a.value;null!=r||l||(r=n.pointtodata(o)),null!=r&&uf(t,r,p,!1,d)}})});var v={};return xa(u,function(t,e){var i=t.linkgroup;i&&!f[e]&&xa(i.axesinfo,function(e,n){var o=f[n];if(e!==t&&o){var a=o.value;i.mapper&&(a=t.axis.scale.parse(i.mapper(a,yf(e),yf(t)))),v[t.key]=a}})}),xa(v,function(t,e){uf(u[e],t,p,!0,d)}),gf(f,u,d),pf(g,o,t,r),mf(u,0,i),d}});var nc=["x","y"],oc=["width","height"],ac=af.extend({makeeloption:function(t,e,i,n,o){var a=i.axis,r=a.coordinatesystem,s=uf(r,1-zf(a)),l=r.datatopoint(e)[0],h=n.get("type");if(h&&"none"!==h){var u=of(n),c=rc[h](a,l,s,u);c.style=u,t.graphickey=c.type,t.pointer=c}vf(e,t,hf(i),i,n,o)},gethandletransform:function(t,e,i){var n=hf(e,{labelinside:!1});return n.labelmargin=i.get("handle.margin"),{position:rf(e.axis,t,n),rotation:n.rotation+(n.labeldirection<0?math.pi:0)}},updatehandletransform:function(t,e,i,n){var o=i.axis,a=o.coordinatesystem,r=zf(o),s=uf(a,r),l=t.position;l[r]+=e[r],l[r]=math.min(s[1],l[r]),l[r]=math.max(s[0],l[r]);var h=uf(a,1-r),u=(h[1]+h[0])/2,c=[u,u];return c[r]=l[r],{position:l,rotation:t.rotation,cursorpoint:c,tooltipoption:{verticalalign:"middle"}}}}),rc={line:function(t,e,i,n){var o=bf([e,i[0]],[e,i[1]],zf(t));return yn({shape:o,style:n}),{type:"line",shape:o}},shadow:function(t,e,i,n){var o=t.getbandwidth(),a=i[1]-i[0];return{type:"rect",shape:gf([e-o/2,i[0]],[o,a],zf(t))}}};em.registeraxispointerclass("singleaxispointer",ac),lr({type:"single"});var sc=yw.extend({type:"series.themeriver",dependencies:["singleaxis"],namemap:null,init:function(t){sc.superapply(this,"init",arguments),this.legenddataprovider=function(){return this.getrawdata()}},fixdata:function(t){for(var e=t.length,i=f(jc().key(function(t){return t[2]}).entries(t),function(t){return{name:t.key,datalist:t.values}}),n=i.length,o=-1,a=-1,r=0;ro&&(o=s,a=r)}for(var l=0;ln[1]&&n.reverse(),{coordsys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:m(function(n){var o=e.datatoradius(n[0]),a=i.datatoangle(n[1]),r=t.coordtopoint([o,a]);return r.push(o,a*math.pi/180),r}),size:m(jf,t)}}},calendar:function(t){var e=t.getrect(),i=t.getrangeinfo();return{coordsys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellwidth:t.getcellwidth(),cellheight:t.getcellheight(),rangeinfo:{start:i.start,end:i.end,weeks:i.weeks,daycount:i.allday}},api:{coord:m(t.datatopoint,t)}}}};hr({type:"series.custom",dependencies:["grid","polar","geo","singleaxis","calendar"],defaultoption:{coordinatesystem:"cartesian2d",zlevel:0,z:2,legendhoverlink:!0},getinitialdata:function(t,e){return sr(t.data,this,e)}}),ur({type:"custom",_data:null,render:function(t,e,i){var n=this._data,o=t.getdata(),a=this.group,r=ig(t,o,e,i);o.diff(n).add(function(e){o.hasvalue(e)&&og(null,e,r(e),t,a,o)}).update(function(e,i){var s=n.getitemgraphicel(i);o.hasvalue(e)?og(s,e,r(e),t,a,o):s&&a.remove(s)}).remove(function(t){var e=n.getitemgraphicel(t);e&&a.remove(e)}).execute(),this._data=o},dispose:n}),tr(function(t){var e=t.graphic;y(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])});var gc=sr({type:"graphic",defaultoption:{elements:[],parentid:null},_eloptionstoupdate:null,mergeoption:function(t){var e=this.option.elements;this.option.elements=null,gc.superapply(this,"mergeoption",arguments),this.option.elements=e},optionupdated:function(t,e){var i=this.option,n=(e?i:t).elements,o=i.elements=e?[]:i.elements,a=[];this._flatten(n,a);var r=vo(o,a);bo(r);var s=this._eloptionstoupdate=[];d(r,function(t,e){var i=t.option;i&&(s.push(i),gg(t,i),pg(o,e,i),mg(o[e],i))},this);for(var l=o.length-1;l>=0;l--)null==o[l]?o.splice(l,1):delete o[l].$action},_flatten:function(t,e,i){d(t,function(t){if(t){i&&(t.parentoption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}},this)},useeloptionstoupdate:function(){var t=this._eloptionstoupdate;return this._eloptionstoupdate=null,t}});lr({type:"graphic",init:function(t,e){this._elmap=z(),this._lastgraphicmodel},render:function(t,e,i){t!==this._lastgraphicmodel&&this._clear(),this._lastgraphicmodel=t,this._updateelements(t,i),this._relocate(t,i)},_updateelements:function(t,e){var i=t.useeloptionstoupdate();if(i){var n=this._elmap,o=this.group;d(i,function(t){var e=t.$action,i=t.id,a=n.get(i),r=t.parentid,s=null!=r?n.get(r):o;if("text"===t.type){var l=t.style;t.hv&&t.hv[1]&&(l.textverticalalign=l.textbaseline=null),!l.hasownproperty("textfill")&&l.fill&&(l.textfill=l.fill),!l.hasownproperty("textstroke")&&l.stroke&&(l.textstroke=l.stroke)}var h=dg(t);e&&"merge"!==e?"replace"===e?(cg(a,n),ug(i,s,h,n)):"remove"===e&&cg(a,n):a?a.attr(h):ug(i,s,h,n);var u=n.get(i);u&&(u.__ecgraphicwidth=t.width,u.__ecgraphicheight=t.height)})}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,o=this._elmap,a=i.length-1;a>=0;a--){var r=i[a],s=o.get(r.id);if(s){var l=s.parent;jo(s,r,l===n?{width:e.getwidth(),height:e.getheight()}:{width:l.__ecgraphicwidth||0,height:l.__ecgraphicheight||0},null,{hv:r.hv,boundingmode:r.bounding})}}},_clear:function(){var t=this._elmap;t.each(function(e){cg(e,t)}),this._elmap=z()},dispose:function(){this._clear()}});var pc=sr({type:"legend.plain",dependencies:["series"],layoutmode:{type:"box",ignoresize:!0},init:function(t,e,i){this.mergedefaultandtheme(t,i),t.selected=t.selected||{}},mergeoption:function(t){pc.supercall(this,"mergeoption",t)},optionupdated:function(){this._updatedata(this.ecmodel);var t=this._data;if(t[0]&&"single"===this.get("selectedmode")){for(var e=!1,i=0;i=0},defaultoption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundcolor:"rgba(0,0,0,0)",bordercolor:"#ccc",borderradius:0,borderwidth:0,padding:5,itemgap:10,itemwidth:25,itemheight:14,inactivecolor:"#ccc",textstyle:{color:"#333"},selectedmode:!0,tooltip:{show:!1}}});ir("legendtoggleselect","legendselectchanged",v(vg,"toggleselected")),ir("legendselect","legendselected",v(vg,"select")),ir("legendunselect","legendunselected",v(vg,"unselect"));var mc=v,vc=d,yc=jy,xc=lr({type:"legend.plain",newlinedisabled:!1,init:function(){this.group.add(this._contentgroup=new yc),this._backgroundel},getcontentgroup:function(){return this._contentgroup},render:function(t,e,i){if(this.resetinner(),t.get("show",!0)){var n=t.get("align");n&&"auto"!==n||(n="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderinner(n,t,e,i);var o=t.getboxlayoutparams(),a={width:i.getwidth(),height:i.getheight()},s=t.get("padding"),l=ko(o,a,s),h=this.layoutinner(t,n,l),u=ko(r({width:h.width,height:h.height},o),a,s);this.group.attr("position",[u.x-h.x,u.y-h.y]),this.group.add(this._backgroundel=xg(h,t))}},resetinner:function(){this.getcontentgroup().removeall(),this._backgroundel&&this.group.remove(this._backgroundel)},renderinner:function(t,e,i,n){var o=this.getcontentgroup(),a=z(),r=e.get("selectedmode");vc(e.getdata(),function(s,l){var h=s.get("name");if(this.newlinedisabled||""!==h&&"\n"!==h){var u=i.getseriesbyname(h)[0];if(!a.get(h))if(u){var c=u.getdata(),d=c.getvisual("color");"function"==typeof d&&(d=d(u.getdataparams(0)));var f=c.getvisual("legendsymbol")||"roundrect",g=c.getvisual("symbol");this._createitem(h,l,s,e,f,g,t,d,r).on("click",mc(_g,h,n)).on("mouseover",mc(bg,u,null,n)).on("mouseout",mc(wg,u,null,n)),a.set(h,!0)}else i.eachrawseries(function(i){if(!a.get(h)&&i.legenddataprovider){var o=i.legenddataprovider(),u=o.indexofname(h);if(u<0)return;var c=o.getitemvisual(u,"color");this._createitem(h,l,s,e,"roundrect",null,t,c,r).on("click",mc(_g,h,n)).on("mouseover",mc(bg,i,h,n)).on("mouseout",mc(wg,i,h,n)),a.set(h,!0)}},this)}else o.add(new yc({newline:!0}))},this)},_createitem:function(t,e,i,n,o,r,s,l,h){var u=n.get("itemwidth"),c=n.get("itemheight"),d=n.get("inactivecolor"),f=n.isselected(t),g=new yc,p=i.getmodel("textstyle"),m=i.get("icon"),v=i.getmodel("tooltip"),y=v.parentmodel;if(o=m||o,g.add(hr(o,0,0,u,c,f?l:d,!0)),!m&&r&&(r!==o||"none"==r)){var x=.8*c;"none"===r&&(r="circle"),g.add(hr(r,(u-x)/2,(c-x)/2,x,x,f?l:d))}var _="left"===s?u+5:-5,b=s,w=n.get("formatter"),s=t;"string"==typeof w&&w?s=w.replace("{name}",null!=t?t:""):"function"==typeof w&&(s=w(t)),g.add(new ib({style:fo({},p,{text:s,x:_,y:c/2,textfill:f?p.gettextcolor():d,textalign:b,textverticalalign:"middle"})}));var m=new db({shape:g.getboundingrect(),invisible:!0,tooltip:v.get("show")?a({content:t,formatter:y.get("formatter",!0)||function(){return t},formatterparams:{componenttype:"legend",legendindex:n.componentindex,name:t,$vars:["name"]}},v.option):null});return g.add(m),g.eachchild(function(t){t.silent=!0}),m.silent=!h,this.getcontentgroup().add(g),uo(g),g.__legenddataindex=e,g},layoutinner:function(t,e,i){var n=this.getcontentgroup();hb(t.get("orient"),n,t.get("itemgap"),i.width,i.height);var o=n.getboundingrect();return n.attr("position",[-o.x,-o.y]),this.group.getboundingrect()}});er(function(t){var e=t.findcomponents({maintype:"legend"});e&&e.length&&t.filterseries(function(t){for(var i=0;ii[s],f=[-u.x,-u.y];f[r]=n.position[r];var g=[0,0],p=[-c.x,-c.y],m=t(t.get("pagebuttongap",!0),t.get("itemgap",!0));d&&("end"===t.get("pagebuttonposition",!0)?p[r]+=i[s]-c[s]:g[r]+=c[s]+m),p[1-r]+=u[l]/2-c[l]/2,n.attr("position",f),o.attr("position",g),a.attr("position",p);var v=this.group.getboundingrect();if((v={x:0,y:0})[s]=d?i[s]:u[s],v[l]=math.max(u[l],c[l]),v[h]=math.min(0,c[h]+p[1-r]),o.__rectsize=i[s],d){var y={x:0,y:0};y[s]=math.max(i[s]-c[s]-m,0),y[l]=v[l],o.setclippath(new db({shape:y})),o.__rectsize=y[s]}else a.eachchild(function(t){t.attr({invisible:!0,silent:!0})});var x=this._getpageinfo(t);return null!=x.pageindex&&wo(n,{position:x.contentposition},!!d&&t),this._updatepageinfoview(t,x),v},_pagego:function(t,e,i){var n=this._getpageinfo(e)[t];null!=n&&i.dispatchaction({type:"legendscroll",scrolldataindex:n,legendid:e.id})},_updatepageinfoview:function(t,e){var i=this._controllergroup;d(["pageprev","pagenext"],function(n){var o=null!=e[n+"dataindex"],a=i.childofname(n);a&&(a.setstyle("fill",o?t.get("pageiconcolor",!0):t.get("pageiconinactivecolor",!0)),a.cursor=o?"pointer":"default")});var n=i.childofname("pagetext"),o=t.get("pageformatter"),a=e.pageindex,r=null!=a?a+1:0,s=e.pagecount;n&&o&&n.setstyle("text",_(o)?o.replace("{current}",r).replace("{total}",s):o({current:r,total:s}))},_getpageinfo:function(t){function e(t){var e=t.getboundingrect().clone();return e[f]+=t.position[u],e}var i,n,o,a,r=t.get("scrolldataindex",!0),s=this.getcontentgroup(),l=s.getboundingrect(),h=this._containergroup.__rectsize,u=t.getorient().index,c=wc[u],d=wc[1-u],f=sc[u],g=s.position.slice();this._showcontroller?s.eachchild(function(t){t.__legenddataindex===r&&(a=t)}):a=s.childat(0);var p=h?math.ceil(l[c]/h):0;if(a){var m=a.getboundingrect(),v=a.position[u]+m[f];g[u]=-v-l[f],i=math.floor(p*(v+m[f]+h/2)/l[c]),i=l[c]&&p?math.max(0,math.min(p-1,i)):-1;var y={x:0,y:0};y[c]=h,y[d]=l[d],y[f]=-g[u]-l[f];var x,_=s.children();if(s.eachchild(function(t,i){var n=e(t);n.intersect(y)&&(null==x&&(x=i),o=t.__legenddataindex),i===_.length-1&&n[f]+n[c]<=y[f]+y[c]&&(o=null)}),null!=x){var b=e(_[x]);if(y[f]=b[f]+b[c]-y[c],x<=0&&b[f]>=y[f])n=null;else{for(;x>0&&e(_[x-1]).intersect(y);)x--;n=_[x].__legenddataindex}}}return{contentposition:g,pageindex:i,pagecount:p,pageprevdataindex:n,pagenextdataindex:o}}});ir("legendscroll","legendscroll",function(t,e){var i=t.scrolldataindex;null!=i&&e.eachcomponent({maintype:"legend",subtype:"scroll",query:t},function(t){t.setscrolldataindex(i)})}),sr({type:"tooltip",dependencies:["axispointer"],defaultoption:{zlevel:0,z:8,show:!0,showcontent:!0,trigger:"item",triggeron:"mousemove|click",alwaysshowcontent:!1,displaymode:"single",confine:!1,showdelay:0,hidedelay:100,transitionduration:.4,enterable:!1,backgroundcolor:"rgba(50,50,50,0.7)",bordercolor:"#333",borderradius:4,borderwidth:0,padding:5,extracsstext:"",axispointer:{type:"line",axis:"auto",animation:"auto",animationdurationupdate:200,animationeasingupdate:"exponentialout",crossstyle:{color:"#999",width:1,type:"dashed",textstyle:{}}},textstyle:{color:"#fff",fontsize:14}}});var ic=d,tc=bi,ac=["","-webkit-","-moz-","-o-"];ag.prototype={constructor:ag,_enterable:!0,update:function(){var t=this._container,e=t.currentstyle||document.defaultview.getcomputedstyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){cleartimeout(this._hidetimeout);var e=this.el;e.style.csstext="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+tg(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extracsstext")||""),e.style.display=e.innerhtml?"block":"none",this._show=!0},setcontent:function(t){this.el.innerhtml=null==t?"":t},setenterable:function(t){this._enterable=t},getsize:function(){var t=this.el;return[t.clientwidth,t.clientheight]},moveto:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getviewportrootoffset())&&(t+=i.offsetleft,e+=i.offsettop);var o=this.el.style;o.left=t+"px",o.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hidelater:function(t){!this._show||this._incontent&&this._enterable||(t?(this._hidedelay=t,this._show=!1,this._hidetimeout=settimeout(m(this.hide,this),t)):this.hide())},isshow:function(){return this._show}};var cc=m,dc=d,lc=si,kc=new db({shape:{x:-1,y:-1,width:2,height:2}});lr({type:"tooltip",init:function(t,e){if(!uv.node){var i=new ag(e.getdom(),e);this._tooltipcontent=i}},render:function(t,e,i){if(!uv.node){this.group.removeall(),this._tooltipmodel=t,this._ecmodel=e,this._api=i,this._lastdatabycoordsys=null,this._alwaysshowcontent=t.get("alwaysshowcontent");var n=this._tooltipcontent;n.update(),n.setenterable(t.get("enterable")),this._initgloballistener(),this._keepshow()}},_initgloballistener:function(){var t=this._tooltipmodel.get("triggeron");_f("itemtooltip",this._api,cc(function(e,i,n){"none"!==t&&(t.indexof(e)>=0?this._tryshow(i,n):"leave"===e&&this._hide(n))},this))},_keepshow:function(){var t=this._tooltipmodel,e=this._ecmodel,i=this._api;if(null!=this._lastx&&null!=this._lasty&&"none"!==t.get("triggeron")){var n=this;cleartimeout(this._refreshupdatetimeout),this._refreshupdatetimeout=settimeout(function(){n.manuallyshowtip(t,e,i,{x:n._lastx,y:n._lasty})})}},manuallyshowtip:function(t,e,i,n){if(n.from!==this.uid&&!uv.node){var o=dg(n,i);this._ticket="";var a=n.databycoordsys;if(n.tooltip&&null!=n.x&&null!=n.y){var r=kc;r.position=[n.x,n.y],r.update(),r.tooltip=n.tooltip,this._tryshow({offsetx:n.x,offsety:n.y,target:r},o)}else if(a)this._tryshow({offsetx:n.x,offsety:n.y,position:n.position,event:{},databycoordsys:n.databycoordsys,tooltipoption:n.tooltipoption},o);else if(null!=n.seriesindex){if(this._manuallyaxisshowtip(t,e,i,n))return;var s=ua(n,e),l=s.point[0],h=s.point[1];null!=l&&null!=h&&this._tryshow({offsetx:l,offsety:h,position:n.position,target:s.el,event:{}},o)}else null!=n.x&&null!=n.y&&(i.dispatchaction({type:"updateaxispointer",x:n.x,y:n.y}),this._tryshow({offsetx:n.x,offsety:n.y,position:n.position,target:i.getzr().findhover(n.x,n.y).target,event:{}},o))}},manuallyhidetip:function(t,e,i,n){var o=this._tooltipcontent;this._alwaysshowcontent||o.hidelater(this._tooltipmodel.get("hidedelay")),this._lastx=this._lasty=null,n.from!==this.uid&&this._hide(dg(n,i))},_manuallyaxisshowtip:function(t,e,i,n){var o=n.seriesindex,a=n.dataindex,r=e.getcomponent("axispointer").coordsysaxesinfo;if(null!=o&&null!=a&&null!=r){var s=e.getseriesbyindex(o);if(s&&"axis"===(t=cg([s.getdata().getitemmodel(a),s,(s.coordinatesystem||{}).model,t])).get("trigger"))return i.dispatchaction({type:"updateaxispointer",seriesindex:o,dataindex:a,position:n.position}),!0}},_tryshow:function(t,e){var i=t.target;if(this._tooltipmodel){this._lastx=t.offsetx,this._lasty=t.offsety;var n=t.databycoordsys;n&&n.length?this._showaxistooltip(n,t):i&&null!=i.dataindex?(this._lastdatabycoordsys=null,this._showseriesitemtooltip(t,i,e)):i&&i.tooltip?(this._lastdatabycoordsys=null,this._showcomponentitemtooltip(t,i,e)):(this._lastdatabycoordsys=null,this._hide(e))}},_showormove:function(t,e){var i=t.get("showdelay");e=m(e,this),cleartimeout(this._showtimout),i>0?this._showtimout=settimeout(e,i):e()},_showaxistooltip:function(t,e){var i=this._ecmodel,n=this._tooltipmodel,o=[e.offsetx,e.offsety],a=[],r=[],s=cg([e.tooltipoption,n]);dc(t,function(t){dc(t.databyaxis,function(t){var e=i.getcomponent(t.axisdim+"axis",t.axisindex),n=t.value,o=[];if(e&&null!=n){var s=ef(n,e.axis,i,t.seriesdataindices,t.valuelabelopt);d(t.seriesdataindices,function(a){var l=i.getseriesbyindex(a.seriesindex),h=a.dataindexinside,u=l&&l.getdataparams(h);u.axisdim=t.axisdim,u.axisindex=t.axisindex,u.axistype=t.axistype,u.axisid=t.axisid,u.axisvalue=br(e.axis,n),u.axisvaluelabel=s,u&&(r.push(u),o.push(l.formattooltip(h,!0)))});var l=s;a.push((l?gi(l)+"
":"")+o.join("
"))}})},this),a.reverse(),a=a.join("
");var l=e.position;this._showormove(s,function(){this._updatecontentnotchangedonaxis(t)?this._updateposition(s,l,o[0],o[1],this._tooltipcontent,r):this._showtooltipcontent(s,a,r,math.random(),o[0],o[1],l)})},_showseriesitemtooltip:function(t,e,i){var n=this._ecmodel,o=e.seriesindex,a=n.getseriesbyindex(o),r=e.datamodel||a,s=e.dataindex,l=e.datatype,h=r.getdata(),u=cg([h.getitemmodel(s),r,a&&(a.coordinatesystem||{}).model,this._tooltipmodel]),c=u.get("trigger");if(null==c||"item"===c){var d=r.getdataparams(s,l),f=r.formattooltip(s,!1,l),g="item_"+r.name+"_"+s;this._showormove(u,function(){this._showtooltipcontent(u,f,d,g,t.offsetx,t.offsety,t.position,t.target)}),i({type:"showtip",dataindexinside:s,dataindex:h.getrawindex(s),seriesindex:o,from:this.uid})}},_showcomponentitemtooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var o=n;n={content:o,formatter:o}}var a=new lo(n,this._tooltipmodel,this._ecmodel),r=a.get("content"),s=math.random();this._showormove(a,function(){this._showtooltipcontent(a,r,a.get("formatterparams")||{},s,t.offsetx,t.offsety,t.position,e)}),i({type:"showtip",from:this.uid})},_showtooltipcontent:function(t,e,i,n,o,a,r,s){if(this._ticket="",t.get("showcontent")&&t.get("show")){var l=this._tooltipcontent,h=t.get("formatter");r=r||t.get("position");var u=e;if(h&&"string"==typeof h)u=wi(h,i,!0);else if("function"==typeof h){var c=cc(function(e,n){e===this._ticket&&(l.setcontent(n),this._updateposition(t,r,o,a,l,i,s))},this);this._ticket=n,u=h(i,n,c)}l.setcontent(u),l.show(t),this._updateposition(t,r,o,a,l,i,s)}},_updateposition:function(t,e,i,n,o,a,r){var s=this._api.getwidth(),l=this._api.getheight();e=e||t.get("position");var h=o.getsize(),u=t.get("align"),c=t.get("verticalalign"),d=r&&r.getboundingrect().clone();if(r&&d.applytransform(r.transform),"function"==typeof e&&(e=e([i,n],a,o.el,d,{viewsize:[s,l],contentsize:h.slice()})),y(e))i=lc(e[0],s),n=lc(e[1],l);else if(b(e)){e.width=h[0],e.height=h[1];var f=ko(e,{width:s,height:l});i=f.x,n=f.y,u=null,c=null}else"string"==typeof e&&r?(i=(g=og(e,d,h))[0],n=g[1]):(i=(g=lg(i,n,o.el,s,l,u?null:20,c?null:20))[0],n=g[1]);if(u&&(i-=zg(u)?h[0]/2:"right"===u?h[0]:0),c&&(n-=zg(c)?h[1]/2:"bottom"===c?h[1]:0),t.get("confine")){var g=kg(i,n,o.el,s,l);i=g[0],n=g[1]}o.moveto(i,n)},_updatecontentnotchangedonaxis:function(t){var e=this._lastdatabycoordsys,i=!!e&&e.length===t.length;return i&&dc(e,function(e,n){var o=e.databyaxis||{},a=(t[n]||{}).databyaxis||[];(i&=o.length===a.length)&&dc(o,function(t,e){var n=a[e]||{},o=t.seriesdataindices||[],r=n.seriesdataindices||[];(i&=t.value===n.value&&t.axistype===n.axistype&&t.axisid===n.axisid&&o.length===r.length)&&dc(o,function(t,e){var n=r[e];i&=t.seriesindex===n.seriesindex&&t.dataindex===n.dataindex})})}),this._lastdatabycoordsys=t,!!i},_hide:function(t){this._lastdatabycoordsys=null,t({type:"hidetip",from:this.uid})},dispose:function(t,e){uv.node||(this._tooltipcontent.hide(),tf("itemtooltip",e))}}),ir({type:"showtip",event:"showtip",update:"tooltip:manuallyshowtip"},function(){}),ir({type:"hidetip",event:"hidetip",update:"tooltip:manuallyhidetip"},function(){}),vg.prototype={constructor:vg,pointtodata:function(t,e){return this.polar.pointtodata(t,e)["radius"===this.dim?0:1]},datatoradius:us.prototype.datatocoord,radiustodata:us.prototype.coordtodata},h(vg,us),bg.prototype={constructor:bg,pointtodata:function(t,e){return this.polar.pointtodata(t,e)["radius"===this.dim?0:1]},datatoangle:us.prototype.datatocoord,angletodata:us.prototype.coordtodata},h(bg,us);var pc=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusaxis=new vg,this._angleaxis=new bg,this._radiusaxis.polar=this._angleaxis.polar=this};pc.prototype={type:"polar",axispointerenabled:!0,constructor:pc,dimensions:["radius","angle"],model:null,containpoint:function(t){var e=this.pointtocoord(t);return this._radiusaxis.contain(e[0])&&this._angleaxis.contain(e[1])},containdata:function(t){return this._radiusaxis.containdata(t[0])&&this._angleaxis.containdata(t[1])},getaxis:function(t){return this["_"+t+"axis"]},getaxes:function(){return[this._radiusaxis,this._angleaxis]},getaxesbyscale:function(t){var e=[],i=this._angleaxis,n=this._radiusaxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getangleaxis:function(){return this._angleaxis},getradiusaxis:function(){return this._radiusaxis},getotheraxis:function(t){var e=this._angleaxis;return t===e?this._radiusaxis:e},getbaseaxis:function(){return this.getaxesbyscale("ordinal")[0]||this.getaxesbyscale("time")[0]||this.getangleaxis()},gettooltipaxes:function(t){var e=null!=t&&"auto"!==t?this.getaxis(t):this.getbaseaxis();return{baseaxes:[e],otheraxes:[this.getotheraxis(e)]}},datatopoint:function(t,e){return this.coordtopoint([this._radiusaxis.datatoradius(t[0],e),this._angleaxis.datatoangle(t[1],e)])},pointtodata:function(t,e){var i=this.pointtocoord(t);return[this._radiusaxis.radiustodata(i[0],e),this._angleaxis.angletodata(i[1],e)]},pointtocoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getangleaxis(),o=n.getextent(),a=math.min(o[0],o[1]),r=math.max(o[0],o[1]);n.inverse?a=r-360:r=a+360;var s=math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=math.atan2(-i,e)/math.pi*180,h=lr;)l+=360*h;return[s,l]},coordtopoint:function(t){var e=t[0],i=t[1]/180*math.pi;return[math.cos(i)*e+this.cx,-math.sin(i)*e+this.cy]}};var oc=ub.extend({type:"polaraxis",axis:null,getcoordsysmodel:function(){return this.ecmodel.querycomponents({maintype:"polar",index:this.option.polarindex,id:this.option.polarid})[0]}});n(oc.prototype,zs);var zc={angle:{startangle:90,clockwise:!0,splitnumber:12,axislabel:{rotate:!1}},radius:{splitnumber:5}};_m("angle",oc,gg,zc.angle),_m("radius",oc,gg,zc.radius),sr({type:"polar",dependencies:["polaraxis","angleaxis"],coordinatesystem:null,findaxismodel:function(t){var e;return this.ecmodel.eachcomponent(t,function(t){t.getcoordsysmodel()===this&&(e=t)},this),e},defaultoption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var nc={dimensions:pc.prototype.dimensions,create:function(t,e){var i=[];return t.eachcomponent("polar",function(t,n){var o=new pc(n);o.update=hg;var a=o.getradiusaxis(),r=o.getangleaxis(),s=t.findaxismodel("radiusaxis"),l=t.findaxismodel("angleaxis");fg(a,s),fg(r,l),wg(o,t,e),i.push(o),t.coordinatesystem=o,o.model=t}),t.eachseries(function(e){if("polar"===e.get("coordinatesystem")){var i=t.querycomponents({maintype:"polar",index:e.get("polarindex"),id:e.get("polarid")})[0];e.coordinatesystem=i.coordinatesystem}}),i}};ua.register("polar",nc);var ec=["axisline","axislabel","axistick","splitline","splitarea"];em.extend({type:"angleaxis",axispointerclass:"polaraxispointer",render:function(t,e){if(this.group.removeall(),t.get("show")){var i=t.axis,n=i.polar,o=n.getradiusaxis().getextent(),a=i.gettickscoords();"category"!==i.type&&a.pop(),d(ec,function(e){!t.get(e+".show")||i.scale.isblank()&&"axisline"!==e||this["_"+e](t,n,a,o)},this)}},_axisline:function(t,e,i,n){var o=t.getmodel("axisline.linestyle"),a=new nb({shape:{cx:e.cx,cy:e.cy,r:n[ug(e)]},style:o.getlinestyle(),z2:1,silent:!0});a.style.fill=null,this.group.add(a)},_axistick:function(t,e,i,n){var o=t.getmodel("axistick"),a=(o.get("inside")?-1:1)*o.get("length"),s=n[ug(e)],l=f(i,function(t){return new fb({shape:zg(e,[s,s+a],t)})});this.group.add(ib(l,{style:r(o.getmodel("linestyle").getlinestyle(),{stroke:t.get("axisline.linestyle.color")})}))},_axislabel:function(t,e,i,n){for(var o=t.axis,a=t.get("data"),r=t.getmodel("axislabel"),s=t.getformattedlabels(),l=r.get("margin"),h=o.getlabelscoords(),u=0;uf?"left":"right",m=math.abs(d[1]-g)/c<.3?"middle":d[1]>g?"top":"bottom";a&&a[u]&&a[u].textstyle&&(r=new lo(a[u].textstyle,r,r.ecmodel));var v=new ib({silent:!0});this.group.add(v),fo(v.style,r,{x:d[0],y:d[1],textfill:r.gettextcolor()||t.get("axisline.linestyle.color"),text:s[u],textalign:p,textverticalalign:m})}},_splitline:function(t,e,i,n){var o=t.getmodel("splitline").getmodel("linestyle"),a=o.get("color"),s=0;a=a instanceof array?a:[a];for(var l=[],h=0;h=0?"p":"n",s=i.pointtocoord(m[n]),i=r[u][n][p];if("radius"===g.dim)o=i,s=s[0],c=(h=(-s[1]+d)*math.pi/180)+f*math.pi/180,math.abs(s)0?c=a[1]:c===a[1]&&t<0&&(c=a[0]),r[u][n][p]=c}e.setitemlayout(n,{cx:m,cy:v,r0:o,r:s,startangle:h,endangle:c})}},!0)}},this)},"bar")),lr({type:"polar"}),u(ub.extend({type:"geo",coordinatesystem:null,layoutmode:"box",init:function(t){ub.prototype.init.apply(this,arguments),zo(t.label,["show"])},optionupdated:function(){var t=this.option,e=this;t.regions=xi.getfilledregions(t.regions,t.map,t.namemap),this._optionmodelmap=g(t.regions||[],function(t,i){return i.name&&t.set(i.name,new lo(i,e)),t},z()),this.updateselectedmap(t.regions)},defaultoption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectscale:.75,silent:!1,map:"",boundingcoords:null,center:null,zoom:1,scalelimit:null,label:{normal:{show:!1,color:"#000"},emphasis:{show:!0,color:"rgb(100,0,0)"}},itemstyle:{normal:{borderwidth:.5,bordercolor:"#444",color:"#eee"},emphasis:{color:"rgba(255,215,0,0.8)"}},regions:[]},getregionmodel:function(t){return this._optionmodelmap.get(t)||new lo(null,this,this.ecmodel)},getformattedlabel:function(t,e){var i=this.getregionmodel(t).get("label."+e+".formatter"),n={name:t};return"function"==typeof i?(n.status=e,i(n)):"string"==typeof i?i.replace("{a}",null!=t?t:""):void 0},setzoom:function(t){this.option.zoom=t},setcenter:function(t){this.option.center=t}}),$m),lr({type:"geo",init:function(t,e){var i=new ul(e,!0);this._mapdraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geotoggleselect"!==n.type||n.from!==this.uid){var o=this._mapdraw;t.get("show")?o.draw(t,e,i,this,n):this._mapdraw.group.removeall(),this.group.silent=t.get("silent")}},dispose:function(){this._mapdraw&&this._mapdraw.remove()}}),qg("toggleselected",{type:"geotoggleselect",event:"geoselectchanged"}),qg("select",{type:"geoselect",event:"geoselected"}),qg("unselect",{type:"geounselect",event:"geounselected"});var wc=["rect","polygon","keep","clear"],hc=d,fc={linex:tp(0),liney:tp(1),rect:{point:function(t,e,i){return t&&i.boundingrect.contain(t[0],t[1])},rect:function(t,e,i){return t&&i.boundingrect.intersect(t)}},polygon:{point:function(t,e,i){return t&&i.boundingrect.contain(t[0],t[1])&&ur(i.range,t[0],t[1])},rect:function(t,e,i){var n=i.range;if(!t||n.length<=1)return!1;var o=t.x,a=t.y,r=t.width,s=t.height,l=n[0];return!!(ur(n,o,a)||ur(n,o+r,a)||ur(n,o,a+s)||ur(n,o+r,a+s)||jt.create(t).contain(l[0],l[1])||ip(o,a,o+r,a,n)||ip(o,a,o,a+s,n)||ip(o+r,a,o+r,a+s,n)||ip(o,a+s,o+r,a+s,n))||void 0}}},zc=d,uc=l,xc=v,jc=["datatopoint","pointtodata"],qc=["grid","xaxis","yaxis","geo","graph","polar","radiusaxis","angleaxis","bmap"],yc=rp.prototype;yc.setoutputranges=function(t,e){this.matchoutputranges(t,e,function(t,e,i){if((t.coordranges||(t.coordranges=[])).push(e),!t.coordrange){t.coordrange=e;var n=qc[t.brushtype](0,i,e);t.__rangeoffset={offset:td[t.brushtype](n.values,t.range,[1,1]),xyminmax:n.xyminmax}}})},yc.matchoutputranges=function(t,e,i){zc(t,function(t){var n=this.findtargetinfo(t,e);n&&!0!==n&&d(n.coordsyses,function(n){var o=qc[t.brushtype](1,n,t.range);i(t,o.values,n,e)})},this)},yc.setinputranges=function(t,e){zc(t,function(t){var i=this.findtargetinfo(t,e);if(t.range=t.range||[],i&&!0!==i){t.panelid=i.panelid;var n=qc[t.brushtype](0,i.coordsys,t.coordrange),o=t.__rangeoffset;t.range=o?td[t.brushtype](n.values,o.offset,cp(n.xyminmax,o.xyminmax)):n.values}},this)},yc.makepanelopts=function(t,e){return f(this._targetinfolist,function(i){var n=i.getpanelrect();return{panelid:i.panelid,defaultbrushtype:e&&e(i),clippath:lc(n),istargetbycursor:pc(n,t,i.coordsysmodel),getlinearbrushotherextent:kc(n)}})},yc.controlseries=function(t,e,i){var n=this.findtargetinfo(t,i);return!0===n||n&&uc(n.coordsyses,e.coordinatesystem)>=0},yc.findtargetinfo=function(t,e){for(var i=this._targetinfolist,n=lp(e,t),o=0;o=0||uc(n,t.getaxis("y").model)>=0)&&a.push(t)}),e.push({panelid:"grid--"+t.id,gridmodel:t,coordsysmodel:t,coordsys:a[0],coordsyses:a,getpanelrect:jc.grid,xaxisdeclared:r[t.id],yaxisdeclared:s[t.id]})}))},geo:function(t,e){zc(t.geomodels,function(t){var i=t.coordinatesystem;e.push({panelid:"geo--"+t.id,geomodel:t,coordsysmodel:t,coordsys:i,coordsyses:[i],getpanelrect:jc.geo})})}},kc=[function(t,e){var i=t.xaxismodel,n=t.yaxismodel,o=t.gridmodel;return!o&&i&&(o=i.axis.grid.model),!o&&n&&(o=n.axis.grid.model),o&&o===e.gridmodel},function(t,e){var i=t.geomodel;return i&&i===e.geomodel}],jc={grid:function(){return this.coordsys.grid.getrect().clone()},geo:function(){var t=this.coordsys,e=t.getboundingrect().clone();return e.applytransform(mo(t)),e}},qc={linex:xc(hp,0),liney:xc(hp,1),rect:function(t,e,i){var n=e[jc[t]]([i[0][0],i[1][0]]),o=e[jc[t]]([i[0][1],i[1][1]]),a=[sp([n[0],o[0]]),sp([n[1],o[1]])];return{values:a,xyminmax:a}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:f(i,function(i){var o=e[jc[t]](i);return n[0][0]=math.min(n[0][0],o[0]),n[1][0]=math.min(n[1][0],o[1]),n[0][1]=math.max(n[0][1],o[0]),n[1][1]=math.max(n[1][1],o[1]),o}),xyminmax:n}}},td={linex:xc(up,0),liney:xc(up,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return f(t,function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]})}},ed=["inbrush","outofbrush"],id="__ecbrushselect",nd="__ecinbrushselectevent",od=pw.visual.brush;or(od,function(t,e,i){t.eachcomponent({maintype:"brush"},function(e){i&&"takeglobalcursor"===i.type&&e.setbrushoption("brush"===i.key?i.brushoption:{brushtype:!1}),(e.brushtargetmanager=new rp(e.option,t)).setinputranges(e.areas,t)})}),ar(od,function(t,e,n){var o,a,s=[];t.eachcomponent({maintype:"brush"},function(e,n){function l(t){return"all"===m||v[t]}function h(t){return!!t.length}function u(t,e){var i=t.coordinatesystem;b|=i.hasaxisbrushed(),l(e)&&i.eachactivestate(t.getdata(),function(t,e){"active"===t&&(x[e]=1)})}function c(i,n,o){var a=mp(i);if(a&&!vp(e,n)&&(d(w,function(n){a[n.brushtype]&&e.brushtargetmanager.controlseries(n,i,t)&&o.push(n),b|=h(o)}),l(n)&&h(o))){var r=i.getdata();r.each(function(t){pp(a,o,r,t)&&(x[t]=1)})}}var g={brushid:e.id,brushindex:n,brushname:e.name,areas:i(e.areas),selected:[]};s.push(g);var p=e.option,m=p.brushlink,v=[],x=[],_=[],b=0;n||(o=p.throttletype,a=p.throttledelay);var w=f(e.areas,function(t){return yp(r({boundingrect:ad[t.brushtype](t)},t))}),s=kg(e.option,ed,function(t){t.mappingmethod="fixed"});y(m)&&d(m,function(t){v[t]=1}),t.eachseries(function(t,e){var i=_[e]=[];"parallel"===t.subtype?u(t,e):c(t,e,i)}),t.eachseries(function(t,e){var i={seriesid:t.id,seriesindex:e,seriesname:t.name,dataindex:[]};g.selected.push(i);var n=mp(t),o=_[e],a=t.getdata(),r=l(e)?function(t){return x[t]?(i.dataindex.push(a.getrawindex(t)),"inbrush"):"outofbrush"}:function(t){return pp(n,o,a,t)?(i.dataindex.push(a.getrawindex(t)),"inbrush"):"outofbrush"};(l(e)?b:h(o))&&qg(ed,s,a,r)})}),fp(e,o,a,s,n)});var ad={linex:n,liney:n,rect:function(t){return xp(t.range)},polygon:function(t){for(var e,i=t.range,n=0,o=i.length;ne[0][1]&&(e[0][1]=a[0]),a[1]e[1][1]&&(e[1][1]=a[1])}return e&&xp(e)}},rd=["#ddd"];sr({type:"brush",dependencies:["geo","grid","xaxis","yaxis","parallel","series"],defaultoption:{toolbox:null,brushlink:null,seriesindex:"all",geoindex:null,xaxisindex:null,yaxisindex:null,brushtype:"rect",brushmode:"single",transformable:!0,brushstyle:{borderwidth:1,color:"rgba(120,140,180,0.3)",bordercolor:"rgba(120,140,180,0.8)"},throttletype:"fixrate",throttledelay:0,removeonclick:!0,z:1e4},areas:[],brushtype:null,brushoption:{},coordinfolist:[],optionupdated:function(t,e){var i=this.option;!e&&jg(i,t,["inbrush","outofbrush"]),i.inbrush=i.inbrush||{},i.outofbrush=i.outofbrush||{color:rd}},setareas:function(t){t&&(this.areas=f(t,function(t){return _p(this.option,t)},this))},setbrushoption:function(t){this.brushoption=_p(this.option,t),this.brushtype=this.brushoption.brushtype}});lr({type:"brush",init:function(t,e){this.ecmodel=t,this.api=e,this.model,(this._brushcontroller=new yu(e.getzr())).on("brush",m(this._onbrush,this)).mount()},render:function(t){return this.model=t,bp.apply(this,arguments)},updateview:bp,updatelayout:bp,updatevisual:bp,dispose:function(){this._brushcontroller.dispose()},_onbrush:function(t,e){var n=this.model.id;this.model.brushtargetmanager.setoutputranges(t,this.ecmodel),(!e.isend||e.removeonclick)&&this.api.dispatchaction({type:"brush",brushid:n,areas:i(t),$from:n})}}),ir({type:"brush",event:"brush",update:"updateview"},function(t,e){e.eachcomponent({maintype:"brush",query:t},function(e){e.setareas(t.areas)})}),ir({type:"brushselect",event:"brushselected",update:"none"},function(){});var sd={},ld={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:["右键另存为图片"]}}},hd=ld.toolbox.brush;mp.defaultoption={show:!0,type:["rect","polygon","linex","liney","keep","clear"],icon:{rect:"m7.3,34.7 m0.4,10v-0.2h9.8 m89.6,10v-0.2h-9.8 m0.4,60v10.2h9.8 m89.6,60v10.2h-9.8 m12.3,22.4v10.5h13.1 m33.6,10.5h7.8 m49.1,10.5h7.8 m77.5,22.4v10.5h-13 m12.3,31.1v8.2 m77.7,31.1v8.2 m12.3,47.6v11.9h13.1 m33.6,59.5h7.6 m49.1,59.5 h7.7 m77.5,47.6v11.9h-13",polygon:"m55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1s53.5,34.9,55.2,34.9z m50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 c47.3,52.4,48.7,51,50.4,51z m55.6,37.1l1.5-7.8 m60.1,13.5l1.6-8.7l-7.8,4 m59,19l-1,5.3 m24,16.1l6.4,4.9l6.4-3.3 m48.5,11.6 l-5.9,3.1 m19.1,12.8l9.7,5.1l1.1,7.7 m13.4,29.8l1,7.3l6.6,1.6 m11.6,18.4l1,6.1 m32.8,41.9 m26.6,40.4 m27.3,40.2l6.1,1.6 m49.9,52.1l-5.6-7.6l-4.9-1.2",linex:"m15.2,30 m19.7,15.6v1.9h29 m34.8,1.9h40.4 m55.3,15.6v1.9h45.9 m19.7,44.4v58.1h29 m34.8,58.1h40.4 m55.3,44.4 v58.1h45.9 m12.5,20.3l-9.4,9.6l9.6,9.8 m3.1,29.9h16.5 m62.5,20.3l9.4,9.6l62.3,39.7 m71.9,29.9h55.4",liney:"m38.8,7.7 m52.7,12h13.2v9 m65.9,26.6v32 m52.7,46.3h13.2v-9 m24.9,12h11.8v9 m11.8,26.6v32 m24.9,46.3h11.8v-9 m48.2,5.1l-9.3-9l-9.4,9.2 m38.9-3.9v12 m48.2,53.3l-9.3,9l-9.4-9.2 m38.9,62.3v46.4",keep:"m4,10.5v1h10.3 m20.7,1h6.1 m33,1h6.1 m55.4,10.5v1h45.2 m4,17.3v6.6 m55.6,17.3v6.6 m4,30.5v40h10.3 m20.7,40 h6.1 m33,40h6.1 m55.4,30.5v40h45.2 m21,18.9h62.9v48.6h21v18.9z",clear:"m22,14.7l30.9,31 m52.9,14.7l22,45.7 m4.7,16.8v4.2h13.1 m26,4.2h7.8 m41.6,4.2h7.8 m70.3,16.8v4.2h57.2 m4.7,25.9v8.6 m70.3,25.9v8.6 m4.7,43.2v12.6h13.1 m26,55.8h7.8 m41.6,55.8h7.8 m70.3,43.2v12.6h57.2"},title:i(hd.title)};var ud=mp.prototype;ud.render=ud.updateview=ud.updatelayout=function(t,e,i){var n,o,a;e.eachcomponent({maintype:"brush"},function(t){n=t.brushtype,o=t.brushoption.brushmode||"single",a|=t.areas.length}),this._brushtype=n,this._brushmode=o,d(t.get("type",!0),function(e){t.seticonstatus(e,("keep"===e?"multiple"===o:"clear"===e?a:e===n)?"emphasis":"normal")})},ud.geticons=function(){var t=this.model,e=t.get("icon",!0),i={};return d(t.get("type",!0),function(t){e[t]&&(i[t]=e[t])}),i},ud.onclick=function(t,e,i){var n=this._brushtype,o=this._brushmode;"clear"===i?(e.dispatchaction({type:"axisareaselect",intervals:[]}),e.dispatchaction({type:"brush",command:"clear",areas:[]})):e.dispatchaction({type:"takeglobalcursor",key:"brush",brushoption:{brushtype:"keep"===i?n:n!==i&&i,brushmode:"keep"===i?"multiple"===o?"single":"multiple":o}})},wp("brush",mp),tr(function(t,e){var i=t&&t.brush;if(y(i)||(i=i?[i]:[]),i.length){var n=[];d(i,function(t){var e=t.hasownproperty("toolbox")?t.toolbox:[];e instanceof array&&(n=n.concat(e))});var o=t&&t.toolbox;y(o)&&(o=o[0]),o||(o={feature:{}},t.toolbox=[o]);var a=o.feature||(o.feature={}),r=a.brush||(a.brush={}),s=r.type||(r.type=[]);s.push.apply(s,n),yg(s),e&&!s.length&&s.push.apply(s,wc)}});ip.prototype={constructor:ip,type:"calendar",dimensions:["time","value"],getdimensionsinfo:function(){return[{name:"time",type:"time"}]},getrangeinfo:function(){return this._rangeinfo},getmodel:function(){return this._model},getrect:function(){return this._rect},getcellwidth:function(){return this._sw},getcellheight:function(){return this._sh},getorient:function(){return this._orient},getfirstdayofweek:function(){return this._firstdayofweek},getdateinfo:function(t){var e=(t=pi(t)).getfullyear(),i=t.getmonth()+1;i=i<10?"0"+i:i;var n=t.getdate();n=n<10?"0"+n:n;var o=t.getday();return o=math.abs((o+7-this.getfirstdayofweek())%7),{y:e,m:i,d:n,day:o,time:t.gettime(),formateddate:e+"-"+i+"-"+n,date:t}},getnextnday:function(t,e){return 0===(e=e||0)?this.getdateinfo(t):((t=new date(this.getdateinfo(t).time)).setdate(t.getdate()+e),this.getdateinfo(t))},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstdayofweek=+this._model.getmodel("daylabel").get("firstday"),this._orient=this._model.get("orient"),this._linewidth=this._model.getmodel("itemstyle.normal").getitemstyle().linewidth||0,this._rangeinfo=this._getrangeinfo(this._initrangeoption());var n=this._rangeinfo.weeks||1,o=["width","height"],a=this._model.get("cellsize").slice(),r=this._model.getboxlayoutparams(),s="horizontal"===this._orient?[n,7]:[7,n];d([0,1],function(t){i(a,t)&&(r[o[t]]=a[t]*s[t])});var l={width:e.getwidth(),height:e.getheight()},h=this._rect=ko(r,l);d([0,1],function(t){i(a,t)||(a[t]=h[o[t]]/s[t])}),this._sw=a[0],this._sh=a[1]},datatopoint:function(t,e){y(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getdateinfo(t),n=this._rangeinfo,o=i.formateddate;if(e&&!(i.time>=n.start.time&&i.time<=n.end.time))return[nan,nan];var a=i.day,r=this._getrangeinfo([n.start.time,o]).nthweek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]:[this._rect.x+r*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},pointtodata:function(t){var e=this.pointtodate(t);return e&&e.time},datatorect:function(t,e){var i=this.datatopoint(t,e);return{contentshape:{x:i[0]-(this._sw-this._linewidth)/2,y:i[1]-(this._sh-this._linewidth)/2,width:this._sw-this._linewidth,height:this._sh-this._linewidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointtodate:function(t){var e=math.floor((t[0]-this._rect.x)/this._sw)+1,i=math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeinfo.range;return"vertical"===this._orient?this._getdatebyweeksandday(i,e-1,n):this._getdatebyweeksandday(e,i-1,n)},converttopixel:v(tp,"datatopoint"),convertfrompixel:v(tp,"pointtodata"),_initrangeoption:function(){var t=this._model.get("range"),e=t;if(y(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var i=this.getdateinfo(e),n=i.date;n.setmonth(n.getmonth()+1);var o=this.getnextnday(n,-1);t=[i.formateddate,o.formateddate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var a=this._getrangeinfo(t);return a.start.time>a.end.time&&t.reverse(),t},_getrangeinfo:function(t){var e;(t=[this.getdateinfo(t[0]),this.getdateinfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=math.floor(t[1].time/864e5)-math.floor(t[0].time/864e5)+1,n=new date(t[0].time),o=n.getdate(),a=t[1].date.getdate();if(n.setdate(o+i-1),n.getdate()!==a)for(var r=n.gettime()-t[1].time>0?1:-1;n.getdate()!==a&&(n.gettime()-t[1].time)*r>0;)i-=r,n.setdate(o+i-1);var s=math.floor((i+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formateddate,t[1].formateddate],start:t[0],end:t[1],allday:i,weeks:s,nthweek:l,fweek:t[0].day,lweek:t[1].day}},_getdatebyweeksandday:function(t,e,i){var n=this._getrangeinfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var o=7*(t-1)-n.fweek+e,a=new date(n.start.time);return a.setdate(n.start.d+o),this.getdateinfo(a)}},ip.dimensions=ip.prototype.dimensions,ip.getdimensionsinfo=ip.prototype.getdimensionsinfo,ip.create=function(t,e){var i=[];return t.eachcomponent("calendar",function(n){var o=new ip(n,t,e);i.push(o),n.coordinatesystem=o}),t.eachseries(function(t){"calendar"===t.get("coordinatesystem")&&(t.coordinatesystem=i[t.get("calendarindex")||0])}),i},ua.register("calendar",ip);var cd=ub.extend({type:"calendar",coordinatesystem:null,defaultoption:{zlevel:0,z:2,left:80,top:60,cellsize:20,orient:"horizontal",splitline:{show:!0,linestyle:{color:"#000",width:1,type:"solid"}},itemstyle:{normal:{color:"#fff",borderwidth:1,bordercolor:"#ccc"}},daylabel:{show:!0,firstday:0,position:"start",margin:"50%",namemap:"en",color:"#000"},monthlabel:{show:!0,position:"start",margin:5,align:"center",namemap:"en",formatter:null,color:"#000"},yearlabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontfamily:"sans-serif",fontweight:"bolder",fontsize:20}},init:function(t,e,i,n){var o=ea(t);cd.superapply(this,"init",arguments),ap(t,o)},mergeoption:function(t,e){cd.superapply(this,"mergeoption",arguments),ap(this.option,t)}}),dd={en:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],cn:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},fd={en:["s","m","t","w","t","f","s"],cn:["日","一","二","三","四","五","六"]};lr({type:"calendar",_tlpoints:null,_blpoints:null,_firstdayofmonth:null,_firstdaypoints:null,render:function(t,e,i){var n=this.group;n.removeall();var o=t.coordinatesystem,a=o.getrangeinfo(),r=o.getorient();this._renderdayrect(t,a,n),this._renderlines(t,a,r,n),this._renderyeartext(t,a,r,n),this._rendermonthtext(t,r,n),this._renderweektext(t,a,r,n)},_renderdayrect:function(t,e,i){for(var n=t.coordinatesystem,o=t.getmodel("itemstyle.normal").getitemstyle(),a=n.getcellwidth(),r=n.getcellheight(),s=e.start.time;s<=e.end.time;s=n.getnextnday(s,1).time){var l=n.datatorect([s],!1).tl,h=new db({shape:{x:l[0],y:l[1],width:a,height:r},cursor:"default",style:o});i.add(h)}},_renderlines:function(t,e,i,n){function o(e){a._firstdayofmonth.push(r.getdateinfo(e)),a._firstdaypoints.push(r.datatorect([e],!1).tl);var o=a._getlinepointsofoneweek(t,e,i);a._tlpoints.push(o[0]),a._blpoints.push(o[o.length-1]),l&&a._drawsplitline(o,s,n)}var a=this,r=t.coordinatesystem,s=t.getmodel("splitline.linestyle").getlinestyle(),l=t.get("splitline.show"),h=s.linewidth;this._tlpoints=[],this._blpoints=[],this._firstdayofmonth=[],this._firstdaypoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){o(u.formateddate),0===c&&(u=r.getdateinfo(e.start.y+"-"+e.start.m));var d=u.date;d.setmonth(d.getmonth()+1),u=r.getdateinfo(d)}o(r.getnextnday(e.end.time,1).formateddate),l&&this._drawsplitline(a._getedgespoints(a._tlpoints,h,i),s,n),l&&this._drawsplitline(a._getedgespoints(a._blpoints,h,i),s,n)},_getedgespoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===i?0:1;return n[0][o]=n[0][o]-e/2,n[1][o]=n[1][o]+e/2,n},_drawsplitline:function(t,e,i){var n=new cb({z2:20,shape:{points:t},style:e});i.add(n)},_getlinepointsofoneweek:function(t,e,i){var n=t.coordinatesystem;e=n.getdateinfo(e);for(var o=[],a=0;a<7;a++){var r=n.getnextnday(e.time,a),s=n.datatorect([r.time],!1);o[2*r.day]=s.tl,o[2*r.day+1]=s["horizontal"===i?"bl":"tr"]}return o},_formatterlabel:function(t,e){return"string"==typeof t&&t?hi(t,e):"function"==typeof t?t(e):e.namemap},_yeartextpositioncontrol:function(t,e,i,n,o){e=e.slice();var a=["center","bottom"];"bottom"===n?(e[1]+=o,a=["center","top"]):"left"===n?e[0]-=o:"right"===n?(e[0]+=o,a=["center","top"]):e[1]-=o;var r=0;return"left"!==n&&"right"!==n||(r=math.pi/2),{rotation:r,position:e,style:{textalign:a[0],textverticalalign:a[1]}}},_renderyeartext:function(t,e,i,n){var o=t.getmodel("yearlabel");if(o.get("show")){var a=o.get("margin"),r=o.get("position");r||(r="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,h=(s[0][1]+s[1][1])/2,u="horizontal"===i?0:1,c={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],h],right:[s[u][0],h]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=o.get("formatter"),g={start:e.start.y,end:e.end.y,namemap:d},p=this._formatterlabel(f,g),m=new ib({z2:30});fo(m.style,o,{text:p}),m.attr(this._yeartextpositioncontrol(m,c[r],i,r,a)),n.add(m)}},_monthtextpositioncontrol:function(t,e,i,n,o){var a="left",r="top",s=t[0],l=t[1];return"horizontal"===i?(l+=o,e&&(a="center"),"start"===n&&(r="bottom")):(s+=o,e&&(r="middle"),"start"===n&&(a="right")),{x:s,y:l,textalign:a,textverticalalign:r}},_rendermonthtext:function(t,e,i){var n=t.getmodel("monthlabel");if(n.get("show")){var o=n.get("namemap"),r=n.get("margin"),s=n.get("position"),l=n.get("align"),h=[this._tlpoints,this._blpoints];_(o)&&(o=dd[o.touppercase()]||[]);var u="start"===s?0:1,c="horizontal"===e?0:1;r="start"===s?-r:r;for(var d="center"===l,f=0;f=a[0]&&t<=a[1]}if(t===this._datazoommodel){var i=this._dimname,n=this.gettargetseriesmodels(),o=t.get("filtermode"),a=this._valuewindow;if("none"!==o){var r=this.getotheraxismodel();t.get("$fromtoolbox")&&r&&"category"===r.get("type")&&(o="empty"),md(n,function(t){var n=t.getdata(),r=t.coorddimtodatadim(i);"weakfilter"===o?n&&n.filterself(function(t){for(var e,i,o,s=0;sa[1];if(h&&!u&&!c)return!0;h&&(o=!0),u&&(e=!0),c&&(i=!0)}return o&&e&&i}):n&&md(r,function(i){"empty"===o?t.setdata(n.map(i,function(t){return e(t)?t:nan})):n.filterself(i,e)})})}}}};var xd=d,_d=pd,bd=sr({type:"datazoom",dependencies:["xaxis","yaxis","zaxis","radiusaxis","angleaxis","singleaxis","series"],defaultoption:{zlevel:0,z:4,orient:null,xaxisindex:null,yaxisindex:null,filtermode:"filter",throttle:null,start:0,end:100,startvalue:null,endvalue:null,minspan:null,maxspan:null,minvaluespan:null,maxvaluespan:null,rangemode:null},init:function(t,e,i){this._dataintervalbyaxis={},this._datainfo={},this._axisproxies={},this.textstylemodel,this._autothrottle=!0,this._rangepropmode=["percent","percent"];var n=zp(t);this.mergedefaultandtheme(t,i),this.doinit(n)},mergeoption:function(t){var e=zp(t);n(this.option,t,!0),this.doinit(e)},doinit:function(t){var e=this.option;uv.canvassupported||(e.realtime=!1),this._setdefaultthrottle(t),np(this,t),xd([["start","startvalue"],["end","endvalue"]],function(t,i){"value"===this._rangepropmode[i]&&(e[t[0]]=null)},this),this.textstylemodel=this.getmodel("textstyle"),this._resettarget(),this._giveaxisproxies()},_giveaxisproxies:function(){var t=this._axisproxies;this.eachtargetaxis(function(e,i,n,o){var a=this.dependentmodels[e.axis][i],r=a.__dzaxisproxy||(a.__dzaxisproxy=new yd(e.name,i,this,o));t[e.name+"_"+i]=r},this)},_resettarget:function(){var t=this.option,e=this._judgeautomode();_d(function(e){var i=e.axisindex;t[i]=oo(t[i])},this),"axisindex"===e?this._autosetaxisindex():"orient"===e&&this._autosetorient()},_judgeautomode:function(){var t=this.option,e=!1;_d(function(i){null!=t[i.axisindex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisindex")},_autosetaxisindex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentmodels;if(t){var o="vertical"===e?"y":"x";n[o+"axis"].length?(i[o+"axisindex"]=[0],t=!1):xd(n.singleaxis,function(n){t&&n.get("orient",!0)===e&&(i.singleaxisindex=[n.componentindex],t=!1)})}t&&_d(function(e){if(t){var n=[],o=this.dependentmodels[e.axis];if(o.length&&!n.length)for(var a=0,r=o.length;a0?100:20}},getfirsttargetaxismodel:function(){var t;return _d(function(e){if(null==t){var i=this.get(e.axisindex);i.length&&(t=this.dependentmodels[e.axis][i[0]])}},this),t},eachtargetaxis:function(t,e){var i=this.ecmodel;_d(function(n){xd(this.get(n.axisindex),function(o){t.call(e,n,o,this,i)},this)},this)},getaxisproxy:function(t,e){return this._axisproxies[t+"_"+e]},getaxismodel:function(t,e){var i=this.getaxisproxy(t,e);return i&&i.getaxismodel()},setrawrange:function(t,e){var i=this.option;xd([["start","startvalue"],["end","endvalue"]],function(e){null==t[e[0]]&&null==t[e[1]]||(i[e[0]]=t[e[0]],i[e[1]]=t[e[1]])},this),!e&&np(this,t)},getpercentrange:function(){var t=this.findrepresentativeaxisproxy();if(t)return t.getdatapercentwindow()},getvaluerange:function(t,e){if(null!=t||null!=e)return this.getaxisproxy(t,e).getdatavaluewindow();var i=this.findrepresentativeaxisproxy();return i?i.getdatavaluewindow():void 0},findrepresentativeaxisproxy:function(t){if(t)return t.__dzaxisproxy;var e=this._axisproxies;for(var i in e)if(e.hasownproperty(i)&&e[i].hostedby(this))return e[i];for(var i in e)if(e.hasownproperty(i)&&!e[i].hostedby(this))return e[i]},getrangepropmode:function(){return this._rangepropmode.slice()}}),wd=xw.extend({type:"datazoom",render:function(t,e,i,n){this.datazoommodel=t,this.ecmodel=e,this.api=i},gettargetcoordinfo:function(){function t(t,e,i,n){for(var o,a=0;a0&&e%p)g+=f;else{var i=null==t||isnan(t)||""===t,n=i?0:md(t,a,h,!0);i&&!l&&e?(c.push([c[c.length-1][0],0]),d.push([d[d.length-1][0],0])):!i&&l&&(c.push([g,0]),d.push([g,0])),c.push([g,n]),d.push([g,n]),g+=f,l=i}});var m=this.datazoommodel;this._displayables.bargroup.add(new ub({shape:{points:c},style:r({fill:m.get("databackgroundcolor")},m.getmodel("databackground.areastyle").getareastyle()),silent:!0,z2:-20})),this._displayables.bargroup.add(new cb({shape:{points:d},style:m.getmodel("databackground.linestyle").getlinestyle(),silent:!0,z2:-19}))}}},_preparedatashadowinfo:function(){var t=this.datazoommodel,e=t.get("showdatashadow");if(!1!==e){var i,n=this.ecmodel;return t.eachtargetaxis(function(o,a){d(t.getaxisproxy(o.name,a).gettargetseriesmodels(),function(t){if(!(i||!0!==e&&l(ld,t.get("type"))<0)){var r,s=n.getcomponent(o.axis,a).axis,h=ep(o.name),u=t.coordinatesystem;null!=h&&u.getotheraxis&&(r=u.getotheraxis(s).inverse),i={thisaxis:s,series:t,thisdim:o.name,otherdim:h,otheraxisinverse:r}}},this)},this),i}},_renderhandle:function(){var t=this._displayables,e=t.handles=[],i=t.handlelabels=[],n=this._displayables.bargroup,o=this._size,a=this.datazoommodel;n.add(t.filler=new sd({draggable:!0,cursor:rp(this._orient),drift:td(this._ondragmove,this,"all"),onmousemove:function(t){bx(t.event)},ondragstart:td(this._showdatainfo,this,!0),ondragend:td(this._ondragend,this),onmouseover:td(this._showdatainfo,this,!0),onmouseout:td(this._showdatainfo,this,!1),style:{fill:a.get("fillercolor"),textposition:"inside"}})),n.add(new sd($n({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:a.get("databackgroundcolor")||a.get("bordercolor"),linewidth:1,fill:"rgba(0,0,0,0)"}}))),ad([0,1],function(t){var o=do(a.get("handleicon"),{cursor:rp(this._orient),draggable:!0,drift:td(this._ondragmove,this,t),onmousemove:function(t){bx(t.event)},ondragend:td(this._ondragend,this),onmouseover:td(this._showdatainfo,this,!0),onmouseout:td(this._showdatainfo,this,!1)},{x:-1,y:0,width:2,height:2}),r=o.getboundingrect();this._handleheight=si(a.get("handlesize"),this._size[1]),this._handlewidth=r.width/r.height*this._handleheight,o.setstyle(a.getmodel("handlestyle").getitemstyle());var s=a.get("handlecolor");null!=s&&(o.style.fill=s),n.add(e[t]=o);var l=a.textstylemodel;this.group.add(i[t]=new ib({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textverticalalign:"middle",textalign:"center",textfill:l.gettextcolor(),textfont:l.getfont()},z2:10}))},this)},_resetinterval:function(){var t=this._range=this.datazoommodel.getpercentrange(),e=this._getviewextent();this._handleends=[md(t[0],[0,100],e,!0),md(t[1],[0,100],e,!0)]},_updateinterval:function(t,e){var i=this.datazoommodel,n=this._handleends,o=this._getviewextent(),a=i.findrepresentativeaxisproxy().getminmaxspan(),r=[0,100];ot(e,n,o,i.get("zoomlock")?"all":t,null!=a.minspan?md(a.minspan,r,o,!0):null,null!=a.maxspan?md(a.maxspan,r,o,!0):null),this._range=id([md(n[0],o,r,!0),md(n[1],o,r,!0)])},_updateview:function(t){var e=this._displayables,i=this._handleends,n=id(i.slice()),o=this._size;ad([0,1],function(t){var n=e.handles[t],a=this._handleheight;n.attr({scale:[a/2,a/2],position:[i[t],o[1]/2-a/2]})},this),e.filler.setshape({x:n[0],y:0,width:n[1]-n[0],height:o[1]}),this._updatedatainfo(t)},_updatedatainfo:function(t){function e(t){var e=mo(n.handles[t].parent,this.group),i=to(0===t?"right":"left",e),s=this._handlewidth/2+dd,l=io([c[t]+(0===t?-s:s),this._size[1]/2],e);o[t].setstyle({x:l[0],y:l[1],textverticalalign:a===cd?"middle":i,textalign:a===cd?i:"center",text:r[t]})}var i=this.datazoommodel,n=this._displayables,o=n.handlelabels,a=this._orient,r=["",""];if(i.get("showdetail")){var s=i.findrepresentativeaxisproxy();if(s){var l=s.getaxismodel().axis,h=this._range,u=t?s.calculatedatawindow({start:h[0],end:h[1]}).valuewindow:s.getdatavaluewindow();r=[this._formatlabel(u[0],l),this._formatlabel(u[1],l)]}}var c=id(this._handleends.slice());e.call(this,0),e.call(this,1)},_formatlabel:function(t,e){var i=this.datazoommodel,n=i.get("labelformatter"),o=i.get("labelprecision");null!=o&&"auto"!==o||(o=e.getpixelprecision());var a=null==t||isnan(t)?"":"category"===e.type||"time"===e.type?e.scale.getlabel(math.round(t)):t.tofixed(math.min(o,20));return x(n)?n(t,a):_(n)?n.replace("{value}",a):a},_showdatainfo:function(t){t=this._dragging||t;var e=this._displayables.handlelabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_ondragmove:function(t,e,i){this._dragging=!0;var n=io([e,i],this._displayables.bargroup.getlocaltransform(),!0);this._updateinterval(t,n[0]);var o=this.datazoommodel.get("realtime");this._updateview(!o),o&&o&&this._dispatchzoomaction()},_ondragend:function(){this._dragging=!1,this._showdatainfo(!1),this._dispatchzoomaction()},_onclickpanelclick:function(t){var e=this._size,i=this._displayables.bargroup.transformcoordtolocal(t.offsetx,t.offsety);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleends,o=(n[0]+n[1])/2;this._updateinterval("all",i[0]-o),this._updateview(),this._dispatchzoomaction()}},_dispatchzoomaction:function(){var t=this._range;this.api.dispatchaction({type:"datazoom",from:this.uid,datazoomid:this.datazoommodel.id,start:t[0],end:t[1]})},_findcoordrect:function(){var t;if(ad(this.gettargetcoordinfo(),function(e){if(!t&&e.length){var i=e[0].model.coordinatesystem;t=i.getrect&&i.getrect()}}),!t){var e=this.api.getwidth(),i=this.api.getheight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});bd.extend({type:"datazoom.inside",defaultoption:{disabled:!1,zoomlock:!1,zoomonmousewheel:!0,moveonmousemove:!0,preventdefaultmousemove:!0}});var pd=v,od="\0_ec_datazoom_roams",zd=m,nd=wd.extend({type:"datazoom.inside",init:function(t,e){this._range},render:function(t,e,i,n){nd.superapply(this,"render",arguments),gp(n,t.id)&&(this._range=t.getpercentrange()),d(this.gettargetcoordinfo(),function(e,n){var o=f(e,function(t){return wp(t.model)});d(e,function(e){var a=e.model,r=t.option;vp(i,{coordid:wp(a),allcoordids:o,containspoint:function(t,e,i){return a.coordinatesystem.containpoint([e,i])},datazoomid:t.id,throttlerate:t.get("throttle",!0),pangetrange:zd(this._onpan,this,e,n),zoomgetrange:zd(this._onzoom,this,e,n),zoomlock:r.zoomlock,disabled:r.disabled,roamcontrolleropt:{zoomonmousewheel:r.zoomonmousewheel,moveonmousemove:r.moveonmousemove,preventdefaultmousemove:r.preventdefaultmousemove}})},this)},this)},dispose:function(){bp(this.api,this.datazoommodel.id),nd.superapply(this,"dispose",arguments),this._range=null},_onpan:function(t,e,i,n,o,a,r,s,l){var h=this._range.slice(),u=t.axismodels[0];if(u){var c=ed[e]([a,r],[s,l],u,i,t),d=c.signal*(h[1]-h[0])*c.pixel/c.pixellength;return ot(d,h,[0,100],"all"),this._range=h}},_onzoom:function(t,e,i,n,o,a){var r=this._range.slice(),s=t.axismodels[0];if(s){var l=ed[e](null,[o,a],s,i,t),h=(l.signal>0?l.pixelstart+l.pixellength-l.pixel:l.pixel-l.pixelstart)/l.pixellength*(r[1]-r[0])+r[0];n=math.max(1/n,0),r[0]=(r[0]-h)*n+h,r[1]=(r[1]-h)*n+h;var u=this.datazoommodel.findrepresentativeaxisproxy().getminmaxspan();return ot(0,r,[0,100],0,u.minspan,u.maxspan),this._range=r}}}),ed={grid:function(t,e,i,n,o){var a=i.axis,r={},s=o.model.coordinatesystem.getrect();return t=t||[0,0],"x"===a.dim?(r.pixel=e[0]-t[0],r.pixellength=s.width,r.pixelstart=s.x,r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixellength=s.height,r.pixelstart=s.y,r.signal=a.inverse?-1:1),r},polar:function(t,e,i,n,o){var a=i.axis,r={},s=o.model.coordinatesystem,l=s.getradiusaxis().getextent(),h=s.getangleaxis().getextent();return t=t?s.pointtocoord(t):[0,0],e=s.pointtocoord(e),"radiusaxis"===i.maintype?(r.pixel=e[0]-t[0],r.pixellength=l[1]-l[0],r.pixelstart=l[0],r.signal=a.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixellength=h[1]-h[0],r.pixelstart=h[0],r.signal=a.inverse?-1:1),r},singleaxis:function(t,e,i,n,o){var a=i.axis,r=o.model.coordinatesystem.getrect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixellength=r.width,s.pixelstart=r.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixellength=r.height,s.pixelstart=r.y,s.signal=a.inverse?-1:1),s}};er(function(t,e){t.eachcomponent("datazoom",function(t){t.eachtargetaxis($p),t.eachtargetaxis(kp)}),t.eachcomponent("datazoom",function(t){var e=t.findrepresentativeaxisproxy(),i=e.getdatapercentwindow(),n=e.getdatavaluewindow();t.setrawrange({start:i[0],end:i[1],startvalue:n[0],endvalue:n[1]},!0)})}),ir("datazoom",function(t,e){var i=dp(m(e.eachcomponent,e,"datazoom"),pd,function(t,e){return t.get(e.axisindex)}),n=[];e.eachcomponent({maintype:"datazoom",query:t},function(t,e){n.push.apply(n,i(t).nodes)}),d(n,function(e,i){e.setrawrange({start:t.start,end:t.end,startvalue:t.startvalue,endvalue:t.endvalue})})});var rd=d,vd=function(t){var e=t&&t.visualmap;y(e)||(e=e?[e]:[]),rd(e,function(t){if(t){jp(t,"splitlist")&&!jp(t,"pieces")&&(t.pieces=t.splitlist,delete t.splitlist);var e=t.pieces;e&&y(e)&&rd(e,function(t){b(t)&&(jp(t,"start")&&!jp(t,"min")&&(t.min=t.start),jp(t,"end")&&!jp(t,"max")&&(t.max=t.end))})}})};ub.registersubtypedefaulter("visualmap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitnumber>0)&&!t.calculable?"piecewise":"continuous"}),ar(pw.visual.component,function(t){t.eachcomponent("visualmap",function(t){qp(t)}),tm(t)});var bd={get:function(t,e,n){var o=i((gd[t]||{})[e]);return n&&y(o)?o[o.length-1]:o}},gd={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorhue:{active:[0,360],inactive:[0,0]},colorsaturation:{active:[.3,1],inactive:[0,0]},colorlightness:{active:[.9,.5],inactive:[0,0]},coloralpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundrect","diamond"],inactive:["none"]},symbolsize:{active:[10,50],inactive:[0,0]}},wd=ji.mapvisual,hd=ji.eachvisual,fd=y,zd=d,ud=ii,xd=wi,jd=n,qd=["#f6efa6","#d88273","#bf444c"],yd=sr({type:"visualmap",dependencies:["series"],statelist:["inrange","outofrange"],replacableoptionkeys:["inrange","outofrange","target","controller","color"],databound:[-1/0,1/0],layoutmode:{type:"box",ignoresize:!0},defaultoption:{show:!0,zlevel:0,z:4,seriesindex:"all",min:0,max:200,dimension:null,inrange:null,outofrange:null,left:0,right:null,top:null,bottom:0,itemwidth:null,itemheight:null,inverse:!1,orient:"vertical",backgroundcolor:"rgba(0,0,0,0)",bordercolor:"#ccc",contentcolor:"#5793f3",inactivecolor:"#aaa",borderwidth:0,padding:5,textgap:10,precision:0,color:null,formatter:null,text:null,textstyle:{color:"#333"}},init:function(t,e,i){this._dataextent,this.targetvisuals={},this.controllervisuals={},this.textstylemodel,this.itemsize,this.mergedefaultandtheme(t,i)},optionupdated:function(t,e){var i=this.option;uv.canvassupported||(i.realtime=!1),!e&&jg(i,t,this.replacableoptionkeys),this.textstylemodel=this.getmodel("textstyle"),this.resetitemsize(),this.completevisualoption()},resetvisual:function(t){var e=this.statelist;t=m(t,this),this.controllervisuals=kg(this.option.controller,e,t),this.targetvisuals=kg(this.option.target,e,t)},gettargetseriesindices:function(){var t=this.option.seriesindex,e=[];return null==t||"all"===t?this.ecmodel.eachseries(function(t,i){e.push(i)}):e=oo(t),e},eachtargetseries:function(t,e){d(this.gettargetseriesindices(),function(i){t.call(e,this.ecmodel.getseriesbyindex(i))},this)},istargetseries:function(t){var e=!1;return this.eachtargetseries(function(i){i===t&&(e=!0)}),e},formatvaluetext:function(t,e,i){function n(t){return t===l[0]?"min":t===l[1]?"max":(+t).tofixed(math.min(s,20))}var o,a,r=this.option,s=r.precision,l=this.databound,h=r.formatter;return i=i||["<",">"],y(t)&&(t=t.slice(),o=!0),a=e?t:o?[n(t[0]),n(t[1])]:n(t),_(h)?h.replace("{value}",o?a[0]:a).replace("{value2}",o?a[1]:a):x(h)?o?h(t[0],t[1]):h(t):o?t[0]===l[0]?i[0]+" "+a[1]:t[1]===l[1]?i[1]+" "+a[0]:a[0]+" - "+a[1]:a},resetextent:function(){var t=this.option,e=ud([t.min,t.max]);this._dataextent=e},getdatadimension:function(t){var e=this.option.dimension;return null!=e?e:t.dimensions.length-1},getextent:function(){return this._dataextent.slice()},completevisualoption:function(){function t(t){fd(e.color)&&!t.inrange&&(t.inrange={color:e.color.slice().reverse()}),t.inrange=t.inrange||{color:qd},zd(this.statelist,function(e){var i=t[e];if(_(i)){var n=bd.get(i,"active",s);n?(t[e]={},t[e][i]=n):delete t[e]}},this)}var e=this.option,o={inrange:e.inrange,outofrange:e.outofrange},a=e.target||(e.target={}),r=e.controller||(e.controller={});n(a,o),n(r,o);var s=this.iscategory();t.call(this,a),t.call(this,r),function(t,e,i){var n=t[e],o=t[i];n&&!o&&(o=t[i]={},zd(n,function(t,e){if(ji.isvalidtype(e)){var i=bd.get(e,"inactive",s);null!=i&&(o[e]=i,"color"!==e||o.hasownproperty("opacity")||o.hasownproperty("coloralpha")||(o.opacity=[0,0]))}}))}.call(this,a,"inrange","outofrange"),function(t){var e=(t.inrange||{}).symbol||(t.outofrange||{}).symbol,n=(t.inrange||{}).symbolsize||(t.outofrange||{}).symbolsize,o=this.get("inactivecolor");zd(this.statelist,function(a){var r=this.itemsize,l=t[a];l||(l=t[a]={color:s?o:[o]}),null==l.symbol&&(l.symbol=e&&i(e)||(s?"roundrect":["roundrect"])),null==l.symbolsize&&(l.symbolsize=n&&i(n)||(s?r[0]:[r[0],r[0]])),l.symbol=wd(l.symbol,function(t){return"none"===t||"square"===t?"roundrect":t});var h=l.symbolsize;if(null!=h){var u=-1/0;hd(h,function(t){t>u&&(u=t)}),l.symbolsize=wd(h,function(t){return xd(t,[0,u],[0,r[0]],!0)})}},this)}.call(this,r)},resetitemsize:function(){this.itemsize=[parsefloat(this.get("itemwidth")),parsefloat(this.get("itemheight"))]},iscategory:function(){return!!this.option.categories},setselected:jd,getvaluestate:jd,getvisualmeta:jd}),$d=[20,140],kd=yd.extend({type:"visualmap.continuous",defaultoption:{align:"auto",calculable:!1,range:null,realtime:!0,itemheight:null,itemwidth:null,hoverlink:!0,hoverlinkdatasize:null,hoverlinkonhandle:null},optionupdated:function(t,e){kd.superapply(this,"optionupdated",arguments),this.resetextent(),this.resetvisual(function(t){t.mappingmethod="linear",t.dataextent=this.getextent()}),this._resetrange()},resetitemsize:function(){kd.superapply(this,"resetitemsize",arguments);var t=this.itemsize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isnan(t[0]))&&(t[0]=$d[0]),(null==t[1]||isnan(t[1]))&&(t[1]=$d[1])},_resetrange:function(){var t=this.getextent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):y(e)&&(e[0]>e[1]&&e.reverse(),e[0]=math.max(e[0],t[0]),e[1]=math.min(e[1],t[1]))},completevisualoption:function(){yd.prototype.completevisualoption.apply(this,arguments),d(this.statelist,function(t){var e=this.option.controller[t].symbolsize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setselected:function(t){this.option.range=t.slice(),this._resetrange()},getselected:function(){var t=this.getextent(),e=ii((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inrange":"outofrange"},findtargetdataindices:function(t){var e=[];return this.eachtargetseries(function(i){var n=[],o=i.getdata();o.each(this.getdatadimension(o),function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)},!0,this),e.push({seriesid:i.id,dataindex:n})},this),e},getvisualmeta:function(t){function e(e,i){o.push({value:e,color:t(e,i)})}for(var i=im(0,0,this.getextent()),n=im(0,0,this.option.range.slice()),o=[],a=0,r=0,s=n.length,l=i.length;rt[1])break;i.push({color:this.getcontrollervisual(a,"color",e),offset:o/100})}return i.push({color:this.getcontrollervisual(t[1],"color",e),offset:1}),i},_createbarpoints:function(t,e){var i=this.visualmapmodel.itemsize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createbargroup:function(t){var e=this._orient,i=this.visualmapmodel.get("inverse");return new jy("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-math.pi/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:math.pi/2})},_updatehandle:function(t,e){if(this._usehandle){var i=this._shapes,n=this.visualmapmodel,o=i.handlethumbs,a=i.handlelabels;tl([0,1],function(r){var s=o[r];s.setstyle("fill",e.handlescolor[r]),s.position[1]=t[r];var l=io(i.handlelabelpoints[r],mo(s,this.group));a[r].setstyle({x:l[0],y:l[1],text:n.formatvaluetext(this._datainterval[r]),textverticalalign:"middle",textalign:this._applytransform("horizontal"===this._orient?0===r?"bottom":"top":"left",i.bargroup)})},this)}},_showindicator:function(t,e,i,n){var o=this.visualmapmodel,a=o.getextent(),r=o.itemsize,s=[0,r[1]],l=qd(t,a,s,!0),h=this._shapes,u=h.indicator;if(u){u.position[1]=l,u.attr("invisible",!1),u.setshape("points",sm(!!i,n,l,r[1]));var c={convertopacitytoalpha:!0},d=this.getcontrollervisual(t,"color",c);u.setstyle("fill",d);var f=io(h.indicatorlabelpoint,mo(u,this.group)),g=h.indicatorlabel;g.attr("invisible",!1);var p=this._applytransform("left",h.bargroup),m=this._orient;g.setstyle({text:(i||"")+o.formatvaluetext(e),textverticalalign:"horizontal"===m?p:"middle",textalign:"horizontal"===m?"center":p,x:f[0],y:f[1]})}},_enablehoverlinktoseries:function(){var t=this;this._shapes.bargroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var i=t.visualmapmodel.itemsize,n=t._applytransform([e.offsetx,e.offsety],t._shapes.bargroup,!0,!0);n[1]=el(il(0,n[1]),i[1]),t._dohoverlinktoseries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearhoverlinktoseries()})},_enablehoverlinkfromseries:function(){var t=this.api.getzr();this.visualmapmodel.option.hoverlink?(t.on("mouseover",this._hoverlinkfromseriesmouseover,this),t.on("mouseout",this._hideindicator,this)):this._clearhoverlinkfromseries()},_dohoverlinktoseries:function(t,e){var i=this.visualmapmodel,n=i.itemsize;if(i.option.hoverlink){var o=[0,n[1]],a=i.getextent();t=el(il(o[0],t),o[1]);var r=lm(i,a,o),s=[t-r,t+r],l=qd(t,o,a,!0),h=[qd(s[0],o,a,!0),qd(s[1],o,a,!0)];s[0]o[1]&&(h[1]=1/0),e&&(h[0]===-1/0?this._showindicator(l,h[1],"< ",r):h[1]===1/0?this._showindicator(l,h[0],"> ",r):this._showindicator(l,l,"≈ ",r));var u=this._hoverlinkdataindices,c=[];(e||hm(i))&&(c=this._hoverlinkdataindices=i.findtargetdataindices(h));var d=wo(u,c);this._dispatchhighdown("downplay",om(d[0])),this._dispatchhighdown("highlight",om(d[1]))}},_hoverlinkfromseriesmouseover:function(t){var e=t.target,i=this.visualmapmodel;if(e&&null!=e.dataindex){var n=this.ecmodel.getseriesbyindex(e.seriesindex);if(i.istargetseries(n)){var o=n.getdata(e.datatype),a=o.getdimension(i.getdatadimension(o)),r=o.get(a,e.dataindex,!0);isnan(r)||this._showindicator(r,r)}}},_hideindicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorlabel&&t.indicatorlabel.attr("invisible",!0)},_clearhoverlinktoseries:function(){this._hideindicator();var t=this._hoverlinkdataindices;this._dispatchhighdown("downplay",om(t)),t.length=0},_clearhoverlinkfromseries:function(){this._hideindicator();var t=this.api.getzr();t.off("mouseover",this._hoverlinkfromseriesmouseover),t.off("mouseout",this._hideindicator)},_applytransform:function(t,e,i,n){var o=mo(e,n?null:this.group);return tb[y(t)?"applytransform":"transformdirection"](t,o,i)},_dispatchhighdown:function(t,e){e&&e.length&&this.api.dispatchaction({type:t,batch:e})},dispose:function(){this._clearhoverlinkfromseries(),this._clearhoverlinktoseries()},remove:function(){this._clearhoverlinkfromseries(),this._clearhoverlinktoseries()}});ir({type:"selectdatarange",event:"datarangeselected",update:"update"},function(t,e){e.eachcomponent({maintype:"visualmap",query:t},function(e){e.setselected(t.selected)})}),tr(vd);var rl=yd.extend({type:"visualmap.piecewise",defaultoption:{selected:null,minopen:!1,maxopen:!1,align:"auto",itemwidth:20,itemheight:14,itemsymbol:"roundrect",piecelist:null,categories:null,splitnumber:5,selectedmode:"multiple",itemgap:10,hoverlink:!0,showlabel:null},optionupdated:function(t,e){rl.superapply(this,"optionupdated",arguments),this._piecelist=[],this.resetextent();var n=this._mode=this._determinemode();sl[this._mode].call(this),this._resetselected(t,e);var o=this.option.categories;this.resetvisual(function(t,e){"categories"===n?(t.mappingmethod="category",t.categories=i(o)):(t.dataextent=this.getextent(),t.mappingmethod="piecewise",t.piecelist=f(this._piecelist,function(t){var t=i(t);return"inrange"!==e&&(t.visual=null),t}))})},completevisualoption:function(){function t(t,e,i){return t&&t[e]&&(b(t[e])?t[e].hasownproperty(i):t[e]===i)}var e=this.option,i={},n=ji.listvisualtypes(),o=this.iscategory();d(e.pieces,function(t){d(n,function(e){t.hasownproperty(e)&&(i[e]=1)})}),d(i,function(i,n){var a=0;d(this.statelist,function(i){a|=t(e,i,n)||t(e.target,i,n)},this),!a&&d(this.statelist,function(t){(e[t]||(e[t]={}))[n]=bd.get(n,"inrange"===t?"active":"inactive",o)})},this),yd.prototype.completevisualoption.apply(this,arguments)},_resetselected:function(t,e){var i=this.option,n=this._piecelist,o=(e?i:t).selected||{};if(i.selected=o,d(n,function(t,e){var i=this.getselectedmapkey(t);o.hasownproperty(i)||(o[i]=!0)},this),"single"===i.selectedmode){var a=!1;d(n,function(t,e){var i=this.getselectedmapkey(t);o[i]&&(a?o[i]=!1:a=!0)},this)}},getselectedmapkey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getpiecelist:function(){return this._piecelist},_determinemode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitnumber"},setselected:function(t){this.option.selected=i(t)},getvaluestate:function(t){var e=ji.findpieceindex(t,this._piecelist);return null!=e&&this.option.selected[this.getselectedmapkey(this._piecelist[e])]?"inrange":"outofrange"},findtargetdataindices:function(t){var e=[];return this.eachtargetseries(function(i){var n=[],o=i.getdata();o.each(this.getdatadimension(o),function(e,i){ji.findpieceindex(e,this._piecelist)===t&&n.push(i)},!0,this),e.push({seriesid:i.id,dataindex:n})},this),e},getrepresentvalue:function(t){var e;if(this.iscategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getvisualmeta:function(t){function e(e,a){var r=o.getrepresentvalue({interval:e});a||(a=o.getvaluestate(r));var s=t(r,a);e[0]===-1/0?n[0]=s:e[1]===1/0?n[1]=s:i.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.iscategory()){var i=[],n=[],o=this,a=this._piecelist.slice();if(a.length){var r=a[0].interval[0];r!==-1/0&&a.unshift({interval:[-1/0,r]}),(r=a[a.length-1].interval[1])!==1/0&&a.push({interval:[r,1/0]})}else a.push({interval:[-1/0,1/0]});var s=-1/0;return d(a,function(t){var i=t.interval;i&&(i[0]>s&&e([s,i[0]],"outofrange"),e(i.slice()),s=i[1])},this),{stops:i,outercolors:n}}}}),sl={splitnumber:function(){var t=this.option,e=this._piecelist,i=math.min(t.precision,20),n=this.getextent(),o=t.splitnumber;o=math.max(parseint(o,10),1),t.splitnumber=o;for(var a=(n[1]-n[0])/o;+a.tofixed(i)!==a&&i<5;)i++;t.precision=i,a=+a.tofixed(i);var r=0;t.minopen&&e.push({index:r++,interval:[-1/0,n[0]],close:[0,0]});for(var s=n[0],l=r+o;r","≥"][e[0]]];t.text=t.text||this.formatvaluetext(null!=t.value?t.value:t.interval,!1,i)},this)}};jd.extend({type:"visualmap.piecewise",dorender:function(){var t=this.group;t.removeall();var e=this.visualmapmodel,i=e.get("textgap"),n=e.textstylemodel,o=n.getfont(),a=n.gettextcolor(),r=this._getitemalign(),s=e.itemsize,l=this._getviewdata(),h=l.endstext,u=i(e.get("showlabel",!0),!h);h&&this._renderendstext(t,h[0],s,u,r),d(l.viewpiecelist,function(n){var l=n.piece,h=new jy;h.onclick=m(this._onitemclick,this,l),this._enablehoverlink(h,n.indexinmodelpiecelist);var c=e.getrepresentvalue(l);if(this._createitemsymbol(h,c,[0,0,s[0],s[1]]),u){var d=this.visualmapmodel.getvaluestate(c);h.add(new ib({style:{x:"right"===r?-i:s[0]+i,y:s[1]/2,text:l.text,textverticalalign:"middle",textalign:r,textfont:o,textfill:a,opacity:"outofrange"===d?.5:1}}))}t.add(h)},this),h&&this._renderendstext(t,h[1],s,u,r),hb(e.get("orient"),t,e.get("itemgap")),this.renderbackground(t),this.positiongroup(t)},_enablehoverlink:function(t,e){function i(t){var i=this.visualmapmodel;i.option.hoverlink&&this.api.dispatchaction({type:t,batch:om(i.findtargetdataindices(e))})}t.on("mouseover",m(i,this,"highlight")).on("mouseout",m(i,this,"downplay"))},_getitemalign:function(){var t=this.visualmapmodel,e=t.option;if("vertical"===e.orient)return nm(t,this.api,t.itemsize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderendstext:function(t,e,i,n,o){if(e){var a=new jy,r=this.visualmapmodel.textstylemodel;a.add(new ib({style:{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,textverticalalign:"middle",textalign:n?o:"center",text:e,textfont:r.getfont(),textfill:r.gettextcolor()}})),t.add(a)}},_getviewdata:function(){var t=this.visualmapmodel,e=f(t.getpiecelist(),function(t,e){return{piece:t,indexinmodelpiecelist:e}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return("horizontal"===n?o:!o)?e.reverse():i&&(i=i.slice().reverse()),{viewpiecelist:e,endstext:i}},_createitemsymbol:function(t,e,i){t.add(hr(this.getcontrollervisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getcontrollervisual(e,"color")))},_onitemclick:function(t){var e=this.visualmapmodel,n=e.option,o=i(n.selected),a=e.getselectedmapkey(t);"single"===n.selectedmode?(o[a]=!0,d(o,function(t,e){o[e]=e===a})):o[a]=!o[a],this.api.dispatchaction({type:"selectdatarange",from:this.uid,visualmapid:this.visualmapmodel.id,selected:o})}});tr(vd);var ll=vi,hl=gi,ul=sr({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergedefaultandtheme(t,i),this.mergeoption(t,i,n.createdbyself,!0)},isanimationenabled:function(){if(uv.node)return!1;var t=this.__hostseries;return this.getshallow("animation")&&t&&t.isanimationenabled()},mergeoption:function(t,e,i,n){var o=this.constructor,r=this.maintype+"model";i||e.eachseries(function(t){var i=t.get(this.maintype),s=t[r];i&&i.data?(s?s.mergeoption(i,e,!0):(n&&dm(i),d(i.data,function(t){t instanceof array?(dm(t[0]),dm(t[1])):dm(t)}),a(s=new o(i,this,e),{maintype:this.maintype,seriesindex:t.seriesindex,name:t.name,createdbyself:!0}),s.__hostseries=t),t[r]=s):t[r]=null},this)},formattooltip:function(t){var e=this.getdata(),i=this.getrawvalue(t),n=y(i)?f(i,ll).join(", "):ll(i),o=e.getname(t),a=hl(this.name);return(null!=i||o)&&(a+="
"),o&&(a+=hl(o),null!=i&&(a+=" : ")),null!=i&&(a+=hl(n)),a},getdata:function(){return this._data},setdata:function(t){this._data=t}});u(ul,nb),ul.extend({type:"markpoint",defaultoption:{zlevel:0,z:5,symbol:"pin",symbolsize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemstyle:{normal:{borderwidth:2}}}});var cl=l,dl=v,fl={min:dl(mm,"min"),max:dl(mm,"max"),average:dl(mm,"average")},gl=lr({type:"marker",init:function(){this.markergroupmap=z()},render:function(t,e,i){var n=this.markergroupmap;n.each(function(t){t.__keep=!1});var o=this.type+"model";e.eachseries(function(t){var n=t[o];n&&this.renderseries(t,n,e,i)},this),n.each(function(t){!t.__keep&&this.group.remove(t.group)},this)},renderseries:function(){}});gl.extend({type:"markpoint",updatelayout:function(t,e,i){e.eachseries(function(t){var e=t.markpointmodel;e&&(wm(e.getdata(),t,i),this.markergroupmap.get(t.id).updatelayout(e))},this)},renderseries:function(t,e,i,n){var o=t.coordinatesystem,a=t.id,r=t.getdata(),s=this.markergroupmap,l=s.get(a)||s.set(a,new ts),h=sm(o,t,e);e.setdata(h),wm(e.getdata(),t,n),h.each(function(t){var i=h.getitemmodel(t),n=i.getshallow("symbolsize");"function"==typeof n&&(n=n(e.getrawvalue(t),e.getdataparams(t))),h.setitemvisual(t,{symbolsize:n,color:i.get("itemstyle.normal.color")||r.getvisual("color"),symbol:i.getshallow("symbol")})}),l.updatedata(h),this.group.add(l.group),h.eachitemgraphicel(function(t){t.traverse(function(t){t.datamodel=e})}),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),tr(function(t){t.markpoint=t.markpoint||{}}),ul.extend({type:"markline",defaultoption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolsize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},linestyle:{normal:{type:"dashed"},emphasis:{width:3}},animationeasing:"linear"}});var pl=function(t,e,o,r){var s=t.getdata(),l=r.type;if(!y(r)&&("min"===l||"max"===l||"average"===l||null!=r.xaxis||null!=r.yaxis)){var h,u;if(null!=r.yaxis||null!=r.xaxis)h=null!=r.yaxis?"y":"x",e.getaxis(h),u=i(r.yaxis,r.xaxis);else{var c=ym(r,s,e,t);h=c.valuedatadim,c.valueaxis,u=bm(s,h,l)}var d="x"===h?0:1,f=1-d,g=i(r),p={};g.type=null,g.coord=[],p.coord=[],g.coord[f]=-1/0,p.coord[f]=1/0;var m=o.get("precision");m>=0&&"number"==typeof u&&(u=+u.tofixed(math.min(m,20))),g.coord[d]=p.coord[d]=u,r=[g,p,{type:l,valueindex:r.valueindex,value:u}]}return r=[vm(t,r[0]),vm(t,r[1]),a({},r[2])],r[2].type=r[2].type||"",n(r[2],r[0]),n(r[2],r[1]),r};gl.extend({type:"markline",updatelayout:function(t,e,i){e.eachseries(function(t){var e=t.marklinemodel;if(e){var n=e.getdata(),o=e.__from,a=e.__to;o.each(function(e){am(o,e,!0,t,i),am(a,e,!1,t,i)}),n.each(function(t){n.setitemlayout(t,[o.getitemlayout(t),a.getitemlayout(t)])}),this.markergroupmap.get(t.id).updatelayout()}},this)},renderseries:function(t,e,i,n){function o(e,i,o){var a=e.getitemmodel(i);am(e,i,o,t,n),e.setitemvisual(i,{symbolsize:a.get("symbolsize")||p[o?0:1],symbol:a.get("symbol",!0)||g[o?0:1],color:a.get("itemstyle.normal.color")||s.getvisual("color")})}var a=t.coordinatesystem,r=t.id,s=t.getdata(),l=this.markergroupmap,h=l.get(r)||l.set(r,new mu);this.group.add(h.group);var u=cm(a,t,e),c=u.from,d=u.to,f=u.line;e.__from=c,e.__to=d,e.setdata(f);var g=e.get("symbol"),p=e.get("symbolsize");y(g)||(g=[g,g]),"number"==typeof p&&(p=[p,p]),u.from.each(function(t){o(c,t,!0),o(d,t,!1)}),f.each(function(t){var e=f.getitemmodel(t).get("linestyle.normal.color");f.setitemvisual(t,{color:e||c.getitemvisual(t,"color")}),f.setitemlayout(t,[c.getitemlayout(t),d.getitemlayout(t)]),f.setitemvisual(t,{fromsymbolsize:c.getitemvisual(t,"symbolsize"),fromsymbol:c.getitemvisual(t,"symbol"),tosymbolsize:d.getitemvisual(t,"symbolsize"),tosymbol:d.getitemvisual(t,"symbol")})}),h.updatedata(f),u.line.eachitemgraphicel(function(t,i){t.traverse(function(t){t.datamodel=e})}),h.__keep=!0,h.group.silent=e.get("silent")||t.get("silent")}}),tr(function(t){t.markline=t.markline||{}}),ul.extend({type:"markarea",defaultoption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{normal:{show:!0,position:"top"},emphasis:{show:!0,position:"top"}},itemstyle:{normal:{borderwidth:0}}}});var ml=function(t,e,i,n){var a=vm(t,n[0]),r=vm(t,n[1]),s=i,l=a.coord,h=r.coord;l[0]=s(l[0],-1/0),l[1]=s(l[1],-1/0),h[0]=s(h[0],1/0),h[1]=s(h[1],1/0);var u=o([{},a,r]);return u.coord=[a.coord,r.coord],u.x0=a.x,u.y0=a.y,u.x1=r.x,u.y1=r.y,u},vl=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];gl.extend({type:"markarea",updatelayout:function(t,e,i){e.eachseries(function(t){var e=t.markareamodel;if(e){var n=e.getdata();n.each(function(e){var o=f(vl,function(o){return pm(n,e,o,t,i)});n.setitemlayout(e,o),n.getitemgraphicel(e).setshape("points",o)})}},this)},renderseries:function(t,e,i,n){var o=t.coordinatesystem,a=t.name,s=t.getdata(),l=this.markergroupmap,h=l.get(a)||l.set(a,{group:new jy});this.group.add(h.group),h.__keep=!0;var u=om(o,t,e);e.setdata(u),u.each(function(e){u.setitemlayout(e,f(vl,function(i){return pm(u,e,i,t,n)})),u.setitemvisual(e,{color:s.getvisual("color")})}),u.diff(h.__data).add(function(t){var e=new ub({shape:{points:u.getitemlayout(t)}});u.setitemgraphicel(t,e),h.group.add(e)}).update(function(t,i){var n=h.__data.getitemgraphicel(i);wo(n,{shape:{points:u.getitemlayout(t)}},e,t),h.group.add(n),u.setitemgraphicel(t,n)}).remove(function(t){var e=h.__data.getitemgraphicel(t);h.group.remove(e)}).execute(),u.eachitemgraphicel(function(t,i){var n=u.getitemmodel(i),o=n.getmodel("label.normal"),a=n.getmodel("label.emphasis"),s=u.getitemvisual(i,"color");t.usestyle(r(n.getmodel("itemstyle.normal").getitemstyle(),{fill:pt(s,.4),stroke:s})),t.hoverstyle=n.getmodel("itemstyle.emphasis").getitemstyle(),co(t.style,t.hoverstyle,o,a,{labelfetcher:e,labeldataindex:i,defaulttext:u.getname(i)||"",isrecttext:!0,autocolor:s}),uo(t,{}),t.datamodel=e}),h.__data=u,h.group.silent=e.get("silent")||t.get("silent")}}),tr(function(t){t.markarea=t.markarea||{}});ub.registersubtypedefaulter("timeline",function(){return"slider"}),ir({type:"timelinechange",event:"timelinechanged",update:"prepareandupdate"},function(t,e){var i=e.getcomponent("timeline");return i&&null!=t.currentindex&&(i.setcurrentindex(t.currentindex),!i.get("loop",!0)&&i.isindexmax()&&i.setplaystate(!1)),e.resetoption("timeline"),r({currentindex:i.option.currentindex},t)}),ir({type:"timelineplaychange",event:"timelineplaychanged",update:"update"},function(t,e){var i=e.getcomponent("timeline");i&&null!=t.playstate&&i.setplaystate(t.playstate)});var yl=ub.extend({type:"timeline",layoutmode:"box",defaultoption:{zlevel:0,z:4,show:!0,axistype:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlposition:"left",autoplay:!1,rewind:!1,loop:!0,playinterval:2e3,currentindex:0,itemstyle:{normal:{},emphasis:{}},label:{normal:{color:"#000"},emphasis:{}},data:[]},init:function(t,e,i){this._data,this._names,this.mergedefaultandtheme(t,i),this._initdata()},mergeoption:function(t){yl.superapply(this,"mergeoption",arguments),this._initdata()},setcurrentindex:function(t){null==t&&(t=this.option.currentindex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentindex=t},getcurrentindex:function(){return this.option.currentindex},isindexmax:function(){return this.getcurrentindex()>=this._data.count()-1},setplaystate:function(t){this.option.autoplay=!!t},getplaystate:function(){return!!this.option.autoplay},_initdata:function(){var t=this.option,e=t.data||[],n=t.axistype,o=this._names=[];if("category"===n){var a=[];d(e,function(t,e){var n,r=no(t);b(t)?(n=i(t)).value=e:n=e,a.push(n),_(r)||null!=r&&!isnan(r)||(r=""),o.push(r+"")}),e=a}var r={category:"ordinal",time:"time"}[n]||"number";(this._data=new as([{name:"value",type:r}],this)).initdata(e,o)},getdata:function(){return this._data},getcategories:function(){if("category"===this.get("axistype"))return this._names.slice()}});u(yl.extend({type:"timeline.slider",defaultoption:{backgroundcolor:"rgba(0,0,0,0)",bordercolor:"#ccc",borderwidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptycircle",symbolsize:10,linestyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,color:"#304654"},emphasis:{show:!0,color:"#c23531"}},itemstyle:{normal:{color:"#304654",borderwidth:1},emphasis:{color:"#c23531"}},checkpointstyle:{symbol:"circle",symbolsize:13,color:"#c23531",borderwidth:5,bordercolor:"rgba(194,53,49, 0.5)",animation:!0,animationduration:300,animationeasing:"quinticinout"},controlstyle:{show:!0,showplaybtn:!0,showprevbtn:!0,shownextbtn:!0,itemsize:22,itemgap:12,position:"left",playicon:"path://m31.6,53c17.5,53,6,41.5,6,27.4s17.5,1.8,31.6,1.8c45.7,1.8,57.2,13.3,57.2,27.4s45.7,53,31.6,53z m31.6,3.3 c18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1c44.9,51.5,55.7,40.7,55.7,27.4c55.7,14.1,44.9,3.3,31.6,3.3z m24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2v21.3z",stopicon:"path://m30.9,53.2c16.8,53.2,5.3,41.7,5.3,27.6s16.8,2,30.9,2c45,2,56.4,13.5,56.4,27.6s45,53.2,30.9,53.2z m30.9,3.5c17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1c44.2,51.7,55,40.9,55,27.6c54.9,14.4,44.1,3.5,30.9,3.5z m36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1v19.5c0-0.6,0.4-1,0.9-1h36c0.5,0,0.9,0.4,0.9,1v35.8z m27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1v19.5c0-0.6,0.4-1,0.9-1h27c0.5,0,0.9,0.4,0.9,1l27.8,35.8l27.8,35.8z",nexticon:"path://m18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7l18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1l19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8c18.4,51.2,18.5,51,18.6,50.8z",previcon:"path://m43,52.8l20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7l42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3l18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1l41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8c43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",bordercolor:"#304654",borderwidth:1},emphasis:{color:"#c23531",bordercolor:"#c23531",borderwidth:2}},data:[]}}),nb);var xl=xw.extend({type:"timeline"}),_l=function(t,e,i,n){us.call(this,t,e,i),this.type=n||"value",this._autolabelinterval,this.model=null};_l.prototype={constructor:_l,getlabelinterval:function(){var t=this.model,e=t.getmodel("label.normal"),i=e.get("interval");return null!=i&&"auto"!=i?i:((i=this._autolabelinterval)||(i=this._autolabelinterval=rr(f(this.scale.getticks(),this.datatocoord,this),vr(this,e.get("formatter")),e.getfont(),"horizontal"===t.get("orient")?0:90,e.get("rotate"))),i)},islabelignored:function(t){if("category"===this.type){var e=this.getlabelinterval();return"function"==typeof e&&!e(t,this.scale.getlabel(t))||t%(e+1)}}},h(_l,us);var bl=m,wl=d,sl=math.pi;xl.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewrect,this._timer,this._currentpointer,this._maingroup,this._labelgroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this.ecmodel=e,this.group.removeall(),t.get("show",!0)){var o=this._layout(t,i),a=this._creategroup("maingroup"),r=this._creategroup("labelgroup"),s=this._axis=this._createaxis(o,t);t.formattooltip=function(t){return gi(s.scale.getlabel(t))},wl(["axisline","axistick","control","currentpointer"],function(e){this["_render"+e](o,a,s,t)},this),this._renderaxislabel(o,r,s,t),this._position(o,t)}this._doplaystop()},remove:function(){this._cleartimer(),this.group.removeall()},dispose:function(){this._cleartimer()},_layout:function(t,e){var i=t.get("label.normal.position"),n=t.get("orient"),o=rm(t,e);null==i||"auto"===i?i="horizontal"===n?o.y+o.height/2=0||"+"===i?"left":"right"},r={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},s={horizontal:0,vertical:sl/2},l="vertical"===n?o.height:o.width,h=t.getmodel("controlstyle"),u=h.get("show"),c=u?h.get("itemsize"):0,d=u?h.get("itemgap"):0,f=c+d,g=t.get("label.normal.rotate")||0;g=g*sl/180;var p,m,v,y,x=h.get("position",!0),_=(u=h.get("show",!0))&&h.get("showplaybtn",!0),b=u&&h.get("showprevbtn",!0),w=u&&h.get("shownextbtn",!0),s=0,m=l;return"left"===x||"bottom"===x?(_&&(p=[0,0],s+=f),b&&(m=[s,0],s+=f),w&&(v=[m-c,0],m-=f)):(_&&(p=[m-c,0],m-=f),b&&(m=[0,0],s+=f),w&&(v=[m-c,0],m-=f)),y=[s,m],t.get("inverse")&&y.reverse(),{viewrect:o,mainlength:l,orient:n,rotation:s[n],labelrotation:g,labelposopt:i,labelalign:t.get("label.normal.align")||a[n],labelbaseline:t.get("label.normal.verticalalign")||t.get("label.normal.baseline")||r[n],playposition:p,prevbtnposition:m,nextbtnposition:v,axisextent:y,controlsize:c,controlgap:d}},_position:function(t,e){function i(t){var e=t.position;t.origin=[c[0][0]-e[0],c[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function o(t,e,i,n,o){t[n]+=i[n][o]-e[n][o]}var a=this._maingroup,r=this._labelgroup,s=t.viewrect;if("vertical"===t.orient){var l=ot(),h=s.x,u=s.y+s.height;lt(l,l,[-h,-u]),ht(l,l,-sl/2),lt(l,l,[h,u]),(s=s.clone()).applytransform(l)}var c=n(s),d=n(a.getboundingrect()),f=n(r.getboundingrect()),g=a.position,p=r.position;p[0]=g[0]=c[0][0];var m=t.labelposopt;if(isnan(m))o(g,d,c,1,v="+"===m?0:1),o(p,f,c,1,1-v);else{var v=m>=0?0:1;o(g,d,c,1,v),p[1]=g[1]+m}a.attr("position",g),r.attr("position",p),a.rotation=r.rotation=t.rotation,i(a),i(r)},_createaxis:function(t,e){var i=e.getdata(),n=e.get("axistype"),o=er(e,n),a=i.getdataextent("value");o.setextent(a[0],a[1]),this._customizescale(o,i),o.niceticks();var r=new _l("value",o,t.axisextent,n);return r.model=e,r},_customizescale:function(t,e){t.getticks=function(){return e.maparray(["value"],function(t){return t})},t.gettickslabels=function(){return f(this.getticks(),t.getlabel,t)}},_creategroup:function(t){var e=this["_"+t]=new jy;return this.group.add(e),e},_renderaxisline:function(t,e,i,n){var o=i.getextent();n.get("linestyle.show")&&e.add(new fb({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:a({linecap:"round"},n.getmodel("linestyle").getlinestyle()),silent:!0,z2:1}))},_renderaxistick:function(t,e,i,n){var o=n.getdata(),a=i.scale.getticks();wl(a,function(t,a){var r=i.datatocoord(t),s=o.getitemmodel(a),l=s.getmodel("itemstyle.normal"),h=s.getmodel("itemstyle.emphasis"),u={position:[r,0],onclick:bl(this._changetimeline,this,a)},c=bm(s,l,e,u);uo(c,h.getitemstyle()),s.get("tooltip")?(c.dataindex=a,c.datamodel=n):c.dataindex=c.datamodel=null},this)},_renderaxislabel:function(t,e,i,n){var o=n.getmodel("label.normal");if(o.get("show")){var a=n.getdata(),r=i.scale.getticks(),s=vr(i,o.get("formatter")),l=i.getlabelinterval();wl(r,function(n,o){if(!i.islabelignored(o,l)){var r=a.getitemmodel(o),h=r.getmodel("label.normal"),u=r.getmodel("label.emphasis"),c=i.datatocoord(n),d=new ib({position:[c,0],rotation:t.labelrotation-t.rotation,onclick:bl(this._changetimeline,this,o),silent:!1});fo(d.style,h,{text:s[o],textalign:t.labelalign,textverticalalign:t.labelbaseline}),e.add(d),uo(d,fo({},u))}},this)}},_rendercontrol:function(t,e,i,n){function o(t,i,o,u){if(t){var c=vm(n,i,h,{position:t,origin:[a/2,0],rotation:u?-r:0,recthover:!0,style:s,onclick:o});e.add(c),uo(c,l)}}var a=t.controlsize,r=t.rotation,s=n.getmodel("controlstyle.normal").getitemstyle(),l=n.getmodel("controlstyle.emphasis").getitemstyle(),h=[0,-a/2,a,a],u=n.getplaystate(),c=n.get("inverse",!0);o(t.nextbtnposition,"controlstyle.nexticon",bl(this._changetimeline,this,c?"-":"+")),o(t.prevbtnposition,"controlstyle.previcon",bl(this._changetimeline,this,c?"+":"-")),o(t.playposition,"controlstyle."+(u?"stopicon":"playicon"),bl(this._handleplayclick,this,!u),!0)},_rendercurrentpointer:function(t,e,i,n){var o=n.getdata(),a=n.getcurrentindex(),r=o.getitemmodel(a).getmodel("checkpointstyle"),s=this,l={oncreate:function(t){t.draggable=!0,t.drift=bl(s._handlepointerdrag,s),t.ondragend=bl(s._handlepointerdragend,s),gm(t,a,i,n,!0)},onupdate:function(t){gm(t,a,i,n)}};this._currentpointer=bm(r,r,this._maingroup,{},this._currentpointer,l)},_handleplayclick:function(t){this._cleartimer(),this.api.dispatchaction({type:"timelineplaychange",playstate:t,from:this.uid})},_handlepointerdrag:function(t,e,i){this._cleartimer(),this._pointerchangetimeline([i.offsetx,i.offsety])},_handlepointerdragend:function(t){this._pointerchangetimeline([t.offsetx,t.offsety],!0)},_pointerchangetimeline:function(t,e){var i=this._toaxiscoord(t)[0],n=ii(this._axis.getextent().slice());i>n[1]&&(i=n[1]),ii.getheight()&&(n.textposition="top",l=!0);var h=l?-5-o.height:s+8;a+o.width/2>i.getwidth()?(n.textposition=["100%",h],n.textalign="right"):a-o.width/2<0&&(n.textposition=[0,h],n.textalign="left")}})}},updateview:function(t,e,i,n){d(this._features,function(t){t.updateview&&t.updateview(t.model,e,i,n)})},updatelayout:function(t,e,i,n){d(this._features,function(t){t.updatelayout&&t.updatelayout(t.model,e,i,n)})},remove:function(t,e){d(this._features,function(i){i.remove&&i.remove(t,e)}),this.group.removeall()},dispose:function(t,e){d(this._features,function(i){i.dispose&&i.dispose(t,e)})}});var il=ld.toolbox.saveasimage;hm.defaultoption={show:!0,icon:"m4.7,22.9l29.3,45.5l54.7,23.4m4.6,43.6l4.6,58l53.8,58l53.8,43.6m29.2,45.1l29.2,0",title:il.title,type:"png",name:"",excludecomponents:["toolbox"],pixelratio:1,lang:il.lang.slice()},hm.prototype.unusable=!uv.canvassupported,hm.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o=document.createelement("a"),a=i.get("type",!0)||"png";o.download=n+"."+a,o.target="_blank";var r=e.getconnecteddataurl({type:a,backgroundcolor:i.get("backgroundcolor",!0)||t.get("backgroundcolor")||"#fff",excludecomponents:i.get("excludecomponents"),pixelratio:i.get("pixelratio")});if(o.href=r,"function"!=typeof mouseevent||uv.browser.ie||uv.browser.edge)if(window.navigator.mssaveoropenblob){for(var s=atob(r.split(",")[1]),l=s.length,h=new uint8array(l);l--;)h[l]=s.charcodeat(l);var u=new blob([h]);window.navigator.mssaveoropenblob(u,n+"."+a)}else{var c=i.get("lang"),d='';window.open().document.write(d)}else{var f=new mouseevent("click",{view:window,bubbles:!0,cancelable:!1});o.dispatchevent(f)}},wp("saveasimage",hm);var tl=ld.toolbox.magictype;fm.defaultoption={show:!0,type:[],icon:{line:"m4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9m4.1,58h51.4",bar:"m6.7,22.9h10v48h-10v22.9zm24.9,13h10v35h-10v13zm43.2,2h10v46h-10v2zm3.1,58h53.7",stack:"m8.2,38.4l-8.4,4.1l30.6,15.3l60,42.5l-8.1-4.1l-21.5,11l8.2,38.4z m51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9l8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2l51.9,30z m51.9,21.7l-8.1,4.2l35.7,30l-5.3,2.8l24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2l8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1l51.9,21.7zm30.4,2.2l-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1l30.4,2.2z",tiled:"m2.3,2.2h22.8v25h2.3v2.2z m35,2.2h22.8v25h35v2.2zm2.3,35h22.8v22.8h2.3v35z m35,35h22.8v22.8h35v35z"},title:i(tl.title),option:{},seriesindex:{}};var al=fm.prototype;al.geticons=function(){var t=this.model,e=t.get("icon"),i={};return d(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var cl={line:function(t,e,i,o){if("bar"===t)return n({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markpoint:i.get("markpoint"),markline:i.get("markline")},o.get("option.line")||{},!0)},bar:function(t,e,i,o){if("line"===t)return n({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markpoint:i.get("markpoint"),markline:i.get("markline")},o.get("option.bar")||{},!0)},stack:function(t,e,i,o){if("line"===t||"bar"===t)return n({id:e,stack:"__ec_magictype_stack__"},o.get("option.stack")||{},!0)},tiled:function(t,e,i,o){if("line"===t||"bar"===t)return n({id:e,stack:""},o.get("option.tiled")||{},!0)}},dl=[["line","bar"],["stack","tiled"]];al.onclick=function(t,e,i){var n=this.model,o=n.get("seriesindex."+i);if(cl[i]){var a={series:[]};d(dl,function(t){l(t,i)>=0&&d(t,function(t){n.seticonstatus(t,"normal")})}),n.seticonstatus(i,"emphasis"),t.eachcomponent({maintype:"series",query:null==o?null:{seriesindex:o}},function(e){var o=e.subtype,s=e.id,l=cl[i](o,s,e,n);l&&(r(l,e.option),a.series.push(l));var h=e.coordinatesystem;if(h&&"cartesian2d"===h.type&&("line"===i||"bar"===i)){var u=h.getaxesbyscale("ordinal")[0];if(u){var c=u.dim+"axis",d=t.querycomponents({maintype:c,index:e.get(name+"index"),id:e.get(name+"id")})[0].componentindex;a[c]=a[c]||[];for(var f=0;f<=d;f++)a[c][d]=a[c][d]||{};a[c][d].boundarygap="bar"===i}}}),e.dispatchaction({type:"changemagictype",currenttype:i,newoption:a})}},ir({type:"changemagictype",event:"magictypechanged",update:"prepareandupdate"},function(t,e){e.mergeoption(t.newoption)}),wp("magictype",fm);var ll=ld.toolbox.dataview,kl=new array(60).join("-"),pl="\t",ol=new regexp("["+pl+"]+","g");qm.defaultoption={show:!0,readonly:!1,optiontocontent:null,contenttooption:null,icon:"m17.5,17.3h33 m17.5,17.3h33 m45.4,29.5h-28 m11.5,2v56h51v14.8l38.4,2h11.5z m38.4,2.2v12.7h51 m45.4,41.7h-28",title:i(ll.title),lang:i(ll.lang),backgroundcolor:"#fff",textcolor:"#000",textareacolor:"#fff",textareabordercolor:"#333",buttoncolor:"#c23531",buttontextcolor:"#fff"},qm.prototype.onclick=function(t,e){function i(){n.removechild(a),x._dom=null}var n=e.getdom(),o=this.model;this._dom&&n.removechild(this._dom);var a=document.createelement("div");a.style.csstext="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",a.style.backgroundcolor=o.get("backgroundcolor")||"#fff";var r=document.createelement("h4"),s=o.get("lang")||[];r.innerhtml=s[0]||o.get("title"),r.style.csstext="margin: 10px 20px;",r.style.color=o.get("textcolor");var l=document.createelement("div"),h=document.createelement("textarea");l.style.csstext="display:block;width:100%;overflow:auto;";var u=o.get("optiontocontent"),c=o.get("contenttooption"),d=jm(t);if("function"==typeof u){var f=u(e.getoption());"string"==typeof f?l.innerhtml=f:s(f)&&l.appendchild(f)}else l.appendchild(h),h.readonly=o.get("readonly"),h.style.csstext="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",h.style.color=o.get("textcolor"),h.style.bordercolor=o.get("textareabordercolor"),h.style.backgroundcolor=o.get("textareacolor"),h.value=d.value;var g=d.meta,p=document.createelement("div");p.style.csstext="position:absolute;bottom:0;left:0;right:0;";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createelement("div"),y=document.createelement("div");m+=";background-color:"+o.get("buttoncolor"),m+=";color:"+o.get("buttontextcolor");var x=this;si(v,"click",i),si(y,"click",function(){var t;try{t="function"==typeof c?c(l,e.getoption()):jm(h.value,g)}catch(t){throw i(),new error("data view format error "+t)}t&&e.dispatchaction({type:"changedataview",newoption:t}),i()}),v.innerhtml=s[1],y.innerhtml=s[2],y.style.csstext=m,v.style.csstext=m,!o.get("readonly")&&p.appendchild(y),p.appendchild(v),si(h,"keydown",function(t){if(9===(t.keycode||t.which)){var e=this.value,i=this.selectionstart,n=this.selectionend;this.value=e.substring(0,i)+pl+e.substring(n),this.selectionstart=this.selectionend=i+1,bx(t)}}),a.appendchild(r),a.appendchild(l),a.appendchild(p),l.style.height=n.clientheight-80+"px",n.appendchild(a),this._dom=a},qm.prototype.remove=function(t,e){this._dom&&e.getdom().removechild(this._dom)},qm.prototype.dispose=function(t,e){this.remove(t,e)},wp("dataview",qm),ir({type:"changedataview",event:"dataviewchanged",update:"prepareandupdate"},function(t,e){var i=[];d(t.newoption.series,function(t){var n=e.getseriesbyname(t.name)[0];if(n){var o=n.get("data");i.push({name:t.name,data:tv(t.data,o)})}else i.push(a({type:"scatter"},t))}),e.mergeoption(r({series:i},t.newoption))});var zl=d,nl="\0_ec_hist_store";bd.extend({type:"datazoom.select"}),wd.extend({type:"datazoom.select"});var el=ld.toolbox.datazoom,rl=d,vl="\0_ec_\0toolbox-datazoom_";rv.defaultoption={show:!0,icon:{zoom:"m0,13.5h26.9 m13.5,26.9v0 m32.1,13.5h58v58h13.5 v32.1",back:"m22,1.4l9.9,13.5l12.3,12.3 m10.3,13.5h54.9v44.6 h10.3v-26"},title:i(el.title)};var bl=rv.prototype;bl.render=function(t,e,i,n){this.model=t,this.ecmodel=e,this.api=i,hv(t,e,this,n,i),lv(t,e)},bl.onclick=function(t,e,i){gl[i].call(this)},bl.remove=function(t,e){this._brushcontroller.unmount()},bl.dispose=function(t,e){this._brushcontroller.dispose()};var gl={zoom:function(){var t=!this._iszoomactive;this.api.dispatchaction({type:"takeglobalcursor",key:"datazoomselect",datazoomselectactive:t})},back:function(){this._dispatchzoomaction(iv(this.ecmodel))}};bl._onbrush=function(t,e){function i(t,e,i){var r=e.getaxis(t),s=r.model,l=n(t,s,a),h=l.findrepresentativeaxisproxy(s).getminmaxspan();null==h.minvaluespan&&null==h.maxvaluespan||(i=ot(0,i.slice(),r.scale.getextent(),0,h.minvaluespan,h.maxvaluespan)),l&&(o[l.id]={datazoomid:l.id,startvalue:i[0],endvalue:i[1]})}function n(t,e,i){var n;return i.eachcomponent({maintype:"datazoom",subtype:"select"},function(i){i.getaxismodel(t,e.componentindex)&&(n=i)}),n}if(e.isend&&t.length){var o={},a=this.ecmodel;this._brushcontroller.updatecovers([]),new rp(sv(this.model.option),a,{include:["grid"]}).matchoutputranges(t,a,function(t,e,n){if("cartesian2d"===n.type){var o=t.brushtype;"rect"===o?(i("x",n,e[0]),i("y",n,e[1])):i({linex:"x",liney:"y"}[o],n,e)}}),ev(a,o),this._dispatchzoomaction(o)}},bl._dispatchzoomaction=function(t){var e=[];rl(t,function(t,n){e.push(i(t))}),e.length&&this.api.dispatchaction({type:"datazoom",from:this.uid,batch:e})},wp("datazoom",rv),tr(function(t){function e(t,e){if(e){var o=t+"index",a=e[o];null==a||"all"==a||y(a)||(a=!1===a||"none"===a?[]:[a]),i(t,function(e,i){if(null==a||"all"==a||-1!==l(a,i)){var r={type:"select",$fromtoolbox:!0,id:vl+t+i};r[o]=i,n.push(r)}})}}function i(e,i){var n=t[e];y(n)||(n=n?[n]:[]),rl(n,i)}if(t){var n=t.datazoom||(t.datazoom=[]);y(n)||(t.datazoom=n=[n]);var o=t.toolbox;if(o&&(y(o)&&(o=o[0]),o&&o.feature)){var a=o.feature.datazoom;e("xaxis",a),e("yaxis",a)}}});var wl=ld.toolbox.restore;uv.defaultoption={show:!0,icon:"m3.8,33.4 m47,18.9h9.8v8.7 m56.3,20.1 c52.1,9,40.5,0.6,26.8,2.1c12.6,3.7,1.6,16.2,2.1,30.6 m13,41.1h3.1v10.2 m3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:wl.title},uv.prototype.onclick=function(t,e,i){nv(t),e.dispatchaction({type:"restore",from:this.uid})},wp("restore",uv),ir({type:"restore",event:"restore",update:"prepareandupdate"},function(t,e){e.resetoption("recreate")});var hl,fl="urn:schemas-microsoft-com:vml",zl="undefined"==typeof window?null:window,ul=!1,xl=zl&&zl.document;if(xl&&!uv.canvassupported)try{!xl.namespaces.zrvml&&xl.namespaces.add("zrvml",fl),hl=function(t){return xl.createelement("')}}catch(t){hl=function(t){return xl.createelement("<"+t+' xmlns="'+fl+'" class="zrvml">')}}var jl=p_.cmd,ql=math.round,yl=math.sqrt,$l=math.abs,kl=math.cos,jl=math.sin,ql=math.max;if(!uv.canvassupported){var tk=21600,ek=tk/2,ik=function(t){t.style.csstext="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=tk+","+tk,t.coordorigin="0,0"},nk=function(t){return string(t).replace(/&/g,"&").replace(/"/g,""")},ok=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},ak=function(t,e){e&&t&&e.parentnode!==t&&t.appendchild(e)},rk=function(t,e){e&&t&&e.parentnode===t&&t.removechild(e)},sk=function(t,e,i){return 1e5*(parsefloat(t)||0)+1e3*(parsefloat(e)||0)+i},lk=function(t,e){return"string"==typeof t?t.lastindexof("%")>=0?parsefloat(t)/100*e:parsefloat(t):t},hk=function(t,e,i){var n=mt(e);i=+i,isnan(i)&&(i=1),n&&(t.color=ok(n[0],n[1],n[2]),t.opacity=i*n[3])},uk=function(t){var e=mt(t);return[ok(e[0],e[1],e[2]),e[3]]},ck=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof yb){var o,a=0,r=[0,0],s=0,l=1,h=i.getboundingrect(),u=h.width,c=h.height;if("linear"===n.type){o="gradient";var d=i.transform,f=[n.x*u,n.y*c],g=[n.x2*u,n.y2*c];d&&($(f,f,d),$(g,g,d));var p=g[0]-f[0],m=g[1]-f[1];(a=180*math.atan2(p,m)/math.pi)<0&&(a+=360),a<1e-6&&(a=0)}else{o="gradientradial";var f=[n.x*u,n.y*c],d=i.transform,v=i.scale,y=u,x=c;r=[(f[0]-h.x)/y,(f[1]-h.y)/x],d&&$(f,f,d),y/=v[0]*tk,x/=v[1]*tk;var _=ql(y,x);s=0/_,l=2*n.r/_-s}var b=n.colorstops.slice();b.sort(function(t,e){return t.offset-e.offset});for(var w=b.length,s=[],m=[],i=0;i=2){var c=s[0][0],d=s[1][0],l=s[0][1]*e.opacity,k=s[1][1]*e.opacity;t.type=o,t.method="none",t.focus="100%",t.angle=a,t.color=c,t.color2=d,t.colors=m.join(","),t.opacity=k,t.opacity2=l}"radial"===o&&(t.focusposition=r.join(","))}else hk(t,n,e.opacity)},dk=function(t,e){null!=e.linedash&&(t.dashstyle=e.linedash.join(" ")),null==e.stroke||e.stroke instanceof yb||hk(t,e.stroke,e.opacity)},fk=function(t,e,i,n){var o="fill"==e,a=t.getelementsbytagname(e)[0];null!=i[e]&&"none"!==i[e]&&(o||!o&&i.linewidth)?(t[o?"filled":"stroked"]="true",i[e]instanceof yb&&rk(t,a),a||(a=cv(e)),o?ck(a,i,n):dk(a,i),ak(t,a)):(t[o?"filled":"stroked"]="false",rk(t,a))},gk=[[],[],[]],pk=function(t,e){var i,n,o,a,r,s,l=jl.m,h=jl.c,u=jl.l,c=jl.a,d=jl.q,f=[],g=t.data,p=t.len();for(a=0;a.01?o&&(z+=.0125):math.abs(n-c)<1e-4?o&&za?x-=.0125:x+=.0125:o&&nc?y+=.0125:y-=.0125),f.push(e,ql(((a-d)*m+w)*tk-ek),",",ql(((c-l)*i+s)*tk-ek),",",ql(((a+d)*m+w)*tk-ek),",",ql(((c+l)*i+s)*tk-ek),",",ql((z*m+w)*tk-ek),",",ql((n*i+s)*tk-ek),",",ql((y*m+w)*tk-ek),",",ql((x*i+s)*tk-ek)),r=y,s=x;break;case jl.r:var r=gk[0],v=gk[1];r[0]=g[a++],r[1]=g[a++],v[0]=r[0]+g[a++],v[1]=r[1]+g[a++],e&&($(r,r,e),$(v,v,e)),r[0]=ql(r[0]*tk-ek),v[0]=ql(v[0]*tk-ek),r[1]=ql(r[1]*tk-ek),v[1]=ql(v[1]*tk-ek),f.push(" m ",r[0],",",r[1]," l ",v[0],",",r[1]," l ",v[0],",",v[1]," l ",r[0],",",v[1]);break;case jl.z:f.push(" x ")}if(i>0){f.push(n);for(var b=0;b100&&(xk=0,yk={});var i,n=_k.style;try{n.font=t,i=n.fontfamily.split(",")[0]}catch(t){}e={style:n.fontstyle||"normal",variant:n.fontvariant||"normal",weight:n.fontweight||"normal",size:0|parsefloat(n.fontsize||12),family:i||"microsoft yahei"},yk[t]=e,xk++}return e};!function(t,e){cx[t]=e}("measuretext",function(t,e){var i=xl;vk||((vk=i.createelement("div")).style.csstext="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",xl.body.appendchild(vk));try{vk.style.font=e}catch(t){}return vk.innerhtml="",vk.appendchild(i.createtextnode(t)),{width:vk.offsetwidth}});for(var wk=new jt,sk=[px,je,qe,nn,ib],mk=0;mk=o&&h+1>=a){for(var u=[],c=0;c=o&&c+1>=a)return cv(0,s.components);l[i]=s}else l[i]=void 0}r++}();if(d)return d}},pushcomponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractcommon:function(t,e,i,n){for(var o=e.length,a=i.length,r=t.newpos,s=r-n,l=0;r+1=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},lv.prototype.update=function(t,e){if(t){var i=this.getdefs(!1);if(t._dom&&i.contains(t._dom))"function"==typeof e&&e();else{var n=this.add(t);n&&(t._dom=n)}}},lv.prototype.adddom=function(t){this.getdefs(!0).appendchild(t)},lv.prototype.removedom=function(t){this.getdefs(!1).removechild(t._dom)},lv.prototype.getdoms=function(){var t=this.getdefs(!1);if(!t)return[];var e=[];return d(this._tagnames,function(i){var n=t.getelementsbytagname(i);e=e.concat([].slice.call(n))}),e},lv.prototype.markallunused=function(){var t=this;d(this.getdoms(),function(e){e[t._marklabel]="0"})},lv.prototype.markused=function(t){t&&(t[this._marklabel]="1")},lv.prototype.removeunused=function(){var t=this.getdefs(!1);if(t){var e=this;d(this.getdoms(),function(i){"1"!==i[e._marklabel]&&t.removechild(i)})}},lv.prototype.getsvgproxy=function(t){return t instanceof nn?rk:t instanceof qe?vk:t instanceof ib?bk:rk},lv.prototype.gettextsvgelement=function(t){return t.__textsvgel},lv.prototype.getsvgelement=function(t){return t.__svgel},h(kv,lv),kv.prototype.addwithoutupdate=function(t,e){if(e&&e.style){var i=this;d(["fill","stroke"],function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var o,a=e.style[n],r=i.getdefs(!0);a._dom?(o=a._dom,r.contains(a._dom)||i.adddom(o)):o=i.add(a),i.markused(e);var s=o.getattribute("id");t.setattribute(n,"url(#"+s+")")}})}},kv.prototype.add=function(t){var e;if("linear"===t.type)e=this.createelement("lineargradient");else{if("radial"!==t.type)return wy("illegal gradient type."),null;e=this.createelement("radialgradient")}return t.id=t.id||this.nextid++,e.setattribute("id","zr-gradient-"+t.id),this.updatedom(t,e),this.adddom(e),e},kv.prototype.update=function(t){var e=this;lv.prototype.update.call(this,t,function(){var i=t.type,n=t._dom.tagname;"linear"===i&&"lineargradient"===n||"radial"===i&&"radialgradient"===n?e.updatedom(t,t._dom):(e.removedom(t),e.add(t))})},kv.prototype.updatedom=function(t,e){if("linear"===t.type)e.setattribute("x1",t.x),e.setattribute("y1",t.y),e.setattribute("x2",t.x2),e.setattribute("y2",t.y2);else{if("radial"!==t.type)return void wy("illegal gradient type.");e.setattribute("cx",t.x),e.setattribute("cy",t.y),e.setattribute("r",t.r)}t.global?e.setattribute("gradientunits","userspaceonuse"):e.setattribute("gradientunits","objectboundingbox"),e.innerhtml="";for(var i=t.colorstops,n=0,o=i.length;n0){var n,o,a=this.getdefs(!0),r=e[0],s=i?"_textdom":"_dom";r[s]?(o=r[s].getattribute("id"),n=r[s],a.contains(n)||a.appendchild(n)):(o="zr-clip-"+this.nextid,++this.nextid,(n=this.createelement("clippath")).setattribute("id",o),a.appendchild(n),r[s]=n);var l=this.getsvgproxy(r);if(r.transform&&r.parent.invtransform&&!i){var h=array.prototype.slice.call(r.transform);st(r.transform,r.parent.invtransform,r.transform),l.brush(r),r.transform=h}else l.brush(r);var u=this.getsvgelement(r);n.appendchild(u.clonenode()),t.setattribute("clip-path","url(#"+o+")"),e.length>1&&this.updatedom(n,e.slice(1),i)}else t&&t.setattribute("clip-path","none")},pv.prototype.markused=function(t){var e=this;t.__clippaths&&t.__clippaths.length>0&&d(t.__clippaths,function(t){t._dom&&lv.prototype.markused.call(e,t._dom),t._textdom&&lv.prototype.markused.call(e,t._textdom)})};var zk=function(t,e){this.root=t,this.storage=e;var i=mv("svg");i.setattribute("xmlns","http://www.w3.org/2000/svg"),i.setattribute("version","1.1"),i.setattribute("baseprofile","full"),i.style["user-select"]="none",this.gradientmanager=new kv(i),this.clippathmanager=new pv(i);var n=document.createelement("div");n.style.csstext="overflow: hidden;",this._svgroot=i,this._viewport=n,t.appendchild(n),n.appendchild(i),this.resize(),this._visiblelist=[]};zk.prototype={constructor:zk,gettype:function(){return"svg"},getviewportroot:function(){return this._viewport},getviewportrootoffset:function(){var t=this.getviewportroot();if(t)return{offsetleft:t.offsetleft||0,offsettop:t.offsettop||0}},refresh:function(){var t=this.storage.getdisplaylist(!0);this._paintlist(t)},_paintlist:function(t){this.gradientmanager.markallunused(),this.clippathmanager.markallunused();var e,i=this._svgroot,n=this._visiblelist,o=t.length,a=[];for(e=0;e=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},resize:function(){var t=this._getwidth(),e=this._getheight();if(this._width!==t&&this._height!==e){this._width=t,this._height=e;var i=this._viewport.style;i.width=t+"px",i.height=e+"px";var n=this._svgroot;n.setattribute("width",t),n.setattribute("height",e)}},getwidth:function(){return this._getwidth()},getheight:function(){return this._getheight()},_getwidth:function(){var t=this.root,e=document.defaultview.getcomputedstyle(t);return(t.clientwidth||ov(e.width))-ov(e.paddingleft)-ov(e.paddingright)|0},_getheight:function(){var t=this.root,e=document.defaultview.getcomputedstyle(t);return(t.clientheight||ov(e.height))-ov(e.paddingtop)-ov(e.paddingbottom)|0},dispose:function(){this.root.innerhtml="",this._svgroot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removechild(this._viewport)},pathtosvg:function(){this.refresh();var t=this._svgroot.outerhtml;return"data:img/svg+xml;utf-8,"+unescape(t)}},d(["getlayer","insertlayer","eachlayer","eachbuiltinlayer","eachotherlayer","getlayers","modlayer","dellayer","clearlayer","todataurl","pathtoimage"],function(t){zk.prototype[t]=wv(t)}),xi("svg",zk),t.version="3.8.4",t.dependencies=cw,t.priority=pw,t.init=function(t,e,i){var n=qa(t);if(n)return n;var o=new za(t,e,i);return o.id="ec_"+yw++,jw[o.id]=o,t.setattribute?t.setattribute(kw,o.id):t[kw]=o.id,ka(o),o},t.connect=function(t){if(y(t)){var e=t;t=null,d(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+$w++,d(e,function(e){e.group=t})}return qw[t]=!0,t},t.disconnect=ja,t.disconnect=qw,t.dispose=function(t){"string"==typeof t?t=jw[t]:t instanceof za||(t=qa(t)),t instanceof za&&!t.isdisposed()&&t.dispose()},t.getinstancebydom=qa,t.getinstancebyid=function(t){return jw[t]},t.registertheme=function(t,e){uw[t]=e},t.registerpreprocessor=tr,t.registerprocessor=er,t.registerpostupdate=function(t){fw.push(t)},t.registeraction=ir,t.registercoordinatesystem=nr,t.getcoordinatesystemdimensions=function(t){var e=ua.get(t);if(e)return e.getdimensionsinfo?e.getdimensionsinfo():e.dimensions.slice()},t.registerlayout=or,t.registervisual=ar,t.registerloading=rr,t.extendcomponentmodel=sr,t.extendcomponentview=lr,t.extendseriesmodel=hr,t.extendchartview=ur,t.setcanvascreator=function(t){e("createcanvas",t)},t.registermap=function(t,e,i){e.geojson&&!e.features&&(i=e.specialareas,e=e.geojson),"string"==typeof e&&(e="undefined"!=typeof json&&json.parse?json.parse(e):new function("return ("+e+");")()),jw[t]={geojson:e,specialareas:i}},t.getmap=cr,t.datatool=ts,t.zrender=nx,t.graphic=tb,t.number=bx,t.format=xx,t.throttle=da,t.helper=hs,t.matrix=yy,t.vector=cy,t.color=ny,t.util=qs,t.list=as,t.model=lo,t.axis=us,t.env=uv,t.parsegeojson=js});