s[1]&&(s[1]=t)}))}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function M(e,t,i){for(var n,a=0,r=1/0,o=0,s=e.length;oa&&(a=n));var l=e.area*e.area,u=t*t*i;return l?c(u*a/l,l/(u*r)):1/0}function I(e,t,i,n,a){var r=t===i.width?0:1,o=1-r,s=["x","y"],l=["width","height"],u=i[s[r]],d=t?e.area/t:0;(a||d>i[l[o]])&&(d=i[l[o]]);for(var f=0,p=e.length;fs&&(c=s),o=r}c0&&(o=null===o?l:Math.min(o,l))}i[a]=o}}return i}function v(e){var t=m(e),i=[];return n.each(e,(function(e){var n,a=e.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var l=o.dim+"_"+o.index,u=t[l],c=Math.abs(s[1]-s[0]),h=o.scale.getExtent(),p=Math.abs(h[1]-h[0]);n=u?c/p*u:c}else{var g=e.getData();n=Math.abs(s[1]-s[0])/g.count()}var m=r(e.get("barWidth"),n),v=r(e.get("barMaxWidth"),n),y=r(e.get("barMinWidth")||1,n),x=e.get("barGap"),_=e.get("barCategoryGap");i.push({bandWidth:n,barWidth:m,barMaxWidth:v,barMinWidth:y,barGap:x,barCategoryGap:_,axisKey:f(o),stackId:d(e)})})),y(i)}function y(e){var t={};n.each(e,(function(e,i){var n=e.axisKey,a=e.bandWidth,r=t[n]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;t[n]=r;var s=e.stackId;o[s]||r.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var u=e.barMaxWidth;u&&(o[s].maxWidth=u);var c=e.barMinWidth;c&&(o[s].minWidth=c);var h=e.barGap;null!=h&&(r.gap=h);var d=e.barCategoryGap;null!=d&&(r.categoryGap=d)}));var i={};return n.each(t,(function(e,t){i[t]={};var a=e.stacks,o=e.bandWidth,s=r(e.categoryGap,o),l=r(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),n.each(a,(function(e){var t=e.maxWidth,i=e.minWidth;if(e.width){n=e.width;t&&(n=Math.min(n,t)),i&&(n=Math.max(n,i)),e.width=n,u-=n+l*n,c--}else{var n=h;t&&tn&&(n=i),n!==h&&(e.width=n,u-=n+l*n,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;n.each(a,(function(e,t){e.width||(e.width=h),d=e,f+=e.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;n.each(a,(function(e,n){i[t][n]=i[t][n]||{bandWidth:o,offset:p,width:e.width},p+=e.width*(1+l)}))})),i}function x(e,t,i){if(e&&t){var n=e[f(t)];return null!=n&&null!=i&&(n=n[d(i)]),n}}function _(e,t){var i=g(e,t),a=v(i),r={},o={};n.each(i,(function(e){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),l=d(e),u=a[f(n)][l],c=u.offset,h=u.width,p=i.getOtherAxis(n),g=e.get("barMinHeight")||0;r[l]=r[l]||[],o[l]=o[l]||[],t.setLayout({bandWidth:u.bandWidth,offset:c,size:h});for(var m=t.mapDimension(p.dim),v=t.mapDimension(n.dim),y=s(t,m),x=p.isHorizontal(),_=M(n,p,y),b=0,w=t.count();b=0?"p":"n",P=_;if(y&&(r[l][D]||(r[l][D]={p:_,n:_}),P=r[l][D][L]),x){var k=i.dataToPoint([C,D]);S=P,I=k[1]+c,A=k[0]-_,T=h,Math.abs(A)c||(d=c),{progress:f}}function f(e,t){var c,f=e.count,p=new h(2*f),g=new h(2*f),m=new h(f),v=[],y=[],x=0,_=0;while(null!=(c=e.next()))y[u]=t.get(o,c),y[1-u]=t.get(s,c),v=i.dataToPoint(y,null,v),g[x]=l?n.x+n.width:v[0],p[x++]=v[0],g[x]=l?v[1]:n.y+n.height,p[x++]=v[1],m[_++]=c;t.setLayout({largePoints:p,largeDataIndices:m,largeBackgroundPoints:g,barWidth:d,valueAxisStart:M(a,r,!1),backgroundStart:l?n.x:n.y,valueAxisHorizontal:l})}}};function w(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function S(e){return e.pipelineContext&&e.pipelineContext.large}function M(e,t,i){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=p,t.prepareLayoutBarSeries=g,t.makeColumnLayout=v,t.retrieveColumnLayout=x,t.layout=_,t.largeLayout=b},"9e2e":function(e,t,i){var n=i("a73c"),a=i("9850"),r=i("82eb"),o=r.WILL_BE_RESTORED,s=new a,l=function(){};l.prototype={constructor:l,drawRectText:function(e,t){var i=this.style;t=i.textRect||t,this.__dirty&&n.normalizeTextStyle(i,!0);var a=i.text;if(null!=a&&(a+=""),n.needDrawText(a,i)){e.save();var r=this.transform;i.transformText?this.setTransform(e):r&&(s.copy(t),s.applyTransform(r),t=s),n.renderText(this,e,a,i,t,o),e.restore()}}};var u=l;e.exports=u},"9e47":function(e,t,i){var n=i("6d8b"),a=i("71ad"),r=i("6cb7"),o=i("f934"),s=o.getLayoutParams,l=o.mergeLayoutParam,u=i("8e43"),c=["value","category","time","log"];function h(e,t,i,o){n.each(c,(function(r){t.extend({type:e+"Axis."+r,mergeDefaultAndTheme:function(t,a){var o=this.layoutMode,u=o?s(t):{},c=a.getTheme();n.merge(t,c.get(r+"Axis")),n.merge(t,this.getDefaultOption()),t.type=i(e,t),o&&l(t,u,o)},optionUpdated:function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=u.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:n.mergeAll([{},a[r+"Axis"],o],!0)})})),r.registerSubTypeDefaulter(e+"Axis",n.curry(i,e))}e.exports=h},"9e87":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("50e5");n.registerAction("dataZoom",(function(e,t){var i=r.createLinkedNodesFinder(a.bind(t.eachComponent,t,"dataZoom"),r.eachAxisDim,(function(e,t){return e.get(t.axisIndex)})),n=[];t.eachComponent({mainType:"dataZoom",query:e},(function(e,t){n.push.apply(n,i(e).nodes)})),a.each(n,(function(t,i){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))},"9f51":function(e,t,i){var n=i("857d"),a=n.normalizeRadian,r=2*Math.PI;function o(e,t,i,n,o,s,l,u,c){if(0===l)return!1;var h=l;u-=e,c-=t;var d=Math.sqrt(u*u+c*c);if(d-h>i||d+ho&&(o+=r);var p=Math.atan2(c,u);return p<0&&(p+=r),p>=n&&p<=o||p+r>=n&&p+r<=o}t.containStroke=o},"9f82":function(e,t,i){var n=i("ee1a"),a=n.isDimensionStacked,r=i("6d8b"),o=r.map;function s(e,t,i){var n,r=e.getBaseAxis(),s=e.getOtherAxis(r),u=l(s,i),c=r.dim,h=s.dim,d=t.mapDimension(h),f=t.mapDimension(c),p="x"===h||"radius"===h?1:0,g=o(e.dimensions,(function(e){return t.mapDimension(e)})),m=t.getCalculationInfo("stackResultDimension");return(n|=a(t,g[0]))&&(g[0]=m),(n|=a(t,g[1]))&&(g[1]=m),{dataDimsForPoint:g,valueStart:u,valueAxisDim:h,baseAxisDim:c,stacked:!!n,valueDim:d,baseDim:f,baseDataOffset:p,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function l(e,t){var i=0,n=e.scale.getExtent();return"start"===t?i=n[0]:"end"===t?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function u(e,t,i,n){var a=NaN;e.stacked&&(a=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var r=e.baseDataOffset,o=[];return o[r]=i.get(e.baseDim,n),o[1-r]=a,t.dataToPoint(o)}t.prepareDataCoordInfo=s,t.getStackedOnPoint=u},"9fa3":function(e,t,i){var n=i("4ab1"),a=i("6d8b"),r=i("1687");function o(e,t){n.call(this,e,t,"clipPath","__clippath_in_use__")}a.inherits(o,n),o.prototype.update=function(e){var t=this.getSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!1);var i=this.getTextSvgElement(e);i&&this.updateDom(i,e.__clipPaths,!0),this.markUsed(e)},o.prototype.updateDom=function(e,t,i){if(t&&t.length>0){var n,a,o=this.getDefs(!0),s=t[0],l=i?"_textDom":"_dom";s[l]?(a=s[l].getAttribute("id"),n=s[l],o.contains(n)||o.appendChild(n)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",a),o.appendChild(n),s[l]=n);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var c=Array.prototype.slice.call(s.transform);r.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=c}else u.brush(s);var h=this.getSvgElement(s);n.innerHTML="",n.appendChild(h.cloneNode()),e.setAttribute("clip-path","url(#"+a+")"),t.length>1&&this.updateDom(n,t.slice(1),i)}else e&&e.setAttribute("clip-path","none")},o.prototype.markUsed=function(e){var t=this;e.__clipPaths&&a.each(e.__clipPaths,(function(e){e._dom&&n.prototype.markUsed.call(t,e._dom),e._textDom&&n.prototype.markUsed.call(t,e._textDom)}))};var s=o;e.exports=s},a016:function(e,t,i){var n=i("4f85"),a=i("e46b"),r=i("6d8b"),o=i("eda2"),s=o.encodeHTML,l=i("c4a3"),u=n.extend({type:"series.radar",dependencies:["radar"],init:function(e){u.superApply(this,"init",arguments),this.legendVisualProvider=new l(r.bind(this.getData,this),r.bind(this.getRawData,this))},getInitialData:function(e,t){return a(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e,t,i,n){var a=this.getData(),o=this.coordinateSystem,l=o.getIndicatorAxes(),u=this.getData().getName(e),c="html"===n?"
":"\n";return s(""===u?this.name:u)+c+r.map(l,(function(t,i){var n=a.get(a.mapDimension(t.dim),e);return s(t.name+" : "+n)})).join(c)},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),i=this.coordinateSystem,n=t.getValues(r.map(i.dimensions,(function(e){return t.mapDimension(e)})),e,!0),a=0,o=n.length;a0){e.moveTo(i[a++],i[a++]);for(var o=1;o0){var h=(s+u)/2-(l-c)*n,d=(l+c)/2-(u-s)*n;e.quadraticCurveTo(h,d,u,c)}else e.lineTo(u,c)}},findDataIndex:function(e,t){var i=this.shape,n=i.segs,a=i.curveness;if(i.polyline)for(var s=0,l=0;l0)for(var c=n[l++],h=n[l++],d=1;d0){var g=(c+f)/2-(h-p)*a,m=(h+p)/2-(f-c)*a;if(o.containStroke(c,h,g,m,f,p))return s}else if(r.containStroke(c,h,f,p))return s;s++}return-1}});function l(){this.group=new n.Group}var u=l.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(e){this.group.removeAll();var t=new s({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},u.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(e,t){var i=new s;i.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(i,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=e.start,this.group.add(i))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(e,t,i){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=t.getVisual("color");a&&e.setStyle("stroke",a),e.setStyle("fill"),i||(e.seriesIndex=n.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>0&&(e.dataIndex=i+e.__startIndex)})))},u._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var c=l;e.exports=c},a4b1:function(e,t,i){var n=i("3eba");i("00ba"),i("4d62");var a=i("98e7"),r=i("24b9"),o=i("d3f4");n.registerVisual(a("funnel")),n.registerLayout(r),n.registerProcessor(o("funnel"))},a4fe:function(e,t,i){var n=i("3eba"),a="\0_ec_interaction_mutex";function r(e,t,i){var n=l(e);n[t]=i}function o(e,t,i){var n=l(e),a=n[t];a===i&&(n[t]=null)}function s(e,t){return!!l(e)[t]}function l(e){return e[a]||(e[a]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),t.take=r,t.release=o,t.isTaken=s},a630:function(e,t,i){var n=i("23e7"),a=i("4df4"),r=i("1c7e"),o=!r((function(e){Array.from(e)}));n({target:"Array",stat:!0,forced:o},{from:a})},a666:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("0c41"),s="__seriesMapHighDown",l="__seriesMapCallKey",u=n.extendChartView({type:"map",render:function(e,t,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===e.id){r=this._mapDraw;r&&a.add(r.group)}else if(e.needsDrawMap){var r=this._mapDraw||new o(i,!0);a.add(r.group),r.draw(e,t,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,i){var n=e.originalData,o=this.group;n.each(n.mapDimension("value"),(function(t,i){if(!isNaN(t)){var u=n.getItemLayout(i);if(u&&u.point){var d=u.point,f=u.offset,p=new r.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:d[0]+9*f,cy:d[1],r:3},silent:!0,z2:8+(f?0:r.Z2_EMPHASIS_LIFT+1)});if(!f){var g=e.mainSeries.getData(),m=n.getName(i),v=g.indexOfName(m),y=n.getItemModel(i),x=y.getModel("label"),_=y.getModel("emphasis.label"),b=g.getItemGraphicEl(v),w=a.retrieve2(e.getFormattedLabel(v,"normal"),m),S=a.retrieve2(e.getFormattedLabel(v,"emphasis"),w),M=b[s],I=Math.random();if(!M){M=b[s]={};var A=a.curry(c,!0),T=a.curry(c,!1);b.on("mouseover",A).on("mouseout",T).on("emphasis",A).on("normal",T)}b[l]=I,a.extend(M,{recordVersion:I,circle:p,labelModel:x,hoverLabelModel:_,emphasisText:S,normalText:w}),h(M,!1)}o.add(p)}}}))}});function c(e){var t=this[s];t&&t.recordVersion===this[l]&&h(t,e)}function h(e,t){var i=e.circle,n=e.labelModel,a=e.hoverLabelModel,o=e.emphasisText,s=e.normalText;t?(i.style.extendFrom(r.setTextStyle({},a,{text:a.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=r.Z2_EMPHASIS_LIFT):(r.setTextStyle(i.style,n,{text:n.get("show")?s:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}e.exports=u},a73c:function(e,t,i){var n=i("6d8b"),a=n.retrieve2,r=n.retrieve3,o=n.each,s=n.normalizeCssArray,l=n.isString,u=n.isObject,c=i("e86a"),h=i("5693"),d=i("5e76"),f=i("7d6d"),p=i("82eb"),g=p.ContextCachedBy,m=p.WILL_BE_RESTORED,v=c.DEFAULT_FONT,y={left:1,right:1,center:1},x={top:1,bottom:1,middle:1},_=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],b={},w={};function S(e){return M(e),o(e.rich,M),e}function M(e){if(e){e.font=c.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||y[t]?t:"left";var i=e.textVerticalAlign||e.textBaseline;"center"===i&&(i="middle"),e.textVerticalAlign=null==i||x[i]?i:"top";var n=e.textPadding;n&&(e.textPadding=s(e.textPadding))}}function I(e,t,i,n,a,r){n.rich?T(e,t,i,n,a,r):A(e,t,i,n,a,r)}function A(e,t,i,n,a,r){"use strict";var o,s=P(n),l=!1,u=t.__attrCachedBy===g.PLAIN_TEXT;r!==m?(r&&(o=r.style,l=!s&&u&&o),t.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(t.__attrCachedBy=g.NONE);var h=n.font||v;l&&h===(o.font||v)||(t.font=h);var d=e.__computedFont;e.__styleFont!==h&&(e.__styleFont=h,d=e.__computedFont=t.font);var p=n.textPadding,y=n.textLineHeight,x=e.__textCotentBlock;x&&!e.__dirtyText||(x=e.__textCotentBlock=c.parsePlainText(i,d,p,y,n.truncate));var b=x.outerHeight,S=x.lines,M=x.lineHeight,I=R(w,e,n,a),A=I.baseX,T=I.baseY,C=I.textAlign||"left",L=I.textVerticalAlign;D(t,n,a,A,T);var O=c.adjustTextY(T,b,L),E=A,B=O;if(s||p){var G=c.getWidth(i,d),F=G;p&&(F+=p[1]+p[3]);var H=c.adjustTextX(A,F,C);s&&k(e,t,n,H,O,F,b),p&&(E=V(A,C,p),B+=p[0])}t.textAlign=C,t.textBaseline="middle",t.globalAlpha=n.opacity||1;for(var W=0;W<_.length;W++){var U=_[W],Z=U[0],Y=U[1],j=n[Z];l&&j===o[Z]||(t[Y]=f(t,Y,j||U[2]))}B+=M/2;var X=n.textStrokeWidth,q=l?o.textStrokeWidth:null,K=!l||X!==q,$=!l||K||n.textStroke!==o.textStroke,J=N(n.textStroke,X),Q=z(n.textFill);if(J&&(K&&(t.lineWidth=X),$&&(t.strokeStyle=J)),Q&&(l&&n.textFill===o.textFill||(t.fillStyle=Q)),1===S.length)J&&t.strokeText(S[0],E,B),Q&&t.fillText(S[0],E,B);else for(W=0;W=0&&(b=M[N],"right"===b.textAlign))L(e,t,b,n,A,y,E,"right"),T-=b.width,E-=b.width,N--;O+=(r-(O-v)-(x-E)-T)/2;while(C<=N)b=M[C],L(e,t,b,n,A,y,O+b.width/2,"center"),O+=b.width,C++;y+=A}}function D(e,t,i,n,a){if(i&&t.textRotation){var r=t.textOrigin;"center"===r?(n=i.width/2+i.x,a=i.height/2+i.y):r&&(n=r[0]+i.x,a=r[1]+i.y),e.translate(n,a),e.rotate(-t.textRotation),e.translate(-n,-a)}}function L(e,t,i,n,o,s,l,u){var c=n.rich[i.styleName]||{};c.text=i.text;var h=i.textVerticalAlign,d=s+o/2;"top"===h?d=s+i.height/2:"bottom"===h&&(d=s+o-i.height/2),!i.isLineHolder&&P(c)&&k(e,t,c,"right"===u?l-i.width:"center"===u?l-i.width/2:l,d-i.height/2,i.width,i.height);var f=i.textPadding;f&&(l=V(l,u,f),d-=i.height/2-f[2]-i.textHeight/2),E(t,"shadowBlur",r(c.textShadowBlur,n.textShadowBlur,0)),E(t,"shadowColor",c.textShadowColor||n.textShadowColor||"transparent"),E(t,"shadowOffsetX",r(c.textShadowOffsetX,n.textShadowOffsetX,0)),E(t,"shadowOffsetY",r(c.textShadowOffsetY,n.textShadowOffsetY,0)),E(t,"textAlign",u),E(t,"textBaseline","middle"),E(t,"font",i.font||v);var p=N(c.textStroke||n.textStroke,m),g=z(c.textFill||n.textFill),m=a(c.textStrokeWidth,n.textStrokeWidth);p&&(E(t,"lineWidth",m),E(t,"strokeStyle",p),t.strokeText(i.text,l,d)),g&&(E(t,"fillStyle",g),t.fillText(i.text,l,d))}function P(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function k(e,t,i,n,a,r,o){var s=i.textBackgroundColor,c=i.textBorderWidth,f=i.textBorderColor,p=l(s);if(E(t,"shadowBlur",i.textBoxShadowBlur||0),E(t,"shadowColor",i.textBoxShadowColor||"transparent"),E(t,"shadowOffsetX",i.textBoxShadowOffsetX||0),E(t,"shadowOffsetY",i.textBoxShadowOffsetY||0),p||c&&f){t.beginPath();var g=i.textBorderRadius;g?h.buildPath(t,{x:n,y:a,width:r,height:o,r:g}):t.rect(n,a,r,o),t.closePath()}if(p)if(E(t,"fillStyle",s),null!=i.fillOpacity){var m=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,t.fill(),t.globalAlpha=m}else t.fill();else if(u(s)){var v=s.image;v=d.createOrUpdateImage(v,null,e,O,s),v&&d.isImageReady(v)&&t.drawImage(v,n,a,r,o)}if(c&&f)if(E(t,"lineWidth",c),E(t,"strokeStyle",f),null!=i.strokeOpacity){m=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,t.stroke(),t.globalAlpha=m}else t.stroke()}function O(e,t){t.image=e}function R(e,t,i,n){var a=i.x||0,r=i.y||0,o=i.textAlign,s=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)a=n.x+B(l[0],n.width),r=n.y+B(l[1],n.height);else{var u=t&&t.calculateTextPosition?t.calculateTextPosition(b,i,n):c.calculateTextPosition(b,i,n);a=u.x,r=u.y,o=o||u.textAlign,s=s||u.textVerticalAlign}var h=i.textOffset;h&&(a+=h[0],r+=h[1])}return e=e||{},e.baseX=a,e.baseY=r,e.textAlign=o,e.textVerticalAlign=s,e}function E(e,t,i){return e[t]=f(e,t,i),e[t]}function N(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function z(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function B(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function V(e,t,i){return"right"===t?e-i[1]:"center"===t?e+i[3]/2-i[1]/2:e+i[3]}function G(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}t.normalizeTextStyle=S,t.renderText=I,t.getBoxPosition=R,t.getStroke=N,t.getFill=z,t.parsePercent=B,t.needDrawText=G},a7531:function(e,t,i){var n=i("1f0e"),a=i("2306"),r=i("e887"),o=i("3842"),s=o.parsePercent,l=o.round,u=o.linearMap;function c(e,t){var i=e.get("center"),n=t.getWidth(),a=t.getHeight(),r=Math.min(n,a),o=s(i[0],t.getWidth()),l=s(i[1],t.getHeight()),u=s(e.get("radius"),r/2);return{cx:o,cy:l,r:u}}function h(e,t){return t&&("string"===typeof t?e=t.replace("{value}",null!=e?e:""):"function"===typeof t&&(e=t(e))),e}var d=2*Math.PI,f=r.extend({type:"gauge",render:function(e,t,i){this.group.removeAll();var n=e.get("axisLine.lineStyle.color"),a=c(e,i);this._renderMain(e,t,i,n,a)},dispose:function(){},_renderMain:function(e,t,i,n,r){for(var o=this.group,s=e.getModel("axisLine"),l=s.getModel("lineStyle"),u=e.get("clockwise"),c=-e.get("startAngle")/180*Math.PI,h=-e.get("endAngle")/180*Math.PI,f=(h-c)%d,p=c,g=l.get("width"),m=s.get("show"),v=0;m&&v=e&&(0===t?0:n[t-1][0]).4?"bottom":"middle",textAlign:P<-.4?"left":P>.4?"right":"center"},{autoColor:N}),silent:!0}))}if(x.get("show")&&L!==b){for(var z=0;z<=w;z++){P=Math.cos(I),k=Math.sin(I);var B=new a.Line({shape:{x1:P*g+f,y1:k*g+p,x2:P*(g-M)+f,y2:k*(g-M)+p},silent:!0,style:D});"auto"===D.stroke&&B.setStyle({stroke:n((L+z/w)/b)}),d.add(B),I+=T}I-=T}else I+=A}},_renderPointer:function(e,t,i,r,o,l,c,h){var d=this.group,f=this._data;if(e.get("pointer.show")){var p=[+e.get("min"),+e.get("max")],g=[l,c],m=e.getData(),v=m.mapDimension("value");m.diff(f).add((function(t){var i=new n({shape:{angle:l}});a.initProps(i,{shape:{angle:u(m.get(v,t),p,g,!0)}},e),d.add(i),m.setItemGraphicEl(t,i)})).update((function(t,i){var n=f.getItemGraphicEl(i);a.updateProps(n,{shape:{angle:u(m.get(v,t),p,g,!0)}},e),d.add(n),m.setItemGraphicEl(t,n)})).remove((function(e){var t=f.getItemGraphicEl(e);d.remove(t)})).execute(),m.eachItemGraphicEl((function(e,t){var i=m.getItemModel(t),n=i.getModel("pointer");e.setShape({x:o.cx,y:o.cy,width:s(n.get("width"),o.r),r:s(n.get("length"),o.r)}),e.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",r(u(m.get(v,t),p,[0,1],!0))),a.setHoverStyle(e,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=m}else f&&f.eachItemGraphicEl((function(e){d.remove(e)}))},_renderTitle:function(e,t,i,n,r){var o=e.getData(),l=o.mapDimension("value"),c=e.getModel("title");if(c.get("show")){var h=c.get("offsetCenter"),d=r.cx+s(h[0],r.r),f=r.cy+s(h[1],r.r),p=+e.get("min"),g=+e.get("max"),m=e.getData().get(l,0),v=n(u(m,[p,g],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},c,{x:d,y:f,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(e,t,i,n,r){var o=e.getModel("detail"),l=+e.get("min"),c=+e.get("max");if(o.get("show")){var d=o.get("offsetCenter"),f=r.cx+s(d[0],r.r),p=r.cy+s(d[1],r.r),g=s(o.get("width"),r.r),m=s(o.get("height"),r.r),v=e.getData(),y=v.get(v.mapDimension("value"),0),x=n(u(y,[l,c],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},o,{x:f,y:p,text:h(y,o.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:x,forceRich:!0})}))}}}),p=f;e.exports=p},a7e2:function(e,t,i){var n=i("3eba");i("7293"),i("ae46");var a=i("6582"),r=i("ee98");n.registerLayout(a),n.registerVisual(r)},a7f2:function(e,t){var i=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function n(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:i[0]})}e.exports=n},a87d:function(e,t,i){var n=i("22d1"),a=i("401b"),r=a.applyTransform,o=i("9850"),s=i("41ef"),l=i("e86a"),u=i("a73c"),c=i("9e2e"),h=i("19eb"),d=i("0da8"),f=i("76a5"),p=i("cbe5"),g=i("20c8"),m=i("42e5"),v=i("d3a4"),y=g.CMD,x=Math.round,_=Math.sqrt,b=Math.abs,w=Math.cos,S=Math.sin,M=Math.max;if(!n.canvasSupported){var I=",",A="progid:DXImageTransform.Microsoft",T=21600,C=T/2,D=1e5,L=1e3,P=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=T+","+T,e.coordorigin="0,0"},k=function(e){return String(e).replace(/&/g,"&").replace(/"/g,""")},O=function(e,t,i){return"rgb("+[e,t,i].join(",")+")"},R=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},E=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},N=function(e,t,i){return(parseFloat(e)||0)*D+(parseFloat(t)||0)*L+i},z=u.parsePercent,B=function(e,t,i){var n=s.parse(t);i=+i,isNaN(i)&&(i=1),n&&(e.color=O(n[0],n[1],n[2]),e.opacity=i*n[3])},V=function(e){var t=s.parse(e);return[O(t[0],t[1],t[2]),t[3]]},G=function(e,t,i){var n=t.fill;if(null!=n)if(n instanceof m){var a,o=0,s=[0,0],l=0,u=1,c=i.getBoundingRect(),h=c.width,d=c.height;if("linear"===n.type){a="gradient";var f=i.transform,p=[n.x*h,n.y*d],g=[n.x2*h,n.y2*d];f&&(r(p,p,f),r(g,g,f));var v=g[0]-p[0],y=g[1]-p[1];o=180*Math.atan2(v,y)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{a="gradientradial";p=[n.x*h,n.y*d],f=i.transform;var x=i.scale,_=h,b=d;s=[(p[0]-c.x)/_,(p[1]-c.y)/b],f&&r(p,p,f),_/=x[0]*T,b/=x[1]*T;var w=M(_,b);l=0/w,u=2*n.r/w-l}var S=n.colorStops.slice();S.sort((function(e,t){return e.offset-t.offset}));for(var I=S.length,A=[],C=[],D=0;D=2){var k=A[0][0],O=A[1][0],R=A[0][1]*t.opacity,E=A[1][1]*t.opacity;e.type=a,e.method="none",e.focus="100%",e.angle=o,e.color=k,e.color2=O,e.colors=C.join(","),e.opacity=E,e.opacity2=R}"radial"===a&&(e.focusposition=s.join(","))}else B(e,n,t.opacity)},F=function(e,t){t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof m||B(e,t.stroke,t.opacity)},H=function(e,t,i,n){var a="fill"===t,r=e.getElementsByTagName(t)[0];null!=i[t]&&"none"!==i[t]&&(a||!a&&i.lineWidth)?(e[a?"filled":"stroked"]="true",i[t]instanceof m&&E(e,r),r||(r=v.createNode(t)),a?G(r,i,n):F(r,i),R(e,r)):(e[a?"filled":"stroked"]="false",E(e,r))},W=[[],[],[]],U=function(e,t){var i,n,a,o,s,l,u=y.M,c=y.C,h=y.L,d=y.A,f=y.Q,p=[],g=e.data,m=e.len();for(o=0;o.01?H&&(U+=270/T):Math.abs(Z-z)<1e-4?H&&UN?A-=270/T:A+=270/T:H&&Zz?M+=270/T:M-=270/T),p.push(Y,x(((N-B)*O+P)*T-C),I,x(((z-V)*R+k)*T-C),I,x(((N+B)*O+P)*T-C),I,x(((z+V)*R+k)*T-C),I,x((U*O+P)*T-C),I,x((Z*R+k)*T-C),I,x((M*O+P)*T-C),I,x((A*R+k)*T-C)),s=M,l=A;break;case y.R:var j=W[0],X=W[1];j[0]=g[o++],j[1]=g[o++],X[0]=j[0]+g[o++],X[1]=j[1]+g[o++],t&&(r(j,j,t),r(X,X,t)),j[0]=x(j[0]*T-C),X[0]=x(X[0]*T-C),j[1]=x(j[1]*T-C),X[1]=x(X[1]*T-C),p.push(" m ",j[0],I,j[1]," l ",X[0],I,j[1]," l ",X[0],I,X[1]," l ",j[0],I,X[1]);break;case y.Z:p.push(" x ")}if(i>0){p.push(n);for(var q=0;qK&&(q=0,X={});var i,n=$.style;try{n.font=e,i=n.fontFamily.split(",")[0]}catch(a){}t={style:n.fontStyle||j,variant:n.fontVariant||j,weight:n.fontWeight||j,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},X[e]=t,q++}return t};l.$override("measureText",(function(e,t){var i=v.doc;Y||(Y=i.createElement("div"),Y.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(Y));try{Y.style.font=t}catch(n){}return Y.innerHTML="",Y.appendChild(i.createTextNode(e)),{width:Y.offsetWidth}}));for(var Q=new o,ee=function(e,t,i,n){var a=this.style;this.__dirty&&u.normalizeTextStyle(a,!0);var o=a.text;if(null!=o&&(o+=""),o){if(a.rich){var s=l.parseRichText(o,a);o=[];for(var c=0;cf?f=g:(p.lastTickCount=r,p.lastAutoInterval=f),f}},n.inherits(u,r);var c=u;e.exports=c},aa01:function(e,t,i){var n=i("6d8b"),a=i("4f85"),r=i("06c7"),o=i("4319"),s=i("55ac"),l=s.wrapTreePathInfo,u=a.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var i={name:e.name,children:e.data};c(i);var a=n.map(e.levels||[],(function(e){return new o(e,this,t)}),this),s=r.createTree(i,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var i=s.getNodeByDataIndex(t),n=a[i.depth];return n&&(e.parentModel=n),e}))}return s.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=l(i,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function c(e){var t=0;n.each(e.children,(function(e){c(e);var i=e.value;n.isArray(i)&&(i=i[0]),t+=i}));var i=e.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=t),i<0&&(i=0),n.isArray(e.value)?e.value[0]=i:e.value=i}e.exports=u},aa3e:function(e,t,i){var n=i("6d8b");function a(e,t){return t=t||[0,0],n.map(["x","y"],(function(i,n){var a=this.getAxis(i),r=t[n],o=e[n]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(r-o)-a.dataToCoord(r+o))}),this)}function r(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(a,e)}}}e.exports=r},aadf:function(e,t,i){var n=i("3eba"),a=i("6d8b");i("5aa9"),i("d6d9"),i("3329");var r=i("9d57"),o=r.layout,s=i("7f96");i("01ed"),n.registerLayout(a.curry(o,"pictorialBar")),n.registerVisual(s("pictorialBar","roundRect"))},ab05:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2b8c"),o=i("5f14"),s=n.PRIORITY.VISUAL.COMPONENT;function l(e,t,i,n){for(var a=t.targetVisuals[n],r=o.prepareVisualTypes(a),s={color:e.getData().getVisual("color")},l=0,u=r.length;l