(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7d21e879"],{"0156":function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var i=n("6d8b"),r=n("e0d3");function a(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,o={},s=a.getAxesOnZeroOf()[0],u=a.position,c=s?"onZero":u,l=a.dim,h=r.getRect(),f=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,g="x"===l?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(s){var v=s.toGlobalCoord(s.dataToCoord(0));g[d.onZero]=Math.max(Math.min(v,g[1]),g[0])}o.position=["y"===l?g[d[c]]:f[0],"x"===l?g[d[c]]:f[3]],o.rotation=Math.PI/2*("x"===l?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[u],o.labelOffset=s?g[d[u]]-g[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),i["retrieve"](n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===c?-m:m,o.z2=1,o}function o(t){return"cartesian2d"===t.get("coordinateSystem")}function s(t){var e={xAxisModel:null,yAxisModel:null};return i["each"](e,(function(n,i){var a=i.replace(/Model$/,""),o=t.getReferringComponents(a,r["b"]).models[0];e[i]=o})),e}},"04f6":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=32,r=7;function a(t){var e=0;while(t>=i)e|=1&t,t>>=1;return t+e}function o(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r=0)r++;return r-e}function s(t,e,n){n--;while(e>>1,r(o,t[a])<0?u=a:s=a+1;var c=i-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(c>0)t[s+c]=t[s+c-1],c--}t[s]=o}}function c(t,e,n,i,r,a){var o=0,s=0,u=1;if(a(t,e[n+r])>0){s=i-r;while(u0)o=u,u=1+(u<<1),u<=0&&(u=s);u>s&&(u=s),o+=r,u+=r}else{s=r+1;while(us&&(u=s);var c=o;o=r-u,u=r-c}o++;while(o>>1);a(t,e[n+l])>0?o=l+1:u=l}return u}function l(t,e,n,i,r,a){var o=0,s=0,u=1;if(a(t,e[n+r])<0){s=r+1;while(us&&(u=s);var c=o;o=r-u,u=r-c}else{s=i-r;while(u=0)o=u,u=1+(u<<1),u<=0&&(u=s);u>s&&(u=s),o+=r,u+=r}o++;while(o>>1);a(t,e[n+l])<0?u=l:o=l+1}return u}function h(t,e){var n,i,a=r,o=0,s=0;o=t.length;var u=[];function h(t,e){n[s]=t,i[s]=e,s+=1}function f(){while(s>1){var t=s-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;p(t)}}function d(){while(s>1){var t=s-2;t>0&&i[t-1]=r||v>=r);if(y)break;m<0&&(m=0),m+=2}if(a=m,a<1&&(a=1),1===i){for(h=0;h=0;h--)t[v+h]=t[g+h];if(0===i){_=!0;break}}if(t[p--]=u[d--],1===--s){_=!0;break}if(b=s-c(t[f],u,0,s,s-1,e),0!==b){for(p-=b,d-=b,s-=b,v=p+1,g=d+1,h=0;h=r||b>=r);if(_)break;y<0&&(y=0),y+=2}if(a=y,a<1&&(a=1),1===s){for(p-=i,f-=i,v=p+1,g=f+1,h=i-1;h>=0;h--)t[v+h]=t[g+h];t[p]=u[d]}else{if(0===s)throw new Error;for(g=p-(s-1),h=0;h=0;h--)t[v+h]=t[g+h];t[p]=u[d]}else for(g=p-(s-1),h=0;hf&&(d=f),u(t,n,n+d,n+c,e),c=d}l.pushRun(n,c),l.mergeRuns(),s-=c,n+=c}while(0!==s);l.forceMergeRuns()}}},"04f7":function(t,e,n){"use strict";n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return m}));var i=n("07fd"),r=n("e0d3"),a=n("6d8b"),o=n("2b17"),s=n("b7d9"),u=n("edae"),c=n("ec6f"),l=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Object(s["d"])(t,e)},t}();function h(t,e){var n=new l,r=t.data,s=n.sourceFormat=t.sourceFormat,c=t.startIndex,h="";t.seriesLayoutBy!==i["a"]&&Object(u["c"])(h);var v=[],y={},m=t.dimensionsDefine;if(m)Object(a["each"])(m,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(v.push(i),null!=n){var r="";Object(a["hasOwn"])(y,n)&&Object(u["c"])(r),y[n]=i}}));else for(var b=0;bi?e:t,a=Math.min(n,i),o=r[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var u=a;u=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,s=i.length,u=!1,h=C,f=e;if(Object(a["isArrayLike"])(e)){var d=x(e);h=d,(1===d&&!Object(a["isNumber"])(e[0])||2===d&&!Object(a["isNumber"])(e[0][0]))&&(u=!0)}else if(Object(a["isNumber"])(e)&&!Object(a["eqNaN"])(e))h=O;else if(Object(a["isString"])(e))if(isNaN(+e)){var p=c["parse"](e);p&&(f=p,h=j)}else h=O;else if(Object(a["isGradientObject"])(e)){var g=Object(a["extend"])({},f);g.colorStops=Object(a["map"])(e.colorStops,(function(t){return{offset:t.offset,color:c["parse"](t.color)}})),Object(l["m"])(e)?h=M:Object(l["o"])(e)&&(h=T),f=g}0===s?this.valType=h:h===this.valType&&h!==C||(u=!0),this.discrete=this.discrete||u;var v={time:t,value:f,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=Object(a["isFunction"])(n)?n:r[n]||Object(o["a"])(n)),i.push(v),v},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,a=n[r-1],o=this.discrete,s=k(i),u=I(i),c=0;c=0;n--)if(c[n].percent<=e)break;n=y(n,l-2)}else{for(n=v;ne)break;n=y(n-1,l-2)}r=c[n+1],i=c[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var b=r.percent-i.percent,x=0===b?1:y((e-i.percent)/b,1);r.easingFunc&&(x=r.easingFunc(x));var O=o?this._additiveValue:g?D:t[h];if(!k(u)&&!g||O||(O=this._additiveValue=[]),this.discrete)t[h]=x<1?i.rawValue:r.rawValue;else if(k(u))u===w?d(O,i[s],r[s],x):p(O,i[s],r[s],x);else if(I(u)){var S=i[s],T=r[s],C=u===M;t[h]={type:C?"linear":"radial",x:f(S.x,T.x,x),y:f(S.y,T.y,x),colorStops:Object(a["map"])(S.colorStops,(function(t,e){var n=T.colorStops[e];return{offset:f(t.offset,n.offset,x),color:_(d([],t.color,n.color,x))}})),global:T.global},C?(t[h].x2=f(S.x2,T.x2,x),t[h].y2=f(S.y2,T.y2,x)):t[h].r=f(S.r,T.r,x)}else if(g)d(O,i[s],r[s],x),o||(t[h]=_(O));else{var A=f(i[s],r[s],x);o?this._additiveValue=A:t[h]=A}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===O?t[n]=t[n]+i:e===j?(c["parse"](t[n],D),g(D,D,i,1),t[n]=_(D)):e===w?g(t[n],t[n],i,1):e===S&&v(t[n],t[n],i,1)},t}(),P=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?Object(a["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(a["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,a=0;a0&&s.addKeyframe(0,b(u),i),this._trackKeys.push(o)}s.addKeyframe(t,b(e[o]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var s=o.pop();r.addKeyframe(s.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();e["b"]=P},"07fd":function(t,e,n){"use strict";n.d(e,"i",(function(){return r})),n.d(e,"f",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f}));var i=n("6d8b"),r=Object(i["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),a="original",o="arrayRows",s="objectRows",u="keyedColumns",c="typedArray",l="unknown",h="column",f="row"},"0924":function(t,e,n){"use strict";function i(t,e,n){switch(n){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function r(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function a(t,e,n,i){switch(n){case"color":var r=t.ensureUniqueItemVisual(e,"style");r[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:0}}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a}))},"0da8":function(t,e,n){"use strict";var i=n("9ab4"),r=n("19eb"),a=n("9850"),o=n("6d8b"),s=Object(o["defaults"])({x:0,y:0},r["b"]),u={style:Object(o["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r["a"].style)};function c(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.createStyle=function(t){return Object(o["createObject"])(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=c(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",a=e[r];return null==a?i[t]:i[t]/i[r]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return u},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new a["a"](t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r["c"]);l.prototype.type="image",e["a"]=l},"0f99":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"g",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"f",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"b",(function(){return d}));var i=n("e0d3"),r=n("6d8b"),a=n("07fd"),o={Must:1,Might:2,Not:3},s=Object(i["o"])();function u(t){s(t).datasetMap=Object(r["createHashMap"])()}function c(t,e,n){var i={},a=h(e);if(!a||!t)return i;var o,u,c=[],l=[],f=e.ecModel,d=s(f).datasetMap,p=a.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(r["each"])(t,(function(e,n){var a=Object(r["isObject"])(e)?e:t[n]={name:e};"ordinal"===a.type&&null==o&&(o=n,u=y(a)),i[a.name]=[]}));var g=d.get(p)||d.set(p,{categoryWayDim:u,valueWayDim:0});function v(t,e,n){for(var i=0;i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(r["a"]);r["a"].registerClass(u),e["a"]=u},"19eb":function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var i=n("9ab4"),r=n("d5b7"),a=n("9850"),o=n("6d8b"),s=n("4bc4"),u="__zr_style_"+Math.round(10*Math.random()),c={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},l={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};c[u]=!0;var h=["z","z2","invisible"],f=["invisible"],d=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype._init=function(e){for(var n=Object(o["keys"])(e),i=0;i=0;o--)i[o]&&!c["l"](i[o])?a=!0:(i[o]=null,!a&&r--);i.length=r,t[n]=i}})),delete t[O],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e}function F(t,e){return t.join(",")===e.join(",")}var H=N,V=a["each"],W=a["isObject"],G=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function q(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=G.length;n=0;g--){var v=t[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,h)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===u||"positive"===u&&y>0||"negative"===u&&y<0||"samesign"===u&&d>=0&&y>0||"samesign"===u&&d<=0&&y<0){d=Object(ft["b"])(d,y),p=y;break}}}return i[0]=d,i[1]=p,i}))}))}var gt=n("4f85"),vt=n("b12f"),yt=n("e887"),mt=n("c7a2"),bt=n("0da8"),_t=n("deca"),xt=n("cbe5"),Ot=n("861c"),wt=n("7d6c"),St=n("88b3"),jt=n("282b"),Mt=n("551f"),Tt=n("3901"),Ct=Object(c["o"])(),It={itemStyle:Object(jt["a"])(Mt["a"],!0),lineStyle:Object(jt["a"])(Tt["a"],!0)},kt={lineStyle:"stroke",itemStyle:"fill"};function Dt(t,e){var n=t.visualStyleMapper||It[e];return n||(console.warn("Unkown style type '"+e+"'."),It.itemStyle)}function At(t,e){var n=t.visualDrawType||kt[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var Pt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=Dt(t,i),s=o(r),u=r.getShallow("decal");u&&(n.setVisual("decal",u),u.dirty=!0);var c=At(t,i),l=s[c],h=Object(a["isFunction"])(l)?l:null,f="auto"===s.fill||"auto"===s.stroke;if(!s[c]||h||f){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());s[c]||(s[c]=d,n.setVisual("colorFromPalette",!0)),s.fill="auto"===s.fill||Object(a["isFunction"])(s.fill)?d:s.fill,s.stroke="auto"===s.stroke||Object(a["isFunction"])(s.stroke)?d:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",c),!e.isSeriesFiltered(t)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(a["extend"])({},s);r[c]=h(i),e.setItemVisual(n,"style",r)}}}},Lt=new l["a"],Rt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Dt(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){Lt.option=n[i];var s=r(Lt),u=t.ensureUniqueItemVisual(e,"style");Object(a["extend"])(u,s),Lt.option.decal&&(t.setItemVisual(e,"decal",Lt.option.decal),Lt.option.decal.dirty=!0),o in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Nt={performRawSeries:!0,overallReset:function(t){var e=Object(a["createHashMap"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Ct(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),a=Ct(e).scope,o=e.visualStyleAccessPath||"itemStyle",s=At(e,o);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var o=i[t],u=r.getItemVisual(o,"colorFromPalette");if(u){var c=r.ensureUniqueItemVisual(o,"style"),l=n.getName(t)||t+"",h=n.count();c[s]=e.getColorFromPalette(l,a,h)}}))}}))}},Bt=n("2dc5"),zt=n("76a5"),Et=n("8d32"),Ft=Math.PI;function Ht(t,e){e=e||{},a["defaults"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Bt["a"],i=new mt["a"]({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new zt["a"]({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),s=new mt["a"]({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(s),e.showSpinner&&(r=new Et["a"]({shape:{startAngle:-Ft/2,endAngle:-Ft/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*Ft/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Ft/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,a=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-2*a-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:a),c=t.getHeight()/2;e.showSpinner&&r.setShape({cx:u,cy:c}),s.setShape({x:u-a,y:c-a,width:2*a,height:2*a}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Vt=n("9fbc"),Wt=n("8918"),Gt=function(){function t(t,e,n,i){this._stageTaskMap=Object(a["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,a=r?n.step:null,o=i&&i.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),a=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:a,modDataCount:s,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(a["createHashMap"])();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(a["each"])(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";Object(a["assert"])(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=n,a.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(a["each"])(t,(function(t,a){if(!i.visualType||i.visualType===t.visualType){var u=o._stageTaskMap.get(t.uid),c=u.seriesTaskMap,l=u.overallTask;if(l){var h,f=l.agentStubMap;f.each((function(t){s(i,t)&&(t.dirty(),h=!0)})),h&&l.dirty(),o.updatePayload(l,n);var d=o.getPerformArgs(l,i.block);f.each((function(t){t.perform(d)})),l.perform(d)&&(r=!0)}else c&&c.each((function(a,u){s(i,a)&&a.dirty();var c=o.getPerformArgs(a,i.block);c.skip=!t.performRawSeries&&e.isSeriesFiltered(a.context.model),o.updatePayload(a,n),a.perform(c)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Object(a["createHashMap"])(),u=t.seriesType,c=t.getTargetSeries;function l(e){var a=e.uid,u=s.set(a,o&&o.get(a)||Object(Vt["a"])({plan:Zt,reset:Kt,count:Jt}));u.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,u)}t.createOnAllSeries?n.eachRawSeries(l):u?n.eachRawSeriesByType(u,l):c&&c(n,i).each(l)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Object(Vt["a"])({reset:qt});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var s=o.agentStubMap,u=o.agentStubMap=Object(a["createHashMap"])(),c=t.seriesType,l=t.getTargetSeries,h=!0,f=!1,d="";function p(t){var e=t.uid,n=u.set(e,s&&s.get(e)||(f=!0,Object(Vt["a"])({reset:Ut,onDirty:Yt})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}Object(a["assert"])(!t.createOnAllSeries,d),c?n.eachRawSeriesByType(c,p):l?l(n,i).each(p):(h=!1,Object(a["each"])(n.getSeries(),p)),f&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(a["isFunction"])(t)&&(t={overallReset:t,seriesType:te(t)}),t.uid=Object(Wt["c"])("stageHandler"),e&&(t.visualType=e),t},t}();function qt(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ut(t){return t.overallProgress&&Xt}function Xt(){this.agent.dirty(),this.getDownstream().dirty()}function Yt(){this.agent&&this.agent.dirty()}function Zt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Kt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Object(c["r"])(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(a["map"])(e,(function(t,e){return Qt(e)})):$t}var $t=Qt(0);function Qt(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a0&&l===r.length-c.length){var h=r.slice(0,l);"data"!==h&&(e.mainType=h,e[c.toLowerCase()]=t,a=!0)}}s.hasOwnProperty(r)&&(n[r]=t,a=!0),a||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=e.cptQuery,u=e.dataQuery;return c(s,a,"mainType")&&c(s,a,"subType")&&c(s,a,"index","componentIndex")&&c(s,a,"name")&&c(s,a,"id")&&c(u,r,"name")&&c(u,r,"dataIndex")&&c(u,r,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,i,r));function c(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ve=["symbol","symbolSize","symbolRotate","symbolOffset"],ye=ve.concat(["symbolKeepAspect"]),me={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[$e])if(this._disposed)An(this.id);else{var i,r,o;if(Object(a["isObject"])(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[$e]=!0,!this._model||e){var s=new H(this._api),u=this._theme,c=this._model=new k;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,s)}this._model.setOption(t,{replaceMerge:r},Nn);var l={seriesTransition:o,optionChanged:!0};if(n)this[Qe]={silent:i,updateParams:l},this[$e]=!1,this.getZr().wakeUp();else{try{cn(this),fn.update.call(this,null,l)}catch(h){throw this[Qe]=null,this[$e]=!1,h}this._ssr||this._zr.flush(),this[Qe]=null,this[$e]=!1,vn.call(this,i),yn.call(this,i)}}},e.prototype.setTheme=function(){Object(x["a"])("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||De&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(o["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(a["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;Object(a["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(a["each"])(i,(function(t){t.group.ignore=!1})),o}An(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,o=Math.max,s=1/0;if(Hn[n]){var u=s,c=s,l=-s,h=-s,f=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();Object(a["each"])(Fn,(function(r,s){if(r.group===n){var d=e?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas(Object(a["clone"])(t)),p=r.getDom().getBoundingClientRect();u=i(p.left,u),c=i(p.top,c),l=o(p.right,l),h=o(p.bottom,h),f.push({dom:d,left:p.left,top:p.top})}})),u*=d,c*=d,l*=d,h*=d;var p=l-u,g=h-c,v=Ie["d"].createCanvas(),y=r["init"](v,{renderer:e?"svg":"canvas"});if(y.resize({width:p,height:g}),e){var m="";return Object(a["each"])(f,(function(t){var e=t.left-u,n=t.top-c;m+=''+t.dom+""})),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new mt["a"]({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),Object(a["each"])(f,(function(t){var e=new bt["a"]({style:{x:t.left*d-u,y:t.top*d-c,image:t.dom}});y.add(e)})),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}An(this.id)},e.prototype.convertToPixel=function(t,e){return dn(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return dn(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=c["s"](i,t);return Object(a["each"])(r,(function(t,i){i.indexOf("Models")>=0&&Object(a["each"])(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n=n||a.containPoint(e,t))}else 0}),this)}),this),!!n}An(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=c["s"](n,t,{defaultMainType:"series"}),r=i.seriesModel;var a=r.getData(),o=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?a.indexOfRawIndex(i.dataIndex):null;return null!=o?Object(_e["a"])(a,o,e):Object(_e["b"])(a,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(a["each"])(Dn,(function(e){var n=function(n){var i,r=t.getModel(),o=n.target,s="globalout"===e;if(s?i={}:o&&Object(Se["a"])(o,(function(t){var e=Object(Ot["a"])(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return i=Object(a["extend"])({},e.eventData),!0}),!0),i){var u=i.componentType,c=i.componentIndex;"markLine"!==u&&"markPoint"!==u&&"markArea"!==u||(u="series",c=i.seriesIndex);var l=u&&null!=c&&r.getComponent(u,c),h=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:h},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(a["each"])(Ln,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(a["each"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Object(xe["b"])(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?An(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)An(this.id);else{this._disposed=!0;var t=this.getDom();t&&c["w"](this.getDom(),Gn,"");var e=this,n=e._api,i=e._model;Object(a["each"])(e._componentsViews,(function(t){t.dispose(i,n)})),Object(a["each"])(e._chartsViews,(function(t){t.dispose(i,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Fn[e.id]}},e.prototype.resize=function(t){if(!this[$e])if(this._disposed)An(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Qe]&&(null==i&&(i=this[Qe].silent),n=!0,this[Qe]=null),this[$e]=!0;try{n&&cn(this),fn.update.call(this,{type:"resize",animation:Object(a["extend"])({duration:0},t&&t.animation)})}catch(r){throw this[$e]=!1,r}this[$e]=!1,vn.call(this,i),yn.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)An(this.id);else if(Object(a["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),En[t]){var n=En[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?An(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(a["extend"])({},t);return e.type=Ln[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)An(this.id);else if(Object(a["isObject"])(e)||(e={silent:!!e}),Pn[t.type]&&this._model)if(this[$e])this._pendingActions.push(t);else{var n=e.silent;gn.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&o["a"].browser.weChat&&this._throttledZrFlush(),vn.call(this,n),yn.call(this,n)}},e.prototype.updateLabelLayout=function(){Ce.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)An(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var a=r.get("zlevel")||0,o=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:a,z:o,idx:r.componentIndex,type:t,key:s})})),i){var r,o,u=e.concat(n);Object(s["a"])(u,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(a["each"])(u,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(t){for(var e=[],n=t.currentStates,i=0;ie.get("hoverLayerThreshold")&&!o["a"].node&&!o["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function u(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function l(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return h(t,n,i,-1/0),!0}))}}function h(t,e,n,i){var r=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),u=0;u0?{duration:a,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(_t["d"](t))return;if(t instanceof xt["b"]&&Object(wt["E"])(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=o;var i=t.getTextContent(),a=t.getTextGuideLine();i&&(i.stateTransition=o),a&&(a.stateTransition=o)}t.__dirty&&n(t)}}))}cn=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),ln(t,!0),ln(t,!1),e.plan()},ln=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,o=t._zr,s=t._api,u=0;u=0)){ci.push(n);var o=ae.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function hi(t,e){En[t]=e}function fi(t){Object(Ie["e"])({createCanvas:t})}function di(t,e,n){var i=Object(ke["a"])("registerMap");i&&i(t,e,n)}function pi(t){var e=Object(ke["a"])("getMap");return e&&e(t)}var gi=Oe["b"];ui(Ve,Pt),ui(qe,Rt),ui(qe,Nt),ui(Ve,me),ui(qe,be),ui(Ze,Me),Jn(ht),ti(Ne,dt),hi("default",Ht),ri({type:wt["c"],event:wt["c"],update:wt["c"]},a["noop"]),ri({type:wt["b"],event:wt["b"],update:wt["b"]},a["noop"]),ri({type:wt["f"],event:wt["f"],update:wt["f"]},a["noop"]),ri({type:wt["i"],event:wt["i"],update:wt["i"]},a["noop"]),ri({type:wt["h"],event:wt["h"],update:wt["h"]},a["noop"]),Qn("light",se),Qn("dark",de);var vi={}},"1f39":function(t,e,n){"use strict";var i=n("6d8b"),r={},a=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];i["each"](r,(function(i,r){var a=i.create(t,e);n=n.concat(a||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){i["each"](this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){r[t]=e},t.get=function(t){return r[t]},t}();e["a"]=a},"20c8":function(t,e,n){"use strict";n.d(e,"b",(function(){return j}));var i=n("401b"),r=n("9850"),a=n("2cf4c"),o=n("e263"),s=n("4a3f"),u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],l=[],h=[],f=[],d=[],p=[],g=Math.min,v=Math.max,y=Math.cos,m=Math.sin,b=Math.abs,_=Math.PI,x=2*_,O="undefined"!==typeof Float32Array,w=[];function S(t){var e=Math.round(t/_*1e8)/1e8;return e%2*_}function j(t,e){var n=S(t[0]);n<0&&(n+=x);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=x?r=n+x:e&&n-r>=x?r=n-x:!e&&n>r?r=n+(x-S(n-r)):e&&n0&&(this._ux=b(n/a["e"]/t)||0,this._uy=b(n/a["e"]/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(u.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=b(t-this._xi),i=b(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(u.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=n*n+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,a){return this._drawPendingPt(),this.addData(u.C,t,e,n,i,r,a),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,a),this._xi=r,this._yi=a,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(u.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,a){this._drawPendingPt(),w[0]=i,w[1]=r,j(w,a),i=w[0],r=w[1];var o=r-i;return this.addData(u.A,t,e,n,n,i,o,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=y(r)*n+t,this._yi=m(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(u.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(u.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!O||(this.data=new Float32Array(e));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var l=0;l0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){h[0]=h[1]=d[0]=d[1]=Number.MAX_VALUE,f[0]=f[1]=p[0]=p[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,a=0,s=0,c=0;for(t=0;tn||b(M)>i||d===e-1)&&(O=Math.sqrt(j*j+M*M),r=w,a=S);break;case u.C:var T=t[d++],C=t[d++],I=(w=t[d++],S=t[d++],t[d++]),k=t[d++];O=Object(s["d"])(r,a,T,C,w,S,I,k,10),r=I,a=k;break;case u.Q:T=t[d++],C=t[d++],w=t[d++],S=t[d++];O=Object(s["k"])(r,a,T,C,w,S,10),r=w,a=S;break;case u.A:var D=t[d++],A=t[d++],P=t[d++],L=t[d++],R=t[d++],N=t[d++],B=N+R;d+=1;t[d++];_&&(o=y(R)*P+D,c=m(R)*L+A),O=v(P,L)*g(x,Math.abs(N)),r=y(B)*P+D,a=m(B)*L+A;break;case u.R:o=r=t[d++],c=a=t[d++];var z=t[d++],E=t[d++];O=2*z+2*E;break;case u.Z:j=o-r,M=c-a;O=Math.sqrt(j*j+M*M),r=o,a=c;break}O>=0&&(l[f++]=O,h+=O)}return this._pathLen=h,h},t.prototype.rebuildPath=function(t,e){var n,i,r,a,o,h,f,d,p,_,x,O=this.data,w=this._ux,S=this._uy,j=this._len,M=e<1,T=0,C=0,I=0;if(!M||(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,d=this._pathLen,p=e*d,p))t:for(var k=0;k0&&(t.lineTo(_,x),I=0),D){case u.M:n=r=O[k++],i=a=O[k++],t.moveTo(r,a);break;case u.L:o=O[k++],h=O[k++];var P=b(o-r),L=b(h-a);if(P>w||L>S){if(M){var R=f[C++];if(T+R>p){var N=(p-T)/R;t.lineTo(r*(1-N)+o*N,a*(1-N)+h*N);break t}T+=R}t.lineTo(o,h),r=o,a=h,I=0}else{var B=P*P+L*L;B>I&&(_=o,x=h,I=B)}break;case u.C:var z=O[k++],E=O[k++],F=O[k++],H=O[k++],V=O[k++],W=O[k++];if(M){R=f[C++];if(T+R>p){N=(p-T)/R;Object(s["g"])(r,z,F,V,N,c),Object(s["g"])(a,E,H,W,N,l),t.bezierCurveTo(c[1],l[1],c[2],l[2],c[3],l[3]);break t}T+=R}t.bezierCurveTo(z,E,F,H,V,W),r=V,a=W;break;case u.Q:z=O[k++],E=O[k++],F=O[k++],H=O[k++];if(M){R=f[C++];if(T+R>p){N=(p-T)/R;Object(s["n"])(r,z,F,N,c),Object(s["n"])(a,E,H,N,l),t.quadraticCurveTo(c[1],l[1],c[2],l[2]);break t}T+=R}t.quadraticCurveTo(z,E,F,H),r=F,a=H;break;case u.A:var G=O[k++],q=O[k++],U=O[k++],X=O[k++],Y=O[k++],Z=O[k++],K=O[k++],$=!O[k++],Q=U>X?U:X,J=b(U-X)>.001,tt=Y+Z,et=!1;if(M){R=f[C++];T+R>p&&(tt=Y+Z*(p-T)/R,et=!0),T+=R}if(J&&t.ellipse?t.ellipse(G,q,U,X,K,Y,tt,$):t.arc(G,q,Q,Y,tt,$),et)break t;A&&(n=y(Y)*U+G,i=m(Y)*X+q),r=y(tt)*U+G,a=m(tt)*X+q;break;case u.R:n=r=O[k],i=a=O[k+1],o=O[k++],h=O[k++];var nt=O[k++],it=O[k++];if(M){R=f[C++];if(T+R>p){var rt=p-T;t.moveTo(o,h),t.lineTo(o+g(rt,nt),h),rt-=nt,rt>0&&t.lineTo(o+nt,h+g(rt,it)),rt-=it,rt>0&&t.lineTo(o+v(nt-rt,0),h+it),rt-=nt,rt>0&&t.lineTo(o,h+v(it-rt,0));break t}T+=R}t.rect(o,h,nt,it);break;case u.Z:if(M){R=f[C++];if(T+R>p){N=(p-T)/R;t.lineTo(r*(1-N)+n*N,a*(1-N)+i*N);break t}T+=R}t.closePath(),r=n,a=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=u,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();e["a"]=M},"216a":function(t,e,n){"use strict";var i=n("9ab4"),r=n("3842"),a=n("f876"),o=n("944e"),s=n("89e3"),u=n("e0d8"),c=n("6d8b"),l=function(t,e,n,i){while(n>>1;t[r][1]n&&(this._approxInterval=n);var a=f.length,o=Math.min(l(f,this._approxInterval,0,a),a-1);this._interval=f[o][1],this._minLevelUnit=f[Math.max(o-1,0)][0]},e.prototype.parse=function(t){return Object(c["isNumber"])(t)?t:+r["p"](t)},e.prototype.contain=function(t){return o["a"](this.parse(t),this._extent)},e.prototype.normalize=function(t){return o["f"](this.parse(t),this._extent)},e.prototype.scale=function(t){return o["g"](t,this._extent)},e.type="time",e}(s["a"]),f=[["second",a["d"]],["minute",a["c"]],["hour",a["b"]],["quarter-day",6*a["b"]],["half-day",12*a["b"]],["day",1.2*a["a"]],["half-week",3.5*a["a"]],["week",7*a["a"]],["month",31*a["a"]],["quarter",95*a["a"]],["half-year",a["e"]/2],["year",a["e"]]];function d(t,e,n,i){var o=r["p"](e),s=r["p"](n),u=function(t){return Object(a["n"])(o,t,i)===Object(a["n"])(s,t,i)},c=function(){return u("year")},l=function(){return c()&&u("month")},h=function(){return l()&&u("day")},f=function(){return h()&&u("hour")},d=function(){return f()&&u("minute")},p=function(){return d()&&u("second")},g=function(){return p()&&u("millisecond")};switch(t){case"year":return c();case"month":return l();case"day":return h();case"hour":return f();case"minute":return d();case"second":return p();case"millisecond":return g()}}function p(t,e){return t/=a["a"],t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function g(t){var e=30*a["a"];return t/=e,t>6?6:t>3?3:t>2?2:1}function v(t){return t/=a["b"],t>12?12:t>6?6:t>3.5?4:t>2?2:1}function y(t,e){return t/=e?a["c"]:a["d"],t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function m(t){return r["n"](t,!0)}function b(t,e,n){var i=new Date(t);switch(Object(a["m"])(e)){case"year":case"month":i[Object(a["x"])(n)](0);case"day":i[Object(a["g"])(n)](1);case"hour":i[Object(a["p"])(n)](0);case"minute":i[Object(a["v"])(n)](0);case"second":i[Object(a["A"])(n)](0),i[Object(a["t"])(n)](0)}return i.getTime()}function _(t,e,n,i){var r=1e4,o=a["B"],s=0;function u(t,e,n,r,a,o,s){var u=new Date(e),c=e,l=u[r]();while(c1&&0===l&&o.unshift({value:o[0].value-_})}}for(l=0;l=i[0]&&T<=i[1]&&_++)}var C=(i[1]-i[0])/e;if(_>1.5*C&&x>C/1.5)break;if(h.push(j),_>C||t===o[O])break}f=[]}}}var I=Object(c["filter"])(Object(c["map"])(h,(function(t){return Object(c["filter"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),k=[],D=I.length-1;for(O=0;O1||n>0&&!t.noHeader;return Object(a["each"])(t.blocks,(function(t){var n=g(t);n>=e&&(e=n+ +(i&&(!n||d(t)&&!t.noHeader)))})),e}return 0}function v(t,e,n,s){var l=e.noHeader,h=b(g(e)),f=[],d=e.blocks||[];Object(a["assert"])(!d||Object(a["isArray"])(d)),d=d||[];var v=t.orderMode;if(e.sortBlocks&&v){d=d.slice();var y={valueAsc:"asc",valueDesc:"desc"};if(Object(a["hasOwn"])(y,v)){var m=new o["a"](y[v],null);d.sort((function(t,e){return m.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===v&&d.reverse()}Object(a["each"])(d,(function(n,i){var r=e.valueFormatter,o=p(n)(r?Object(a["extend"])(Object(a["extend"])({},t),{valueFormatter:r}):t,n,i>0?h.html:0,s);null!=o&&f.push(o)}));var x="richText"===t.renderMode?f.join(h.richText):_(f.join(""),l?n:h.html);if(l)return x;var O=Object(r["h"])(e.header,"ordinal",t.useUTC),S=c(s,t.renderMode).nameStyle;return"richText"===t.renderMode?w(t,O,S)+h.richText+x:_('
'+Object(i["a"])(O)+"
"+x,n)}function y(t,e,n,i){var o=t.renderMode,s=e.noName,u=e.noValue,l=!e.markerType,h=e.name,f=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(t){return t=Object(a["isArray"])(t)?t:[t],Object(a["map"])(t,(function(t,e){return Object(r["h"])(t,Object(a["isArray"])(v)?v[e]:v,f)}))};if(!s||!u){var p=l?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),g=s?"":Object(r["h"])(h,"ordinal",f),v=e.valueType,y=u?[]:d(e.value),m=!l||!s,b=!l&&s,j=c(i,o),M=j.nameStyle,T=j.valueStyle;return"richText"===o?(l?"":p)+(s?"":w(t,g,M))+(u?"":S(t,y,m,b,T)):_((l?"":p)+(s?"":x(g,!l,M))+(u?"":O(y,m,b,T)),n)}}function m(t,e,n,i,r,a){if(t){var o=p(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function b(t){return{html:l[t],richText:h[t]}}function _(t,e){var n='
',i="margin: "+e+"px 0 0";return'
'+t+n+"
"}function x(t,e,n){var r=e?"margin-left:2px":"";return''+Object(i["a"])(t)+""}function O(t,e,n,r){var o=n?"10px":"20px",s=e?"float:right;margin-left:"+o:"";return t=Object(a["isArray"])(t)?t:[t],''+Object(a["map"])(t,(function(t){return Object(i["a"])(t)})).join("  ")+""}function w(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function S(t,e,n,i,r){var o=[r],s=i?10:20;return n&&o.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(a["isArray"])(e)?e.join(" "):e,o)}function j(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return Object(r["c"])(i)}function M(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var T=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Object(s["j"])()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,o=Object(r["g"])({color:e,type:t,renderMode:n,markerId:i});return Object(a["isString"])(o)?o:(this.richTextStyles[i]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(a["isArray"])(e)?Object(a["each"])(e,(function(t){return Object(a["extend"])(n,t)})):Object(a["extend"])(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}()},"22b4":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("1be7"),r=n("b12f"),a=n("e887"),o=n("6cb7"),s=n("4f85"),u=n("6d8b"),c=n("58c9"),l=n("697e7"),h=[],f={registerPreprocessor:i["u"],registerProcessor:i["v"],registerPostInit:i["s"],registerPostUpdate:i["t"],registerUpdateLifecycle:i["y"],registerAction:i["m"],registerCoordinateSystem:i["n"],registerLayout:i["o"],registerVisual:i["z"],registerTransform:i["x"],registerLoading:i["p"],registerMap:i["r"],registerImpl:c["b"],PRIORITY:i["a"],ComponentModel:o["a"],ComponentView:r["a"],SeriesModel:s["b"],ChartView:a["a"],registerComponentModel:function(t){o["a"].registerClass(t)},registerComponentView:function(t){r["a"].registerClass(t)},registerSeriesModel:function(t){s["b"].registerClass(t)},registerChartView:function(t){a["a"].registerClass(t)},registerSubTypeDefaulter:function(t,e){o["a"].registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Object(l["registerPainter"])(t,e)}};function d(t){Object(u["isArray"])(t)?Object(u["each"])(t,(function(t){d(t)})):Object(u["indexOf"])(h,t)>=0||(h.push(t),Object(u["isFunction"])(t)&&(t={install:t}),t.install(f))}},"22d1":function(t,e,n){"use strict";var i=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),r=function(){function t(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),a=new r;function o(t,e){var n=e.browser,i=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);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),o&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(a.wxa=!0,a.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?a.worker=!0:"undefined"===typeof navigator?(a.node=!0,a.svgSupported=!0):o(navigator.userAgent,a),e["a"]=a},2306:function(t,e,n){"use strict";n.r(e),n.d(e,"extendShape",(function(){return R})),n.d(e,"extendPath",(function(){return B})),n.d(e,"registerShape",(function(){return z})),n.d(e,"getShapeClass",(function(){return E})),n.d(e,"makePath",(function(){return F})),n.d(e,"makeImage",(function(){return H})),n.d(e,"mergePath",(function(){return W})),n.d(e,"resizePath",(function(){return G})),n.d(e,"subPixelOptimizeLine",(function(){return q})),n.d(e,"subPixelOptimizeRect",(function(){return U})),n.d(e,"subPixelOptimize",(function(){return X})),n.d(e,"getTransform",(function(){return Y})),n.d(e,"applyTransform",(function(){return Z})),n.d(e,"transformDirection",(function(){return K})),n.d(e,"groupTransition",(function(){return J})),n.d(e,"clipPointsByRect",(function(){return tt})),n.d(e,"clipRectByRect",(function(){return et})),n.d(e,"createIcon",(function(){return nt})),n.d(e,"linePolygonIntersect",(function(){return it})),n.d(e,"lineLineIntersect",(function(){return rt})),n.d(e,"setTooltipConfig",(function(){return st})),n.d(e,"traverseElements",(function(){return ct}));var i=n("342d"),r=n("1687"),a=n("401b"),o=n("cbe5");n.d(e,"Path",(function(){return o["b"]}));var s=n("8582"),u=n("0da8");n.d(e,"Image",(function(){return u["a"]}));var c=n("2dc5");n.d(e,"Group",(function(){return c["a"]}));var l=n("76a5");n.d(e,"Text",(function(){return l["a"]}));var h=n("d9fc");n.d(e,"Circle",(function(){return h["a"]}));var f=n("ae69");n.d(e,"Ellipse",(function(){return f["a"]}));var d=n("4aa2");n.d(e,"Sector",(function(){return d["a"]}));var p=n("4573");n.d(e,"Ring",(function(){return p["a"]}));var g=n("87b1");n.d(e,"Polygon",(function(){return g["a"]}));var v=n("d498");n.d(e,"Polyline",(function(){return v["a"]}));var y=n("c7a2");n.d(e,"Rect",(function(){return y["a"]}));var m=n("cb11");n.d(e,"Line",(function(){return m["a"]}));var b=n("ac0f");n.d(e,"BezierCurve",(function(){return b["a"]}));var _=n("8d32");n.d(e,"Arc",(function(){return _["a"]}));var x=n("d4c6");n.d(e,"CompoundPath",(function(){return x["a"]}));var O=n("48a9");n.d(e,"LinearGradient",(function(){return O["a"]}));var w=n("dded");n.d(e,"RadialGradient",(function(){return w["a"]}));var S=n("9850");n.d(e,"BoundingRect",(function(){return S["a"]}));var j=n("ca80");n.d(e,"OrientedBoundingRect",(function(){return j["a"]}));var M=n("dce8");n.d(e,"Point",(function(){return M["a"]}));var T=n("392f");n.d(e,"IncrementalDisplayable",(function(){return T["a"]}));var C=n("9cf9"),I=n("6d8b"),k=n("861c"),D=n("deca");n.d(e,"updateProps",(function(){return D["h"]})),n.d(e,"initProps",(function(){return D["c"]})),n.d(e,"removeElement",(function(){return D["e"]})),n.d(e,"removeElementWithFadeOut",(function(){return D["f"]})),n.d(e,"isElementRemoved",(function(){return D["d"]}));var A=Math.max,P=Math.min,L={};function R(t){return o["b"].extend(t)}var N=i["c"];function B(t,e){return N(t,e)}function z(t,e){L[t]=e}function E(t){if(L.hasOwnProperty(t))return L[t]}function F(t,e,n,r){var a=i["b"](t,e);return n&&("center"===r&&(n=V(n,a.getBoundingRect())),G(a,n)),a}function H(t,e,n){var i=new u["a"]({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(V(e,r))}}});return i}function V(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-n/2,width:r,height:n}}var W=i["d"];function G(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function q(t,e){return C["b"](t,t,{lineWidth:e}),t}function U(t){return C["c"](t.shape,t.shape,t.style),t}var X=C["a"];function Y(t,e){var n=r["identity"]([]);while(t&&t!==e)r["mul"](n,t.getLocalTransform(),n),t=t.parent;return n}function Z(t,e,n){return e&&!Object(I["isArrayLike"])(e)&&(e=s["c"].getLocalTransform(e)),n&&(e=r["invert"]([],e)),a["applyTransform"]([],t,e)}function K(t,e,n){var i=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?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return a=Z(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function $(t){return!t.isGroup}function Q(t){return null!=t.shape}function J(t,e,n){if(t&&e){var i=r(t);e.traverse((function(t){if($(t)&&t.anid){var e=i[t.anid];if(e){var r=a(t);t.attr(a(e)),Object(D["h"])(t,r,n,Object(k["a"])(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){$(t)&&t.anid&&(e[t.anid]=t)})),e}function a(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Q(t)&&(e.shape=Object(I["extend"])({},t.shape)),e}}function tt(t,e){return Object(I["map"])(t,(function(t){var n=t[0];n=A(n,e.x),n=P(n,e.x+e.width);var i=t[1];return i=A(i,e.y),i=P(i,e.y+e.height),[n,i]}))}function et(t,e){var n=A(t.x,e.x),i=P(t.x+t.width,e.x+e.width),r=A(t.y,e.y),a=P(t.y+t.height,e.y+e.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}}function nt(t,e,n){var i=Object(I["extend"])({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(I["defaults"])(r,n),new u["a"](i)):F(t.replace("path://",""),i,n,"center")}function it(t,e,n,i,r){for(var a=0,o=r[r.length-1];a1)return!1;var v=at(d,p,l,h)/f;return!(v<0||v>1)}function at(t,e,n,i){return t*i-n*e}function ot(t){return t<=1e-6&&t>=-1e-6}function st(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(I["isString"])(e)?{formatter:e}:e,a=n.mainType,o=n.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=t.formatterParamsExtra;u&&Object(I["each"])(Object(I["keys"])(u),(function(t){Object(I["hasOwn"])(s,t)||(s[t]=u[t],s.$vars.push(t))}));var c=Object(k["a"])(t.el);c.componentMainType=a,c.componentIndex=o,c.tooltipConfig={name:i,option:Object(I["defaults"])({content:i,formatterParams:s},r)}}function ut(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function ct(t,e){if(t)if(Object(I["isArray"])(t))for(var n=0;n0&&a&&O(-h/o,0,o);var v,y,m=t[0],b=t[o-1];return _(),v<0&&w(-v,.8),y<0&&w(y,.8),_(),x(v,y,1),x(y,v,-1),_(),v<0&&S(-v),y<0&&S(y),c}function _(){v=m.rect[e]-i,y=r-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){O(i*n,0,o);var r=i+t;r<0&&w(-r*n,1)}else w(-t*n,1)}}function O(n,i,r){0!==n&&(c=!0);for(var a=i;a0)for(u=0;u0;u--){f=a[u-1]*h;O(-f,u,o)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(o-1)),i=0;i0?O(n,0,i+1):O(-n,o-i-1,o),t-=n,t<=0)return}}function s(t,e,n,i){return o(t,"x","width",e,n,i)}function u(t,e,n,i){return o(t,"y","height",e,n,i)}function c(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new r["a"](0,0,0,0);function a(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var o=0;o=0||a&&i["indexOf"](a,u)<0)){var c=n.getShallow(u,e);null!=c&&(o[t[s][0]]=c)}}return o}}},"2b17":function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return g})),n.d(e,"b",(function(){return m})),n.d(e,"d",(function(){return x})),n.d(e,"e",(function(){return w}));var i,r,a,o,s,u=n("6d8b"),c=n("e0d3"),l=n("ec6f"),h=n("07fd"),f=function(){function t(t,e){var n=Object(l["e"])(t)?t:Object(l["c"])(t);this._source=n;var i=this._data=n.data;n.sourceFormat===h["g"]&&(this._offset=0,this._dimSize=e,this._data=i),s(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;s=function(t,r,a){var s=a.sourceFormat,c=a.seriesLayoutBy,l=a.startIndex,f=a.dimensionsDefine,d=o[O(s,c)];if(Object(u["extend"])(t,d),s===h["g"])t.getItem=e,t.count=i,t.fillStorage=n;else{var p=g(s,c);t.getItem=Object(u["bind"])(p,null,r,l,f);var v=m(s,c);t.count=Object(u["bind"])(v,null,r,l,f)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,a=0;ac&&(c=d)}s[0]=u,s[1]=c}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e-1?(u+="top:50%",l+="translateY(-50%) rotate("+(a="left"===o?-225:-45)+"deg)"):(u+="left:50%",l+="translateX(-50%) rotate("+(a="top"===o?225:45)+"deg)");var h=a*Math.PI/180,f=s+r,p=f*Math.abs(Math.cos(h))+f*Math.abs(Math.sin(h)),g=Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-f)/2))/100;u+=";"+o+":-"+g+"px";var v=e+" solid "+r+"px;",y=["position:absolute;width:"+s+"px;height:"+s+"px;",u+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'
'}function M(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=l["a"].transformSupported?","+O+i:",left"+i+",top"+i),x+":"+r}function T(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!l["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var a=l["a"].transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+r+(a?",0":"")+")";return n?"top:0;left:0;"+O+":"+o+";":[["top",0],["left",0],[v,o]]}function C(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+r),Object(c["each"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function I(t,e,n){var i=[],r=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),u=t.get("shadowOffsetX"),l=t.get("shadowOffsetY"),h=t.getModel("textStyle"),f=Object(_["d"])(t,"html"),p=u+"px "+l+"px "+o+"px "+s;return i.push("box-shadow:"+p),e&&r&&i.push(M(r,n)),a&&i.push("background-color:"+a),Object(c["each"])(["width","color","radius"],(function(e){var n="border-"+e,r=Object(d["j"])(n),a=t.get(r);null!=a&&i.push(n+":"+a+("color"===e?"":"px"))})),i.push(C(h)),null!=f&&i.push("padding:"+Object(d["i"])(f).join("px ")+"px"),i.join(";")+";"}function k(t,e,n,i,r){var a=e&&e.painter;if(n){var o=a&&a.getViewportRoot();o&&Object(f["d"])(t,o,document.body,i,r)}else{t[0]=i,t[1]=r;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var D=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,l["a"].wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),a=this._appendToBody=n&&n.appendToBody;k(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),a?document.body.appendChild(i):t.appendChild(i),this._container=t;var o=this;i.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!o._enterable){var e=r.handler,n=r.painter.getViewportRoot();Object(h["e"])(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=b(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=w+I(t,!this._firstShow,this._longHide)+T(r[0],r[1],!0)+"border-color:"+Object(d["c"])(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var a=this.el;if(null!=t){var o="";if(Object(c["isString"])(r)&&"item"===n.get("trigger")&&!p(n)&&(o=j(n,i,r)),Object(c["isString"])(t))a.innerHTML=t+o;else if(t){a.innerHTML="",Object(c["isArray"])(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!l["a"].node&&n.getDom()){var r=rt(i,n);this._ticket="";var a=i.dataByCoordSys,o=ct(i,e,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var u=et;u.x=i.x,u.y=i.y,u.update(),Object($["a"])(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=Object(V["a"])(i,e),h=c.point[0],f=c.point[1];null!=h&&null!=f&&this._tryShow({offsetX:h,offsetY:f,target:c.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(rt(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,a=i.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s){var u=s.getData(),c=it([u.getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var a,o;this._lastDataByCoordSys=null,Object(J["a"])(n,(function(t){return null!=Object($["a"])(t).dataIndex?(a=t,!0):null!=Object($["a"])(t).tooltipConfig?(o=t,!0):void 0}),!0),a?this._showSeriesItemTooltip(t,a,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(c["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],a=it([e.tooltipOption],i),o=this._renderMode,s=[],u=Object(_["c"])("section",{blocks:[],noHeader:!0}),l=[],h=new _["a"];Object(c["each"])(t,(function(t){Object(c["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var a=X["e"](r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),f=Object(_["c"])("section",{header:a,noHeader:!Object(c["trim"])(a),sortBlocks:!0,blocks:[]});u.blocks.push(f),Object(c["each"])(t.seriesDataIndices,(function(u){var p=n.getSeriesByIndex(u.seriesIndex),g=u.dataIndexInside,v=p.getDataParams(g);if(!(v.dataIndex<0)){v.axisDim=t.axisDim,v.axisIndex=t.axisIndex,v.axisType=t.axisType,v.axisId=t.axisId,v.axisValue=U["c"](e.axis,{value:r}),v.axisValueLabel=a,v.marker=h.makeTooltipMarker("item",Object(d["c"])(v.color),o);var y=Object(Q["b"])(p.formatTooltip(g,!0,null)),m=y.frag;if(m){var b=it([p],i).get("valueFormatter");f.blocks.push(b?Object(c["extend"])({valueFormatter:b},m):m)}y.text&&l.push(y.text),s.push(v)}}))}}))})),u.blocks.reverse(),l.reverse();var f=e.position,p=a.get("order"),g=Object(_["b"])(u,h,o,p,n.get("useUTC"),a.get("textStyle"));g&&l.unshift(g);var v="richText"===o?"\n\n":"
",y=l.join(v);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(a,f,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(a,y,s,Math.random()+"",r[0],r[1],f,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Object($["a"])(e),a=r.seriesIndex,o=i.getSeriesByIndex(a),s=r.dataModel||o,u=r.dataIndex,l=r.dataType,h=s.getData(l),f=this._renderMode,p=t.positionDefault,g=it([h.getItemModel(u),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),v=g.get("trigger");if(null==v||"item"===v){var y=s.getDataParams(u,l),m=new _["a"];y.marker=m.makeTooltipMarker("item",Object(d["c"])(y.color),f);var b=Object(Q["b"])(s.formatTooltip(u,!1,l)),x=g.get("order"),O=g.get("valueFormatter"),w=b.frag,S=w?Object(_["b"])(O?Object(c["extend"])({valueFormatter:O},w):w,m,f,x,i.get("useUTC"),g.get("textStyle")):b.text,j="item_"+s.name+"_"+u;this._showOrMove(g,(function(){this._showTooltipContent(g,S,y,j,t.offsetX,t.offsetY,t.position,t.target,m)})),n({type:"showTip",dataIndexInside:u,dataIndex:h.getRawIndex(u),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=Object($["a"])(e),r=i.tooltipConfig,a=r.option||{};if(Object(c["isString"])(a)){var o=a;a={content:o,formatter:o}}var s=[a],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&s.push(u),s.push({formatter:a.content});var l=t.positionDefault,h=it(s,this._tooltipModel,l?{position:l}:null),f=h.get("content"),d=Math.random()+"",p=new _["a"];this._showOrMove(h,(function(){var n=Object(c["clone"])(h.get("formatterParams")||{});this._showTooltipContent(h,f,n,d,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,a,o,s,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent;l.setEnterable(t.get("enterable"));var h=t.get("formatter");o=o||t.get("position");var f=e,p=this._getNearestPoint([r,a],n,t.get("trigger"),t.get("borderColor")),g=p.color;if(h)if(Object(c["isString"])(h)){var v=t.ecModel.get("useUTC"),y=Object(c["isArray"])(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;f=h,m&&(f=Object(K["h"])(y.axisValue,f,v)),f=Object(d["e"])(f,n,!0)}else if(Object(c["isFunction"])(h)){var b=Object(c["bind"])((function(e,i){e===this._ticket&&(l.setContent(i,u,t,g,o),this._updatePosition(t,o,r,a,l,n,s))}),this);this._ticket=i,f=h(n,i,b)}else f=h;l.setContent(f,u,t,g,o),l.show(t,g),this._updatePosition(t,o,r,a,l,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(c["isArray"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(c["isArray"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,a,o){var s=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var l=r.getSize(),h=t.get("align"),f=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),Object(c["isFunction"])(e)&&(e=e([n,i],a,r.el,d,{viewSize:[s,u],contentSize:l.slice()})),Object(c["isArray"])(e))n=Object(F["q"])(e[0],s),i=Object(F["q"])(e[1],u);else if(Object(c["isObject"])(e)){var g=e;g.width=l[0],g.height=l[1];var v=Object(W["g"])(g,{width:s,height:u});n=v.x,i=v.y,h=null,f=null}else if(Object(c["isString"])(e)&&o){var y=st(e,d,l,t.get("borderWidth"));n=y[0],i=y[1]}else{y=at(n,i,r,s,u,h?null:20,f?null:20);n=y[0],i=y[1]}if(h&&(n-=ut(h)?l[0]/2:"right"===h?l[0]:0),f&&(i-=ut(f)?l[1]/2:"bottom"===f?l[1]:0),p(t)){y=ot(n,i,r,s,u);n=y[0],i=y[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(c["each"])(n,(function(n,a){var o=n.dataByAxis||[],s=t[a]||{},u=s.dataByAxis||[];r=r&&o.length===u.length,r&&Object(c["each"])(o,(function(t,n){var a=u[n]||{},o=t.seriesDataIndices||[],s=a.seriesDataIndices||[];r=r&&t.value===a.value&&t.axisType===a.axisType&&t.axisId===a.axisId&&o.length===s.length,r&&Object(c["each"])(o,(function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(c["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,a=e[n],o=i[n];a&&o&&o.data!==a.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!l["a"].node&&e.getDom()&&(Object(tt["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),q["b"]("itemTooltip",e))},e.type="tooltip",e}(Z["a"]);function it(t,e,n){var i,r=e.ecModel;n?(i=new G["a"](n,r,r),i=new G["a"](e.option,i,r)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof G["a"]&&(o=o.get("tooltip",!0)),Object(c["isString"])(o)&&(o={formatter:o}),o&&(i=new G["a"](o,i,r)))}return i}function rt(t,e){return t.dispatchAction||Object(c["bind"])(e.dispatchAction,e)}function at(t,e,n,i,r,a,o){var s=n.getSize(),u=s[0],c=s[1];return null!=a&&(t+u+a+2>i?t-=u+a:t+=a),null!=o&&(e+c+o>r?e-=c+o:e+=o),[t,e]}function ot(t,e,n,i,r){var a=n.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function st(t,e,n,i){var r=n[0],a=n[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,c=e.width,l=e.height;switch(t){case"inside":s=e.x+c/2-r/2,u=e.y+l/2-a/2;break;case"top":s=e.x+c/2-r/2,u=e.y-a-o;break;case"bottom":s=e.x+c/2-r/2,u=e.y+l+o;break;case"left":s=e.x-r-o,u=e.y+l/2-a/2;break;case"right":s=e.x+c+o,u=e.y+l/2-a/2}return[s,u]}function ut(t){return"center"===t||"middle"===t}function ct(t,e,n){var i=Object(Y["t"])(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var a=Object(Y["v"])(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s,u=n.getViewOfComponentModel(o);return u.group.traverse((function(e){var n=Object($["a"])(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:o.componentIndex,el:s}:void 0}}}var lt=nt;function ht(t){Object(r["a"])(i["a"]),t.registerComponentModel(u),t.registerComponentView(lt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},c["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},c["noop"])}},"2dc5":function(t,e,n){"use strict";var i=n("9ab4"),r=n("6d8b"),a=n("d5b7"),o=n("9850"),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return Object(i["a"])(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r["indexOf"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=r["indexOf"](n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n1&&(o*=d(_),s*=d(_));var x=(r===a?-1:1)*d((o*o*(s*s)-o*o*(y*y)-s*s*(f*f))/(o*o*(y*y)+s*s*(f*f)))||0,O=x*o*y/s,w=x*-s*f/o,S=(t+n)/2+g(h)*O-p(h)*w,j=(e+i)/2+p(h)*O+g(h)*w,M=b([1,0],[(f-O)/o,(y-w)/s]),T=[(f-O)/o,(y-w)/s],C=[(-1*f-O)/o,(-1*y-w)/s],I=b(T,C);if(m(T,C)<=-1&&(I=v),m(T,C)>=1&&(I=0),I<0){var k=Math.round(I/v*1e6)/1e6;I=2*v+k%2*v}l.addData(c,S,j,o,s,M,I,h,a)}var x=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,O=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function w(t){var e=new a["a"];if(!t)return e;var n,i=0,r=0,o=i,s=r,u=a["a"].CMD,c=t.match(x);if(!c)return e;for(var l=0;l=0&&i(c)?c:.5;var l=t.createRadialGradient(s,u,0,s,u,c);return l}function o(t,e,n){for(var i="radial"===e.type?a(t,e,n):r(t,e,n),o=e.colorStops,s=0;s0){if(t<=r)return o;if(t>=a)return s}else{if(t>=r)return o;if(t<=a)return s}else{if(t===r)return o;if(t===a)return s}return(t-r)/u*c+o}function u(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return i["isString"](t)?o(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function c(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),a),t=(+t).toFixed(e),n?t:+t}function l(t){return t.sort((function(t,e){return t-e})),t}function h(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return f(t)}function f(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,a=e.indexOf("."),o=a<0?0:r-1-a;return Math.max(0,o-i)}function d(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),a=Math.round(n(Math.abs(e[1]-e[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20}function p(t,e,n){if(!t[e])return 0;var i=g(t,n);return i[e]||0}function g(t,e){var n=i["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var r=Math.pow(10,e),a=i["map"](t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,s=i["map"](a,(function(t){return Math.floor(t)})),u=i["reduce"](s,(function(t,e){return t+e}),0),c=i["map"](a,(function(t,e){return t-s[e]}));while(ul&&(l=c[f],h=f);++s[h],c[h]=0,++u}return i["map"](s,(function(t){return t/r}))}function v(t,e){var n=Math.max(h(t),h(e)),i=t+e;return n>a?i:c(i,n)}var y=9007199254740991;function m(t){var e=2*Math.PI;return(t%e+e)%e}function b(t){return t>-r&&t=10&&e++,e}function S(t,e){var n,i=w(t),r=Math.pow(10,i),a=t/r;return n=e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function j(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],a=n-i;return a?r+a*(t[i]-r):r}function M(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0&&(s=c.interpolatedValue[u])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return Object(r["e"])(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function u(t){var e,n;return i["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}},3901:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=n("282b"),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],a=Object(i["a"])(r),o=function(){function t(){}return t.prototype.getLineStyle=function(t){return a(this,t)},t}()},"392f":function(t,e,n){"use strict";var i=n("9ab4"),r=n("19eb"),a=n("9850"),o=[],s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return Object(i["a"])(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;ne)return t[i];return t[n-1]}function c(t,e,n,i,r,a,o){a=a||t;var s=e(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(r))return l[r];var h=null!=o&&i?u(i,o):n;if(h=h||n,h&&h.length){var f=h[c];return r&&(l[r]=f),s.paletteIdx=(c+1)%h.length,f}}function l(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}},"41ef":function(t,e,n){"use strict";n.r(e),n.d(e,"parse",(function(){return y})),n.d(e,"lift",(function(){return _})),n.d(e,"toHex",(function(){return x})),n.d(e,"fastLerp",(function(){return O})),n.d(e,"fastMapToColor",(function(){return w})),n.d(e,"lerp",(function(){return S})),n.d(e,"mapToColor",(function(){return j})),n.d(e,"modifyHSL",(function(){return M})),n.d(e,"modifyAlpha",(function(){return T})),n.d(e,"stringify",(function(){return C})),n.d(e,"lum",(function(){return I})),n.d(e,"random",(function(){return k}));var i=n("d51b"),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return t=Math.round(t),t<0?0:t>255?255:t}function o(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function l(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function f(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new i["a"](20),g=null;function v(t,e){g&&d(g,e),g=p.put(t,g||e.slice())}function y(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in r)return d(e,r[i]),v(t,e),e;var a=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),s=i.indexOf(")");if(-1!==o&&s+1===a){var l=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),g=1;switch(l){case"rgba":if(4!==h.length)return 3===h.length?f(e,+h[0],+h[1],+h[2],1):f(e,0,0,0,1);g=c(h.pop());case"rgb":return h.length>=3?(f(e,u(h[0]),u(h[1]),u(h[2]),3===h.length?g:c(h[3])),v(t,e),e):void f(e,0,0,0,1);case"hsla":return 4!==h.length?void f(e,0,0,0,1):(h[3]=c(h[3]),m(h,e),v(t,e),e);case"hsl":return 3!==h.length?void f(e,0,0,0,1):(m(h,e),v(t,e),e);default:return}}f(e,0,0,0,1)}else{if(4===a||5===a){var y=parseInt(i.slice(1,4),16);return y>=0&&y<=4095?(f(e,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===a?parseInt(i.slice(4),16)/15:1),v(t,e),e):void f(e,0,0,0,1)}if(7===a||9===a){y=parseInt(i.slice(1,7),16);return y>=0&&y<=16777215?(f(e,(16711680&y)>>16,(65280&y)>>8,255&y,9===a?parseInt(i.slice(7),16)/255:1),v(t,e),e):void f(e,0,0,0,1)}}}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=c(t[1]),r=c(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return e=e||[],f(e,a(255*l(s,o,n+1/3)),a(255*l(s,o,n)),a(255*l(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),u=s-o,c=(s+o)/2;if(0===u)e=0,n=0;else{n=c<.5?u/(s+o):u/(2-s-o);var l=((s-i)/6+u/2)/u,h=((s-r)/6+u/2)/u,f=((s-a)/6+u/2)/u;i===s?e=f-h:r===s?e=1/3+l-f:a===s&&(e=2/3+h-l),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,c];return null!=t[3]&&d.push(t[3]),d}}function _(t,e){var n=y(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return C(n,4===n.length?"rgba":"rgb")}}function x(t){var e=y(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function O(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),u=e[r],c=e[o],l=i-r;return n[0]=a(h(u[0],c[0],l)),n[1]=a(h(u[1],c[1],l)),n[2]=a(h(u[2],c[2],l)),n[3]=s(h(u[3],c[3],l)),n}}var w=O;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),u=y(e[r]),c=y(e[o]),l=i-r,f=C([a(h(u[0],c[0],l)),a(h(u[1],c[1],l)),a(h(u[2],c[2],l)),s(h(u[3],c[3],l))],"rgba");return n?{color:f,leftIndex:r,rightIndex:o,value:i}:f}}var j=S;function M(t,e,n,i){var r=y(t);if(t)return r=b(r),null!=e&&(r[0]=o(e)),null!=n&&(r[1]=c(n)),null!=i&&(r[2]=c(i)),C(m(r),"rgba")}function T(t,e){var n=y(t);if(n&&null!=e)return n[3]=s(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function I(t,e){var n=y(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function k(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},"42e5":function(t,e,n){"use strict";var i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();e["a"]=i},4319:function(t,e,n){"use strict";var i=n("22d1"),r=n("625e"),a=n("282b"),o=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s=Object(a["a"])(o),u=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return s(this,t,e)},t}(),c=n("7837"),l=n("76a5"),h=["textStyle","color"],f=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],d=new l["a"],p=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(h):null)},t.prototype.getFont=function(){return Object(c["d"])({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;nn?o:a,l=Math.abs(u.label.y-n);if(l>=c.maxY){var h=u.label.x-e-u.len2*r,f=i+u.len,p=Math.abs(h)t.unconstrainedWidth?null:d:null;i.setStyle("width",p)}var g=i.getBoundingRect();a.width=g.width;var v=(i.style.margin||0)+2.1;a.height=g.height+v,a.y-=(a.height-h)/2}}}function T(t){return"center"===t.position}function C(t){var e,n,i=t.getData(),a=[],s=!1,u=(t.get("minShowLabelAngle")||0)*w,c=i.getLayout("viewRect"),l=i.getLayout("r"),h=c.width,f=c.x,d=c.y,p=c.height;function g(t){t.ignore=!0}function v(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var c=i.getItemGraphicEl(t),d=c.shape,p=c.getTextContent(),y=c.getTextGuideLine(),m=i.getItemModel(t),b=m.getModel("label"),x=b.get("position")||m.get(["emphasis","label","position"]),O=b.get("distanceToLabelLine"),w=b.get("alignTo"),S=Object(r["q"])(b.get("edgeDistance"),h),j=b.get("bleedMargin"),M=m.getModel("labelLine"),T=M.get("length");T=Object(r["q"])(T,h);var C=M.get("length2");if(C=Object(r["q"])(C,h),Math.abs(d.endAngle-d.startAngle)0?"right":"left":L>0?"left":"right"}var W=Math.PI,G=0,q=b.get("rotate");if(Object(o["isNumber"])(q))G=q*(W/180);else if("center"===x)G=0;else if("radial"===q||!0===q){var U=L<0?-P+W:-P;G=U}else if("tangential"===q&&"outside"!==x&&"outer"!==x){var X=Math.atan2(L,R);X<0&&(X=2*W+X);var Y=R>0;Y&&(X=W+X),G=X-W}if(s=!!G,p.x=I,p.y=k,p.rotation=G,p.setStyle({verticalAlign:"middle"}),N){p.setStyle({align:A});var Z=p.states.select;Z&&(Z.x+=p.x,Z.y+=p.y)}else{var K=p.getBoundingRect().clone();K.applyTransform(p.getComputedTransform());var $=(p.style.margin||0)+2.1;K.y-=$/2,K.height+=$,a.push({label:p,labelLine:y,position:x,len:T,len2:C,minTurnAngle:M.get("minTurnAngle"),maxSurfaceAngle:M.get("maxSurfaceAngle"),surfaceNormal:new _["a"](L,R),linePoints:D,textAlign:A,labelDistance:O,labelAlignTo:w,edgeDistance:S,bleedMargin:j,rect:K,unconstrainedWidth:K.width,labelStyleWidth:p.style.width})}c.setTextConfig({inside:N})}})),!s&&t.get("avoidLabelOverlap")&&j(a,e,n,l,h,p,f,d);for(var y=0;y0){for(var u=a.getItemLayout(0),c=1;isNaN(u&&u.startAngle)&&c=i.r0}},e.type="pie",e}(b["a"]),P=A,L=n("3f23"),R=n("e0d3"),N=n("0f99"),B=n("c4a3"),z=n("4f85"),E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(d["a"])(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new B["a"](o["bind"](this.getData,this),o["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){var t=Object(L["a"])(this,{coordDimensions:["value"],encodeDefaulter:o["curry"](N["d"],this)}),e=[];return t.each(t.mapDimension("value"),(function(t){e.push(t)})),this.seats=Object(r["e"])(e,t.hostModel.get("percentPrecision")),t},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},e.prototype._defaultLabelLine=function(t){R["f"](t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(z["b"]),F=E;function H(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(o["isNumber"])(i)&&!isNaN(i)&&i<0)}))}}}function V(t){t.registerChartView(P),t.registerSeriesModel(F),Object(i["a"])("pie",t.registerAction),t.registerLayout(Object(o["curry"])(h,"pie")),t.registerProcessor(Object(f["a"])("pie")),t.registerProcessor(H("pie"))}},"4a3f":function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return v})),n.d(e,"f",(function(){return y})),n.d(e,"c",(function(){return m})),n.d(e,"g",(function(){return b})),n.d(e,"e",(function(){return _})),n.d(e,"d",(function(){return x})),n.d(e,"h",(function(){return O})),n.d(e,"i",(function(){return w})),n.d(e,"m",(function(){return S})),n.d(e,"j",(function(){return j})),n.d(e,"n",(function(){return M})),n.d(e,"l",(function(){return T})),n.d(e,"k",(function(){return C}));var i=n("401b"),r=Math.pow,a=Math.sqrt,o=1e-8,s=1e-4,u=a(3),c=1/3,l=Object(i["create"])(),h=Object(i["create"])(),f=Object(i["create"])();function d(t){return t>-o&&to||t<-o}function g(t,e,n,i,r){var a=1-r;return a*a*(a*t+3*r*e)+r*r*(r*i+3*a*n)}function v(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)}function y(t,e,n,i,o,s){var l=i+3*(e-n)-t,h=3*(n-2*e+t),f=3*(e-t),p=t-o,g=h*h-3*l*f,v=h*f-9*l*p,y=f*f-3*h*p,m=0;if(d(g)&&d(v))if(d(h))s[0]=0;else{var b=-f/h;b>=0&&b<=1&&(s[m++]=b)}else{var _=v*v-4*g*y;if(d(_)){var x=v/g,O=(b=-h/l+x,-x/2);b>=0&&b<=1&&(s[m++]=b),O>=0&&O<=1&&(s[m++]=O)}else if(_>0){var w=a(_),S=g*h+1.5*l*(-v+w),j=g*h+1.5*l*(-v-w);S=S<0?-r(-S,c):r(S,c),j=j<0?-r(-j,c):r(j,c);b=(-h-(S+j))/(3*l);b>=0&&b<=1&&(s[m++]=b)}else{var M=(2*g*h-3*l*v)/(2*a(g*g*g)),T=Math.acos(M)/3,C=a(g),I=Math.cos(T),k=(b=(-h-2*C*I)/(3*l),O=(-h+C*(I+u*Math.sin(T)))/(3*l),(-h+C*(I-u*Math.sin(T)))/(3*l));b>=0&&b<=1&&(s[m++]=b),O>=0&&O<=1&&(s[m++]=O),k>=0&&k<=1&&(s[m++]=k)}}return m}function m(t,e,n,i,r){var o=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,u=3*e-3*t,c=0;if(d(s)){if(p(o)){var l=-u/o;l>=0&&l<=1&&(r[c++]=l)}}else{var h=o*o-4*s*u;if(d(h))r[0]=-o/(2*s);else if(h>0){var f=a(h),g=(l=(-o+f)/(2*s),(-o-f)/(2*s));l>=0&&l<=1&&(r[c++]=l),g>=0&&g<=1&&(r[c++]=g)}}return c}function b(t,e,n,i,r,a){var o=(e-t)*r+t,s=(n-e)*r+e,u=(i-n)*r+n,c=(s-o)*r+o,l=(u-s)*r+s,h=(l-c)*r+c;a[0]=t,a[1]=o,a[2]=c,a[3]=h,a[4]=h,a[5]=l,a[6]=u,a[7]=i}function _(t,e,n,r,o,u,c,d,p,v,y){var m,b,_,x,O,w=.005,S=1/0;l[0]=p,l[1]=v;for(var j=0;j<1;j+=.05)h[0]=g(t,n,o,c,j),h[1]=g(e,r,u,d,j),x=Object(i["distSquare"])(l,h),x=0&&x=0&&l<=1&&(r[c++]=l)}}else{var h=s*s-4*o*u;if(d(h)){l=-s/(2*o);l>=0&&l<=1&&(r[c++]=l)}else if(h>0){var f=a(h),g=(l=(-s+f)/(2*o),(-s-f)/(2*o));l>=0&&l<=1&&(r[c++]=l),g>=0&&g<=1&&(r[c++]=g)}}return c}function j(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function M(t,e,n,i,r){var a=(e-t)*i+t,o=(n-e)*i+e,s=(o-a)*i+a;r[0]=t,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n}function T(t,e,n,r,o,u,c,d,p){var g,v=.005,y=1/0;l[0]=c,l[1]=d;for(var m=0;m<1;m+=.05){h[0]=O(t,n,o,m),h[1]=O(e,r,u,m);var b=Object(i["distSquare"])(l,h);b=0&&bA*A+P*P&&(M=C,T=I),{cx:M,cy:T,x0:-l,y0:-h,x1:M*(r/w-1),y1:T*(r/w-1)}}function b(t){var e;if(Object(a["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function _(t,e){var n,i=p(e.r,0),r=p(e.r0||0,0),a=i>0,_=r>0;if(a||_){if(a||(i=r,r=0),r>i){var x=i;i=r,r=x}var O=e.startAngle,w=e.endAngle;if(!isNaN(O)&&!isNaN(w)){var S=e.cx,j=e.cy,M=!!e.clockwise,T=f(w-O),C=T>s&&T%s;if(C>v&&(T=C),i>v)if(T>s-v)t.moveTo(S+i*c(O),j+i*u(O)),t.arc(S,j,i,O,w,!M),r>v&&(t.moveTo(S+r*c(w),j+r*u(w)),t.arc(S,j,r,w,O,M));else{var I=void 0,k=void 0,D=void 0,A=void 0,P=void 0,L=void 0,R=void 0,N=void 0,B=void 0,z=void 0,E=void 0,F=void 0,H=void 0,V=void 0,W=void 0,G=void 0,q=i*c(O),U=i*u(O),X=r*c(w),Y=r*u(w),Z=T>v;if(Z){var K=e.cornerRadius;K&&(n=b(K),I=n[0],k=n[1],D=n[2],A=n[3]);var $=f(i-r)/2;if(P=g($,D),L=g($,A),R=g($,I),N=g($,k),E=B=p(P,L),F=z=p(R,N),(B>v||z>v)&&(H=i*c(w),V=i*u(w),W=r*c(O),G=r*u(O),Tv){var at=g(D,E),ot=g(A,E),st=m(W,G,q,U,i,at,M),ut=m(H,V,X,Y,i,ot,M);t.moveTo(S+st.cx+st.x0,j+st.cy+st.y0),E0&&t.arc(S+st.cx,j+st.cy,at,h(st.y0,st.x0),h(st.y1,st.x1),!M),t.arc(S,j,i,h(st.cy+st.y1,st.cx+st.x1),h(ut.cy+ut.y1,ut.cx+ut.x1),!M),ot>0&&t.arc(S+ut.cx,j+ut.cy,ot,h(ut.y1,ut.x1),h(ut.y0,ut.x0),!M))}else t.moveTo(S+q,j+U),t.arc(S,j,i,O,w,!M);else t.moveTo(S+q,j+U);if(r>v&&Z)if(F>v){at=g(I,F),ot=g(k,F),st=m(X,Y,H,V,r,-ot,M),ut=m(q,U,W,G,r,-at,M);t.lineTo(S+st.cx+st.x0,j+st.cy+st.y0),F0&&t.arc(S+st.cx,j+st.cy,ot,h(st.y0,st.x0),h(st.y1,st.x1),!M),t.arc(S,j,r,h(st.cy+st.y1,st.cx+st.x1),h(ut.cy+ut.y1,ut.cx+ut.x1),M),at>0&&t.arc(S+ut.cx,j+ut.cy,at,h(ut.y1,ut.x1),h(ut.y0,ut.x0),!M))}else t.lineTo(S+X,j+Y),t.arc(S,j,r,w,O,M);else t.lineTo(S+X,j+Y)}else t.moveTo(S,j);t.closePath()}}}var x=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),O=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new x},e.prototype.buildPath=function(t,e){_(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r["b"]);O.prototype.type="sector";e["a"]=O},"4bc4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return a}));var i=1,r=2,a=4},"4f85":function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var i=n("9ab4"),r=n("6d8b"),a=n("22d1"),o=n("e0d3"),s=n("6cb7"),u=n("4041"),c=n("38a2"),l=n("f934"),h=n("9fbc"),f=n("625e"),d=n("f72b"),p=n("f6d8"),g=o["o"]();function v(t,e){return t.getName(e)||t.getId(e)}var y="__universalTransitionEnabled",m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return Object(i["a"])(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(h["a"])({count:x,reset:O}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=g(this).sourceManager=new d["a"](this);i.prepareSource();var r=this.getInitialData(t,n);S(r,this),this.dataTask.context.data=r,g(this).dataBeforeProcessed=r,b(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(l["d"])(this),i=n?Object(l["f"])(t):{},a=this.subType;s["a"].hasClass(a)&&(a+="Series"),r["merge"](t,e.getTheme().get(this.subType)),r["merge"](t,this.getDefaultOption()),o["f"](t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Object(l["h"])(t,i,n)},e.prototype.mergeOption=function(t,e){t=r["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=Object(l["d"])(this);n&&Object(l["h"])(this.option,t,n);var i=g(this).sourceManager;i.dirty(),i.prepareSource();var a=this.getInitialData(t,e);S(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,g(this).dataBeforeProcessed=a,b(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(t){if(t&&!r["isTypedArray"](t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=u["a"].prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a=0&&n.push(a)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[v(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[y])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,a=this.option,o=a.selectedMode,s=e.length;if(o&&s)if("series"===o)a.selectedMap="all";else if("multiple"===o){r["isObject"](a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s["a"].registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(s["a"]);function b(t){var e=t.name;o["n"](t)||(t.name=_(t)||e)}function _(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return r["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function x(t){return t.model.getRawData().count()}function O(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),w}function w(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function S(t,e){r["each"](r["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,r["curry"](j,e))}))}function j(t,e){var n=M(t);return n&&n.setOutputEnd((e||this).count()),e}function M(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r["mixin"](m,c["a"]),r["mixin"](m,u["a"]),Object(f["e"])(m,s["a"]),e["b"]=m},"4fac":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("401b");function r(t,e,n,r){var a,o,s,u,c=[],l=[],h=[],f=[];if(r){s=[1/0,1/0],u=[-1/0,-1/0];for(var d=0,p=t.length;d=2){if(i){var o=r(a,i,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var s=a.length,u=0;u<(n?s:s-1);u++){var c=o[2*u],l=o[2*u+1],h=a[(u+1)%s];t.bezierCurveTo(c[0],c[1],l[0],l[1],h[0],h[1])}}else{t.moveTo(a[0][0],a[0][1]);u=1;for(var f=a.length;u0))}function v(t){return"string"===typeof t&&"none"!==t}function y(t){var e=t.fill;return null!=e&&"none"!==e}function m(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function b(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function _(t,e,n){var i=Object(a["a"])(e.image,e.__image,n);if(Object(a["c"])(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*l["RADIAN_TO_DEGREE"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function x(t,e,n,i){var r,a=g(n),s=y(n),u=n.strokePercent,c=u<1,l=!e.path;e.silent&&!c||!l||e.createPathProxy();var d=e.path||p,v=e.__dirty;if(!i){var x=n.fill,O=n.stroke,w=s&&!!x.colorStops,S=a&&!!O.colorStops,j=s&&!!x.image,M=a&&!!O.image,T=void 0,C=void 0,I=void 0,k=void 0,D=void 0;(w||S)&&(D=e.getBoundingRect()),w&&(T=v?Object(o["a"])(t,x,D):e.__canvasFillGradient,e.__canvasFillGradient=T),S&&(C=v?Object(o["a"])(t,O,D):e.__canvasStrokeGradient,e.__canvasStrokeGradient=C),j&&(I=v||!e.__canvasFillPattern?_(t,x,e):e.__canvasFillPattern,e.__canvasFillPattern=I),M&&(k=v||!e.__canvasStrokePattern?_(t,O,e):e.__canvasStrokePattern,e.__canvasStrokePattern=I),w?t.fillStyle=T:j&&(I?t.fillStyle=I:s=!1),S?t.strokeStyle=C:M&&(k?t.strokeStyle=k:a=!1)}var A,P,L=e.getGlobalScale();d.setScale(L[0],L[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(r=Object(h["a"])(e),A=r[0],P=r[1]);var R=!0;(l||v&f["b"])&&(d.setDPR(t.dpr),c?d.setContext(null):(d.setContext(t),R=!1),d.reset(),e.buildPath(d,e.shape,i),d.toStatic(),e.pathUpdated()),R&&d.rebuildPath(t,c?u:1),A&&(t.setLineDash(A),t.lineDashOffset=P),i||(n.strokeFirst?(a&&b(t,n),s&&m(t,n)):(s&&m(t,n),a&&b(t,n))),A&&t.setLineDash([])}function O(t,e,n){var i=e.__image=Object(a["a"])(n.image,e.__image,e,e.onload);if(i&&Object(a["c"])(i)){var r=n.x||0,o=n.y||0,s=e.getWidth(),u=e.getHeight(),c=i.width/i.height;if(null==s&&null!=u?s=u*c:null==u&&null!=s?u=s/c:null==s&&null==u&&(s=i.width,u=i.height),n.sWidth&&n.sHeight){var l=n.sx||0,h=n.sy||0;t.drawImage(i,l,h,n.sWidth,n.sHeight,r,o,s,u)}else if(n.sx&&n.sy){l=n.sx,h=n.sy;var f=s-l,d=u-h;t.drawImage(i,l,h,f,d,r,o,s,u)}else t.drawImage(i,r,o,s,u)}}function w(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||d["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var a=void 0,o=void 0;t.setLineDash&&n.lineDash&&(i=Object(h["a"])(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),n.strokeFirst?(g(n)&&t.strokeText(r,n.x,n.y),y(n)&&t.fillText(r,n.x,n.y)):(y(n)&&t.fillText(r,n.x,n.y),g(n)&&t.strokeText(r,n.x,n.y)),a&&t.setLineDash([])}}var S=["shadowBlur","shadowOffsetX","shadowOffsetY"],j=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function M(t,e,n,r,a){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){B(t,a),o=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i["b"].opacity:s}(r||e.blend!==n.blend)&&(o||(B(t,a),o=!0),t.globalCompositeOperation=e.blend||i["b"].blend);for(var u=0;u0&&u>0&&!c&&(s=0),s<0&&u<0&&!l&&(u=0));var f=this._determinedMin,d=this._determinedMax;return null!=f&&(s=f,c=!0),null!=d&&(u=d,l=!0),{min:s,max:u,minFixed:c,maxFixed:l,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=o[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),o={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function u(t,e,n){var i=t.rawExtentInfo;return i||(i=new a(t,e,n),t.rawExtentInfo=i,i)}function c(t,e){return null==e?null:Object(i["eqNaN"])(e)?NaN:t.parse(e)}},"551f":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=n("282b"),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],a=Object(i["a"])(r),o=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return a(this,t,e)},t}()},"58c9":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}));var i={};function r(t,e){i[t]=e}function a(t){return i[t]}},"5e76":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return c}));var i=n("d51b"),r=n("726e"),a=new i["a"](50);function o(t){if("string"===typeof t){var e=a.get(t);return e&&e.image}return t}function s(t,e,n,i,o){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=a.get(t),l={hostEl:n,cb:i,cbPayload:o};return s?(e=s.image,!c(e)&&s.pending.push(l)):(e=r["d"].loadImage(t,u,u),e.__zrImageSrc=t,a.put(t,e.__cachedImgObj={image:e,pending:[l]})),e}return t}return e}function u(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&u(t,o,e,n)}else{u(t,e,e,n);var s=f(e);e.zrDelta=s?s/120:-(e.detail||0)/3}var c=e.button;return null==e.which&&void 0!==c&&a.test(e.type)&&(e.which=1&c?1:2&c?3:4&c?2:0),e}function f(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=0!==i?Math.abs(i):Math.abs(n),a=i>0?-1:i<0?1:n>0?-1:1;return 3*r*a}function d(t,e,n,i){t.addEventListener(e,n,i)}function p(t,e,n,i){t.removeEventListener(e,n,i)}var g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function v(t){return 2===t.which||3===t.which}},"625e":function(t,e,n){"use strict";n.d(e,"f",(function(){return u})),n.d(e,"d",(function(){return l})),n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"a",(function(){return g})),n.d(e,"c",(function(){return m}));var i=n("9ab4"),r=n("6d8b"),a=".",o="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function u(t){var e={main:"",sub:""};if(t){var n=t.split(a);e.main=n[0]||"",e.sub=n[1]||""}return e}function c(t){r["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function l(t){return!(!t||!t[s])}function h(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return f(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return Object(i["a"])(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},r["inherits"](e,this)),r["extend"](e.prototype,t),e[s]=!0,e.extend=this.extend,e.superCall=v,e.superApply=y,e.superClass=n,e}}function f(t){return r["isFunction"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function d(t,e){t.extend=e.extend}var p=Math.round(10*Math.random());function g(t){var e=["__\0is_clz",p++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function v(t,e){for(var n=[],i=2;i>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",r[c]+":0",i[1-u]+":auto",r[1-c]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}function f(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],a=e.srcCoords,s=[],u=[],c=!0,l=0;l<4;l++){var h=t[l].getBoundingClientRect(),f=2*l,d=h.left,p=h.top;s.push(d,p),c=c&&a&&d===a[f]&&p===a[f+1],u.push(t[l].offsetLeft,t[l].offsetTop)}return c&&r?r:(e.srcCoords=s,e[i]=n?o(u,s):o(s,u))}function d(t){return"CANVAS"===t.nodeName.toUpperCase()}var p=/([&<>"'])/g,g={"&":"&","<":"<",">":">",'"':""","'":"'"};function v(t){return null==t?"":(t+"").replace(p,(function(t,e){return g[e]}))}},6679:function(t,e,n){"use strict";var i=n("9ab4"),r=n("cd33"),a=n("b12f"),o={},s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(i["a"])(e,t),e.prototype.render=function(e,n,i,a){this.axisPointerClass&&r["b"](e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=r["d"](t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){o[t]=e},e.getAxisPointerClass=function(t){return t&&o[t]},e.type="axis",e}(a["a"]);e["a"]=s},"68ab":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("4a3f");function r(t,e,n,r,a,o,s,u,c){if(0===s)return!1;var l=s;if(c>e+l&&c>r+l&&c>o+l||ct+l&&u>n+l&&u>a+l||u0)i*=10;var a=[h["w"](y(e[0]/i)*i),h["w"](v(e[1]/i)*i)];this._interval=i,this._niceExtent=a}},e.prototype.calcNiceExtent=function(t){p.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=b(t)/b(this.base),f["a"](t,this._extent)},e.prototype.normalize=function(t){return t=b(t)/b(this.base),f["f"](t,this._extent)},e.prototype.scale=function(t){return t=f["g"](t,this._extent),m(this.base,t)},e.type="log",e}(o["a"]),x=_.prototype;function O(t,e){return g(t,h["h"](e))}x.getMinorTicks=p.getMinorTicks,x.getLabel=p.getLabel,o["a"].registerClass(_);var w=_,S=n("ee1a"),j=n("538f");function M(t,e){var n=t.type,r=Object(j["a"])(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,o=r.max,u=e.ecModel;if(u&&"time"===n){var c=Object(s["e"])("bar",u),l=!1;if(i["each"](c,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var h=Object(s["d"])(c),f=T(a,o,e,h);a=f.min,o=f.max}}return{extent:[a,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function T(t,e,n,r){var a=n.axis.getExtent(),o=a[1]-a[0],u=Object(s["f"])(r,n.axis);if(void 0===u)return{min:t,max:e};var c=1/0;i["each"](u,(function(t){c=Math.min(t.offset,c)}));var l=-1/0;i["each"](u,(function(t){l=Math.max(t.offset+t.width,l)})),c=Math.abs(c),l=Math.abs(l);var h=c+l,f=e-t,d=1-(c+l)/o,p=f/d-f;return e+=p*(l/h),t-=p*(c/h),{min:t,max:e}}function C(t,e){var n=e,i=M(t,n),r=i.extent,a=n.get("splitNumber");t instanceof w&&(t.base=n.get("logBase"));var o=t.type,s=n.get("interval"),u="interval"===o||"time"===o;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:u?n.get("minInterval"):null,maxInterval:u?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function I(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new r["a"]({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new c["a"]({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(o["a"].getClass(e)||a["a"])}}function k(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function D(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):i["isString"](e)?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace("{value}",null!=i?i:"");return r}}(e):i["isFunction"](e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(A(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function A(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function P(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,a,o=n.getExtent();n instanceof r["a"]?a=n.count():(i=n.getTicks(),a=i.length);var s,u=t.getLabelModel(),c=D(t),l=1;a>40&&(l=Math.ceil(a/40));for(var h=0;ht[1]&&(t[1]=i[1])}))}},"697e7":function(t,e,n){"use strict";n.r(e),n.d(e,"init",(function(){return gt})),n.d(e,"dispose",(function(){return vt})),n.d(e,"disposeAll",(function(){return yt})),n.d(e,"getInstance",(function(){return mt})),n.d(e,"registerPainter",(function(){return bt})),n.d(e,"version",(function(){return _t}));var i=n("22d1"),r=n("6d8b"),a=n("9ab4"),o=n("401b"),s=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),u=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,e.drift(r,a,t),this.handler.dispatchToElement(new s(e,t),"drag",t.event);var o=this.handler.findHover(n,i,e).target,u=this._dropTarget;this._dropTarget=o,e!==o&&(u&&o!==u&&this.handler.dispatchToElement(new s(u,t),"dragleave",t.event),o&&o!==u&&this.handler.dispatchToElement(new s(o,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),c=u,l=n("6fd3"),h=n("607d"),f=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},a=0,o=i.length;a1&&i&&i.length>1){var a=d(i)/d(r);!isFinite(a)&&(a=1),e.pinchScale=a;var o=p(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}},v=n("9850"),y="silent";function m(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:b}}function b(){h["g"](this.event)}var _=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Object(a["a"])(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(l["a"]),x=function(){function t(t,e){this.x=t,this.y=e}return t}(),O=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],w=new v["a"](0,0,0,0),S=function(t){function e(e,n,i,r,a){var o=t.call(this)||this;return o._hovered=new x(0,0),o.storage=e,o.painter=n,o.painterRoot=r,o._pointerSize=a,i=i||new _,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new c(o),o}return Object(a["a"])(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(r["each"](O,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=T(this,e,n),r=this._hovered,a=r.target;a&&!a.__zr&&(r=this.findHover(r.x,r.y),a=r.target);var o=this._hovered=i?new x(e,n):this.findHover(e,n),s=o.target,u=this.proxy;u.setCursor&&u.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new x(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,a=m(e,t,n);while(i)if(i[r]&&(a.cancelBubble=!!i[r].call(i,a)),i.trigger(e,a),i=i.__hostTarget?i.__hostTarget:i.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,a),t.trigger&&t.trigger(e,a)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new x(t,e);if(M(i,r,t,e,n),this._pointerSize&&!r.target){for(var a=[],o=this._pointerSize,s=o/2,u=new v["a"](t-s,e-s,o,o),c=i.length-1;c>=0;c--){var l=i[c];l===n||l.ignore||l.ignoreCoarsePointer||l.parent&&l.parent.ignoreCoarsePointer||(w.copy(l.getBoundingRect()),l.transform&&w.applyTransform(l.transform),w.intersect(u)&&a.push(l))}if(a.length)for(var h=4,f=Math.PI/12,d=2*Math.PI,p=0;p=0;a--){var o=t[a],s=void 0;if(o!==r&&!o.ignore&&(s=j(o,n,i))&&(!e.topTarget&&(e.topTarget=o),s!==y)){e.target=o;break}}}function T(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){S.prototype[t]=function(e){var n,i,r=e.zrX,a=e.zrY,s=T(this,r,a);if("mouseup"===t&&s||(n=this.findHover(r,a),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||o["dist"](this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var C=S,I=n("04f6"),k=n("4bc4"),D=!1;function A(){D||(D=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function P(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var L=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=P}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(A(),c.z=0),isNaN(c.z2)&&(A(),c.z2=0),isNaN(c.zlevel)&&(A(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var l=t.getDecalElement&&t.getDecalElement();l&&this._updateAndAddDisplayable(l,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),R=L,N=n("98b7"),B=n("06ad");function z(){return(new Date).getTime()}var E=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return Object(a["a"])(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=z()-this._pausedTime,n=e-this._time,i=this._head;while(i){var r=i.next,a=i.step(e,n);a?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(Object(N["a"])(e),!t._paused&&t.update())}this._running=!0,Object(N["a"])(e)},e.prototype.start=function(){this._running||(this._time=z(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=z(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=z()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new B["b"](t,e.loop);return this.addAnimator(n),n},e}(l["a"]),F=E,H=300,V=i["a"].domSupported,W=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=r["map"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:i}}(),G={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},q=!1;function U(t){var e=t.pointerType;return"pen"===e||"touch"===e}function X(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function Y(t){t&&(t.zrByTouch=!0)}function Z(t,e){return Object(h["e"])(t.dom,new $(t,e),!0)}function K(t,e){var n=e,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return i}var $=function(){function t(t,e){this.stopPropagation=r["noop"],this.stopImmediatePropagation=r["noop"],this.preventDefault=r["noop"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Q={mousedown:function(t){t=Object(h["e"])(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Object(h["e"])(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Object(h["e"])(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Object(h["e"])(this.dom,t);var e=t.toElement||t.relatedTarget;K(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){q=!0,t=Object(h["e"])(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){q||(t=Object(h["e"])(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Object(h["e"])(this.dom,t),Y(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Q.mousemove.call(this,t),Q.mousedown.call(this,t)},touchmove:function(t){t=Object(h["e"])(this.dom,t),Y(t),this.handler.processGesture(t,"change"),Q.mousemove.call(this,t)},touchend:function(t){t=Object(h["e"])(this.dom,t),Y(t),this.handler.processGesture(t,"end"),Q.mouseup.call(this,t),+new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e=0;u--)o=r["merge"](o,n[u],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Object(u["v"])(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(a["a"]);function f(t){var e=[];return r["each"](h.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=r["map"](e,(function(t){return Object(s["f"])(t).main})),"dataset"!==t&&r["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}Object(s["e"])(h,a["a"]),Object(s["c"])(h),o["a"](h),o["b"](h,f),e["a"]=h},"6d8b":function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return v})),n.d(e,"logError",(function(){return y})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return b})),n.d(e,"mergeAll",(function(){return _})),n.d(e,"extend",(function(){return x})),n.d(e,"defaults",(function(){return O})),n.d(e,"createCanvas",(function(){return w})),n.d(e,"indexOf",(function(){return S})),n.d(e,"inherits",(function(){return j})),n.d(e,"mixin",(function(){return M})),n.d(e,"isArrayLike",(function(){return T})),n.d(e,"each",(function(){return C})),n.d(e,"map",(function(){return I})),n.d(e,"reduce",(function(){return k})),n.d(e,"filter",(function(){return D})),n.d(e,"find",(function(){return A})),n.d(e,"keys",(function(){return P})),n.d(e,"bind",(function(){return R})),n.d(e,"curry",(function(){return N})),n.d(e,"isArray",(function(){return B})),n.d(e,"isFunction",(function(){return z})),n.d(e,"isString",(function(){return E})),n.d(e,"isStringSafe",(function(){return F})),n.d(e,"isNumber",(function(){return H})),n.d(e,"isObject",(function(){return V})),n.d(e,"isBuiltInObject",(function(){return W})),n.d(e,"isTypedArray",(function(){return G})),n.d(e,"isDom",(function(){return q})),n.d(e,"isGradientObject",(function(){return U})),n.d(e,"isImagePatternObject",(function(){return X})),n.d(e,"isRegExp",(function(){return Y})),n.d(e,"eqNaN",(function(){return Z})),n.d(e,"retrieve",(function(){return K})),n.d(e,"retrieve2",(function(){return $})),n.d(e,"retrieve3",(function(){return Q})),n.d(e,"slice",(function(){return J})),n.d(e,"normalizeCssArray",(function(){return tt})),n.d(e,"assert",(function(){return et})),n.d(e,"trim",(function(){return nt})),n.d(e,"setAsPrimitive",(function(){return rt})),n.d(e,"isPrimitive",(function(){return at})),n.d(e,"HashMap",(function(){return ot})),n.d(e,"createHashMap",(function(){return st})),n.d(e,"concatArray",(function(){return ut})),n.d(e,"createObject",(function(){return ct})),n.d(e,"disableUserSelect",(function(){return lt})),n.d(e,"hasOwn",(function(){return ht})),n.d(e,"noop",(function(){return ft})),n.d(e,"RADIAN_TO_DEGREE",(function(){return dt}));var i=n("726e"),r=k(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),a=k(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),o=Object.prototype.toString,s=Array.prototype,u=s.forEach,c=s.filter,l=s.slice,h=s.map,f=function(){}.constructor,d=f?f.prototype:null,p="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e=0)c=u*n.length;else for(var f=0;f0,z=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),E=o.calculatedLineHeight,F=0;F=0&&(A=O[D],"right"===A.align))this._placeToken(A,t,S,y,k,"right",b),j-=A.width,k-=A.width,D--;T+=(i-(T-v)-(m-k)-j)/2;while(M<=D)A=O[M],this._placeToken(A,t,S,y,T+A.width/2,"center",b),T+=A.width,M++;y+=S}},e.prototype._placeToken=function(t,e,n,i,r,u,c){var h=e.rich[t.styleName]||{};h.text=t.text;var d=t.verticalAlign,g=i+n/2;"top"===d?g=i+t.height/2:"bottom"===d&&(g=i+n-t.height/2);var v=!t.isLineHolder&&I(h);v&&this._renderBackground(h,e,"right"===u?r-t.width:"center"===u?r-t.width/2:r,g-t.height/2,t.width,t.height);var y=!!h.backgroundColor,m=t.textPadding;m&&(r=T(r,u,m),g-=t.height/2-m[0]-t.innerHeight/2);var b=this._getOrCreateChild(a["a"]),_=b.createStyle();b.useStyle(_);var O=this._defaultStyle,w=!1,S=0,C=M("fill"in h?h.fill:"fill"in e?e.fill:(w=!0,O.fill)),k=j("stroke"in h?h.stroke:"stroke"in e?e.stroke:y||c||O.autoStroke&&!w?null:(S=p,O.stroke)),D=h.textShadowBlur>0||e.textShadowBlur>0;_.text=t.text,_.x=r,_.y=g,D&&(_.shadowBlur=h.textShadowBlur||e.textShadowBlur||0,_.shadowColor=h.textShadowColor||e.textShadowColor||"transparent",_.shadowOffsetX=h.textShadowOffsetX||e.textShadowOffsetX||0,_.shadowOffsetY=h.textShadowOffsetY||e.textShadowOffsetY||0),_.textAlign=u,_.textBaseline="middle",_.font=t.font||f["a"],_.opacity=Object(o["retrieve3"])(h.opacity,e.opacity,1),x(_,h),k&&(_.lineWidth=Object(o["retrieve3"])(h.lineWidth,e.lineWidth,S),_.lineDash=Object(o["retrieve2"])(h.lineDash,e.lineDash),_.lineDashOffset=e.lineDashOffset||0,_.stroke=k),C&&(_.fill=C);var A=t.contentWidth,P=t.contentHeight;b.setBoundingRect(new l["a"](Object(s["a"])(_.x,A,_.textAlign),Object(s["b"])(_.y,P,_.textBaseline),A,P))},e.prototype._renderBackground=function(t,e,n,i,r,a){var s,l,h=t.backgroundColor,f=t.borderWidth,d=t.borderColor,p=h&&h.image,g=h&&!p,v=t.borderRadius,y=this;if(g||t.lineHeight||f&&d){s=this._getOrCreateChild(c["a"]),s.useStyle(s.createStyle()),s.style.fill=null;var m=s.shape;m.x=n,m.y=i,m.width=r,m.height=a,m.r=v,s.dirtyShape()}if(g){var b=s.style;b.fill=h||null,b.fillOpacity=Object(o["retrieve2"])(t.fillOpacity,1)}else if(p){l=this._getOrCreateChild(u["a"]),l.onload=function(){y.dirtyStyle()};var _=l.style;_.image=h.image,_.x=n,_.y=i,_.width=r,_.height=a}if(f&&d){b=s.style;b.lineWidth=f,b.stroke=d,b.strokeOpacity=Object(o["retrieve2"])(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var x=(s||l).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=Object(o["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return O(t)&&(e=[t.fontStyle,t.fontWeight,_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(o["trim"])(e)||t.textFont||t.font},e}(h["c"]),y={left:!0,right:1,center:1},m={top:1,bottom:1,middle:1},b=["fontStyle","fontWeight","fontSize","fontFamily"];function _(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?f["c"]+"px":t+"px":t}function x(t,e){for(var n=0;n-1){var n=Object(r["parse"])(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var u=1e-4;function c(t){return t-u}function l(t){return o(1e3*t)/1e3}function h(t){return o(1e4*t)/1e4}function f(t){return"matrix("+l(t[0])+","+l(t[1])+","+l(t[2])+","+l(t[3])+","+h(t[4])+","+h(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function v(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function y(t){return t&&!!t.image}function m(t){return t&&!!t.svgElement}function b(t){return y(t)||m(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function O(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function j(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i["RADIAN_TO_DEGREE"],a=Object(i["retrieve2"])(t.scaleX,1),s=Object(i["retrieve2"])(t.scaleY,1),u=t.skewX||0,c=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),1===a&&1===s||l.push("scale("+a+","+s+")"),(u||c)&&l.push("skew("+o(u*i["RADIAN_TO_DEGREE"])+"deg, "+o(c*i["RADIAN_TO_DEGREE"])+"deg)"),l.join(" ")}var M=function(){return a["a"].hasGlobalWindow&&Object(i["isFunction"])(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!==typeof t?function(e){return t.from(e).toString("base64")}:function(t){return null}}()}).call(this,n("b639").Buffer)},"7d6c":function(t,e,n){"use strict";n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return g})),n.d(e,"g",(function(){return v})),n.d(e,"a",(function(){return y})),n.d(e,"j",(function(){return m})),n.d(e,"c",(function(){return _})),n.d(e,"b",(function(){return x})),n.d(e,"f",(function(){return O})),n.d(e,"i",(function(){return w})),n.d(e,"h",(function(){return S})),n.d(e,"H",(function(){return B})),n.d(e,"G",(function(){return W})),n.d(e,"r",(function(){return U})),n.d(e,"C",(function(){return X})),n.d(e,"q",(function(){return Y})),n.d(e,"B",(function(){return Z})),n.d(e,"s",(function(){return K})),n.d(e,"D",(function(){return $})),n.d(e,"k",(function(){return J})),n.d(e,"l",(function(){return et})),n.d(e,"m",(function(){return nt})),n.d(e,"t",(function(){return it})),n.d(e,"x",(function(){return rt})),n.d(e,"w",(function(){return at})),n.d(e,"K",(function(){return ot})),n.d(e,"L",(function(){return st})),n.d(e,"u",(function(){return ut})),n.d(e,"o",(function(){return ct})),n.d(e,"J",(function(){return ht})),n.d(e,"p",(function(){return ft})),n.d(e,"I",(function(){return gt})),n.d(e,"F",(function(){return vt})),n.d(e,"y",(function(){return yt})),n.d(e,"n",(function(){return mt})),n.d(e,"v",(function(){return bt})),n.d(e,"A",(function(){return _t})),n.d(e,"z",(function(){return xt})),n.d(e,"E",(function(){return Ot}));var i=n("d51b"),r=n("6d8b"),a=n("861c"),o=n("41ef"),s=n("e0d3"),u=n("cbe5"),c=1,l={},h=Object(s["o"])(),f=Object(s["o"])(),d=0,p=1,g=2,v=["emphasis","blur","select"],y=["normal","emphasis","blur","select"],m=10,b=9,_="highlight",x="downplay",O="select",w="unselect",S="toggleSelect";function j(t){return null!=t&&"none"!==t}var M=new i["a"](100);function T(t){if(Object(r["isString"])(t)){var e=M.get(t);return e||(e=o["lift"](t,-.1),M.put(t,e)),e}if(Object(r["isGradientObject"])(t)){var n=Object(r["extend"])({},t);return n.colorStops=Object(r["map"])(t.colorStops,(function(t){return{offset:t.offset,color:o["lift"](t.color,-.1)}})),n}return t}function C(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function I(t){C(t,"emphasis",g)}function k(t){t.hoverState===g&&C(t,"normal",d)}function D(t){C(t,"blur",p)}function A(t){t.hoverState===p&&C(t,"normal",d)}function P(t){t.selected=!0}function L(t){t.selected=!1}function R(t,e,n){e(t,n)}function N(t,e,n){R(t,e,n),t.isGroup&&t.traverse((function(t){R(t,e,n)}))}function B(t,e){switch(e){case"emphasis":t.hoverState=g;break;case"normal":t.hoverState=d;break;case"blur":t.hoverState=p;break;case"select":t.selected=!0}}function z(t,e,n,i){for(var r=t.style,a={},o=0;o=0,o=!1;if(t instanceof u["b"]){var s=h(t),c=a&&s.selectFill||s.normalFill,l=a&&s.selectStroke||s.normalStroke;if(j(c)||j(l)){i=i||{};var f=i.style||{};"inherit"===f.fill?(o=!0,i=Object(r["extend"])({},i),f=Object(r["extend"])({},f),f.fill=c):!j(f.fill)&&j(c)?(o=!0,i=Object(r["extend"])({},i),f=Object(r["extend"])({},f),f.fill=T(c)):!j(f.stroke)&&j(l)&&(o||(i=Object(r["extend"])({},i),f=Object(r["extend"])({},f)),f.stroke=T(l)),i.style=f}}if(i&&null==i.z2){o||(i=Object(r["extend"])({},i));var d=t.z2EmphasisLift;i.z2=t.z2+(null!=d?d:m)}return i}function F(t,e,n){if(n&&null==n.z2){n=Object(r["extend"])({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:b)}return n}function H(t,e,n){var i=Object(r["indexOf"])(t.currentStates,e)>=0,a=t.style.opacity,o=i?null:z(t,["opacity"],e,{opacity:1});n=n||{};var s=n.style||{};return null==s.opacity&&(n=Object(r["extend"])({},n),s=Object(r["extend"])({opacity:i?a:.1*o.opacity},s),n.style=s),n}function V(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return E(this,t,e,n);if("blur"===t)return H(this,t,n);if("select"===t)return F(this,t,n)}return n}function W(t){t.stateProxy=V;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=V),n&&(n.stateProxy=V)}function G(t,e){!Q(t,e)&&!t.__highByOuter&&N(t,I)}function q(t,e){!Q(t,e)&&!t.__highByOuter&&N(t,k)}function U(t,e){t.__highByOuter|=1<<(e||0),N(t,I)}function X(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&N(t,k)}function Y(t){N(t,D)}function Z(t){N(t,A)}function K(t){N(t,P)}function $(t){N(t,L)}function Q(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function J(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var a=f(r),o="series"===e,s=o?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!o&&i.push(s),a.isBlured&&(s.group.traverse((function(t){A(t)})),o&&n.push(r)),a.isBlured=!1})),Object(r["each"])(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function tt(t,e,n,i){var a=i.getModel();function o(t,e){for(var n=0;n0){var a={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(a.dataType=i),e.push(a)}}))})),e}function ct(t,e,n){vt(t,!0),N(t,W),ft(t,e,n)}function lt(t){vt(t,!1)}function ht(t,e,n,i){i?lt(t):ct(t,e,n)}function ft(t,e,n){var i=Object(a["a"])(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var dt=["emphasis","blur","select"],pt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gt(t,e,n,i){n=n||"itemStyle";for(var r=0;r30}},"80f0":function(t,e,n){"use strict";function i(t){return null==t?0:t.length||1}function r(t){return t}var a=function(){function t(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||r,this._newKeyGetter=i||r,this.context=a,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o1){var l=u.shift();1===u.length&&(n[s]=u[0]),this._update&&this._update(l,o)}else 1===c?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var s=0;s1&&1===f)this._updateManyToOne&&this._updateManyToOne(l,c),r[u]=null;else if(1===h&&f>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[u]=null;else if(1===h&&1===f)this._update&&this._update(l,c),r[u]=null;else if(h>1&&f>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[u]=null;else if(h>1)for(var d=0;d1)for(var s=0;so||t<-o}var u=[],c=[],l=i["create"](),h=Math.abs,f=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i["create"](),e?this.getLocalTransform(n):a(n),t&&(e?i["mul"](n,t,n):i["copy"](n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&a(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(u);var n=u[0]<0?-1:1,r=u[1]<0?-1:1,a=((u[0]-n)*e+n)/u[0]||0,o=((u[1]-r)*e+r)/u[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||i["create"](),i["invert"](this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(i["mul"](c,t.invTransform,e),e=c);var n=this.originX,r=this.originY;(n||r)&&(l[4]=n,l[5]=r,i["mul"](c,e,l),c[4]-=n,c[5]-=r,e=c),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r["applyTransform"](n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r["applyTransform"](n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){p(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,c=t.rotation||0,l=t.x,h=t.y,f=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||u){var p=n+s,g=r+u;e[4]=-p*a-f*g*o,e[5]=-g*o-d*p*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=d*a,e[2]=f*o,c&&i["rotate"](e,e,c),e[4]+=n+l,e[5]+=r+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),d=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(t,e){for(var n=0;ne&&a>i||ar?s:0}n.d(e,"a",(function(){return i}))},"87b1":function(t,e,n){"use strict";var i=n("9ab4"),r=n("cbe5"),a=n("4fac"),o=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),s=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){a["a"](t,e,!0)},e}(r["b"]);s.prototype.type="polygon",e["a"]=s},"88b3":function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return u}));var i="\0__throttleOriginMethod",r="\0__throttleRate",a="\0__throttleType";function o(t,e,n){var i,r,a,o,s,u=0,c=0,l=null;function h(){c=(new Date).getTime(),l=null,t.apply(a,o||[])}e=e||0;var f=function(){for(var t=[],f=0;f=0?h():l=setTimeout(h,-r),u=i};return f.clear=function(){l&&(clearTimeout(l),l=null)},f.debounceNextCall=function(t){s=t},f}function s(t,e,n,s){var u=t[e];if(u){var c=u[i]||u,l=u[a],h=u[r];if(h!==n||l!==s){if(null==n||!s)return t[e]=c;u=t[e]=o(c,n,"debounce"===s),u[i]=c,u[a]=s,u[r]=n}return u}}function u(t,e){var n=t[e];n&&n[i]&&(n.clear&&n.clear(),t[e]=n[i])}},8918:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return c}));var i=n("6d8b"),r=n("625e"),a=Math.round(10*Math.random());function o(t){return[t||"",a++].join("_")}function s(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Object(r["f"])(t);e[i.main]=n},t.determineSubType=function(n,i){var a=i.type;if(!a){var o=Object(r["f"])(n).main;t.hasSubTypes(n)&&e[o]&&(a=e[o](i))}return a}}function u(t,e){function n(t){var n={},o=[];return i["each"](t,(function(s){var u=r(n,s),c=u.originalDeps=e(s),l=a(c,t);u.entryCount=l.length,0===u.entryCount&&o.push(s),i["each"](l,(function(t){i["indexOf"](u.predecessor,t)<0&&u.predecessor.push(t);var e=r(n,t);i["indexOf"](e.successor,t)<0&&e.successor.push(s)}))})),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function a(t,e){var n=[];return i["each"](t,(function(t){i["indexOf"](e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,a){if(t.length){var o=n(e),s=o.graph,u=o.noEntryList,c={};i["each"](t,(function(t){c[t]=!0}));while(u.length){var l=u.pop(),h=s[l],f=!!c[l];f&&(r.call(a,l,h.originalDeps.slice()),delete c[l]),i["each"](h.successor,f?p:d)}i["each"](c,(function(){var t="";throw new Error(t)}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&u.push(t)}function p(t){c[t]=!0,d(t)}}}function c(t,e){return i["merge"](i["merge"]({},t,!0),e,!0)}},"89b6":function(t,e,n){"use strict";n.d(e,"e",(function(){return C})),n.d(e,"c",(function(){return D})),n.d(e,"b",(function(){return A})),n.d(e,"d",(function(){return R})),n.d(e,"a",(function(){return N}));var i=n("dce8"),r=n("cbe5"),a=n("d498"),o=n("20c8"),s=n("857d"),u=n("4a3f"),c=n("6d8b"),l=n("1687"),h=n("401b"),f=n("7d6c"),d=2*Math.PI,p=o["a"].CMD,g=["top","right","bottom","left"];function v(t,e,n,i,r){var a=n.width,o=n.height;switch(t){case"top":i.set(n.x+a/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+a/2,n.y+o+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+o/2),r.set(-1,0);break;case"right":i.set(n.x+a+e,n.y+o/2),r.set(1,0);break}}function y(t,e,n,i,r,a,o,u,c){o-=t,u-=e;var l=Math.sqrt(o*o+u*u);o/=l,u/=l;var h=o*n+t,f=u*n+e;if(Math.abs(i-r)%d<1e-4)return c[0]=h,c[1]=f,l-n;if(a){var p=i;i=Object(s["a"])(r),r=Object(s["a"])(p)}else i=Object(s["a"])(i),r=Object(s["a"])(r);i>r&&(r+=d);var g=Math.atan2(u,o);if(g<0&&(g+=d),g>=i&&g<=r||g+d>=i&&g+d<=r)return c[0]=h,c[1]=f,l-n;var v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=n*Math.cos(r)+t,b=n*Math.sin(r)+e,_=(v-o)*(v-o)+(y-u)*(y-u),x=(m-o)*(m-o)+(b-u)*(b-u);return _0){e=e/180*Math.PI,w.fromArray(t[0]),S.fromArray(t[1]),j.fromArray(t[2]),i["a"].sub(M,w,S),i["a"].sub(T,j,S);var n=M.len(),r=T.len();if(!(n<.001||r<.001)){M.scale(1/n),T.scale(1/r);var a=M.dot(T),o=Math.cos(e);if(o1&&i["a"].copy(k,j),k.toArray(t[1])}}}}function A(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,w.fromArray(t[0]),S.fromArray(t[1]),j.fromArray(t[2]),i["a"].sub(M,S,w),i["a"].sub(T,j,S);var r=M.len(),a=T.len();if(!(r<.001||a<.001)){M.scale(1/r),T.scale(1/a);var o=M.dot(e),s=Math.cos(n);if(o=c)i["a"].copy(k,j);else{k.scaleAndAdd(T,u/Math.tan(Math.PI/2-h));var f=j.x!==S.x?(k.x-S.x)/(j.x-S.x):(k.y-S.y)/(j.y-S.y);if(isNaN(f))return;f<0?i["a"].copy(k,S):f>1&&i["a"].copy(k,j)}k.toArray(t[1])}}}}function P(t,e,n,i){var r="normal"===n,a=r?t:t.ensureState(n);a.ignore=e;var o=i.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):a.style=s}function L(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=h["dist"](i[0],i[1]),a=h["dist"](i[1],i[2]);if(!r||!a)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var o=Math.min(r,a)*n,s=h["lerp"]([],i[1],i[0],o/r),u=h["lerp"]([],i[1],i[2],o/a),c=h["lerp"]([],s,u,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(u[0],u[1],u[0],u[1],i[2][0],i[2][1])}else for(var l=1;le[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s["b"](t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,a=[];if(!e)return a;var o=1e4;n[0]o)return[]}var c=a.length?a[a.length-1].value:i[1];return n[1]>c&&(t?a.push({value:u(c+e,r)}):a.push({value:n[1]})),a},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&f0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(i["isNumber"])(t)?[t]:Object(i["isArray"])(t)?t:null:null}function a(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&r(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(n){var o=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;o&&1!==o&&(n=Object(i["map"])(n,(function(t){return t/o})),a/=o)}return[n,a]}},"8d32":function(t,e,n){"use strict";var i=n("9ab4"),r=n("cbe5"),a=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),o=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,u=Math.cos(a),c=Math.sin(a);t.moveTo(u*r+n,c*r+i),t.arc(n,i,r,a,o,!s)},e}(r["b"]);o.prototype.type="arc",e["a"]=o},"8e43":function(t,e,n){"use strict";var i=n("6d8b"),r=0,a=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++r}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&Object(i["map"])(r,o);return new t({categories:a,needCollect:!a,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(i["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(i["createHashMap"])(this.categories))},t}();function o(t){return Object(i["isObject"])(t)&&null!=t.value?t.value:t+""}e["a"]=a},9394:function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var i=n("9ab4"),r=n("6d8b"),a=n("76a5"),o=n("c7a2"),s=n("861c"),u=n("7837"),c=n("f934"),l=n("6cb7"),h=n("b12f"),f=n("eda2"),d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(i["a"])(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(l["a"]),p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(i["a"])(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,l=t.getModel("textStyle"),h=t.getModel("subtextStyle"),d=t.get("textAlign"),p=r["retrieve2"](t.get("textBaseline"),t.get("textVerticalAlign")),g=new a["a"]({style:Object(u["c"])(l,{text:t.get("text"),fill:l.getTextColor()},{disableBox:!0}),z2:10}),v=g.getBoundingRect(),y=t.get("subtext"),m=new a["a"]({style:Object(u["c"])(h,{text:y,fill:h.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),b=t.get("link"),_=t.get("sublink"),x=t.get("triggerEvent",!0);g.silent=!b&&!x,m.silent=!_&&!x,b&&g.on("click",(function(){Object(f["k"])(b,"_"+t.get("target"))})),_&&m.on("click",(function(){Object(f["k"])(_,"_"+t.get("subtarget"))})),Object(s["a"])(g).eventData=Object(s["a"])(m).eventData=x?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(g),y&&i.add(m);var O=i.getBoundingRect(),w=t.getBoxLayoutParams();w.width=O.width,w.height=O.height;var S=Object(c["g"])(w,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));d||(d=t.get("left")||t.get("right"),"middle"===d&&(d="center"),"right"===d?S.x+=S.width:"center"===d&&(S.x+=S.width/2)),p||(p=t.get("top")||t.get("bottom"),"center"===p&&(p="middle"),"bottom"===p?S.y+=S.height:"middle"===p&&(S.y+=S.height/2),p=p||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var j={align:d,verticalAlign:p};g.setStyle(j),m.setStyle(j),O=i.getBoundingRect();var M=S.margin,T=t.getItemStyle(["color","opacity"]);T.fill=t.get("backgroundColor");var C=new o["a"]({shape:{x:O.x-M[3],y:O.y-M[0],width:O.width+M[1]+M[3],height:O.height+M[0]+M[2],r:t.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});i.add(C)}},e.type="title",e}(h["a"]);function g(t){t.registerComponentModel(d),t.registerComponentView(p)}},"944e":function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return f}));var i=n("3842");function r(t){return"interval"===t.type||"log"===t.type}function a(t,e,n,r){var a={},o=t[1]-t[0],u=a.interval=Object(i["n"])(o/e,!0);null!=n&&ur&&(u=a.interval=r);var l=a.intervalPrecision=s(u),h=a.niceTickExtent=[Object(i["w"])(Math.ceil(t[0]/u)*u,l),Object(i["w"])(Math.floor(t[1]/u)*u,l)];return c(h,t),a}function o(t){var e=Math.pow(10,Object(i["t"])(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(i["w"])(n*e)}function s(t){return Object(i["h"])(t)+2}function u(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function c(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),u(t,0,e),u(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function l(t,e){return t>=e[0]&&t<=e[1]}function h(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function f(t,e){return t*(e[1]-e[0])+e[0]}},9680:function(t,e,n){"use strict";function i(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,u=0,c=t;if(o>e+s&&o>i+s||ot+s&&a>n+s||ay&&(y=O,my&&(y=w,_=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],h=i[3],f=i[4],d=i[5];return e.x=n.x*r+f,e.y=n.y*h+d,e.width=n.width*r,e.height=n.height*h,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=c.x=n.x,s.y=l.y=n.y,u.x=l.x=n.x+n.width,u.y=c.y=n.y+n.height,s.transform(i),l.transform(i),u.transform(i),c.transform(i),e.x=a(s.x,u.x,c.x,l.x),e.y=a(s.y,u.y,c.y,l.y);var p=o(s.x,u.x,c.x,l.x),g=o(s.y,u.y,c.y,l.y);e.width=p-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}();e["a"]=d},"98b7":function(t,e,n){"use strict";var i,r=n("22d1");i=r["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},e["a"]=i},"9ab4":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},"9be8":function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var i=n("9ab4"),r=n("cbe5"),a=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),o=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,a=e.width,o=e.angle,s=e.x-n(o)*a*(a>=r/3?1:2),u=e.y-i(o)*a*(a>=r/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,u),t.lineTo(e.x+n(o)*a,e.y+i(o)*a),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(o)*a,e.y-i(o)*a),t.lineTo(s,u)},e}(r["b"]),s=o,u=n("4aa2"),c=n("cb11"),l=n("76a5"),h=n("deca"),f=n("2dc5"),d=n("7d6c"),p=n("7837"),g=n("e887"),v=n("3842"),y=n("c2be"),m=n("a15a"),b=n("0da8"),_=n("6d8b"),x=n("861c"),O=n("20c8");function w(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),a=Math.min(i,r),o=Object(v["q"])(n[0],e.getWidth()),s=Object(v["q"])(n[1],e.getHeight()),u=Object(v["q"])(t.get("radius"),a/2);return{cx:o,cy:s,r:u}}function S(t,e){var n=null==t?"":t+"";return e&&(Object(_["isString"])(e)?n=e.replace("{value}",n):Object(_["isFunction"])(e)&&(n=e(t))),n}var j=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(i["a"])(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=w(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var a=this.group,o=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,l=t.getModel("axisLine"),h=l.get("roundCap"),f=h?y["a"]:u["a"],d=l.get("show"),p=l.getModel("lineStyle"),g=p.get("width"),v=[s,c];Object(O["b"])(v,!o),s=v[0],c=v[1];for(var m=c-s,b=s,_=0;d&&_=t&&(0===e?0:i[e-1][0])Math.PI/2&&(G+=Math.PI)):"tangential"===W?G=-k-Math.PI/2:Object(_["isNumber"])(W)&&(G=W*Math.PI/180),0===G?d.add(new l["a"]({style:Object(p["c"])(j,{text:E,x:H,y:V,verticalAlign:f<-.8?"top":f>.8?"bottom":"middle",align:h<-.4?"left":h>.4?"right":"center"},{inheritColor:F}),silent:!0})):d.add(new l["a"]({style:Object(p["c"])(j,{text:E,x:H,y:V,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:H,originY:V,rotation:G}))}if(w.get("show")&&N!==M){B=w.get("distance");B=B?B+u:u;for(var q=0;q<=T;q++){h=Math.cos(k),f=Math.sin(k);var U=new c["a"]({shape:{x1:h*(m-B)+g,y1:f*(m-B)+y,x2:h*(m-I-B)+g,y2:f*(m-I-B)+y},silent:!0,style:L});"auto"===L.stroke&&U.setStyle({stroke:i((N+q/T)/M)}),d.add(U),k+=A}k-=A}else k+=D}},e.prototype._renderPointer=function(t,e,n,i,r,a,o,c,l){var f=this.group,p=this._data,g=this._progressEls,O=[],w=t.get(["pointer","show"]),S=t.getModel("progress"),j=S.get("show"),M=t.getData(),T=M.mapDimension("value"),C=+t.get("min"),I=+t.get("max"),k=[C,I],D=[a,o];function A(e,n){var i,a=M.getItemModel(e),o=a.getModel("pointer"),u=Object(v["q"])(o.get("width"),r.r),c=Object(v["q"])(o.get("length"),r.r),l=t.get(["pointer","icon"]),h=o.get("offsetCenter"),f=Object(v["q"])(h[0],r.r),d=Object(v["q"])(h[1],r.r),p=o.get("keepAspect");return i=l?Object(m["a"])(l,f-u/2,d-c,u,c,null,p):new s({shape:{angle:-Math.PI/2,width:u,r:c,x:f,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function P(t,e){var n=S.get("roundCap"),i=n?y["a"]:u["a"],o=S.get("overlap"),s=o?S.get("width"):l/M.count(),h=o?r.r-s:r.r-(t+1)*s,f=o?r.r:r.r-t*s,d=new i({shape:{startAngle:a,endAngle:e,cx:r.cx,cy:r.cy,clockwise:c,r0:h,r:f}});return o&&(d.z2=I-M.get(T,t)%I),d}(j||w)&&(M.diff(p).add((function(e){var n=M.get(T,e);if(w){var i=A(e,a);h["c"](i,{rotation:-((isNaN(+n)?D[0]:Object(v["m"])(n,k,D,!0))+Math.PI/2)},t),f.add(i),M.setItemGraphicEl(e,i)}if(j){var r=P(e,a),o=S.get("clip");h["c"](r,{shape:{endAngle:Object(v["m"])(n,k,D,o)}},t),f.add(r),Object(x["b"])(t.seriesIndex,M.dataType,e,r),O[e]=r}})).update((function(e,n){var i=M.get(T,e);if(w){var r=p.getItemGraphicEl(n),o=r?r.rotation:a,s=A(e,o);s.rotation=o,h["h"](s,{rotation:-((isNaN(+i)?D[0]:Object(v["m"])(i,k,D,!0))+Math.PI/2)},t),f.add(s),M.setItemGraphicEl(e,s)}if(j){var u=g[n],c=u?u.shape.endAngle:a,l=P(e,c),d=S.get("clip");h["h"](l,{shape:{endAngle:Object(v["m"])(i,k,D,d)}},t),f.add(l),Object(x["b"])(t.seriesIndex,M.dataType,e,l),O[e]=l}})).execute(),M.each((function(t){var e=M.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),a=n.get("blurScope"),o=n.get("disabled");if(w){var s=M.getItemGraphicEl(t),u=M.getItemVisual(t,"style"),c=u.fill;if(s instanceof b["a"]){var l=s.style;s.useStyle(Object(_["extend"])({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},u))}else s.useStyle(u),"pointer"!==s.type&&s.setColor(c);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Object(v["m"])(M.get(T,t),k,[0,1],!0))),s.z2EmphasisLift=0,Object(d["I"])(s,e),Object(d["J"])(s,r,a,o)}if(j){var h=O[t];h.useStyle(M.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,Object(d["I"])(h,e),Object(d["J"])(h,r,a,o)}})),this._progressEls=O)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),a=n.get("icon"),o=n.get("offsetCenter"),s=n.get("keepAspect"),u=Object(m["a"])(a,e.cx-r/2+Object(v["q"])(o[0],e.r),e.cy-r/2+Object(v["q"])(o[1],e.r),r,r,null,s);u.z2=n.get("showAbove")?1:0,u.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(u)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var a=this,o=t.getData(),s=o.mapDimension("value"),u=+t.get("min"),c=+t.get("max"),h=new f["a"],d=[],g=[],y=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);o.diff(this._data).add((function(t){d[t]=new l["a"]({silent:!0}),g[t]=new l["a"]({silent:!0})})).update((function(t,e){d[t]=a._titleEls[e],g[t]=a._detailEls[e]})).execute(),o.each((function(e){var n=o.getItemModel(e),a=o.get(s,e),l=new f["a"],b=i(Object(v["m"])(a,[u,c],[0,1],!0)),_=n.getModel("title");if(_.get("show")){var x=_.get("offsetCenter"),O=r.cx+Object(v["q"])(x[0],r.r),w=r.cy+Object(v["q"])(x[1],r.r),j=d[e];j.attr({z2:m?0:2,style:Object(p["c"])(_,{x:O,y:w,text:o.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:b})}),l.add(j)}var M=n.getModel("detail");if(M.get("show")){var T=M.get("offsetCenter"),C=r.cx+Object(v["q"])(T[0],r.r),I=r.cy+Object(v["q"])(T[1],r.r),k=Object(v["q"])(M.get("width"),r.r),D=Object(v["q"])(M.get("height"),r.r),A=t.get(["progress","show"])?o.getItemVisual(e,"style").fill:b,P=(j=g[e],M.get("formatter"));j.attr({z2:m?0:2,style:Object(p["c"])(M,{x:C,y:I,text:S(a,P),width:isNaN(k)?null:k,height:isNaN(D)?null:D,align:"center",verticalAlign:"middle"},{inheritColor:A})}),Object(p["h"])(j,{normal:M},a,(function(t){return S(t,P)})),y&&Object(p["a"])(j,e,o,t,{getFormattedLabel:function(t,e,n,i,r,o){return S(o?o.interpolatedValue:a,P)}}),l.add(j)}h.add(l)})),this.group.add(h),this._titleEls=d,this._detailEls=g},e.type="gauge",e}(g["a"]),M=j,T=n("3f23"),C=n("4f85"),I=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return Object(i["a"])(e,t),e.prototype.getInitialData=function(t,e){return Object(T["a"])(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(C["b"]),k=I;function D(t){t.registerChartView(M),t.registerSeriesModel(k)}},"9cf9":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=Math.round;function r(t,e,n){if(e){var r=e.x1,a=e.x2,s=e.y1,u=e.y2;t.x1=r,t.x2=a,t.y1=s,t.y2=u;var c=n&&n.lineWidth;return c?(i(2*r)===i(2*a)&&(t.x1=t.x2=o(r,c,!0)),i(2*s)===i(2*u)&&(t.y1=t.y2=o(s,c,!0)),t):t}}function a(t,e,n){if(e){var i=e.x,r=e.y,a=e.width,s=e.height;t.x=i,t.y=r,t.width=a,t.height=s;var u=n&&n.lineWidth;return u?(t.x=o(i,u,!0),t.y=o(r,u,!0),t.width=Math.max(o(i+a,u,!1)-t.x,0===a?0:1),t.height=Math.max(o(r+s,u,!1)-t.y,0===s?0:1),t):t}}function o(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2===0?r/2:(r+(n?1:-1))/2}},"9d57":function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"d",(function(){return p})),n.d(e,"f",(function(){return v})),n.d(e,"c",(function(){return y})),n.d(e,"a",(function(){return m}));var i=n("6d8b"),r=n("3842"),a=n("ee1a"),o=n("cccd"),s=n("f658"),u="__ec_stack_";function c(t){return t.get("stack")||u+t.seriesIndex}function l(t){return t.dim+t.index}function h(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var a=n.getBandWidth(),o=0;o0&&(o=null===o?u:Math.min(o,u))}n[r]=o}}return n}function p(t){var e=d(t),n=[];return Object(i["each"])(t,(function(t){var i,a=t.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var u=o.dim+"_"+o.index,h=e[u],f=Math.abs(s[1]-s[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);i=h?f/p*h:f}else{var g=t.getData();i=Math.abs(s[1]-s[0])/g.count()}var v=Object(r["q"])(t.get("barWidth"),i),y=Object(r["q"])(t.get("barMaxWidth"),i),m=Object(r["q"])(t.get("barMinWidth")||(_(t)?.5:1),i),b=t.get("barGap"),x=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:v,barMaxWidth:y,barMinWidth:m,barGap:b,barCategoryGap:x,axisKey:l(o),stackId:c(t)})})),g(n)}function g(t){var e={};Object(i["each"])(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,a=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;e[i]=a;var s=t.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var u=t.barWidth;u&&!o[s].width&&(o[s].width=u,u=Math.min(a.remainedWidth,u),a.remainedWidth-=u);var c=t.barMaxWidth;c&&(o[s].maxWidth=c);var l=t.barMinWidth;l&&(o[s].minWidth=l);var h=t.barGap;null!=h&&(a.gap=h);var f=t.barCategoryGap;null!=f&&(a.categoryGap=f)}));var n={};return Object(i["each"])(e,(function(t,e){n[e]={};var a=t.stacks,o=t.bandWidth,s=t.categoryGap;if(null==s){var u=Object(i["keys"])(a).length;s=Math.max(35-4*u,15)+"%"}var c=Object(r["q"])(s,o),l=Object(r["q"])(t.gap,1),h=t.remainedWidth,f=t.autoWidthCount,d=(h-c)/(f+(f-1)*l);d=Math.max(d,0),Object(i["each"])(a,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,h-=i+l*i,f--}else{var i=d;e&&ei&&(i=n),i!==d&&(t.width=i,h-=i+l*i,f--)}})),d=(h-c)/(f+(f-1)*l),d=Math.max(d,0);var p,g=0;Object(i["each"])(a,(function(t,e){t.width||(t.width=d),p=t,g+=t.width*(1+l)})),p&&(g-=p.width*l);var v=-g/2;Object(i["each"])(a,(function(t,i){n[e][i]=n[e][i]||{bandWidth:o,offset:v,width:t.width},v+=t.width*(1+l)}))})),n}function v(t,e,n){if(t&&e){var i=t[l(e)];return null!=i&&null!=n?i[c(n)]:i}}function y(t,e){var n=f(t,e),r=p(n);Object(i["each"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=c(t),o=r[l(i)][a],s=o.offset,u=o.width;e.setLayout({bandWidth:o.bandWidth,offset:s,size:u})}))}function m(t){return{seriesType:t,plan:Object(o["a"])(),reset:function(t){if(b(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),u=e.getDimensionIndex(e.mapDimension(i.dim)),c=t.get("showBackground",!0),l=e.mapDimension(r.dim),h=e.getCalculationInfo("stackResultDimension"),f=Object(a["c"])(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),p=x(i,r),g=_(t),v=t.get("barMinHeight")||0,y=h&&e.getDimensionIndex(h),m=e.getLayout("size"),O=e.getLayout("offset");return{progress:function(t,e){var i,r=t.count,a=g&&Object(s["a"])(3*r),l=g&&c&&Object(s["a"])(3*r),h=g&&Object(s["a"])(r),b=n.master.getRect(),_=d?b.width:b.height,x=e.getStore(),w=0;while(null!=(i=t.next())){var S=x.get(f?y:o,i),j=x.get(u,i),M=p,T=void 0;f&&(T=+S-x.get(o,i));var C=void 0,I=void 0,k=void 0,D=void 0;if(d){var A=n.dataToPoint([S,j]);if(f){var P=n.dataToPoint([T,j]);M=P[0]}C=M,I=A[1]+O,k=A[0]-M,D=m,Math.abs(k)=1)&&(t=1),t}s===c&&u===l||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=c,this._modDataCount=l;var f=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(o||d1&&i>0?s:o}};return a;function o(){return e=t?null:a=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){v["b"]("axisPointer",e)},e.prototype.dispose=function(t,e){v["b"]("axisPointer",e)},e.type="axisPointer",e}(y["a"]),b=m,_=n("6d8b"),x=n("cd33"),O=n("e0d3"),w=n("133d"),S=Object(O["o"])();function j(t,e,n){var i=t.currTrigger,r=[t.x,t.y],a=t,o=t.dispatchAction||Object(_["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){R(r)&&(r=Object(w["a"])({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var u=R(r),c=a.axesInfo,l=s.axesInfo,h="leave"===i||R(r),f={},d={},p={list:[],map:{}},g={showPointer:Object(_["curry"])(C,d),showTooltip:Object(_["curry"])(I,p)};Object(_["each"])(s.coordSysMap,(function(t,e){var n=u||t.containPoint(r);Object(_["each"])(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,a=P(c,t);if(!h&&n&&(!c||a)){var o=a&&a.value;null!=o||u||(o=i.pointToData(r)),null!=o&&M(t,o,g,!1,f)}}))}));var v={};return Object(_["each"])(l,(function(t,e){var n=t.linkGroup;n&&!d[e]&&Object(_["each"])(n.axesInfo,(function(e,i){var r=d[i];if(e!==t&&r){var a=r.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,L(e),L(t)))),v[t.key]=a}}))})),Object(_["each"])(v,(function(t,e){M(l[e],t,g,!0,f)})),k(d,l,f),D(p,r,t,o),A(l,o,n),f}}function M(t,e,n,i,r){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var o=T(e,t),s=o.payloadBatch,u=o.snapToValue;s[0]&&null==r.seriesIndex&&Object(_["extend"])(r,s[0]),!i&&t.snap&&a.containData(u)&&null!=u&&(e=u),n.showPointer(t,e,s),n.showTooltip(t,o,u)}else n.showPointer(t,e)}function T(t,e){var n=e.axis,i=n.dim,r=t,a=[],o=Number.MAX_VALUE,s=-1;return Object(_["each"])(e.seriesModels,(function(e,u){var c,l,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(h,t,n);l=f.dataIndices,c=f.nestestValue}else{if(l=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!l.length)return;c=e.getData().get(h[0],l[0])}if(null!=c&&isFinite(c)){var d=t-c,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,r=c,a.length=0),Object(_["each"])(l,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}function C(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function I(t,e,n,i){var r=n.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var u=e.coordSys.model,c=x["e"](u),l=t.map[c];l||(l=t.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(l)),l.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function k(t,e,n){var i=n.axesInfo=[];Object(_["each"])(e,(function(e,n){var r=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function D(t,e,n,i){if(!R(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function A(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",a=S(i)[r]||{},o=S(i)[r]={};Object(_["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(_["each"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t}))}));var s=[],u=[];Object(_["each"])(a,(function(t,e){!o[e]&&u.push(t)})),Object(_["each"])(o,(function(t,e){!a[e]&&s.push(t)})),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function P(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function L(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function R(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function N(t){i["a"].registerAxisPointerClass("CartesianAxisPointer",f),t.registerComponentModel(g),t.registerComponentView(b),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(_["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Object(x["a"])(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},j)}},b12f:function(t,e,n){"use strict";var i=n("2dc5"),r=n("8918"),a=n("625e"),o=function(){function t(){this.group=new i["a"],this.uid=r["c"]("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();a["b"](o),a["c"](o),e["a"]=o},b1d4:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f}));var i=n("07fd"),r=n("cd70"),a=n("6d8b"),o=n("ec6f"),s=n("d0ce"),u=n("e0d3"),c=n("0f99"),l=n("80b9");function h(t,e){return f(t,e).dimensions}function f(t,e){Object(o["e"])(t)||(t=Object(o["c"])(t)),e=e||{};var n=e.coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],f=Object(a["createHashMap"])(),v=[],y=p(t,n,h,e.dimensionsCount),m=e.canOmitUnusedDimensions&&Object(l["e"])(y),b=h===t.dimensionsDefine,_=b?Object(l["c"])(t):Object(l["b"])(h),x=e.encodeDefine;!x&&e.encodeDefaulter&&(x=e.encodeDefaulter(t,y));for(var O=Object(a["createHashMap"])(x),w=new s["a"](y),S=0;S0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function p(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(a["each"])(e,(function(t){var e;Object(a["isObject"])(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function g(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){var r=0;while(i.hasOwnProperty(t+r))r++;t+=r}return e.set(t,!0),t}},b362:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("4a3f"),r=n("6d8b"),a=/cubic-bezier\(([0-9,\.e ]+)\)/;function o(t){var e=t&&a.exec(t);if(e){var n=e[1].split(","),o=+Object(r["trim"])(n[0]),s=+Object(r["trim"])(n[1]),u=+Object(r["trim"])(n[2]),c=+Object(r["trim"])(n[3]);if(isNaN(o+s+u+c))return;var l=[];return function(t){return t<=0?0:t>=1?1:Object(i["f"])(0,o,u,1,t,l)&&Object(i["a"])(0,s,c,1,l[0])}}}},b3c1:function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var i=Math.round(9*Math.random()),r="function"===typeof Object.defineProperty,a=function(){function t(){this._id="__ec_inner_"+i++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return r?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),o=a,s=n("d51b"),u=n("6d8b"),c=n("3842"),l=n("a15a"),h=n("5210"),f=n("726e"),d=new o,p=new s["a"](100),g=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function v(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&d["delete"](t);var a=d.get(t);if(a)return a;var o=Object(u["defaults"])(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return v(s),s.rotation=o.rotation,s.scaleX=s.scaleY=r?1:1/n,d.set(t,s),t.dirty=!1,s;function v(t){for(var e,a=[n],s=!0,d=0;d=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=r.getSource().sourceFormat,u=s===v["f"];if(u&&!r.pure)for(var l=[],h=t;h0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),l["isArray"](r)?r=r.slice():O(r)&&(r=l["extend"]({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,O(e)?l["extend"](i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){O(t)?l["extend"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?l["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Object(m["b"])(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){l["each"](this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:w(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];l["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(l["slice"](arguments)))})},t.internalField=function(){i=function(t){var e=t._invertedIndicesMap;l["each"](e,(function(n,i){var r=t._dimInfos[i],a=r.ordinalMeta,o=t._store;if(a){n=e[i]=new S(a.categories.length);for(var s=0;s1&&(u+="__ec__"+l),i[e]=u}}}(),t}();e["a"]=I},b7d9:function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var i=n("3842"),r=n("6d8b"),a=n("edae");function o(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(r["isNumber"])(t)||null==t||"-"===t||(t=+Object(i["p"])(t)),null==t||""===t?NaN:+t)}var s=Object(r["createHashMap"])({number:function(t){return parseFloat(t)},time:function(t){return+Object(i["p"])(t)},trim:function(t){return Object(r["isString"])(t)?Object(r["trim"])(t):t}});function u(t){return s.get(t)}var c={lt:function(t,e){return te},gte:function(t,e){return t>=e}},l=function(){function t(t,e){if(!Object(r["isNumber"])(e)){var n="";0,Object(a["c"])(n)}this._opFn=c[t],this._rvalFloat=Object(i["o"])(e)}return t.prototype.evaluate=function(t){return Object(r["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Object(i["o"])(t),this._rvalFloat)},t}(),h=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(r["isNumber"])(t)?t:Object(i["o"])(t),a=Object(r["isNumber"])(e)?e:Object(i["o"])(e),o=isNaN(n),s=isNaN(a);if(o&&(n=this._incomparable),s&&(a=this._incomparable),o&&s){var u=Object(r["isString"])(t),c=Object(r["isString"])(e);u&&(n=c?t:0),c&&(a=u?e:0)}return na?-this._resultLT:0},t}(),f=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Object(i["o"])(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Object(i["o"])(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function d(t,e){return"eq"===t||"ne"===t?new f("eq"===t,e):Object(r["hasOwn"])(c,t)?new l(t,e):null}},c2be:function(t,e,n){"use strict";var i=n("9ab4"),r=n("cbe5"),a=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),o=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-r),s=r+o,u=e.startAngle,c=e.endAngle,l=e.clockwise,h=2*Math.PI,f=l?c-u=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}();e["a"]=i},c7a2:function(t,e,n){"use strict";var i=n("9ab4"),r=n("cbe5");function a(t,e){var n,i,r,a,o,s=e.x,u=e.y,c=e.width,l=e.height,h=e.r;c<0&&(s+=c,c=-c),l<0&&(u+=l,l=-l),"number"===typeof h?n=i=r=a=h:h instanceof Array?1===h.length?n=i=r=a=h[0]:2===h.length?(n=r=h[0],i=a=h[1]):3===h.length?(n=h[0],i=a=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],a=h[3]):n=i=r=a=0,n+i>c&&(o=n+i,n*=c/o,i*=c/o),r+a>c&&(o=r+a,r*=c/o,a*=c/o),i+r>l&&(o=i+r,i*=l/o,r*=l/o),n+a>l&&(o=n+a,n*=l/o,a*=l/o),t.moveTo(s+n,u),t.lineTo(s+c-i,u),0!==i&&t.arc(s+c-i,u+i,i,-Math.PI/2,0),t.lineTo(s+c,u+l-r),0!==r&&t.arc(s+c-r,u+l-r,r,0,Math.PI/2),t.lineTo(s+a,u+l),0!==a&&t.arc(s+a,u+l-a,a,Math.PI/2,Math.PI),t.lineTo(s,u+n),0!==n&&t.arc(s+n,u+n,n,Math.PI,1.5*Math.PI)}var o=n("9cf9"),s=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),u={},c=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,i,r,s;if(this.subPixelOptimize){var c=Object(o["c"])(u,e,this.style);n=c.x,i=c.y,r=c.width,s=c.height,c.r=e.r,e=c}else n=e.x,i=e.y,r=e.width,s=e.height;e.r?a(t,e):t.rect(n,i,r,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r["b"]);c.prototype.type="rect";e["a"]=c},ca80:function(t,e,n){"use strict";var i=n("dce8"),r=[0,0],a=[0,0],o=new i["a"],s=new i["a"],u=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i["a"];for(n=0;n<2;n++)this._axes[n]=new i["a"];t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,u),n[3].set(a,u),e)for(var c=0;c<4;c++)n[c].transform(e);i["a"].sub(r[0],n[1],n[0]),i["a"].sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return o.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,o,s,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,o,s,r,-1)&&(n=!1,r)||r||i["a"].copy(e,n?o:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,o,s,u){for(var c=!0,l=0;l<2;l++){var h=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,r),this._getProjMinMaxOnAxis(l,e._corners,a),r[1]a[1]){if(c=!1,s)return c;var f=Math.abs(a[0]-r[1]),d=Math.abs(r[0]-a[1]);Math.min(f,d)>o.len()&&(fe+f&&h>i+f&&h>a+f&&h>u+f||ht+f&&l>n+f&&l>r+f&&l>o+f||ln||f+cr&&(r+=h);var p=Math.atan2(u,s);return p<0&&(p+=h),p>=i&&p<=r||p+h>=i&&p+h<=r}var d=n("8728"),p=a["a"].CMD,g=2*Math.PI,v=1e-4;function y(t,e){return Math.abs(t-e)e&&l>i&&l>a&&l>u||l1&&_(),p=s["a"](e,i,a,u,b[0]),d>1&&(g=s["a"](e,i,a,u,b[1]))),2===d?ye&&u>i&&u>a||u=0&&l<=1){for(var h=0,f=s["h"](e,i,a,l),d=0;dn||s<-n)return 0;var u=Math.sqrt(n*n-s*s);m[0]=-u,m[1]=u;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c>=g-1e-4){i=0,r=g;var l=a?1:-1;return o>=m[0]+t&&o<=m[1]+t?l:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=g,r+=g);for(var f=0,d=0;d<2;d++){var p=m[d];if(p+t>o){var v=Math.atan2(s,p);l=a?1:-1;v<0&&(v=g+v),(v>=i&&v<=r||v+g>=i&&v+g<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(l=-l),f+=l)}}return f}function S(t,e,n,i,r){for(var a,s,l=t.data,h=t.len(),g=0,v=0,m=0,b=0,_=0,S=0;S1&&(n||(g+=Object(d["a"])(v,m,b,_,i,r))),M&&(v=l[S],m=l[S+1],b=v,_=m),j){case p.M:b=l[S++],_=l[S++],v=b,m=_;break;case p.L:if(n){if(o["a"](v,m,l[S],l[S+1],e,i,r))return!0}else g+=Object(d["a"])(v,m,l[S],l[S+1],i,r)||0;v=l[S++],m=l[S++];break;case p.C:if(n){if(u(v,m,l[S++],l[S++],l[S++],l[S++],l[S],l[S+1],e,i,r))return!0}else g+=x(v,m,l[S++],l[S++],l[S++],l[S++],l[S],l[S+1],i,r)||0;v=l[S++],m=l[S++];break;case p.Q:if(n){if(c["a"](v,m,l[S++],l[S++],l[S],l[S+1],e,i,r))return!0}else g+=O(v,m,l[S++],l[S++],l[S],l[S+1],i,r)||0;v=l[S++],m=l[S++];break;case p.A:var T=l[S++],C=l[S++],I=l[S++],k=l[S++],D=l[S++],A=l[S++];S+=1;var P=!!(1-l[S++]);a=Math.cos(D)*I+T,s=Math.sin(D)*k+C,M?(b=a,_=s):g+=Object(d["a"])(v,m,a,s,i,r);var L=(i-T)*k/I+T;if(n){if(f(T,C,k,D,D+A,P,e,L,r))return!0}else g+=w(T,C,k,D,D+A,P,L,r);v=Math.cos(D+A)*I+T,m=Math.sin(D+A)*k+C;break;case p.R:b=v=l[S++],_=m=l[S++];var R=l[S++],N=l[S++];if(a=b+R,s=_+N,n){if(o["a"](b,_,a,_,e,i,r)||o["a"](a,_,a,s,e,i,r)||o["a"](a,s,b,s,e,i,r)||o["a"](b,s,b,_,e,i,r))return!0}else g+=Object(d["a"])(a,_,a,s,i,r),g+=Object(d["a"])(b,s,b,_,i,r);break;case p.Z:if(n){if(o["a"](v,m,b,_,e,i,r))return!0}else g+=Object(d["a"])(v,m,b,_,i,r);v=b,m=_;break}}return n||y(m,_)||(g+=Object(d["a"])(v,m,b,_,i,r)||0),0!==g}function j(t,e,n){return S(t,0,!1,e,n)}function M(t,e,n,i){return S(t,e,!0,n,i)}var T=n("6d8b"),C=n("41ef"),I=n("2cf4c"),k=n("4bc4"),D=n("8582"),A=Object(T["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r["b"]),P={style:Object(T["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r["a"].style)},L=D["a"].concat(["invisible","culling","z","z2","zlevel","parent"]),R=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var a=r.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?I["a"]:e>.2?I["c"]:I["d"]}if(t)return I["d"]}return I["a"]},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(T["isString"])(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Object(C["lum"])(t,0)0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&k["b"])&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){a.copy(t);var o=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;s=Math.max(s,null==u?4:u)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var a=this.path;if(this.hasStroke()){var o=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),M(a,o/s,t,e)))return!0}if(this.hasFill())return j(a,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=k["b"],this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(T["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&k["b"])},e.prototype.createStyle=function(t){return Object(T["createObject"])(A,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(T["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,a,o){t.prototype._applyStateObj.call(this,e,n,i,r,a,o);var s,u=!(n&&r);if(n&&n.shape?a?r?s=n.shape:(s=Object(T["extend"])({},i.shape),Object(T["extend"])(s,n.shape)):(s=Object(T["extend"])({},r?this.shape:i.shape),Object(T["extend"])(s,n.shape)):u&&(s=i.shape),s)if(a){this.shape=Object(T["extend"])({},this.shape);for(var c={},l=Object(T["keys"])(s),h=0;h=0||t===e}function h(t){var e=f(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=p(n);null==a&&(r.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==o||o>u[1])&&(o=u[1]),o65535?u:c}function p(){return[1/0,-1/0]}function g(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function v(t,e,n,i,r){var a=f[n||"float"];if(r){var o=t[e],s=o&&o.length;if(s!==i){for(var u=new a(i),c=0;cy[1]&&(y[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,c=Object(r["map"])(o,(function(t){return t.property})),l=0;lb[1]&&(b[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return a;r=a-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],a=[];if(!r)return a;null==n&&(n=1/0);for(var o=1/0,s=-1,u=0,c=0,l=this.count();c=0&&s<0)&&(o=d,s=f,u=0),f===s&&(a[u++]=c))}return a.length=u,a},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=h&&b<=f||isNaN(b))&&(u[c++]=v),v++}g=!0}else if(2===a){y=p[i[0]];var _=p[i[1]],x=t[i[1]][0],O=t[i[1]][1];for(m=0;m=h&&b<=f||isNaN(b))&&(w>=x&&w<=O||isNaN(w))&&(u[c++]=v),v++}g=!0}}if(!g)if(1===a)for(m=0;m=h&&b<=f||isNaN(b))&&(u[c++]=S)}else for(m=0;mt[T][1])&&(j=!1)}j&&(u[c++]=e.getRawIndex(m))}return cy[1]&&(y[1]=v)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,a=this.clone([t],!0),o=a._chunks,s=o[t],u=this.count(),c=0,l=Math.floor(1/e),h=this.getRawIndex(0),f=new(d(this._rawCount))(Math.min(2*(Math.ceil(u/l)+2),u));f[c++]=h;for(var p=1;pn&&(n=i,r=_))}T>0&&Tc-g&&(s=c-g,o.length=s);for(var v=0;vl[1]&&(l[1]=m),h[f++]=b}return r._count=f,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,a=this.count();rs&&(s=l)}return i=[o,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Object(a["d"])(t[i],this._dimensions[i])}i={arrayRows:t,objectRows:function(t,e,n,i){return Object(a["d"])(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Object(a["d"])(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}();e["b"]=y},d32f:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("6d8b"),r=n("e86a");function a(t,e,n){var a=t.get("borderRadius");if(null==a)return n?{cornerRadius:0}:null;Object(i["isArray"])(a)||(a=[a,a,a,a]);var o=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(i["map"])(a,(function(t){return Object(r["g"])(t,o)}))}}},d3f4:function(t,e,n){"use strict";function i(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r=u;l++)c-=u;var h=Object(a["f"])(n,e);return h>c&&(n="",h=0),c=t-h,o.ellipsis=n,o.ellipsisWidth=h,o.contentWidth=c,o.containerWidth=t,o}function c(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Object(a["f"])(t,i);if(o<=n)return t;for(var s=0;;s++){if(o<=r||s>=e.maxIterations){t+=e.ellipsis;break}var u=0===s?l(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,u),o=Object(a["f"])(t,i)}return""===t&&(t=e.placeholder),t}function l(t,e,n,i){for(var r=0,a=0,o=t.length;ay&&p){var m=Math.floor(y/f);n=n.slice(0,m)}if(t&&l&&null!=g)for(var b=u(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x=0;xd&&v(n,t.substring(d,g),e,f),v(n,u[2],e,f,u[1]),d=o.lastIndex}dl){C>0?(j.tokens=j.tokens.slice(0,C),w(j,T,M),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S);break t}var R=k.width,N=null==R||"auto"===R;if("string"===typeof R&&"%"===R.charAt(R.length-1))I.percentWidth=R,y.push(I),I.contentWidth=Object(a["f"])(I.text,P);else{if(N){var B=k.backgroundColor,z=B&&B.image;z&&(z=i["b"](z),i["c"](z)&&(I.width=Math.max(I.width,z.width*L/z.height)))}var E=x&&null!=c?c-T:null;null!=E&&E0&&y+i.accumWidth>i.width&&(o=e.split("\n"),p=!0),i.accumWidth=y}else{var m=_(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+v,s=m.linesWidths,o=m.lines}}else o=e.split("\n");for(var b=0;b=33&&e<=383}var m=Object(r["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function b(t){return!y(t)||!!m[t]}function _(t,e,n,i,r){for(var o=[],s=[],u="",c="",l=0,h=0,f=0;fn:r+h+p>n)?h?(u||c)&&(g?(u||(u=c,c="",l=0,h=l),o.push(u),s.push(h-l),c+=d,l+=p,u="",h=l):(c&&(u+=c,c="",l=0),o.push(u),s.push(h),u=d,h=p)):g?(o.push(c),s.push(l),c=d,l=p):(o.push(d),s.push(p)):(h+=p,g?(c+=d,l+=p):(c&&(u+=c,c="",l=0),u+=d))}else c&&(u+=c,h+=l),o.push(u),s.push(h),u="",c="",l=0,h=0}return o.length||u||(u=t,c="",l=0),c&&(u+=c),u&&(o.push(u),s.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:s}}},d498:function(t,e,n){"use strict";var i=n("9ab4"),r=n("cbe5"),a=n("4fac"),o=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),s=function(t){function e(e){return t.call(this,e)||this}return Object(i["a"])(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){a["a"](t,e,!1)},e}(r["b"]);s.prototype.type="polyline",e["a"]=s},d4c6:function(t,e,n){"use strict";var i=n("9ab4"),r=n("cbe5"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Object(i["a"])(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n=this._maxSize&&o>0){var u=n.head;n.remove(u),delete r[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return a},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=a},d5b7:function(t,e,n){"use strict";var i=n("8582"),r=n("06ad"),a=n("9850"),o=n("6fd3"),s=n("e86a"),u=n("6d8b"),c=n("2cf4c"),l=n("41ef"),h=n("4bc4"),f="__zr_normal__",d=i["a"].concat(["ignore"]),p=Object(u["reduce"])(i["a"],(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},v=new a["a"](0,0,0,0),y=function(){function t(t){this.id=Object(u["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,a=void 0,o=void 0,u=!1;r.parent=i?this:null;var c=!1;if(r.copyTransform(e),null!=n.position){var l=v;n.layoutRect?l.copy(n.layoutRect):l.copy(this.getBoundingRect()),i||l.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,l):Object(s["c"])(g,n,l),r.x=g.x,r.y=g.y,a=g.align,o=g.verticalAlign;var f=n.origin;if(f&&null!=n.rotation){var d=void 0,p=void 0;"center"===f?(d=.5*l.width,p=.5*l.height):(d=Object(s["g"])(f[0],l.width),p=Object(s["g"])(f[1],l.height)),c=!0,r.originX=-r.x+d+(i?0:l.x),r.originY=-r.y+p+(i?0:l.y)}}null!=n.rotation&&(r.rotation=n.rotation);var y=n.offset;y&&(r.x+=y[0],r.y+=y[1],c||(r.originX=-y[0],r.originY=-y[1]));var m=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,x=void 0,O=void 0;m&&this.canBeInsideText()?(_=n.insideFill,x=n.insideStroke,null!=_&&"auto"!==_||(_=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(_),O=!0)):(_=n.outsideFill,x=n.outsideStroke,null!=_&&"auto"!==_||(_=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(_),O=!0)),_=_||"#000",_===b.fill&&x===b.stroke&&O===b.autoStroke&&a===b.align&&o===b.verticalAlign||(u=!0,b.fill=_,b.stroke=x,b.autoStroke=O,b.align=a,b.verticalAlign=o,e.setDefaultTextStyle(b)),e.__dirty|=h["a"],u&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?c["d"]:c["a"]},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(l["parse"])(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*i+(r?0:255)*(1-i);return n[3]=1,Object(l["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(u["extend"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(u["isObject"])(t))for(var n=t,i=Object(u["keys"])(n),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(f,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===f,a=this.hasState();if(a||!r){var o=this.currentStates,s=this.stateTransition;if(!(Object(u["indexOf"])(o,t)>=0)||!e&&1!==o.length){var c;if(this.stateProxy&&!r&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),c||r){r||this.saveCurrentToNormalState(c);var l=!!(c&&c.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var d=this._textContent,p=this._textGuide;return d&&d.useState(t,e,n,l),p&&p.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h["a"]),c}Object(u["logError"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,a=t.length,o=a===r.length;if(o)for(var s=0;s0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(t,e,f),v&&v.useStates(t,e,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h["a"])}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=Object(u["indexOf"])(i,t),a=Object(u["indexOf"])(i,e)>=0;r>=0?a?i.splice(r,1):i[r]=e:n&&!a&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],a=0;a0&&n.during&&a[0].during((function(t,e){n.during(e)}));for(var f=0;f0||a.force&&!s.length){var I=void 0,k=void 0,D=void 0;if(c){k={},p&&(I={});for(j=0;jo)return!0;if(a){var s=u["c"](t).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=f(t).pointerEl=new a[r.type](d(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=f(t).labelEl=new o["a"](d(e.label));t.add(r),m(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=f(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=f(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),m(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,s=n.getModel("handle"),u=n.get("status");if(!s.get("show")||!u||"hide"===u)return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=a["createIcon"](s.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){c["g"](t.event)},onmousedown:p(this._onHandleDragMove,this,0,0),drift:p(this._onHandleDragMove,this),ondragend:p(this._onHandleDragEnd,this)}),r.add(o)),_(o,n,!1),o.setStyle(s.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var h=s.get("size");i["isArray"](h)||(h=[h,h]),o.scaleX=h[0]/2,o.scaleY=h[1]/2,l["b"](this,"_doDispatchAxisPointer",s.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){v(this._axisPointerModel,!e&&this._moveAnimation,this._handle,b(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(b(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(b(i)),f(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),l["a"](this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function v(t,e,n,i){y(f(n).lastProp,i)||(f(n).lastProp=i,e?s["h"](n,i,t):(n.stopAnimation(),n.attr(i)))}function y(t,e){if(i["isObject"](t)&&i["isObject"](e)){var n=!0;return i["each"](e,(function(e,i){n=n&&y(t[i],e)})),!!n}return t===e}function m(t,e){t[e.get(["label","show"])?"show":"hide"]()}function b(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function _(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}e["a"]=g},dce8:function(t,e,n){"use strict";var i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();e["a"]=i},dd4f:function(t,e,n){"use strict";var i=n("9ab4"),r=n("19eb"),a=n("e86a"),o=n("cbe5"),s=n("6d8b"),u=n("726e"),c=Object(s["defaults"])({strokeFirst:!0,font:u["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},o["a"]),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(s["createObject"])(c,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Object(a["d"])(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(r["c"]);l.prototype.type="tspan",e["a"]=l},dded:function(t,e,n){"use strict";var i=n("9ab4"),r=n("42e5"),a=function(t){function e(e,n,i,r,a){var o=t.call(this,r)||this;return o.x=null==e?.5:e,o.y=null==n?.5:n,o.r=null==i?.5:i,o.type="radial",o.global=a||!1,o}return Object(i["a"])(e,t),e}(r["a"]);e["a"]=a},deca:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return d})),n.d(e,"g",(function(){return p})),n.d(e,"b",(function(){return g}));var i=n("6d8b"),r=n("e0d3"),a=Object(r["o"])();function o(t,e,n,r,a){var o;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();o=s&&s.animation}var u=e&&e.isAnimationEnabled(),c="update"===t;if(u){var l=void 0,h=void 0,f=void 0;r?(l=Object(i["retrieve2"])(r.duration,200),h=Object(i["retrieve2"])(r.easing,"cubicOut"),f=0):(l=e.getShallow(c?"animationDurationUpdate":"animationDuration"),h=e.getShallow(c?"animationEasingUpdate":"animationEasing"),f=e.getShallow(c?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(f=o.delay)),Object(i["isFunction"])(f)&&(f=f(n,a)),Object(i["isFunction"])(l)&&(l=l(n));var d={duration:l||0,delay:f,easing:h};return d}return null}function s(t,e,n,r,a,s,u){var c,l=!1;Object(i["isFunction"])(a)?(u=s,s=a,a=null):Object(i["isObject"])(a)&&(s=a.cb,u=a.during,l=a.isFrom,c=a.removeOpt,a=a.dataIndex);var h="leave"===t;h||e.stopAnimation("leave");var f=o(t,r,a,h?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var d=f.duration,p=f.delay,g=f.easing,v={duration:d,delay:p||0,easing:g,done:s,force:!!s||!!u,setToFinal:!h,scope:t,during:u};l?e.animateFrom(n,v):e.animateTo(n,v)}else e.stopAnimation(),!l&&e.attr(n),u&&u(1),s&&s()}function u(t,e,n,i,r,a){s("update",t,e,n,i,r,a)}function c(t,e,n,i,r,a){s("enter",t,e,n,i,r,a)}function l(t){if(!t.__zr)return!0;for(var e=0;ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();i["c"](r),e["a"]=r},e263:function(t,e,n){"use strict";n.d(e,"d",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return y})),n.d(e,"e",(function(){return m})),n.d(e,"a",(function(){return b}));var i=n("401b"),r=n("4a3f"),a=Math.min,o=Math.max,s=Math.sin,u=Math.cos,c=2*Math.PI,l=i["create"](),h=i["create"](),f=i["create"]();function d(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],s=i[0],u=i[1],c=i[1],l=1;l1e-4)return p[0]=t-n,p[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(l[0]=u(a)*n+t,l[1]=s(a)*r+e,h[0]=u(o)*n+t,h[1]=s(o)*r+e,v(p,l,h),y(g,l,h),a%=c,a<0&&(a+=c),o%=c,o<0&&(o+=c),a>o&&!d?o+=c:aa&&(f[0]=u(_)*n+t,f[1]=s(_)*r+e,v(p,f,p),y(g,f,g))}},e86a:function(t,e,n){"use strict";n.d(e,"f",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"c",(function(){return p}));var i=n("9850"),r=n("d51b"),a=n("726e"),o={};function s(t,e){e=e||a["a"];var n=o[e];n||(n=o[e]=new r["a"](500));var i=n.get(t);return null==i&&(i=a["d"].measureText(t,e).width,n.put(t,i)),i}function u(t,e,n,r){var a=s(t,e),o=f(e),u=l(0,a,n),c=h(0,o,r),d=new i["a"](u,c,a,o);return d}function c(t,e,n,r){var a=((t||"")+"").split("\n"),o=a.length;if(1===o)return u(a[0],e,n,r);for(var s=new i["a"](0,0,0,0),c=0;c=0?parseFloat(t)/100*e:parseFloat(t):t}function p(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,a=n.height,o=n.width,s=a/2,u=n.x,c=n.y,l="left",h="top";if(i instanceof Array)u+=d(i[0],n.width),c+=d(i[1],n.height),l=null,h=null;else switch(i){case"left":u-=r,c+=s,l="right",h="middle";break;case"right":u+=r+o,c+=s,h="middle";break;case"top":u+=o/2,c-=r,l="center",h="bottom";break;case"bottom":u+=o/2,c+=a+r,l="center";break;case"inside":u+=o/2,c+=s,l="center",h="middle";break;case"insideLeft":u+=r,c+=s,h="middle";break;case"insideRight":u+=o-r,c+=s,l="right",h="middle";break;case"insideTop":u+=o/2,c+=r,l="center";break;case"insideBottom":u+=o/2,c+=a-r,l="center",h="bottom";break;case"insideTopLeft":u+=r,c+=r;break;case"insideTopRight":u+=o-r,c+=r,l="right";break;case"insideBottomLeft":u+=r,c+=a-r,h="bottom";break;case"insideBottomRight":u+=o-r,c+=a-r,l="right",h="bottom";break}return t=t||{},t.x=u,t.y=c,t.align=l,t.verticalAlign=h,t}},e887:function(t,e,n){"use strict";var i=n("6d8b"),r=n("2dc5"),a=n("8918"),o=n("625e"),s=n("e0d3"),u=n("7d6c"),c=n("9fbc"),l=n("cccd"),h=n("2306"),f=s["o"](),d=Object(l["a"])(),p=function(){function t(){this.group=new r["a"],this.uid=a["c"]("viewChart"),this.renderTask=Object(c["a"])({plan:y,reset:m}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&v(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&v(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Object(h["traverseElements"])(this.group,t)},t.markUpdateMethod=function(t,e){f(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function g(t,e,n){t&&Object(u["y"])(t)&&("emphasis"===e?u["r"]:u["C"])(t,n)}function v(t,e,n){var r=s["u"](t,e),a=e&&null!=e.highlightKey?Object(u["v"])(e.highlightKey):null;null!=r?Object(i["each"])(s["r"](r),(function(e){g(t.getItemGraphicEl(e),n,a)})):t.eachItemGraphicEl((function(t){g(t,n,a)}))}function y(t){return d(t.model)}function m(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=r&&f(r).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==u&&o[u](e,n,i,r),b[u]}o["b"](p,["dispose"]),o["c"](p);var b={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};e["a"]=p},ec6f:function(t,e,n){"use strict";n.d(e,"e",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return h})),n.d(e,"d",(function(){return f})),n.d(e,"f",(function(){return y}));var i=n("6d8b"),r=n("07fd"),a=n("e0d3"),o=n("0f99"),s=function(){function t(t){this.data=t.data||(t.sourceFormat===r["d"]?{}:[]),this.sourceFormat=t.sourceFormat||r["h"],this.seriesLayoutBy=t.seriesLayoutBy||r["a"],this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n1?"."+e[1]:"")}function u(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var c=i["normalizeCssArray"];function l(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function u(t){return t&&i["trim"](t)?t:"-"}function c(t){return!(null==t||isNaN(t)||!isFinite(t))}var l="time"===e,h=t instanceof Date;if(l||h){var f=l?Object(a["p"])(t):t;if(!isNaN(+f))return Object(o["h"])(f,r,n);if(h)return"-"}if("ordinal"===e)return i["isStringSafe"](t)?u(t):i["isNumber"](t)&&c(t)?t+"":"-";var d=Object(a["o"])(t);return c(d)?s(d):i["isStringSafe"](t)?u(t):"boolean"===typeof t?t+"":"-"}var h=["a","b","c","d","e","f","g"],f=function(t,e){return"{"+t+(null==e?"":e)+"}"};function d(t,e,n){i["isArray"](e)||(e=[e]);var a=e.length;if(!a)return"";for(var o=e[0].$vars||[],s=0;s':'';var u=n.markerId||"markerX";return{renderMode:s,content:"{"+u+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function v(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Object(a["p"])(e),r=n?"getUTC":"get",s=i[r+"FullYear"](),u=i[r+"Month"]()+1,c=i[r+"Date"](),l=i[r+"Hours"](),h=i[r+"Minutes"](),f=i[r+"Seconds"](),d=i[r+"Milliseconds"]();return t=t.replace("MM",Object(o["y"])(u,2)).replace("M",u).replace("yyyy",s).replace("yy",Object(o["y"])(s%100+"",2)).replace("dd",Object(o["y"])(c,2)).replace("d",c).replace("hh",Object(o["y"])(l,2)).replace("h",l).replace("mm",Object(o["y"])(h,2)).replace("m",h).replace("ss",Object(o["y"])(f,2)).replace("s",f).replace("SSS",Object(o["y"])(d,3)),t}function y(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function m(t,e){return e=e||"transparent",i["isString"](t)?t:i["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function b(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},edae:function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return l}));var i="[ECharts] ",r={},a="undefined"!==typeof console&&console.warn&&console.log;function o(t,e,n){if(a){if(n){if(r[e])return;r[e]=!0}console[t](i+e)}}function s(t,e){o("warn",t,e)}function u(t,e){o("error",t,e)}function c(t){0}function l(t){throw new Error(t)}},ee1a:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var i=n("6d8b"),r=n("80b9");function a(t,e,n){n=n||{};var r,a,s,u=n.byIndex,c=n.stackedCoordDimension;o(e)?r=e:(a=e.schema,r=a.dimensions,s=e.store);var l,h,f,d,p=!(!t||!t.get("stack"));if(Object(i["each"])(r,(function(t,e){Object(i["isString"])(t)&&(r[e]=t={name:t}),p&&!t.isExtraCoord&&(u||l||!t.ordinalMeta||(l=t),h||"ordinal"===t.type||"time"===t.type||c&&c!==t.coordDim||(h=t))})),!h||u||l||(u=!0),h){f="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var g=h.coordDim,v=h.type,y=0;Object(i["each"])(r,(function(t){t.coordDim===g&&y++}));var m={name:f,coordDim:g,coordDimIndex:y,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},b={name:d,coordDim:d,coordDimIndex:y+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};a?(s&&(m.storeDimIndex=s.ensureCalculationDimension(d,v),b.storeDimIndex=s.ensureCalculationDimension(f,v)),a.appendCalculationDimension(m),a.appendCalculationDimension(b)):(r.push(m),r.push(b))}return{stackedDimension:h&&h.name,stackedByDimension:l&&l.name,isStackedByIndex:u,stackedOverDimension:d,stackResultDimension:f}}function o(t){return!Object(r["d"])(t.schema)}function s(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function u(t,e){return s(t,e)?t.getCalculationInfo("stackResultDimension"):e}},ee29:function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var i=n("e0d3"),r=n("9850"),a=n("deca"),o=n("861c"),s=n("3842"),u=n("8582"),c=n("89b6"),l=n("6d8b"),h=n("2355"),f=n("7837");function d(t){if(t){for(var e=[],n=0;n=0&&n.attr(r.oldLayoutSelect),Object(l["indexOf"])(p,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Object(a["h"])(n,h,e,c)}else if(n.attr(h),!Object(f["f"])(n).valueAnimation){var g=Object(l["retrieve2"])(n.style.opacity,1);n.style.opacity=0,Object(a["c"])(n,{style:{opacity:g}},e,c)}if(r.oldLayout=h,n.states.select){var v=r.oldLayoutSelect={};b(v,h,_),b(v,n.states.select,_)}if(n.states.emphasis){var x=r.oldLayoutEmphasis={};b(x,h,_),b(x,n.states.emphasis,_)}Object(f["a"])(n,c,d,e,e)}if(i&&!i.ignore&&!i.invisible){r=m(i),s=r.oldLayout;var O={points:i.shape.points};s?(i.attr({shape:s}),Object(a["h"])(i,{shape:O},e)):(i.setShape(O),i.style.strokePercent=0,Object(a["c"])(i,{style:{strokePercent:1}},e)),r.oldLayout=O}},t}(),O=x,w=Object(i["o"])();function S(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=w(e).labelManager;i||(i=w(e).labelManager=new O),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=w(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}},ef59:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"b",(function(){return g})),n.d(e,"d",(function(){return v})),n.d(e,"c",(function(){return y}));var i=n("4319"),r=n("22d1"),a={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},o={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},s=n("6d8b"),u="ZH",c="EN",l=c,h={},f={},d=r["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(u)>-1?u:l}():l;function p(t,e){t=t.toUpperCase(),f[t]=new i["a"](e),h[t]=e}function g(t){if(Object(s["isString"])(t)){var e=h[t.toUpperCase()]||{};return t===u||t===c?Object(s["clone"])(e):Object(s["merge"])(Object(s["clone"])(e),Object(s["clone"])(h[l]),!1)}return Object(s["merge"])(Object(s["clone"])(t),Object(s["clone"])(h[l]),!1)}function v(t){return f[t]}function y(){return f[l]}p(c,a),p(u,o)},f3bb:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("6d8b"),r=n("e0d3");function a(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}Object(i["each"])([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,a){e=Object(i["extend"])({},e),a.dispatchAction(Object(i["extend"])(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function o(t,e,n,a,o){var s=t+e;n.isSilent(s)||a.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,a=t.option.selectedMap,u=o.selected,c=0;c1||y&&!g){var b=u(v,l,h,p,m);e=b.inlineValues,n=b.inlineValueTypes,s=b.blocks,c=b.inlineValues[0]}else if(g){var _=d.getDimensionInfo(p[0]);c=e=Object(a["e"])(d,h,p[0]),n=_.type}else c=e=y?v[0]:v;var x=Object(o["n"])(l),O=x&&l.name||"",w=d.getName(h),S=f?O:w;return Object(r["c"])("section",{header:O,noHeader:f||!x,sortParam:c,blocks:[Object(r["c"])("nameValue",{markerType:"item",markerColor:m,name:S,noName:!Object(i["trim"])(S),value:e,valueType:n})].concat(s||[])})}function u(t,e,n,o,s){var u=e.getData(),c=Object(i["reduce"])(t,(function(t,e,n){var i=u.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),l=[],h=[],f=[];function d(t,e){var n=u.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(c?f.push(Object(r["c"])("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(l.push(t),h.push(n.type)))}return o.length?Object(i["each"])(o,(function(t){d(Object(a["e"])(u,n,t),t)})):Object(i["each"])(t,d),{inlineValues:l,inlineValueTypes:h,blocks:f}}},f72b:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h}));var i=n("6d8b"),r=n("ec6f"),a=n("07fd"),o=n("0f99"),s=n("04f7"),u=n("d0ce"),c=n("2b17"),l=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,o=this._getUpstreamSourceManagers(),s=!!o.length;if(f(n)){var u=n,c=void 0,l=void 0,h=void 0;if(s){var d=o[0];d.prepareSource(),h=d.getSource(),c=h.data,l=h.sourceFormat,e=[d._getVersionSign()]}else c=u.get("data",!0),l=Object(i["isTypedArray"])(c)?a["g"]:a["f"],e=[];var p=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},v=Object(i["retrieve2"])(p.seriesLayoutBy,g.seriesLayoutBy)||null,y=Object(i["retrieve2"])(p.sourceHeader,g.sourceHeader),m=Object(i["retrieve2"])(p.dimensions,g.dimensions),b=v!==g.seriesLayoutBy||!!y!==!!g.sourceHeader||m;t=b?[Object(r["b"])(c,{seriesLayoutBy:v,sourceHeader:y,dimensions:m},l)]:[]}else{var _=n;if(s){var x=this._applyTransform(o);t=x.sourceList,e=x.upstreamSignList}else{var O=_.get("source",!0);t=[Object(r["b"])(O,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,a=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(null!=o){var u="";1!==t.length&&d(u)}var c=[],l=[];return Object(i["each"])(t,(function(t){t.prepareSource();var e=t.getSource(o||0),n="";null==o||e||d(n),c.push(e),l.push(t._getVersionSign())})),a?e=Object(s["a"])(a,c,{datasetIndex:n.componentIndex}):null!=o&&(e=[Object(r["a"])(c[0])]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e0)for(var u=0;u=0;--u)if(c[l]){o=c[l];break}o=o||s.none}if(i["isArray"](o)){var d=null==t.level?0:t.level>=0?t.level:o.length+t.level;d=Math.min(d,o.length-1),o=o[d]}}return x(new Date(t.value),o,a,r)}function w(t,e){var n=r["p"](t),i=n[M(e)]()+1,a=n[T(e)](),o=n[C(e)](),s=n[I(e)](),u=n[k(e)](),c=n[D(e)](),l=0===c,h=l&&0===u,f=h&&0===s,d=f&&0===o,p=d&&1===a,g=p&&1===i;return g?"year":p?"month":d?"day":f?"hour":h?"minute":l?"second":"millisecond"}function S(t,e,n){var a=i["isNumber"](t)?r["p"](t):t;switch(e=e||w(t,n),e){case"year":return a[j(n)]();case"half-year":return a[M(n)]()>=6?1:0;case"quarter":return Math.floor((a[M(n)]()+1)/4);case"month":return a[M(n)]();case"day":return a[T(n)]();case"half-day":return a[C(n)]()/24;case"hour":return a[C(n)]();case"minute":return a[I(n)]();case"second":return a[k(n)]();case"millisecond":return a[D(n)]()}}function j(t){return t?"getUTCFullYear":"getFullYear"}function M(t){return t?"getUTCMonth":"getMonth"}function T(t){return t?"getUTCDate":"getDate"}function C(t){return t?"getUTCHours":"getHours"}function I(t){return t?"getUTCMinutes":"getMinutes"}function k(t){return t?"getUTCSeconds":"getSeconds"}function D(t){return t?"getUTCMilliseconds":"getMilliseconds"}function A(t){return t?"setUTCFullYear":"setFullYear"}function P(t){return t?"setUTCMonth":"setMonth"}function L(t){return t?"setUTCDate":"setDate"}function R(t){return t?"setUTCHours":"setHours"}function N(t){return t?"setUTCMinutes":"setMinutes"}function B(t){return t?"setUTCSeconds":"setSeconds"}function z(t){return t?"setUTCMilliseconds":"setMilliseconds"}},f934:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"i",(function(){return p})),n.d(e,"j",(function(){return g})),n.d(e,"d",(function(){return v})),n.d(e,"h",(function(){return y})),n.d(e,"f",(function(){return m})),n.d(e,"c",(function(){return b}));var i=n("6d8b"),r=n("9850"),a=n("3842"),o=n("eda2"),s=i["each"],u=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function l(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(u,c){var l,h,f=u.getBoundingRect(),d=e.childAt(c+1),p=d&&d.getBoundingRect();if("horizontal"===t){var g=f.width+(p?-p.x+f.x:0);l=a+g,l>i||u.newline?(a=0,l=g,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.y+f.y:0);h=o+v,h>r||u.newline?(a+=s+n,o=0,h=v,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),"horizontal"===t?a=l+n:o=h+n)}))}var h=l;i["curry"](l,"vertical"),i["curry"](l,"horizontal");function f(t,e,n){var i=e.width,r=e.height,s=Object(a["q"])(t.left,i),u=Object(a["q"])(t.top,r),c=Object(a["q"])(t.right,i),l=Object(a["q"])(t.bottom,r);return(isNaN(s)||isNaN(parseFloat(t.left)))&&(s=0),(isNaN(c)||isNaN(parseFloat(t.right)))&&(c=i),(isNaN(u)||isNaN(parseFloat(t.top)))&&(u=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=r),n=o["i"](n||0),{width:Math.max(c-s-n[1]-n[3],0),height:Math.max(l-u-n[0]-n[2],0)}}function d(t,e,n){n=o["i"](n||0);var i=e.width,s=e.height,u=Object(a["q"])(t.left,i),c=Object(a["q"])(t.top,s),l=Object(a["q"])(t.right,i),h=Object(a["q"])(t.bottom,s),f=Object(a["q"])(t.width,i),d=Object(a["q"])(t.height,s),p=n[2]+n[0],g=n[1]+n[3],v=t.aspect;switch(isNaN(f)&&(f=i-l-g-u),isNaN(d)&&(d=s-h-p-c),null!=v&&(isNaN(f)&&isNaN(d)&&(v>i/s?f=.8*i:d=.8*s),isNaN(f)&&(f=v*d),isNaN(d)&&(d=f/v)),isNaN(u)&&(u=i-l-f-g),isNaN(c)&&(c=s-h-d-p),t.left||t.right){case"center":u=i/2-f/2-n[3];break;case"right":u=i-f-g;break}switch(t.top||t.bottom){case"middle":case"center":c=s/2-d/2-n[0];break;case"bottom":c=s-d-p;break}u=u||0,c=c||0,isNaN(f)&&(f=i-g-u-(l||0)),isNaN(d)&&(d=s-p-c-(h||0));var y=new r["a"](u+n[3],c+n[0],f,d);return y.margin=n,y}function p(t,e,n,a,o,s){var u,c=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],h=o&&o.boundingMode||"all";if(s=s||t,s.x=t.x,s.y=t.y,!c&&!l)return!1;if("raw"===h)u="group"===t.type?new r["a"](0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();u=u.clone(),u.applyTransform(f)}var p=d(i["defaults"]({width:u.width,height:u.height},e),n,a),g=c?p.x-u.x:0,v=l?p.y-u.y:0;return"raw"===h?(s.x=g,s.y=v):(s.x+=g,s.y+=v),s===t&&t.markRedraw(),!0}function g(t,e){return null!=t[c[e][0]]||null!=t[c[e][1]]&&null!=t[c[e][2]]}function v(t){var e=t.layoutMode||t.constructor.layoutMode;return i["isObject"](e)?e:e?{type:e}:null}function y(t,e,n){var r=n&&n.ignoreSize;!i["isArray"](r)&&(r=[r,r]);var a=u(c[0],0),o=u(c[1],1);function u(n,i){var a={},o=0,u={},c=0,f=2;if(s(n,(function(e){u[e]=t[e]})),s(n,(function(t){l(e,t)&&(a[t]=u[t]=e[t]),h(a,t)&&o++,h(u,t)&&c++})),r[i])return h(e,n[1])?u[n[2]]=null:h(e,n[2])&&(u[n[1]]=null),u;if(c!==f&&o){if(o>=f)return a;for(var d=0;d=o)}}for(var f=this.__startIndex;f15)break}}n.prevElClipPaths&&c.restore()};if(f)if(0===f.length)s=u.__endIndex;else for(var _=d.dpr,x=0;x0&&t>i[0]){for(s=0;st)break;o=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(o){var u=o.dom;u.nextSibling?a.insertBefore(e.dom,u.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?b:0),this._needsManuallyCompositing),h.__builtin__||r["logError"]("ZLevel "+c+" has been used by unkown layer "+h.id),h!==s&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,e(o),s=h),i.__dirty&l["a"]&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,r["each"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?r["merge"](n[t],e,!0):n[t]=e;for(var i=0;i0?"top":"bottom",i="center"):Object(h["l"])(a-y)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),b={axisLine:function(t,e,n,r){var s=e.get(["axisLine","show"]);if("auto"===s&&t.handleAutoShown&&(s=t.handleAutoShown("axisLine")),s){var u=e.axis.getExtent(),c=r.transform,l=[u[0],0],h=[u[1],0],d=l[0]>h[0];c&&(Object(p["applyTransform"])(l,l,c),Object(p["applyTransform"])(h,h,c));var g=Object(i["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new a["a"]({shape:{x1:l[0],y1:l[1],x2:h[0],y2:h[1]},style:g,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});o["subPixelOptimizeLine"](v.shape,v.style.lineWidth),v.anid="line",n.add(v);var y=e.get(["axisLine","symbol"]);if(null!=y){var m=e.get(["axisLine","symbolSize"]);Object(i["isString"])(y)&&(y=[y,y]),(Object(i["isString"])(m)||Object(i["isNumber"])(m))&&(m=[m,m]);var b=Object(f["b"])(e.get(["axisLine","symbolOffset"])||0,m),_=m[0],x=m[1];Object(i["each"])([{rotate:t.rotation+Math.PI/2,offset:b[0],r:0},{rotate:t.rotation-Math.PI/2,offset:b[1],r:Math.sqrt((l[0]-h[0])*(l[0]-h[0])+(l[1]-h[1])*(l[1]-h[1]))}],(function(e,i){if("none"!==y[i]&&null!=y[i]){var r=Object(f["a"])(y[i],-_/2,-x/2,_,x,g.stroke,!0),a=e.r+e.offset,o=d?h:l;r.attr({rotation:e.rotate,x:o[0]+a*Math.cos(t.rotation),y:o[1]-a*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,r){var a=M(n,r,e,t),o=C(n,r,e,t);if(x(e,o,a),T(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var s=Object(v["b"])(Object(i["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Object(v["a"])(s)}},axisName:function(t,e,n,r){var a=Object(i["retrieve"])(t.axisName,e.get("name"));if(a){var l,h,f=e.get("nameLocation"),d=t.nameDirection,p=e.getModel("nameTextStyle"),g=e.get("nameGap")||0,v=e.axis.getExtent(),b=v[0]>v[1]?-1:1,x=["start"===f?v[0]-b*g:"end"===f?v[1]+b*g:(v[0]+v[1])/2,S(f)?t.labelOffset+d*g:0],O=e.get("nameRotate");null!=O&&(O=O*y/180),S(f)?l=m.innerTextLayout(t.rotation,null!=O?O:t.rotation,d):(l=_(t.rotation,f,O||0,v),h=t.axisNameAvailableWidth,null!=h&&(h=Math.abs(h/Math.sin(l.rotation)),!isFinite(h)&&(h=null)));var w=p.getFont(),j=e.get("nameTruncate",!0)||{},M=j.ellipsis,T=Object(i["retrieve"])(t.nameTruncateMaxWidth,j.maxWidth,h),C=new s["a"]({x:x[0],y:x[1],rotation:l.rotation,silent:m.isLabelSilent(e),style:Object(c["c"])(p,{text:a,font:w,overflow:"truncate",width:T,ellipsis:M,fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:p.get("align")||l.textAlign,verticalAlign:p.get("verticalAlign")||l.textVerticalAlign}),z2:1});if(o["setTooltipConfig"]({el:C,componentModel:e,itemName:a}),C.__fullText=a,C.anid="name",e.get("triggerEvent")){var I=m.makeAxisEventDataBase(e);I.targetType="axisName",I.name=a,Object(u["a"])(C).eventData=I}r.add(C),C.updateTransform(),n.add(C),C.decomposeTransform()}}};function _(t,e,n,i){var r,a,o=Object(h["v"])(n-t),s=i[0]>i[1],u="start"===e&&!s||"start"!==e&&s;return Object(h["l"])(o-y/2)?(a=u?"bottom":"top",r="center"):Object(h["l"])(o-1.5*y)?(a=u?"top":"bottom",r="center"):(a="middle",r=o<1.5*y&&o>y/2?u?"left":"right":u?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function x(t,e,n){if(!Object(g["j"])(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var a=e[0],o=e[1],s=e[e.length-1],u=e[e.length-2],c=n[0],l=n[1],h=n[n.length-1],f=n[n.length-2];!1===i?(O(a),O(c)):w(a,o)&&(i?(O(o),O(l)):(O(a),O(c))),!1===r?(O(s),O(h)):w(u,s)&&(r?(O(u),O(f)):(O(s),O(h)))}}function O(t){t&&(t.ignore=!0)}function w(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=d["identity"]([]);return d["rotate"](r,r,-t.rotation),n.applyTransform(d["mul"]([],r,t.getLocalTransform())),i.applyTransform(d["mul"]([],r,e.getLocalTransform())),n.intersect(i)}}function S(t){return"middle"===t||"center"===t}function j(t,e,n,i,r){for(var s=[],u=[],c=[],l=0;l=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(u["a"]),h=l,f=n("41ef"),d=n("2dc5"),p=n("76a5"),g=n("c7a2"),v=n("2306"),y=n("7d6c"),m=n("7837"),b=n("7919"),_=n("f934"),x=n("b12f"),O=n("a15a"),w=n("b3c1"),S=a["curry"],j=a["each"],M=d["a"],T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(r["a"])(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new M),this.group.add(this._selectorGroup=new M),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var s=t.get("selector",!0),u=t.get("selectorPosition",!0);!s||u&&"auto"!==u||(u="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,s,o,u);var c=t.getBoxLayoutParams(),l={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),f=_["g"](c,l,h),d=this.layoutInner(t,r,f,i,s,u),p=_["g"](a["defaults"]({width:d.width,height:d.height},c),l,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Object(b["b"])(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,s){var u=this.getContentGroup(),c=a["createHashMap"](),l=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),j(e.getData(),(function(r,o){var s=r.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var d=new M;return d.newline=!0,void u.add(d)}var p=n.getSeriesByName(s)[0];if(!c.get(s)){if(p){var g=p.getData(),v=g.getVisual("legendLineStyle")||{},y=g.getVisual("legendIcon"),m=g.getVisual("style"),b=this._createItem(p,s,o,r,e,t,v,m,y,l,i);b.on("click",S(k,s,null,i,h)).on("mouseover",S(A,p.name,null,i,h)).on("mouseout",S(P,p.name,null,i,h)),c.set(s,!0)}else n.eachRawSeries((function(n){if(!c.get(s)&&n.legendVisualProvider){var u=n.legendVisualProvider;if(!u.containName(s))return;var d=u.indexOfName(s),p=u.getItemVisual(d,"style"),g=u.getItemVisual(d,"legendIcon"),v=Object(f["parse"])(p.fill);v&&0===v[3]&&(v[3]=.2,p=a["extend"](a["extend"]({},p),{fill:Object(f["stringify"])(v,"rgba")}));var y=this._createItem(n,s,o,r,e,t,{},p,g,l,i);y.on("click",S(k,null,s,i,h)).on("mouseover",S(A,null,s,i,h)).on("mouseout",S(P,null,s,i,h)),c.set(s,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,s)},e.prototype._createSelector=function(t,e,n,i,r){var a=this.getSelectorGroup();j(t,(function(t){var i=t.type,r=new p["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var o=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);Object(m["g"])(r,{normal:o,emphasis:s},{defaultText:t.title}),Object(y["o"])(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,s,u,c,l,h){var f=t.visualDrawType,d=r.get("itemWidth"),b=r.get("itemHeight"),_=r.isSelected(e),x=i.get("symbolRotate"),O=i.get("symbolKeepAspect"),w=i.get("icon");c=w||c||"roundRect";var S=C(c,i,s,u,f,_,h),j=new M,T=i.getModel("textStyle");if(!a["isFunction"](t.getLegendIcon)||w&&"inherit"!==w){var k="inherit"===w&&t.getData().getVisual("symbol")?"inherit"===x?t.getData().getVisual("symbolRotate"):x:0;j.add(I({itemWidth:d,itemHeight:b,icon:c,iconRotate:k,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:O}))}else j.add(t.getLegendIcon({itemWidth:d,itemHeight:b,icon:c,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:O}));var D="left"===o?d+5:-5,A=o,P=r.get("formatter"),L=e;a["isString"](P)&&P?L=P.replace("{name}",null!=e?e:""):a["isFunction"](P)&&(L=P(e));var R=i.get("inactiveColor");j.add(new p["a"]({style:Object(m["c"])(T,{text:L,x:D,y:b/2,fill:_?T.getTextColor():R,align:A,verticalAlign:"middle"})}));var N=new g["a"]({shape:j.getBoundingRect(),invisible:!0}),B=i.getModel("tooltip");return B.get("show")&&v["setTooltipConfig"]({el:N,componentModel:r,itemName:e,itemTooltipOption:B.option}),j.add(N),j.eachChild((function(t){t.silent=!0})),N.silent=!l,this.getContentGroup().add(j),Object(y["o"])(j),j.__legendDataIndex=n,j},e.prototype.layoutInner=function(t,e,n,i,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();_["b"](t.get("orient"),o,t.get("itemGap"),n.width,n.height);var u=o.getBoundingRect(),c=[-u.x,-u.y];if(s.markRedraw(),o.markRedraw(),r){_["b"]("horizontal",s,t.get("selectorItemGap",!0));var l=s.getBoundingRect(),h=[-l.x,-l.y],f=t.get("selectorButtonGap",!0),d=t.getOrient().index,p=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===a?h[d]+=u[p]+f:c[d]+=l[p]+f,h[1-d]+=u[g]/2-l[g]/2,s.x=h[0],s.y=h[1],o.x=c[0],o.y=c[1];var y={x:0,y:0};return y[p]=u[p]+f+l[p],y[g]=Math.max(u[g],l[g]),y[v]=Math.min(0,l[v]+h[1-d]),y}return o.x=c[0],o.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(x["a"]);function C(t,e,n,i,r,a,o){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),j(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var u=e.getModel("itemStyle"),c=u.getItemStyle(),l=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=u.getShallow("decal");c.decal=h&&"inherit"!==h?Object(w["a"])(h,o):i.decal,"inherit"===c.fill&&(c.fill=i[r]),"inherit"===c.stroke&&(c.stroke=i[l]),"inherit"===c.opacity&&(c.opacity=("fill"===r?i:n).opacity),s(c,i);var f=e.getModel("lineStyle"),d=f.getLineStyle();if(s(d,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!a){var p=e.get("inactiveBorderWidth"),g=c[l];c.lineWidth="auto"===p?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),d.stroke=f.get("inactiveColor"),d.lineWidth=f.get("inactiveWidth")}return{itemStyle:c,lineStyle:d}}function I(t){var e=t.icon||"roundRect",n=Object(O["a"])(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function k(t,e,n,i){P(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),A(t,e,n,i)}function D(t){var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;while(in[r],v=[-f.x,-f.y];e||(v[i]=c[u]);var y=[0,0],m=[-d.x,-d.y],b=a["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var x=t.get("pageButtonPosition",!0);"end"===x?m[i]+=n[r]-d[r]:y[i]+=d[r]+b}m[1-i]+=f[o]/2-d[o]/2,c.setPosition(v),l.setPosition(y),h.setPosition(m);var O={x:0,y:0};if(O[r]=p?n[r]:f[r],O[o]=Math.max(f[o],d[o]),O[s]=Math.min(0,d[s]+m[1-i]),l.__rectSize=n[r],p){var w={x:0,y:0};w[r]=Math.max(n[r]-d[r]-b,0),w[o]=O[o],l.setClipPath(new g["a"]({shape:w})),l.__rectSize=w[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var S=this._getPageInfo(t);return null!=S.pageIndex&&W["h"](c,{x:S.contentPosition[0],y:S.contentPosition[1]},p?t:null),this._updatePageInfoView(t,S),O},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;a["each"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",a=null!=e[r],o=n.childOfName(i);o&&(o.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=a?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,s=null!=o?o+1:0,u=e.pageCount;i&&r&&i.setStyle("text",a["isString"](r)?r.replace("{current}",null==s?"":s+"").replace("{total}",null==u?"":u+""):r({current:s,total:u}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,a=q[r],o=U[r],s=this._findTargetItemIndex(e),u=n.children(),c=u[s],l=u.length,h=l?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var d=m(c);f.contentPosition[r]=-d.s;for(var p=s+1,g=d,v=d,y=null;p<=l;++p)y=m(u[p]),(!y&&v.e>g.s+i||y&&!b(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount)),v=y;for(p=s-1,g=d,v=d,y=null;p>=-1;--p)y=m(u[p]),y&&b(v,y.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var a=i.__legendDataIndex;null==n&&null!=a&&(n=r),a===t&&(e=r)})),null!=e?e:n},e.type="legend.scroll",e}(L),Y=X;function Z(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function K(t){Object(i["a"])(z),t.registerComponentModel(V),t.registerComponentView(Y),Z(t)}function $(t){Object(i["a"])(z),Object(i["a"])(K)}}}]);