(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4a3f","chunk-e4a7"],{"/rDb":function(e,t,a){},"0DEJ":function(e,t,a){},"16mM":function(e,t,a){"use strict";var i=a("MTDE");a.n(i).a},"1BXT":function(e,t,a){"use strict";var i=a("lxq7");a.n(i).a},"1C1b":function(e,t,a){"use strict";var i=a("/rDb");a.n(i).a},"1JnI":function(e,t,a){"use strict";var i=a("P2sY"),o=a.n(i),n={name:"WidgetBarlinechart",components:{},props:{value:Object,ispreview:Boolean},data:function(){return{options:{color:[],grid:{},title:{text:"",textStyle:{color:"#fff"}},tooltip:{trigger:"item",formatter:"{a}
{b} : {c}%"},legend:{textStyle:{color:"#fff"}},xAxis:[{type:"category",data:[],axisLabel:{show:!1,textStyle:{color:"#fff"}}}],yAxis:[{type:"value",name:"",min:0,max:250,interval:50,axisLabel:{show:!0,textStyle:{color:"#fff"}}},{type:"value",name:"",min:0,max:25,interval:5,axisLabel:{show:!0,textStyle:{color:"#fff"}}}],series:[{name:"",type:"bar",yAxisIndex:0,data:[],itemStyle:{barBorderRadius:null}},{name:"",type:"line",yAxisIndex:1,data:[],itemStyle:{}}]},optionsStyle:{},optionsData:{},optionsCollapse:{},optionsSetup:{}}},computed:{styleObj:function(){return{position:this.ispreview?"absolute":"static",width:this.optionsStyle.width+"px",height:this.optionsStyle.height+"px",left:this.optionsStyle.left+"px",top:this.optionsStyle.top+"px",background:this.optionsSetup.background}}},watch:{value:{handler:function(e){this.optionsStyle=e.position,this.optionsData=e.data,this.optionsCollapse=e.collapse,this.optionsSetup=e.setup,this.editorOptions()},deep:!0}},created:function(){this.optionsStyle=this.value.position,this.optionsData=this.value.data,this.optionsCollapse=this.value.collapse,this.optionsSetup=this.value.setup,this.editorOptions()},methods:{editorOptions:function(){this.setOptionsTitle(),this.setOptionsX(),this.setOptionsY(),this.setOptionsLine(),this.setOptionsBar(),this.setOptionsTooltip(),this.setOptionsData(),this.setOptionsMargin(),this.setOptionsLegend(),this.setOptionsColor()},setOptionsTitle:function(){var e=this.optionsSetup,t={};t.text=e.titleText,t.show=e.isNoTitle,t.left=e.textAlign,t.textStyle={color:e.textColor,fontSize:e.textFontSize,fontWeight:e.textFontWeight},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize},this.options.title=t},setOptionsX:function(){var e=this.optionsSetup,t={type:"category",show:e.hideX,name:e.xName,nameTextStyle:{color:e.nameColorX,fontSize:e.nameFontSizeX},nameRotate:e.textAngle,inverse:e.reversalX,axisLabel:{show:!0,interval:e.textInterval,rotate:e.textAngle,textStyle:{color:e.Xcolor,fontSize:e.fontSizeX}},axisLine:{show:!0,lineStyle:{color:e.lineColorX}},splitLine:{show:e.isShowSplitLineX,lineStyle:{color:e.splitLineColorX}}};this.options.xAxis=t},setOptionsY:function(){var e=this.optionsSetup,t=[{type:"value",splitNumber:e.splitNumberLeft,show:e.isShowYLeft,name:e.textNameYLeft,nameTextStyle:{color:e.nameColorYLeft,fontSize:e.namefontSizeYLeft},inverse:e.reversalY,axisLabel:{show:!0,textStyle:{color:e.colorY,fontSize:e.fontSizeY}},axisLine:{show:!0,lineStyle:{color:e.lineColorY}},splitLine:{show:!1}},{type:"value",splitNumber:e.splitNumberRight,show:e.isShowYRight,name:e.textNameYRight,nameTextStyle:{color:e.nameColorYRight,fontSize:e.namefontSizeYRight},inverse:e.reversalY,axisLabel:{show:!0,textStyle:{color:e.colorY,fontSize:e.fontSizeY}},axisLine:{show:!0,lineStyle:{color:e.lineColorY}},splitLine:{show:!1}}];this.options.yAxis=t},setOptionsLine:function(){var e=this.optionsSetup,t=this.options.series;for(var a in t)"line"==t[a].type&&(t[a].showSymbol=e.markPoint,t[a].symbolSize=e.pointSize,t[a].smooth=e.smoothCurve,e.area?t[a].areaStyle={opacity:e.areaThickness/100}:t[a].areaStyle={opacity:0},t[a].lineStyle={width:e.lineWidth},t[a].itemStyle.borderRadius=e.radius,t[a].label={show:e.isShowLine,position:"top",distance:e.distanceLine,fontSize:e.fontSizeLine,color:e.subTextColorLine,fontWeight:e.fontWeightLine});this.options.series=t},setOptionsBar:function(){var e=this.optionsSetup,t=this.options.series;for(var a in t)"bar"==t[a].type&&(t[a].label={show:e.isShowBar,position:"top",distance:e.distanceBar,fontSize:e.fontSizeBar,color:e.subTextColorBar,fontWeight:e.fontWeightBar},t[a].barWidth=e.maxWidth,t[a].barMinHeight=e.minHeight,t[a].itemStyle.barBorderRadius=e.radius);this.options.series=t},setOptionsTooltip:function(){var e=this.optionsSetup,t={trigger:"item",show:!0,textStyle:{color:e.lineColor,fontSize:e.tipFontSize}};this.options.tooltip=t},setOptionsMargin:function(){var e=this.optionsSetup,t={left:e.marginLeft,right:e.marginRight,bottom:e.marginBottom,top:e.marginTop,containLabel:!0};this.options.grid=t},setOptionsLegend:function(){var e=this.optionsSetup,t=this.options.legend;t.show=e.isShowLegend,t.left=e.lateralPosition,t.top=e.longitudinalPosition,t.bottom=e.longitudinalPosition,t.orient=e.layoutFront,t.textStyle={color:e.lengedColor,fontSize:e.lengedFontSize},t.itemWidth=e.lengedWidth},setOptionsLegendName:function(e){var t=this.optionsSetup,a=this.options.series,i=t.legendName;if(null==i||""==i){for(var o=0;o-1?this.formatWeek(new Date,this.transStyle.timeFormat):this.formatFunction(new Date,this.transStyle.timeFormat)},getTime:function(){var e=this;setInterval(function(){e.displayTime()},1e3)}}},o=(a("4RMZ"),a("KHd+")),n=Object(o.a)(i,function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"text",style:this.styleColor},[this._v(this._s(this.timestr))])},[],!1,null,"6445816c",null);n.options.__file="widgetTime.vue";t.a=n.exports},"987z":function(e,t,a){e.exports=function(e){return function(e){function t(i){if(a[i])return a[i].exports;var o=a[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,i){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=25)}([function(e,t){function a(e){if(null==e||"object"!=typeof e)return e;var t=e,i=f.call(e);if("[object Array]"===i){t=[];for(var o=0,n=e.length;o1e-10&&(o.width+=n/r,o.height+=n/r,o.x-=n/r/2,o.y-=n/r/2)}return o}return e},contain:function(e,t){var a=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),o=this.style;if(e=a[0],t=a[1],i.contain(e,t)){var n=this.path.data;if(o.hasStroke()){var l=o.lineWidth,s=o.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(o.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),r.containStroke(n,l/s,e,t)))return!0}if(o.hasFill())return r.contain(n,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):o.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var a=this.shape;if(a){if(n.isObject(e))for(var i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);else a[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&c(e[0]-1)>1e-10&&c(e[3]-1)>1e-10?Math.sqrt(c(e[0]*e[3]-e[2]*e[1])):1}},i.extend=function(e){var t=function(t){i.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var a=e.shape;if(a){this.shape=this.shape||{};var o=this.shape;for(var n in a)!o.hasOwnProperty(n)&&a.hasOwnProperty(n)&&(o[n]=a[n])}e.init&&e.init.call(this,t)};for(var a in n.inherits(t,i),e)"style"!==a&&"shape"!==a&&(t.prototype[a]=e[a]);return t},n.inherits(i,o);var p=i;e.exports=p},function(e,t){function a(e){return Math.sqrt(i(e))}function i(e){return e[0]*e[0]+e[1]*e[1]}function o(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function n(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var l="undefined"==typeof Float32Array?Array:Float32Array,r=a,s=i,u=o,c=n;t.create=function(e,t){var a=new l(2);return null==e&&(e=0),null==t&&(t=0),a[0]=e,a[1]=t,a},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e},t.clone=function(e){var t=new l(2);return t[0]=e[0],t[1]=e[1],t},t.set=function(e,t,a){return e[0]=t,e[1]=a,e},t.add=function(e,t,a){return e[0]=t[0]+a[0],e[1]=t[1]+a[1],e},t.scaleAndAdd=function(e,t,a,i){return e[0]=t[0]+a[0]*i,e[1]=t[1]+a[1]*i,e},t.sub=function(e,t,a){return e[0]=t[0]-a[0],e[1]=t[1]-a[1],e},t.len=a,t.length=r,t.lenSquare=i,t.lengthSquare=s,t.mul=function(e,t,a){return e[0]=t[0]*a[0],e[1]=t[1]*a[1],e},t.div=function(e,t,a){return e[0]=t[0]/a[0],e[1]=t[1]/a[1],e},t.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},t.scale=function(e,t,a){return e[0]=t[0]*a,e[1]=t[1]*a,e},t.normalize=function(e,t){var i=a(t);return 0===i?(e[0]=0,e[1]=0):(e[0]=t[0]/i,e[1]=t[1]/i),e},t.distance=o,t.dist=u,t.distanceSquare=n,t.distSquare=c,t.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},t.lerp=function(e,t,a,i){return e[0]=t[0]+i*(a[0]-t[0]),e[1]=t[1]+i*(a[1]-t[1]),e},t.applyTransform=function(e,t,a){var i=t[0],o=t[1];return e[0]=a[0]*i+a[2]*o+a[4],e[1]=a[1]*i+a[3]*o+a[5],e},t.min=function(e,t,a){return e[0]=Math.min(t[0],a[0]),e[1]=Math.min(t[1],a[1]),e},t.max=function(e,t,a){return e[0]=Math.max(t[0],a[0]),e[1]=Math.max(t[1],a[1]),e}},function(e,t,a){function i(e,t,a,i){a<0&&(e+=a,a=-a),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=a,this.height=i}var o=a(2),n=a(8),l=o.applyTransform,r=Math.min,s=Math.max;i.prototype={constructor:i,union:function(e){var t=r(e.x,this.x),a=r(e.y,this.y);this.width=s(e.x+e.width,this.x+this.width)-t,this.height=s(e.y+e.height,this.y+this.height)-a,this.x=t,this.y=a},applyTransform:function(){var e=[],t=[],a=[],i=[];return function(o){if(o){e[0]=a[0]=this.x,e[1]=i[1]=this.y,t[0]=i[0]=this.x+this.width,t[1]=a[1]=this.y+this.height,l(e,e,o),l(t,t,o),l(a,a,o),l(i,i,o),this.x=r(e[0],t[0],a[0],i[0]),this.y=r(e[1],t[1],a[1],i[1]);var n=s(e[0],t[0],a[0],i[0]),u=s(e[1],t[1],a[1],i[1]);this.width=n-this.x,this.height=u-this.y}}}(),calculateTransform:function(e){var t=this,a=e.width/t.width,i=e.height/t.height,o=n.create();return n.translate(o,o,[-t.x,-t.y]),n.scale(o,o,[a,i]),n.translate(o,o,[e.x,e.y]),o},intersect:function(e){if(!e)return!1;e instanceof i||(e=i.create(e));var t=this,a=t.x,o=t.x+t.width,n=t.y,l=t.y+t.height,r=e.x,s=e.x+e.width,u=e.y,c=e.y+e.height;return!(o=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},clone:function(){return new i(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},i.create=function(e){return new i(e.x,e.y,e.width,e.height)};var u=i;e.exports=u},function(e,t,a){function i(e){return e>-p&&ep||e<-p}function n(e,t,a,i,o){var n=1-o;return n*n*(n*e+3*o*t)+o*o*(o*i+3*n*a)}function l(e,t,a,i){var o=1-i;return o*(o*e+2*i*t)+i*i*a}var r=a(2),s=r.create,u=r.distSquare,c=Math.pow,h=Math.sqrt,p=1e-8,d=1e-4,m=h(3),f=1/3,v=s(),y=s(),g=s();t.cubicAt=n,t.cubicDerivativeAt=function(e,t,a,i,o){var n=1-o;return 3*(((t-e)*n+2*(a-t)*o)*n+(i-a)*o*o)},t.cubicRootAt=function(e,t,a,o,n,l){var r=o+3*(t-a)-e,s=3*(a-2*t+e),u=3*(t-e),p=e-n,d=s*s-3*r*u,v=s*u-9*r*p,y=u*u-3*s*p,g=0;if(i(d)&&i(v))if(i(s))l[0]=0;else{var b=-u/s;b>=0&&b<=1&&(l[g++]=b)}else{var x=v*v-4*d*y;if(i(x)){var S=v/d,b=-s/r+S,w=-S/2;b>=0&&b<=1&&(l[g++]=b),w>=0&&w<=1&&(l[g++]=w)}else if(x>0){var q=h(x),C=d*s+1.5*r*(-v+q),D=d*s+1.5*r*(-v-q);C=C<0?-c(-C,f):c(C,f),D=D<0?-c(-D,f):c(D,f);var b=(-s-(C+D))/(3*r);b>=0&&b<=1&&(l[g++]=b)}else{var T=(2*d*s-3*r*v)/(2*h(d*d*d)),O=Math.acos(T)/3,_=h(d),k=Math.cos(O),b=(-s-2*_*k)/(3*r),w=(-s+_*(k+m*Math.sin(O)))/(3*r),z=(-s+_*(k-m*Math.sin(O)))/(3*r);b>=0&&b<=1&&(l[g++]=b),w>=0&&w<=1&&(l[g++]=w),z>=0&&z<=1&&(l[g++]=z)}}return g},t.cubicExtrema=function(e,t,a,n,l){var r=6*a-12*t+6*e,s=9*t+3*n-3*e-9*a,u=3*t-3*e,c=0;if(i(s)){if(o(r)){var p=-u/r;p>=0&&p<=1&&(l[c++]=p)}}else{var d=r*r-4*s*u;if(i(d))l[0]=-r/(2*s);else if(d>0){var m=h(d),p=(-r+m)/(2*s),f=(-r-m)/(2*s);p>=0&&p<=1&&(l[c++]=p),f>=0&&f<=1&&(l[c++]=f)}}return c},t.cubicSubdivide=function(e,t,a,i,o,n){var l=(t-e)*o+e,r=(a-t)*o+t,s=(i-a)*o+a,u=(r-l)*o+l,c=(s-r)*o+r,h=(c-u)*o+u;n[0]=e,n[1]=l,n[2]=u,n[3]=h,n[4]=h,n[5]=c,n[6]=s,n[7]=i},t.cubicProjectPoint=function(e,t,a,i,o,l,r,s,c,p,m){var f,b,x,S,w,q=.005,C=1/0;v[0]=c,v[1]=p;for(var D=0;D<1;D+=.05)y[0]=n(e,a,o,r,D),y[1]=n(t,i,l,s,D),(S=u(v,y))=0&&S=0&&p<=1&&(l[c++]=p)}}else{var d=s*s-4*r*u;if(i(d)){var p=-s/(2*r);p>=0&&p<=1&&(l[c++]=p)}else if(d>0){var m=h(d),p=(-s+m)/(2*r),f=(-s-m)/(2*r);p>=0&&p<=1&&(l[c++]=p),f>=0&&f<=1&&(l[c++]=f)}}return c},t.quadraticExtremum=function(e,t,a){var i=e+a-2*t;return 0===i?.5:(e-t)/i},t.quadraticSubdivide=function(e,t,a,i,o){var n=(t-e)*i+e,l=(a-t)*i+t,r=(l-n)*i+n;o[0]=e,o[1]=n,o[2]=r,o[3]=r,o[4]=l,o[5]=a},t.quadraticProjectPoint=function(e,t,a,i,o,n,r,s,c){var p,m=.005,f=1/0;v[0]=r,v[1]=s;for(var b=0;b<1;b+=.05){y[0]=l(e,a,o,b),y[1]=l(t,i,n,b);var x=u(v,y);x=0&&xT&&(D=0,C={}),D++,C[a]=o,o}function o(e,t,a,o,n,s){var u=m(e,t,n,s),c=i(e,t);n&&(c+=n[1]+n[3]);var h=u.outerHeight,p=l(0,c,a),d=r(0,h,o),f=new y(p,d,c,h);return f.lineHeight=u.lineHeight,f}function n(e,t,a,i,o,n,s){var u=f(e,{rich:n,truncate:s,font:t,textAlign:a,textPadding:o}),c=u.outerWidth,h=u.outerHeight,p=l(0,c,a),d=r(0,h,i);return new y(p,d,c,h)}function l(e,t,a){return"right"===a?e-=t:"center"===a&&(e-=t/2),e}function r(e,t,a){return"middle"===a?e-=t/2:"bottom"===a&&(e-=t),e}function s(e,t,a,i,o){if(!t)return"";var n=(e+"").split("\n");o=u(t,a,i,o);for(var l=0,r=n.length;l=l;s++)r-=l;var u=i(a);return u>r&&(a="",u=0),r=e-u,o.ellipsis=a,o.ellipsisWidth=u,o.contentWidth=r,o.containerWidth=e,o}function c(e,t){var a=t.containerWidth,o=t.font,n=t.contentWidth;if(!a)return"";var l=i(e,o);if(l<=a)return e;for(var r=0;;r++){if(l<=n||r>=t.maxIterations){e+=t.ellipsis;break}var s=0===r?h(e,n,t.ascCharWidth,t.cnCharWidth):l>0?Math.floor(e.length*n/l):0;e=e.substr(0,s),l=i(e,o)}return""===e&&(e=t.placeholder),e}function h(e,t,a,i){for(var o=0,n=0,l=e.length;ns)e="",n=[];else if(null!=h)for(var d=u(h-(a?a[1]+a[3]:0),t,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),m=0,f=n.length;mn&&v(a,e.substring(n,l)),v(a,o[2],o[1]),n=O.lastIndex}ny)return{lines:[],width:0,height:0};T.textWidth=i(T.text,z);var F=_.textWidth,A=null==F||"auto"===F;if("string"==typeof F&&"%"===F.charAt(F.length-1))T.percentWidth=F,h.push(T),F=0;else{if(A){F=T.textWidth;var W=_.textBackgroundColor,P=W&&W.image;P&&(P=g.findExistImage(P),g.isImageReady(P)&&(F=Math.max(F,P.width*L/P.height)))}var M=k?k[1]+k[3]:0;F+=M;var I=null!=f?f-C:null;null!=I&&Ithis._ux||b(t-this._yi)>this._uy||this._len<5;return this.addData(u.L,e,t),this._ctx&&a&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),a&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,a,i,o,n){return this.addData(u.C,e,t,a,i,o,n),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,a,i,o,n):this._ctx.bezierCurveTo(e,t,a,i,o,n)),this._xi=o,this._yi=n,this},quadraticCurveTo:function(e,t,a,i){return this.addData(u.Q,e,t,a,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,a,i):this._ctx.quadraticCurveTo(e,t,a,i)),this._xi=a,this._yi=i,this},arc:function(e,t,a,i,o,n){return this.addData(u.A,e,t,a,a,i,o-i,0,n?0:1),this._ctx&&this._ctx.arc(e,t,a,i,o,n),this._xi=v(o)*a+e,this._yi=y(o)*a+e,this},arcTo:function(e,t,a,i,o){return this._ctx&&this._ctx.arcTo(e,t,a,i,o),this},rect:function(e,t,a,i){return this._ctx&&this._ctx.rect(e,t,a,i),this.addData(u.R,e,t,a,i),this},closePath:function(){this.addData(u.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,a),e.closePath()),this._xi=t,this._yi=a,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,a=0;at.length&&(this._expandData(),t=this.data);for(var a=0;a0&&d<=e||c<0&&d>=e||0==c&&(h>0&&v<=t||h<0&&v>=t);)i=this._dashIdx,a=l[i],d+=c*a,v+=h*a,this._dashIdx=(i+1)%y,c>0&&ds||h>0&&vu||r[i%2?"moveTo":"lineTo"](c>=0?m(d,e):f(d,e),h>=0?m(v,t):f(v,t));c=d-e,h=v-t,this._dashOffset=-g(c*c+h*h)},_dashedBezierTo:function(e,t,a,o,n,l){var r,s,u,c,h,p=this._dashSum,d=this._dashOffset,m=this._lineDash,f=this._ctx,v=this._xi,y=this._yi,b=i.cubicAt,x=0,S=this._dashIdx,w=m.length,q=0;for(d<0&&(d=p+d),d%=p,r=0;r<1;r+=.1)s=b(v,e,a,n,r+.1)-b(v,e,a,n,r),u=b(y,t,o,l,r+.1)-b(y,t,o,l,r),x+=g(s*s+u*u);for(;Sd);S++);for(r=(q-d)/x;r<=1;)c=b(v,e,a,n,r),h=b(y,t,o,l,r),S%2?f.moveTo(c,h):f.lineTo(c,h),r+=m[S]/x,S=(S+1)%w;S%2!=0&&f.lineTo(n,l),s=n-c,u=l-h,this._dashOffset=-g(s*s+u*u)},_dashedQuadraticTo:function(e,t,a,i){var o=a,n=i;a=(a+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,a,i,o,n)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,x&&(this.data=new Float32Array(e)))},getBoundingRect:function(){c[0]=c[1]=p[0]=p[1]=Number.MAX_VALUE,h[0]=h[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,a=0,i=0,r=0,s=0;ss||b(l-o)>c||p===h-1)&&(e.lineTo(n,l),i=n,o=l);break;case u.C:e.bezierCurveTo(r[p++],r[p++],r[p++],r[p++],r[p++],r[p++]),i=r[p-2],o=r[p-1];break;case u.Q:e.quadraticCurveTo(r[p++],r[p++],r[p++],r[p++]),i=r[p-2],o=r[p-1];break;case u.A:var m=r[p++],f=r[p++],g=r[p++],x=r[p++],S=r[p++],w=r[p++],q=r[p++],C=r[p++],D=g>x?g:x,T=g>x?1:g/x,O=g>x?x/g:1,_=Math.abs(g-x)>.001,k=S+w;_?(e.translate(m,f),e.rotate(q),e.scale(T,O),e.arc(0,0,D,S,k,1-C),e.scale(1/T,1/O),e.rotate(-q),e.translate(-m,-f)):e.arc(m,f,D,S,k,1-C),1==p&&(t=v(S)*g+m,a=y(S)*x+f),i=v(k)*g+m,o=y(k)*x+f;break;case u.R:t=i=r[p],a=o=r[p+1],e.rect(r[p++],r[p++],r[p++],r[p++]);break;case u.Z:e.closePath(),i=t,o=a}}}},S.CMD=u;var w=S;e.exports=w},function(t,a){t.exports=e},function(e,t){function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}var i="undefined"==typeof Float32Array?Array:Float32Array;t.create=function(){var e=new i(6);return a(e),e},t.identity=a,t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},t.mul=function(e,t,a){var i=t[0]*a[0]+t[2]*a[1],o=t[1]*a[0]+t[3]*a[1],n=t[0]*a[2]+t[2]*a[3],l=t[1]*a[2]+t[3]*a[3],r=t[0]*a[4]+t[2]*a[5]+t[4],s=t[1]*a[4]+t[3]*a[5]+t[5];return e[0]=i,e[1]=o,e[2]=n,e[3]=l,e[4]=r,e[5]=s,e},t.translate=function(e,t,a){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+a[0],e[5]=t[5]+a[1],e},t.rotate=function(e,t,a){var i=t[0],o=t[2],n=t[4],l=t[1],r=t[3],s=t[5],u=Math.sin(a),c=Math.cos(a);return e[0]=i*c+l*u,e[1]=-i*u+l*c,e[2]=o*c+r*u,e[3]=-o*u+c*r,e[4]=c*n+u*s,e[5]=c*s-u*n,e},t.scale=function(e,t,a){var i=a[0],o=a[1];return e[0]=t[0]*i,e[1]=t[1]*o,e[2]=t[2]*i,e[3]=t[3]*o,e[4]=t[4]*i,e[5]=t[5]*o,e},t.invert=function(e,t){var a=t[0],i=t[2],o=t[4],n=t[1],l=t[3],r=t[5],s=a*l-n*i;return s?(s=1/s,e[0]=l*s,e[1]=-n*s,e[2]=-i*s,e[3]=a*s,e[4]=(i*r-l*o)*s,e[5]=(n*o-a*r)*s,e):null}},function(e,t,a){function i(e){return Math.floor(Math.log(e)/Math.LN10)}var o=a(0),n=1e-4,l=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;t.linearMap=function(e,t,a,i){var o=t[1]-t[0],n=a[1]-a[0];if(0===o)return 0===n?a[0]:(a[0]+a[1])/2;if(i)if(o>0){if(e<=t[0])return a[0];if(e>=t[1])return a[1]}else{if(e>=t[0])return a[0];if(e<=t[1])return a[1]}else{if(e===t[0])return a[0];if(e===t[1])return a[1]}return(e-t[0])/o*n+a[0]},t.parsePercent=function(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e},t.round=function(e,t,a){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),a?e:+e},t.asc=function(e){return e.sort(function(e,t){return e-t}),e},t.getPrecision=function(e){if(e=+e,isNaN(e))return 0;for(var t=1,a=0;Math.round(e*t)/t!==e;)t*=10,a++;return a},t.getPrecisionSafe=function(e){var t=e.toString(),a=t.indexOf("e");if(a>0){var i=+t.slice(a+1);return i<0?-i:0}var o=t.indexOf(".");return o<0?0:t.length-1-o},t.getPixelPrecision=function(e,t){var a=Math.log,i=Math.LN10,o=Math.floor(a(e[1]-e[0])/i),n=Math.round(a(Math.abs(t[1]-t[0]))/i),l=Math.min(Math.max(-o+n,0),20);return isFinite(l)?l:20},t.getPercentWithPrecision=function(e,t,a){if(!e[t])return 0;var i=o.reduce(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(0===i)return 0;for(var n=Math.pow(10,a),l=o.map(e,function(e){return(isNaN(e)?0:e)/i*n*100}),r=100*n,s=o.map(l,function(e){return Math.floor(e)}),u=o.reduce(s,function(e,t){return e+t},0),c=o.map(l,function(e,t){return e-s[t]});uh&&(h=c[d],p=d);++s[p],c[p]=0,++u}return s[t]/n},t.MAX_SAFE_INTEGER=9007199254740991,t.remRadian=function(e){var t=2*Math.PI;return(e%t+t)%t},t.isRadianAroundZero=function(e){return e>-n&&e=-20?+e.toFixed(a<0?-a:0):e},t.reformIntervals=function(e){e.sort(function(e,t){return function e(t,a,i){return t.interval[i]=0}},function(e,t,a){function i(){var e=this.__cachedImgObj;this.onload=this.__cachedImgObj=null;for(var t=0;t=0||o&&i.indexOf(o,r)<0)){var s=t.getShallow(r);null!=s&&(n[e[l][0]]=s)}}return n}}},function(e,t,a){function i(e){for(var t in e=e||{},l.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new n(e.style,this),this._rect=null,this.__clipPaths=[]}var o=a(0),n=a(40),l=a(16),r=a(48);i.prototype={constructor:i,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:-1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var a=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(a[0],a[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?l.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new n(e,this),this.dirty(!1),this}},o.inherits(i,l),o.mixin(i,r);var s=i;e.exports=s},function(e,t,a){function i(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var o=a(0),n=a(5),l=a(9),r=o.normalizeCssArray,s=["a","b","c","d","e","f","g"],u=function(e,t){return"{"+e+(null==t?"":t)+"}"},c=function(e){return e<10?"0"+e:e},h=n.truncateText,p=n.getBoundingRect;t.addCommas=function(e){return isNaN(e)?"-":(e=(e+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")},t.toCamelCase=function(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e},t.normalizeCssArray=r,t.encodeHTML=i,t.formatTpl=function(e,t,a){o.isArray(t)||(t=[t]);var n=t.length;if(!n)return"";for(var l=t[0].$vars||[],r=0;r':""},t.formatTime=function(e,t,a){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=l.parseDate(t),o=a?"UTC":"",n=i["get"+o+"FullYear"](),r=i["get"+o+"Month"]()+1,s=i["get"+o+"Date"](),u=i["get"+o+"Hours"](),h=i["get"+o+"Minutes"](),p=i["get"+o+"Seconds"]();return e=e.replace("MM",c(r)).replace("M",r).replace("yyyy",n).replace("yy",n%100).replace("dd",c(s)).replace("d",s).replace("hh",c(u)).replace("h",u).replace("mm",c(h)).replace("m",h).replace("ss",c(p)).replace("s",p)},t.capitalFirst=function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},t.truncateText=h,t.getTextRect=p},function(e,t){var a=function(){this.head=null,this.tail=null,this._len=0},i=a.prototype;i.insert=function(e){var t=new o(e);return this.insertEntry(t),t},i.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},i.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};var o=function(e){this.value=e,this.next,this.prev},n=function(e){this._list=new a,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},l=n.prototype;l.put=function(e,t){var a=this._list,i=this._map,n=null;if(null==i[e]){var l=a.len(),r=this._lastRemovedEntry;if(l>=this._maxSize&&l>0){var s=a.head;a.remove(s),delete i[s.key],n=s.value,this._lastRemovedEntry=s}r?r.value=t:r=new o(t),r.key=e,a.insertEntry(r),i[e]=r}return n},l.get=function(e){var t=this._map[e],a=this._list;if(null!=t)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},l.clear=function(){this._list.clear(),this._map={}};var r=n;e.exports=r},function(e,t){var a="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0,svgSupported:!0}:function(e){var t={},a=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge\/([\d.]+)/),n=/micromessenger/i.test(e);return a&&(t.firefox=!0,t.version=a[1]),i&&(t.ie=!0,t.version=i[1]),o&&(t.edge=!0,t.version=o[1]),n&&(t.weChat=!0),{browser:t,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!t.ie&&!t.edge,pointerEventsSupported:"onpointerdown"in window&&(t.edge||t.ie&&t.version>=11)}}(navigator.userAgent);e.exports=a},function(e,t,a){var i=a(41),o=a(42),n=a(17),l=a(43),r=a(0),s=function(e){n.call(this,e),o.call(this,e),l.call(this,e),this.id=e.id||i()};s.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var a=this[e];a||(a=this[e]=[]),a[0]=t[0],a[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(r.isObject(e))for(var a in e)e.hasOwnProperty(a)&&this.attrKV(a,e[a]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var a=0;ar||e<-r}var o=a(8),n=a(2),l=o.identity,r=5e-5,s=function(e){(e=e||{}).position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=s.prototype;u.transform=null,u.needLocalTransform=function(){return i(this.rotation)||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)},u.updateTransform=function(){var e=this.parent,t=e&&e.transform,a=this.needLocalTransform(),i=this.transform;a||t?(i=i||o.create(),a?this.getLocalTransform(i):l(i),t&&(a?o.mul(i,e.transform,i):o.copy(i,e.transform)),this.transform=i,this.invTransform=this.invTransform||o.create(),o.invert(this.invTransform,i)):i&&l(i)},u.getLocalTransform=function(e){return s.getLocalTransform(this,e)},u.setTransform=function(e){var t=this.transform,a=e.dpr||1;t?e.setTransform(a*t[0],a*t[1],a*t[2],a*t[3],a*t[4],a*t[5]):e.setTransform(a,0,0,a,0,0)},u.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var c=[];u.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(o.mul(c,e.invTransform,t),t=c);var a=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],l=this.position,r=this.scale;i(a-1)&&(a=Math.sqrt(a)),i(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(a=-a),t[3]<0&&(n=-n),l[0]=t[4],l[1]=t[5],r[0]=a,r[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/a)}},u.getGlobalScale=function(){var e=this.transform;if(!e)return[1,1];var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]),a=Math.sqrt(e[2]*e[2]+e[3]*e[3]);return e[0]<0&&(t=-t),e[3]<0&&(a=-a),[t,a]},u.transformCoordToLocal=function(e,t){var a=[e,t],i=this.invTransform;return i&&n.applyTransform(a,a,i),a},u.transformCoordToGlobal=function(e,t){var a=[e,t],i=this.transform;return i&&n.applyTransform(a,a,i),a},s.getLocalTransform=function(e,t){l(t=t||[]);var a=e.origin,i=e.scale||[1,1],n=e.rotation||0,r=e.position||[0,0];return a&&(t[4]-=a[0],t[5]-=a[1]),o.scale(t,t,i),n&&o.rotate(t,t,n),a&&(t[4]+=a[0],t[5]+=a[1]),t[4]+=r[0],t[5]+=r[1],t};var h=s;e.exports=h},function(e,t,a){function i(e){return(e=Math.round(e))<0?0:e>255?255:e}function o(e){return e<0?0:e>1?1:e}function n(e){return i(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function l(e){return o(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function r(e,t,a){return a<0?a+=1:a>1&&(a-=1),6*a<1?e+(t-e)*a*6:2*a<1?t:3*a<2?e+(t-e)*(2/3-a)*6:e}function s(e,t,a){return e+(t-e)*a}function u(e,t,a,i,o){return e[0]=t,e[1]=a,e[2]=i,e[3]=o,e}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function h(e,t){x&&c(x,t),x=b.put(e,x||t.slice())}function p(e,t){if(e){t=t||[];var a=b.get(e);if(a)return c(t,a);var i=(e+="").replace(/ /g,"").toLowerCase();if(i in g)return c(t,g[i]),h(e,t),t;if("#"!==i.charAt(0)){var o=i.indexOf("("),r=i.indexOf(")");if(-1!==o&&r+1===i.length){var s=i.substr(0,o),p=i.substr(o+1,r-(o+1)).split(","),m=1;switch(s){case"rgba":if(4!==p.length)return void u(t,0,0,0,1);m=l(p.pop());case"rgb":return 3!==p.length?void u(t,0,0,0,1):(u(t,n(p[0]),n(p[1]),n(p[2]),m),h(e,t),t);case"hsla":return 4!==p.length?void u(t,0,0,0,1):(p[3]=l(p[3]),d(p,t),h(e,t),t);case"hsl":return 3!==p.length?void u(t,0,0,0,1):(d(p,t),h(e,t),t);default:return}}u(t,0,0,0,1)}else{if(4===i.length){var f=parseInt(i.substr(1),16);return f>=0&&f<=4095?(u(t,(3840&f)>>4|(3840&f)>>8,240&f|(240&f)>>4,15&f|(15&f)<<4,1),h(e,t),t):void u(t,0,0,0,1)}if(7===i.length){var f=parseInt(i.substr(1),16);return f>=0&&f<=16777215?(u(t,(16711680&f)>>16,(65280&f)>>8,255&f,1),h(e,t),t):void u(t,0,0,0,1)}}}}function d(e,t){var a=(parseFloat(e[0])%360+360)%360/360,o=l(e[1]),n=l(e[2]),s=n<=.5?n*(o+1):n+o-n*o,c=2*n-s;return u(t=t||[],i(255*r(c,s,a+1/3)),i(255*r(c,s,a)),i(255*r(c,s,a-1/3)),1),4===e.length&&(t[3]=e[3]),t}function m(e,t,a){if(t&&t.length&&e>=0&&e<=1){a=a||[];var n=e*(t.length-1),l=Math.floor(n),r=Math.ceil(n),u=t[l],c=t[r],h=n-l;return a[0]=i(s(u[0],c[0],h)),a[1]=i(s(u[1],c[1],h)),a[2]=i(s(u[2],c[2],h)),a[3]=o(s(u[3],c[3],h)),a}}function f(e,t,a){if(t&&t.length&&e>=0&&e<=1){var n=e*(t.length-1),l=Math.floor(n),r=Math.ceil(n),u=p(t[l]),c=p(t[r]),h=n-l,d=v([i(s(u[0],c[0],h)),i(s(u[1],c[1],h)),i(s(u[2],c[2],h)),o(s(u[3],c[3],h))],"rgba");return a?{color:d,leftIndex:l,rightIndex:r,value:n}:d}}function v(e,t){if(e&&e.length){var a=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(a+=","+e[3]),t+"("+a+")"}}var y=a(14),g={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]},b=new y(20),x=null,S=m,w=f;t.parse=p,t.lift=function(e,t){var a=p(e);if(a){for(var i=0;i<3;i++)a[i]=t<0?a[i]*(1-t)|0:(255-a[i])*t+a[i]|0;return v(a,4===a.length?"rgba":"rgb")}},t.toHex=function(e){var t=p(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},t.fastLerp=m,t.fastMapToColor=S,t.lerp=f,t.mapToColor=w,t.modifyHSL=function(e,t,a,i){if(e=p(e))return e=function(e){if(e){var t,a,i=e[0]/255,o=e[1]/255,n=e[2]/255,l=Math.min(i,o,n),r=Math.max(i,o,n),s=r-l,u=(r+l)/2;if(0===s)t=0,a=0;else{a=u<.5?s/(r+l):s/(2-r-l);var c=((r-i)/6+s/2)/s,h=((r-o)/6+s/2)/s,p=((r-n)/6+s/2)/s;i===r?t=p-h:o===r?t=1/3+c-p:n===r&&(t=2/3+h-c),t<0&&(t+=1),t>1&&(t-=1)}var d=[360*t,a,u];return null!=e[3]&&d.push(e[3]),d}}(e),null!=t&&(e[0]=function(e){return(e=Math.round(e))<0?0:e>360?360:e}(t)),null!=a&&(e[1]=l(a)),null!=i&&(e[2]=l(i)),v(d(e),"rgba")},t.modifyAlpha=function(e,t){if((e=p(e))&&null!=t)return e[3]=o(t),v(e,"rgba")},t.stringify=v},function(e,t){var a=1;"undefined"!=typeof window&&(a=Math.max(window.devicePixelRatio||1,1));var i=a;t.debugMode=0,t.devicePixelRatio=i},function(e,t,a){function i(e){if(e){e.font=q.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||T[t]?t:"left";var a=e.textVerticalAlign||e.textBaseline;"center"===a&&(a="middle"),e.textVerticalAlign=null==a||O[a]?a:"top",e.textPadding&&(e.textPadding=x(e.textPadding))}}function o(e,t,a,i,o){var u=e.__textCotentBlock;u&&!e.__dirty||(u=e.__textCotentBlock=q.parseRichText(a,i)),function(e,t,a,i,o){var u=a.width,h=a.outerWidth,p=a.outerHeight,d=i.textPadding,m=c(0,i,o),f=m.baseX,v=m.baseY,y=m.textAlign,g=m.textVerticalAlign;n(t,i,o,f,v);var b=q.adjustTextX(f,h,y),x=q.adjustTextY(v,p,g),S=b,w=x;d&&(S+=d[3],w+=d[0]);var C=S+u;r(i)&&s(e,t,i,b,x,h,p);for(var D=0;D=0&&"right"===(T=_[P]).textAlign;)l(e,t,T,i,z,w,W,"right"),L-=T.width,W-=T.width,P--;for(A+=(u-(A-S)-(C-W)-L)/2;F<=P;)T=_[F],l(e,t,T,i,z,w,A+T.width/2,"center"),A+=T.width,F++;w+=z}}(e,t,u,i,o)}function n(e,t,a,i,o){if(a&&t.textRotation){var n=t.textOrigin;"center"===n?(i=a.width/2+a.x,o=a.height/2+a.y):n&&(i=n[0]+a.x,o=n[1]+a.y),e.translate(i,o),e.rotate(-t.textRotation),e.translate(-i,-o)}}function l(e,t,a,i,o,n,l,u){var c=i.rich[a.styleName]||{},m=a.textVerticalAlign,v=n+o/2;"top"===m?v=n+a.height/2:"bottom"===m&&(v=n+o-a.height/2),!a.isLineHolder&&r(c)&&s(e,t,c,"right"===u?l-a.width:"center"===u?l-a.width/2:l,v-a.height/2,a.width,a.height);var b=a.textPadding;b&&(l=f(l,u,b),v-=a.height/2-b[2]-a.textHeight/2),h(t,"shadowBlur",g(c.textShadowBlur,i.textShadowBlur,0)),h(t,"shadowColor",c.textShadowColor||i.textShadowColor||"transparent"),h(t,"shadowOffsetX",g(c.textShadowOffsetX,i.textShadowOffsetX,0)),h(t,"shadowOffsetY",g(c.textShadowOffsetY,i.textShadowOffsetY,0)),h(t,"textAlign",u),h(t,"textBaseline","middle"),h(t,"font",a.font||q.DEFAULT_FONT);var x=p(c.textStroke||i.textStroke,w),S=d(c.textFill||i.textFill),w=y(c.textStrokeWidth,i.textStrokeWidth);x&&(h(t,"lineWidth",w),h(t,"strokeStyle",x),t.strokeText(a.text,l,v)),S&&(h(t,"fillStyle",S),t.fillText(a.text,l,v))}function r(e){return e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor}function s(e,t,a,i,o,n,l){var r=a.textBackgroundColor,s=a.textBorderWidth,c=a.textBorderColor,p=S(r);if(h(t,"shadowBlur",a.textBoxShadowBlur||0),h(t,"shadowColor",a.textBoxShadowColor||"transparent"),h(t,"shadowOffsetX",a.textBoxShadowOffsetX||0),h(t,"shadowOffsetY",a.textBoxShadowOffsetY||0),p||s&&c){t.beginPath();var d=a.textBorderRadius;d?C.buildPath(t,{x:i,y:o,width:n,height:l,r:d}):t.rect(i,o,n,l),t.closePath()}if(p)h(t,"fillStyle",r),t.fill();else if(w(r)){var m=r.image;(m=D.createOrUpdateImage(m,null,e,u,r))&&D.isImageReady(m)&&t.drawImage(m,i,o,n,l)}s&&c&&(h(t,"lineWidth",s),h(t,"strokeStyle",c),t.stroke())}function u(e,t){t.image=e}function c(e,t,a){var i=t.x||0,o=t.y||0,n=t.textAlign,l=t.textVerticalAlign;if(a){var r=t.textPosition;if(r instanceof Array)i=a.x+m(r[0],a.width),o=a.y+m(r[1],a.height);else{var s=q.adjustTextPositionOnRect(r,a,t.textDistance);i=s.x,o=s.y,n=n||s.textAlign,l=l||s.textVerticalAlign}var u=t.textOffset;u&&(i+=u[0],o+=u[1])}return{baseX:i,baseY:o,textAlign:n,textVerticalAlign:l}}function h(e,t,a){return e[t]=a,e[t]}function p(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function d(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function m(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function f(e,t,a){return"right"===t?e-a[1]:"center"===t?e+a[3]/2-a[1]/2:e+a[3]}var v=a(0),y=v.retrieve2,g=v.retrieve3,b=v.each,x=v.normalizeCssArray,S=v.isString,w=v.isObject,q=a(5),C=a(21),D=a(10),T={left:1,right:1,center:1},O={top:1,bottom:1,middle:1};t.normalizeTextStyle=function(e){return i(e),b(e.rich,i),e},t.renderText=function(e,t,a,i,l){i.rich?o(e,t,a,i,l):function(e,t,a,i,o){var l=h(t,"font",i.font||q.DEFAULT_FONT),u=i.textPadding,m=e.__textCotentBlock;m&&!e.__dirty||(m=e.__textCotentBlock=q.parsePlainText(a,l,u,i.truncate));var v=m.outerHeight,y=m.lines,g=m.lineHeight,b=c(0,i,o),x=b.baseX,S=b.baseY,w=b.textAlign,C=b.textVerticalAlign;n(t,i,o,x,S);var D=q.adjustTextY(S,v,C),T=x,O=D,_=r(i);if(_||u){var k=q.getWidth(a,l),z=k;u&&(z+=u[1]+u[3]);var L=q.adjustTextX(x,z,w);_&&s(e,t,i,L,D,z,v),u&&(T=f(x,w,u),O+=u[0])}h(t,"textAlign",w||"left"),h(t,"textBaseline","middle"),h(t,"shadowBlur",i.textShadowBlur||0),h(t,"shadowColor",i.textShadowColor||"transparent"),h(t,"shadowOffsetX",i.textShadowOffsetX||0),h(t,"shadowOffsetY",i.textShadowOffsetY||0),O+=g/2;var F=i.textStrokeWidth,A=p(i.textStroke,F),W=d(i.textFill);A&&(h(t,"lineWidth",F),h(t,"strokeStyle",A)),W&&h(t,"fillStyle",W);for(var P=0;Pu&&(a*=u/(l=a+i),i*=u/l),o+n>u&&(o*=u/(l=o+n),n*=u/l),i+o>c&&(i*=c/(l=i+o),o*=c/l),a+n>c&&(a*=c/(l=a+n),n*=c/l),e.moveTo(r+a,s),e.lineTo(r+u-i,s),0!==i&&e.quadraticCurveTo(r+u,s,r+u,s+i),e.lineTo(r+u,s+c-o),0!==o&&e.quadraticCurveTo(r+u,s+c,r+u-o,s+c),e.lineTo(r+n,s+c),0!==n&&e.quadraticCurveTo(r,s+c,r,s+c-n),e.lineTo(r,s+a),0!==a&&e.quadraticCurveTo(r,s,r+a,s)}},function(e,t){var a=2*Math.PI;t.normalizeRadian=function(e){return(e%=a)<0&&(e+=a),e}},function(e,t,a){var i=a(66),o=a(67);t.buildPath=function(e,t,a){var n=t.points,l=t.smooth;if(n&&n.length>=2){if(l&&"spline"!==l){var r=o(n,l,a,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var s=n.length,u=0;u<(a?s:s-1);u++){var c=r[2*u],h=r[2*u+1],p=n[(u+1)%s];e.bezierCurveTo(c[0],c[1],h[0],h[1],p[0],p[1])}}else{"spline"===l&&(n=i(n,a)),e.moveTo(n[0][0],n[0][1]);for(var u=1,d=n.length;u128){var s=a.data[l]+a.data[l+1]+a.data[l+2];o+=s,++n}}for(var u=o/n,l=0;lu?(i.data[l]=0,i.data[l+1]=0,i.data[l+2]=0,i.data[l+3]=0):(i.data[l]=255,i.data[l+1]=255,i.data[l+2]=255,i.data[l+3]=255)}t.putImageData(i,0,0)}(u)}catch(e){console.error("Invalid mask image"),console.error(e.toString())}var p=a.get("sizeRange"),d=a.get("rotationRange"),m=s.getDataExtent("value"),f=Math.PI/180,v=a.get("gridSize");n(u,{list:s.mapArray("value",function(e,t){var a=s.getItemModel(t);return[s.getName(t),a.get("textStyle.normal.textSize",!0)||i.number.linearMap(e,m,p),t]}).sort(function(e,t){return t[1]-e[1]}),fontFamily:a.get("textStyle.normal.fontFamily")||a.get("textStyle.emphasis.fontFamily")||e.get("textStyle.fontFamily"),fontWeight:a.get("textStyle.normal.fontWeight")||a.get("textStyle.emphasis.fontWeight")||e.get("textStyle.fontWeight"),gridSize:v,ellipticity:r.height/r.width,minRotation:d[0]*f,maxRotation:d[1]*f,clearCanvas:!h,rotateRatio:1,rotationStep:a.get("rotationStep")*f,drawOutOfBound:a.get("drawOutOfBound"),shuffle:!1,shape:a.get("shape")}),u.addEventListener("wordclouddrawn",l),a.layoutInstance&&a.layoutInstance.dispose(),a.layoutInstance={ondraw:null,dispose:function(){u.removeEventListener("wordclouddrawn",l),u.addEventListener("wordclouddrawn",function(e){e.preventDefault()})}}})}),i.registerPreprocessor(function(e){function t(e){e&&i.util.each(o,function(t){e.hasOwnProperty(t)&&(e["text"+i.format.capitalFirst(t)]=e[t])})}var a=(e||{}).series;!i.util.isArray(a)&&(a=a?[a]:[]);var o=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];i.util.each(a,function(e){if(e&&"wordCloud"===e.type){var a=e.textStyle||{};t(a.normal),t(a.emphasis)}})})},function(e,t,a){function i(e,t,a,i,o){var n=0,l=0;null==i&&(i=1/0),null==o&&(o=1/0);var r=0;t.eachChild(function(s,u){var c,h,p=s.position,d=s.getBoundingRect(),m=t.childAt(u+1),f=m&&m.getBoundingRect();if("horizontal"===e){var v=d.width+(f?-f.x+d.x:0);(c=n+v)>i||s.newline?(n=0,c=v,l+=r+a,r=d.height):r=Math.max(r,d.height)}else{var y=d.height+(f?-f.y+d.y:0);(h=l+y)>o||s.newline?(n+=r+a,l=0,h=y,r=d.width):r=Math.max(r,d.width)}s.newline||(p[0]=n,p[1]=l,"horizontal"===e?n=c+a:l=h+a)})}function o(e,t,a){a=c.normalizeCssArray(a||0);var i=t.width,o=t.height,n=u(e.left,i),l=u(e.top,o),s=u(e.right,i),h=u(e.bottom,o),p=u(e.width,i),d=u(e.height,o),m=a[2]+a[0],f=a[1]+a[3],v=e.aspect;switch(isNaN(p)&&(p=i-s-f-n),isNaN(d)&&(d=o-h-m-l),null!=v&&(isNaN(p)&&isNaN(d)&&(v>i/o?p=.8*i:d=.8*o),isNaN(p)&&(p=v*d),isNaN(d)&&(d=p/v)),isNaN(n)&&(n=i-s-p-f),isNaN(l)&&(l=o-h-d-m),e.left||e.right){case"center":n=i/2-p/2-a[3];break;case"right":n=i-p-f}switch(e.top||e.bottom){case"middle":case"center":l=o/2-d/2-a[0];break;case"bottom":l=o-d-m}n=n||0,l=l||0,isNaN(p)&&(p=i-f-n-(s||0)),isNaN(d)&&(d=o-m-l-(h||0));var y=new r(n+a[3],l+a[0],p,d);return y.margin=a,y}function n(e,t){return t&&e&&h(p,function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e}var l=a(0),r=a(3),s=a(9),u=s.parsePercent,c=a(13),h=l.each,p=["left","right","top","bottom","width","height"],d=[["width","left","right"],["height","top","bottom"]],m=i,f=l.curry(i,"vertical"),v=l.curry(i,"horizontal");t.LOCATION_PARAMS=p,t.HV_NAMES=d,t.box=m,t.vbox=f,t.hbox=v,t.getAvailableSize=function(e,t,a){var i=t.width,o=t.height,n=u(e.x,i),l=u(e.y,o),r=u(e.x2,i),s=u(e.y2,o);return(isNaN(n)||isNaN(parseFloat(e.x)))&&(n=0),(isNaN(r)||isNaN(parseFloat(e.x2)))&&(r=i),(isNaN(l)||isNaN(parseFloat(e.y)))&&(l=0),(isNaN(s)||isNaN(parseFloat(e.y2)))&&(s=o),a=c.normalizeCssArray(a||0),{width:Math.max(r-n-a[1]-a[3],0),height:Math.max(s-l-a[0]-a[2],0)}},t.getLayoutRect=o,t.positionElement=function(e,t,a,i,n){var s=!n||!n.hv||n.hv[0],u=!n||!n.hv||n.hv[1],c=n&&n.boundingMode||"all";if(s||u){var h;if("raw"===c)h="group"===e.type?new r(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(h=e.getBoundingRect(),e.needLocalTransform()){var p=e.getLocalTransform();(h=h.clone()).applyTransform(p)}t=o(l.defaults({width:h.width,height:h.height},t),a,i);var d=e.position,m=s?t.x-h.x:0,f=u?t.y-h.y:0;e.attr("position","raw"===c?[m,f]:[d[0]+m,d[1]+f])}},t.sizeCalculable=function(e,t){return null!=e[d[t][0]]||null!=e[d[t][1]]&&null!=e[d[t][2]]},t.mergeLayoutParam=function(e,t,a){function i(a,i){var l={},r=0,u={},c=0;if(h(a,function(t){u[t]=e[t]}),h(a,function(e){o(t,e)&&(l[e]=u[e]=t[e]),n(l,e)&&r++,n(u,e)&&c++}),s[i])return n(t,a[1])?u[a[2]]=null:n(t,a[2])&&(u[a[1]]=null),u;if(2!==c&&r){if(r>=2)return l;for(var p=0;p=a.length&&a.push({option:e})}}),a},t.makeIdAndName=function(e){var t=l.createHashMap();c(e,function(e,a){var i=e.exist;i&&t.set(i.id,e)}),c(e,function(e,a){var i=e.option;l.assert(!i||null==i.id||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),c(e,function(e,a){var i=e.exist,o=e.option,n=e.keyInfo;if(h(o)){if(n.name=null!=o.name?o.name+"":i?i.name:"\0-",i)n.id=i.id;else if(null!=o.id)n.id=o.id+"";else{var l=0;do{n.id="\0"+n.name+"\0"+l++}while(t.get(n.id))}t.set(n.id,e)}})},t.isIdInner=o,t.compressBatches=function(e,t){function a(e,t,a){for(var o=0,n=e.length;o=0)&&(i={textFill:null,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth},e.textFill="#fff",null==e.textStroke&&(e.textStroke=a.autoColor,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),i}function C(e,t,a,i,o,n){if("function"==typeof o&&(n=o,o=null),i&&i.isAnimationEnabled()){var l=e?"Update":"",r=i.getShallow("animationDuration"+l),s=i.getShallow("animationEasing"+l),u=i.getShallow("animationDelay"+l);"function"==typeof u&&(u=u(o,i.getAnimationDelayParams?i.getAnimationDelayParams(t,o):null)),"function"==typeof r&&(r=r(o)),r>0?t.animateTo(a,r,u||0,s,n,!!n):(t.stopAnimation(),t.attr(a),n&&n())}else t.stopAnimation(),t.attr(a),n&&n()}function D(e,t,a,i,o){C(!0,e,t,a,i,o)}function T(e,t,a){return t&&!O.isArrayLike(t)&&(t=A.getLocalTransform(t)),a&&(t=z.invert([],t)),L.applyTransform([],e,t)}var O=a(0),_=a(39),k=a(18),z=a(8),L=a(2),F=a(1),A=a(17),W=a(58);t.Image=W;var P=a(59);t.Group=P;var M=a(60);t.Text=M;var I=a(61);t.Circle=I;var R=a(62);t.Sector=R;var N=a(64);t.Ring=N;var E=a(65);t.Polygon=E;var B=a(68);t.Polyline=B;var Y=a(69);t.Rect=Y;var X=a(70);t.Line=X;var j=a(71);t.BezierCurve=j;var V=a(72);t.Arc=V;var H=a(73);t.CompoundPath=H;var $=a(74);t.LinearGradient=$;var U=a(75);t.RadialGradient=U;var G=a(3);t.BoundingRect=G;var K=Math.round,Z=Math.max,J=Math.min,Q={},ee=_.mergePath;t.extendShape=function(e){return F.extend(e)},t.extendPath=function(e,t){return _.extendFromString(e,t)},t.makePath=i,t.makeImage=function(e,t,a){var i=new W({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===a){var n={width:e.width,height:e.height};i.setStyle(o(t,n))}}});return i},t.mergePath=ee,t.resizePath=n,t.subPixelOptimizeLine=function(e){var t=e.shape,a=e.style.lineWidth;return K(2*t.x1)===K(2*t.x2)&&(t.x1=t.x2=l(t.x1,a,!0)),K(2*t.y1)===K(2*t.y2)&&(t.y1=t.y2=l(t.y1,a,!0)),e},t.subPixelOptimizeRect=function(e){var t=e.shape,a=e.style.lineWidth,i=t.x,o=t.y,n=t.width,r=t.height;return t.x=l(t.x,a,!0),t.y=l(t.y,a,!0),t.width=Math.max(l(i+n,a,!1)-t.x,0===n?0:1),t.height=Math.max(l(o+r,a,!1)-t.y,0===r?0:1),e},t.subPixelOptimize=l,t.setHoverStyle=function(e,t,a){e.__hoverSilentOnTouch=a&&a.hoverSilentOnTouch,"group"===e.type?e.traverse(function(e){"group"!==e.type&&m(e,t)}):m(e,t),e.on("mouseover",f).on("mouseout",v),e.on("emphasis",y).on("normal",g)},t.setLabelStyle=function(e,t,a,i,o,n,l){var r=(o=o||Q).labelFetcher,s=o.labelDataIndex,u=o.labelDimIndex,c=a.getShallow("show"),h=i.getShallow("show"),p=c||h?O.retrieve2(r?r.getFormattedLabel(s,"normal",null,u):null,o.defaultText):null,d=c?p:null,m=h?O.retrieve2(r?r.getFormattedLabel(s,"emphasis",null,u):null,p):null;null==d&&null==m||(b(e,a,n,o),b(t,i,l,o,!0)),e.text=d,t.text=m},t.setTextStyle=b,t.setText=function(e,t,a){var i,o={isRectText:!0};!1===a?i=!0:o.autoColor=a,x(e,t,o,i),e.host&&e.host.dirty&&e.host.dirty(!1)},t.getFont=function(e,t){var a=t||t.getModel("textStyle");return[e.fontStyle||a&&a.getShallow("fontStyle")||"",e.fontWeight||a&&a.getShallow("fontWeight")||"",(e.fontSize||a&&a.getShallow("fontSize")||12)+"px",e.fontFamily||a&&a.getShallow("fontFamily")||"sans-serif"].join(" ")},t.updateProps=D,t.initProps=function(e,t,a,i,o){C(!1,e,t,a,i,o)},t.getTransform=function(e,t){for(var a=z.identity([]);e&&e!==t;)z.mul(a,e.getLocalTransform(),a),e=e.parent;return a},t.applyTransform=T,t.transformDirection=function(e,t,a){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),o=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),n=["left"===e?-i:"right"===e?i:0,"top"===e?-o:"bottom"===e?o:0];return n=T(n,t,a),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"},t.groupTransition=function(e,t,a,i){function o(e){var t={position:L.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=O.extend({},e.shape)),t}if(e&&t){var n=function(e){var t={};return e.traverse(function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)}),t}(e);t.traverse(function(e){if(!e.isGroup&&e.anid){var t=n[e.anid];if(t){var i=o(e);e.attr(o(t)),D(e,i,a,e.dataIndex)}}})}},t.clipPointsByRect=function(e,t){return O.map(e,function(e){var a=e[0];a=Z(a,t.x),a=J(a,t.x+t.width);var i=e[1];return i=Z(i,t.y),i=J(i,t.y+t.height),[a,i]})},t.clipRectByRect=function(e,t){var a=Z(e.x,t.x),i=J(e.x+e.width,t.x+t.width),o=Z(e.y,t.y),n=J(e.y+e.height,t.y+t.height);if(i>=a&&n>=o)return{x:a,y:o,width:i-a,height:n-o}},t.createIcon=function(e,t,a){var o=(t=O.extend({rectHover:!0},t)).style={strokeNoScale:!0};if(a=a||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(o.image=e.slice(8),O.defaults(o,a),new W(t)):i(e.replace("path://",""),t,a,"center")}},function(e,t,a){function i(e,t,a,i,o,n,l,r,s,d,v){var y=s*(p/180),g=h(y)*(e-a)/2+c(y)*(t-i)/2,b=-1*c(y)*(e-a)/2+h(y)*(t-i)/2,x=g*g/(l*l)+b*b/(r*r);x>1&&(l*=u(x),r*=u(x));var S=(o===n?-1:1)*u((l*l*(r*r)-l*l*(b*b)-r*r*(g*g))/(l*l*(b*b)+r*r*(g*g)))||0,w=S*l*b/r,q=S*-r*g/l,C=(e+a)/2+h(y)*w-c(y)*q,D=(t+i)/2+c(y)*w+h(y)*q,T=f([1,0],[(g-w)/l,(b-q)/r]),O=[(g-w)/l,(b-q)/r],_=[(-1*g-w)/l,(-1*b-q)/r],k=f(O,_);m(O,_)<=-1&&(k=p),m(O,_)>=1&&(k=0),0===n&&k>0&&(k-=2*p),1===n&&k<0&&(k+=2*p),v.addData(d,C,D,l,r,T,k,y,n)}function o(e,t){var a=function(e){if(!e)return[];var t,a=e.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(t=0;t0&&""===v[0]&&v.shift();for(var y=0;y0},extendFrom:function(e,t){if(e)for(var a in e)!e.hasOwnProperty(a)||!0!==t&&(!1===t?this.hasOwnProperty(a):null==e[a])||(this[a]=e[a])},set:function(e,t){"string"==typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,o){for(var n="radial"===t.type?i:a,l=n(e,t,o),r=t.colorStops,s=0;s3&&(t=a.call(t,1));for(var o=this._$handlers[e],n=o.length,l=0;l4&&(t=a.call(t,1,t.length-1));for(var o=t[t.length-1],n=this._$handlers[e],l=n.length,r=0;r0&&this.animate(e,!1).when(null==i?500:i,n).delay(o||0),this}};var p=h;e.exports=p},function(e,t,a){function i(e,t){return e[t]}function o(e,t,a){e[t]=a}function n(e,t,a){return(t-e)*a+e}function l(e,t,a){return a>.5?t:e}function r(e,t,a,i,o){var l=e.length;if(1==o)for(var r=0;ro)e.length=o;else for(var n=i;n=0&&!(O[a]<=t);a--);a=Math.min(a,x-2)}else{for(a=B;at);a++);a=Math.min(a-1,x-2)}B=a,Y=t;var i=O[a+1]-O[a];if(0!==i)if(M=(t-O[a])/i,b)if(R=_[a],I=_[0===a?a:a-1],N=_[a>x-2?x-1:a+1],E=_[a>x-3?x-1:a+2],q)c(I,R,N,E,M,M*M,M*M*M,m(e,o),T);else{if(C)s=c(I,R,N,E,M,M*M,M*M*M,X,1),s=d(X);else{if(D)return l(R,N,M);s=h(I,R,N,E,M,M*M,M*M*M)}y(e,o,s)}else if(q)r(_[a],_[a+1],M,m(e,o),T);else{var s;if(C)r(_[a],_[a+1],M,X,1),s=d(X);else{if(D)return l(_[a],_[a+1],M);s=n(_[a],_[a+1],M)}y(e,o,s)}},ondestroy:a});return t&&"spline"!==t&&(j.easing=t),j}}}var f=a(45),v=a(18),y=a(0),g=y.isArrayLike,b=Array.prototype.slice,x=function(e,t,a,n){this._tracks={},this._target=e,this._loop=t||!1,this._getter=a||i,this._setter=n||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};x.prototype={when:function(e,t){var a=this._tracks;for(var i in t)if(t.hasOwnProperty(i)){if(!a[i]){a[i]=[];var o=this._getter(this._target,i);if(null==o)continue;0!==e&&a[i].push({time:0,value:p(o)})}a[i].push({time:e,value:t[i]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e1&&(n=function(){for(var e in arguments)console.log(arguments[e])});var l=n;e.exports=l},function(e,t,a){var i=a(20),o=a(3),n=new o,l=function(){};l.prototype={constructor:l,drawRectText:function(e,t){var a=this.style;t=a.textRect||t,this.__dirty&&i.normalizeTextStyle(a,!0);var o=a.text;if(null!=o&&(o+=""),i.needDrawText(o,a)){e.save();var l=this.transform;a.transformText?this.setTransform(e):l&&(n.copy(t),n.applyTransform(l),t=n),i.renderText(this,e,o,a,t),e.restore()}}};var r=l;e.exports=r},function(e,t,a){var i=a(2),o=a(4),n=Math.min,l=Math.max,r=Math.sin,s=Math.cos,u=2*Math.PI,c=i.create(),h=i.create(),p=i.create(),d=[],m=[];t.fromPoints=function(e,t,a){if(0!==e.length){var i,o=e[0],r=o[0],s=o[0],u=o[1],c=o[1];for(i=1;i1e-4)return m[0]=e-a,m[1]=t-o,f[0]=e+a,void(f[1]=t+o);if(c[0]=s(n)*a+e,c[1]=r(n)*o+t,h[0]=s(l)*a+e,h[1]=r(l)*o+t,v(m,c,h),y(f,c,h),(n%=u)<0&&(n+=u),(l%=u)<0&&(l+=u),n>l&&!d?l+=u:nn&&(p[0]=s(x)*a+e,p[1]=r(x)*o+t,v(m,p,m),y(f,p,f))}},function(e,t,a){function i(e,t){return Math.abs(e-t)t&&c>i&&c>l&&c>s||c1&&o(),p=v.cubicAt(t,i,l,s,w[0]),f>1&&(d=v.cubicAt(t,i,l,s,w[1]))),2==f?gt&&r>i&&r>n||r=0&&u<=1){for(var c=0,h=v.quadraticAt(t,i,n,u),p=0;pa||r<-a)return 0;var s=Math.sqrt(a*a-r*r);S[0]=-s,S[1]=s;var u=Math.abs(i-o);if(u<1e-4)return 0;if(u%b<1e-4){i=0,o=b;var c=n?1:-1;return l>=S[0]+e&&l<=S[1]+e?c:0}if(n){var s=i;i=f(o),o=f(s)}else i=f(i),o=f(o);i>o&&(o+=b);for(var h=0,p=0;p<2;p++){var d=S[p];if(d+e>l){var m=Math.atan2(r,d),c=n?1:-1;m<0&&(m=b+m),(m>=i&&m<=o||m+b>=i&&m+b<=o)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function s(e,t,a,o,s){for(var u=0,m=0,f=0,v=0,b=0,x=0;x1&&(a||(u+=y(m,f,v,b,o,s))),1==x&&(m=e[x],f=e[x+1],v=m,b=f),S){case g.M:v=e[x++],b=e[x++],m=v,f=b;break;case g.L:if(a){if(c.containStroke(m,f,e[x],e[x+1],t,o,s))return!0}else u+=y(m,f,e[x],e[x+1],o,s)||0;m=e[x++],f=e[x++];break;case g.C:if(a){if(h.containStroke(m,f,e[x++],e[x++],e[x++],e[x++],e[x],e[x+1],t,o,s))return!0}else u+=n(m,f,e[x++],e[x++],e[x++],e[x++],e[x],e[x+1],o,s)||0;m=e[x++],f=e[x++];break;case g.Q:if(a){if(p.containStroke(m,f,e[x++],e[x++],e[x],e[x+1],t,o,s))return!0}else u+=l(m,f,e[x++],e[x++],e[x],e[x+1],o,s)||0;m=e[x++],f=e[x++];break;case g.A:var w=e[x++],q=e[x++],C=e[x++],D=e[x++],T=e[x++],O=e[x++],_=(e[x++],1-e[x++]),k=Math.cos(T)*C+w,z=Math.sin(T)*D+q;x>1?u+=y(m,f,k,z,o,s):(v=k,b=z);var L=(o-w)*D/C+w;if(a){if(d.containStroke(w,q,D,T,T+O,_,t,L,s))return!0}else u+=r(w,q,D,T,T+O,_,L,s);m=Math.cos(T+O)*C+w,f=Math.sin(T+O)*D+q;break;case g.R:v=m=e[x++],b=f=e[x++];var F=e[x++],A=e[x++],k=v+F,z=b+A;if(a){if(c.containStroke(v,b,k,b,t,o,s)||c.containStroke(k,b,k,z,t,o,s)||c.containStroke(k,z,v,z,t,o,s)||c.containStroke(v,z,v,b,t,o,s))return!0}else u+=y(k,b,k,z,o,s),u+=y(v,z,v,b,o,s);break;case g.Z:if(a){if(c.containStroke(m,f,v,b,t,o,s))return!0}else u+=y(m,f,v,b,o,s);m=v,f=b}}return a||i(f,b)||(u+=y(m,f,v,b,o,s)||0),0!==u}var u=a(6),c=a(51),h=a(52),p=a(53),d=a(54),m=a(22),f=m.normalizeRadian,v=a(4),y=a(55),g=u.CMD,b=2*Math.PI,x=1e-4,S=[-1,-1,-1],w=[-1,-1];t.contain=function(e,t,a){return s(e,0,!1,t,a)},t.containStroke=function(e,t,a,i){return s(e,t,!0,a,i)}},function(e,t){t.containStroke=function(e,t,a,i,o,n,l){if(0===o)return!1;var r=o,s=0;if(l>t+r&&l>i+r||le+r&&n>a+r||nt+p&&h>o+p&&h>l+p&&h>s+p||he+p&&c>a+p&&c>n+p&&c>r+p||ct+c&&u>i+c&&u>l+c||ue+c&&s>a+c&&s>n+c||sa||p+hl&&(l+=n);var m=Math.atan2(c,u);return m<0&&(m+=n),m>=i&&m<=l||m+n>=i&&m+n<=l}},function(e,t){e.exports=function(e,t,a,i,o,n){if(n>t&&n>i||no?l:0}},function(e,t){var a=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};a.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var i=a;e.exports=i},function(e,t,a){var i=a(6),o=a(2),n=o.applyTransform,l=i.CMD,r=[[],[],[]],s=Math.sqrt,u=Math.atan2;e.exports=function(e,t){var a,i,o,c,h,p=e.data,d=l.M,m=l.C,f=l.L,v=l.R,y=l.A,g=l.Q;for(o=0,c=0;o=0&&(a.splice(i,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,a=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof l&&e.addChildrenToStorage(t)),a&&a.refresh()},remove:function(e){var t=this.__zr,a=this.__storage,o=this._children,n=i.indexOf(o,e);return n<0?this:(o.splice(n,1),e.parent=null,a&&(a.delFromStorage(e),e instanceof l&&e.delChildrenFromStorage(a)),t&&t.refresh(),this)},removeAll:function(){var e,t,a=this._children,i=this.__storage;for(t=0;t=11?function(){var t,a=this.__clipPaths,i=this.style;if(a)for(var n=0;na-2?a-1:d+1],h=e[d>a-3?a-1:d+2]);var v=m*m,y=m*v;o.push([i(u[0],f[0],c[0],h[0],m,v,y),i(u[1],f[1],c[1],h[1],m,v,y)])}return o}},function(e,t,a){var i=a(2),o=i.min,n=i.max,l=i.scale,r=i.distance,s=i.add,u=i.clone,c=i.sub;e.exports=function(e,t,a,i){var h,p,d,m,f=[],v=[],y=[],g=[];if(i){d=[1/0,1/0],m=[-1/0,-1/0];for(var b=0,x=e.length;b=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}i.gridSize=Math.max(Math.floor(i.gridSize),4);var u,c,h,p,d,m,f,v=i.gridSize,y=v-i.maskGapWidth,g=Math.abs(i.maxRotation-i.minRotation),b=Math.min(i.maxRotation,i.minRotation),x=i.rotationStep;switch(i.color){case"random-dark":f=function(){return a(10,50)};break;case"random-light":f=function(){return a(50,90)};break;default:"function"==typeof i.color&&(f=i.color)}var S=null;"function"==typeof i.classes&&(S=i.classes);var w,q=!1,C=[],D=function(e){var t,a,i=e.currentTarget,o=i.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,a=e.touches[0].clientY):(t=e.clientX,a=e.clientY);var n=t-o.left,l=a-o.top,r=Math.floor(n*(i.width/o.width||1)/v),s=Math.floor(l*(i.height/o.height||1)/v);return C[r][s]},T=function(e){var t=D(e);if(w!==t){if(w=t,!t)return void i.hover(void 0,void 0,e);i.hover(t.item,t.dimension,e)}},O=function(e){var t=D(e);t&&(i.click(t.item,t.dimension,e),e.preventDefault())},_=[],k=function(e){if(_[e])return _[e];var t=8*e,a=t,o=[];for(0===e&&o.push([p[0],p[1],0]);a--;){var n=1;"circle"!==i.shape&&(n=i.shape(a/t*2*Math.PI)),o.push([p[0]+e*n*Math.cos(-a/t*2*Math.PI),p[1]+e*n*Math.sin(-a/t*2*Math.PI)*i.ellipticity,a/t*2*Math.PI])}return _[e]=o,o},z=function(){return i.abortThreshold>0&&(new Date).getTime()-m>i.abortThreshold},L=function(e,t,a){var o=i.weightFactor(t);if(o<=i.minSize)return!1;var l=1;o_[1]&&(_[1]=O),q<_[0]&&(_[0]=q),q>_[2]&&(_[2]=q);break e}}return{mu:l,occupied:T,bounds:_,gw:b,gh:g,fillTextOffsetX:f,fillTextOffsetY:y,fillTextWidth:u,fillTextHeight:c,fontSize:o}},F=function(e,t,a,o,n){for(var l=n.length;l--;){var r=e+n[l][0],s=t+n[l][1];if(r>=c||s>=h||r<0||s<0){if(!i.drawOutOfBound)return!1}else if(!u[r][s])return!1}return!0},A=function(t,a,o,n,l,r,s,u,c){var h,p,d=o.fontSize;h=f?f(n,l,d,r,s):i.color,p=S?S(n,l,d,r,s):i.classes;var m=o.bounds;m[3],m[0],m[1],m[3],m[2],m[0],e.forEach(function(e){if(e.getContext){var l=e.getContext("2d"),r=o.mu;l.save(),l.scale(1/r,1/r),l.font=i.fontWeight+" "+(d*r).toString(10)+"px "+i.fontFamily,l.fillStyle=h,l.translate((t+o.gw/2)*v*r,(a+o.gh/2)*v*r),0!==u&&l.rotate(-u),l.textBaseline="middle",l.fillText(n,o.fillTextOffsetX*r,(o.fillTextOffsetY+.5*d)*r),l.restore()}else{var s=document.createElement("span"),m="";m="rotate("+-u/Math.PI*180+"deg) ",1!==o.mu&&(m+="translateX(-"+o.fillTextWidth/4+"px) scale("+1/o.mu+")");var f={position:"absolute",display:"block",font:i.fontWeight+" "+d*o.mu+"px "+i.fontFamily,left:(t+o.gw/2)*v+o.fillTextOffsetX+"px",top:(a+o.gh/2)*v+o.fillTextOffsetY+"px",width:o.fillTextWidth+"px",height:o.fillTextHeight+"px",lineHeight:d+"px",whiteSpace:"nowrap",transform:m,webkitTransform:m,msTransform:m,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var y in h&&(f.color=h),s.textContent=n,f)s.style[y]=f[y];if(c)for(var g in c)s.setAttribute(g,c[g]);p&&(s.className+=p),e.appendChild(s)}})},W=function(t,a,i,o,n){t>=c||a>=h||t<0||a<0||(u[t][a]=!1,i&&e[0].getContext("2d").fillRect(t*v,a*v,y,y),q&&(C[t][a]={item:n,dimension:o}))},P=function(t,a,o,n,l,r){var s,u,p=l.occupied,d=i.drawMask;if(d&&((s=e[0].getContext("2d")).save(),s.fillStyle=i.maskColor),q){var m=l.bounds;u={x:(t+m[3])*v,y:(a+m[0])*v,w:(m[1]-m[3]+1)*v,h:(m[2]-m[0]+1)*v}}for(var f=p.length;f--;){var y=t+p[f][0],g=a+p[f][1];y>=c||g>=h||y<0||g<0||W(y,g,d,u,r)}d&&s.restore()},M=function(e){var t,a,o;Array.isArray(e)?(t=e[0],a=e[1]):(t=e.word,a=e.weight,o=e.attributes);var n=0===i.rotateRatio?0:Math.random()>i.rotateRatio?0:0===g?b:b+Math.round(Math.random()*g/x)*x,r=L(t,a,n);if(!r)return!1;if(z())return!1;if(!i.drawOutOfBound){var s=r.bounds;if(s[1]-s[3]+1>c||s[2]-s[0]+1>h)return!1}for(var u=d+1;u--;){var p=k(d-u);i.shuffle&&(p=[].concat(p),l(p));for(var m=0;m=i.list.length)return s(_),I("wordcloudstop",!1),void S("wordcloudstart",D);m=(new Date).getTime();var t=M(i.list[l]),a=!I("wordclouddrawn",!0,{item:i.list[l],drawn:t});if(z()||a)return s(_),i.abort(),I("wordcloudabort",!1),I("wordcloudstop",!1),void S("wordcloudstart",D);l++,_=r(e,i.wait)},i.wait)}}()}};r.isSupported=o,r.minFontSize=n,void 0!==(i=function(){return r}.apply(t,[]))&&(e.exports=i)}()}])}(a("MT78"))},"9WbB":function(e,t,a){},AyUp:function(e,t,a){},B09b:function(e,t,a){"use strict";var i=a("P2sY"),o=a.n(i),n={name:"WidgetLinechart",components:{},props:{value:Object,ispreview:Boolean},data:function(){return{options:{grid:{},color:[],title:{text:"",textStyle:{color:"#fff"}},tooltip:{trigger:"item",formatter:"{a}
{b} : {c}%"},legend:{textStyle:{color:"#fff"}},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],axisLabel:{show:!0,textStyle:{color:"#fff"}}},yAxis:{type:"value",axisLabel:{show:!0,textStyle:{color:"#fff"}}},series:[{data:[],type:"line"}]},optionsStyle:{},optionsData:{},optionsCollapse:{},optionsSetup:{}}},computed:{styleObj:function(){return{position:this.ispreview?"absolute":"static",width:this.optionsStyle.width+"px",height:this.optionsStyle.height+"px",left:this.optionsStyle.left+"px",top:this.optionsStyle.top+"px",background:this.optionsSetup.background}}},watch:{value:{handler:function(e){this.optionsStyle=e.position,this.optionsData=e.data,this.optionsCollapse=e.collapse,this.optionsSetup=e.setup,this.editorOptions()},deep:!0}},created:function(){this.optionsStyle=this.value.position,this.optionsData=this.value.data,this.optionsCollapse=this.value.collapse,this.optionsSetup=this.value.setup,this.editorOptions()},methods:{editorOptions:function(){this.setOptionsTitle(),this.setOptionsX(),this.setOptionsY(),this.setOptionsTop(),this.setOptionsTooltip(),this.setOptionsData(),this.setOptionsMargin(),this.setOptionsColor()},setOptionsTitle:function(){var e=this.optionsSetup,t={};t.text=e.titleText,t.show=e.isNoTitle,t.left=e.textAlign,t.textStyle={color:e.textColor,fontSize:e.textFontSize,fontWeight:e.textFontWeight},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize},this.options.title=t},setOptionsX:function(){var e=this.optionsSetup,t={type:"category",show:e.hideX,name:e.xName,nameTextStyle:{color:e.nameColorX,fontSize:e.nameFontSizeX},nameRotate:e.textAngle,inverse:e.reversalX,axisLabel:{show:!0,interval:e.textInterval,rotate:e.textAngle,textStyle:{color:e.Xcolor,fontSize:e.fontSizeX}},axisLine:{show:!0,lineStyle:{color:e.lineColorX}},splitLine:{show:e.isShowSplitLineX,lineStyle:{color:e.splitLineColorX}}};this.options.xAxis=t},setOptionsY:function(){var e=this.optionsSetup,t={type:"value",scale:e.scale,splitNumber:e.splitNumber,show:e.isShowY,name:e.textNameY,nameTextStyle:{color:e.nameColorY,fontSize:e.namefontSizeY},inverse:e.reversalY,axisLabel:{show:!0,rotate:e.ytextAngle,textStyle:{color:e.colorY,fontSize:e.fontSizeY}},axisLine:{show:!0,lineStyle:{color:e.lineColorY}},splitLine:{show:e.isShowSplitLineY,lineStyle:{color:e.splitLineColorY}}};this.options.yAxis=t},setOptionsTop:function(){var e=this.optionsSetup,t=this.options.series;for(var a in t)"line"==t[a].type&&(t[a].showSymbol=e.markPoint,t[a].symbolSize=e.pointSize,t[a].smooth=e.smoothCurve,e.area?t[a].areaStyle={opacity:e.areaThickness/100}:t[a].areaStyle={opacity:0},t[a].lineStyle={width:e.lineWidth},t[a].label={show:e.isShow,position:"top",distance:10,fontSize:e.fontSize,color:e.subTextColor,fontWeight:e.fontWeight});this.options.series=t},setOptionsTooltip:function(){var e=this.optionsSetup,t={trigger:"item",show:!0,textStyle:{color:e.lineColor,fontSize:e.tipsFontSize}};this.options.tooltip=t},setOptionsMargin:function(){var e=this.optionsSetup,t={left:e.marginLeft,right:e.marginRight,bottom:e.marginBottom,top:e.marginTop,containLabel:!0};this.options.grid=t},setOptionsColor:function(){var e=this.optionsSetup.customColor;if(e){for(var t=[],a=0;a1?"  "+e.name+"   "+e.value[2]+"  ":"  "+e.name+"   "+e.value+"  "}},geo:{map:"china",show:!0,roam:!1,label:{emphasis:{show:!1}},layoutSize:"80%",itemStyle:{normal:{borderColor:new o.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#00F6FF"},{offset:1,color:"#53D9FF"}],!1),borderWidth:3,shadowColor:"rgba(10,76,139,1)",shadowOffsetY:0,shadowBlur:60}}},series:[{type:"map",map:"china",aspectScale:.75,label:{normal:{position:"right",show:!0,color:"#53D9FF",fontSize:20},emphasis:{show:!0}},itemStyle:{normal:{areaColor:{x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#073684"},{offset:1,color:"#061E3D"}]},borderColor:"#215495",borderWidth:1},emphasis:{areaColor:{x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#073684"},{offset:1,color:"#2B91B7"}]}}},data:l},{type:"effectScatter",coordinateSystem:"geo",rippleEffect:{brushType:"stroke"},showEffectOn:"render",itemStyle:{normal:{color:{type:"radial",x:.5,y:.5,r:.5,colorStops:[{offset:0,color:"rgba(5,80,151,0.2)"},{offset:.8,color:"rgba(5,80,151,0.8)"},{offset:1,color:"rgba(0,108,255,0.7)"}],global:!1}}},label:{normal:{show:!0,color:"#fff",fontWeight:"bold",position:"inside",formatter:function(e){return"{cnNum|"+e.data.value[2]+"}"},rich:{cnNum:{fontSize:13,color:"#D4EEFF"}}}},symbol:"circle",symbolSize:function(e){return 0==e[2]?0:(s-u)/5990*e[2]+1.2*(s-(s-u)/5990*6e3)},data:r(l),zlevel:1}]},optionsStyle:{},optionsData:{},optionsCollapse:{},optionsSetup:{}}},computed:{styleObj:function(){return{position:this.ispreview?"absolute":"static",width:this.optionsStyle.width+"px",height:this.optionsStyle.height+"px",left:this.optionsStyle.left+"px",top:this.optionsStyle.top+"px",background:this.optionsSetup.background}}},watch:{value:{handler:function(e){this.optionsStyle=e.position,this.optionsData=e.data,this.optionsCollapse=e.setup,this.optionsSetup=e.setup,this.editorOptions()},deep:!0}},mounted:function(){this.optionsStyle=this.value.position,this.optionsData=this.value.data,this.optionsCollapse=this.value.setup,this.optionsSetup=this.value.setup,this.editorOptions()},methods:{editorOptions:function(){this.setOptionsTitle(),this.setOptionTextValue(),this.setOptionsData(),this.setOptionAirSize(),this.setOptionMapBlocak()},setOptionsTitle:function(){var e=this.optionsSetup,t={};t.show=e.isNoTitle,t.text=e.titleText,t.left=e.textAlign,t.textStyle={color:e.textColor,fontSize:e.textFontSize,fontWeight:e.textFontWeight},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize},this.options.title=t},setOptionTextValue:function(){var e=this.optionsSetup,t=this.options.series[0].label,a={position:"right",show:!0,color:e.fontTextColor,fontSize:e.fontTextSize,fontWeight:e.fontTextWeight};t.normal=a},setOptionMapBlocak:function(){var e=this.optionsSetup,t=this.options.series[0].itemStyle,a={areaColor:{x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.font0PreColor},{offset:1,color:e.font100PreColor}]},borderColor:"#215495",borderWidth:1},i={areaColor:{x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#073684"},{offset:1,color:e.fontHighlightColor}]}};t.normal=a,t.emphasis=i},setOptionAirSize:function(){s=this.optionsSetup.fontmaxSize4Pin,u=this.optionsSetup.fontminSize4Pin},setOptionsData:function(){var e=this.optionsData;"staticData"==e.dataType?this.staticDataFn(e.staticData):this.dynamicDataFn(e.dynamicData,e.refreshTime)},staticDataFn:function(e){this.options.series[0].data=e;var t=this.optionsSetup,a=this.options.series[1].label,i={show:!0,color:"#fff",fontWeight:"bold",position:"inside",formatter:function(e){return"{cnNum|"+e.data.value[2]+"}"},rich:{cnNum:{fontSize:t.fontDataSize,color:t.fontDataColor,fontWeight:t.fontDataWeight}}},o=r(e);this.options.series[1].data=o,a.normal=i},dynamicDataFn:function(e,t){var a=this;e&&(this.ispreview?(this.getEchartData(e),this.flagInter=setInterval(function(){a.getEchartData(e)},t)):this.getEchartData(e))},getEchartData:function(e){var t=this;this.queryEchartsData(e).then(function(e){t.renderingFn(e)})},renderingFn:function(e){this.options.series[0].data=e;var t=this.optionsSetup,a=this.options.series[1].label,i={show:!0,color:"#fff",fontWeight:"bold",position:"inside",formatter:function(e){return"{cnNum|"+e.data.value[2]+"}"},rich:{cnNum:{fontSize:t.fontDataSize,color:t.fontDataColor,fontWeight:t.fontDataWeight}}},o=r(e);this.options.series[1].data=o,a.normal=i}}},h=(a("TM89"),a("KHd+")),p=Object(h.a)(c,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{style:this.styleObj},[t("v-chart",{attrs:{options:this.options,autoresize:""}})],1)},[],!1,null,"0bc38d5e",null);p.options.__file="widgetAirBubbleMap.vue";t.a=p.exports},GNAU:function(e,t,a){},GV1z:function(e,t,a){},Hij9:function(e,t,a){},HlAo:function(e,t,a){"use strict";var i={name:"WidgetSlider",components:{},data:function(){return{options:{mainCell:".bd ul",autoPlay:!0,effect:"leftLoop"}}},mounted:function(){},methods:{}},o=(a("S6/o"),a("KHd+")),n=Object(o.a)(i,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("superslide",{staticClass:"slideBox",attrs:{options:e.options}},[a("div",{staticClass:"bd"},[a("ul",[a("li",[a("img",{attrs:{src:"https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=717294809,2494697366&fm=26&gp=0.jpg",alt:""}})]),e._v(" "),a("li",[a("img",{attrs:{src:"https://dss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2090090414,3038344648&fm=26&gp=0.jpg",alt:""}})])])]),e._v(" "),a("div",{staticClass:"hd",attrs:{slot:"titCell"},slot:"titCell"},[a("ul",[a("li",{staticClass:"on"},[e._v("1")]),e._v(" "),a("li",{},[e._v("2")]),e._v(" "),a("li",{},[e._v("3")])])]),e._v(" "),a("a",{staticClass:"prev",attrs:{slot:"prev",href:"javascript:void(0)"},slot:"prev"}),e._v(" "),a("a",{staticClass:"next",attrs:{slot:"next",href:"javascript:void(0)"},slot:"next"}),e._v(" "),a("span",{staticClass:"pageState",attrs:{slot:"pageStateCell"},slot:"pageStateCell"})])},[],!1,null,"7710d81e",null);n.options.__file="widgetSlider.vue";t.a=n.exports},IZ8s:function(e,t,a){"use strict";var i=a("Hij9");a.n(i).a},"Jz7/":function(e,t,a){"use strict";var i=a("P2sY"),o=a.n(i),n={name:"WidgetBarchart",components:{},props:{value:Object,ispreview:Boolean},data:function(){return{options:{grid:{},legend:{textStyle:{color:"#fff"}},xAxis:{type:"category",data:[],axisLabel:{show:!0,textStyle:{color:"#fff"}}},yAxis:{type:"value",data:[],axisLabel:{show:!0,textStyle:{color:"#fff"}}},series:[{data:[],type:"bar",barGap:"0%",itemStyle:{borderRadius:null}}]},optionsStyle:{},optionsData:{},optionsSetup:{},flagInter:null}},computed:{styleObj:function(){return{position:this.ispreview?"absolute":"static",width:this.optionsStyle.width+"px",height:this.optionsStyle.height+"px",left:this.optionsStyle.left+"px",top:this.optionsStyle.top+"px",background:this.optionsSetup.background}}},watch:{value:{handler:function(e){this.optionsStyle=e.position,this.optionsData=e.data,this.optionsCollapse=e.setup,this.optionsSetup=e.setup,this.editorOptions()},deep:!0}},mounted:function(){this.optionsStyle=this.value.position,this.optionsData=this.value.data,this.optionsCollapse=this.value.setup,this.optionsSetup=this.value.setup,this.editorOptions()},methods:{editorOptions:function(){this.setOptionsTitle(),this.setOptionsX(),this.setOptionsY(),this.setOptionsTop(),this.setOptionsTooltip(),this.setOptionsMargin(),this.setOptionsColor(),this.setOptionsData()},setOptionsTitle:function(){var e=this.optionsSetup,t={};t.text=e.titleText,t.show=e.isNoTitle,t.left=e.textAlign,t.textStyle={color:e.textColor,fontSize:e.textFontSize,fontWeight:e.textFontWeight},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize},this.options.title=t},setOptionsX:function(){var e=this.optionsSetup,t={type:"category",show:e.hideX,name:e.xName,nameTextStyle:{color:e.xNameColor,fontSize:e.xNameFontSize},nameRotate:e.textAngle,inverse:e.reversalX,axisLabel:{show:!0,interval:e.textInterval,rotate:e.textAngle,textStyle:{color:e.Xcolor,fontSize:e.fontSizeX}},axisLine:{show:!0,lineStyle:{color:e.lineColorX}},splitLine:{show:e.isShowSplitLineX,lineStyle:{color:e.splitLineColorX}}};this.options.xAxis=t},setOptionsY:function(){var e=this.optionsSetup,t={type:"value",scale:e.scale,splitNumber:e.splitNumber,show:e.isShowY,name:e.textNameY,nameTextStyle:{color:e.nameColorY,fontSize:e.nameFontSizeY},inverse:e.reversalY,axisLabel:{show:!0,rotate:e.ytextAngle,textStyle:{color:e.colorY,fontSize:e.fontSizeY}},axisLine:{show:!0,lineStyle:{color:e.lineColorY}},splitLine:{show:e.isShowSplitLineY,lineStyle:{color:e.splitLineColorY}}};this.options.yAxis=t},setOptionsTop:function(){var e=this.optionsSetup,t=this.options.series;"bar"==t[0].type&&(e.verticalShow?t[0].label={show:e.isShow,position:"right",distance:e.distance,textStyle:{fontSize:e.fontSize,color:e.subTextColor,fontWeight:e.fontWeight}}:t[0].label={show:e.isShow,position:"top",distance:e.distance,fontSize:e.fontSize,color:e.subTextColor,fontWeight:e.fontWeight}),t[0].barWidth=e.maxWidth,t[0].barMinHeight=e.minHeight},setOptionsTooltip:function(){var e=this.optionsSetup,t={trigger:"item",show:!0,textStyle:{color:e.lineColor,fontSize:e.tipsFontSize}};this.options.tooltip=t},setOptionsMargin:function(){var e=this.optionsSetup,t={left:e.marginLeft,right:e.marginRight,bottom:e.marginBottom,top:e.marginTop,containLabel:!0};this.options.grid=t},setOptionsColor:function(){var e=this.optionsSetup,t=e.customColor;if(t){for(var a=[],i=0;i{b} : {c}"},legend:{x:"center",y:"92%",textStyle:{color:"#fff"}},series:[{name:"",type:"funnel",left:"center",width:"80%",sort:"descending",label:{normal:{show:!0,position:"inside",formatter:"{c}",textStyle:{color:"#fff",fontSize:14}},emphasis:{position:"inside",formatter:"{b}: {c}"}},itemStyle:{normal:{opacity:.8,borderColor:"rgba(12, 13, 43, .9)",borderWidth:1,shadowBlur:4,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, .6)"}},data:[]}]},optionsStyle:{},optionsData:{},optionsCollapse:{},optionsSetup:{}}},computed:{styleObj:function(){return{position:this.ispreview?"absolute":"static",width:this.optionsStyle.width+"px",height:this.optionsStyle.height+"px",left:this.optionsStyle.left+"px",top:this.optionsStyle.top+"px",background:this.optionsSetup.background}}},watch:{value:{handler:function(e){this.optionsStyle=e.position,this.optionsData=e.data,this.optionsCollapse=e.collapse,this.optionsSetup=e.setup,this.editorOptions()},deep:!0}},created:function(){this.optionsStyle=this.value.position,this.optionsData=this.value.data,this.optionsCollapse=this.value.collapse,this.optionsSetup=this.value.setup,this.editorOptions()},methods:{editorOptions:function(){this.setEnding(),this.setOptionsText(),this.setOptionsTitle(),this.setOptionsTooltip(),this.setOptionsLegend(),this.setOptionsColor(),this.setOptionsData()},setEnding:function(){var e=this.optionsSetup,t=this.options.series;e.ending?t[0].sort="ascending":t[0].sort="descending"},setOptionsText:function(){var e=this.optionsSetup,t={show:e.isShow,position:"inside",formatter:"{c}",textStyle:{color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight}};this.options.series[0].label.normal=t},setOptionsTitle:function(){var e=this.optionsSetup,t={};t.text=e.titleText,t.show=e.isNoTitle,t.left=e.textAlign,t.textStyle={color:e.textColor,fontSize:e.textFontSize,fontWeight:e.textFontWeight},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize},this.options.title=t},setOptionsTooltip:function(){var e=this.optionsSetup,t={trigger:"item",show:!0,textStyle:{color:e.lineColor,fontSize:e.tipFontSize}};this.options.tooltip=t},setOptionsLegend:function(){var e=this.optionsSetup,t=this.options.legend;t.show=e.isShowLegend,t.left=e.lateralPosition,t.right=e.lateralPosition,t.top=e.longitudinalPosition,t.bottom=e.longitudinalPosition,t.orient=e.layoutFront,t.textStyle={color:e.lengedColor,fontSize:e.lengedFontSize},t.itemWidth=e.lengedWidth},setOptionsColor:function(){var e=this.optionsSetup.customColor;if(e){for(var t=[],a=0;a"+e.data.toName+"
"+e.data.value:e.name}},legend:{show:!0,orient:"vertical",top:"bottom",left:"right",textStyle:{color:"#fff"},selectedMode:"multiple"},geo:{map:"china",label:{emphasis:{show:!0,color:"white"}},roam:!0,itemStyle:{normal:{areaColor:"#323c48",borderColor:"#404a59",borderWidth:1},emphasis:{areaColor:"#2a333d"}}},series:[{type:"lines",zlevel:1,effect:{show:!1,period:6,trailLength:.7,color:"#fff",symbolSize:3},lineStyle:{normal:{color:"#a6c84c",width:0,curveness:.2}},data:[]},{type:"lines",zlevel:2,symbol:["none","arrow"],symbolSize:10,effect:{show:!0,period:4,trailLength:0,symbol:"arrow",symbolSize:5},lineStyle:{normal:{color:"#ffa022",width:1,opacity:.4,curveness:.2}},data:[]},{type:"effectScatter",coordinateSystem:"geo",zlevel:2,rippleEffect:{brushType:"stroke"},label:{normal:{show:!0,position:"right",formatter:"{b}",fontSize:22}},symbolSize:10,itemStyle:{normal:{color:"#46bee9"}},data:[]},{type:"effectScatter",coordinateSystem:"geo",zlevel:2,rippleEffect:{brushType:"stroke"},label:{normal:{show:!0,position:"right",formatter:"{b}",fontSize:22}},symbolSize:10,itemStyle:{normal:{color:"#46bee9"}},data:[]}]},optionsSetup:{}}},computed:{styleObj:function(){return{position:this.ispreview?"absolute":"static",width:this.optionsStyle.width+"px",height:this.optionsStyle.height+"px",left:this.optionsStyle.left+"px",top:this.optionsStyle.top+"px",background:this.optionsSetup.background}}},watch:{value:{handler:function(e){this.optionsStyle=e.position,this.optionsData=e.data,this.optionsSetup=e.setup,this.editorOptions()},deep:!0}},created:function(){this.optionsStyle=this.value.position,this.optionsData=this.value.data,this.optionsSetup=this.value.setup},mounted:function(){this.editorOptions()},methods:{convertData:function(e){for(var t=[],a=0;at?(this.currentRecord=u()(e),!1):(this.time=t,this.currentRecord&&(this.recordList.push(this.currentRecord),this.redoList.splice(0,this.redoList.length)),this.currentRecord=u()(e),this.length>2e3&&this.recordList.unshift(),!0)}},{key:"undo",value:function(){if(1===this.recordList.length)return!1;var e=this.recordList.pop();return this.currentRecord&&this.redoList.push(this.currentRecord),this.currentRecord=null,JSON.parse(e)}},{key:"redo",value:function(){if(0===this.redoList.length)return!1;var e=this.redoList.pop();return this.currentRecord&&this.recordList.push(this.currentRecord),this.currentRecord=null,JSON.parse(e)}}]),e}(),F=a("X4fA"),A={props:{dashboard:Object,widgets:Array},data:function(){return{uploadUrl:".//reportDashboard/import/"+this.$route.query.reportCode,revoke:null}},computed:{headers:function(){return{Authorization:Object(F.f)()}}},watch:{widgets:{handler:function(e){var t=this;this.$nextTick(function(){t.revoke.push(t.widgets)})},deep:!0}},created:function(){this.revoke=new L},methods:{saveData:function(){var e=this;return l()(o.a.mark(function t(){var a,i,n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.widgets&&0!=e.widgets.length){t.next=2;break}return t.abrupt("return",e.$message.error("请添加组件"));case 2:return a={reportCode:e.$route.query.reportCode,dashboard:{title:e.dashboard.title,width:e.dashboard.width,height:e.dashboard.height,backgroundColor:e.dashboard.backgroundColor,backgroundImage:e.dashboard.backgroundImage},widgets:e.widgets},t.next=5,Object(r.e)(a);case 5:i=t.sent,n=i.code,i.data,"200"==n&&e.$message.success("保存成功!");case 9:case"end":return t.stop()}},t,e)}))()},viewScreen:function(){var e=this.$router.resolve({path:"/screen/preview",query:{reportCode:this.$route.query.reportCode}});window.open(e.href,"_blank")},handleUndo:function(){var e=this.revoke.undo();if(!e)return!1;this.widgets=e},handleRedo:function(){var e=this.revoke.redo();if(!e)return!1;this.widgets=e},handleError:function(e){this.$message({message:"上传失败!",type:"error"})},handleUpload:function(e,t,a){this.$refs.upload.clearFiles(),this.irefresh(),"200"==e.code?this.$message({message:"导入成功!",type:"success"}):this.$message({message:e.message,type:"error"})},exportDashboard:function(e){var t=this;return l()(o.a.mark(function a(){var i,n;return o.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:i=t.$route.query.reportCode+".zip",n={reportCode:t.$route.query.reportCode,showDataSet:e},Object(r.c)(n).then(function(e){var a=t;if("application/json"==e.type){var o=new FileReader;return o.readAsText(e,"utf-8"),void(o.onload=function(){var e=JSON.parse(o.result);a.$message.error(e.message)})}var n=new Blob([e],{type:"application/octet-stream"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(n,i);else{var l=document.createElement("a");l.href=window.URL.createObjectURL(n),l.download=i,l.click(),window.URL.revokeObjectURL(l.href)}});case 3:case"end":return a.stop()}},a,t)}))()},refresh:function(){this.$emit("refresh")}}},W=(a("rQJ7"),Object(C.a)(A,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"layout-bar"},[a("div",{staticClass:"bar-item",on:{click:e.saveData}},[a("i",{staticClass:"iconfont iconsave"}),e._v("保存\n ")]),e._v(" "),a("div",{staticClass:"bar-item",on:{click:e.viewScreen}},[a("i",{staticClass:"iconfont iconyulan"}),e._v("预览\n ")]),e._v(" "),a("div",{staticClass:"bar-item",on:{click:e.handleUndo}},[a("i",{staticClass:"iconfont iconundo"}),e._v("撤销\n ")]),e._v(" "),a("div",{staticClass:"bar-item",on:{click:e.handleRedo}},[a("i",{staticClass:"iconfont iconhuifubeifen"}),e._v("恢复\n ")]),e._v(" "),a("div",{staticClass:"bar-item"},[a("el-upload",{ref:"upload",staticClass:"el-upload",attrs:{action:e.uploadUrl,headers:e.headers,accept:".zip","on-success":e.handleUpload,"on-error":e.handleError,"show-file-list":!1,limit:1}},[a("i",{staticClass:"iconfont icondaoru"})]),e._v("\n 导入\n ")],1),e._v(" "),a("div",{staticClass:"bar-item"},[a("i",{staticClass:"iconfont icondaochu"}),e._v(" "),a("el-dropdown",{on:{command:e.exportDashboard}},[a("span",{staticClass:"el-dropdown-link"},[e._v("\n 导出"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"1"}},[e._v("导出(包含数据集)")]),e._v(" "),a("el-dropdown-item",{attrs:{command:"0"}},[e._v("导出(不包含数据集)")])],1)],1)],1)])},[],!1,null,"2a602750",null));W.options.__file="topBar.vue";var P=W.exports,M=a("kZoO"),I=a.n(M),R=a("dj5/"),N=a("LUtW"),E=a("Xwna"),B=a("KZBb"),Y=a("HlAo"),X=a("g8vd"),j=a("d0ut"),V=a("8GBf"),H=a("pitY"),$=a("Jz7/"),U=a("TxjB"),G=a("B09b"),K=a("1JnI"),Z=a("w4QL"),J=a("MtHi"),Q=a("ol7W"),ee=a("Wdj4"),te=a("n042"),ae=a("Q3Rh"),ie=a("GE2R"),oe=a("Vtjs"),ne=a("OmIx"),le=a("shTM"),re=a("iSF6"),se=a("NjHz"),ue=a("qtOS"),ce=a("fJzN"),he=a("c3vL"),pe={name:"Widget",components:{widgetHref:R.a,WidgetIframe:N.a,widgetImage:E.a,WidgetMarquee:B.a,widgetSlider:Y.a,widgetTable:X.a,widgetText:j.a,widgetTime:V.a,widgetVideo:H.a,widgetBarchart:$.a,widgetGradientColorBarchart:U.a,widgetLinechart:G.a,widgetBarlinechart:K.a,WidgetPiechart:Z.a,WidgetFunnel:J.a,WidgetGauge:Q.a,WidgetPieNightingaleRoseArea:ee.a,widgetLineMap:te.a,widgetPiePercentageChart:ae.a,widgetAirBubbleMap:ie.a,widgetBarStackChart:oe.a,widgetLineStackChart:ne.a,widgetBarCompareChart:le.a,widgetLineCompareChart:re.a,widgetDecoratePieChart:se.a,widgetMoreBarLineChart:ue.a,widgetWordCloud:ce.a,widgetHeatmap:he.a},model:{prop:"value",event:"input"},props:{index:Number,type:String,bigscreen:Object,value:{type:[Object],default:function(){}},step:Number},data:function(){return{data:{setup:{},data:{},position:{}}}},computed:{widgetsWidth:function(){return this.value.position.width},widgetsHeight:function(){return this.value.position.height},widgetsLeft:function(){return this.value.position.left},widgetsTop:function(){return this.value.position.top},widgetsZIndex:function(){return this.value.position.zIndex||1}},mounted:function(){},methods:{handleBlur:function(e){var t=e.index,a=e.left,i=e.top,o=e.width,n=e.height;this.$emit("onActivated",{index:t,left:a,top:i,width:o,height:n}),this.$refs.draggable.setActive(!0)}}},de=(a("COXT"),Object(C.a)(pe,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("avue-draggable",{ref:"draggable",attrs:{step:e.step,width:e.widgetsWidth,height:e.widgetsHeight,left:e.widgetsLeft,top:e.widgetsTop,index:e.index,"z-index":-1},on:{blur:e.handleBlur}},[a(e.type,{tag:"component",attrs:{value:e.value}})],1)},[],!1,null,"75bcc958",null));de.options.__file="index.vue";var me=de.exports,fe={props:{styleObj:Object,visible:Boolean,widgets:Array,rightClickIndex:Number},data:function(){return{}},watch:{visible:function(e){e?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},methods:{closeMenu:function(){this.$emit("update:visible",!1)},deleteLayer:function(){var e=this;this.$confirm("是否删除所选图层?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log(e.rightClickIndex),e.widgets.splice(e.rightClickIndex,1),e.$message({type:"success",message:"删除成功!"})}).catch(function(){e.$message({type:"info",message:"已取消删除"})})},copyLayer:function(){var e=this.deepClone(this.widgets[this.rightClickIndex]);this.widgets.splice(this.widgets.length,0,e)},istopLayer:function(){if(this.rightClickIndex+1=this.widgets.length||(this.widgetIndex=e.index,this.widgets[e.index].value.position=e,this.widgets[e.index].options.position.forEach(function(t){for(var a in e)t.name==a&&(t.value=e[a])}),this.widgetOptions=this.deepClone(this.widgets[e.index].options),this.$emit("change",this.widgetOptions)):this.widgetOptions=this.deepClone(this.widgets[e].options)},widgetsClick:function(e){for(var t=this.$refs.widgets,a=0;a0)for(var a=0;a0){for(var t=0;t0)for(var r=0;r