!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.echarts=e()}(this,function(){var t,e;!function(){function i(t,e){if(!e)return t;if(0===t.indexof(".")){var i=e.split("/"),n=t.split("/"),r=i.length-1,a=n.length,o=0,s=0;t:for(var l=0;a>l;l++)switch(n[l]){case"..":if(!(r>o))break t;o++,s++;break;case".":s++;break;default:break t}return i.length=r-o,n=n.slice(s),i.concat(n).join("/")}return t}function n(t){function e(e,o){if("string"==typeof e){var s=n[e];return s||(s=a(i(e,t)),n[e]=s),s}e instanceof array&&(o=o||function(){},o.apply(this,r(e,o,t)))}var n={};return e}function r(e,n,r){for(var s=[],l=o[r],u=0,c=math.min(e.length,n.length);c>u;u++){var h,f=i(e[u],r);switch(f){case"require":h=l&&l.require||t;break;case"exports":h=l.exports;break;case"module":h=l;break;default:h=a(f)}s.push(h)}return s}function a(t){var e=o[t];if(!e)throw new error("no "+t);if(!e.defined){var i=e.factory,n=i.apply(this,r(e.deps||[],i,t));"undefined"!=typeof n&&(e.exports=n),e.defined=1}return e.exports}var o={};e=function(t,e,i){o[t]={id:t,deps:e,factory:i,defined:0,exports:{},require:n(t)}},t=n("")}();var i="../core/util",n="__dirty",r="moveto",a="transform",o="rotation",s="getshallow",l="stroke",u="applytransform",c="createelement",h="undefined",f="normal",d="emphasis",p="offset",m="option",v="getlabel",g="isstring",y="inherits",_="filter",x="number",b="function",w="isarray",t="replace",m="zlevel",s="traverse",p="seriesindex",c="splice",a="dispose",z="trigger",k="defaults",i="dispatchaction",d="remove",l="series",o="concat",r="maintype",e="colorstops",b="dataindex",n="getdata",f="indexof",v="canvassupported",h="isobject",g="animation",q="string",u="tolowercase",z="zrender/core/vector",w="zrender/core/matrix",x="zrender/core/env",j="ecmodel",y="create",$="contain",k="length",j="_extent",q="extend",te="prototype",ee="opacity",ie="setstyle",ne="position",re="bottom",ae="center",oe="middle",se="getheight",le="getwidth",ue="target",ce="silent",he="height",fe="getboundingrect",de="gettextcolor",pe="getfont",me="textalign",ve="textstyle",ge="getmodel",ye="extendcomponentview",_e="coordinatesystem",xe="update",be="zrender/core/util",we="require";e("echarts/chart/map",[we,"../echarts","./map/mapseries","./map/mapview","../action/georoam","../coord/geo/geocreator","./map/mapsymbollayout","./map/mapvisual","./map/mapdatastatistic","./map/backwardcompat","../action/createdataselectaction"],function(t){var e=t("../echarts"),i=e.priority;t("./map/mapseries"),t("./map/mapview"),t("../action/georoam"),t("../coord/geo/geocreator"),e.registerlayout(t("./map/mapsymbollayout")),e.registervisual(t("./map/mapvisual")),e.registerprocessor(i.processor.statistic,t("./map/mapdatastatistic")),e.registerpreprocessor(t("./map/backwardcompat")),t("../action/createdataselectaction")("map",[{type:"maptoggleselect",event:"mapselectchanged",method:"toggleselected"},{type:"mapselect",event:"mapselected",method:"select"},{type:"mapunselect",event:"mapunselected",method:"unselect"}])}),e("echarts/component/geo",[we,"../coord/geo/geomodel","../coord/geo/geocreator","./geo/geoview","../action/georoam","../echarts",be],function(t){function e(t,e){e[xe]="updateview",i.registeraction(e,function(e,i){var r={};return i.eachcomponent({maintype:"geo",query:e},function(i){i[t](e.name);var a=i[_e];n.each(a.regions,function(t){r[t.name]=i.isselected(t.name)||!1})}),{selected:r,name:e.name}})}t("../coord/geo/geomodel"),t("../coord/geo/geocreator"),t("./geo/geoview"),t("../action/georoam");var i=t("../echarts"),n=t(be);e("toggleselected",{type:"geotoggleselect",event:"geoselectchanged"}),e("select",{type:"geoselect",event:"geoselected"}),e("unselect",{type:"geounselect",event:"geounselected"})}),e("echarts/component/title",[we,"../echarts","../util/graphic","../util/layout"],function(t){var e=t("../echarts"),i=t("../util/graphic"),n=t("../util/layout");e.extendcomponentmodel({type:"title",layoutmode:{type:"box",ignoresize:!0},defaultoption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundcolor:"rgba(0,0,0,0)",bordercolor:"#ccc",borderwidth:0,padding:5,itemgap:10,textstyle:{fontsize:18,fontweight:"bolder",color:"#333"},subtextstyle:{color:"#aaa"}}}),e[ye]({type:"title",render:function(t,e,r){if(this.group.removeall(),t.get("show")){var a=this.group,o=t[ge](ve),s=t[ge]("subtextstyle"),l=t.get(me),u=t.get("textbaseline"),c=new i.text({style:{text:t.get("text"),textfont:o[pe](),fill:o[de]()},z2:10}),h=c[fe](),f=t.get("subtext"),d=new i.text({style:{text:f,textfont:s[pe](),fill:s[de](),y:h[he]+t.get("itemgap"),textbaseline:"top"},z2:10}),p=t.get("link"),m=t.get("sublink");c[ce]=!p,d[ce]=!m,p&&c.on("click",function(){window.open(p,"_"+t.get(ue))}),m&&d.on("click",function(){window.open(m,"_"+t.get("subtarget"))}),a.add(c),f&&a.add(d);var v=a[fe](),g=t.getboxlayoutparams();g.width=v.width,g[he]=v[he];var y=n.getlayoutrect(g,{width:r[le](),height:r[se]()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l===oe&&(l=ae),"right"===l?y.x+=y.width:l===ae&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get(re),u===ae&&(u=oe),u===re?y.y+=y[he]:u===oe&&(y.y+=y[he]/2),u=u||"top"),a.attr(ne,[y.x,y.y]);var _={textalign:l,textverticalalign:u};c[ie](_),d[ie](_),v=a[fe]();var x=y.margin,b=t.getitemstyle(["color",ee]);b.fill=t.get("backgroundcolor");var w=new i.rect({shape:{x:v.x-x[3],y:v.y-x[0],width:v.width+x[1]+x[3],height:v[he]+x[0]+x[2]},style:b,silent:!0});i.subpixeloptimizerect(w),a.add(w)}}})}),e("echarts/component/tooltip",[we,"./axispointer","./tooltip/tooltipmodel","./tooltip/tooltipview","../echarts"],function(t){t("./axispointer"),t("./tooltip/tooltipmodel"),t("./tooltip/tooltipview"),t("../echarts").registeraction({type:"showtip",event:"showtip",update:"tooltip:manuallyshowtip"},function(){}),t("../echarts").registeraction({type:"hidetip",event:"hidetip",update:"tooltip:manuallyhidetip"},function(){})}),e("echarts/component/markpoint",[we,"./marker/markpointmodel","./marker/markpointview","../echarts"],function(t){t("./marker/markpointmodel"),t("./marker/markpointview"),t("../echarts").registerpreprocessor(function(t){t.markpoint=t.markpoint||{}})}),e("echarts/scale/time",[we,be,"../util/number","../util/format","./helper","./interval"],function(t){var e=t(be),i=t("../util/number"),n=t("../util/format"),r=t("./helper"),a=t("./interval"),o=a[te],s=math.ceil,l=math.floor,u=1e3,c=60*u,h=60*c,f=24*h,d=function(t,e,i,n){for(;n>i;){var r=i+n>>>1;t[r][2]e.get("hoverlayerthreshold")&&!ee.node&&i[s](function(t){t.isgroup||(t.usehoverlayer=!0)})}function t(t,e){var i=0;e.group[s](function(t){"group"===t.type||t.ignore||i++});var n=+t.get("progressive"),r=i>t.get("progressivethreshold")&&n&&!ee.node;r&&e.group[s](function(t){t.isgroup||(t.progressive=r?math.floor(i++/n):-1,r&&t.stopanimation(!0))});var a=t.get("blendmode")||null;e.group[s](function(t){t.isgroup||t[ie]("blend",a)})}function j(t,e){var i=t.get("z"),n=t.get(m);e.group[s](function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t[m]=n))})}function $(t){var e=t._coordsysmgr;return pe[q](new ae(t),{getcoordinatesystems:pe.bind(e.getcoordinatesystems,e),getcomponentbyelement:function(e){for(;e;){var i=e.__eccomponentinfo;if(null!=i)return t._model.getcomponent(i[r],i.index);e=e.parent}}})}function j(t){function e(t,e){for(var i=0;i=0&&pe.each(t,function(t){var r=t[_e];if(r&&r.containpoint)i|=!!r.containpoint(e);else if("seriesmodels"===n){var a=this._chartsmap[t.__viewid];a&&a.containpoint&&(i|=a.containpoint(e,t))}},this)},this),!!i},qe.getvisual=function(t,e){var i=this._model;t=te.parsefinder(i,t,{defaultmaintype:"series"});var n=t.seriesmodel,r=n[n](),a=t.hasownproperty("dataindexinside")?t.dataindexinside:t.hasownproperty(b)?r.indexofrawindex(t[b]):null;return null!=a?r.getitemvisual(a,e):r.getvisual(e)},qe.getviewofcomponentmodel=function(t){return this._componentsmap[t.__viewid]},qe.getviewofseriesmodel=function(t){return this._chartsmap[t.__viewid]};var ue={update:function(t){var e=this._model,i=this._api,n=this._coordsysmgr,r=this._zr;if(e){e.restoredata(),n[y](this._model,this._api),h.call(this,e,i),f.call(this,e),n[xe](e,i),p.call(this,e,t),m.call(this,e,t);var a=e.get("backgroundcolor")||"transparent",o=r.painter;if(o.issinglecanvas&&o.issinglecanvas())r.configlayer(0,{clearcolor:a});else{if(!ee[v]){var s=ce.parse(a);a=ce.stringify(s,"rgb"),0===s[3]&&(a="transparent")}a[e]||a.image?(r.configlayer(0,{clearcolor:a}),this[ve]=!0,this._dom.style.background="transparent"):(this[ve]&&r.configlayer(0,{clearcolor:null}),this[ve]=!1,this._dom.style.background=a)}ke($e,function(t){t(e,i)})}},updateview:function(t){var e=this._model;e&&(e.eachseries(function(t){t[n]().clearallvisual()}),p.call(this,e,t),u.call(this,"updateview",e,t))},updatevisual:function(t){var e=this._model;e&&(e.eachseries(function(t){t[n]().clearallvisual()}),p.call(this,e,t,!0),u.call(this,"updatevisual",e,t))},updatelayout:function(t){var e=this._model;e&&(d.call(this,e,t),u.call(this,"updatelayout",e,t))},prepareandupdate:function(t){var e=this._model;c.call(this,"component",e),c.call(this,"chart",e),this.__lastonlygraphic?(ke(this._componentsviews,function(i){var n=i.__model;n&&"graphic"===n[r]&&(i.render(n,e,this._api,t),j(n,i))},this),this.__lastonlygraphic=!1):ue[xe].call(this,t)}};qe.resize=function(t){this[fe]=!0,this._zr.resize(t);var e=this._model&&this._model.resetoption("media"),i=e?"prepareandupdate":xe;ue[i].call(this),this._loadingfx&&this._loadingfx.resize(),this[fe]=!1;var n=t&&t[ce];s.call(this,n),l.call(this,n)},qe.showloading=function(t,e){if(pe[h](t)&&(e=t,t=""),t=t||"default",this.hideloading(),qe[t]){var i=qe[t](this._api,e),n=this._zr;this._loadingfx=i,n.add(i)}},qe.hideloading=function(){this._loadingfx&&this._zr[d](this._loadingfx),this._loadingfx=null},qe.makeactionfromevent=function(t){var e=pe[q]({},t);return e.type=xe[t.type],e},qe[i]=function(t,e){if(pe[h](e)||(e={silent:!!e}),we[t.type]){if(this[fe])return void this._pendingactions.push(t);o.call(this,t,e[ce]),e.flush?this._zr.flush(!0):e.flush!==!1&&ee.browser.wechat&&this._throttledzrflush(),s.call(this,e[ce]),l.call(this,e[ce])}},qe.on=e("on"),qe.off=e("off"),qe.one=e("one");var ze=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];qe._initevents=function(){ke(ze,function(t){this._zr.on(t,function(e){var i,n=this[ge](),r=e[ue];if("globalout"===t)i={};else if(r&&null!=r[b]){var a=r.datamodel||n.getseriesbyindex(r[p]);i=a&&a.getdataparams(r[b],r.datatype)||{}}else r&&r.eventdata&&(i=pe[q]({},r.eventdata));i&&(i.event=e,i.type=t,this[z](t,i))},this)},this),ke(xe,function(t,e){this._messagecenter.on(e,function(t){this[z](e,t)},this)},this)},qe.isdisposed=function(){return this._disposed},qe.clear=function(){this.setoption({series:[]},!0)},qe[a]=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;ke(this._componentsviews,function(i){i[a](e,t)}),ke(this._chartsviews,function(i){i[a](e,t)}),this._zr[a](),delete ti[this.id]}},pe.mixin(n,ae);var we={},xe={},je=[],ye=[],$e=[],ke=[],je={},qe={},ti={},ei={},ii=new date-0,ni=new date-0,ri="_echarts_instance_",ai={version:"3.5.4",dependencies:{zrender:"3.4.4"}};return ai.init=function(t,e,i){var r=new n(t,e,i);return r.id="ec_"+ii++,ti[r.id]=r,t.setattribute&&t.setattribute(ri,r.id),j(r),r},ai.connect=function(t){if(pe[w](t)){var e=t;t=null,pe.each(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+ni++,pe.each(e,function(e){e.group=t})}return ei[t]=!0,t},ai.disconnect=function(t){ei[t]=!1},ai.disconnect=ai.disconnect,ai[a]=function(t){pe.isdom(t)?t=ai.getinstancebydom(t):typeof t===q&&(t=ti[t]),t instanceof n&&!t.isdisposed()&&t[a]()},ai.getinstancebydom=function(t){var e=t.getattribute(ri);return ti[e]},ai.getinstancebyid=function(t){return ti[t]},ai.registertheme=function(t,e){je[t]=e},ai.registerpreprocessor=function(t){ye.push(t)},ai.registerprocessor=function(t,e){typeof t===b&&(e=t,t=de),je.push({prio:t,func:e})},ai.registerpostupdate=function(t){$e.push(t)},ai.registeraction=function(t,e,i){typeof e===b&&(i=e,e="");var n=pe[h](t)?t.type:[t,t={event:e}][0];t.event=(t.event||n)[u](),e=t.event,pe.assert(ge.test(n)&&ge.test(e)),we[n]||(we[n]={action:i,actioninfo:t}),xe[e]=n},ai.registercoordinatesystem=function(t,e){oe.register(t,e)},ai.registerlayout=function(t,e){typeof t===b&&(e=t,t=oe),ke.push({prio:t,func:e,islayout:!0})},ai.registervisual=function(t,e){typeof t===b&&(e=t,t=ee),ke.push({prio:t,func:e})},ai.registerloading=function(t,e){qe[t]=e},ai.extendcomponentmodel=function(t){return de[q](t)},ai[ye]=function(t){return me[q](t)},ai.extendseriesmodel=function(t){return pe[q](t)},ai.extendchartview=function(t){return ve[q](t)},ai.setcanvascreator=function(t){pe.createcanvas=t},ai.registervisual(re,t("./visual/seriescolor")),ai.registerpreprocessor(t("./preprocessor/backwardcompat")),ai.registerloading("default",t("./loading/default")),ai.registeraction({type:"highlight",event:"highlight",update:"highlight"},pe.noop),ai.registeraction({type:"downplay",event:"downplay",update:"downplay"},pe.noop),ai.zrender=se,ai.list=t("./data/list"),ai.model=t("./model/model"),ai.axis=t("./coord/axis"),ai.graphic=t("./util/graphic"),ai[x]=t("./util/number"),ai.format=t("./util/format"),ai.throttle=me.throttle,ai.matrix=t(w),ai.vector=t(z),ai.color=t("zrender/tool/color"),ai.util={},ke(["map","each",_,f,y,"reduce",_,"bind","curry",w,g,h,"isfunction",q,k,"clone","merge"],function(t){ai.util[t]=pe[t]}),ai.helper=t("./helper"),ai.priority={processor:{filter:de,statistic:le},visual:{layout:oe,global:re,chart:ee,component:be,brush:ne}},ai}),e("zrender/vml/vml",[we,"./graphic","../zrender","./painter"],function(t){t("./graphic"),t("../zrender").registerpainter("vml",t("./painter"))}),e("echarts/scale/log",[we,be,"./scale","../util/number","./interval"],function(t){function e(t,e){return u(t,l(e))}var i=t(be),n=t("./scale"),r=t("../util/number"),a=t("./interval"),o=n[te],s=a[te],l=r.getprecisionsafe,u=r.round,c=math.floor,h=math.ceil,f=math.pow,d=math.log,p=n[q]({type:"log",base:10,$constructor:function(){n.apply(this,arguments),this._originalscale=new a},getticks:function(){var t=this._originalscale,n=this[j],a=t.getextent();return i.map(s.getticks.call(this),function(i){var o=r.round(f(this.base,i));return o=i===n[0]&&t.__fixmin?e(o,a[0]):o,o=i===n[1]&&t.__fixmax?e(o,a[1]):o},this)},getlabel:s[v],scale:function(t){return t=o.scale.call(this,t),f(this.base,t)},setextent:function(t,e){var i=this.base;t=d(t)/d(i),e=d(e)/d(i),s.setextent.call(this,t,e)},getextent:function(){var t=this.base,i=o.getextent.call(this);i[0]=f(t,i[0]),i[1]=f(t,i[1]);var n=this._originalscale,r=n.getextent();return n.__fixmin&&(i[0]=e(i[0],r[0])),n.__fixmax&&(i[1]=e(i[1],r[1])),i},unionextent:function(t){this._originalscale.unionextent(t);var e=this.base;t[0]=d(t[0])/d(e),t[1]=d(t[1])/d(e),o.unionextent.call(this,t)},unionextentfromdata:function(t,e){this.unionextent(t.getdataextent(e,!0,function(t){return t>0}))},niceticks:function(t){t=t||10;var e=this[j],i=e[1]-e[0];if(!(1/0===i||0>=i)){var n=r.quantity(i),a=t/i*n;for(.5>=a&&(n*=10);!isnan(n)&&math.abs(n)<1&&math.abs(n)>0;)n*=10;var o=[r.round(h(e[0]/n)*n),r.round(c(e[1]/n)*n)];this._interval=n,this._niceextent=o}},niceextent:function(t,e,i){s.niceextent.call(this,t,e,i);var n=this._originalscale;n.__fixmin=e,n.__fixmax=i}});return i.each([$,"normalize"],function(t){p[te][t]=function(e){return e=d(e)/d(this.base),o[t].call(this,e)}}),p[y]=function(){return new p},p}),e("echarts/chart/map/mapseries",[we,"../../data/list","../../model/series",be,"../../data/helper/completedimensions","../../util/format","../../component/helper/selectablemixin","../../coord/geo/geocreator"],function(t){var e=t("../../data/list"),i=t("../../model/series"),n=t(be),r=t("../../data/helper/completedimensions"),a=t("../../util/format"),o=a.encodehtml,s=a.addcommas,l=t("../../component/helper/selectablemixin"),u=t("../../coord/geo/geocreator"),c=i[q]({type:"series.map",dependencies:["geo"],layoutmode:"box",needsdrawmap:!1,seriesgroup:[],init:function(t){t=this._filloption(t,this.getmaptype()),this[m]=t,c.superapply(this,"init",arguments),this.updateselectedmap(t.data)},getinitialdata:function(t){var i=r(["value"],t.data||[]),n=new e(i,this);return n.initdata(t.data),n},mergeoption:function(t){t.data&&(t=this._filloption(t,this.getmaptype())),c.supercall(this,"mergeoption",t),this.updateselectedmap(this[m].data)},gethostgeomodel:function(){var t=this[m].geoindex;return null!=t?this.dependentmodels.geo[t]:null},getmaptype:function(){return(this.gethostgeomodel()||this)[m].map},_filloption:function(t,e){return t=n[q]({},t),t.data=u.getfilledregions(t.data,e),t},getrawvalue:function(t){return this[n]().get("value",t)},getregionmodel:function(t){var e=this[n]();return e.getitemmodel(e.indexofname(t))},formattooltip:function(t){for(var e=this[n](),i=s(this.getrawvalue(t)),n=e.getname(t),r=this.seriesgroup,a=[],l=0;l"+o(n+" : "+i)},gettooltipposition:function(t){if(null!=t){var e=this[n]().getname(t),i=this[_e],n=i.getregion(e);return n&&i.datatopoint(n[ae])}},setzoom:function(t){this[m].zoom=t},setcenter:function(t){this[m][ae]=t},defaultoption:{zlevel:0,z:2,coordinatesystem:"geo",map:"",left:"center",top:"center",aspectscale:.75,showlegendsymbol:!0,datarangehoverlink:!0,boundingcoords:null,center:null,zoom:1,scalelimit:null,label:{normal:{show:!1,textstyle:{color:"#000"}},emphasis:{show:!0,textstyle:{color:"rgb(100,0,0)"}}},itemstyle:{normal:{borderwidth:.5,bordercolor:"#444",areacolor:"#eee"},emphasis:{areacolor:"rgba(255,215,0,0.8)"}}}});return n.mixin(c,l),c}),e("echarts/chart/map/mapview",[we,"../../util/graphic","../../component/helper/mapdraw","../../echarts"],function(t){var e=t("../../util/graphic"),i=t("../../component/helper/mapdraw");t("../../echarts").extendchartview({type:"map",render:function(t,e,n,r){if(!r||"maptoggleselect"!==r.type||r.from!==this.uid){var a=this.group;if(a.removeall(),!t.gethostgeomodel()){if(r&&"georoam"===r.type&&r.componenttype===l&&r.seriesid===t.id){var o=this._mapdraw;o&&a.add(o.group)}else if(t.needsdrawmap){var o=this._mapdraw||new i(n,!0);a.add(o.group),o.draw(t,e,n,this,r),this._mapdraw=o}else this._mapdraw&&this._mapdraw[d](),this._mapdraw=null;t.get("showlegendsymbol")&&e.getcomponent("legend")&&this._rendersymbols(t,e,n)}}},remove:function(){this._mapdraw&&this._mapdraw[d](),this._mapdraw=null,this.group.removeall()},dispose:function(){this._mapdraw&&this._mapdraw[d](),this._mapdraw=null},_rendersymbols:function(t){var i=t.originaldata,n=this.group;i.each("value",function(r,a){if(!isnan(r)){var o=i.getitemlayout(a);if(o&&o.point){var s=o.point,l=o[p],u=new e.circle({style:{fill:t[n]().getvisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:10});if(!l){var c=t.mainseries[n](),h=i.getname(a),m=h,v=c.indexofname(h),g=i.getitemmodel(a),y=g[ge]("label.normal"),_=g[ge]("label.emphasis"),x=y[ge](ve),b=_[ge](ve),w=c.getitemgraphicel(v);u[ie]({textposition:"bottom"});var t=function(){u[ie]({text:_.get("show")?m:"",textfill:b[de](),textfont:b[pe]()})},m=function(){u[ie]({text:y.get("show")?m:"",textfill:x[de](),textfont:x[pe]()})};w.on("mouseover",t).on("mouseout",m).on(d,t).on(f,m),m()}n.add(u)}}})}})}),e("echarts/action/georoam",[we,be,"./roamhelper","../echarts"],function(t){var e=t(be),i=t("./roamhelper"),n=t("../echarts");n.registeraction({type:"georoam",event:"georoam",update:"updatelayout"},function(t,n){var r=t.componenttype||l;n.eachcomponent({maintype:r,query:t},function(n){var a=n[_e];if("geo"===a.type){var o=i.updatecenterandzoom(a,t,n.get("scalelimit"));n.setcenter&&n.setcenter(o[ae]),n.setzoom&&n.setzoom(o.zoom),r===l&&e.each(n.seriesgroup,function(t){t.setcenter(o[ae]),t.setzoom(o.zoom)})}})})}),e("echarts/coord/geo/geocreator",[we,"./geo","../../util/layout",be,"../../util/number","../../echarts","./parsegeojson"],function(t){function e(t,e){var i=t.get("boundingcoords");if(null!=i){var n=i[0],a=i[1];isnan(n[0])||isnan(n[1])||isnan(a[0])||isnan(a[1])||this.setboundingrect(n[0],n[1],a[0]-n[0],a[1]-n[1])}var s,l=this[fe](),u=t.get("layoutcenter"),c=t.get("layoutsize"),h=e[le](),f=e[se](),d=t.get("aspectscale")||.75,p=l.width/l[he]*d,m=!1;u&&c&&(u=[o.parsepercent(u[0],h),o.parsepercent(u[1],f)],c=o.parsepercent(c,math.min(h,f)),isnan(u[0])||isnan(u[1])||isnan(c)||(m=!0));var v;if(m){var v={};p>1?(v.width=c,v[he]=c/p):(v[he]=c,v.width=c*p),v.y=u[1]-v[he]/2,v.x=u[0]-v.width/2}else s=t.getboxlayoutparams(),s.aspect=p,v=r.getlayoutrect(s,{width:h,height:f});this.setviewrect(v.x,v.y,v.width,v[he]),this.setcenter(t.get(ae)),this.setzoom(t.get("zoom"))}function i(t,e){a.each(e.get("geocoord"),function(e,i){t.addgeocoord(i,e)})}var n=t("./geo"),r=t("../../util/layout"),a=t(be),o=t("../../util/number"),s={},l={dimensions:n[te].dimensions,create:function(t,r){var o=[];t.eachcomponent("geo",function(t,a){var l=t.get("map"),u=s[l],c=new n(l+a,l,u&&u.geojson,u&&u.specialareas,t.get("namemap"));c.zoomlimit=t.get("scalelimit"),o.push(c),i(c,t),t[_e]=c,c.model=t,c.resize=e,c.resize(t,r)}),t.eachseries(function(t){var e=t.get(_e);if("geo"===e){var i=t.get("geoindex")||0;t[_e]=o[i]}});var l={};return t.eachseriesbytype("map",function(t){if(!t.gethostgeomodel()){var e=t.getmaptype();l[e]=l[e]||[],l[e].push(t)}}),a.each(l,function(t,l){var u=s[l],c=a.map(t,function(t){return t.get("namemap")}),h=new n(l,l,u&&u.geojson,u&&u.specialareas,a.mergeall(c));h.zoomlimit=a.retrieve.apply(null,a.map(t,function(t){return t.get("scalelimit")})),o.push(h),h.resize=e,h.resize(t[0],r),a.each(t,function(t){t[_e]=h,i(h,t)})}),o},registermap:function(t,e,i){e.geojson&&!e.features&&(i=e.specialareas,e=e.geojson),typeof e===q&&(e=typeof json!==h&&json.parse?json.parse(e):new function("return ("+e+");")()),s[t]={geojson:e,specialareas:i}},getmap:function(t){return s[t]},getfilledregions:function(t,e){var i=(t||[]).slice(),n=l.getmap(e),r=n&&n.geojson;if(!r)return t;for(var a={},o=r.features,s=0;sc;c++)s=math.min(s,n[a][c]),l=math.max(l,n[a][c]),o+=n[a][c];var h;return h="min"===e?s:"max"===e?l:"average"===e?o/u:o,0===u?0/0:h})}var i=t(be);return function(t){var n={};t.eachseriesbytype("map",function(t){var e=t.gethostgeomodel(),i=e?"o"+e.id:"i"+t.getmaptype();(n[i]=n[i]||[]).push(t)}),i.each(n,function(t){for(var n=e(i.map(t,function(t){return t[n]()}),t[0].get("mapvaluecalculation")),r=0;rr;r++)i[r]=t(e[r])}else if(v[n])i=e.constructor.from(e);else if(!n[n]&&!l(e)&&!c(e)){i={};for(var o in e)e.hasownproperty(o)&&(i[o]=t(e[o]))}return i}function e(i,n,r){if(!s(n)||!s(i))return r?t(n):i;for(var a in n)if(n.hasownproperty(a)){var o=i[a],s=n[a];!s(s)||!s(o)||w(s)||w(o)||c(s)||c(o)||p(s)||p(o)||l(s)||l(o)?!r&&a in i||(i[a]=t(n[a],!0)):e(o,s,r)}return i}function i(t,i){for(var n=t[0],r=1,a=t[k];a>r;r++)n=e(n,t[r],i);return n}function n(t,e){for(var i in e)e.hasownproperty(i)&&(t[i]=e[i]);return t}function r(t,e,i){for(var n in e)e.hasownproperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function a(){return document[c]("canvas")}function o(){return b||(b=q.createcanvas().getcontext("2d")),b}function s(t,e){if(t){if(t[f])return t[f](e);for(var i=0,n=t[k];n>i;i++)if(t[i]===e)return i}return-1}function l(t,e){function i(){}var n=t[te];i[te]=e[te],t[te]=new i;for(var r in n)t[te][r]=n[r];t[te].constructor=t,t.superclass=e}function u(t,e,i){t=te in t?t[te]:t,e=te in e?e[te]:e,r(t,e,i)}function h(t){return t?typeof t==q?!1:typeof t[k]==x:void 0}function f(t,e,i){if(t&&e)if(t.foreach&&t.foreach===u)t.foreach(e,i);else if(t[k]===+t[k])for(var n=0,r=t[k];r>n;n++)e.call(i,t[n],n,t);else for(var a in t)t.hasownproperty(a)&&e.call(i,t[a],a,t)}function d(t,e,i){if(t&&e){if(t.map&&t.map===x)return t.map(e,i);for(var n=[],r=0,a=t[k];a>r;r++)n.push(e.call(i,t[r],r,t));return n}}function p(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===j)return t.reduce(e,i,n);for(var r=0,a=t[k];a>r;r++)i=e.call(n,i,t[r],r,t);return i}}function m(t,e,i){if(t&&e){if(t[_]&&t[_]===z)return t[_](e,i);for(var n=[],r=0,a=t[k];a>r;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}}function v(t,e,i){if(t&&e)for(var n=0,r=t[k];r>n;n++)if(e.call(i,t[n],n,t))return t[n]}function g(t,e){var i=w.call(arguments,2);return function(){return t.apply(e,i[o](w.call(arguments)))}}function y(t){var e=w.call(arguments,1);return function(){return t.apply(this,e[o](w.call(arguments)))}}function w(t){return"[object array]"===h.call(t)}function t(t){return typeof t===b}function m(t){return"[object string]"===h.call(t)}function s(t){var e=typeof t;return e===b||!!t&&"object"==e}function p(t){return!!n[h.call(t)]}function c(t){return"object"==typeof t&&typeof t.nodetype===x&&"object"==typeof t.ownerdocument}function a(t){return t!==t}function z(){for(var t=0,e=arguments[k];e>t;t++)if(null!=arguments[t])return arguments[t]}function k(){return function.call.apply(w,arguments)}function i(t,e){if(!t)throw new error(e)}function d(t){t[y]=!0}function l(t){return t[y]}function r(t){t&&n(this,t)}function e(){return new r}var b,n={"[object function]":1,"[object regexp]":1,"[object date]":1,"[object error]":1,"[object canvasgradient]":1,"[object canvaspattern]":1,"[object image]":1,"[object canvas]":1},v={"[object int8array]":1,"[object uint8array]":1,"[object uint8clampedarray]":1,"[object int16array]":1,"[object uint16array]":1,"[object int32array]":1,"[object uint32array]":1,"[object float32array]":1,"[object float64array]":1},h=object[te].tostring,g=array[te],u=g.foreach,z=g[_],w=g.slice,x=g.map,j=g.reduce,y="__ec_primitive__",$="_ec_",j=4;r[te]={constructor:r,get:function(t){return this[$+t]},set:function(t,e){return this[$+t]=e,e},each:function(t,e){void 0!==e&&(t=g(t,e));for(var i in this)this.hasownproperty(i)&&t(this[i],i.slice(j))},removekey:function(t){delete this[t]}};var q={inherits:l,mixin:u,clone:t,merge:e,mergeall:i,extend:n,defaults:r,getcontext:o,createcanvas:a,indexof:s,slice:k,find:v,isarraylike:h,each:f,map:d,reduce:p,filter:m,bind:g,curry:y,isarray:w,isstring:m,isobject:s,isfunction:t,isbuiltinobject:p,isdom:c,eqnan:a,retrieve:z,assert:i,setasprimitive:d,createhashmap:e,noop:function(){}};return q}),e("echarts/util/graphic",[we,be,"zrender/tool/path","zrender/graphic/path","zrender/tool/color",w,z,"zrender/mixin/transformable","zrender/core/boundingrect","zrender/container/group","zrender/graphic/image","zrender/graphic/text","zrender/graphic/shape/circle","zrender/graphic/shape/sector","zrender/graphic/shape/ring","zrender/graphic/shape/polygon","zrender/graphic/shape/polyline","zrender/graphic/shape/rect","zrender/graphic/shape/line","zrender/graphic/shape/beziercurve","zrender/graphic/shape/arc","zrender/graphic/compoundpath","zrender/graphic/lineargradient","zrender/graphic/radialgradient"],function(t){function e(t){return null!=t&&"none"!=t}function i(t){return typeof t===q?c.lift(t,-.1):t}function n(t){if(t.__hoverstldirty){var n=t.style[l],r=t.style.fill,a=t.__hoverstl;a.fill=a.fill||(e(r)?i(r):null),a[l]=a[l]||(e(n)?i(n):null);var o={};for(var s in a)a.hasownproperty(s)&&(o[s]=t.style[s]);t.__normalstl=o,t.__hoverstldirty=!1}}function r(t){t.__ishover||(n(t),t.usehoverlayer?t.__zr&&t.__zr.addhover(t,t.__hoverstl):(t[ie](t.__hoverstl),t.z2+=1),t.__ishover=!0)}function a(t){if(t.__ishover){var e=t.__normalstl;t.usehoverlayer?t.__zr&&t.__zr.removehover(t):(e&&t[ie](e),t.z2-=1),t.__ishover=!1}}function c(t){"group"===t.type?t[s](function(t){"group"!==t.type&&r(t)}):r(t)}function h(t){"group"===t.type?t[s](function(t){"group"!==t.type&&a(t)}):a(t)}function m(t,e){t.__hoverstl=t.hoverstyle||e||{},t.__hoverstldirty=!0,t.__ishover&&n(t)}function v(t){this.__hoversilentontouch&&t.zrbytouch||!this.__isemphasis&&c(this)}function g(t){this.__hoversilentontouch&&t.zrbytouch||!this.__isemphasis&&h(this)}function y(){this.__isemphasis=!0,c(this)}function _(){this.__isemphasis=!1,h(this)}function x(t,e,i,n,r,a){typeof r===b&&(a=r,r=null);var o=n&&n.isanimationenabled();if(o){var l=t?"update":"",u=n[s]("animationduration"+l),c=n[s]("animationeasing"+l),h=n[s]("animationdelay"+l);typeof h===b&&(h=h(r,n.getanimationdelayparams?n.getanimationdelayparams(e,r):null)),typeof u===b&&(u=u(r)),u>0?e.animateto(i,u,h||0,c,a):(e.stopanimation(),e.attr(i),a&&a())}else e.stopanimation(),e.attr(i),a&&a()}var w=t(be),t=t("zrender/tool/path"),m=math.round,p=t("zrender/graphic/path"),c=t("zrender/tool/color"),a=t(w),z=t(z),k=t("zrender/mixin/transformable"),i=t("zrender/core/boundingrect"),d={};return d.group=t("zrender/container/group"),d.image=t("zrender/graphic/image"),d.text=t("zrender/graphic/text"),d.circle=t("zrender/graphic/shape/circle"),d.sector=t("zrender/graphic/shape/sector"),d.ring=t("zrender/graphic/shape/ring"),d.polygon=t("zrender/graphic/shape/polygon"),d.polyline=t("zrender/graphic/shape/polyline"),d.rect=t("zrender/graphic/shape/rect"),d.line=t("zrender/graphic/shape/line"),d.beziercurve=t("zrender/graphic/shape/beziercurve"),d.arc=t("zrender/graphic/shape/arc"),d.compoundpath=t("zrender/graphic/compoundpath"),d.lineargradient=t("zrender/graphic/lineargradient"),d.radialgradient=t("zrender/graphic/radialgradient"),d.boundingrect=i,d.extendshape=function(t){return p[q](t)},d.extendpath=function(t,e){return t.extendfromstring(t,e)},d.makepath=function(t,e,i,n){var r=t.createfromstring(t,e),a=r[fe]();if(i){var o=a.width/a[he];if(n===ae){var s,l=i[he]*o;l<=i.width?s=i[he]:(l=i.width,s=l/o);var u=i.x+i.width/2,c=i.y+i[he]/2;i.x=u-l/2,i.y=c-s/2,i.width=l,i[he]=s}d.resizepath(r,i)}return r},d.mergepath=t.mergepath,d.resizepath=function(t,e){if(t[u]){var i=t[fe](),n=i.calculatetransform(e);t[u](n)}},d.subpixeloptimizeline=function(t){var e=d.subpixeloptimize,i=t.shape,n=t.style.linewidth;return m(2*i.x1)===m(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),m(2*i.y1)===m(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},d.subpixeloptimizerect=function(t){var e=d.subpixeloptimize,i=t.shape,n=t.style.linewidth,r=i.x,a=i.y,o=i.width,s=i[he];return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=math.max(e(r+o,n,!1)-i.x,0===o?0:1),i[he]=math.max(e(a+s,n,!1)-i.y,0===s?0:1),t},d.subpixeloptimize=function(t,e,i){var n=m(2*t);return(n+m(e))%2===0?n/2:(n+(i?1:-1))/2},d.sethoverstyle=function(t,e,i){t.__hoversilentontouch=i&&i.hoversilentontouch,"group"===t.type?t[s](function(t){"group"!==t.type&&m(t,e)}):m(t,e),t.on("mouseover",v).on("mouseout",g),t.on(d,y).on(f,_)},d.settext=function(t,e,i){var n=e[s](ne)||"inside",r=e[s](p),a=n[f]("inside")>=0?"white":i,o=e[ge](ve);w[q](t,{textdistance:e[s]("distance")||5,textfont:o[pe](),textposition:n,textoffset:r,textfill:o[de]()||a})},d.updateprops=function(t,e,i,n,r){x(!0,t,e,i,n,r)},d.initprops=function(t,e,i,n,r){x(!1,t,e,i,n,r)},d.gettransform=function(t,e){for(var i=a.identity([]);t&&t!==e;)a.mul(i,t.getlocaltransform(),i),t=t.parent;return i},d[u]=function(t,e,i){return e&&!w.isarraylike(e)&&(e=k.getlocaltransform(e)),i&&(e=a.invert([],e)),z[u]([],t,e)},d.transformdirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:math.abs(2*e[4]/e[2]),a=["left"===t?-n:"right"===t?n:0,"top"===t?-r:t===re?r:0];return a=d[u](a,e,i),math.abs(a[0])>math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?re:"top"},d.grouptransition=function(t,e,i){function n(t){var e={};return t[s](function(t){!t.isgroup&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={position:z.clone(t[ne]),rotation:t[o]};return t.shape&&(e.shape=w[q]({},t.shape)),e}if(t&&e){var a=n(t);e[s](function(t){if(!t.isgroup&&t.anid){var e=a[t.anid];if(e){var n=r(t);t.attr(r(e)),d.updateprops(t,n,i,t[b])}}})}},d}),e("echarts/component/axispointer",[we,"../echarts","./axispointer/modelhelper","./axispointer/axistrigger",be,"./axispointer/axispointermodel","./axispointer/axispointerview","./axispointer/cartesianaxispointer"],function(t){var e=t("../echarts"),i=t("./axispointer/modelhelper"),n=t("./axispointer/axistrigger"),r=t(be);t("./axispointer/axispointermodel"),t("./axispointer/axispointerview"),t("./axispointer/cartesianaxispointer"),e.registerpreprocessor(function(t){if(t){(!t.axispointer||0===t.axispointer[k])&&(t.axispointer={});var e=t.axispointer.link;e&&!r[w](e)&&(t.axispointer.link=[e])}}),e.registerprocessor(e.priority.processor.statistic,function(t,e){t.getcomponent("axispointer").coordsysaxesinfo=i.collect(t,e)}),e.registeraction({type:"updateaxispointer",event:"updateaxispointer",update:":updateaxispointer"},function(t,e,i){var a=n(e.getcomponent("axispointer").coordsysaxesinfo,t.currtrigger,[t.x,t.y],t,t[i]||r.bind(i[i],i),e,i,t.tooltipoption,t.highdownkey);return a})}),e("echarts/util/layout",[we,be,"zrender/core/boundingrect","./number","./format"],function(t){function e(t,e,i,n,r){var a=0,o=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachchild(function(l,u){var c,h,f=l[ne],d=l[fe](),p=e.childat(u+1),m=p&&p[fe]();if("horizontal"===t){var v=d.width+(m?-m.x+d.x:0);c=a+v,c>n||l.newline?(a=0,c=v,o+=s+i,s=d[he]):s=math.max(s,d[he])}else{var g=d[he]+(m?-m.y+d.y:0);h=o+g,h>r||l.newline?(a+=s+i,o=0,h=g,s=d.width):s=math.max(s,d.width)}l.newline||(f[0]=a,f[1]=o,"horizontal"===t?a=c+i:o=h+i)})}var i=t(be),n=t("zrender/core/boundingrect"),r=t("./number"),a=t("./format"),o=r.parsepercent,s=i.each,l={},c=l.location_params=["left","right","top",re,"width",he],h=l.hv_names=[["width","left","right"],[he,"top",re]];return l.box=e,l.vbox=i.curry(e,"vertical"),l.hbox=i.curry(e,"horizontal"),l.getavailablesize=function(t,e,i){var n=e.width,r=e[he],s=o(t.x,n),l=o(t.y,r),u=o(t.x2,n),c=o(t.y2,r);return(isnan(s)||isnan(parsefloat(t.x)))&&(s=0),(isnan(u)||isnan(parsefloat(t.x2)))&&(u=n),(isnan(l)||isnan(parsefloat(t.y)))&&(l=0),(isnan(c)||isnan(parsefloat(t.y2)))&&(c=r),i=a.normalizecssarray(i||0),{width:math.max(u-s-i[1]-i[3],0),height:math.max(c-l-i[0]-i[2],0)}},l.getlayoutrect=function(t,e,i){i=a.normalizecssarray(i||0);var r=e.width,s=e[he],l=o(t.left,r),u=o(t.top,s),c=o(t.right,r),h=o(t[re],s),f=o(t.width,r),d=o(t[he],s),p=i[2]+i[0],m=i[1]+i[3],v=t.aspect;switch(isnan(f)&&(f=r-c-m-l),isnan(d)&&(d=s-h-p-u),isnan(f)&&isnan(d)&&(v>r/s?f=.8*r:d=.8*s),null!=v&&(isnan(f)&&(f=v*d),isnan(d)&&(d=f/v)),isnan(l)&&(l=r-c-f-m),isnan(u)&&(u=s-h-d-p),t.left||t.right){case ae:l=r/2-f/2-i[3];break;case"right":l=r-f-m}switch(t.top||t[re]){case oe:case ae:u=s/2-d/2-i[0];break;case re:u=s-d-p}l=l||0,u=u||0,isnan(f)&&(f=r-l-(c||0)),isnan(d)&&(d=s-u-(h||0));var g=new n(l+i[3],u+i[0],f,d);return g.margin=i,g},l.positionelement=function(t,e,r,a,o){var s=!o||!o.hv||o.hv[0],c=!o||!o.hv||o.hv[1],h=o&&o.boundingmode||"all";if(s||c){var f;if("raw"===h)f="group"===t.type?new n(0,0,+e.width||0,+e[he]||0):t[fe]();else if(f=t[fe](),t.needlocaltransform()){var d=t.getlocaltransform();f=f.clone(),f[u](d)}e=l.getlayoutrect(i[k]({width:f.width,height:f[he]},e),r,a);var p=t[ne],m=s?e.x-f.x:0,v=c?e.y-f.y:0;t.attr(ne,"raw"===h?[m,v]:[p[0]+m,p[1]+v])}},l.sizecalculable=function(t,e){return null!=t[h[e][0]]||null!=t[h[e][1]]&&null!=t[h[e][2]]},l.mergelayoutparam=function(t,e,n){function r(i,n){var r={},l=0,c={},h=0,f=2;if(s(i,function(e){c[e]=t[e]}),s(i,function(t){a(e,t)&&(r[t]=c[t]=e[t]),o(r,t)&&l++,o(c,t)&&h++}),u[n])return o(e,i[1])?c[i[2]]=null:o(e,i[2])&&(c[i[1]]=null),c;if(h!==f&&l){if(l>=f)return r;for(var d=0;dn?t-=s+a:t+=a),null!=o&&(e+l+o>r?e-=l+o:e+=o),[t,e]}function o(t,e,i,n,r){var a=i.clientwidth,o=i.clientheight;return t=math.min(t+a,n)-a,e=math.min(e+o,r)-o,t=math.max(t,0),e=math.max(e,0),[t,e]}function s(t,e,i){var n=i[0],r=i[1],a=5,o=0,s=0,l=e.width,u=e[he];switch(t){case"inside":o=e.x+l/2-n/2,s=e.y+u/2-r/2;break;case"top":o=e.x+l/2-n/2,s=e.y-r-a;break;case re:o=e.x+l/2-n/2,s=e.y+u+a;break;case"left":o=e.x-n-a,s=e.y+u/2-r/2;break;case"right":o=e.x+l+a,s=e.y+u/2-r/2}return[o,s]}function l(t){return t===ae||t===oe}var c=t("./tooltipcontent"),h=t(be),f=t("../../util/format"),d=t("../../util/number"),p=t("../../util/graphic"),m=t("../axispointer/findpointfromseries"),v=t("../../util/layout"),g=t(x),y=t("../../model/model"),_=t("../axispointer/globallistener"),x=t("../../coord/axishelper"),t=t("../axispointer/viewhelper"),m=h.bind,s=h.each,c=d.parsepercent,a=new p.rect({shape:{x:-1,y:-1,width:2,height:2}});t("../../echarts")[ye]({type:"tooltip",init:function(t,e){if(!g.node){var i=new c(e.getdom(),e);this._tooltipcontent=i}},render:function(t,e,i){if(!g.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[xe](),n.setenterable(t.get("enterable")),this._initgloballistener(),this._keepshow()}},_initgloballistener:function(){var t=this._tooltipmodel,e=t.get("triggeron");_.register("itemtooltip",this._api,m(function(t,i,n){"none"!==e&&(e[f](t)>=0?this._tryshow(i,n):"leave"===t&&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,n,r){if(r.from!==this.uid&&!g.node){var a=i(r,n);this._ticket="";var o=r.databycoordsys;if(r.tooltip&&null!=r.x&&null!=r.y){var s=a;s[ne]=[r.x,r.y],s[xe](),s.tooltip=r.tooltip,this._tryshow({offsetx:r.x,offsety:r.y,target:s},a)}else if(o)this._tryshow({offsetx:r.x,offsety:r.y,position:r[ne],event:{},databycoordsys:r.databycoordsys,tooltipoption:r.tooltipoption},a);else if(null!=r[p]){if(this._manuallyaxisshowtip(t,e,n,r))return;var l=m(r,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryshow({offsetx:u,offsety:c,position:r[ne],target:l.el,event:{}},a)}else null!=r.x&&null!=r.y&&(n[i]({type:"updateaxispointer",x:r.x,y:r.y}),this._tryshow({offsetx:r.x,offsety:r.y,position:r[ne],target:n.getzr().findhover(r.x,r.y)[ue],event:{}},a))}},manuallyhidetip:function(t,e,n,r){var a=this._tooltipcontent;this._alwaysshowcontent||a.hidelater(this._tooltipmodel.get("hidedelay")),this._lastx=this._lasty=null,r.from!==this.uid&&this._hide(i(r,n))},_manuallyaxisshowtip:function(t,i,n,r){var a=r[p],o=r[b],s=i.getcomponent("axispointer").coordsysaxesinfo;if(null!=a&&null!=o&&null!=s){var l=i.getseriesbyindex(a);if(l){var u=l[n](),t=e([u.getitemmodel(o),l,(l[_e]||{}).model,t]);if("axis"===t.get(z))return n[i]({type:"updateaxispointer",seriesindex:a,dataindex:o}),!0}}},_tryshow:function(t,e){var i=t[ue],n=this._tooltipmodel;if(n){this._lastx=t.offsetx,this._lasty=t.offsety;var r=t.databycoordsys;r&&r[k]?this._showaxistooltip(r,t):i&&null!=i[b]?(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=h.bind(e,this),cleartimeout(this._showtimout),i>0?this._showtimout=settimeout(e,i):e()},_showaxistooltip:function(t,i){var n=this._ecmodel,r=this._tooltipmodel,a=[i.offsetx,i.offsety],o=[],s=[],l=e([i.tooltipoption,r]);s(t,function(t){s(t.databyaxis,function(t){var e=n.getcomponent(t.axisdim+"axis",t.axisindex),i=t.value,r=[];if(e&&null!=i){var a=t.getvaluelabel(i,e.axis,n,t.seriesdataindices,t.valuelabelopt);h.each(t.seriesdataindices,function(o){var l=n.getseriesbyindex(o[p]),u=o.dataindexinside,c=l&&l.getdataparams(u);c.axisdim=t.axisdim,c.axisindex=t.axisindex,c.axistype=t.axistype,c.axisid=t.axisid,c.axisvalue=x.getaxisrawvalue(e.axis,i),c.axisvaluelabel=a,c&&(s.push(c),r.push(l.formattooltip(u,!0)))});var l=a;o.push((l?f.encodehtml(l)+"
":"")+r.join("
"))}})},this),o.reverse(),o=o.join("

");var u=i[ne];this._showormove(l,function(){this._updatecontentnotchangedonaxis(t)?this._updateposition(l,u,a[0],a[1],this._tooltipcontent,s):this._showtooltipcontent(l,o,s,math.random(),a[0],a[1],u)})},_showseriesitemtooltip:function(t,i,n){var r=this._ecmodel,a=i[p],o=r.getseriesbyindex(a),s=i.datamodel||o,l=i[b],u=i.datatype,c=s[n](),h=e([c.getitemmodel(l),s,o&&(o[_e]||{}).model,this._tooltipmodel]),f=h.get(z);if(null==f||"item"===f){var d=s.getdataparams(l,u),p=s.formattooltip(l,!1,u),m="item_"+s.name+"_"+l;this._showormove(h,function(){this._showtooltipcontent(h,p,d,m,t.offsetx,t.offsety,t[ne],t[ue])}),n({type:"showtip",dataindexinside:l,dataindex:c.getrawindex(l),seriesindex:a,from:this.uid})}},_showcomponentitemtooltip:function(t,e,i){var n=e.tooltip;if(typeof n===q){var r=n;n={content:r,formatter:r}}var a=new y(n,this._tooltipmodel,this._ecmodel),o=a.get("content"),s=math.random();this._showormove(a,function(){this._showtooltipcontent(a,o,a.get("formatterparams")||{},s,t.offsetx,t.offsety,t[ne],e)}),i({type:"showtip",from:this.uid})},_showtooltipcontent:function(t,e,i,n,r,a,o,s){if(this._ticket="",t.get("showcontent")&&t.get("show")){var l=this._tooltipcontent,u=t.get("formatter");o=o||t.get(ne);var c=e;if(u&&typeof u===q)c=f.formattpl(u,i,!0);else if(typeof u===b){var h=m(function(e,n){e===this._ticket&&(l.setcontent(n),this._updateposition(t,o,r,a,l,i,s))},this);this._ticket=n,c=u(i,n,h)}l.setcontent(c),l.show(t),this._updateposition(t,o,r,a,l,i,s)}},_updateposition:function(t,e,i,c,f,d,p){var m=this._api[le](),g=this._api[se]();e=e||t.get(ne);var y=f.getsize(),_=t.get("align"),x=t.get("verticalalign"),t=p&&p[fe]().clone();if(p&&t[u](p[a]),typeof e===b&&(e=e([i,c],d,f.el,t,{viewsize:[m,g],contentsize:y.slice()})),h[w](e))i=c(e[0],m),c=c(e[1],g);else if(h[h](e)){e.width=y[0],e[he]=y[1];var m=v.getlayoutrect(e,{width:m,height:g});i=m.x,c=m.y,_=null,x=null}else if(typeof e===q&&p){var s=s(e,t,y);i=s[0],c=s[1]}else{var s=n(i,c,f.el,m,g,_?null:20,x?null:20);i=s[0],c=s[1]}if(_&&(i-=l(_)?y[0]/2:"right"===_?y[0]:0),x&&(c-=l(x)?y[1]/2:x===re?y[1]:0),t.get("confine")){var s=o(i,c,f.el,m,g);i=s[0],c=s[1]}f[r](i,c)},_updatecontentnotchangedonaxis:function(t){var e=this._lastdatabycoordsys,i=!!e&&e[k]===t[k];return s(e,function(e,n){var r=e.databyaxis||{},a=t[n]||{},o=a.databyaxis||[];i&=r[k]===o[k],s(r,function(t,e){var n=o[e]||{},r=t.seriesdataindices||[],a=n.seriesdataindices||[];i&=t.value===n.value&&t.axistype===n.axistype&&t.axisid===n.axisid&&r[k]===a[k],s(r,function(t,e){var n=a[e];i&=t[p]===n[p]&&t[b]===n[b]})})}),this._lastdatabycoordsys=t,!!i},_hide:function(t){this._lastdatabycoordsys=null,t({type:"hidetip",from:this.uid})},dispose:function(t,e){g.node||(this._tooltipcontent.hide(),_.unregister("itemtooltip",e))}})}),e("echarts/util/number",[we],function(){function t(t){return t[t](/^\s+/,"")[t](/\s+$/,"")}function e(t){return math.floor(math.log(t)/math.ln10)}var i={},n=1e-4;i.linearmap=function(t,e,i,n){var r=e[1]-e[0],a=i[1]-i[0];if(0===r)return 0===a?i[0]:(i[0]+i[1])/2;if(n)if(r>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/r*a+i[0]},i.parsepercent=function(e,i){switch(e){case ae:case oe:e="50%";break;case"left":case"top":e="0%";break;case"right":case re:e="100%"}return typeof e===q?t(e).match(/%$/)?parsefloat(e)/100*i:parsefloat(e):null==e?0/0:+e},i.round=function(t,e,i){return null==e&&(e=10),e=math.min(math.max(0,e),20),t=(+t).tofixed(e),i?t:+t},i.asc=function(t){return t.sort(function(t,e){return t-e}),t},i.getprecision=function(t){if(t=+t,isnan(t))return 0;for(var e=1,i=0;math.round(t*e)/e!==t;)e*=10,i++;return i},i.getprecisionsafe=function(t){var e=t.tostring(),i=e[f]("e");if(i>0){var n=+e.slice(i+1);return 0>n?-n:0}var r=e[f](".");return 0>r?0:e[k]-1-r},i.getpixelprecision=function(t,e){var i=math.log,n=math.ln10,r=math.floor(i(t[1]-t[0])/n),a=math.round(i(math.abs(e[1]-e[0]))/n),o=math.min(math.max(-r+a,0),20);return isfinite(o)?o:20},i.max_safe_integer=9007199254740991,i.remradian=function(t){var e=2*math.pi;return(t%e+e)%e},i.isradianaroundzero=function(t){return t>-n&&n>t};var r=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[t ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;return i.gettimezoneoffset=function(){return(new date).gettimezoneoffset()},i.parsedate=function(t){if(t instanceof date)return t;if(typeof t===q){var e=r.exec(t);if(!e)return new date(0/0);var n=i.gettimezoneoffset(),a=e[8]?"z"===e[8].touppercase()?n:60*+e[8].slice(0,3)+n:0;return new date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0)-a,+e[6]||0,+e[7]||0)}return new date(null==t?0/0:math.round(t))},i.quantity=function(t){return math.pow(10,e(t))},i.nice=function(t,i){var n,r=e(t),a=math.pow(10,r),o=t/a;return n=i?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*a,r>=-20?+t.tofixed(0>r?-r:0):t},i.reformintervals=function(t){function e(t,i,n){return t.interval[n]s;s++)a[s]<=i&&(a[s]=i,o[s]=s?1:1-n),i=a[s],n=o[s];a[0]===a[1]&&o[0]*o[1]!==1?t[c](r,1):r++}return t},i.isnumeric=function(t){return t-parsefloat(t)>=0},i}),e("echarts/util/format",[we,be,"./number","zrender/contain/text"],function(t){var e=t(be),i=t("./number"),n=t("zrender/contain/text"),r={};r.addcommas=function(t){return isnan(t)?"-":(t=(t+"").split("."),t[0][t](/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t[k]>1?"."+t[1]:""))},r.tocamelcase=function(t,e){return t=(t||"")[u]()[t](/-(.)/g,function(t,e){return e.touppercase()}),e&&t&&(t=t.charat(0).touppercase()+t.slice(1)),t},r.normalizecssarray=function(t){var e=t[k];return typeof t===x?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t};var a=r.encodehtml=function(t){return string(t)[t](/&/g,"&")[t](//g,">")[t](/"/g,""")[t](/'/g,"'")},o=["a","b","c","d","e","f","g"],s=function(t,e){return"{"+t+(null==e?"":e)+"}"};r.formattpl=function(t,i,n){e[w](i)||(i=[i]);var r=i[k];if(!r)return"";for(var l=i[0].$vars||[],u=0;uf;f++)for(var d=0;dt?"0"+t:t};return r.formattime=function(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="mm-dd\nyyyy"); var r=i.parsedate(e),a=n?"utc":"",o=r["get"+a+"fullyear"](),s=r["get"+a+"month"]()+1,u=r["get"+a+"date"](),c=r["get"+a+"hours"](),h=r["get"+a+"minutes"](),f=r["get"+a+"seconds"]();return t=t[t]("mm",l(s))[u]()[t]("yyyy",o)[t]("yy",o%100)[t]("dd",l(u))[t]("d",u)[t]("hh",l(c))[t]("h",c)[t]("mm",l(h))[t]("m",h)[t]("ss",l(f))[t]("s",f)},r.capitalfirst=function(t){return t?t.charat(0).touppercase()+t.substr(1):t},r.truncatetext=n.truncatetext,r}),e("echarts/scale/helper",[we,"../util/number"],function(t){function e(t,e,i){t[e]=math.max(math.min(t[e],i[1]),i[0])}var i=t("../util/number"),n=i.round,r={};return r.intervalscaleniceticks=function(t,e){var a={},o=t[1]-t[0],s=a.interval=i.nice(o/e,!0),l=a.intervalprecision=i.getprecisionsafe(s)+2,u=a.nicetickextent=[n(math.ceil(t[0]/s)*s,l),n(math.floor(t[1]/s)*s,l)];return r.fixextent(u,t),a},r.fixextent=function(t,i){!isfinite(t[0])&&(t[0]=i[0]),!isfinite(t[1])&&(t[1]=i[1]),e(t,0,i),e(t,1,i),t[0]>t[1]&&(t[0]=t[1])},r.intervalscalegetticks=function(t,e,i,r){var a=[];if(!t)return a;var o=1e4;e[0]o)return[];return e[1]>(a[k]?a[a[k]-1]:i[1])&&a.push(e[1]),a},r}),e("echarts/scale/interval",[we,"../util/number","../util/format","./scale","./helper"],function(t){var e=t("../util/number"),i=t("../util/format"),n=t("./scale"),r=t("./helper"),a=e.round,o=n[q]({type:"interval",_interval:0,_intervalprecision:2,setextent:function(t,e){var i=this[j];isnan(t)||(i[0]=parsefloat(t)),isnan(e)||(i[1]=parsefloat(e))},unionextent:function(t){var e=this[j];t[0]e[1]&&(e[1]=t[1]),o[te].setextent.call(this,e[0],e[1])},getinterval:function(){return this._interval||this.niceticks(),this._interval},setinterval:function(t){this._interval=t,this._niceextent=this[j].slice()},getticks:function(){return this._interval||this.niceticks(),r.intervalscalegetticks(this._interval,this[j],this._niceextent,this._intervalprecision)},gettickslabels:function(){for(var t=[],e=this.getticks(),i=0;ii&&(i=-i,e.reverse());var n=r.intervalscaleniceticks(e,t);this._intervalprecision=n.intervalprecision,this._interval=n.interval,this._niceextent=n.nicetickextent}},niceextent:function(t,e,i){var n=this[j];if(n[0]===n[1])if(0!==n[0]){var r=n[0];i?n[0]-=r/2:(n[1]+=r/2,n[0]-=r/2)}else n[1]=1;var o=n[1]-n[0];isfinite(o)||(n[0]=0,n[1]=1),this.niceticks(t);var s=this._interval;e||(n[0]=a(math.floor(n[0]/s)*s)),i||(n[1]=a(math.ceil(n[1]/s)*s))}});return o[y]=function(){return new o},o}),e("echarts/model/global",[we,be,"../util/model","./model","./component","./globaldefault","./mixin/colorpalette"],function(t){function e(t,e){l.each(e,function(e,i){x.hasclass(i)||("object"==typeof e?t[i]=t[i]?l.merge(t[i],e,!1):l.clone(e):null==t[i]&&(t[i]=e))})}function i(t){t=t,this[m]={},this[m][m]=1,this._componentsmap={series:[]},this._seriesindices=null,e(t,this._theme[m]),l.merge(t,t,!1),this.mergeoption(t)}function n(t,e){l[w](e)||(e=e?[e]:[]);var i={};return h(e,function(e){i[e]=(t[e]||[]).slice()}),i}function r(t,e,i){var n=e.type?e.type:i?i.subtype:x.determinesubtype(t,e);return n}function a(t){return d(t,function(t){return t.componentindex})||[]}function o(t,e){return e.hasownproperty("subtype")?f(t,function(t){return t.subtype===e.subtype}):t}function s(t){}var l=t(be),u=t("../util/model"),c=t("./model"),h=l.each,f=l[_],d=l.map,p=l[w],v=l[f],y=l[h],x=t("./component"),t=t("./globaldefault"),m="\x00_ec_inner",s=c[q]({constructor:s,init:function(t,e,i,n){i=i||{},this[m]=null,this._theme=new c(i),this._optionmanager=n},setoption:function(t,e,i){l.assert(!(m in t),"please use chart.getoption()"),this._optionmanager.setoption(t,e),this.resetoption(null,i)},resetoption:function(t,e){var n=!1,r=this._optionmanager;if(!t||"recreate"===t){var a=r.mountoption("recreate"===t);this[m]&&"recreate"!==t?(!e&&this.restoredata(),this.mergeoption(a)):i.call(this,a),n=!0}if(("timeline"===t||"media"===t)&&this.restoredata(),!t||"recreate"===t||"timeline"===t){var o=r.gettimelineoption(this);o&&(this.mergeoption(o),n=!0)}if(!t||"recreate"===t||"media"===t){var s=r.getmediaoption(this,this._api);s[k]&&h(s,function(t){this.mergeoption(t,n=!0)},this)}return n},mergeoption:function(t){function e(e,s){var c=u.normalizetoarray(t[e]),f=u.mappingtoexists(o[e],c);u.makeidandname(f),h(f,function(t){var i=t[m];y(i)&&(t.keyinfo[r]=e,t.keyinfo.subtype=r(e,i,t.exist))});var d=n(o,s);i[e]=[],o[e]=[],h(f,function(t,n){var r=t.exist,a=t[m];if(l.assert(y(a)||r,"empty component definition"),a){var s=x.getclass(e,t.keyinfo.subtype,!0);if(r&&r instanceof s)r.name=t.keyinfo.name,r.mergeoption(a,this),r.optionupdated(a,!1);else{var u=l[q]({dependentmodels:d,componentindex:n},t.keyinfo);r=new s(a,this,this,u),l[q](r,u),r.init(a,this,this,u),r.optionupdated(null,!0)}}else r.mergeoption({},this),r.optionupdated({},!1);o[e][n]=r,i[e][n]=r[m]},this),e===l&&(this._seriesindices=a(o[l]))}var i=this[m],o=this._componentsmap,s=[];h(t,function(t,e){null!=t&&(x.hasclass(e)?s.push(e):i[e]=null==i[e]?l.clone(t):l.merge(i[e],t,!0))}),x.topologicaltravel(s,x.getallclassmaintypes(),e,this),this._seriesindices=this._seriesindices||[]},getoption:function(){var t=l.clone(this[m]);return h(t,function(e,i){if(x.hasclass(i)){for(var e=u.normalizetoarray(e),n=e[k]-1;n>=0;n--)u.isidinner(e[n])&&e[c](n,1);t[i]=e}}),delete t[m],t},gettheme:function(){return this._theme},getcomponent:function(t,e){var i=this._componentsmap[t];return i?i[e||0]:void 0},querycomponents:function(t){var e=t[r];if(!e)return[];var i=t.index,n=t.id,r=t.name,a=this._componentsmap[e];if(!a||!a[k])return[];var s;if(null!=i)p(i)||(i=[i]),s=f(d(i,function(t){return a[t]}),function(t){return!!t});else if(null!=n){var l=p(n);s=f(a,function(t){return l&&v(n,t.id)>=0||!l&&t.id===n})}else if(null!=r){var u=p(r);s=f(a,function(t){return u&&v(r,t.name)>=0||!u&&t.name===r})}else s=a.slice();return o(s,t)},findcomponents:function(t){function e(t){var e=r+"index",i=r+"id",n=r+"name";return!t||null==t[e]&&null==t[i]&&null==t[n]?null:{maintype:r,index:t[e],id:t[i],name:t[n]}}function i(e){return t[_]?f(e,t[_]):e}var n=t.query,r=t[r],a=e(n),s=a?this.querycomponents(a):this._componentsmap[r];return i(o(s,t))},eachcomponent:function(t,e,i){var n=this._componentsmap;if(typeof t===b)i=e,e=t,h(n,function(t,n){h(t,function(t,r){e.call(i,n,t,r)})});else if(l[g](t))h(n[t],e,i);else if(y(t)){var r=this.findcomponents(t);h(r,e,i)}},getseriesbyname:function(t){var e=this._componentsmap[l];return f(e,function(e){return e.name===t})},getseriesbyindex:function(t){return this._componentsmap[l][t]},getseriesbytype:function(t){var e=this._componentsmap[l];return f(e,function(e){return e.subtype===t})},getseries:function(){return this._componentsmap[l].slice()},eachseries:function(t,e){s(this),h(this._seriesindices,function(i){var n=this._componentsmap[l][i];t.call(e,n,i)},this)},eachrawseries:function(t,e){h(this._componentsmap[l],t,e)},eachseriesbytype:function(t,e,i){s(this),h(this._seriesindices,function(n){var r=this._componentsmap[l][n];r.subtype===t&&e.call(i,r,n)},this)},eachrawseriesbytype:function(t,e,i){return h(this.getseriesbytype(t),e,i)},isseriesfiltered:function(t){return s(this),l[f](this._seriesindices,t.componentindex)<0},filterseries:function(t,e){s(this);var i=f(this._componentsmap[l],t,e);this._seriesindices=a(i)},restoredata:function(){var t=this._componentsmap;this._seriesindices=a(t[l]);var e=[];h(t,function(t,i){e.push(i)}),x.topologicaltravel(e,x.getallclassmaintypes(),function(e){h(t[e],function(t){t.restoredata()})})}});return l.mixin(s,t("./mixin/colorpalette")),s}),e("echarts/extensionapi",[we,be],function(t){function e(t){i.each(n,function(e){this[e]=i.bind(t[e],t)},this)}var i=t(be),n=["getdom","getzr",le,se,"getdevicepixelratio",i,"isdisposed","on","off","getdataurl","getconnecteddataurl",ge,"getoption","getviewofcomponentmodel","getviewofseriesmodel"];return e}),e("echarts/coordinatesystem",[we,be],function(t){function e(){this._coordinatesystems=[]}var i=t(be),n={};return e[te]={constructor:e,create:function(t,e){var r=[];i.each(n,function(i){var n=i[y](t,e);r=r[o](n||[])}),this._coordinatesystems=r},update:function(t,e){i.each(this._coordinatesystems,function(i){i[xe]&&i[xe](t,e)})},getcoordinatesystems:function(){return this._coordinatesystems.slice()}},e.register=function(t,e){n[t]=e},e.get=function(t){return n[t]},e}),e(x,[],function(){function t(t){var e={},i={},n=t.match(/firefox\/([\d.]+)/),r=t.match(/msie\s([\d.]+)/)||t.match(/trident\/.+?rv:(([\d.]+))/),a=t.match(/edge\/([\d.]+)/),o=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),a&&(i.edge=!0,i.version=a[1]),o&&(i.wechat=!0),{browser:i,os:e,node:!1,canvassupported:document[c]("canvas").getcontext?!0:!1,toucheventssupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointereventssupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11)}}var e={};return e=typeof navigator===h?{browser:{},os:{},node:!0,canvassupported:!0}:t(navigator.useragent)}),e("echarts/model/optionmanager",[we,be,"../util/model","./component"],function(t){function e(t){this._api=t,this._timelineoptions=[],this._medialist=[],this._mediadefault,this._currentmediaindices=[],this._optionbackup,this._newbaseoption}function i(t,e,i){var n,r,a=[],o=[],l=t.timeline;if(t.baseoption&&(r=t.baseoption),(l||t.options)&&(r=r||{},a=(t.options||[]).slice()),t.media){r=r||{};var u=t.media;c(u,function(t){t&&t[m]&&(t.query?o.push(t):n||(n=t))})}return r||(r=t),r.timeline||(r.timeline=l),c([r][o](a)[o](s.map(o,function(t){return t[m]})),function(t){c(e,function(e){e(t,i)})}),{baseoption:r,timelineoptions:a,mediadefault:n,medialist:o}}function n(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return s.each(t,function(t,e){var i=e.match(p);if(i&&i[1]&&i[2]){var o=i[1],s=i[2][u]();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function a(t,e){return t.join(",")===e.join(",")}function o(t,e){e=e||{},c(e,function(e,i){if(null!=e){var n=t[i];if(u.hasclass(i)){e=l.normalizetoarray(e),n=l.normalizetoarray(n);var r=l.mappingtoexists(n,e);t[i]=f(r,function(t){return t[m]&&t.exist?d(t.exist,t[m],!0):t.exist||t[m]})}else t[i]=d(n,e,!0)}})}var s=t(be),l=t("../util/model"),u=t("./component"),c=s.each,h=s.clone,f=s.map,d=s.merge,p=/^(min|max)?(.+)$/;return e[te]={constructor:e,setoption:function(t,e){t=h(t,!0);var n=this._optionbackup,r=i.call(this,t,e,!n);this._newbaseoption=r.baseoption,n?(o(n.baseoption,r.baseoption),r.timelineoptions[k]&&(n.timelineoptions=r.timelineoptions),r.medialist[k]&&(n.medialist=r.medialist),r.mediadefault&&(n.mediadefault=r.mediadefault)):this._optionbackup=r},mountoption:function(t){var e=this._optionbackup;return this._timelineoptions=f(e.timelineoptions,h),this._medialist=f(e.medialist,h),this._mediadefault=h(e.mediadefault),this._currentmediaindices=[],h(t?e.baseoption:this._newbaseoption)},gettimelineoption:function(t){var e,i=this._timelineoptions;if(i[k]){var n=t.getcomponent("timeline");n&&(e=h(i[n.getcurrentindex()],!0))}return e},getmediaoption:function(){var t=this._api[le](),e=this._api[se](),i=this._medialist,r=this._mediadefault,o=[],s=[];if(!i[k]&&!r)return s;for(var l=0,u=i[k];u>l;l++)n(i[l].query,t,e)&&o.push(l);return!o[k]&&r&&(o=[-1]),o[k]&&!a(o,this._currentmediaindices)&&(s=f(o,function(t){return h(-1===t?r[m]:i[t][m])})),this._currentmediaindices=o,s}},e}),e("echarts/model/component",[we,"./model",be,"../util/component","../util/clazz","../util/layout","./mixin/boxlayout"],function(t){function e(t){var e=[];return n.each(l.getclassesbymaintype(t),function(t){r.apply(e,t[te].dependencies||[])}),n.map(e,function(t){return o.parseclasstype(t).main})}var i=t("./model"),n=t(be),r=array[te].push,a=t("../util/component"),o=t("../util/clazz"),s=t("../util/layout"),l=i[q]({type:"component",id:"",name:"",maintype:"",subtype:"",componentindex:0,defaultoption:null,ecmodel:null,dependentmodels:[],uid:null,layoutmode:null,$constructor:function(t,e,n,r){i.call(this,t,e,n,r),this.uid=a.getuid("componentmodel")},init:function(t,e,i){this.mergedefaultandtheme(t,i)},mergedefaultandtheme:function(t,e){var i=this.layoutmode,r=i?s.getlayoutparams(t):{},a=e.gettheme();n.merge(t,a.get(this[r])),n.merge(t,this.getdefaultoption()),i&&s.mergelayoutparam(t,r,i)},mergeoption:function(t){n.merge(this[m],t,!0);var e=this.layoutmode;e&&s.mergelayoutparam(this[m],t,e)},optionupdated:function(){},getdefaultoption:function(){if(!o.hasown(this,"__defaultoption")){for(var t=[],e=this.constructor;e;){var i=e[te].defaultoption;i&&t.push(i),e=e.superclass}for(var r={},a=t[k]-1;a>=0;a--)r=n.merge(r,t[a],!0);o.set(this,"__defaultoption",r)}return o.get(this,"__defaultoption")},getreferringcomponents:function(t){return this[j].querycomponents({maintype:t,index:this.get(t+"index",!0),id:this.get(t+"id",!0)})}});return o.enableclassmanagement(l,{registerwhenextend:!0}),a.enablesubtypedefaulter(l),a.enabletopologicaltravel(l,e),n.mixin(l,t("./mixin/boxlayout")),l}),e("echarts/model/series",[we,be,"../util/format","../util/clazz","../util/model","./component","./mixin/colorpalette",x,"../util/layout"],function(t){var e=t(be),i=t("../util/format"),n=t("../util/clazz"),r=t("../util/model"),a=t("./component"),o=t("./mixin/colorpalette"),l=t(x),u=t("../util/layout"),c=n.set,h=n.get,f=i.encodehtml,d=i.addcommas,p=a[q]({type:"series.__base__",seriesindex:0,coordinatesystem:null,defaultoption:null,legenddataprovider:null,visualcoloraccesspath:"itemstyle.normal.color",layoutmode:null,init:function(t,e,i){this[p]=this.componentindex,this.mergedefaultandtheme(t,i);var n=this.getinitialdata(t,i);c(this,"databeforeprocessed",n),this.restoredata()},mergedefaultandtheme:function(t,i){var n=this.layoutmode,a=n?u.getlayoutparams(t):{};e.merge(t,i.gettheme().get(this.subtype)),e.merge(t,this.getdefaultoption()),r.defaultemphasis(t.label,r.label_options),this.filldatatextstyle(t.data),n&&u.mergelayoutparam(t,a,n)},mergeoption:function(t,i){t=e.merge(this[m],t,!0),this.filldatatextstyle(t.data);var n=this.layoutmode;n&&u.mergelayoutparam(this[m],t,n);var r=this.getinitialdata(t,i);r&&(c(this,"data",r),c(this,"databeforeprocessed",r.cloneshallow()))},filldatatextstyle:function(t){if(t)for(var e=0;e',p=this.name;return"\x00-"===p&&(p=""),n?c+f(this.name)+" : "+s:(p&&f(p)+"
")+c+(l?f(l)+" : "+s:s)},isanimationenabled:function(){if(l.node)return!1;var t=this[s](g);return t&&this[n]().count()>this[s]("animationthreshold")&&(t=!1),t},restoredata:function(){c(this,"data",h(this,"databeforeprocessed").cloneshallow())},getcolorfrompalette:function(t,e){var i=this[j],n=o.getcolorfrompalette.call(this,t,e);return n||(n=i.getcolorfrompalette(t,e)),n},getaxistooltipdata:null,gettooltipposition:null});return e.mixin(p,r.dataformatmixin),e.mixin(p,o),p}),e("echarts/view/component",[we,"zrender/container/group","../util/component","../util/clazz"],function(t){var e=t("zrender/container/group"),i=t("../util/component"),n=t("../util/clazz"),r=function(){this.group=new e,this.uid=i.getuid("viewcomponent")};r[te]={constructor:r,init:function(){},render:function(){},dispose:function(){}};var a=r[te];return a.updateview=a.updatelayout=a.updatevisual=function(){},n.enableclassextend(r),n.enableclassmanagement(r,{registerwhenextend:!0}),r}),e("echarts/view/chart",[we,"zrender/container/group","../util/component","../util/clazz","../util/model",be],function(t){function e(){this.group=new r,this.uid=a.getuid("viewchart")}function i(t,e){if(t&&(t[z](e),"group"===t.type))for(var n=0;n=0?n():h=settimeout(n,-a),u=r};return f.clear=function(){h&&(cleartimeout(h),h=null)},f.debouncenextcall=function(t){l=t},f},t.createorupdate=function(r,a,o,s){var l=r[a];if(l){var u=l[e]||l,c=l[n],h=l[i];if(h!==o||c!==s){if(null==o||!s)return r[a]=u;l=r[a]=t.throttle(u,o,"debounce"===s),l[e]=u,l[n]=s,l[i]=o}return l}},t.clear=function(t,i){var n=t[i];n&&n[e]&&(t[i]=n[e])},t}),e("echarts/util/model",[we,"./format","./number","../model/model",be],function(t){function e(t,e){return t&&t.hasownproperty(e)}var i=t("./format"),n=t("./number"),r=t("../model/model"),a=t(be),o=a.each,s=a[h],l={};return l.normalizetoarray=function(t){return t instanceof array?t:null==t?[]:[t]},l.defaultemphasis=function(t,e){if(t){var i=t[d]=t[d]||{},n=t[f]=t[f]||{};o(e,function(t){var e=a.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},l.label_options=[ne,p,"show",ve,"distance","formatter"],l.getdataitemvalue=function(t){return t&&(null==t.value?t:t.value)},l.isdataitemoption=function(t){return s(t)&&!(t instanceof array)},l.converdatavalue=function(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"===i&&typeof t!==x&&null!=t&&"-"!==t&&(t=+n.parsedate(t)),null==t||""===t?0/0:+t)},l.createdataformatmodel=function(t,e){var i=new r;return a.mixin(i,l.dataformatmixin),i[p]=e[p],i.name=e.name||"",i[r]=e[r],i.subtype=e.subtype,i[n]=function(){return t},i},l.dataformatmixin={getdataparams:function(t,e){var i=this[n](e),n=this.getrawvalue(t,e),r=i.getrawindex(t),a=i.getname(t,!0),o=i.getrawdataitem(t);return{componenttype:this[r],componentsubtype:this.subtype,seriestype:this[r]===l?this.subtype:null,seriesindex:this[p],seriesid:this.id,seriesname:this.name,name:a,dataindex:r,data:o,datatype:e,value:n,color:i.getitemvisual(t,"color"),$vars:["seriesname","name","value"]}},getformattedlabel:function(t,e,n,r){e=e||f;var a=this[n](n),o=a.getitemmodel(t),s=this.getdataparams(t,n);null!=r&&s.value instanceof array&&(s.value=s.value[r]);var l=o.get(["label",e,"formatter"]);return typeof l===b?(s.status=e,l(s)):typeof l===q?i.formattpl(l,s):void 0},getrawvalue:function(t,e){var i=this[n](e),n=i.getrawdataitem(t);return null!=n?!s(n)||n instanceof array?n:n.value:void 0},formattooltip:a.noop},l.mappingtoexists=function(t,e){e=(e||[]).slice();var i=a.map(t||[],function(t){return{exist:t}});return o(e,function(t,n){if(s(t)){for(var r=0;r=i[k]&&i.push({option:t})}}),i},l.makeidandname=function(t){var e={};o(t,function(t){var i=t.exist;i&&(e[i.id]=t)}),o(t,function(t){var i=t[m];a.assert(!i||null==i.id||!e[i.id]||e[i.id]===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&(e[i.id]=t),!t.keyinfo&&(t.keyinfo={})}),o(t,function(t){var i=t.exist,n=t[m],r=t.keyinfo;if(s(n)){if(r.name=null!=n.name?n.name+"":i?i.name:"\x00-",i)r.id=i.id;else if(null!=n.id)r.id=n.id+"";else{var a=0;do r.id="\x00"+r.name+"\x00"+a++;while(e[r.id])}e[r.id]=t}})},l.isidinner=function(t){return s(t)&&t.id&&0===(t.id+"")[f]("\x00_ec_\x00")},l.compressbatches=function(t,e){function i(t,e,i){for(var n=0,r=t[k];r>n;n++)for(var a=t[n].seriesid,o=l.normalizetoarray(t[n][b]),s=i&&i[a],u=0,c=o[k];c>u;u++){var h=o[u];s&&s[h]?s[h]=null:(e[a]||(e[a]={}))[h]=1}}function n(t,e){var i=[];for(var r in t)if(t.hasownproperty(r)&&null!=t[r])if(e)i.push(+r);else{var a=n(t[r],!0);a[k]&&i.push({seriesid:r,dataindex:a})}return i}var r={},a={};return i(t||[],r),i(e||[],a,r),[n(r),n(a)]},l.querydataindex=function(t,e){return null!=e.dataindexinside?e.dataindexinside:null!=e[b]?a[w](e[b])?a.map(e[b],function(e){return t.indexofrawindex(e)}):t.indexofrawindex(e[b]):null!=e.name?a[w](e.name)?a.map(e.name,function(e){return t.indexofname(e)}):t.indexofname(e.name):void 0},l.makegetter=function(){var t=0;return function(){var e="\x00__ec_prop_getter_"+t++;return function(t){return t[e]||(t[e]={})}}}(),l.parsefinder=function(t,i,n){if(a[g](i)){var r={};r[i+"index"]=0,i=r}var s=n&&n.defaultmaintype;!s||e(i,s+"index")||e(i,s+"id")||e(i,s+"name")||(i[s+"index"]=0);var l={};return o(i,function(e,r){var e=i[r];if(r===b||"dataindexinside"===r)return void(l[r]=e);var o=r.match(/^(\w+)(index|id|name)$/)||[],s=o[1],u=(o[2]||"")[u]();if(!(!s||!u||null==e||"index"===u&&"none"===e||n&&n.includemaintypes&&a[f](n.includemaintypes,s)<0)){var c={maintype:s};("index"!==u||"all"!==e)&&(c[u]=e);var h=t.querycomponents(c);l[s+"models"]=h,l[s+"model"]=h[0]}}),l},l}),e("zrender/zrender",[we,"./core/guid","./core/env","./core/util","./handler","./storage","./animation/animation","./dom/handlerproxy","./painter"],function(t){function e(t){delete h[t]}var i=t("./core/guid"),n=t("./core/env"),r=t("./core/util"),a=t("./handler"),o=t("./storage"),s=t("./animation/animation"),l=t("./dom/handlerproxy"),u=!n[v],c={canvas:t("./painter")},h={},f={};f.version="3.4.4",f.init=function(t,e){var n=new d(i(),t,e);return h[n.id]=n,n},f[a]=function(t){if(t)t[a]();else{for(var e in h)h.hasownproperty(e)&&h[e][a]();h={}}return f},f.getinstance=function(t){return h[t]},f.registerpainter=function(t,e){c[t]=e};var d=function(t,e,i){i=i||{},this.dom=e,this.id=t;var h=this,f=new o,d=i.renderer;if(u){if(!c.vml)throw new error("you need to require 'zrender/vml/vml' to support ie8");d="vml"}else d&&c[d]||(d="canvas");var p=new c[d](e,f,i);this.storage=f,this.painter=p;var m=n.node?null:new l(p.getviewportroot());this.handler=new a(f,p,m,p.root),this[g]=new s({stage:{update:r.bind(this.flush,this)}}),this[g].start(),this._needsrefresh;var v=f.delfromstorage,g=f.addtostorage;f.delfromstorage=function(t){v.call(f,t),t&&t.removeselffromzr(h)},f.addtostorage=function(t){g.call(f,t),t.addselftozr(h)}};return d[te]={constructor:d,getid:function(){return this.id},add:function(t){this.storage.addroot(t),this._needsrefresh=!0},remove:function(t){this.storage.delroot(t),this._needsrefresh=!0},configlayer:function(t,e){this.painter.configlayer(t,e),this._needsrefresh=!0},refreshimmediately:function(){this._needsrefresh=!1,this.painter.refresh(),this._needsrefresh=!1},refresh:function(){this._needsrefresh=!0},flush:function(){this._needsrefresh&&this.refreshimmediately(),this._needsrefreshhover&&this.refreshhoverimmediately()},addhover:function(t,e){this.painter.addhover&&(this.painter.addhover(t,e),this.refreshhover())},removehover:function(t){this.painter.removehover&&(this.painter.removehover(t),this.refreshhover())},clearhover:function(){this.painter.clearhover&&(this.painter.clearhover(),this.refreshhover())},refreshhover:function(){this._needsrefreshhover=!0},refreshhoverimmediately:function(){this._needsrefreshhover=!1,this.painter.refreshhover&&this.painter.refreshhover()},resize:function(t){t=t||{},this.painter.resize(t.width,t[he]),this.handler.resize()},clearanimation:function(){this[g].clear()},getwidth:function(){return this.painter[le]()},getheight:function(){return this.painter[se]()},pathtoimage:function(t,e){return this.painter.pathtoimage(t,e)},setcursorstyle:function(t){this.handler.setcursorstyle(t)},findhover:function(t,e){return this.handler.findhover(t,e)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler[z](t,e)},clear:function(){this.storage.delroot(),this.painter.clear()},dispose:function(){this[g].stop(),this.clear(),this.storage[a](),this.painter[a](),this.handler[a](),this[g]=this.storage=this.painter=this.handler=null,e(this.id)}},f}),e("zrender/tool/color",[we,"../core/lru"],function(t){function e(t){return t=math.round(t),0>t?0:t>255?255:t}function i(t){return t=math.round(t),0>t?0:t>360?360:t}function n(t){return 0>t?0:t>1?1:t}function r(t){return e(t[k]&&"%"===t.charat(t[k]-1)?parsefloat(t)/100*255:parseint(t,10))}function a(t){return n(t[k]&&"%"===t.charat(t[k]-1)?parsefloat(t)/100:parsefloat(t))}function o(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function s(t,e,i){return t+(e-t)*i}function l(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function c(t,e){s&&u(s,e),s=m.put(t,s||e.slice())}function h(t,e){if(t){e=e||[];var i=m.get(t);if(i)return u(e,i);t+="";var n=t[t](/ /g,"")[u]();if(n in w)return u(e,w[n]),c(t,e),e;if("#"!==n.charat(0)){var o=n[f]("("),s=n[f](")");if(-1!==o&&s+1===n[k]){var h=n.substr(0,o),d=n.substr(o+1,s-(o+1)).split(","),p=1;switch(h){case"rgba":if(4!==d[k])return void l(e,0,0,0,1);p=a(d.pop());case"rgb":return 3!==d[k]?void l(e,0,0,0,1):(l(e,r(d[0]),r(d[1]),r(d[2]),p),c(t,e),e);case"hsla":return 4!==d[k]?void l(e,0,0,0,1):(d[3]=a(d[3]),f(d,e),c(t,e),e);case"hsl":return 3!==d[k]?void l(e,0,0,0,1):(f(d,e),c(t,e),e);default:return}}l(e,0,0,0,1)}else{if(4===n[k]){var m=parseint(n.substr(1),16);return m>=0&&4095>=m?(l(e,(3840&m)>>4|(3840&m)>>8,240&m|(240&m)>>4,15&m|(15&m)<<4,1),c(t,e),e):void l(e,0,0,0,1)}if(7===n[k]){var m=parseint(n.substr(1),16);return m>=0&&16777215>=m?(l(e,(16711680&m)>>16,(65280&m)>>8,255&m,1),c(t,e),e):void l(e,0,0,0,1)}}}}function f(t,i){var n=(parsefloat(t[0])%360+360)%360/360,r=a(t[1]),s=a(t[2]),u=.5>=s?s*(r+1):s+r-s*r,c=2*s-u;return i=i||[],l(i,e(255*o(c,u,n+1/3)),e(255*o(c,u,n)),e(255*o(c,u,n-1/3)),1),4===t[k]&&(i[3]=t[3]),i}function d(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,a=t[2]/255,o=math.min(n,r,a),s=math.max(n,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+o):l/(2-s-o);var c=((s-n)/6+l/2)/l,h=((s-r)/6+l/2)/l,f=((s-a)/6+l/2)/l;n===s?e=f-h:r===s?e=1/3+c-f:a===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,i,u];return null!=t[3]&&d.push(t[3]),d}}function p(t,e){var i=h(t);if(i){for(var n=0;3>n;n++)i[n]=0>e?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return x(i,4===i[k]?"rgba":"rgb")}}function m(t){var e=h(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).tostring(16).slice(1):void 0}function v(t,i,r){if(i&&i[k]&&t>=0&&1>=t){r=r||[];var a=t*(i[k]-1),o=math.floor(a),l=math.ceil(a),u=i[o],c=i[l],h=a-o;return r[0]=e(s(u[0],c[0],h)),r[1]=e(s(u[1],c[1],h)),r[2]=e(s(u[2],c[2],h)),r[3]=n(s(u[3],c[3],h)),r}}function g(t,i,r){if(i&&i[k]&&t>=0&&1>=t){var a=t*(i[k]-1),o=math.floor(a),l=math.ceil(a),u=h(i[o]),c=h(i[l]),f=a-o,d=x([e(s(u[0],c[0],f)),e(s(u[1],c[1],f)),e(s(u[2],c[2],f)),n(s(u[3],c[3],f))],"rgba");return r?{color:d,leftindex:o,rightindex:l,value:a}:d}}function y(t,e,n,r){return t=h(t),t?(t=d(t),null!=e&&(t[0]=i(e)),null!=n&&(t[1]=a(n)),null!=r&&(t[2]=a(r)),x(f(t),"rgba")):void 0}function _(t,e){return t=h(t),t&&null!=e?(t[3]=n(e),x(t,"rgba")):void 0}function x(t,e){if(t&&t[k]){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}var b=t("../core/lru"),w={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},m=new b(20),s=null; return{parse:h,lift:p,tohex:m,fastmaptocolor:v,maptocolor:g,modifyhsl:y,modifyalpha:_,stringify:x}}),e("zrender/mixin/eventful",[we],function(){var t=array[te].slice,e=function(){this._$handlers={}};return e[te]={constructor:e,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var r=0;rr;r++)i[t][r].h!=e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t][k]&&delete i[t]}else delete i[t];return this},trigger:function(e){if(this._$handlers[e]){var i=arguments,n=i[k];n>3&&(i=t.call(i,1));for(var r=this._$handlers[e],a=r[k],o=0;a>o;){switch(n){case 1:r[o].h.call(r[o].ctx);break;case 2:r[o].h.call(r[o].ctx,i[1]);break;case 3:r[o].h.call(r[o].ctx,i[1],i[2]);break;default:r[o].h.apply(r[o].ctx,i)}r[o].one?(r[c](o,1),a--):o++}}return this},triggerwithcontext:function(e){if(this._$handlers[e]){var i=arguments,n=i[k];n>4&&(i=t.call(i,1,i[k]-1));for(var r=i[i[k]-1],a=this._$handlers[e],o=a[k],s=0;o>s;){switch(n){case 1:a[s].h.call(r);break;case 2:a[s].h.call(r,i[1]);break;case 3:a[s].h.call(r,i[1],i[2]);break;default:a[s].h.apply(r,i)}a[s].one?(a[c](s,1),o--):s++}}return this}},e}),e("zrender/core/timsort",[],function(){function t(t){for(var e=0;t>=l;)e|=1&t,t>>=1;return t+e}function e(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;n>a&&r(t[a],t[a-1])<0;)a++;i(t,e,a)}else for(;n>a&&r(t[a],t[a-1])>=0;)a++;return a-e}function i(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function n(t,e,i,n,r){for(n===e&&n++;i>n;n++){for(var a,o=t[n],s=e,l=n;l>s;)a=s+l>>>1,r(o,t[a])<0?l=a:s=a+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=o}}function r(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])>0){for(s=n-r;s>l&&a(t,e[i+r+l])>0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;s>l&&a(t,e[i+r-l])<=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[i+c])>0?o=c+1:l=c}return l}function a(t,e,i,n,r,a){var o=0,s=0,l=1;if(a(t,e[i+r])<0){for(s=r+1;s>l&&a(t,e[i+r-l])<0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=n-r;s>l&&a(t,e[i+r+l])>=0;)o=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;l>o;){var c=o+(l-o>>>1);a(t,e[i+c])<0?l=c:o=c+1}return l}function o(t,e){function i(t,e){f[y]=t,d[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&d[t-1]<=d[t]+d[t+1]||t>=2&&d[t-2]<=d[t]+d[t-1])d[t-1]d[t+1])break;s(t)}}function o(){for(;y>1;){var t=y-2;t>0&&d[t-1]=o?l(n,o,s,u):h(n,o,s,u)))}function l(i,n,o,s){var l=0;for(l=0;n>l;l++)_[l]=t[i+l];var c=0,h=o,f=i;if(t[f++]=t[h++],0!==--s){if(1===n){for(l=0;s>l;l++)t[f+l]=t[h+l];return void(t[f+s]=_[c])}for(var d,m,v,g=p;;){d=0,m=0,v=!1;do if(e(t[h],_[c])<0){if(t[f++]=t[h++],m++,d=0,0===--s){v=!0;break}}else if(t[f++]=_[c++],d++,m=0,1===--n){v=!0;break}while(g>(d|m));if(v)break;do{if(d=a(t[h],_,c,n,0,e),0!==d){for(l=0;d>l;l++)t[f+l]=_[c+l];if(f+=d,c+=d,n-=d,1>=n){v=!0;break}}if(t[f++]=t[h++],0===--s){v=!0;break}if(m=r(_[c],t,h,s,0,e),0!==m){for(l=0;m>l;l++)t[f+l]=t[h+l];if(f+=m,h+=m,s-=m,0===s){v=!0;break}}if(t[f++]=_[c++],1===--n){v=!0;break}g--}while(d>=u||m>=u);if(v)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===n){for(l=0;s>l;l++)t[f+l]=t[h+l];t[f+s]=_[c]}else{if(0===n)throw new error;for(l=0;n>l;l++)t[f+l]=_[c+l]}}else for(l=0;n>l;l++)t[f+l]=_[c+l]}function h(i,n,o,s){var l=0;for(l=0;s>l;l++)_[l]=t[o+l];var c=i+n-1,h=s-1,f=o+s-1,d=0,m=0;if(t[f--]=t[c--],0!==--n){if(1===s){for(f-=n,c-=n,m=f+1,d=c+1,l=n-1;l>=0;l--)t[m+l]=t[d+l];return void(t[f]=_[h])}for(var v=p;;){var g=0,y=0,x=!1;do if(e(_[h],t[c])<0){if(t[f--]=t[c--],g++,y=0,0===--n){x=!0;break}}else if(t[f--]=_[h--],y++,g=0,1===--s){x=!0;break}while(v>(g|y));if(x)break;do{if(g=n-a(_[h],t,i,n,n-1,e),0!==g){for(f-=g,c-=g,n-=g,m=f+1,d=c+1,l=g-1;l>=0;l--)t[m+l]=t[d+l];if(0===n){x=!0;break}}if(t[f--]=_[h--],1===--s){x=!0;break}if(y=s-r(t[c],_,0,s,s-1,e),0!==y){for(f-=y,h-=y,s-=y,m=f+1,d=h+1,l=0;y>l;l++)t[m+l]=_[d+l];if(1>=s){x=!0;break}}if(t[f--]=t[c--],0===--n){x=!0;break}v--}while(g>=u||y>=u);if(x)break;0>v&&(v=0),v+=2}if(p=v,1>p&&(p=1),1===s){for(f-=n,c-=n,m=f+1,d=c+1,l=n-1;l>=0;l--)t[m+l]=t[d+l];t[f]=_[h]}else{if(0===s)throw new error;for(d=f-(s-1),l=0;s>l;l++)t[d+l]=_[l]}}else for(d=f-(s-1),l=0;s>l;l++)t[d+l]=_[l]}var f,d,p=u,m=0,v=c,g=0,y=0;m=t[k],2*c>m&&(v=m>>>1);var _=[];g=120>m?5:1542>m?10:119151>m?19:40,f=[],d=[],this.mergeruns=n,this.forcemergeruns=o,this.pushrun=i}function s(i,r,a,s){a||(a=0),s||(s=i[k]);var u=s-a;if(!(2>u)){var c=0;if(l>u)return c=e(i,a,s,r),void n(i,a,s,a+c,r);var h=new o(i,r),f=t(u);do{if(c=e(i,a,s,r),f>c){var d=u;d>f&&(d=f),n(i,a,a+d,a+c,r),c=d}h.pushrun(a,c),h.mergeruns(),u-=c,a+=c}while(0!==u);h.forcemergeruns()}}var l=32,u=7,c=256;return s}),e("echarts/preprocessor/backwardcompat",[we,be,"./helper/compatstyle"],function(t){function e(t,e){e=e.split(",");for(var i=t,n=0;n=0?new l.constructor(a[s][k]):a[s]}return n}var n=h,r=typeof window===h?global:window,a=typeof r.float64array===n?array:r.float64array,o=typeof r.int32array===n?array:r.int32array,s={"float":a,"int":o,ordinal:array,number:array,time:array},l=t("../model/model"),u=t("./datadiffer"),c=t(be),f=t("../util/model"),d=c[h],p=["stackedon","hasitemoption","_namelist","_idlist","_rawdata"],m=function(t,e){c.each(p[o](e.__wrappedmethods||[]),function(i){e.hasownproperty(i)&&(t[i]=e[i])}),t.__wrappedmethods=e.__wrappedmethods},v=function(t,e){t=t||["x","y"];for(var i={},n=[],r=0;r0&&(w+="__ec__"+c[b]),c[b]++),w&&(u[h]=w)}this._namelist=e,this._idlist=u},g.count=function(){return this.indices[k]},g.get=function(t,e,i){var n=this._storage,r=this.indices[e];if(null==r)return 0/0;var a=n[t]&&n[t][r];if(i){var o=this._dimensioninfos[t];if(o&&o.stackable)for(var s=this.stackedon;s;){var l=s.get(t,e);(a>=0&&l>0||0>=a&&0>l)&&(a+=l),s=s.stackedon}}return a},g.getvalues=function(t,e,i){var n=[];c[w](t)||(i=e,e=t,t=this.dimensions);for(var r=0,a=t[k];a>r;r++)n.push(this.get(t[r],e,i));return n},g.hasvalue=function(t){for(var e=this.dimensions,i=this._dimensioninfos,n=0,r=e[k];r>n;n++)if("ordinal"!==i[e[n]].type&&isnan(this.get(e[n],t)))return!1;return!0},g.getdataextent=function(t,e,i){t=this.getdimension(t);var n=this._storage[t],r=this.getdimensioninfo(t);e=r&&r.stackable&&e;var a,o=(this[j]||(this[j]={}))[t+!!e];if(o)return o;if(n){for(var s=1/0,l=-1/0,u=0,c=this.count();c>u;u++)a=this.get(t,u,e),(!i||i(a,t,u))&&(s>a&&(s=a),a>l&&(l=a));return this[j][t+!!e]=[s,l]}return[1/0,-1/0]},g.getsum=function(t,e){var i=this._storage[t],n=0;if(i)for(var r=0,a=this.count();a>r;r++){var o=this.get(t,r,e);isnan(o)||(n+=o)}return n},g[f]=function(t,e){var i=this._storage,n=i[t],r=this.indices;if(n)for(var a=0,o=r[k];o>a;a++){var s=r[a];if(n[s]===e)return a}return-1},g.indexofname=function(t){for(var e=this.indices,i=this._namelist,n=0,r=e[k];r>n;n++){var a=e[n];if(i[a]===t)return n}return-1},g.indexofrawindex=function(t){var e=this.indices,i=e[t];if(null!=i&&i===t)return t;for(var n=0,r=e[k]-1;r>=n;){var a=(n+r)/2|0;if(e[a]t))return a;r=a-1}}return-1},g.indicesofnearest=function(t,e,i,n){var r=this._storage,a=r[t],o=[];if(!a)return o;null==n&&(n=1/0);for(var s=number.max_value,l=-1,u=0,c=this.count();c>u;u++){var h=e-this.get(t,u,i),f=math.abs(h);n>=h&&s>=f&&((s>f||h>=0&&0>l)&&(s=f,l=h,o[k]=0),o.push(u))}return o},g.getrawindex=function(t){var e=this.indices[t];return null==e?-1:e},g.getrawdataitem=function(t){return this._rawdata[this.getrawindex(t)]},g.getname=function(t){return this._namelist[this.indices[t]]||""},g.getid=function(t){return this._idlist[this.indices[t]]||this.getrawindex(t)+""},g.each=function(t,i,n,r){typeof t===b&&(r=n,n=i,i=t,t=[]),t=c.map(e(t),this.getdimension,this);var a=[],o=t[k],s=this.indices;r=r||this;for(var l=0;lu;u++)a[u]=this.get(t[u],l,n);a[u]=l,i.apply(r,a)}},g.filterself=function(t,i,n,r){typeof t===b&&(r=n,n=i,i=t,t=[]),t=c.map(e(t),this.getdimension,this);var a=[],o=[],s=t[k],l=this.indices;r=r||this;for(var u=0;uf;f++)o[f]=this.get(t[f],u,n);o[f]=u,h=i.apply(r,o)}h&&a.push(l[u])}return this.indices=a,this[j]={},this},g.maparray=function(t,e,i,n){typeof t===b&&(n=i,i=e,e=t,t=[]);var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i,n),r},g.map=function(t,n,r,a){t=c.map(e(t),this.getdimension,this);var o=i(this,t),s=o.indices=this.indices,l=o._storage,u=[];return this.each(t,function(){var e=arguments[arguments[k]-1],i=n&&n.apply(this,arguments);if(null!=i){typeof i===x&&(u[0]=i,i=u);for(var r=0;rm;m+=f){f>p-m&&(f=p-m,c[k]=f);for(var v=0;f>v;v++){var g=l[m+v];c[v]=d[g],h[v]=g}var y=n(c),g=h[r(c,y)||0];d[g]=y,u.push(g)}return a},g.getitemmodel=function(t){var e=this.hostmodel;return t=this.indices[t],new l(this._rawdata[t],e,e&&e[j])},g.diff=function(t){var e,i=this._idlist,n=t&&t._idlist,r="e\x00\x00";return new u(t?t.indices:[],this.indices,function(t){return null!=(e=n[t])?e:r+t},function(t){return null!=(e=i[t])?e:r+t})},g.getvisual=function(t){var e=this._visual;return e&&e[t]},g.setvisual=function(t,e){if(d(t))for(var i in t)t.hasownproperty(i)&&this.setvisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},g.setlayout=function(t,e){if(d(t))for(var i in t)t.hasownproperty(i)&&this.setlayout(i,t[i]);else this._layout[t]=e},g.getlayout=function(t){return this._layout[t]},g.getitemlayout=function(t){return this._itemlayouts[t]},g.setitemlayout=function(t,e,i){this._itemlayouts[t]=i?c[q](this._itemlayouts[t]||{},e):e},g.clearitemlayouts=function(){this._itemlayouts[k]=0},g.getitemvisual=function(t,e,i){var n=this._itemvisuals[t],r=n&&n[e];return null!=r||i?r:this.getvisual(e)},g.setitemvisual=function(t,e,i){var n=this._itemvisuals[t]||{};if(this._itemvisuals[t]=n,d(e))for(var r in e)e.hasownproperty(r)&&(n[r]=e[r]);else n[e]=i},g.clearallvisual=function(){this._visual={},this._itemvisuals=[]};var y=function(t){t[p]=this[p],t[b]=this[b],t.datatype=this.datatype};return g.setitemgraphicel=function(t,e){var i=this.hostmodel;e&&(e[b]=t,e.datatype=this.datatype,e[p]=i&&i[p],"group"===e.type&&e[s](y,e)),this._graphicels[t]=e},g.getitemgraphicel=function(t){return this._graphicels[t]},g.eachitemgraphicel=function(t,e){c.each(this._graphicels,function(i,n){i&&t&&t.call(e,i,n)})},g.cloneshallow=function(){var t=c.map(this.dimensions,this.getdimensioninfo,this),e=new v(t,this.hostmodel);return e._storage=this._storage,m(e,this),e.indices=this.indices.slice(),this[j]&&(e[j]=c[q]({},this[j])),e},g.wrapmethod=function(t,e){var i=this[t];typeof i===b&&(this.__wrappedmethods=this.__wrappedmethods||[],this.__wrappedmethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t][o](c.slice(arguments)))})},g.transferable_methods=["cloneshallow","downsample","map"],g.changable_methods=["filterself"],v}),e("echarts/model/model",[we,be,"../util/clazz",x,"./mixin/linestyle","./mixin/areastyle","./mixin/textstyle","./mixin/itemstyle"],function(t){function e(t,e,i){this.parentmodel=e,this[j]=i,this[m]=t}function i(t,e,i){for(var n=0;n=i&&n>=t},containdata:function(t){return this[$](this.datatocoord(t))},getextent:function(){var t=this[j].slice();return t},getpixelprecision:function(t){return i.getpixelprecision(t||this.scale.getextent(),this[j])},setextent:function(t,e){var i=this[j];i[0]=t,i[1]=e},datatocoord:function(t,i){var r=this[j],o=this.scale;return t=o.normalize(t),this.onband&&"ordinal"===o.type&&(r=r.slice(),e(r,o.count())),n(t,a,r,i)},coordtodata:function(t,i){var r=this[j],o=this.scale;this.onband&&"ordinal"===o.type&&(r=r.slice(),e(r,o.count()));var s=n(t,r,a,i);return this.scale.scale(s)},pointtodata:function(){},gettickscoords:function(t){if(this.onband&&!t){for(var e=this.getbands(),i=[],n=0;no;o++)e.push([a*o/i+n,a*(o+1)/i+n]);return e},getbandwidth:function(){var t=this[j],e=this.scale.getextent(),i=e[1]-e[0]+(this.onband?1:0);0===i&&(i=1);var n=math.abs(t[1]-t[0]);return math.abs(n)/i}},o}),e(w,[],function(){var t=typeof float32array===h?array:float32array,e={create:function(){var i=new t(6);return e.identity(i),i},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],a=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t},translate:function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},rotate:function(t,e,i){var n=e[0],r=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=math.sin(i),c=math.cos(i);return t[0]=n*c+o*u,t[1]=-n*u+o*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*a+u*l,t[5]=c*l-u*a,t},scale:function(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t},invert:function(t,e){var i=e[0],n=e[2],r=e[4],a=e[1],o=e[3],s=e[5],l=i*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*r)*l,t[5]=(a*r-i*s)*l,t):null}};return e}),e("echarts/helper",[we,"./chart/helper/createlistfromarray","./util/symbol","./coord/axishelper","./coord/axismodelcommonmixin","./model/model",be,"./data/helper/completedimensions"],function(t){var e=t("./chart/helper/createlistfromarray"),i=t("./util/symbol"),n=t("./coord/axishelper"),r=t("./coord/axismodelcommonmixin"),a=t("./model/model"),o=t(be);return{createlist:function(t){var i=t.get("data");return e(i,t,t[j])},completedimensions:t("./data/helper/completedimensions"),createsymbol:i.createsymbol,createscale:function(t,e){var i=e;e instanceof a||(i=new a(e),o.mixin(i,r));var s=n.createscalebymodel(i);return s.setextent(t[0],t[1]),n.nicescaleextent(s,i),s},mixinaxismodelcommonmethods:function(t){o.mixin(t,r)}}}),e("zrender/vml/painter",[we,"../core/log","./core"],function(t){function e(t){return parseint(t,10)}function i(t,e){o.initvml(),this.root=t,this.storage=e;var i=document[c]("div"),n=document[c]("div");i.style.csstext="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.csstext="position:absolute;left:0;top:0;",t.appendchild(i),this._vmlroot=n,this._vmlviewport=i,this.resize();var r=e.delfromstorage,a=e.addtostorage;e.delfromstorage=function(t){r.call(e,t),t&&t.onremove&&t.onremove(n)},e.addtostorage=function(t){t.onadd&&t.onadd(n),a.call(e,t)},this._firstpaint=!0}function r(t){return function(){a('in ie8.0 vml mode painter not support method "'+t+'"')}}var a=t("../core/log"),o=t("./core");i[te]={constructor:i,getviewportroot:function(){return this._vmlviewport},refresh:function(){var t=this.storage.getdisplaylist(!0,!0);this._paintlist(t)},_paintlist:function(t){for(var e=this._vmlroot,i=0;i=e[0]&&t<=e[1]},n.normalize=function(t){var e=this[j];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},n.scale=function(t){var e=this[j];return t*(e[1]-e[0])+e[0]},n.unionextent=function(t){var e=this[j];t[0]e[1]&&(e[1]=t[1])},n.unionextentfromdata=function(t,e){this.unionextent(t.getdataextent(e,!0))},n.getextent=function(){return this[j].slice()},n.setextent=function(t,e){var i=this[j];isnan(t)||(i[0]=t),isnan(e)||(i[1]=e)},n.gettickslabels=function(){for(var t=[],e=this.getticks(),i=0;i=0?parsefloat(t)/100*e:parsefloat(t):t},w=function(t,e,i){var n=r.parse(e);i=+i,isnan(i)&&(i=1),n&&(t.color=f(n[0],n[1],n[2]),t[ee]=i*n[3])},x=function(t){var e=r.parse(t);return[f(e[0],e[1],e[2]),e[3]]},j=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof y){var r,o=0,s=[0,0],l=0,u=1,c=i[fe](),h=c.width,f=c[he];if("linear"===n.type){r="gradient";var d=i[a],m=[n.x*h,n.y*f],v=[n.x2*h,n.y2*f];d&&(z(m,m,d),z(v,v,d));var g=v[0]-m[0],_=v[1]-m[1];o=180*math.atan2(g,_)/math.pi,0>o&&(o+=360),1e-6>o&&(o=0)}else{r="gradientradial";var m=[n.x*h,n.y*f],d=i[a],x=i.scale,b=h,w=f;s=[(m[0]-c.x)/b,(m[1]-c.y)/w],d&&z(m,m,d),b/=x[0]*d,w/=x[1]*d;var t=a(b,w);l=0/t,u=2*n.r/t-l}var m=n[e].slice();m.sort(function(t,e){return t[p]-e[p]});for(var s=m[k],p=[],c=[],k=0;s>k;k++){var i=m[k],l=x(i.color);c.push(i[p]*u+l+" "+l[0]),(0===k||k===s-1)&&p.push(l)}if(s>=2){var o=p[0][0],r=p[1][0],b=p[0][1]*e[ee],n=p[1][1]*e[ee];t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=o,t.color2=r,t.colors=c.join(","),t[ee]=n,t.opacity2=b}"radial"===r&&(t.focusposition=s.join(","))}else w(t,n,e[ee])},y=function(t,e){null!=e.linedash&&(t.dashstyle=e.linedash.join(" ")),null==e[l]||e[l]instanceof y||w(t,e[l],e[ee])},$=function(t,e,i,n){var r="fill"==e,a=t.getelementsbytagname(e)[0];null!=i[e]&&"none"!==i[e]&&(r||!r&&i.linewidth)?(t[r?"filled":"stroked"]="true",i[e]instanceof y&&g(t,a),a||(a=x.createnode(e)),r?j(a,i,n):y(a,i),h(t,a)):(t[r?"filled":"stroked"]="false",g(t,a))},j=[[],[],[]],q=function(t,e){var i,r,a,o,s,l,u=n.m,c=n.c,h=n.l,f=n.a,d=n.q,p=[];for(o=0;o.01?v&&(h+=270/d):math.abs(g-r)<1e-4?v&&o>h||!v&&h>o?y-=270/d:y+=270/d:v&&r>g||!v&&g>r?g+=270/d:g-=270/d),p.push(q,b(((o-e)*s+t)*d-l),k,b(((r-b)*a+m)*d-l),k,b(((o+e)*s+t)*d-l),k,b(((r+b)*a+m)*d-l),k,b((h*s+t)*d-l),k,b((g*a+m)*d-l),k,b((g*s+t)*d-l),k,b((y*a+m)*d-l)),s=g,l=y;break;case n.r:var u=j[0],z=j[1];u[0]=t[o++],u[1]=t[o++],z[0]=u[0]+t[o++],z[1]=u[1]+t[o++],e&&(z(u,u,e),z(z,z,e)),u[0]=b(u[0]*d-l),z[0]=b(z[0]*d-l),u[1]=b(u[1]*d-l),z[1]=b(z[1]*d-l),p.push(" m ",u[0],k,u[1]," l ",z[0],k,u[1]," l ",z[0],k,z[1]," l ",u[0],k,z[1]);break;case n.z:p.push(" x ")}if(i>0){p.push(r);for(var w=0;i>w;w++){var x=j[w];e&&z(x,x,e),p.push(b(x[0]*d-l),k,b(x[1]*d-l),i-1>w?k:"")}}}return p.join("")};v[te].brushvml=function(t){var e=this.style,i=this._vmlel;i||(i=x.createnode("shape"),b(i),this._vmlel=i),$(i,"fill",e,this),$(i,l,e,this);var n=this[a],r=null!=n,o=i.getelementsbytagname(l)[0];if(o){var s=e.linewidth;if(r&&!e.strokenoscale){var u=n[0]*n[3]-n[1]*n[2];s*=w(s(u))}o.weight=s+"px"}var c=this.path||(this.path=new g);this.__dirtypath&&(c.beginpath(),this.buildpath(c,this.shape),c.tostatic(),this.__dirtypath=!1),i.path=q(c.data,this[a]),i.style.zindex=u(this[m],this.z,this.z2),h(t,i),null!=e.text?this.drawrecttext(t,this[fe]()):this.removerecttext(t)},v[te].onremove=function(t){g(t,this._vmlel),this.removerecttext(t)},v[te].onadd=function(t){h(t,this._vmlel),this.appendrecttext(t)};var ie=function(t){return"object"==typeof t&&t.tagname&&"img"===t.tagname.touppercase()};d[te].brushvml=function(t){var e,i,n=this.style,r=n.image;if(ie(r)){var o=r.src;if(o===this._imagesrc)e=this._imagewidth,i=this._imageheight;else{var s=r.runtimestyle,l=s.width,u=s[he];s.width="auto",s[he]="auto",e=r.width,i=r[he],s.width=l,s[he]=u,this._imagesrc=o,this._imagewidth=e,this._imageheight=i}r=o}else r===this._imagesrc&&(e=this._imagewidth,i=this._imageheight);if(r){var h=n.x||0,f=n.y||0,d=n.width,p=n[he],m=n.swidth,v=n.sheight,g=n.sx||0,y=n.sy||0,t=m&&v,s=this._vmlel;s||(s=x.doc[c]("div"),b(s),this._vmlel=s);var p,c=s.style,d=!1,l=1,o=1;if(this[a]&&(p=this[a],l=w(p[0]*p[0]+p[1]*p[1]),o=w(p[2]*p[2]+p[3]*p[3]),d=p[1]||p[2]),d){var r=[h,f],e=[h+d,f],n=[h,f+p],f=[h+d,f+p];z(r,r,p),z(e,e,p),z(n,n,p),z(f,f,p);var v=a(r[0],e[0],n[0],f[0]),g=a(r[1],e[1],n[1],f[1]),q=[];q.push("m11=",p[0]/l,k,"m12=",p[2]/o,k,"m21=",p[1]/l,k,"m22=",p[3]/o,k,"dx=",b(h*l+p[4]),k,"dy=",b(f*o+p[5])),c.padding="0 "+b(v)+"px "+b(g)+"px 0",c[_]=i+".matrix("+q.join("")+", sizingmethod=clip)"}else p&&(h=h*l+p[4],f=f*o+p[5]),c[_]="",c.left=b(h)+"px",c.top=b(f)+"px";var z=this._imageel,w=this._cropel;z||(z=x.doc[c]("div"),this._imageel=z);var x=z.style;if(t){if(e&&i)x.width=b(l*e*d/m)+"px",x[he]=b(o*i*p/v)+"px"; else{var j=new image,y=this;j.onload=function(){j.onload=null,e=j.width,i=j[he],x.width=b(l*e*d/m)+"px",x[he]=b(o*i*p/v)+"px",y._imagewidth=e,y._imageheight=i,y._imagesrc=r},j.src=r}w||(w=x.doc[c]("div"),w.style.overflow="hidden",this._cropel=w);var $=w.style;$.width=b((d+g*d/m)*l),$[he]=b((p+y*p/v)*o),$[_]=i+".matrix(dx="+-g*d/m*l+",dy="+-y*p/v*o+")",w.parentnode||s.appendchild(w),z.parentnode!=w&&w.appendchild(z)}else x.width=b(l*d)+"px",x[he]=b(o*p)+"px",s.appendchild(z),w&&w.parentnode&&(s.removechild(w),this._cropel=null);var k="",j=n[ee];1>j&&(k+=".alpha(opacity="+b(100*j)+") "),k+=i+".alphaimageloader(src="+r+", sizingmethod=scale)",x[_]=k,s.style.zindex=u(this[m],this.z,this.z2),h(t,s),null!=n.text&&this.drawrecttext(t,this[fe]())}},d[te].onremove=function(t){g(t,this._vmlel),this._vmlel=null,this._cropel=null,this._imageel=null,this.removerecttext(t)},d[te].onadd=function(t){h(t,this._vmlel),this.appendrecttext(t)};var ne,se=f,le={},ue=0,ce=100,de=document[c]("div"),pe=function(t){var e=le[t];if(!e){ue>ce&&(ue=0,le={});var i,n=de.style;try{n.font=t,i=n.fontfamily.split(",")[0]}catch(r){}e={style:n.fontstyle||se,variant:n.fontvariant||se,weight:n.fontweight||se,size:0|parsefloat(n.fontsize||12),family:i||"microsoft yahei"},le[t]=e,ue++}return e};o.measuretext=function(t,e){var i=x.doc;ne||(ne=i[c]("div"),ne.style.csstext="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",x.doc.body.appendchild(ne));try{ne.style.font=e}catch(n){}return ne.innerhtml="",ne.appendchild(i.createtextnode(t)),{width:ne.offsetwidth}};for(var ve=new i,ge=function(t,e,i,n){var r=this.style,s=r.text;if(null!=s&&(s+=""),s){var c,h,f=r[me],d=pe(r.textfont),m=d.style+" "+d.variant+" "+d.weight+" "+d.size+'px "'+d.family+'"',v=r.textbaseline,g=r.textverticalalign;i=i||o[fe](s,m,f,v);var y=this[a];if(y&&!n&&(ve.copy(e),ve[u](y),e=ve),n)c=e.x,h=e.y;else{var _=r.textposition,w=r.textdistance;if(_ instanceof array)c=e.x+z(_[0],e.width),h=e.y+z(_[1],e[he]),f=f||"left",v=v||"top";else{var t=o.adjusttextpositiononrect(_,e,i,w);c=t.x,h=t.y,f=f||t[me],v=v||t.textbaseline}}if(g){switch(g){case oe:h-=i[he]/2;break;case re:h-=i[he]}v="top"}var s=d.size;switch(v){case"hanging":case"top":h+=s/1.75;break;case oe:break;default:h-=s/2.25}switch(f){case"left":break;case ae:c-=i.width/2;break;case"right":c-=i.width}var p,c,a,i=x.createnode,d=this._textvmlel;d?(a=d.firstchild,p=a.nextsibling,c=p.nextsibling):(d=i("line"),p=i("path"),c=i("textpath"),a=i("skew"),c.style["v-text-align"]="left",b(d),p.textpathok=!0,c.on=!0,d.from="0 0",d.to="1000 0.05",h(d,a),h(d,p),h(d,c),this._textvmlel=d);var l=[c,h],o=d.style;y&&n?(z(l,l,y),a.on=!0,a.matrix=y[0].tofixed(3)+k+y[2].tofixed(3)+k+y[1].tofixed(3)+k+y[3].tofixed(3)+",0,0",a[p]=(b(l[0])||0)+","+(b(l[1])||0),a.origin="0 0",o.left="0px",o.top="0px"):(a.on=!1,o.left=b(c)+"px",o.top=b(h)+"px"),c[q]=n(s);try{c.style.font=m}catch(r){}$(d,"fill",{fill:n?r.fill:r.textfill,opacity:r[ee]},this),$(d,l,{stroke:n?r[l]:r.textstroke,opacity:r[ee],linedash:r.linedash},this),d.style.zindex=u(this[m],this.z,this.z2),h(t,d)}},ye=function(t){g(t,this._textvmlel),this._textvmlel=null},_e=function(t){h(t,this._textvmlel)},xe=[s,h,d,v,m],be=0;be=d&&((o>d||f>=0&&0>s)&&(o=d,s=f,r=l,a[k]=0),y(u,function(t){a.push({seriesindex:e[p],dataindexinside:t,dataindex:e[n]().getrawindex(t)})}))}}),{payloadbatch:a,snaptovalue:r}}function r(t,e,i,n){t[e.key]={value:i,payloadbatch:n}}function a(t,e,i,n){var r=i.payloadbatch,a=e.axis,o=a.model,s=e.axispointermodel;if(e.triggertooltip&&r[k]){var l=e.coordsys.model,u=v.makekey(l),c=t.map[u];c||(c=t.map[u]={coordsysid:l.id,coordsysindex:l.componentindex,coordsystype:l.type,coordsysmaintype:l[r],databyaxis:[]},t.list.push(c)),c.databyaxis.push({axisdim:a.dim,axisindex:o.componentindex,axistype:o.type,axisid:o.id,value:n,valuelabelopt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesdataindices:r.slice()})}}function o(t,e,i){t.push.apply(t,i)}function s(t,e){y(e,function(e,i){var n=e.axispointermodel[m],r=t[i];r?(!e.usehandle&&(n.status="show"),n.value=r.value,n.seriesdataindices=(r.payloadbatch||[]).slice()):!e.usehandle&&(n.status="hide")})}function l(t,e,i,n){if(f(e)||!t.list[k])return void n({type:"hidetip"});var r=((t.list[0].databyaxis[0]||{}).seriesdataindices||[])[0]||{};n({type:"showtip",escapeconnect:!0,x:e[0],y:e[1],tooltipoption:i,dataindexinside:r.dataindexinside,dataindex:r[b],seriesindex:r[p],databycoordsys:t.list})}function u(t,e,i,n){var r=i.getzr();n="lasthighlights"+(n||"");var a=x(r)[n]||{},o=x(r)[n]={};d.each(t,function(t){var e=t[p]+" | "+t[b];o[e]=t});var s=[],l=[];d.each(a,function(t,e){!o[e]&&l.push(t)}),d.each(o,function(t,e){!a[e]&&s.push(t)}),l[k]&&i[i]({type:"downplay",escapeconnect:!0,batch:l}),s[k]&&i[i]({type:"highlight",escapeconnect:!0,batch:s})}function c(t,e){var i=1;return y(t,function(t,e){i&=!/^.+(axisid|axisname|axisindex)$/.test(e)}),!i&&y([["axisid","id"],["axisindex","componentindex"],["axisname","name"]],function(n){var r=p.normalizetoarray(t[e.dim+n[0]]);i|=d[f](r,e.model[n[1]])>=0}),!i}function h(t){var e=t.axis.model,i={},n=i.axisdim=t.axis.dim;return i.axisindex=i[n+"axisindex"]=e.componentindex,i.axisname=i[n+"axisname"]=e.name,i.axisid=i[n+"axisid"]=e.id,i}function f(t){return null==t[0]||isnan(t[0])||null==t[1]||isnan(t[1])}var d=t(be),p=t("../../util/model"),v=t("./modelhelper"),g=t("./findpointfromseries"),y=d.each,_=d.curry,x=p.makegetter();return e}),e("echarts/component/axispointer/axispointermodel",[we,"../../echarts"],function(t){var e=t("../../echarts"),i=e.extendcomponentmodel({type:"axispointer",coordsysaxesinfo:null,defaultoption:{show:"auto",triggeron:null,zlevel:0,z:50,type:"line",snap:!1,triggertooltip:!0,value:null,status:null,link:[],animation:null,animationdurationupdate:200,linestyle:{color:"#aaa",width:1,type:"solid"},shadowstyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,textstyle:{color:"#fff"},padding:[5,7,5,7],backgroundcolor:"auto",bordercolor:null,borderwidth:0,shadowblur:3,shadowcolor:"#aaa"},handle:{show:!1,icon:"m10.7,11.9v-1.3h9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4c19.5,16.3,15.6,12.2,10.7,11.9z m13.3,24.4h6.7v-1.2h6.6z m13.3,22h6.7v-1.2h6.6z m13.3,19.6h6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowblur:3,shadowcolor:"#aaa",shadowoffsetx:0,shadowoffsety:2,throttle:40}}});return i}),e("echarts/component/axispointer/axispointerview",[we,"./globallistener","../../echarts"],function(t){var e=t("./globallistener"),i=t("../../echarts")[ye]({type:"axispointer",render:function(t,i,n){var r=i.getcomponent("tooltip"),a=t.get("triggeron")||r&&r.get("triggeron")||"mousemove|click";e.register("axispointer",n,function(t,e,i){"none"!==a&&("leave"===t||a[f](t)>=0)&&i({type:"updateaxispointer",currtrigger:t,x:e&&e.offsetx,y:e&&e.offsety})})},remove:function(t,n){e.disopse(n.getzr(),"axispointer"),i.superapply(this._model,d,arguments)},dispose:function(t,n){e.unregister("axispointer",n),i.superapply(this._model,a,arguments)}})}),e("echarts/component/axispointer/cartesianaxispointer",[we,"../../util/graphic","./baseaxispointer","./viewhelper","../axis/cartesianaxishelper","../axis/axisview"],function(t){function e(t,e){var i={};return i[e.dim+"axisindex"]=e.index,t.getcartesian(i)}function i(t){return"x"===t.dim?0:1}var n=t("../../util/graphic"),r=t("./baseaxispointer"),a=t("./viewhelper"),s=t("../axis/cartesianaxishelper"),l=t("../axis/axisview"),u=r[q]({makeeloption:function(t,i,n,r,o){var l=n.axis,u=l.grid,h=r.get("type"),f=e(u,l).getotheraxis(l).getglobalextent(),d=l.toglobalcoord(l.datatocoord(i,!0));if(h&&"none"!==h){var p=a.buildelstyle(r),m=c[h](l,d,f,p);m.style=p,t.graphickey=m.type,t.pointer=m}var v=s.layout(u.model,n);a.buildcartesiansinglelabeleloption(i,t,v,n,r,o)},gethandletransform:function(t,e,i){var n=s.layout(e.axis.grid.model,e,{labelinside:!1});return n.labelmargin=i.get("handle.margin"),{position:a.gettransformedposition(e.axis,t,n),rotation:n[o]+(n.labeldirection<0?math.pi:0)}},updatehandletransform:function(t,i,n){var r=n.axis,a=r.grid,s=r.getglobalextent(!0),l=e(a,r).getotheraxis(r).getglobalextent(),u="x"===r.dim?0:1,c=t[ne];c[u]+=i[u],c[u]=math.min(s[1],c[u]),c[u]=math.max(s[0],c[u]);var h=(l[1]+l[0])/2,f=[h,h];f[u]=c[u];var d=[{verticalalign:"middle"},{align:"center"}];return{position:c,rotation:t[o],cursorpoint:f,tooltipoption:d[u]}}}),c={line:function(t,e,r,o){var s=a.makelineshape([e,r[0]],[e,r[1]],i(t));return n.subpixeloptimizeline({shape:s,style:o}),{type:"line",shape:s}},shadow:function(t,e,n){var r=t.getbandwidth(),o=n[1]-n[0];return{type:"rect",shape:a.makerectshape([e-r/2,n[0]],[r,o],i(t))}}};return l.registeraxispointerclass("cartesianaxispointer",u),u}),e("echarts/component/axispointer/modelhelper",[we,be,"../../model/model"],function(t){function e(t,e,n){var a=e.getcomponent("tooltip"),s=e.getcomponent("axispointer"),l=s.get("link",!0)||[],h=[];u(n.getcoordinatesystems(),function(n){function d(a,u,c){var d=c.model[ge]("axispointer",s),p=d.get("show");if(p&&("auto"!==p||a||o(d))){null==u&&(u=d.get("triggertooltip")),d=a?i(c,g,s,e,a,u):d;var v=d.get("snap"),y=f(c.model),_=u||v||"category"===c.type,x=t.axesinfo[y]={key:y,axis:c,coordsys:n,axispointermodel:d,triggertooltip:u,involveseries:_,snap:v,usehandle:o(d),seriesmodels:[]};m[y]=x,t.seriesinvolved|=_;var b=r(l,c);if(null!=b){var w=h[b]||(h[b]={axesinfo:{}});w.axesinfo[y]=x,w.mapper=l[b].mapper,x.linkgroup=w}}}if(n.axispointerenabled){var p=f(n.model),m=t.coordsysaxesinfo[p]={};t.coordsysmap[p]=n;var v=n.model,g=v[ge]("tooltip",a);if(u(n.getaxes(),c(d,!1,null)),n.gettooltipaxes&&a&&g.get("show")){var y="axis"===g.get(z),_="cross"===g.get("axispointer.type"),x=n.gettooltipaxes(g.get("axispointer.axis"));(y||_)&&u(x.baseaxes,c(d,_?"cross":!0,y)),_&&u(x.otheraxes,c(d,"cross",!1))}}})}function i(t,e,i,n,r,a){var o=e[ge]("axispointer"),c={};u(["type","snap","linestyle","shadowstyle","label",g,"animationdurationupdate","animationeasingupdate","z"],function(t){c[t]=s.clone(o.get(t))}),c.snap="category"!==t.type&&!!a,"cross"===o.get("type")&&(c.type="line");var h=c.label||(c.label={});if(null==h.show&&(h.show=!1),"cross"===r&&(h.show=!0,!a)){var f=c.linestyle=o.get("crossstyle");f&&s[k](h[ve]||(h[ve]={}),f[ve])}return t.model[ge]("axispointer",new l(c,i,n))}function n(t,e){e.eachseries(function(e){var i=e[_e],n=e.get("tooltip.trigger",!0);i&&"none"!==n&&n!==!1&&"item"!==n&&e.get("axispointer.show",!0)!==!1&&u(t.coordsysaxesinfo[f(i.model)],function(t){var n=t.axis;i.getaxis(n.dim)===n&&(t.seriesmodels.push(e),null==t.seriesdatacount&&(t.seriesdatacount=0),t.seriesdatacount+=e[n]().count())})},this)}function r(t,e){for(var i=e.model,n=e.dim,r=0;r=0||t===e}function o(t){return!!t.get("handle.show")}var s=t(be),l=t("../../model/model"),u=s.each,c=s.curry,h={};h.collect=function(t,i){var r={axesinfo:{},seriesinvolved:!1,coordsysaxesinfo:{},coordsysmap:{}};return e(r,t,i),r.seriesinvolved&&n(r,t),r},h.fixvalue=function(t){var e=h.getaxisinfo(t);if(e){var i=e.axispointermodel,n=e.axis.scale,r=i[m],a=i.get("status"),s=i.get("value");null!=s&&(s=n.parse(s));var l=o(i);null==a&&(r.status=l?"show":"hide");var u=n.getextent().slice();u[0]>u[1]&&u.reverse(),(null==s||s>u[1])&&(s=u[1]),s"),a&&(s+=l(a),null!=i&&(s+=" : ")),null!=i&&(s+=l(r)),s},getdata:function(){return this._data},setdata:function(t){this._data=t}});return n.mixin(u,i.dataformatmixin),u}),e("zrender/contain/text",[we,i,"../core/boundingrect"],function(t){function e(t,e){var i=t+":"+e;if(s[i])return s[i];for(var n=(t+"").split("\n"),r=0,a=0,o=n[k];o>a;a++)r=math.max(d.measuretext(n[a],e).width,r);return l>u&&(l=0,s={}),l++,s[i]=r,r}function n(t,i,n,r){var a=((t||"")+"").split("\n")[k],o=e(t,i),s=e("国",i),l=a*s,u=new h(0,0,o,l);switch(u.lineheight=s,r){case re:case"alphabetic":u.y-=s;break;case oe:u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case ae:u.x-=u.width/2}return u}function r(t,e,i,n){var r=e.x,a=e.y,o=e[he],s=e.width,l=i[he],u=i.lineheight,c=o/2-l/2+u,h="left";switch(t){case"left":r-=n,a+=c,h="right";break;case"right":r+=n+s,a+=c,h="left";break;case"top":r+=s/2,a-=n+l-u,h=ae;break;case re:r+=s/2,a+=o+n+u,h=ae;break;case"inside":r+=s/2,a+=c,h=ae;break;case"insideleft":r+=n,a+=c,h="left";break;case"insideright":r+=s-n,a+=c,h="right";break;case"insidetop":r+=s/2,a+=n+u,h=ae;break;case"insidebottom":r+=s/2,a+=o-l-n+u,h=ae;break;case"insidetopleft":r+=n,a+=n+u,h="left";break;case"insidetopright":r+=s-n,a+=n+u,h="right";break;case"insidebottomleft":r+=n,a+=o-l-n+u;break;case"insidebottomright":r+=s-n,a+=o-l-n+u,h="right"}return{x:r,y:a,textalign:h,textbaseline:"alphabetic"}}function a(t,i,n,r,a){if(!i)return"";a=a||{},r=f(r,"...");for(var s=f(a.maxiterations,2),l=f(a.minchar,0),u=e("国",n),c=e("a",n),h=f(a.placeholder,""),d=i=math.max(0,i-1),p=0;l>p&&d>=c;p++)d-=c;var m=e(r);m>d&&(r="",m=0),d=i-m;for(var v=(t+"").split("\n"),p=0,g=v[k];g>p;p++){var y=v[p],_=e(y,n);if(!(i>=_)){for(var x=0;;x++){if(d>=_||x>=s){y+=r;break}var b=0===x?o(y,d,c,u):_>0?math.floor(y[k]*d/_):0;y=y.substr(0,b),_=e(y,n)}""===y&&(y=h),v[p]=y}}return v.join("\n")}function o(t,e,i,n){for(var r=0,a=0,o=t[k];o>a&&e>r;a++){var s=t.charcodeat(a);r+=s>=0&&127>=s?i:n}return a}var s={},l=0,u=5e3,c=t(i),h=t("../core/boundingrect"),f=c.retrieve,d={getwidth:e,getboundingrect:n,adjusttextpositiononrect:r,truncatetext:a,measuretext:function(t,e){var i=c.getcontext();return i.font=e||"12px sans-serif",i.measuretext(t)}};return d}),e("echarts/model/mixin/colorpalette",[we,"../../util/clazz"],function(t){var e=t("../../util/clazz"),i=e.set,n=e.get;return{clearcolorpalette:function(){i(this,"coloridx",0),i(this,"colornamemap",{})},getcolorfrompalette:function(t,e){e=e||this;var r=n(e,"coloridx")||0,a=n(e,"colornamemap")||i(e,"colornamemap",{});if(a[t])return a[t];var o=this.get("color",!0)||[];if(o[k]){var s=o[r];return t&&(a[t]=s),i(e,"coloridx",(r+1)%o[k]),s}}}}),e("echarts/model/globaldefault",[],function(){var t="";return typeof navigator!==h&&(t=navigator.platform||""),{color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textstyle:{fontfamily:t.match(/^win/)?"microsoft yahei":"sans-serif",fontsize:12,fontstyle:"normal",fontweight:"normal"},blendmode:null,animation:"auto",animationduration:1e3,animationdurationupdate:300,animationeasing:"exponentialout",animationeasingupdate:"cubicout",animationthreshold:2e3,progressivethreshold:3e3,progressive:400,hoverlayerthreshold:3e3,useutc:!1}}),e("echarts/util/clazz",[we,be],function(t){function e(t){r.assert(/^[a-za-z0-9_]+([.][a-za-z0-9_]+)?$/.test(t),'componenttype "'+t+'" illegal')}function i(t,e){var i=r.slice(arguments,2);return this.superclass[te][e].apply(t,i)}function n(t,e,i){return this.superclass[te][e].apply(t,i)}var r=t(be),a={},o=".",s="___ec__component__container___",l="\x00ec_\x00";a.set=function(t,e,i){return t[l+e]=i},a.get=function(t,e){return t[l+e]},a.hasown=function(t,e){return t.hasownproperty(l+e)};var u=a.parseclasstype=function(t){var e={main:"",sub:""};return t&&(t=t.split(o),e.main=t[0]||"",e.sub=t[1]||""),e};return a.enableclassextend=function(t,e){t.$constructor=t,t[q]=function(t){var e=this,a=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return r[q](a[te],t),a[q]=this[q],a.supercall=i,a.superapply=n,r[y](a,this),a.superclass=e,a}},a.enableclassmanagement=function(t,i){function n(t){var e=a[t.main];return e&&e[s]||(e=a[t.main]={},e[s]=!0),e}i=i||{};var a={};if(t.registerclass=function(t,i){if(i)if(e(i),i=u(i),i.sub){if(i.sub!==s){var r=n(i);r[i.sub]=t}}else a[i.main]=t;return t},t.getclass=function(t,e,i){var n=a[t];if(n&&n[s]&&(n=e?n[e]:null),i&&!n)throw new error(e?"component "+t+"."+(e||"")+" not exists. load it first.":t+".type should be specified.");return n},t.getclassesbymaintype=function(t){t=u(t);var e=[],i=a[t.main];return i&&i[s]?r.each(i,function(t,i){i!==s&&e.push(t)}):e.push(i),e},t.hasclass=function(t){return t=u(t),!!a[t.main]},t.getallclassmaintypes=function(){var t=[];return r.each(a,function(e,i){t.push(i)}),t},t.hassubtypes=function(t){t=u(t);var e=a[t.main];return e&&e[s]},t.parseclasstype=u,i.registerwhenextend){var o=t[q];o&&(t[q]=function(e){var i=o.call(this,e);return t.registerclass(i,e.type)})}return t},a.setreadonly=function(){},a}),e("zrender/core/boundingrect",[we,"./vector","./matrix"],function(t){function e(t,e,i,n){0>i&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this[he]=n}var i=t("./vector"),n=t("./matrix"),r=i[u],a=math.min,o=math.max;return e[te]={constructor:e,union:function(t){var e=a(t.x,this.x),i=a(t.y,this.y);this.width=o(t.x+t.width,this.x+this.width)-e,this[he]=o(t.y+t[he],this.y+this[he])-i,this.x=e,this.y=i},applytransform:function(){var t=[],e=[],i=[],n=[];return function(s){if(s){t[0]=i[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=i[1]=this.y+this[he],r(t,t,s),r(e,e,s),r(i,i,s),r(n,n,s),this.x=a(t[0],e[0],i[0],n[0]),this.y=a(t[1],e[1],i[1],n[1]);var l=o(t[0],e[0],i[0],n[0]),u=o(t[1],e[1],i[1],n[1]);this.width=l-this.x,this[he]=u-this.y}}}(),calculatetransform:function(t){var e=this,i=t.width/e.width,r=t[he]/e[he],a=n[y]();return n.translate(a,a,[-e.x,-e.y]),n.scale(a,a,[i,r]),n.translate(a,a,[t.x,t.y]),a},intersect:function(t){if(!t)return!1;t instanceof e||(t=e[y](t));var i=this,n=i.x,r=i.x+i.width,a=i.y,o=i.y+i[he],s=t.x,l=t.x+t.width,u=t.y,c=t.y+t[he];return!(s>r||n>l||u>o||a>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i[he]},clone:function(){return new e(this.x,this.y,this.width,this[he])},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this[he]=t[he]},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this[he]}}},e[y]=function(t){return new e(t.x,t.y,t.width,t[he])},e}),e("zrender/core/pathproxy",[we,"./curve","./vector","./bbox","./boundingrect","../config"],function(t){var e=t("./curve"),i=t("./vector"),n=t("./bbox"),a=t("./boundingrect"),o=t("../config").devicepixelratio,s={m:1,l:2,c:3,q:4,a:5,z:6,r:7},u=[],c=[],f=[],d=[],p=math.min,m=math.max,v=math.cos,g=math.sin,y=math.sqrt,_=math.abs,x=typeof float32array!=h,b=function(t){this._savedata=!t,this._savedata&&(this.data=[]),this._ctx=null};return b[te]={constructor:b,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_linedash:null,_dashoffset:0,_dashidx:0,_dashsum:0,setscale:function(t,e){this._ux=_(1/o/t)||0,this._uy=_(1/o/e)||0},getcontext:function(){return this._ctx},beginpath:function(t){return this._ctx=t,t&&t.beginpath(),t&&(this.dpr=t.dpr),this._savedata&&(this._len=0),this._linedash&&(this._linedash=null,this._dashoffset=0),this},moveto:function(t,e){return this.adddata(s.m,t,e),this._ctx&&this._ctx[r](t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineto:function(t,e){var i=_(t-this._xi)>this._ux||_(e-this._yi)>this._uy||this._len<5;return this.adddata(s.l,t,e),this._ctx&&i&&(this._needsdash()?this._dashedlineto(t,e):this._ctx.lineto(t,e)),i&&(this._xi=t,this._yi=e),this},beziercurveto:function(t,e,i,n,r,a){return this.adddata(s.c,t,e,i,n,r,a),this._ctx&&(this._needsdash()?this._dashedbezierto(t,e,i,n,r,a):this._ctx.beziercurveto(t,e,i,n,r,a)),this._xi=r,this._yi=a,this},quadraticcurveto:function(t,e,i,n){return this.adddata(s.q,t,e,i,n),this._ctx&&(this._needsdash()?this._dashedquadraticto(t,e,i,n):this._ctx.quadraticcurveto(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,r,a){return this.adddata(s.a,t,e,i,i,n,r-n,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,a),this._xi=v(r)*i+t,this._yi=g(r)*i+t,this},arcto:function(t,e,i,n,r){return this._ctx&&this._ctx.arcto(t,e,i,n,r),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.adddata(s.r,t,e,i,n),this},closepath:function(){this.adddata(s.z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsdash()&&this._dashedlineto(e,i),t.closepath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.tostatic()},stroke:function(t){t&&t[l](),this.tostatic()},setlinedash:function(t){if(t instanceof array){this._linedash=t,this._dashidx=0;for(var e=0,i=0;ii;i++)this.data[i]=t[i];this._len=e},appendpath:function(t){t instanceof array||(t=[t]);for(var e=t[k],i=0,n=this._len,r=0;e>r;r++)i+=t[r].len();x&&this.data instanceof float32array&&(this.data=new float32array(n+i));for(var r=0;e>r;r++)for(var a=t[r].data,o=0;oe[k]&&(this._expanddata(),e=this.data);for(var i=0;io&&(o=a+o),o%=a,v-=o*h,g-=o*f;h>0&&t>=v||0>h&&v>=t||0==h&&(f>0&&e>=g||0>f&&g>=e);)n=this._dashidx,i=s[n],v+=h*i,g+=f*i,this._dashidx=(n+1)%_,h>0&&u>v||0>h&&v>u||f>0&&c>g||0>f&&g>c||l[n%2?r:"lineto"](h>=0?p(v,t):m(v,t),f>=0?p(g,e):m(g,e));h=v-t,f=g-e,this._dashoffset=-y(h*h+f*f)},_dashedbezierto:function(t,i,n,a,o,s){var l,u,c,h,f,d=this._dashsum,p=this._dashoffset,m=this._linedash,v=this._ctx,g=this._xi,_=this._yi,x=e.cubicat,b=0,w=this._dashidx,t=m[k],m=0;for(0>p&&(p=d+p),p%=d,l=0;1>l;l+=.1)u=x(g,t,n,o,l+.1)-x(g,t,n,o,l),c=x(_,i,a,s,l+.1)-x(_,i,a,s,l),b+=y(u*u+c*c);for(;t>w&&(m+=m[w],!(m>p));w++);for(l=(m-p)/b;1>=l;)h=x(g,t,n,o,l),f=x(_,i,a,s,l),w%2?v[r](h,f):v.lineto(h,f),l+=m[w]/b,w=(w+1)%t;w%2!==0&&v.lineto(o,s),u=o-h,c=s-f,this._dashoffset=-y(u*u+c*c)},_dashedquadraticto:function(t,e,i,n){var r=i,a=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedbezierto(t,e,i,n,r,a)},tostatic:function(){var t=this.data;t instanceof array&&(t[k]=this._len,x&&(this.data=new float32array(t)))},getboundingrect:function(){u[0]=u[1]=f[0]=f[1]=number.max_value,c[0]=c[1]=d[0]=d[1]=-number.max_value;for(var t=this.data,e=0,r=0,o=0,l=0,h=0;hd;){var p=u[d++];switch(1==d&&(n=u[d],a=u[d+1],e=n,i=a),p){case s.m:e=n=u[d++],i=a=u[d++],t[r](n,a);break;case s.l:o=u[d++],l=u[d++],(_(o-n)>c||_(l-a)>h||d===f-1)&&(t.lineto(o,l),n=o,a=l);break;case s.c:t.beziercurveto(u[d++],u[d++],u[d++],u[d++],u[d++],u[d++]),n=u[d-2],a=u[d-1];break;case s.q:t.quadraticcurveto(u[d++],u[d++],u[d++],u[d++]),n=u[d-2],a=u[d-1];break;case s.a:var m=u[d++],y=u[d++],x=u[d++],b=u[d++],w=u[d++],t=u[d++],m=u[d++],s=u[d++],p=x>b?x:b,c=x>b?1:x/b,a=x>b?b/x:1,z=math.abs(x-b)>.001,k=w+t;z?(t.translate(m,y),t.rotate(m),t.scale(c,a),t.arc(0,0,p,w,k,1-s),t.scale(1/c,1/a),t.rotate(-m),t.translate(-m,-y)):t.arc(m,y,p,w,k,1-s),1==d&&(e=v(w)*x+m,i=g(w)*b+y),n=v(k)*x+m,a=g(k)*b+y;break;case s.r:e=n=u[d],i=a=u[d+1],t.rect(u[d++],u[d++],u[d++],u[d++]);break;case s.z:t.closepath(),n=e,a=i}}}},b.cmd=s,b}),e("zrender/graphic/mixin/recttext",[we,"../../contain/text","../../core/boundingrect"],function(t){function e(t,e){return typeof t===q?t.lastindexof("%")>=0?parsefloat(t)/100*e:parsefloat(t):t}var i=t("../../contain/text"),n=t("../../core/boundingrect"),r=new n,o=function(){};return o[te]={constructor:o,drawrecttext:function(t,n,o){var s=this.style,l=s.text;if(null!=l&&(l+=""),l){t.save();var c,h,f=s.textposition,d=s.textoffset,p=s.textdistance,m=s[me],v=s.textfont||s.font,g=s.textbaseline,y=s.textverticalalign;o=o||i[fe](l,v,m,g);var _=this[a];if(s.texttransform?this.settransform(t):_&&(r.copy(n),r[u](_),n=r),f instanceof array){if(c=n.x+e(f[0],n.width),h=n.y+e(f[1],n[he]),m=m||"left",g=g||"top",y){switch(y){case oe:h-=o[he]/2-o.lineheight/2;break;case re:h-=o[he]-o.lineheight/2;break;default:h+=o.lineheight/2}g=oe}}else{var x=i.adjusttextpositiononrect(f,n,o,p);c=x.x,h=x.y,m=m||x[me],g=g||x.textbaseline}d&&(c+=d[0],h+=d[1]),t[me]=m||"left",t.textbaseline=g||"alphabetic";var b=s.textfill,w=s.textstroke;b&&(t.fillstyle=b),w&&(t.strokestyle=w),t.font=v||"12px sans-serif",t.shadowblur=s.textshadowblur,t.shadowcolor=s.textshadowcolor||"transparent",t.shadowoffsetx=s.textshadowoffsetx,t.shadowoffsety=s.textshadowoffsety;var t=l.split("\n");s.textrotation&&(_&&t.translate(_[4],_[5]),t.rotate(s.textrotation),_&&t.translate(-_[4],-_[5]));for(var m=0;m')}}catch(l){n=function(t){return o[c]("<"+t+' xmlns="'+r+'" class="zrvml">')}}var u=function(){if(!s){s=!0;var t=o.stylesheets;t[k]<31?o.createstylesheet().addrule(".zrvml","behavior:url(#default#vml)"):t[0].addrule(".zrvml","behavior:url(#default#vml)")}};i.exports={doc:o,initvml:u,createnode:n}}}),e("zrender/graphic/path",[we,"./displayable",i,"../core/pathproxy","../contain/path","./pattern"],function(t){function e(t){r.call(this,t),this.path=null}var r=t("./displayable"),o=t(i),s=t("../core/pathproxy"),u=t("../contain/path"),c=t("./pattern"),h=c[te].getcanvaspattern,f=math.abs,d=new s(!0);return e[te]={constructor:e,type:"path",__dirtypath:!0,strokecontainthreshold:5,brush:function(t,e){var i=this.style,r=this.path||d,a=i.hasstroke(),o=i.hasfill(),s=i.fill,u=i[l],c=o&&!!s[e],f=a&&!!u[e],p=o&&!!s.image,m=a&&!!u.image;if(i.bind(t,this,e),this.settransform(t),this[n]){var v;c&&(v=v||this[fe](),this._fillgradient=i.getgradient(t,s,v)),f&&(v=v||this[fe](),this._strokegradient=i.getgradient(t,u,v))}c?t.fillstyle=this._fillgradient:p&&(t.fillstyle=h.call(s,t)),f?t.strokestyle=this._strokegradient:m&&(t.strokestyle=h.call(u,t));var g=i.linedash,y=i.linedashoffset,_=!!t.setlinedash,x=this.getglobalscale();r.setscale(x[0],x[1]),this.__dirtypath||g&&!_&&a?(r.beginpath(t),g&&!_&&(r.setlinedash(g),r.setlinedashoffset(y)),this.buildpath(r,this.shape,!1),this.path&&(this.__dirtypath=!1)):(t.beginpath(),this.path.rebuildpath(t)),o&&r.fill(t),g&&_&&(t.setlinedash(g),t.linedashoffset=y),a&&r[l](t),g&&_&&t.setlinedash([]),this.restoretransform(t),null!=i.text&&this.drawrecttext(t,this[fe]())},buildpath:function(){},createpathproxy:function(){this.path=new s},getboundingrect:function(){var t=this._rect,e=this.style,i=!t;if(i){var r=this.path;r||(r=this.path=new s),this.__dirtypath&&(r.beginpath(),this.buildpath(r,this.shape,!1)),t=r[fe]()}if(this._rect=t,e.hasstroke()){var a=this._rectwithstroke||(this._rectwithstroke=t.clone());if(this[n]||i){a.copy(t);var o=e.linewidth,l=e.strokenoscale?this.getlinescale():1;e.hasfill()||(o=math.max(o,this.strokecontainthreshold||4)),l>1e-10&&(a.width+=o/l,a[he]+=o/l,a.x-=o/l/2,a.y-=o/l/2)}return a}return t},contain:function(t,e){var i=this.transformcoordtolocal(t,e),n=this[fe](),r=this.style;if(t=i[0],e=i[1],n[$](t,e)){var a=this.path.data;if(r.hasstroke()){var o=r.linewidth,s=r.strokenoscale?this.getlinescale():1;if(s>1e-10&&(r.hasfill()||(o=math.max(o,this.strokecontainthreshold)),u.containstroke(a,o/s,t,e)))return!0}if(r.hasfill())return u[$](a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtypath=t,this._rect=null),this[n]=!0,this.__zr&&this.__zr.refresh(),this.__cliptarget&&this.__cliptarget.dirty()},animateshape:function(t){return this.animate("shape",t)},attrkv:function(t,e){"shape"===t?(this.setshape(e),this.__dirtypath=!0,this._rect=null):r[te].attrkv.call(this,t,e)},setshape:function(t,e){var i=this.shape;if(i){if(o[h](t))for(var n in t)t.hasownproperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getlinescale:function(){var t=this[a];return t&&f(t[0]-1)>1e-10&&f(t[3]-1)>1e-10?math.sqrt(f(t[0]*t[3]-t[2]*t[1])):1}},e[q]=function(t){var i=function(i){e.call(this,i),t.style&&this.style.extendfrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var a in n)!r.hasownproperty(a)&&n.hasownproperty(a)&&(r[a]=n[a])}t.init&&t.init.call(this,i)};o[y](i,e);for(var n in t)"style"!==n&&"shape"!==n&&(i[te][n]=t[n]);return i},o[y](e,r),e}),e("zrender/graphic/gradient",[we],function(){var t=function(t){this[e]=t||[]};return t[te]={constructor:t,addcolorstop:function(t,e){this[e].push({offset:t,color:e})}},t}),e("echarts/model/mixin/linestyle",[we,"./makestylemapper"],function(t){var e=t("./makestylemapper")([["linewidth","width"],[l,"color"],[ee],["shadowblur"],["shadowoffsetx"],["shadowoffsety"],["shadowcolor"]]);return{getlinestyle:function(t){var i=e.call(this,t),n=this.getlinedash(i.linewidth);return n&&(i.linedash=n),i},getlinedash:function(t){null==t&&(t=1);var e=this.get("type"),i=math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}}}),e("echarts/model/mixin/textstyle",[we,"zrender/contain/text"],function(t){function e(t,e){return t&&t[s](e)}var i=t("zrender/contain/text");return{gettextcolor:function(){var t=this[j];return this[s]("color")||t&&t.get("textstyle.color")},getfont:function(){var t=this[j],i=t&&t[ge](ve);return[this[s]("fontstyle")||e(i,"fontstyle"),this[s]("fontweight")||e(i,"fontweight"),(this[s]("fontsize")||e(i,"fontsize")||12)+"px",this[s]("fontfamily")||e(i,"fontfamily")||"sans-serif"].join(" ")},gettextrect:function(t){return i[fe](t,this[pe](),this[s]("align"),this[s]("baseline"))},truncatetext:function(t,e,n,r){return i.truncatetext(t,e,this[pe](),n,r)}}}),e("echarts/model/mixin/areastyle",[we,"./makestylemapper"],function(t){return{getareastyle:t("./makestylemapper")([["fill","color"],["shadowblur"],["shadowoffsetx"],["shadowoffsety"],[ee],["shadowcolor"]])}}),e("zrender/core/curve",[we,"./vector"],function(t){function e(t){return t>-x&&x>t}function i(t){return t>x||-x>t}function n(t,e,i,n,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*n+3*a*i)}function r(t,e,i,n,r){var a=1-r;return 3*(((e-t)*a+2*(i-e)*r)*a+(n-i)*r*r)}function a(t,i,n,r,a,o){var s=r+3*(i-n)-t,l=3*(n-2*i+t),u=3*(i-t),c=t-a,h=l*l-3*s*u,f=l*u-9*s*c,d=u*u-3*l*c,p=0;if(e(h)&&e(f))if(e(l))o[0]=0;else{var m=-u/l;m>=0&&1>=m&&(o[p++]=m)}else{var v=f*f-4*h*d;if(e(v)){var g=f/h,m=-l/s+g,x=-g/2;m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x)}else if(v>0){var b=_(v),m=h*l+1.5*s*(-f+b),s=h*l+1.5*s*(-f-b);m=0>m?-y(-m,t):y(m,t),s=0>s?-y(-s,t):y(s,t);var m=(-l-(m+s))/(3*s);m>=0&&1>=m&&(o[p++]=m)}else{var p=(2*h*l-3*s*f)/(2*_(h*h*h)),c=math.acos(p)/3,a=_(h),z=math.cos(c),m=(-l-2*a*z)/(3*s),x=(-l+a*(z+w*math.sin(c)))/(3*s),k=(-l+a*(z-w*math.sin(c)))/(3*s);m>=0&&1>=m&&(o[p++]=m),x>=0&&1>=x&&(o[p++]=x),k>=0&&1>=k&&(o[p++]=k)}}return p}function o(t,n,r,a,o){var s=6*r-12*n+6*t,l=9*n+3*a-3*t-9*r,u=3*n-3*t,c=0;if(e(l)){if(i(s)){var h=-u/s;h>=0&&1>=h&&(o[c++]=h)}}else{var f=s*s-4*l*u;if(e(f))o[0]=-s/(2*l);else if(f>0){var d=_(f),h=(-s+d)/(2*l),p=(-s-d)/(2*l);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function s(t,e,i,n,r,a){var o=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=n}function l(t,e,i,r,a,o,s,l,u,c,h){var f,d,p,m,v,y=.005,x=1/0;m[0]=u,m[1]=c;for(var w=0;1>w;w+=.05)s[0]=n(t,i,a,s,w),s[1]=n(e,r,o,l,w),m=g(m,s),x>m&&(f=w,x=m);x=1/0;for(var t=0;32>t&&!(b>y);t++)d=f-y,p=f+y,s[0]=n(t,i,a,s,d),s[1]=n(e,r,o,l,d),m=g(s,m),d>=0&&x>m?(f=d,x=m):(p[0]=n(t,i,a,s,p),p[1]=n(e,r,o,l,p),v=g(p,m),1>=p&&x>v?(f=p,x=v):y*=.5);return h&&(h[0]=n(t,i,a,s,f),h[1]=n(e,r,o,l,f)),_(x)}function u(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function c(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function h(t,n,r,a,o){var s=t-2*n+r,l=2*(n-t),u=t-a,c=0;if(e(s)){if(i(l)){var h=-u/l;h>=0&&1>=h&&(o[c++]=h)}}else{var f=l*l-4*s*u;if(e(f)){var h=-l/(2*s);h>=0&&1>=h&&(o[c++]=h)}else if(f>0){var d=_(f),h=(-l+d)/(2*s),p=(-l-d)/(2*s);h>=0&&1>=h&&(o[c++]=h),p>=0&&1>=p&&(o[c++]=p)}}return c}function f(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function d(t,e,i,n,r){var a=(e-t)*n+t,o=(i-e)*n+e,s=(o-a)*n+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=i}function p(t,e,i,n,r,a,o,s,l){var c,h=.005,f=1/0;m[0]=o,m[1]=s;for(var d=0;1>d;d+=.05){s[0]=u(t,i,r,d),s[1]=u(e,n,a,d);var p=g(m,s);f>p&&(c=d,f=p)}f=1/0;for(var m=0;32>m&&!(b>h);m++){var v=c-h,y=c+h;s[0]=u(t,i,r,v),s[1]=u(e,n,a,v);var p=g(s,m);if(v>=0&&f>p)c=v,f=p;else{p[0]=u(t,i,r,y),p[1]=u(e,n,a,y);var x=g(p,m);1>=y&&f>x?(c=y,f=x):h*=.5}}return l&&(l[0]=u(t,i,r,c),l[1]=u(e,n,a,c)),_(f)}var m=t("./vector"),v=m[y],g=m.distsquare,y=math.pow,_=math.sqrt,x=1e-8,b=1e-4,w=_(3),t=1/3,m=v(),s=v(),p=v();return{cubicat:n,cubicderivativeat:r,cubicrootat:a,cubicextrema:o,cubicsubdivide:s,cubicprojectpoint:l,quadraticat:u,quadraticderivativeat:c,quadraticrootat:h,quadraticextremum:f,quadraticsubdivide:d,quadraticprojectpoint:p}}),e("zrender/core/bbox",[we,"./vector","./curve"],function(t){var e=t("./vector"),i=t("./curve"),n={},r=math.min,a=math.max,o=math.sin,s=math.cos,l=e[y](),u=e[y](),c=e[y](),h=2*math.pi;n.frompoints=function(t,e,i){if(0!==t[k]){var n,o=t[0],s=o[0],l=o[0],u=o[1],c=o[1];for(n=1;nm;m++){var _=g(t,n,s,u,f[m]);h[0]=r(_,h[0]),p[0]=a(_,p[0])}for(y=v(e,o,l,c,d),m=0;y>m;m++){var x=g(e,o,l,c,d[m]);h[1]=r(x,h[1]),p[1]=a(x,p[1])}h[0]=r(t,h[0]),p[0]=a(t,p[0]),h[0]=r(u,h[0]),p[0]=a(u,p[0]),h[1]=r(e,h[1]),p[1]=a(e,p[1]),h[1]=r(c,h[1]),p[1]=a(c,p[1])},n.fromquadratic=function(t,e,n,o,s,l,u,c){var h=i.quadraticextremum,f=i.quadraticat,d=a(r(h(t,n,s),1),0),p=a(r(h(e,o,l),1),0),m=f(t,n,s,d),v=f(e,o,l,p);u[0]=r(t,s,m),u[1]=r(e,l,v),c[0]=a(t,s,m),c[1]=a(e,l,v)},n.fromarc=function(t,i,n,r,a,f,d,p,m){var v=e.min,g=e.max,y=math.abs(a-f);if(1e-4>y%h&&y>1e-4)return p[0]=t-n,p[1]=i-r,m[0]=t+n,void(m[1]=i+r);if(l[0]=s(a)*n+t,l[1]=o(a)*r+i,u[0]=s(f)*n+t,u[1]=o(f)*r+i,v(p,l,u),g(m,l,u),a%=h,0>a&&(a+=h),f%=h,0>f&&(f+=h),a>f&&!d?f+=h:f>a&&d&&(a+=h),d){var _=f;f=a,a=_}for(var x=0;f>x;x+=math.pi/2)x>a&&(c[0]=s(x)*n+t,c[1]=o(x)*r+i,v(p,c,p),g(m,c,m))},n}),e("echarts/model/mixin/itemstyle",[we,"./makestylemapper"],function(t){var e=t("./makestylemapper")([["fill","color"],[l,"bordercolor"],["linewidth","borderwidth"],[ee],["shadowblur"],["shadowoffsetx"],["shadowoffsety"],["shadowcolor"],["textposition"],[me]]);return{getitemstyle:function(t,i){var n=e.call(this,t,i),r=this.getborderlinedash();return r&&(n.linedash=r),n},getborderlinedash:function(){var t=this.get("bordertype");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}}),e("zrender/config",[],function(){var t=1;typeof window!==h&&(t=math.max(window.devicepixelratio||1,1));var e={debugmode:0,devicepixelratio:t};return e}),e("echarts/model/mixin/makestylemapper",[we,be],function(t){var e=t(be);return function(t){for(var i=0;i=0||n&&e[f](n,o)<0)){var l=this[s](o);null!=l&&(r[t[a][0]]=l)}}return r}}}),e("zrender/core/lru",[we],function(){var t=function(){this.head=null,this.tail=null,this._len=0},e=t[te];e.insert=function(t){var e=new i(t);return this.insertentry(e),e},e.insertentry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e[d]=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},e.len=function(){return this._len},e.clear=function(){this.head=this.tail=null,this._len=0};var i=function(t){this.value=t,this.next,this.prev},n=function(e){this._list=new t,this._map={},this._maxsize=e||10,this._lastremovedentry=null},r=n[te];return r.put=function(t,e){var n=this._list,r=this._map,a=null;if(null==r[t]){var o=n.len(),s=this._lastremovedentry;if(o>=this._maxsize&&o>0){var l=n.head;n[d](l),delete r[l.key],a=l.value,this._lastremovedentry=l}s?s.value=e:s=new i(e),s.key=t,n.insertentry(s),r[t]=s}return a},r.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i[d](e),i.insertentry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}},n}),e("echarts/util/component",[we,be,"./clazz"],function(t){var e=t(be),i=t("./clazz"),n=i.parseclasstype,r=0,a={},o="_";return a.getuid=function(t){return[t||"",r++,math.random()].join(o)},a.enablesubtypedefaulter=function(t){var e={};return t.registersubtypedefaulter=function(t,i){t=n(t),e[t.main]=i},t.determinesubtype=function(i,r){var a=r.type;if(!a){var o=n(i).main;t.hassubtypes(i)&&e[o]&&(a=e[o](r))}return a},t},a.enabletopologicaltravel=function(t,i){function n(t){var n={},o=[];return e.each(t,function(s){var l=r(n,s),u=l.originaldeps=i(s),c=a(u,t);l.entrycount=c[k],0===l.entrycount&&o.push(s),e.each(c,function(t){e[f](l.predecessor,t)<0&&l.predecessor.push(t);var i=r(n,t);e[f](i.successor,t)<0&&i.successor.push(s)})}),{graph:n,noentrylist:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,i){var n=[];return e.each(t,function(t){e[f](i,t)>=0&&n.push(t)}),n}t.topologicaltravel=function(t,i,r,a){function o(t){u[t].entrycount--,0===u[t].entrycount&&c.push(t)}function s(t){h[t]=!0,o(t)}if(t[k]){var l=n(i),u=l.graph,c=l.noentrylist,h={};for(e.each(t,function(t){h[t]=!0});c[k];){var f=c.pop(),d=u[f],p=!!h[f];p&&(r.call(a,f,d.originaldeps.slice()),delete h[f]),e.each(d.successor,p?s:o)}e.each(h,function(){throw new error("circle dependency may exists")})}}},a}),e("echarts/model/mixin/boxlayout",[we],function(){return{getboxlayoutparams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get(re),width:this.get("width"),height:this.get(he)}}}}),e("zrender/graphic/style",[we],function(){function t(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,a=a*i[he]+i.y,o=o*i[he]+i.y);var s=t.createlineargradient(n,a,r,o);return s}function e(t,e,i){var n=i.width,r=i[he],a=math.min(n,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(o=o*n+i.x,s=s*r+i.y,l*=a);var u=t.createradialgradient(o,s,0,o,s,l);return u}var i=[["shadowblur",0],["shadowoffsetx",0],["shadowoffsety",0],["shadowcolor","#000"],["linecap","butt"],["linejoin","miter"],["miterlimit",10]],n=function(t){this.extendfrom(t)};n[te]={constructor:n,fill:"#000000",stroke:null,opacity:1,linedash:null,linedashoffset:0,shadowblur:0,shadowoffsetx:0,shadowoffsety:0,linewidth:1,strokenoscale:!1,text:null,textfill:"#000",textstroke:null,textposition:"inside",textoffset:null,textbaseline:null,textalign:null,textverticalalign:null,textdistance:5,textshadowblur:0,textshadowoffsetx:0,textshadowoffsety:0,texttransform:!1,textrotation:0,blend:null,bind:function(t,e,n){for(var r=this,a=n&&n.style,o=!a,s=0;s0},extendfrom:function(t,e){if(t){var i=this;for(var n in t)!t.hasownproperty(n)||!e&&i.hasownproperty(n)||(i[n]=t[n])}},set:function(t,e){typeof t===q?this[t]=e:this.extendfrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendfrom(this,!0),t},getgradient:function(i,n,r){for(var a="radial"===n.type?e:t,o=a(i,n,r),s=n[e],l=0;l=0&&(i[c](n,0,t),this._doadd(t))}return this},_doadd:function(t){t.parent&&t.parent[d](t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addtostorage(t),t instanceof o&&t.addchildrentostorage(e)),i&&i.refresh()},remove:function(t){var i=this.__zr,n=this.__storage,r=this._children,a=e[f](r,t);return 0>a?this:(r[c](a,1),t.parent=null,n&&(n.delfromstorage(t),t instanceof o&&t.delchildrenfromstorage(n)),i&&i.refresh(),this)},removeall:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,n.push([s/i,l/i])}return n}var n=t(be),r=t("./region");return function(t){return e(t),n.map(n[_](t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates[k]>0}),function(t){var e=t.properties,i=t.geometry,a=i.coordinates,o=[];"polygon"===i.type&&o.push({type:"polygon",exterior:a[0],interiors:a.slice(1)}),"multipolygon"===i.type&&n.each(a,function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var s=new r(e.name,o,e.cp);return s.properties=e,s})}}),e("zrender/mixin/transformable",[we,"../core/matrix","../core/vector"],function(t){function e(t){return t>s||-s>t}var i=t("../core/matrix"),n=t("../core/vector"),r=i.identity,s=5e-5,l=function(t){t=t||{},t[ne]||(this[ne]=[0,0]),null==t[o]&&(this[o]=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=l[te];c[a]=null,c.needlocaltransform=function(){return e(this[o])||e(this[ne][0])||e(this[ne][1])||e(this.scale[0]-1)||e(this.scale[1]-1)},c.updatetransform=function(){var t=this.parent,e=t&&t[a],n=this.needlocaltransform(),o=this[a];return n||e?(o=o||i[y](),n?this.getlocaltransform(o):r(o),e&&(n?i.mul(o,t[a],o):i.copy(o,t[a])),this[a]=o,this.invtransform=this.invtransform||i[y](),void i.invert(this.invtransform,o)):void(o&&r(o))},c.getlocaltransform=function(t){return l.getlocaltransform(this,t)},c.settransform=function(t){var e=this[a],i=t.dpr||1;e?t.settransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.settransform(i,0,0,i,0,0)},c.restoretransform=function(t){var e=t.dpr||1;t.settransform(e,0,0,e,0,0)};var h=[];return c.decomposetransform=function(){if(this[a]){var t=this.parent,n=this[a];t&&t[a]&&(i.mul(h,t.invtransform,n),n=h);var r=n[0]*n[0]+n[1]*n[1],s=n[2]*n[2]+n[3]*n[3],l=this[ne],u=this.scale;e(r-1)&&(r=math.sqrt(r)),e(s-1)&&(s=math.sqrt(s)),n[0]<0&&(r=-r),n[3]<0&&(s=-s),l[0]=n[4],l[1]=n[5],u[0]=r,u[1]=s,this[o]=math.atan2(-n[1]/s,n[0]/r)}},c.getglobalscale=function(){var t=this[a];if(!t)return[1,1];var e=math.sqrt(t[0]*t[0]+t[1]*t[1]),i=math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},c.transformcoordtolocal=function(t,e){var i=[t,e],r=this.invtransform;return r&&n[u](i,i,r),i},c.transformcoordtoglobal=function(t,e){var i=[t,e],r=this[a];return r&&n[u](i,i,r),i},l.getlocaltransform=function(t,e){e=e||[],r(e);var n=t.origin,a=t.scale||[1,1],s=t[o]||0,l=t[ne]||[0,0];return n&&(e[4]-=n[0],e[5]-=n[1]),i.scale(e,e,a),s&&i.rotate(e,e,s),n&&(e[4]+=n[0],e[5]+=n[1]),e[4]+=l[0],e[5]+=l[1],e},l}),e("zrender/core/guid",[],function(){var t=2311;return function(){return t++}}),e("zrender/mixin/animatable",[we,"../animation/animator",i,"../core/log"],function(t){var e=t("../animation/animator"),n=t(i),r=n[g],a=n.isfunction,o=n[h],s=t("../core/log"),l=function(){this.animators=[]};return l[te]={constructor:l,animate:function(t,i){var r,a=!1,o=this,l=this.__zr;if(t){var u=t.split("."),c=o;a="shape"===u[0];for(var h=0,f=u[k];f>h;h++)c&&(c=c[u[h]]);c&&(r=c)}else r=o;if(!r)return void s('property "'+t+'" is not existed in element '+o.id);var d=o.animators,p=new e(r,i);return p.during(function(){o.dirty(a)}).done(function(){d[c](n[f](d,p),1)}),d.push(p),l&&l[g].addanimator(p),p},stopanimation:function(t){for(var e=this.animators,i=e[k],n=0;i>n;n++)e[n].stop(t);return e[k]=0,this},animateto:function(t,e,i,n,o){function s(){u--,u||o&&o()}r(i)?(o=n,n=i,i=0):a(n)?(o=n,n="linear",i=0):a(i)?(o=i,i=0):a(e)?(o=e,e=500):e||(e=500),this.stopanimation(),this._animatetoshallow("",this,t,e,i,n,o);var l=this.animators.slice(),u=l[k];u||o&&o();for(var c=0;c0&&this.animate(t,!1).when(null==r?500:r,s).delay(a||0),this}},l}),e("echarts/coord/view",[we,z,w,"zrender/mixin/transformable",be,"zrender/core/boundingrect"],function(t){function e(){s.call(this)}function i(t){this.name=t,this.zoomlimit,s.call(this),this._roamtransform=new e,this._viewtransform=new e,this._center,this._zoom}function n(t,e,i,n){var r=i.seriesmodel,a=r?r[_e]:null;return a===this?a[t](n):null}var r=t(z),o=t(w),s=t("zrender/mixin/transformable"),l=t(be),c=t("zrender/core/boundingrect"),h=r[u];return l.mixin(e,s),i[te]={constructor:i,type:"view",dimensions:["x","y"],setboundingrect:function(t,e,i,n){return this._rect=new c(t,e,i,n),this._rect},getboundingrect:function(){return this._rect},setviewrect:function(t,e,i,n){this.transformto(t,e,i,n),this._viewrect=new c(t,e,i,n)},transformto:function(t,e,i,n){var r=this[fe](),o=this._viewtransform;o[a]=r.calculatetransform(new c(t,e,i,n)),o.decomposetransform(),this._updatetransform()},setcenter:function(t){t&&(this._center=t,this._updatecenterandzoom())},setzoom:function(t){t=t||1;var e=this.zoomlimit;e&&(null!=e.max&&(t=math.min(e.max,t)),null!=e.min&&(t=math.max(e.min,t))),this._zoom=t,this._updatecenterandzoom()},getdefaultcenter:function(){var t=this[fe](),e=t.x+t.width/2,i=t.y+t[he]/2;return[e,i]},getcenter:function(){return this._center||this.getdefaultcenter()},getzoom:function(){return this._zoom||1},getroamtransform:function(){return this._roamtransform},_updatecenterandzoom:function(){var t=this._viewtransform.getlocaltransform(),e=this._roamtransform,i=this.getdefaultcenter(),n=this.getcenter(),a=this.getzoom();n=r[u]([],n,t),i=r[u]([],i,t),e.origin=n,e[ne]=[i[0]-n[0],i[1]-n[1]],e.scale=[a,a],this._updatetransform()},_updatetransform:function(){var t=this._roamtransform,e=this._viewtransform;e.parent=t,t.updatetransform(),e.updatetransform(),e[a]&&o.copy(this[a]||(this[a]=[]),e[a]),this[a]?(this.invtransform=this.invtransform||[],o.invert(this.invtransform,this[a])):this.invtransform=null,this.decomposetransform()},getviewrect:function(){return this._viewrect},getviewrectafterroam:function(){var t=this[fe]().clone();return t[u](this[a]),t},datatopoint:function(t){var e=this[a];return e?h([],t,e):[t[0],t[1]]},pointtodata:function(t){var e=this.invtransform;return e?h([],t,e):[t[0],t[1]]},converttopixel:l.curry(n,"datatopoint"),convertfrompixel:l.curry(n,"pointtodata"),containpoint:function(t){return this.getviewrectafterroam()[$](t[0],t[1])}},l.mixin(i,s),i}),e("echarts/coord/geo/fix/nanhai",[we,"../region",be],function(t){for(var e=t("../region"),i=t(be),n=[126,25],r=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],a=0;a.5?e:t}function o(t,e,i,n,a){var o=t[k];if(1==a)for(var s=0;o>s;s++)n[s]=r(t[s],e[s],i);else for(var l=t[0][k],s=0;o>s;s++)for(var u=0;l>u;u++)n[s][u]=r(t[s][u],e[s][u],i)}function s(t,e,i){var n=t[k],r=e[k];if(n!==r){var a=n>r;if(a)t[k]=r;else for(var o=n;r>o;o++)t.push(1===i?e[o]:y.call(e[o])) }for(var s=t[0]&&t[0][k],o=0;ol;l++)isnan(t[o][l])&&(t[o][l]=e[o][l])}function l(t,e,i){if(t===e)return!0;var n=t[k];if(n!==e[k])return!1;if(1===i){for(var r=0;n>r;r++)if(t[r]!==e[r])return!1}else for(var a=t[0][k],r=0;n>r;r++)for(var o=0;a>o;o++)if(t[r][o]!==e[r][o])return!1;return!0}function u(t,e,i,n,r,a,o,s,l){var u=t[k];if(1==l)for(var h=0;u>h;h++)s[h]=c(t[h],e[h],i[h],n[h],r,a,o);else for(var f=t[0][k],h=0;u>h;h++)for(var d=0;f>d;d++)s[h][d]=c(t[h][d],e[h][d],i[h][d],n[h][d],r,a,o)}function c(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}function h(t){if(g(t)){var e=t[k];if(g(t[0])){for(var i=[],n=0;e>n;n++)i.push(y.call(t[n]));return i}return y.call(t)}return t}function f(t){return t[0]=math.floor(t[0]),t[1]=math.floor(t[1]),t[2]=math.floor(t[2]),"rgba("+t.join(",")+")"}function d(t,e,i,n,h){var d=t._getter,v=t._setter,y="spline"===e,_=n[k];if(_){var x,b=n[0].value,w=g(b),t=!1,m=!1,s=w&&g(b[0])?2:1;n.sort(function(t,e){return t.time-e.time}),x=n[_-1].time;for(var p=[],c=[],a=n[0].value,z=!0,k=0;_>k;k++){p.push(n[k].time/x);var i=n[k].value;if(w&&l(i,a,s)||!w&&i===a||(z=!1),a=i,typeof i==q){var d=m.parse(i);d?(i=d,t=!0):m=!0}c.push(i)}if(!z){for(var l=c[_-1],k=0;_-1>k;k++)w?s(c[k],l,s):!isnan(c[k])||isnan(l)||m||t||(c[k]=l);w&&s(d(t._target,h),l,s);var o,r,e,b,n,f,v=0,h=0;if(t)var g=[0,0,0,0];var u=function(t,e){var i;if(0>e)i=0;else if(h>e){for(o=math.min(v+1,_-1),i=o;i>=0&&!(p[i]<=e);i--);i=math.min(i,_-2)}else{for(i=v;_>i&&!(p[i]>e);i++);i=math.min(i-1,_-2)}v=i,h=e;var n=p[i+1]-p[i];if(0!==n)if(r=(e-p[i])/n,y)if(b=c[i],e=c[0===i?i:i-1],n=c[i>_-2?_-1:i+1],f=c[i>_-3?_-1:i+2],w)u(e,b,n,f,r,r*r,r*r*r,d(t,h),s);else{var s;if(t)s=u(e,b,n,f,r,r*r,r*r*r,g,1),s=f(g);else{if(m)return a(b,n,r);s=c(e,b,n,f,r,r*r,r*r*r)}v(t,h,s)}else if(w)o(c[i],c[i+1],r,d(t,h),s);else{var s;if(t)o(c[i],c[i+1],r,g,1),s=f(g);else{if(m)return a(c[i],c[i+1],r);s=r(c[i],c[i+1],r)}v(t,h,s)}},z=new p({target:t._target,life:x,loop:t._loop,delay:t._delay,onframe:u,ondestroy:i});return e&&"spline"!==e&&(z.easing=e),z}}}var p=t("./clip"),m=t("../tool/color"),v=t(i),g=v.isarraylike,y=array[te].slice,_=function(t,i,r,a){this._tracks={},this._target=t,this._loop=i||!1,this._getter=r||e,this._setter=a||n,this._clipcount=0,this._delay=0,this._donelist=[],this._onframelist=[],this._cliplist=[]};return _[te]={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasownproperty(n)){if(!i[n]){i[n]=[];var r=this._getter(this._target,n);if(null==r)continue;0!==t&&i[n].push({time:0,value:h(r)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframelist.push(t),this},pause:function(){for(var t=0;ti;i++)t[i].call(this)},start:function(t){var e,i=this,n=0,r=function(){n--,n||i._donecallback()};for(var a in this._tracks)if(this._tracks.hasownproperty(a)){var o=d(this,t,r,this._tracks[a],a);o&&(this._cliplist.push(o),n++,this[g]&&this[g].addclip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var n=0;nr;r++)if("polygon"===n[r].type){var o=n[r].exterior,s=n[r].interiors;if(i[$](o,t[0],t[1])){for(var l=0;l<(s?s[k]:0);l++)if(i[$](s[l]))continue t;return!0}}return!1},transformto:function(t,e,i,r){var o=this[fe](),s=o.width/o[he];i?r||(r=i/s):i=s*r;for(var l=new n(t,e,i,r),c=o.calculatetransform(l),h=this.geometries,f=0;f1)for(var t in arguments)console.log(arguments[t])}}),e("zrender/animation/clip",[we,"./easing"],function(t){function e(t){this._target=t[ue],this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedtime=0,this._paused=!1}var i=t("./easing");return e[te]={constructor:e,step:function(t,e){if(this._initialized||(this._starttime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedtime+=e);var n=(t-this._starttime-this._pausedtime)/this._life;if(!(0>n)){n=math.min(n,1);var r=this.easing,a=typeof r==q?i[r]:r,o=typeof a===b?a(n):n;return this.fire("frame",o),1==n?this.loop?(this.restart(t),"restart"):(this._needsremove=!0,"destroy"):null}},restart:function(t){var e=(t-this._starttime-this._pausedtime)%this._life;this._starttime=t-e+this.gap,this._pausedtime=0,this._needsremove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}},e}),e("zrender/contain/polygon",[we,"./windingline"],function(t){function e(t,e){return math.abs(t-e)i?(i=1,e=n/4):e=n*math.asin(1/i)/(2*math.pi),-(i*math.pow(2,10*(t-=1))*math.sin(2*(t-e)*math.pi/n)))},elasticout:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*math.asin(1/i)/(2*math.pi),i*math.pow(2,-10*t)*math.sin(2*(t-e)*math.pi/n)+1)},elasticinout:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*math.asin(1/i)/(2*math.pi),(t*=2)<1?-.5*i*math.pow(2,10*(t-=1))*math.sin(2*(t-e)*math.pi/n):i*math.pow(2,-10*(t-=1))*math.sin(2*(t-e)*math.pi/n)*.5+1)},backin:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backout:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backinout:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bouncein:function(e){return 1-t.bounceout(1-e)},bounceout:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceinout:function(e){return.5>e?.5*t.bouncein(2*e):.5*t.bounceout(2*e-1)+.5}};return t}),e("zrender/contain/windingline",[],function(){return function(t,e,i,n,r,a){if(a>e&&a>n||e>a&&n>a)return 0;if(n===e)return 0;var o=e>n?1:-1,s=(a-e)/(n-e);(1===s||0===s)&&(o=e>n?.5:-.5);var l=s*(i-t)+t;return l>r?o:0}}),e("zrender/graphic/shape/ring",[we,"../path"],function(t){return t("../path")[q]({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildpath:function(t,e){var i=e.cx,n=e.cy,a=2*math.pi;t[r](i+e.r,n),t.arc(i,n,e.r,0,a,!1),t[r](i+e.r0,n),t.arc(i,n,e.r0,0,a,!0)}})}),e("zrender/tool/path",[we,"../graphic/path","../core/pathproxy","./transformpath"],function(t){function e(t,e,i,n,r,a,o,s,u,d,v){var g=u*(f/180),y=h(g)*(t-i)/2+c(g)*(e-n)/2,_=-1*c(g)*(t-i)/2+h(g)*(e-n)/2,x=y*y/(o*o)+_*_/(s*s);x>1&&(o*=l(x),s*=l(x));var b=(r===a?-1:1)*l((o*o*s*s-o*o*_*_-s*s*y*y)/(o*o*_*_+s*s*y*y))||0,w=b*o*_/s,t=b*-s*y/o,m=(t+i)/2+h(g)*w-c(g)*t,s=(e+n)/2+c(g)*w+h(g)*t,p=m([1,0],[(y-w)/o,(_-t)/s]),c=[(y-w)/o,(_-t)/s],a=[(-1*y-w)/o,(-1*_-t)/s],z=m(c,a);p(c,a)<=-1&&(z=f),p(c,a)>=1&&(z=0),0===a&&z>0&&(z-=2*f),1===a&&0>z&&(z+=2*f),v.adddata(d,m,s,o,s,p,z,g,a)}function i(t){if(!t)return[];var i,n=t[t](/-/g," -")[t](/ /g," ")[t](/ /g,",")[t](/,,/g,",");for(i=0;i0&&""===v[0]&&v.shift();for(var g=0;ga;a++){var o=t[a];o.path||o.createpathproxy(),o.__dirtypath&&o.buildpath(o.path,o.shape,!0),i.push(o.path)}var s=new r(e);return s.createpathproxy(),s.buildpath=function(t){t.appendpath(i);var e=t.getcontext();e&&t.rebuildpath(e)},s}}}),e("zrender/graphic/shape/circle",[we,"../path"],function(t){return t("../path")[q]({type:"circle",shape:{cx:0,cy:0,r:0},buildpath:function(t,e,i){i&&t[r](e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*math.pi,!0)}})}),e("zrender/graphic/shape/polygon",[we,"../helper/poly","../path"],function(t){var e=t("../helper/poly");return t("../path")[q]({type:"polygon",shape:{points:null,smooth:!1,smoothconstraint:null},buildpath:function(t,i){e.buildpath(t,i,!0)}})}),e("zrender/graphic/shape/sector",[we,"../../core/env","../path"],function(t){var e=t("../../core/env"),i=t("../path"),n=[["shadowblur",0],["shadowcolor","#000"],["shadowoffsetx",0],["shadowoffsety",0]];return i[q]({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startangle:0,endangle:2*math.pi,clockwise:!0},brush:e.browser.ie&&e.browser.version>=11?function(){var t,e=this.__clippaths,r=this.style;if(e)for(var a=0;as&&(a=i*(1-s)+a*s,o=n*(1-s)+o*s),t.lineto(a,o))},pointat:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})}),e("zrender/graphic/compoundpath",[we,"./path"],function(t){var e=t("./path");return e[q]({type:"compound",shape:{paths:null},_updatepathdirty:function(){for(var t=this.__dirtypath,e=this.shape.paths,i=0;ip&&(a(i,u,s,p,h),u=h[1],s=h[2],a(n,c,l,p,h),c=h[1],l=h[2]),t.quadraticcurveto(u,c,s,l)):(1>p&&(o(i,u,f,s,p,h),u=h[1],f=h[2],s=h[3],o(n,c,d,l,p,h),c=h[1],d=h[2],l=h[3]),t.beziercurveto(u,c,f,d,s,l)))},pointat:function(t){return e(this.shape,t,!1)},tangentat:function(t){var i=e(this.shape,t,!0);return n.normalize(i,i)}})}),e("zrender/graphic/lineargradient",[we,i,"./gradient"],function(t){var e=t(i),n=t("./gradient"),r=function(t,e,i,r,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==r?0:r,this.type="linear",this.global=o||!1,n.call(this,a)};return r[te]={constructor:r},e[y](r,n),r}),e("zrender/graphic/radialgradient",[we,i,"./gradient"],function(t){var e=t(i),n=t("./gradient"),r=function(t,e,i,r,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==i?.5:i,this.type="radial",this.global=a||!1,n.call(this,r)};return r[te]={constructor:r},e[y](r,n),r}),e("zrender/contain/path",[we,"../core/pathproxy","./line","./cubic","./quadratic","./arc","./util","../core/curve","./windingline"],function(t){function e(t,e){return math.abs(t-e)e&&c>r&&c>o&&c>l||e>c&&r>c&&o>c&&l>c)return 0;var h=d.cubicrootat(e,r,o,l,c,y);if(0===h)return 0;for(var f,p,m=0,v=-1,g=0;h>g;g++){var x=y[g],b=0===x||1===x?.5:1,w=d.cubicat(t,n,a,s,x);u>w||(0>v&&(v=d.cubicextrema(e,r,o,l,_),_[1]<_[0]&&v>1&&i(),f=d.cubicat(e,r,o,l,_[0]),v>1&&(p=d.cubicat(e,r,o,l,_[1]))),m+=2==v?x<_[0]?e>f?b:-b:x<_[1]?f>p?b:-b:p>l?b:-b:x<_[0]?e>f?b:-b:f>l?b:-b)}return m}function r(t,e,i,n,r,a,o,s){if(s>e&&s>n&&s>a||e>s&&n>s&&a>s)return 0;var l=d.quadraticrootat(e,n,a,s,y);if(0===l)return 0;var u=d.quadraticextremum(e,n,a);if(u>=0&&1>=u){for(var c=0,h=d.quadraticat(e,n,a,u),f=0;l>f;f++){var p=0===y[f]||1===y[f]?.5:1,m=d.quadraticat(t,i,r,y[f]);o>m||(c+=y[f]h?p:-p:h>a?p:-p)}return c}var p=0===y[0]||1===y[0]?.5:1,m=d.quadraticat(t,i,r,y[0]);return o>m?0:e>a?p:-p}function a(t,e,i,n,r,a,o,s){if(s-=e,s>i||-i>s)return 0;var l=math.sqrt(i*i-s*s);y[0]=-l,y[1]=l;var u=math.abs(n-r);if(1e-4>u)return 0;if(1e-4>u%v){n=0,r=v;var c=a?1:-1;return o>=y[0]+t&&o<=y[1]+t?c:0}if(a){var l=n;n=f(r),r=f(l)}else n=f(n),r=f(r);n>r&&(r+=v);for(var h=0,d=0;2>d;d++){var p=y[d];if(p+t>o){var m=math.atan2(s,p),c=a?1:-1;0>m&&(m=v+m),(m>=n&&r>=m||m+v>=n&&r>=m+v)&&(m>math.pi/2&&m<1.5*math.pi&&(c=-c),h+=c)}}return h}function o(t,i,o,l,f){for(var d=0,v=0,g=0,y=0,_=0,x=0;x1&&(o||(d+=p(v,g,y,_,l,f))),1==x&&(v=t[x],g=t[x+1],y=v,_=g),b){case s.m:y=t[x++],_=t[x++],v=y,g=_;break;case s.l:if(o){if(m(v,g,t[x],t[x+1],i,l,f))return!0}else d+=p(v,g,t[x],t[x+1],l,f)||0;v=t[x++],g=t[x++];break;case s.c:if(o){if(u.containstroke(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],i,l,f))return!0}else d+=n(v,g,t[x++],t[x++],t[x++],t[x++],t[x],t[x+1],l,f)||0;v=t[x++],g=t[x++];break;case s.q:if(o){if(c.containstroke(v,g,t[x++],t[x++],t[x],t[x+1],i,l,f))return!0}else d+=r(v,g,t[x++],t[x++],t[x],t[x+1],l,f)||0;v=t[x++],g=t[x++];break;case s.a:var w=t[x++],t=t[x++],m=t[x++],s=t[x++],p=t[x++],c=t[x++],a=(t[x++],1-t[x++]),z=math.cos(p)*m+w,k=math.sin(p)*s+t;x>1?d+=p(v,g,z,k,l,f):(y=z,_=k);var i=(l-w)*s/m+w;if(o){if(h.containstroke(w,t,s,p,p+c,a,i,i,f))return!0}else d+=a(w,t,s,p,p+c,a,i,f);v=math.cos(p+c)*m+w,g=math.sin(p+c)*s+t;break;case s.r:y=v=t[x++],_=g=t[x++];var d=t[x++],l=t[x++],z=y+d,k=_+l;if(o){if(m(y,_,z,_,i,l,f)||m(z,_,z,k,i,l,f)||m(z,k,y,k,i,l,f)||m(y,k,y,_,i,l,f))return!0}else d+=p(z,_,z,k,l,f),d+=p(y,k,y,_,l,f);break;case s.z:if(o){if(m(v,g,y,_,i,l,f))return!0}else d+=p(v,g,y,_,l,f);v=y,g=_}}return o||e(g,_)||(d+=p(v,g,y,_,l,f)||0),0!==d}var s=t("../core/pathproxy").cmd,l=t("./line"),u=t("./cubic"),c=t("./quadratic"),h=t("./arc"),f=t("./util").normalizeradian,d=t("../core/curve"),p=t("./windingline"),m=l.containstroke,v=2*math.pi,g=1e-4,y=[-1,-1,-1],_=[-1,-1];return{contain:function(t,e,i){return o(t,0,!1,e,i)},containstroke:function(t,e,i,n){return o(t,e,!0,i,n)}}}),e("zrender/tool/transformpath",[we,"../core/pathproxy","../core/vector"],function(t){function e(t,e){var n,l,u,c,h,f,d=t.data,p=i.m,m=i.c,v=i.l,g=i.r,y=i.a,_=i.q;for(u=0,c=0;uh;h++){var f=a[h];f[0]=d[u++],f[1]=d[u++],r(f,f,e),d[c++]=f[0],d[c++]=f[1]}}}var i=t("../core/pathproxy").cmd,n=t("../core/vector"),r=n[u],a=[[],[],[]],o=math.sqrt,s=math.atan2;return e}),e("zrender/graphic/pattern",[we],function(){var t=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};return t[te].getcanvaspattern=function(t){return t.createpattern(this.image,this.repeat||"repeat")},t}),e("zrender/contain/line",[],function(){return{containstroke:function(t,e,i,n,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>n+s||e-s>o&&n-s>o||a>t+s&&a>i+s||t-s>a&&i-s>a)return!1;if(t===i)return math.abs(a-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*a-o+u,h=c*c/(l*l+1);return s/2*s/2>=h}}}),e("zrender/contain/cubic",[we,"../core/curve"],function(t){var e=t("../core/curve");return{containstroke:function(t,i,n,r,a,o,s,l,u,c,h){if(0===u)return!1;var f=u;if(h>i+f&&h>r+f&&h>o+f&&h>l+f||i-f>h&&r-f>h&&o-f>h&&l-f>h||c>t+f&&c>n+f&&c>a+f&&c>s+f||t-f>c&&n-f>c&&a-f>c&&s-f>c)return!1;var d=e.cubicprojectpoint(t,i,n,r,a,o,s,l,c,h,null);return f/2>=d}}}),e("zrender/contain/util",[we],function(){var t=2*math.pi;return{normalizeradian:function(e){return e%=t,0>e&&(e+=t),e}}}),e("zrender/contain/arc",[we,"./util"],function(t){var e=t("./util").normalizeradian,i=2*math.pi;return{containstroke:function(t,n,r,a,o,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=n;var f=math.sqrt(u*u+c*c);if(f-h>r||r>f+h)return!1;if(math.abs(a-o)%i<1e-4)return!0;if(s){var d=a;a=e(o),o=e(d)}else a=e(a),o=e(o);a>o&&(o+=i);var p=math.atan2(c,u);return 0>p&&(p+=i),p>=a&&o>=p||p+i>=a&&o>=p+i}}}),e("zrender/contain/quadratic",[we,"../core/curve"],function(t){var e=t("../core/curve");return{containstroke:function(t,i,n,r,a,o,s,l,u){if(0===s)return!1;var c=s;if(u>i+c&&u>r+c&&u>o+c||i-c>u&&r-c>u&&o-c>u||l>t+c&&l>n+c&&l>a+c||t-c>l&&n-c>l&&a-c>l)return!1;var h=e.quadraticprojectpoint(t,i,n,r,a,o,l,u,null);return c/2>=h}}}),e("zrender/handler",[we,"./core/util","./mixin/draggable","./mixin/eventful"],function(t){function e(t,e,i){return{type:t,event:i,target:e[ue],toptarget:e.toptarget,cancelbubble:!1,offsetx:i.zrx,offsety:i.zry,gestureevent:i.gestureevent,pinchx:i.pinchx,pinchy:i.pinchy,pinchscale:i.pinchscale,wheeldelta:i.zrdelta,zrbytouch:i.zrbytouch}}function i(){}function n(t,e,i){if(t[t.recthover?"rectcontain":$](e,i)){for(var n,r=t;r;){if(r.clippath&&!r.clippath[$](e,i))return!1;r[ce]&&(n=!0),r=r.parent}return n?s:!0}return!1}var r=t("./core/util"),a=t("./mixin/draggable"),o=t("./mixin/eventful"),s=ce;i[te][a]=function(){};var l=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],u=function(t,e,n,s){o.call(this),this.storage=t,this.painter=e,this.painterroot=s,n=n||new i,this.proxy=n,n.handler=this,this._hovered={},this._lasttouchmoment,this._lastx,this._lasty,a.call(this),r.each(l,function(t){n.on&&n.on(t,this[t],this)},this)};return u[te]={constructor:u,mousemove:function(t){var e=t.zrx,i=t.zry,n=this._hovered,r=this._hovered=this.findhover(e,i),a=r[ue],o=n[ue],s=this.proxy;s.setcursor&&s.setcursor(a?a.cursor:"default"),o&&a!==o&&o.__zr&&this.dispatchtoelement(n,"mouseout",t),this.dispatchtoelement(r,"mousemove",t),a&&a!==o&&this.dispatchtoelement(r,"mouseover",t)},mouseout:function(t){this.dispatchtoelement(this._hovered,"mouseout",t);var e,i=t.toelement||t.relatedtarget;do i=i&&i.parentnode;while(i&&9!=i.nodetype&&!(e=i===this.painterroot));!e&&this[z]("globalout",{event:t})},resize:function(){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.call(this,e)},dispose:function(){this.proxy[a](),this.storage=this.proxy=this.painter=null},setcursorstyle:function(t){var e=this.proxy;e.setcursor&&e.setcursor(t)},dispatchtoelement:function(t,i,n){t=t||{};for(var r="on"+i,a=e(i,t,n),o=t[ue];o&&(o[r]&&(a.cancelbubble=o[r].call(o,a)),o[z](i,a),o=o.parent,!a.cancelbubble););a.cancelbubble||(this[z](i,a),this.painter&&this.painter.eachotherlayer(function(t){typeof t[r]==b&&t[r].call(t,a),t[z]&&t[z](i,a)}))},findhover:function(t,e,i){for(var r=this.storage.getdisplaylist(),a={},o=r[k]-1;o>=0;o--){var l;if(r[o]!==i&&!r[o].ignore&&(l=n(r[o],t,e))&&(!a.toptarget&&(a.toptarget=r[o]),l!==s)){a[ue]=r[o];break}}return a}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){u[te][t]=function(e){var i=this.findhover(e.zrx,e.zry),n=i[ue];if("mousedown"===t)this._downel=n,this._upel=n;else if("mosueup"===t)this._upel=n;else if("click"===t&&this._downel!==this._upel)return;this.dispatchtoelement(i,t,e)}}),r.mixin(u,o),r.mixin(u,a),u}),e("zrender/graphic/helper/poly",[we,"./smoothspline","./smoothbezier"],function(t){var e=t("./smoothspline"),i=t("./smoothbezier");return{buildpath:function(t,n,a){var o=n.points,s=n.smooth;if(o&&o[k]>=2){if(s&&"spline"!==s){var l=i(o,s,a,n.smoothconstraint);t[r](o[0][0],o[0][1]);for(var u=o[k],c=0;(a?u:u-1)>c;c++){var h=l[2*c],f=l[2*c+1],d=o[(c+1)%u];t.beziercurveto(h[0],h[1],f[0],f[1],d[0],d[1])}}else{"spline"===s&&(o=e(o,a)),t[r](o[0][0],o[0][1]);for(var c=1,p=o[k];p>c;c++)t.lineto(o[c][0],o[c][1])}a&&t.closepath()}}}}),e("zrender/storage",[we,"./core/util","./core/env","./container/group","./core/timsort"],function(t){function e(t,e){return t[m]===e[m]?t.z===e.z?t.z2-e.z2:t.z-e.z:t[m]-e[m]}var i=t("./core/util"),r=t("./core/env"),a=t("./container/group"),o=t("./core/timsort"),s=function(){this._roots=[],this._displaylist=[],this._displaylistlen=0};return s[te]={constructor:s,traverse:function(t,e){for(var i=0;ia;a++)this._updateandadddisplayable(i[a],null,t);n[k]=this._displaylistlen,r[v]&&o(n,e)},_updateandadddisplayable:function(t,e,i){if(!t.ignore||i){t.beforeupdate(),t[n]&&t[xe](),t.afterupdate();var r=t.clippath;if(r){e=e?e.slice():[];for(var a=r,o=t;a;)a.parent=o,a.updatetransform(),e.push(a),o=a,a=a.clippath}if(t.isgroup){for(var s=t._children,l=0;le;e++)this.delroot(t[e]);else{var o=i[f](this._roots,t);o>=0&&(this.delfromstorage(t),this._roots[c](o,1),t instanceof a&&t.delchildrenfromstorage(this))}},addtostorage:function(t){return t.__storage=this,t.dirty(!1),this},delfromstorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderlist=this._roots=null},displayablesortfunc:e},s}),e("zrender/dom/handlerproxy",[we,"../core/event",i,"../mixin/eventful","../core/env","../core/gesturemgr"],function(t){function e(t){return"mousewheel"===t&&h.browser.firefox?"dommousescroll":t}function n(t,e,i){var n=t._gesturemgr;"start"===i&&n.clear();var r=n.recognize(e,t.handler.findhover(e.zrx,e.zry,null)[ue],t.dom);if("end"===i&&n.clear(),r){var a=r.type;e.gestureevent=a,t.handler.dispatchtoelement({target:r[ue]},a,r.event)}}function r(t){t._touching=!0,cleartimeout(t._touchtimer),t._touchtimer=settimeout(function(){t._touching=!1},700)}function a(t){var e=t.pointertype;return"pen"===e||"touch"===e}function o(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}u.each(y,function(e){t._handlers[e]=u.bind(b[e],t)}),u.each(x,function(e){t._handlers[e]=u.bind(b[e],t)}),u.each(g,function(i){t._handlers[i]=e(b[i],t)})}function s(t){function i(i,n){u.each(i,function(i){d(t,e(i),n._handlers[i])},n)}c.call(this),this.dom=t,this._touching=!1,this._touchtimer,this._gesturemgr=new f,this._handlers={},o(this),h.pointereventssupported?i(x,this):(h.toucheventssupported&&i(y,this),i(g,this))}var l=t("../core/event"),u=t(i),c=t("../mixin/eventful"),h=t("../core/env"),f=t("../core/gesturemgr"),d=l.addeventlistener,p=l.removeeventlistener,m=l.normalizeevent,v=300,g=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],y=["touchstart","touchend","touchmove"],_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},x=u.map(g,function(t){var e=t[t]("mouse","pointer");return _[e]?e:t}),b={mousemove:function(t){t=m(this.dom,t),this[z]("mousemove",t)},mouseout:function(t){t=m(this.dom,t);var e=t.toelement||t.relatedtarget;if(e!=this.dom)for(;e&&9!=e.nodetype;){if(e===this.dom)return;e=e.parentnode}this[z]("mouseout",t)},touchstart:function(t){t=m(this.dom,t),t.zrbytouch=!0,this._lasttouchmoment=new date,n(this,t,"start"),b.mousemove.call(this,t),b.mousedown.call(this,t),r(this)},touchmove:function(t){t=m(this.dom,t),t.zrbytouch=!0,n(this,t,"change"),b.mousemove.call(this,t),r(this)},touchend:function(t){t=m(this.dom,t),t.zrbytouch=!0,n(this,t,"end"),b.mouseup.call(this,t),+new date-this._lasttouchmoment=0&&this._clips[c](i,1)},removeanimator:function(t){for(var e=t.getclips(),i=0;io;o++){var s=i[o],l=s.step(t,e);l&&(r.push(l),a.push(s))}for(var o=0;n>o;)i[o]._needsremove?(i[o]=i[n-1],i.pop(),n--):o++;n=r[k];for(var o=0;n>o;o++)a[o].fire(r[o]);this._time=t,this.onframe(e),this[z]("frame",e),this.stage[xe]&&this.stage[xe]()},_startloop:function(){function t(){e._running&&(r(t),!e._paused&&e._update())}var e=this;this._running=!0,r(t)},start:function(){this._time=(new date).gettime(),this._pausedtime=0,this._startloop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pausestart=(new date).gettime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedtime+=(new date).gettime()-this._pausestart,this._paused=!1)},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new a(t,e.loop,e.getter,e.setter);return this.addanimator(i),i}},e.mixin(o,n),o}),e("zrender/painter",[we,"./config","./core/util","./core/log","./core/boundingrect","./core/timsort","./layer","./animation/requestanimationframe","./graphic/image"],function(t){function e(t){return parseint(t,10)}function i(t){return t?t.__builtin__?!0:typeof t.resize!==b||typeof t.refresh!==b?!1:!0:!1}function r(t){t.__unusedcount++}function s(t){1==t.__unusedcount&&t.clear()}function l(t,e,i){return t.copy(t[fe]()),t[a]&&t[u](t[a]),s.width=e,s[he]=i,!t.intersect(s)}function h(t,e){if(t==e)return!1;if(!t||!e||t[k]!==e[k])return!0;for(var i=0;i=0&&i[c](n,1),t.__hovermir=null},clearhover:function(){for(var t=this._hoverelements,e=0;er;){var o=t[r],s=o.__from;s&&s.__zr?(r++,s.invisible||(o[a]=s[a],o.invtransform=s.invtransform,o.__clippaths=s.__clippaths,this._dopaintel(o,i,!0,n))):(t[c](r,1),s.__hovermir=null,e--)}i.ctx.restore()}},_startprogessive:function(){function t(){i===e._progressivetoken&&e.storage&&(e._dopaintlist(e.storage.getdisplaylist()),e._furtherprogressive?(e._progress++,x(t)):e._progressivetoken=-1)}var e=this;if(e._furtherprogressive){var i=e._progressivetoken=+new date;e._progress++,x(t)}},_clearprogressive:function(){this._progressivetoken=-1,this._progress=0,m.each(this._progressivelayers,function(t){t[n]&&t.clear()})},_paintlist:function(t,e){null==e&&(e=!1),this._updatelayerstatus(t),this._clearprogressive(),this.eachbuiltinlayer(r),this._dopaintlist(t,e),this.eachbuiltinlayer(s)},_dopaintlist:function(t,e){function i(t){var e=o.dpr||1;o.save(),o.globalalpha=1,o.shadowblur=0,r[n]=!0,o.settransform(1,0,0,1,0,0),o.drawimage(t.dom,0,0,h*e,f*e),o.restore()}for(var r,a,o,s,l,u,c=0,h=this._width,f=this._height,d=this._progress,p=0,g=t[k];g>p;p++){var y=t[p],_=this._singlecanvas?0:y[m],x=y.__frame;if(0>x&&l&&(i(l),l=null),a!==_&&(o&&o.restore(),s={},a=_,r=this.getlayer(a),r.__builtin__||v("zlevel "+a+" has been used by unkown layer "+r.id),o=r.ctx,o.save(),r.__unusedcount=0,(r[n]||e)&&r.clear()),r[n]||e){if(x>=0){if(!l){if(l=this._progressivelayers[math.min(c++,w-1)],l.ctx.save(),l.renderscope={},l&&l.__progress>l.__maxprogress){p=l.__nextidxnotprog-1;continue}u=l.__progress,l[n]||(d=u),l.__progress=d+1}x===d&&this._dopaintel(y,l,!0,l.renderscope)}else this._dopaintel(y,r,e,s);y[n]=!1}}l&&i(l),o&&o.restore(),this._furtherprogressive=!1,m.each(this._progressivelayers,function(t){t.__maxprogress>=t.__progress&&(this._furtherprogressive=!0)},this)},_dopaintel:function(t,e,i,r){var o=e.ctx,s=t[a];if(!(!e[n]&&!i||t.invisible||0===t.style[ee]||s&&!s[0]&&!s[3]||t.culling&&l(t,this._width,this._height))){var u=t.__clippaths;(r.prevcliplayer!==e||h(u,r.prevelclippaths))&&(r.prevelclippaths&&(r.prevcliplayer.ctx.restore(),r.prevcliplayer=r.prevelclippaths=null,r.prevel=null),u&&(o.save(),f(u,o),r.prevcliplayer=e,r.prevelclippaths=u)),t.beforebrush&&t.beforebrush(o),t.brush(o,r.prevel||null),r.prevel=t,t.afterbrush&&t.afterbrush(o)}},getlayer:function(t){if(this._singlecanvas)return this._layers[0];var e=this._layers[t];return e||(e=new _("zr_"+t,this,this.dpr),e.__builtin__=!0,this._layerconfig[t]&&m.merge(e,this._layerconfig[t],!0),this.insertlayer(t,e),e.initcontext()),e},insertlayer:function(t,e){var n=this._layers,r=this._zlevellist,a=r[k],o=null,s=-1,l=this._domroot;if(n[t])return void v("zlevel "+t+" has been used already");if(!i(e))return void v("layer of zlevel "+t+" is not valid");if(a>0&&t>r[0]){for(s=0;a-1>s&&!(r[s]t);s++);o=n[r[s]]}if(r[c](s+1,0,t),n[t]=e,!e.virtual)if(o){var u=o.dom;u.nextsibling?l.insertbefore(e.dom,u.nextsibling):l.appendchild(e.dom)}else l.firstchild?l.insertbefore(e.dom,l.firstchild):l.appendchild(e.dom)},eachlayer:function(t,e){var i,n,r=this._zlevellist;for(n=0;nc;c++){var f=t[c],d=this._singlecanvas?0:f[m],p=e[d],v=f.progressive;if(p&&(p.elcount++,p[n]=p[n]||f[n]),v>=0){s!==v&&(s=v,u++);var g=f.__frame=u-1;if(!o){var y=math.min(l,w-1);o=i[y],o||(o=i[y]=new _("progressive",this,this.dpr),o.initcontext()),o.__maxprogress=0}o[n]=o[n]||f[n],o.elcount++,o.__maxprogress=math.max(o.__maxprogress,g),o.__maxprogress>=o.__progress&&(p[n]=!0)}else f.__frame=-1,o&&(o.__nextidxnotprog=c,l++,o=null)}o&&(l++,o.__nextidxnotprog=c),this.eachbuiltinlayer(function(t,e){r[e]!==t.elcount&&(t[n]=!0)}),i[k]=math.min(l,w),m.each(i,function(t,e){a[e]!==t.elcount&&(f[n]=!0),t[n]&&(t.__progress=0)})},clear:function(){return this.eachbuiltinlayer(this._clearlayer),this},_clearlayer:function(t){t.clear()},configlayer:function(t,e){if(e){var i=this._layerconfig;i[t]?m.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&m.merge(n,i[t],!0)}},dellayer:function(t){var e=this._layers,i=this._zlevellist,n=e[t];n&&(n.dom.parentnode.removechild(n.dom),delete e[t],i[c](m[f](i,t),1))},resize:function(t,e){var i=this._domroot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n[he]=e),t=this._getsize(0),e=this._getsize(1),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style[he]=e+"px";for(var r in this._layers)this._layers.hasownproperty(r)&&this._layers[r].resize(t,e);m.each(this._progressivelayers,function(i){i.resize(t,e)}),this.refresh(!0)}return this._width=t,this._height=e,this},clearlayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerhtml="",this.root=this.storage=this._domroot=this._layers=null},getrenderedcanvas:function(t){if(t=t||{},this._singlecanvas)return this._layers[0].dom;var e=new _("image",this,t.pixelratio||this.dpr);e.initcontext(),e.clearcolor=t.backgroundcolor,e.clear();for(var i=this.storage.getdisplaylist(!0),n={},r=0;ry;y++)i(f,f,t[y]),n(d,d,t[y]);i(f,f,u[0]),n(d,d,u[1])}for(var y=0,_=t[k];_>y;y++){var x=t[y];if(l)c=t[y?y-1:_-1],h=t[(y+1)%_];else{if(0===y||y===_-1){p.push(e.clone(t[y]));continue}c=t[y-1],h=t[y+1]}e.sub(m,h,c),r(m,m,s);var b=a(x,c),w=a(x,h),t=b+w;0!==t&&(b/=t,w/=t),r(v,m,-b),r(g,m,w);var m=o([],x,v),s=o([],x,g);u&&(n(m,m,f),i(m,m,d),n(s,s,f),i(s,s,d)),p.push(m),p.push(s)}return l&&p.push(p.shift()),p}}),e("zrender/graphic/helper/smoothspline",[we,"../../core/vector"],function(t){function e(t,e,i,n,r,a,o){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*o+(-3*(e-i)-2*s-l)*a+s*r+e}var i=t("../../core/vector");return function(t,n){for(var r=t[k],a=[],o=0,s=1;r>s;s++)o+=i.distance(t[s-1],t[s]);var l=o/2;l=r>l?r:l;for(var s=0;l>s;s++){var u,c,h,f=s/(l-1)*(n?r:r-1),d=math.floor(f),p=f-d,m=t[d%r];n?(u=t[(d-1+r)%r],c=t[(d+1)%r],h=t[(d+2)%r]):(u=t[0===d?d:d-1],c=t[d>r-2?r-1:d+1],h=t[d>r-3?r-1:d+2]);var v=p*p,g=p*v;a.push([e(u[0],m[0],c[0],h[0],p,v,g),e(u[1],m[1],c[1],h[1],p,v,g)])}return a}}),e("zrender/animation/requestanimationframe",[we],function(){return typeof window!==h&&(window.requestanimationframe||window.msrequestanimationframe||window.mozrequestanimationframe||window.webkitrequestanimationframe)||function(t){settimeout(t,16)}}),e("zrender/core/event",[we,"../mixin/eventful","./env"],function(t){function e(t){return t.getboundingclientrect?t.getboundingclientrect():{left:0,top:0}}function i(t,e,i,r){return i=i||{},r||!l[v]?n(t,e,i):l.browser.firefox&&null!=e.layerx&&e.layerx!==e.offsetx?(i.zrx=e.layerx,i.zry=e.layery):null!=e.offsetx?(i.zrx=e.offsetx,i.zry=e.offsety):n(t,e,i),i}function n(t,i,n){var r=e(t);n.zrx=i.clientx-r.left,n.zry=i.clienty-r.top}function r(t,e,n){if(e=e||window.event,null!=e.zrx)return e;var r=e.type,a=r&&r[f]("touch")>=0;if(a){var o="touchend"!=r?e.targettouches[0]:e.changedtouches[0];o&&i(t,o,e,n)}else i(t,e,e,n),e.zrdelta=e.wheeldelta?e.wheeldelta/120:-(e.detail||0)/3;return e}function a(t,e,i){u?t.addeventlistener(e,i):t.attachevent("on"+e,i)}function o(t,e,i){u?t.removeeventlistener(e,i):t.detachevent("on"+e,i)}var s=t("../mixin/eventful"),l=t("./env"),u=typeof window!==h&&!!window.addeventlistener,c=u?function(t){t.preventdefault(),t.stoppropagation(),t.cancelbubble=!0}:function(t){t.returnvalue=!1,t.cancelbubble=!0};return{clienttolocal:i,normalizeevent:r,addeventlistener:a,removeeventlistener:o,stop:c,dispatcher:s}}),e("zrender/graphic/helper/roundrect",[we],function(){return{buildpath:function(t,e){var i,n,a,o,s=e.x,l=e.y,u=e.width,c=e[he],h=e.r;0>u&&(s+=u,u=-u),0>c&&(l+=c,c=-c),typeof h===x?i=n=a=o=h:h instanceof array?1===h[k]?i=n=a=o=h[0]:2===h[k]?(i=a=h[0],n=o=h[1]):3===h[k]?(i=h[0],n=o=h[1],a=h[2]):(i=h[0],n=h[1],a=h[2],o=h[3]):i=n=a=o=0;var f;i+n>u&&(f=i+n,i*=u/f,n*=u/f),a+o>u&&(f=a+o,a*=u/f,o*=u/f),n+a>c&&(f=n+a,n*=c/f,a*=c/f),i+o>c&&(f=i+o,i*=c/f,o*=c/f),t[r](s+i,l),t.lineto(s+u-n,l),0!==n&&t.quadraticcurveto(s+u,l,s+u,l+n),t.lineto(s+u,l+c-a),0!==a&&t.quadraticcurveto(s+u,l+c,s+u-a,l+c),t.lineto(s+o,l+c),0!==o&&t.quadraticcurveto(s,l+c,s,l+c-o),t.lineto(s,l+i),0!==i&&t.quadraticcurveto(s,l,s+i,l)}}}),e("zrender/core/gesturemgr",[we,"./event"],function(t){function e(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return math.sqrt(e*e+i*i)}function i(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var n=t("./event"),r=function(){this._track=[]};r[te]={constructor:r,recognize:function(t,e,i){return this._dotrack(t,e,i),this._recognize(t)},clear:function(){return this._track[k]=0,this},_dotrack:function(t,e,i){var r=t.touches;if(r){for(var a={points:[],touches:[],target:e,event:t},o=0,s=r[k];s>o;o++){var l=r[o],u=n.clienttolocal(i,l,{});a.points.push([u.zrx,u.zry]),a.touches.push(l)}this._track.push(a)}},_recognize:function(t){for(var e in a)if(a.hasownproperty(e)){var i=a[e](this._track,t);if(i)return i}}};var a={pinch:function(t,n){var r=t[k];if(r){var a=(t[r-1]||{}).points,o=(t[r-2]||{}).points||a;if(o&&o[k]>1&&a&&a[k]>1){var s=e(a)/e(o);!isfinite(s)&&(s=1),n.pinchscale=s;var l=i(a);return n.pinchx=l[0],n.pinchy=l[1],{type:"pinch",target:t[0][ue],event:n}}}}};return r}),e("zrender/layer",[we,"./core/util","./config","./graphic/style","./graphic/pattern"],function(t){function e(){return!1}function i(t,e,i,n){var r=document[c](e),a=i[le](),o=i[se](),s=r.style;return s[ne]="absolute",s.left=0,s.top=0,s.width=a+"px",s[he]=o+"px",r.width=a*n,r[he]=o*n,r.setattribute("data-zr-dom-id",t),r}var n=t("./core/util"),r=t("./config"),a=t("./graphic/style"),o=t("./graphic/pattern"),s=function(t,a,o){var s;o=o||r.devicepixelratio,typeof t===q?s=i(t,"canvas",a,o):n[h](t)&&(s=t,t=s.id),this.id=t,this.dom=s;var l=s.style;l&&(s.onselectstart=e,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domback=null,this.ctxback=null,this.painter=a,this.config=null,this.clearcolor=0,this.motionblur=!1,this.lastframealpha=.7,this.dpr=o};return s[te]={constructor:s,elcount:0,__dirty:!0,initcontext:function(){this.ctx=this.dom.getcontext("2d"),this.ctx.dpr=this.dpr},createbackbuffer:function(){var t=this.dpr;this.domback=i("back-"+this.id,"canvas",this.painter,t),this.ctxback=this.domback.getcontext("2d"),1!=t&&this.ctxback.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,r=n.style,a=this.domback;r.width=t+"px",r[he]=e+"px",n.width=t*i,n[he]=e*i,a&&(a.width=t*i,a[he]=e*i,1!=i&&this.ctxback.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,r=e[he],s=this.clearcolor,l=this.motionblur&&!t,u=this.lastframealpha,c=this.dpr;if(l&&(this.domback||this.createbackbuffer(),this.ctxback.globalcompositeoperation="copy",this.ctxback.drawimage(e,0,0,n/c,r/c)),i.clearrect(0,0,n,r),s){var h;s[e]?(h=s.__canvasgradient||a.getgradient(i,s,{x:0,y:0,width:n,height:r}),s.__canvasgradient=h):s.image&&(h=o[te].getcanvaspattern.call(s,i)),i.save(),i.fillstyle=h||s,i.fillrect(0,0,n,r),i.restore()}if(l){var f=this.domback;i.save(),i.globalalpha=u,i.drawimage(f,0,0,n,r),i.restore()}}},s}),e("echarts/preprocessor/helper/compatstyle",[we,be],function(t){function e(t){var e=t&&t.itemstyle;e&&i.each(n,function(n){var r=e[f],a=e[d];r&&r[n]&&(t[n]=t[n]||{},t[n][f]?i.merge(t[n][f],r[n]):t[n][f]=r[n],r[n]=null),a&&a[n]&&(t[n]=t[n]||{},t[n][d]?i.merge(t[n][d],a[n]):t[n][d]=a[n],a[n]=null)})}var i=t(be),n=["areastyle","linestyle","nodestyle","linkstyle","chordstyle","label","labelline"];return function(t){if(t){e(t),e(t.markpoint),e(t.markline);var n=t.data;if(n){for(var r=0;rd;d++)this._add&&this._add(h[d]);else this._add&&this._add(h)}}}},e}),e("echarts/chart/helper/createlistfromarray",[we,"../../data/list","../../data/helper/completedimensions",be,"../../util/model","../../coordinatesystem"],function(t){function e(t){for(var e=0;e=0&&i(t)?function(t,e,i,n){return c.isdataitemoption(t)&&(_.hasitemoption=!0),n===y?i:d(f(t),g[n])}:function(t,e,i,n){var r=f(t),a=d(r&&r[n],g[n]);c.isdataitemoption(t)&&(_.hasitemoption=!0);var o=v&&v.categoryaxesmodels;return o&&o[e]&&typeof a===q&&(b[e]=b[e]||o[e].getcategories(),a=u[f](b[e],a),0>a&&!isnan(a)&&(a=+a)),a};return _.hasitemoption=!1,_.initdata(t,x,w),_}function r(t){return"category"!==t&&"time"!==t}function a(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function o(t,e){var i,n=[],r=t&&t.dimensions[t.categoryindex];if(r&&(i=t.categoryaxesmodels[r.name]),i){var a=i.getcategories();if(a){var o=e[k];if(u[w](e[0])&&e[0][k]>1){n=[];for(var s=0;o>s;s++)n[s]=a[e[s][t.categoryindex||0]]}else n=a.slice(0)}}return n}var s=t("../../data/list"),l=t("../../data/helper/completedimensions"),u=t(be),c=t("../../util/model"),h=t("../../coordinatesystem"),f=c.getdataitemvalue,d=c.converdatavalue,p={cartesian2d:function(t,e,i){var n=u.map(["xaxis","yaxis"],function(t){return i.querycomponents({maintype:t,index:e.get(t+"index"),id:e.get(t+"id")})[0]}),o=n[0],s=n[1],c=o.get("type"),h=s.get("type"),f=[{name:"x",type:a(c),stackable:r(c)},{name:"y",type:a(h),stackable:r(h)}],d="category"===c,p="category"===h;l(f,t,{defaultnames:["x","y","z"]});var m={};return d&&(m.x=o),p&&(m.y=s),{dimensions:f,categoryindex:d?0:p?1:-1,categoryaxesmodels:m}},singleaxis:function(t,e,i){var n=i.querycomponents({maintype:"singleaxis",index:e.get("singleaxisindex"),id:e.get("singleaxisid")})[0],o=n.get("type"),s="category"===o,u=[{name:"single",type:a(o),stackable:r(o)}];l(u,t);var c={};return s&&(c.single=n),{dimensions:u,categoryindex:s?0:-1,categoryaxesmodels:c}},polar:function(t,e,i){var n=i.querycomponents({maintype:"polar",index:e.get("polarindex"),id:e.get("polarid")})[0],o=n.findaxismodel("angleaxis"),s=n.findaxismodel("radiusaxis"),u=s.get("type"),c=o.get("type"),h=[{name:"radius",type:a(u),stackable:r(u)},{name:"angle",type:a(c),stackable:r(c)}],f="category"===c,d="category"===u;l(h,t,{defaultnames:["radius","angle","value"]});var p={};return d&&(p.radius=s),f&&(p.angle=o),{dimensions:h,categoryindex:f?1:d?0:-1,categoryaxesmodels:p}},geo:function(t){return{dimensions:l([{name:"lng"},{name:"lat"}],t,{defaultnames:["lng","lat","value"]})}}};return n}),e("echarts/coord/axishelper",[we,"../scale/ordinal","../scale/interval","../scale/time","../scale/log","../scale/scale","../util/number",be,"zrender/contain/text"],function(t){var e=t("../scale/ordinal"),i=t("../scale/interval");t("../scale/time"),t("../scale/log");var n=t("../scale/scale"),r=t("../util/number"),a=t(be),o=t("zrender/contain/text"),s={};return s.getscaleextent=function(t,e){var i,n,o,s=t.type,l=e.getmin(),u=e.getmax(),c=null!=l,h=null!=u,f=t.getextent();return"ordinal"===s?i=(e.get("data")||[])[k]:(n=e.get("boundarygap"),a[w](n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=r.parsepercent(n[0],1),n[1]=r.parsepercent(n[1],1),o=f[1]-f[0]||math.abs(f[0])),null==l&&(l="ordinal"===s?i?0:0/0:f[0]-n[0]*o),null==u&&(u="ordinal"===s?i?i-1:0/0:f[1]+n[1]*o),"datamin"===l&&(l=f[0]),"datamax"===u&&(u=f[1]),(null==l||!isfinite(l))&&(l=0/0),(null==u||!isfinite(u))&&(u=0/0),t.setblank(a.eqnan(l)||a.eqnan(u)),e.getneedcrosszero()&&(l>0&&u>0&&!c&&(l=0),0>l&&0>u&&!h&&(u=0)),[l,u]},s.nicescaleextent=function(t,e){var i=s.getscaleextent(t,e),n=null!=e.getmin(),r=null!=e.getmax(),a=e.get("splitnumber");"log"===t.type&&(t.base=e.get("logbase")),t.setextent(i[0],i[1]),t.niceextent(a,n,r);var o=e.get("mininterval");if(isfinite(o)&&!n&&!r&&"interval"===t.type){var l=t.getinterval(),u=math.max(math.abs(l),o)/l;i=t.getextent();var c=(i[1]+i[0])/2;t.setextent(u*(i[0]-c)+c,u*(i[1]-c)+c),t.niceextent(a)}var l=e.get("interval");null!=l&&t.setinterval&&t.setinterval(l)},s.createscalebymodel=function(t,r){if(r=r||t.get("type"))switch(r){case"category":return new e(t.getcategories(),[1/0,-1/0]);case"value":return new i;default:return(n.getclass(r)||i)[y](t)}},s.ifaxiscrosszero=function(t){var e=t.scale.getextent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},s.getaxislabelinterval=function(t,e,i,n){var r,a=0,s=0,l=1;e[k]>40&&(l=math.floor(e[k]/40));for(var u=0;u1?l:(a+1)*l-1},s.getformattedlabels=function(t,e){var i=t.scale,n=i.gettickslabels(),r=i.getticks();return typeof e===q?(e=function(t){return function(e){return t[t]("{value}",null!=e?e:"")}}(e),a.map(n,e)):typeof e===b?a.map(r,function(i,n){return e(s.getaxisrawvalue(t,i),n)},this):n},s.getaxisrawvalue=function(t,e){return"category"===t.type?t.scale[v](e):e},s}),e("echarts/coord/axismodelcommonmixin",[we,be,"./axishelper"],function(t){function e(t){return i[h](t)&&null!=t.value?t.value:t}var i=t(be),n=t("./axishelper");return{getformattedlabels:function(){return n.getformattedlabels(this.axis,this.get("axislabel.formatter"))},getcategories:function(){return"category"===this.get("type")&&i.map(this.get("data"),e)},getmin:function(t){var e=this[m],n=t||null==e.rangestart?e.min:e.rangestart;return this.axis&&null!=n&&"datamin"!==n&&!i.eqnan(n)&&(n=this.axis.scale.parse(n)),n},getmax:function(t){var e=this[m],n=t||null==e.rangeend?e.max:e.rangeend;return this.axis&&null!=n&&"datamax"!==n&&!i.eqnan(n)&&(n=this.axis.scale.parse(n)),n},getneedcrosszero:function(){var t=this[m];return null!=t.rangestart||null!=t.rangeend?!1:!t.scale},getcoordsysmodel:i.noop,setrange:function(t,e){this[m].rangestart=t,this[m].rangeend=e},resetrange:function(){this[m].rangestart=this[m].rangeend=null}}}),e("echarts/util/symbol",[we,"./graphic","zrender/core/boundingrect"],function(t){var e=t("./graphic"),i=t("zrender/core/boundingrect"),n=e.extendshape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildpath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,o=e[he]/2;t[r](i,n-o),t.lineto(i+a,n+o),t.lineto(i-a,n+o),t.closepath()}}),a=e.extendshape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildpath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,o=e[he]/2;t[r](i,n-o),t.lineto(i+a,n),t.lineto(i,n+o),t.lineto(i-a,n),t.closepath()}}),o=e.extendshape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildpath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,a=math.max(r,e[he]),o=r/2,s=o*o/(a-o),l=n-a+o+s,u=math.asin(s/o),c=math.cos(u)*o,h=math.sin(u),f=math.cos(u);t.arc(i,l,o,math.pi-u,2*math.pi+u);var d=.6*o,p=.7*o;t.beziercurveto(i+c-h*d,l+s+f*d,i,n-p,i,n),t.beziercurveto(i,n-p,i-c+h*d,l+s+f*d,i-c,l+s),t.closepath()}}),s=e.extendshape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildpath:function(t,e){var i=e[he],n=e.width,a=e.x,o=e.y,s=n/3*2;t[r](a,o),t.lineto(a+s,o+i),t.lineto(a,o+i/4*3),t.lineto(a-s,o+i),t.lineto(a,o),t.closepath()}}),u={line:e.line,rect:e.rect,roundrect:e.rect,square:e.rect,circle:e.circle,diamond:a,pin:o,arrow:s,triangle:n},c={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[he]=n},roundrect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r[he]=n,r.r=math.min(i,n)/4},square:function(t,e,i,n,r){var a=math.min(i,n);r.x=t,r.y=e,r.width=a,r[he]=a},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[he]=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[he]=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r[he]=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r[he]=n}},h={};for(var f in u)u.hasownproperty(f)&&(h[f]=new u[f]);var d=e.extendshape({type:"symbol",shape:{symboltype:"",x:0,y:0,width:0,height:0},beforebrush:function(){var t=this.style,e=this.shape;"pin"===e.symboltype&&"inside"===t.textposition&&(t.textposition=["50%","40%"],t[me]=ae,t.textverticalalign=oe)},buildpath:function(t,e,i){var n=e.symboltype,r=h[n];"none"!==e.symboltype&&(r||(n="rect",r=h[n]),c[n](e.x,e.y,e.width,e[he],r.shape),r.buildpath(t,r.shape,i))}}),p=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symboltype?e[l]=t:this.__isemptybrush?(e[l]=t,e.fill="#fff"):(e.fill&&(e.fill=t),e[l]&&(e[l]=t)),this.dirty(!1)}},m={createsymbol:function(t,n,r,a,o,s){var l=0===t[f]("empty");l&&(t=t.substr(5,1)[u]()+t.substr(6));var u;return u=0===t[f]("image://")?new e.image({style:{image:t.slice(8),x:n,y:r,width:a,height:o}}):0===t[f]("path://")?e.makepath(t.slice(7),{},new i(n,r,a,o)):new d({shape:{symboltype:t,x:n,y:r,width:a,height:o}}),u.__isemptybrush=l,u.setcolor=p,u.setcolor(s),u}};return m}),e("echarts/data/helper/completedimensions",[we,be],function(t){function e(t,e,a){if(!e)return t;a=a||{};var o=a.dimcount;if(null==o){var s=i(e[0]);o=n[w](s)&&s[k]||1}for(var l=a.defaultnames||[],u=a.extraprefix||"extra",c=0;o>c;c++)if(!t[c]){var h=l[c]||u+(c-l[k]);t[c]=r(e,c)?{type:"ordinal",name:h}:h}return t}function i(t){return n[w](t)?t:n[h](t)?t.value:t}var n=t(be),r=e.guessordinal=function(t,e){for(var r=0,a=t[k];a>r;r++){var o=i(t[r]);if(!n[w](o))return!1;var o=o[e];if(null!=o&&isfinite(o))return!1;if(n[g](o)&&"-"!==o)return!0}return!1};return e}),e("echarts/scale/ordinal",[we,be,"./scale"],function(t){var e=t(be),i=t("./scale"),n=i[te],r=i[q]({type:"ordinal",init:function(t,e){this._data=t,this[j]=e||[0,t[k]-1]},parse:function(t){return typeof t===q?e[f](this._data,t):math.round(t)},contain:function(t){return t=this.parse(t),n[$].call(this,t)&&null!=this._data[t]},normalize:function(t){return n.normalize.call(this,this.parse(t))},scale:function(t){return math.round(n.scale.call(this,t))},getticks:function(){for(var t=[],e=this[j],i=e[0];i<=e[1];)t.push(i),i++;return t},getlabel:function(t){return this._data[t]},count:function(){return this[j][1]-this[j][0]+1},unionextentfromdata:function(t,e){this.unionextent(t.getdataextent(e,!1))},niceticks:e.noop,niceextent:e.noop});return r[y]=function(){return new r},r}),e("echarts/component/helper/mapdraw",[we,"./roamcontroller","../../component/helper/roamhelper","../../component/helper/cursorhelper","../../util/graphic",be],function(t){function e(t){var e=t.getitemstyle(),i=t.get("areacolor");return null!=i&&(e.fill=i),e}function i(t,e,i,r,a){i.off("click"),i.off("mousedown"),e.get("selectedmode")&&(i.on("mousedown",function(){t._mousedownflag=!0}),i.on("click",function(o){if(t._mousedownflag){t._mousedownflag=!1;for(var s=o[ue];!s.__regions;)s=s.parent;if(s){var l={type:("geo"===e[r]?"geo":"map")+"toggleselect",batch:u.map(s.__regions,function(t){return{name:t.name,from:a.uid}})};l[e[r]+"id"]=e.id,r[i](l),n(e,i)}}}))}function n(t,e){e.eachchild(function(e){u.each(e.__regions,function(i){e[z](t.isselected(i.name)?d:f)})})}function r(t,e){var i=new l.group;this._controller=new a(t.getzr()),this._controllerhost={target:e?i:null},this.group=i,this._updategroup=e,this._mousedownflag}var a=t("./roamcontroller"),o=t("../../component/helper/roamhelper"),s=t("../../component/helper/cursorhelper"),l=t("../../util/graphic"),u=t(be);return r[te]={constructor:r,draw:function(t,r,a,o,s){var c="geo"===t[r],h=t[n]&&t[n]();c&&r.eachcomponent({maintype:"series",subtype:"map"},function(e){h||e.gethostgeomodel()!==t||(h=e[n]())});var p=t[_e],v=this.group,g=p.scale,y={position:p[ne],scale:g};!v.childat(0)||s?v.attr(y):l.updateprops(v,y,t),v.removeall();var _=["itemstyle",f],x=["itemstyle",d],b=["label",f],w=["label",d],t={};u.each(p.regions,function(i){var n=t[i.name]||(t[i.name]=new l.group),r=new l.compoundpath({shape:{paths:[]}});n.add(r);var a,o=t.getregionmodel(i.name)||t,s=o[ge](_),p=o[ge](x),y=e(s,g),m=e(p,g),s=o[ge](b),p=o[ge](w); if(h){a=h.indexofname(i.name);var c=h.getitemvisual(a,"color",!0);c&&(y.fill=c)}var a=s[ge](ve),z=p[ge](ve);u.each(i.geometries,function(t){if("polygon"===t.type){r.shape.paths.push(new l.polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors[k]:0);e++)r.shape.paths.push(new l.polygon({shape:{points:t.interiors[e]}}))}}),r[ie](y),r.style.strokenoscale=!0,r.culling=!0;var k=s.get("show"),i=p.get("show"),d=h&&isnan(h.get("value",a)),l=h&&h.getitemlayout(a);if(c||d&&(k||i)||l&&l.showlabel){var o=h?a:i.name,r=t.getformattedlabel(o,f),e=t.getformattedlabel(o,d),b=new l.text({style:{text:k?r||i.name:"",fill:a[de](),textfont:a[pe](),textalign:"center",textverticalalign:"middle"},hoverstyle:{text:i?e||i.name:"",fill:z[de](),textfont:z[pe]()},position:i[ae].slice(),scale:[1/g[0],1/g[1]],z2:10,silent:!0});n.add(b)}if(h)h.setitemgraphicel(a,n);else{var o=t.getregionmodel(i.name);r.eventdata={componenttype:"geo",geoindex:t.componentindex,name:i.name,region:o&&o[m]||{}}}var n=n.__regions||(n.__regions=[]);n.push(i),l.sethoverstyle(n,m,{hoversilentontouch:!!t.get("selectedmode")}),v.add(n)}),this._updatecontroller(t,r,a),i(this,t,v,a,o),n(t,v)},remove:function(){this.group.removeall(),this._controller[a](),this._controllerhost={}},_updatecontroller:function(t,e,i){function n(){var e={type:"georoam",componenttype:c};return e[c+"id"]=t.id,e}var r=t[_e],a=this._controller,l=this._controllerhost;l.zoomlimit=t.get("scalelimit"),l.zoom=r.getzoom(),a.enable(t.get("roam")||!1);var c=t[r];a.off("pan").on("pan",function(t,e){this._mousedownflag=!1,o.updateviewonpan(l,t,e),i[i](u[q](n(),{dx:t,dy:e}))},this),a.off("zoom").on("zoom",function(t,e,r){if(this._mousedownflag=!1,o.updateviewonzoom(l,t,e,r),i[i](u[q](n(),{zoom:t,originx:e,originy:r})),this._updategroup){var a=this.group,s=a.scale;a[s](function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),a.setpointerchecker(function(e,n,a){return r.getviewrectafterroam()[$](n,a)&&!s.onirrelevantelement(e,i,t)})}},r}),e("echarts/component/axispointer/findpointfromseries",[we,be,"../../util/model"],function(t){var e=t(be),i=t("../../util/model");return function(t,n){var r,o=[],s=t[p];if(null==s||!(r=n.getseriesbyindex(s)))return{point:[]};var l=r[n](),c=i.querydataindex(l,t);if(null==c||e[w](c))return{point:[]};var h=l.getitemgraphicel(c),f=r[_e];if(r.gettooltipposition)o=r.gettooltipposition(c)||[];else if(f&&f.datatopoint)o=f.datatopoint(l.getvalues(e.map(f.dimensions,function(t){return r.coorddimtodatadim(t)[0]}),c,!0))||[];else if(h){var d=h[fe]().clone();d[u](h[a]),o=[d.x+d.width/2,d.y+d[he]/2]}return{point:o,el:h}}}),e("echarts/chart/helper/symboldraw",[we,"../../util/graphic","./symbol"],function(t){function e(t){this.group=new n.group,this._symbolctor=t||r}function i(t,e,i){var n=t.getitemlayout(e);return!(!n||isnan(n[0])||isnan(n[1])||i&&i(e)||"none"===t.getitemvisual(e,"symbol"))}var n=t("../../util/graphic"),r=t("./symbol"),a=e[te];return a.updatedata=function(t,e){var r=this.group,a=t.hostmodel,o=this._data,s=this._symbolctor,l={itemstyle:a[ge]("itemstyle.normal").getitemstyle(["color"]),hoveritemstyle:a[ge]("itemstyle.emphasis").getitemstyle(),symbolrotate:a.get("symbolrotate"),symboloffset:a.get("symboloffset"),hoveranimation:a.get("hoveranimation"),labelmodel:a[ge]("label.normal"),hoverlabelmodel:a[ge]("label.emphasis")};t.diff(o).add(function(n){var a=t.getitemlayout(n);if(i(t,n,e)){var o=new s(t,n,l);o.attr(ne,a),t.setitemgraphicel(n,o),r.add(o)}})[xe](function(u,c){var h=o.getitemgraphicel(c),f=t.getitemlayout(u);return i(t,u,e)?(h?(h.updatedata(t,u,l),n.updateprops(h,{position:f},a)):(h=new s(t,u),h.attr(ne,f)),r.add(h),void t.setitemgraphicel(u,h)):void r[d](h)})[d](function(t){var e=o.getitemgraphicel(t);e&&e.fadeout(function(){r[d](e)})}).execute(),this._data=t},a.updatelayout=function(){var t=this._data;t&&t.eachitemgraphicel(function(e,i){var n=t.getitemlayout(i);e.attr(ne,n)})},a[d]=function(t){var e=this.group,i=this._data;i&&(t?i.eachitemgraphicel(function(t){t.fadeout(function(){e[d](t)})}):e.removeall())},e}),e("echarts/component/marker/markerhelper",[we,be,"../../util/number"],function(t){function e(t){return!(isnan(parsefloat(t.x))&&isnan(parsefloat(t.y)))}function i(t){return!isnan(parsefloat(t.x))&&!isnan(parsefloat(t.y))}function n(t,e,i){var n=-1;do n=math.max(o.getprecision(t.get(e,i)),n),t=t.stackedon;while(t);return n}function r(t,e,i,r,a,o){var s=[],l=p(e,r,t),u=e.indicesofnearest(r,l,!0)[0];s[a]=e.get(i,u,!0),s[o]=e.get(r,u,!0);var c=n(e,r,u);return c>=0&&(s[o]=+s[o].tofixed(c)),s}var a=t(be),o=t("../../util/number"),s=a[f],l=a.curry,u={min:l(r,"min"),max:l(r,"max"),average:l(r,"average")},c=function(t,e){var n=t[n](),r=t[_e];if(e&&!i(e)&&!a[w](e.coord)&&r){var o=r.dimensions,l=h(e,n,r,t);if(e=a.clone(e),e.type&&u[e.type]&&l.baseaxis&&l.valueaxis){var c=s(o,l.baseaxis.dim),f=s(o,l.valueaxis.dim);e.coord=u[e.type](n,l.basedatadim,l.valuedatadim,c,f),e.value=e.coord[f]}else{for(var d=[null!=e.xaxis?e.xaxis:e.radiusaxis,null!=e.yaxis?e.yaxis:e.angleaxis],m=0;2>m;m++)if(u[d[m]]){var v=t.coorddimtodatadim(o[m])[0];d[m]=p(n,v,d[m])}e.coord=d}}return e},h=function(t,e,i,n){var r={};return null!=t.valueindex||null!=t.valuedim?(r.valuedatadim=null!=t.valueindex?e.getdimension(t.valueindex):t.valuedim,r.valueaxis=i.getaxis(n.datadimtocoorddim(r.valuedatadim)),r.baseaxis=i.getotheraxis(r.valueaxis),r.basedatadim=n.coorddimtodatadim(r.baseaxis.dim)[0]):(r.baseaxis=n.getbaseaxis(),r.valueaxis=i.getotheraxis(r.baseaxis),r.basedatadim=n.coorddimtodatadim(r.baseaxis.dim)[0],r.valuedatadim=n.coorddimtodatadim(r.valueaxis.dim)[0]),r},f=function(t,i){return t&&t.containdata&&i.coord&&!e(i)?t.containdata(i.coord):!0},d=function(t,e,i,n){return 2>n?t.coord&&t.coord[n]:t.value},p=function(t,e,i){if("average"===i){var n=0,r=0;return t.each(e,function(t){isnan(t)||(n+=t,r++)},!0),n/r}return t.getdataextent(e,!0)["max"===i?1:0]};return{datatransform:c,datafilter:f,dimvaluegetter:d,getaxisinfo:h,numcalculate:p}}),e("echarts/component/marker/markerview",[we,"../../echarts"],function(t){return t("../../echarts")[ye]({type:"marker",init:function(){this.markergroupmap={}},render:function(t,e,i){var n=this.markergroupmap;for(var r in n)n.hasownproperty(r)&&(n[r].__keep=!1);var a=this.type+"model";e.eachseries(function(t){var n=t[a];n&&this.renderseries(t,n,e,i)},this);for(var r in n)n.hasownproperty(r)&&!n[r].__keep&&this.group[d](n[r].group)},renderseries:function(){}})}),e("echarts/component/helper/roamcontroller",[we,"zrender/mixin/eventful",be,"zrender/core/event","./interactionmutex"],function(t){function e(t){this.pointerchecker,this._zr=t;var e=u.bind,s=e(i,this),c=e(n,this),h=e(r,this),f=e(a,this),d=e(o,this);l.call(this),this.setpointerchecker=function(t){this.pointerchecker=t},this.enable=function(e){this.disable(),null==e&&(e=!0),(e===!0||"move"===e||"pan"===e)&&(t.on("mousedown",s),t.on("mousemove",c),t.on("mouseup",h)),(e===!0||"scale"===e||"zoom"===e)&&(t.on("mousewheel",f),t.on("pinch",d))},this.disable=function(){t.off("mousedown",s),t.off("mousemove",c),t.off("mouseup",h),t.off("mousewheel",f),t.off("pinch",d)},this[a]=this.disable,this.isdragging=function(){return this._dragging},this.ispinching=function(){return this._pinching}}function i(t){if(!t[ue]||!t[ue].draggable){var e=t.offsetx,i=t.offsety;this.pointerchecker&&this.pointerchecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function n(t){if(this._dragging&&(c.stop(t.event),"pinch"!==t.gestureevent)){if(h.istaken(this._zr,"globalpan"))return;var e=t.offsetx,i=t.offsety,n=this._x,r=this._y,a=e-n,o=i-r;this._x=e,this._y=i,c.stop(t.event),this[z]("pan",a,o,n,r,e,i)}}function r(){this._dragging=!1}function a(t){if(0!==t.wheeldelta){var e=t.wheeldelta>0?1.1:1/1.1;s.call(this,t,e,t.offsetx,t.offsety)}}function o(t){if(!h.istaken(this._zr,"globalpan")){var e=t.pinchscale>1?1.1:1/1.1;s.call(this,t,e,t.pinchx,t.pinchy)}}function s(t,e,i,n){this.pointerchecker&&this.pointerchecker(t,i,n)&&(c.stop(t.event),this[z]("zoom",e,i,n))}var l=t("zrender/mixin/eventful"),u=t(be),c=t("zrender/core/event"),h=t("./interactionmutex");return u.mixin(e,l),e}),e("echarts/component/helper/roamhelper",[we],function(){var t={};return t.updateviewonpan=function(t,e,i){var n=t[ue],r=n[ne];r[0]+=e,r[1]+=i,n.dirty()},t.updateviewonzoom=function(t,e,i,n){var r=t[ue],a=t.zoomlimit,o=r[ne],s=r.scale,l=t.zoom=t.zoom||1;if(l*=e,a){var u=a.min||0,c=a.max||1/0;l=math.max(math.min(c,l),u)}var h=l/t.zoom;t.zoom=l,o[0]-=(i-o[0])*(h-1),o[1]-=(n-o[1])*(h-1),s[0]*=h,s[1]*=h,r.dirty()},t}),e("echarts/component/helper/cursorhelper",[we],function(){var t={},e={axispointer:1,tooltip:1,brush:1};return t.onirrelevantelement=function(t,i,n){var r=i.getcomponentbyelement(t.toptarget),a=r&&r[_e];return r&&r!==n&&!e[r[r]]&&a&&a.model!==n},t}),e("echarts/component/axispointer/globallistener",[we,x,be,"../../util/model"],function(t){function e(t,e){function o(n,r){t.on(n,function(n){var o=a(e);u(l(t).records,function(t){t&&r(t,n,o[i])}),i(o.pendings,e)})}l(t).initialized||(l(t).initialized=!0,o("click",s.curry(r,"click")),o("mousemove",s.curry(r,"mousemove")),o("globalout",n))}function i(t,e){var i,n=t.showtip[k],r=t.hidetip[k];n?i=t.showtip[n-1]:r&&(i=t.hidetip[r-1]),i&&(i[i]=null,e[i](i))}function n(t,e,i){t.handler("leave",null,i)}function r(t,e,i,n){e.handler(t,i,n)}function a(t){var e={showtip:[],hidetip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n[i]=i,t[i](n))};return{dispatchaction:i,pendings:e}}var o=t(x),s=t(be),l=t("../../util/model").makegetter(),u=s.each,c={};return c.register=function(t,i,n){if(!o.node){var r=i.getzr();l(r).records||(l(r).records={}),e(r,i);var a=l(r).records[t]||(l(r).records[t]={});a.handler=n}},c.unregister=function(t,e){if(!o.node){var i=e.getzr(),n=(l(i).records||{})[t];n&&(l(i).records[t]=null)}},c}),e("echarts/chart/helper/symbol",[we,be,"../../util/symbol","../../util/graphic","../../util/number"],function(t){function e(t,e){var i=t.getitemvisual(e,"symbolsize");return i instanceof array?i.slice():[+i,+i]}function i(t){return[t[0]/2,t[1]/2]}function n(t,e,i){u.group.call(this),this.updatedata(t,e,i)}function r(t,e){this.parent.drift(t,e)}var a=t(be),l=t("../../util/symbol"),u=t("../../util/graphic"),c=t("../../util/number"),h=n[te];h._createsymbol=function(t,e,n,a){this.removeall();var o=e.hostmodel,s=e.getitemvisual(n,"color"),c=l.createsymbol(t,-1,-1,2,2,s);c.attr({z2:100,culling:!0,scale:[0,0]}),c.drift=r,u.initprops(c,{scale:i(a)},o,n),this._symboltype=t,this.add(c)},h.stopsymbolanimation=function(t){this.childat(0).stopanimation(t)},h.getsymbolpath=function(){return this.childat(0)},h.getscale=function(){return this.childat(0).scale},h.highlight=function(){this.childat(0)[z](d)},h.downplay=function(){this.childat(0)[z](f)},h.setz=function(t,e){var i=this.childat(0);i[m]=t,i.z=e},h.setdraggable=function(t){var e=this.childat(0);e.draggable=t,e.cursor=t?"move":"pointer"},h.updatedata=function(t,n,r){this[ce]=!1;var a=t.getitemvisual(n,"symbol")||"circle",o=t.hostmodel,s=e(t,n);if(a!==this._symboltype)this._createsymbol(a,t,n,s);else{var l=this.childat(0);l[ce]=!1,u.updateprops(l,{scale:i(s)},o,n)}this._updatecommon(t,n,s,r),this._seriesmodel=o};var p=["itemstyle",f],m=["itemstyle",d],v=["label",f],g=["label",d];return h._updatecommon=function(t,e,n,r){var l=this.childat(0),h=t.hostmodel,y=t.getitemvisual(e,"color");"image"!==l.type&&l.usestyle({strokenoscale:!0}),r=r||null;var _=r&&r.itemstyle,x=r&&r.hoveritemstyle,b=r&&r.symbolrotate,w=r&&r.symboloffset,t=r&&r.labelmodel,m=r&&r.hoverlabelmodel,s=r&&r.hoveranimation;if(!r||t.hasitemoption){var p=t.getitemmodel(e);_=p[ge](p).getitemstyle(["color"]),x=p[ge](m).getitemstyle(),b=p[s]("symbolrotate"),w=p[s]("symboloffset"),t=p[ge](v),m=p[ge](g),s=p[s]("hoveranimation")}else x=a[q]({},x);var c=l.style;l.attr(o,(b||0)*math.pi/180||0),w&&l.attr(ne,[c.parsepercent(w[0],n[0]),c.parsepercent(w[1],n[1])]),l.setcolor(y),l[ie](_);var a=t.getitemvisual(e,ee);null!=a&&(c[ee]=a);for(var z,k,i=t.dimensions.slice();i[k]&&(z=i.pop(),k=t.getdimensioninfo(z).type,"ordinal"===k||"time"===k););null!=z&&t[s]("show")?(u.settext(c,t,y),c.text=a.retrieve(h.getformattedlabel(e,f),t.get(z,e))):c.text="",null!=z&&m[s]("show")?(u.settext(x,m,y),x.text=a.retrieve(h.getformattedlabel(e,d),t.get(z,e))):x.text="",l.off("mouseover").off("mouseout").off(d).off(f),l.hoverstyle=x,u.sethoverstyle(l);var d=i(n);if(s&&h.isanimationenabled()){var l=function(){var t=d[1]/d[0];this.animateto({scale:[math.max(1.1*d[0],d[0]+3),math.max(1.1*d[1],d[1]+3*t)]},400,"elasticout")},o=function(){this.animateto({scale:d},400,"elasticout")};l.on("mouseover",l).on("mouseout",o).on(d,l).on(f,o)}},h.fadeout=function(t){var e=this.childat(0);this[ce]=e[ce]=!0,e.style.text="",u.updateprops(e,{scale:[0,0]},this._seriesmodel,this[b],t)},a[y](n,u.group),n}),e("echarts/component/helper/interactionmutex",[we,"../../echarts"],function(t){function e(t){return t[i]||(t[i]={})}var i="\x00_ec_interaction_mutex",n={take:function(t,i,n){var r=e(t);r[i]=n},release:function(t,i,n){var r=e(t),a=r[i];a===n&&(r[i]=null)},istaken:function(t,i){return!!e(t)[i]}};return t("../../echarts").registeraction({type:"takeglobalcursor",event:"globalcursortaken",update:"update"},function(){}),n}),e("echarts/component/axispointer/viewhelper",[we,be,"../../util/graphic","zrender/contain/text","../../util/format",w,"../../coord/axishelper","../axis/axisbuilder"],function(t){function e(t,e,i,n){var r=n[le](),a=n[se]();t[0]=math.min(t[0]+e,r)-e,t[1]=math.min(t[1]+i,a)-i,t[0]=math.max(t[0],0),t[1]=math.max(t[1],0)}var i=t(be),n=t("../../util/graphic"),r=t("zrender/contain/text"),a=t("../../util/format"),s=t(w),c=t("../../coord/axishelper"),h=t("../axis/axisbuilder"),f={};return f.buildelstyle=function(t){var e,i=t.get("type"),n=t[ge](i+"style");return"line"===i?(e=n.getlinestyle(),e.fill=null):"shadow"===i&&(e=n.getareastyle(),e[l]=null),e},f.buildlabeleloption=function(t,i,n,o,s){var l=n.get("value"),u=f.getvaluelabel(l,i.axis,i[j],n.get("seriesdataindices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),c=n[ge]("label"),h=c[ge](ve),d=a.normalizecssarray(c.get("padding")||0),p=h[pe](),m=r[fe](u,p,s[me],s.textbaseline),v=s[ne],g=m.width+d[1]+d[3],y=m[he]+d[0]+d[2],_=s.align;"right"===_&&(v[0]-=g),_===ae&&(v[0]-=g/2);var x=s.verticalalign;x===re&&(v[1]-=y),x===oe&&(v[1]-=y/2),e(v,g,y,o);var b=c.get("backgroundcolor");b&&"auto"!==b||(b=i.get("axisline.linestyle.color")),t.label={shape:{x:0,y:0,width:g,height:y,r:c.get("borderradius")},position:v.slice(),style:{text:u,textfont:p,textfill:h[de](),textposition:"inside",fill:b,stroke:c.get("bordercolor")||"transparent",linewidth:c.get("borderwidth")||0,shadowblur:c.get("shadowblur"),shadowcolor:c.get("shadowcolor"),shadowoffsetx:c.get("shadowoffsetx"),shadowoffsety:c.get("shadowoffsety")},z2:10}},f.getvaluelabel=function(t,e,n,r,a){var o=e.scale[v](t,{precision:a.precision}),s=a.formatter;if(s){var l={value:c.getaxisrawvalue(e,t),seriesdata:[]};i.each(r,function(t){var e=n.getseriesbyindex(t[p]),i=t.dataindexinside,r=e&&e.getdataparams(i);r&&l.seriesdata.push(r)}),i[g](s)?o=s[t]("{value}",o):i.isfunction(s)&&(o=s(l))}return o},f.gettransformedposition=function(t,e,i){var r=s[y]();return s.rotate(r,r,i[o]),s.translate(r,r,i[ne]),n[u]([t.datatocoord(e),(i.labeloffset||0)+(i.labeldirection||1)*(i.labelmargin||0)],r)},f.buildcartesiansinglelabeleloption=function(t,e,i,n,r,a){var s=h.innertextlayout(i[o],0,i.labeldirection);i.labelmargin=r.get("label.margin"),f.buildlabeleloption(e,n,r,a,{position:f.gettransformedposition(n.axis,t,i),align:s[me],verticalalign:s.textverticalalign})},f.makelineshape=function(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}},f.makerectshape=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},f.makesectorshape=function(t,e,i,n,r,a){return{cx:t,cy:e,r0:i,r:n,startangle:r,endangle:a,clockwise:!0}},f}),e("echarts/component/axispointer/baseaxispointer",[we,be,"../../util/clazz","../../util/graphic","../../util/model","./modelhelper","zrender/core/event","../../util/throttle"],function(t){function e(){}function i(t,e,i,r){n(f(i).lastprop,r)||(f(i).lastprop=r,e?h.updateprops(i,r,t):(i.stopanimation(),i.attr(r)))}function n(t,e){if(u[h](t)&&u[h](e)){var i=!0;return u.each(e,function(e,r){i&=n(t[r],e)}),!!i}return t===e}function r(t,e){t[e.get("label.show")?"show":"hide"]()}function a(t){return{position:t[ne].slice(),rotation:t[o]||0}}function s(t,e){var i=t.get("icon"),n={x:-1,y:-1,width:2,height:2},r=u[q]({style:{strokenoscale:!0},recthover:!0,cursor:"move",draggable:!0},e);return 0===i[f]("image://")?(n.image=i.slice(8),r.style=n,new h.image(r)):h.makepath(i[t]("path://",""),r,n,ae)}function l(t,e,i){var n=e.get("z"),r=e.get(m);t&&t[s](function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t[m]=r),t[ce]=i)})}var u=t(be),c=t("../../util/clazz"),h=t("../../util/graphic"),f=t("../../util/model").makegetter(),d=t("./modelhelper"),p=t("zrender/core/event"),m=t("../../util/throttle"),v=u.clone,g=u.bind;return e[te]={_group:null,_lastgraphickey:null,_handle:null,_dragging:!1,_lastvalue:null,_laststatus:null,_payloadinfo:null,animationthreshold:15,render:function(t,e,n,r){var a=e.get("value"),o=e.get("status");if(this._axismodel=t,this._axispointermodel=e,this._api=n,r||this._lastvalue!==a||this._laststatus!==o){this._lastvalue=a,this._laststatus=o;var s=this._group,c=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(c&&c.hide());s&&s.show(),c&&c.show();var f={};this.makeeloption(f,a,t,e,n);var d=f.graphickey;d!==this._lastgraphickey&&this.clear(n),this._lastgraphickey=d;var p=this._moveanimation=this.determineanimation(t,e);if(s){var m=u.curry(i,e,p);this.updatepointerel(s,f,m,e),this.updatelabelel(s,f,m,e)}else s=this._group=new h.group,this.createpointerel(s,f,t,e),this.createlabelel(s,f,t,e),n.getzr().add(s);l(s,e,!0),this._renderhandle(a)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineanimation:function(t,e){var i=e.get(g),n=t.axis,r="category"===n.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===i||null==i){var o=this.animationthreshold;if(r&&n.getbandwidth()>o)return!0;if(a){var s=d.getaxisinfo(t).seriesdatacount,l=n.getextent();return math.abs(l[0]-l[1])/s>o}return!1}return i===!0},makeeloption:function(){},createpointerel:function(t,e){var i=e.pointer;if(i){var n=f(t).pointerel=new h[i.type](v(e.pointer));t.add(n)}},createlabelel:function(t,e,i,n){if(e.label){var a=f(t).labelel=new h.rect(v(e.label));t.add(a),r(a,n)}},updatepointerel:function(t,e,i){var n=f(t).pointerel;n&&(n[ie](e.pointer.style),i(n,{shape:e.pointer.shape}))},updatelabelel:function(t,e,i,n){var a=f(t).labelel;a&&(a[ie](e.label.style),i(a,{shape:e.label.shape,position:e.label[ne]}),r(a,n))},_renderhandle:function(t){if(!this._dragging&&this.updatehandletransform){var e=this._axispointermodel,i=this._api.getzr(),n=this._handle,r=e[ge]("handle"),a=e.get("status");if(!r.get("show")||!a||"hide"===a)return n&&i[d](n),void(this._handle=null);var o;this._handle||(o=!0,n=this._handle=s(r,{onmousemove:function(t){p.stop(t.event)},onmousedown:g(this._onhandledragmove,this,0,0),drift:g(this._onhandledragmove,this),ondragend:g(this._onhandledragend,this)}),i.add(n)),l(n,e,!1);var c=["color","bordercolor","borderwidth",ee,"shadowcolor","shadowblur","shadowoffsetx","shadowoffsety"];n[ie](r.getitemstyle(null,c));var h=r.get("size");u[w](h)||(h=[h,h]),n.attr("scale",[h[0]/2,h[1]/2]),m.createorupdate(this,"_dodispatchaxispointer",r.get("throttle")||0,"fixrate"),this._movehandletovalue(t,o)}},_movehandletovalue:function(t,e){i(this._axispointermodel,!e&&this._moveanimation,this._handle,a(this.gethandletransform(t,this._axismodel,this._axispointermodel)))},_onhandledragmove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updatehandletransform(a(i),[t,e],this._axismodel,this._axispointermodel);this._payloadinfo=n,i.stopanimation(),i.attr(a(n)),f(i).lastprop=null,this._dodispatchaxispointer()}},_dodispatchaxispointer:function(){var t=this._handle;if(t){var e=this._payloadinfo,i={type:"updateaxispointer",x:e.cursorpoint[0],y:e.cursorpoint[1],tooltipoption:e.tooltipoption,highdownkey:"axispointerhandle"},n=this._axismodel.axis;i[n.dim+"axisid"]=this._axismodel.id,this._api[i](i)}},_onhandledragend:function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axispointermodel.get("value");this._movehandletovalue(e),this._api[i]({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[d](i),n&&e[d](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]}}},e[te].constructor=e,c.enableclassextend(e),e}),e("echarts/component/axis/cartesianaxishelper",[we,be],function(t){var e=t(be),i={};return i.layout=function(t,i,n){function r(t){var e=a.getaxis(t);return e.toglobalcoord(e.datatocoord(0))}n=n||{};var a=t[_e],s=i.axis,l={},u=s[ne],c=s.onzero?"onzero":u,h=s.dim,f=a.getrect(),d=[f.x,f.x+f.width,f.y,f.y+f[he]],m=i.get(p)||0,v={x:{top:d[2]-m,bottom:d[3]+m},y:{left:d[0]-m,right:d[1]+m}};v.x.onzero=math.max(math.min(r("y"),v.x[re]),v.x.top),v.y.onzero=math.max(math.min(r("x"),v.y.right),v.y.left),l[ne]=["y"===h?v.y[c]:d[0],"x"===h?v.x[c]:d[3]],l[o]=math.pi/2*("x"===h?0:1);var g={top:-1,bottom:1,left:-1,right:1};l.labeldirection=l.tickdirection=l.namedirection=g[u],l.labeloffset=s.onzero?v[h][u]-v[h].onzero:0,i.get("axistick.inside")&&(l.tickdirection=-l.tickdirection),e.retrieve(n.labelinside,i.get("axislabel.inside"))&&(l.labeldirection=-l.labeldirection);var y=i.get("axislabel.rotate");return l.labelrotate="top"===c?-y:y,l.labelinterval=s.getlabelinterval(),l.z2=1,l},i}),e("echarts/component/axis/axisview",[we,"../axispointer/modelhelper","../../echarts"],function(t){function e(t,e,a,o,s,l){var u=r.getaxispointerclass(t.axispointerclass);if(u){var c=n.getaxispointermodel(e);c?(t._axispointer||(t._axispointer=new u)).render(e,c,o,l):i(t,o)}}function i(t,e,i){var n=t._axispointer;n&&n[a](e,i),t._axispointer=null}var n=t("../axispointer/modelhelper"),r=t("../../echarts")[ye]({type:"axis",_axispointer:null,axispointerclass:null,render:function(t,i,a,o){this.axispointerclass&&n.fixvalue(t),r.superapply(this,"render",arguments),e(this,t,i,a,o,!0)},updateaxispointer:function(t,i,n,r){e(this,t,i,n,r,!1)},remove:function(t,e){var i=this._axispointer;i&&i[d](e),r.superapply(this,d,arguments)},dispose:function(t,e){i(this,e),r.superapply(this,a,arguments)}}),a=[];return r.registeraxispointerclass=function(t,e){a[t]=e},r.getaxispointerclass=function(t){return t&&a[t]},r}),e("echarts/action/roamhelper",[we],function(){var t={};return t.updatecenterandzoom=function(t,e,i){var n=t.getzoom(),r=t.getcenter(),a=e.zoom,o=t.datatopoint(r);if(null!=e.dx&&null!=e.dy){o[0]-=e.dx,o[1]-=e.dy;var r=t.pointtodata(o);t.setcenter(r)}if(null!=a){if(i){var s=i.min||0,l=i.max||1/0;a=math.max(math.min(n*a,l),s)/n}t.scale[0]*=a,t.scale[1]*=a;var u=t[ne],c=(e.originx-u[0])*(a-1),h=(e.originy-u[1])*(a-1);u[0]-=c,u[1]-=h,t.updatetransform();var r=t.pointtodata(o);t.setcenter(r),t.setzoom(a*n)}return{center:t.getcenter(),zoom:t.getzoom()}},t}),e("echarts/component/axis/axisbuilder",[we,be,"../../util/format","../../util/graphic","../../model/model","../../util/number",z,w],function(t){function e(t){var e={componenttype:t[r]};return e[t[r]+"index"]=t.componentindex,e}function i(t,e,i,n){var r,a,s=p(i-t[o]),l=n[0]>n[1],u="start"===e&&!l||"start"!==e&&l;return m(s-w/2)?(a=u?re:"top",r=ae):m(s-1.5*w)?(a=u?"top":re,r=ae):(a=oe,r=1.5*w>s&&s>w/2?u?"left":"right":u?"right":"left"),{rotation:s,textalign:r,textverticalalign:a}}function n(t){var e=t.get("tooltip");return t.get(ce)||!(t.get("triggerevent")||e&&e.show)}function r(t,e){var i=t.get("axislabel.showminlabel"),n=t.get("axislabel.showmaxlabel"),r=e[0],a=e[1],o=e[e[k]-1],l=e[e[k]-2];i===!1?r.ignore=!0:null!=t.getmin()&&s(r,a)&&(i?a.ignore=!0:r.ignore=!0),n===!1?o.ignore=!0:null!=t.getmax()&&s(l,o)&&(n?l.ignore=!0:o.ignore=!0)}function s(t,e){var i=t&&t[fe]().clone(),n=e&&e[fe]().clone();if(i&&n){var r=y.identity([]);return y.rotate(r,r,-t[o]),i[u](y.mul([],r,t.getlocaltransform())),n[u](y.mul([],r,e.getlocaltransform())),i.intersect(n)}}var l=t(be),c=t("../../util/format"),h=t("../../util/graphic"),f=t("../../model/model"),d=t("../../util/number"),p=d.remradian,m=d.isradianaroundzero,g=t(z),y=t(w),_=g[u],x=l.retrieve,w=math.pi,t=function(t,e){this.opt=e,this.axismodel=t,l[k](e,{labeloffset:0,namedirection:1,tickdirection:1,labeldirection:1,silent:!0}),this.group=new h.group;var i=new h.group({position:e[ne].slice(),rotation:e[o]});i.updatetransform(),this._transform=i[a],this._dumbgroup=i};t[te]={constructor:t,hasbuilder:function(t){return!!m[t]},add:function(t){m[t].call(this)},getgroup:function(){return this.group}};var m={axisline:function(){var t=this.opt,e=this.axismodel;if(e.get("axisline.show")){var i=this.axismodel.axis.getextent(),n=this._transform,r=[i[0],0],a=[i[1],0];n&&(_(r,r,n),_(a,a,n)),this.group.add(new h.line(h.subpixeloptimizeline({anid:"line",shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l[q]({linecap:"round"},e[ge]("axisline.linestyle").getlinestyle()),strokecontainthreshold:t.strokecontainthreshold||5,silent:!0,z2:1})))}},axistick:function(){var t=this.axismodel,e=t.axis;if(t.get("axistick.show")&&!e.scale.isblank())for(var i=t[ge]("axistick"),n=this.opt,r=i[ge]("linestyle"),a=i.get(k),o=c(i,n.labelinterval),s=e.gettickscoords(i.get("alignwithlabel")),u=e.scale.getticks(),c=[],f=[],d=this._transform,p=0;pm[1]?-1:1,g=["start"===u?m[0]-v*p:"end"===u?m[1]+v*p:(m[0]+m[1])/2,u===oe?t.labeloffset+f*p:0],y=r.get("namerotate");null!=y&&(y=y*w/180);var _;u===oe?s=s(t[o],null!=y?y:t[o],f):(s=i(t,u,y||0,m),_=t.axisnameavailablewidth,null!=_&&(_=math.abs(_/math.sin(s[o])),!isfinite(_)&&(_=null)));var b=d[pe](),t=r.get("nametruncate",!0)||{},m=t.ellipsis,p=x(t.nametruncatemaxwidth,t.maxwidth,_),c=null!=m&&null!=p?c.truncatetext(a,p,b,m,{minchar:2,placeholder:t.placeholder}):a,a=r.get("tooltip",!0),z=r[r],k={componenttype:z,name:a,$vars:["name"]};k[z+"index"]=r.componentindex;var i=new h.text({anid:"name",__fulltext:a,__truncatedtext:c,style:{text:c,textfont:b,fill:d[de]()||r.get("axisline.linestyle.color"),textalign:s[me],textverticalalign:s.textverticalalign},position:g,rotation:s[o],silent:n(r),z2:1,tooltip:a&&a.show?l[q]({content:a,formatter:function(){return a},formatterparams:k},a):null});r.get("triggerevent")&&(i.eventdata=e(r),i.eventdata.targettype="axisname",i.eventdata.name=a),this._dumbgroup.add(i),i.updatetransform(),this.group.add(i),i.decomposetransform()}}},s=t.innertextlayout=function(t,e,i){var n,r,a=p(e-t);return m(a)?(r=i>0?"top":re,n=ae):m(a-w)?(r=i>0?re:"top",n=ae):(r=oe,n=a>0&&w>a?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textalign:n,textverticalalign:r}},p=t.ifignoreontick=function(t,e,i){var n,r=t.scale;return"ordinal"===r.type&&(typeof i===b?(n=r.getticks()[e],!i(n,r[v](n))):e%(i+1))},c=t.getinterval=function(t,e){var i=t.get("interval");return(null==i||"auto"==i)&&(i=e),i};return t}),e("echarts/component/tooltip/tooltipcontent",[we,be,"zrender/tool/color","zrender/core/event","../../util/format",x],function(t){function e(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return a.map(d,function(t){return t+"transition:"+i}).join(";")}function i(t){var e=[],i=t.get("fontsize"),n=t[de]();return n&&e.push("color:"+n),e.push("font:"+t[pe]()),i&&e.push("line-height:"+math.round(3*i/2)+"px"),u(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function n(t){var n=[],r=t.get("transitionduration"),a=t.get("backgroundcolor"),s=t[ge](ve),c=t.get("padding");return r&&n.push(e(r)),a&&(f[v]?n.push("background-color:"+a):(n.push("background-color:#"+o.tohex(a)),n.push("filter:alpha(opacity=70)"))),u(["width","color","radius"],function(e){var i="border-"+e,r=h(i),a=t.get(r);null!=a&&n.push(i+":"+a+("color"===e?"":"px"))}),n.push(i(s)),null!=c&&n.push("padding:"+l.normalizecssarray(c).join("px ")+"px"),n.join(";")+";"}function r(t,e){var i=document[c]("div"),n=this._zr=e.getzr();this.el=i,this._x=e[le]()/2,this._y=e[se]()/2,t.appendchild(i),this._container=t,this._show=!1,this._hidetimeout;var r=this;i.onmouseenter=function(){r._enterable&&(cleartimeout(r._hidetimeout),r._show=!0),r._incontent=!0},i.onmousemove=function(e){if(e=e||window.event,!r._enterable){var i=n.handler;s.normalizeevent(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){r._enterable&&r._show&&r.hidelater(r._hidedelay),r._incontent=!1}}var a=t(be),o=t("zrender/tool/color"),s=t("zrender/core/event"),l=t("../../util/format"),u=a.each,h=l.tocamelcase,f=t(x),d=["","-webkit-","-moz-","-o-"],p="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";return r[te]={constructor:r,_enterable:!0,update:function(){var t=this._container,e=t.currentstyle||document.defaultview.getcomputedstyle(t),i=t.style;"absolute"!==i[ne]&&"absolute"!==e[ne]&&(i[ne]="relative")},show:function(t){cleartimeout(this._hidetimeout);var e=this.el;e.style.csstext=p+n(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.getviewportroot())&&(t+=i.offsetleft||0,e+=i.offsettop||0);var r=this.el.style;r.left=t+"px",r.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(a.bind(this.hide,this),t)):this.hide())},isshow:function(){return this._show}},r}),e("zrender",["zrender/zrender"],function(t){return t}),e("echarts",["echarts/echarts"],function(t){return t});var te=t("echarts");return te.graphic=t("echarts/util/graphic"),te.number=t("echarts/util/number"),te.format=t("echarts/util/format"),t("echarts/chart/map"),t("echarts/component/geo"),t("echarts/component/title"),t("echarts/component/tooltip"),t("echarts/component/markpoint"),t("zrender/vml/vml"),te });