(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4e41","chunk-e4a7"],{"+3Gg":function(e,t,a){"use strict";var i={name:"widgetPiePercentageChart",components:{},props:{value:Object,ispreview:Boolean},data:function(){var e=this;return{angle:0,options:{title:{text:"{nums|60}{percent|%}",x:"center",y:"center",textStyle:{rich:{nums:{fontSize:60,color:"#29EEF3"},percent:{fontSize:30,color:"#29EEF3"}}}},legend:{type:"plain",orient:"vertical",right:0,top:"10%",align:"auto",data:[{name:"1",icon:"circle"},{name:"2",icon:"circle"},{name:"3",icon:"circle"},{name:"4",icon:"circle"}],textStyle:{color:"white",fontSize:16,padding:[10,1,10,0]},selectedMode:!1},series:[{type:"custom",coordinateSystem:"none",renderItem:function(t,a){return{type:"arc",shape:{cx:a.getWidth()/2,cy:a.getHeight()/2,r:Math.min(a.getWidth(),a.getHeight())/2*.6,startAngle:(0+e.angle)*Math.PI/180,endAngle:(90+e.angle)*Math.PI/180},style:{stroke:"#0CD3DB",fill:"transparent",lineWidth:1.5},silent:!0}},data:[0]},{type:"custom",coordinateSystem:"none",renderItem:function(t,a){return{type:"arc",shape:{cx:a.getWidth()/2,cy:a.getHeight()/2,r:Math.min(a.getWidth(),a.getHeight())/2*.6,startAngle:(180+e.angle)*Math.PI/180,endAngle:(270+e.angle)*Math.PI/180},style:{stroke:"#0CD3DB",fill:"transparent",lineWidth:1.5},silent:!0}},data:[0]},{type:"custom",coordinateSystem:"none",renderItem:function(t,a){return{type:"arc",shape:{cx:a.getWidth()/2,cy:a.getHeight()/2,r:Math.min(a.getWidth(),a.getHeight())/2*.65,startAngle:(270-e.angle)*Math.PI/180,endAngle:(40-e.angle)*Math.PI/180},style:{stroke:"#0CD3DB",fill:"transparent",lineWidth:1.5},silent:!0}},data:[0]},{type:"custom",coordinateSystem:"none",renderItem:function(t,a){return{type:"arc",shape:{cx:a.getWidth()/2,cy:a.getHeight()/2,r:Math.min(a.getWidth(),a.getHeight())/2*.65,startAngle:(90-e.angle)*Math.PI/180,endAngle:(220-e.angle)*Math.PI/180},style:{stroke:"#0CD3DB",fill:"transparent",lineWidth:1.5},silent:!0}},data:[0]},{type:"custom",coordinateSystem:"none",renderItem:function(t,a){var i=a.getWidth()/2,l=a.getHeight()/2,o=Math.min(a.getWidth(),a.getHeight())/2*.65,n=e.getCirlPoint(i,l,o,90-e.angle);return{type:"circle",shape:{cx:n.x,cy:n.y,r:4},style:{stroke:"#0CD3DB",fill:"#0CD3DB"},silent:!0}},data:[0]},{type:"custom",coordinateSystem:"none",renderItem:function(t,a){var i=a.getWidth()/2,l=a.getHeight()/2,o=Math.min(a.getWidth(),a.getHeight())/2*.65,n=e.getCirlPoint(i,l,o,270-e.angle);return{type:"circle",shape:{cx:n.x,cy:n.y,r:4},style:{stroke:"#0CD3DB",fill:"#0CD3DB"},silent:!0}},data:[0]},{type:"pie",radius:["58%","45%"],silent:!0,clockwise:!0,startAngle:90,z:0,zlevel:0,label:{normal:{position:"center"}},data:[{value:60,name:"",itemStyle:{normal:{color:{colorStops:[{offset:0,color:"#4FADFD"},{offset:1,color:"#28E8FA"}]}}}},{value:40,name:"",label:{normal:{show:!1}},itemStyle:{normal:{color:"#173164"}}}]},{name:"percent",type:"gauge",radius:"58%",center:["50%","50%"],startAngle:0,endAngle:359.9,splitNumber:8,hoverAnimation:!0,axisTick:{show:!1},splitLine:{length:15,lineStyle:{width:5,color:"#061740"}},axisLabel:{show:!1},pointer:{show:!1},axisLine:{lineStyle:{opacity:0}},detail:{show:!1},data:[{value:0,name:""}]}]},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()},mounted:function(){},methods:{getCirlPoint:function(e,t,a,i){return{x:e+a*Math.cos(i*Math.PI/180),y:t+a*Math.sin(i*Math.PI/180)}},editorOptions:function(){this.setOptionsTitle(),this.setOptionsColor(),this.setOptionsData(),this.setOptionLine(),this.setOptionSurplusColor()},setOptionsTitle:function(){var e=this.optionsSetup,t=this.options.title;t.x="center",t.y="center";var a={nums:{fontSize:e.textNumFontSize,color:e.textNumColor,fontWeight:e.textNumFontWeight},percent:{fontSize:e.textPerFontSize,color:e.textPerColor,fontWeight:e.textPerFontWeight}};t.textStyle.rich=a,this.options.title=t},setOptionsColor:function(){var e=this.optionsSetup,t=this.options.series[6].data[0].itemStyle,a={color:{colorStops:[{offset:0,color:e.color0Start},{offset:1,color:e.color100End}]}};t.normal=a},setOptionSurplusColor:function(){var e=this.options.series[6].data[1].itemStyle,t={color:this.optionsSetup.colorsurplus};e.normal=t},setOptionLine:function(){var e=this.optionsSetup,t=this.options.series[7].splitLine;this.options.series[7].splitNumber=e.lineNumber,t.length=e.lineLength;var a={width:e.lineWidth,color:e.lineColor};t.lineStyle=a},setOptionsData:function(){var e=this.optionsData;"staticData"==e.dataType?this.staticDataFn(e.staticData):this.dynamicDataFn(e.dynamicData,e.refreshTime)},staticDataFn:function(e){var t=this.options.title,a=e[0].num;t.text="{nums|"+a+"}{percent|%}",this.options.series[6].data[0].value=a,this.options.series[6].data[1].value=100-a},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.options.title.text="{nums|"+e[0].value+"}{percent|%}",t.options.series[6].data[0].value=e[0].value,t.options.series[6].data[1].value=100-e[0].value})}}},l=(a("uAIp"),a("KHd+")),o=Object(l.a)(i,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,"d1f96a54",null);o.options.__file="widgetPiePercentageChart.vue";t.a=o.exports},"+lvf":function(e,t,a){},"+pa5":function(e,t,a){},"+sxJ":function(e,t,a){"use strict";var i=a("s5ii");a.n(i).a},"/C5K":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:{}},l=(a("11BW"),a("KHd+")),o=Object(l.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,"6d449818",null);o.options.__file="widgetSlider.vue";t.a=o.exports},"/RZQ":function(e,t,a){},"/rDb":function(e,t,a){},"05u8":function(e,t,a){},"07gj":function(e,t,a){"use strict";var i=a("sa8E");a.n(i).a},"0RT/":function(e,t,a){"use strict";var i=a("6i0f");a.n(i).a},"0U/b":function(e,t,a){},"11BW":function(e,t,a){"use strict";var i=a("Ss0v");a.n(i).a},"1C1b":function(e,t,a){"use strict";var i=a("/rDb");a.n(i).a},"2UlC":function(e,t,a){},"4Zv2":function(e,t,a){"use strict";a("987z");var i={name:"widgetWordCloud",components:{},props:{value:Object,ispreview:Boolean},data:function(){return{options:{tooltip:{show:!0},series:[{type:"wordCloud",size:["9%","99%"],sizeRange:[6,30],textRotation:[0,45,90,-45],rotationRange:[-45,90],shape:"circle",textPadding:0,autoSize:{enable:!0,minSize:6},textStyle:{normal:{color:function(){return"rgb("+[Math.round(160*Math.random()),Math.round(160*Math.random()),Math.round(160*Math.random())].join(",")+")"}}},data:[]}]},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.setOptionsSizeRange(),this.setOptionsRotationRange(),this.setOptionsTooltip(),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,fontStyle:e.textFontStyle},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize,fontStyle:e.subTextFontStyle},this.options.title=t},setOptionsSizeRange:function(){var e=this.optionsSetup;this.options.series[0].sizeRange=[e.minRangeSize,e.maxRangeSize]},setOptionsRotationRange:function(){var e=this.optionsSetup;this.options.series[0].rotationRange=[e.minRotationRange,e.maxRotationRange]},setOptionsTooltip:function(){var e=this.optionsSetup,t={trigger:"item",show:!0,textStyle:{color:e.tipsColor,fontSize:e.tipsFontSize}};this.options.tooltip=t},setOptionsData:function(){var e=this.optionsData;"staticData"==e.dataType?this.staticDataFn(e.staticData):this.dynamicDataFn(e.dynamicData,e.refreshTime)},staticDataFn:function(e){var t="string"==typeof e?JSON.parse(e):e;for(var a in this.options.series)this.options.series[a].data=t},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){for(var t in this.options.series)this.options.series[t].data=e}}},l=(a("Of36"),a("KHd+")),o=Object(l.a)(i,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,"56e81ae2",null);o.options.__file="widgetWordCloud.vue";t.a=o.exports},"4bCr":function(e,t,a){"use strict";var i=a("wIJw");a.n(i).a},"4i3G":function(e,t,a){"use strict";var i=a("nERQ");a.n(i).a},"4rp5":function(e,t,a){"use strict";var i=a("P2sY"),l=a.n(i),o={name:"WidgetBarStackchart",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:[],name:"",type:"line",barGap:"0%",itemStyle:{barBorderRadius: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.setOptionsTooltip(),this.setOptionsMargin(),this.setOptionsLegend(),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,fontStyle:e.textFontStyle},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize,fontStyle:e.subTextFontStyle},this.options.title=t},setOptionsX:function(){var e=this.optionsSetup,t={type:"category",show:e.hideX,name:e.nameX,nameTextStyle:{color:e.nameColorX,fontSize:e.nameFontSizeX},inverse:e.reversalX,axisLabel:{show:!0,interval:e.textInterval,rotate:e.textAngleX,textStyle:{color:e.colorX,fontSize:e.fontSizeX}},axisLine:{show:!0,lineStyle:{color:e.lineColorX,width:e.lineWidthX}},splitLine:{show:e.isShowSplitLineX,lineStyle:{color:e.splitLineColorX,width:e.splitLineWidthX}}};this.options.xAxis=t},setOptionsY:function(){var e=this.optionsSetup,t={type:"value",scale:e.scale,splitNumber:e.splitNumberY,show:e.isShowY,name:e.textNameY,nameTextStyle:{color:e.nameColorY,fontSize:e.nameFontSizeY},inverse:e.reversalY,axisLabel:{show:!0,rotate:e.textAngleY,textStyle:{color:e.colorY,fontSize:e.fontSizeY}},axisLine:{show:!0,lineStyle:{color:e.lineColorY,width:e.lineWidthY}},splitLine:{show:e.isShowSplitLineY,lineStyle:{color:e.splitLineColorY,width:e.splitLineWidthY}}};this.options.yAxis=t},getOptionArea:function(){var e=this.optionsSetup;return e.area?{opacity:e.areaThickness/100}:{opacity:0}},setOptionsTooltip:function(){var e=this.optionsSetup,t={trigger:"item",show:!0,textStyle:{color:e.tipsColor,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},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.legendColor,fontSize:e.legendFontSize},t.itemWidth=e.legendWidth},setOptionsLegendName:function(e){var t=this.optionsSetup,a=this.options.series,i=t.legendName;if(null==i||""==i){for(var l=0;l1e-10&&(l.width+=o/r,l.height+=o/r,l.x-=o/r/2,l.y-=o/r/2)}return l}return e},contain:function(e,t){var a=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),l=this.style;if(e=a[0],t=a[1],i.contain(e,t)){var o=this.path.data;if(l.hasStroke()){var n=l.lineWidth,s=l.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(l.hasFill()||(n=Math.max(n,this.strokeContainThreshold)),r.containStroke(o,n/s,e,t)))return!0}if(l.hasFill())return r.contain(o,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):l.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var a=this.shape;if(a){if(o.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 l=this.shape;for(var o in a)!l.hasOwnProperty(o)&&a.hasOwnProperty(o)&&(l[o]=a[o])}e.init&&e.init.call(this,t)};for(var a in o.inherits(t,i),e)"style"!==a&&"shape"!==a&&(t.prototype[a]=e[a]);return t},o.inherits(i,l);var h=i;e.exports=h},function(e,t){function a(e){return Math.sqrt(i(e))}function i(e){return e[0]*e[0]+e[1]*e[1]}function l(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function o(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var n="undefined"==typeof Float32Array?Array:Float32Array,r=a,s=i,u=l,c=o;t.create=function(e,t){var a=new n(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 n(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=l,t.dist=u,t.distanceSquare=o,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],l=t[1];return e[0]=a[0]*i+a[2]*l+a[4],e[1]=a[1]*i+a[3]*l+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 l=a(2),o=a(8),n=l.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(l){if(l){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,n(e,e,l),n(t,t,l),n(a,a,l),n(i,i,l),this.x=r(e[0],t[0],a[0],i[0]),this.y=r(e[1],t[1],a[1],i[1]);var o=s(e[0],t[0],a[0],i[0]),u=s(e[1],t[1],a[1],i[1]);this.width=o-this.x,this.height=u-this.y}}}(),calculateTransform:function(e){var t=this,a=e.width/t.width,i=e.height/t.height,l=o.create();return o.translate(l,l,[-t.x,-t.y]),o.scale(l,l,[a,i]),o.translate(l,l,[e.x,e.y]),l},intersect:function(e){if(!e)return!1;e instanceof i||(e=i.create(e));var t=this,a=t.x,l=t.x+t.width,o=t.y,n=t.y+t.height,r=e.x,s=e.x+e.width,u=e.y,c=e.y+e.height;return!(l=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>-h&&eh||e<-h}function o(e,t,a,i,l){var o=1-l;return o*o*(o*e+3*l*t)+l*l*(l*i+3*o*a)}function n(e,t,a,i){var l=1-i;return l*(l*e+2*i*t)+i*i*a}var r=a(2),s=r.create,u=r.distSquare,c=Math.pow,p=Math.sqrt,h=1e-8,d=1e-4,m=p(3),f=1/3,v=s(),y=s(),b=s();t.cubicAt=o,t.cubicDerivativeAt=function(e,t,a,i,l){var o=1-l;return 3*(((t-e)*o+2*(a-t)*l)*o+(i-a)*l*l)},t.cubicRootAt=function(e,t,a,l,o,n){var r=l+3*(t-a)-e,s=3*(a-2*t+e),u=3*(t-e),h=e-o,d=s*s-3*r*u,v=s*u-9*r*h,y=u*u-3*s*h,b=0;if(i(d)&&i(v))if(i(s))n[0]=0;else{var g=-u/s;g>=0&&g<=1&&(n[b++]=g)}else{var x=v*v-4*d*y;if(i(x)){var S=v/d,g=-s/r+S,w=-S/2;g>=0&&g<=1&&(n[b++]=g),w>=0&&w<=1&&(n[b++]=w)}else if(x>0){var q=p(x),D=d*s+1.5*r*(-v+q),C=d*s+1.5*r*(-v-q);D=D<0?-c(-D,f):c(D,f),C=C<0?-c(-C,f):c(C,f);var g=(-s-(D+C))/(3*r);g>=0&&g<=1&&(n[b++]=g)}else{var T=(2*d*s-3*r*v)/(2*p(d*d*d)),O=Math.acos(T)/3,L=p(d),_=Math.cos(O),g=(-s-2*L*_)/(3*r),w=(-s+L*(_+m*Math.sin(O)))/(3*r),F=(-s+L*(_-m*Math.sin(O)))/(3*r);g>=0&&g<=1&&(n[b++]=g),w>=0&&w<=1&&(n[b++]=w),F>=0&&F<=1&&(n[b++]=F)}}return b},t.cubicExtrema=function(e,t,a,o,n){var r=6*a-12*t+6*e,s=9*t+3*o-3*e-9*a,u=3*t-3*e,c=0;if(i(s)){if(l(r)){var h=-u/r;h>=0&&h<=1&&(n[c++]=h)}}else{var d=r*r-4*s*u;if(i(d))n[0]=-r/(2*s);else if(d>0){var m=p(d),h=(-r+m)/(2*s),f=(-r-m)/(2*s);h>=0&&h<=1&&(n[c++]=h),f>=0&&f<=1&&(n[c++]=f)}}return c},t.cubicSubdivide=function(e,t,a,i,l,o){var n=(t-e)*l+e,r=(a-t)*l+t,s=(i-a)*l+a,u=(r-n)*l+n,c=(s-r)*l+r,p=(c-u)*l+u;o[0]=e,o[1]=n,o[2]=u,o[3]=p,o[4]=p,o[5]=c,o[6]=s,o[7]=i},t.cubicProjectPoint=function(e,t,a,i,l,n,r,s,c,h,m){var f,g,x,S,w,q=.005,D=1/0;v[0]=c,v[1]=h;for(var C=0;C<1;C+=.05)y[0]=o(e,a,l,r,C),y[1]=o(t,i,n,s,C),(S=u(v,y))=0&&S=0&&h<=1&&(n[c++]=h)}}else{var d=s*s-4*r*u;if(i(d)){var h=-s/(2*r);h>=0&&h<=1&&(n[c++]=h)}else if(d>0){var m=p(d),h=(-s+m)/(2*r),f=(-s-m)/(2*r);h>=0&&h<=1&&(n[c++]=h),f>=0&&f<=1&&(n[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,l){var o=(t-e)*i+e,n=(a-t)*i+t,r=(n-o)*i+o;l[0]=e,l[1]=o,l[2]=r,l[3]=r,l[4]=n,l[5]=a},t.quadraticProjectPoint=function(e,t,a,i,l,o,r,s,c){var h,m=.005,f=1/0;v[0]=r,v[1]=s;for(var g=0;g<1;g+=.05){y[0]=n(e,a,l,g),y[1]=n(t,i,o,g);var x=u(v,y);x=0&&xT&&(C=0,D={}),C++,D[a]=l,l}function l(e,t,a,l,o,s){var u=m(e,t,o,s),c=i(e,t);o&&(c+=o[1]+o[3]);var p=u.outerHeight,h=n(0,c,a),d=r(0,p,l),f=new y(h,d,c,p);return f.lineHeight=u.lineHeight,f}function o(e,t,a,i,l,o,s){var u=f(e,{rich:o,truncate:s,font:t,textAlign:a,textPadding:l}),c=u.outerWidth,p=u.outerHeight,h=n(0,c,a),d=r(0,p,i);return new y(h,d,c,p)}function n(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,l){if(!t)return"";var o=(e+"").split("\n");l=u(t,a,i,l);for(var n=0,r=o.length;n=n;s++)r-=n;var u=i(a);return u>r&&(a="",u=0),r=e-u,l.ellipsis=a,l.ellipsisWidth=u,l.contentWidth=r,l.containerWidth=e,l}function c(e,t){var a=t.containerWidth,l=t.font,o=t.contentWidth;if(!a)return"";var n=i(e,l);if(n<=a)return e;for(var r=0;;r++){if(n<=o||r>=t.maxIterations){e+=t.ellipsis;break}var s=0===r?p(e,o,t.ascCharWidth,t.cnCharWidth):n>0?Math.floor(e.length*o/n):0;e=e.substr(0,s),n=i(e,l)}return""===e&&(e=t.placeholder),e}function p(e,t,a,i){for(var l=0,o=0,n=e.length;os)e="",o=[];else if(null!=p)for(var d=u(p-(a?a[1]+a[3]:0),t,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),m=0,f=o.length;mo&&v(a,e.substring(o,n)),v(a,l[2],l[1]),o=O.lastIndex}oy)return{lines:[],width:0,height:0};T.textWidth=i(T.text,F);var z=L.textWidth,W=null==z||"auto"===z;if("string"==typeof z&&"%"===z.charAt(z.length-1))T.percentWidth=z,p.push(T),z=0;else{if(W){z=T.textWidth;var A=L.textBackgroundColor,P=A&&A.image;P&&(P=b.findExistImage(P),b.isImageReady(P)&&(z=Math.max(z,P.width*k/P.height)))}var R=_?_[1]+_[3]:0;z+=R;var Y=null!=f?f-D:null;null!=Y&&Ythis._ux||g(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,l,o){return this.addData(u.C,e,t,a,i,l,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,a,i,l,o):this._ctx.bezierCurveTo(e,t,a,i,l,o)),this._xi=l,this._yi=o,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,l,o){return this.addData(u.A,e,t,a,a,i,l-i,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,i,l,o),this._xi=v(l)*a+e,this._yi=y(l)*a+e,this},arcTo:function(e,t,a,i,l){return this._ctx&&this._ctx.arcTo(e,t,a,i,l),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&&(p>0&&v<=t||p<0&&v>=t);)i=this._dashIdx,a=n[i],d+=c*a,v+=p*a,this._dashIdx=(i+1)%y,c>0&&ds||p>0&&vu||r[i%2?"moveTo":"lineTo"](c>=0?m(d,e):f(d,e),p>=0?m(v,t):f(v,t));c=d-e,p=v-t,this._dashOffset=-b(c*c+p*p)},_dashedBezierTo:function(e,t,a,l,o,n){var r,s,u,c,p,h=this._dashSum,d=this._dashOffset,m=this._lineDash,f=this._ctx,v=this._xi,y=this._yi,g=i.cubicAt,x=0,S=this._dashIdx,w=m.length,q=0;for(d<0&&(d=h+d),d%=h,r=0;r<1;r+=.1)s=g(v,e,a,o,r+.1)-g(v,e,a,o,r),u=g(y,t,l,n,r+.1)-g(y,t,l,n,r),x+=b(s*s+u*u);for(;Sd);S++);for(r=(q-d)/x;r<=1;)c=g(v,e,a,o,r),p=g(y,t,l,n,r),S%2?f.moveTo(c,p):f.lineTo(c,p),r+=m[S]/x,S=(S+1)%w;S%2!=0&&f.lineTo(o,n),s=o-c,u=n-p,this._dashOffset=-b(s*s+u*u)},_dashedQuadraticTo:function(e,t,a,i){var l=a,o=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,l,o)},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]=h[0]=h[1]=Number.MAX_VALUE,p[0]=p[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,a=0,i=0,r=0,s=0;ss||g(n-l)>c||h===p-1)&&(e.lineTo(o,n),i=o,l=n);break;case u.C:e.bezierCurveTo(r[h++],r[h++],r[h++],r[h++],r[h++],r[h++]),i=r[h-2],l=r[h-1];break;case u.Q:e.quadraticCurveTo(r[h++],r[h++],r[h++],r[h++]),i=r[h-2],l=r[h-1];break;case u.A:var m=r[h++],f=r[h++],b=r[h++],x=r[h++],S=r[h++],w=r[h++],q=r[h++],D=r[h++],C=b>x?b:x,T=b>x?1:b/x,O=b>x?x/b:1,L=Math.abs(b-x)>.001,_=S+w;L?(e.translate(m,f),e.rotate(q),e.scale(T,O),e.arc(0,0,C,S,_,1-D),e.scale(1/T,1/O),e.rotate(-q),e.translate(-m,-f)):e.arc(m,f,C,S,_,1-D),1==h&&(t=v(S)*b+m,a=y(S)*x+f),i=v(_)*b+m,l=y(_)*x+f;break;case u.R:t=i=r[h],a=l=r[h+1],e.rect(r[h++],r[h++],r[h++],r[h++]);break;case u.Z:e.closePath(),i=t,l=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],l=t[1]*a[0]+t[3]*a[1],o=t[0]*a[2]+t[2]*a[3],n=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]=l,e[2]=o,e[3]=n,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],l=t[2],o=t[4],n=t[1],r=t[3],s=t[5],u=Math.sin(a),c=Math.cos(a);return e[0]=i*c+n*u,e[1]=-i*u+n*c,e[2]=l*c+r*u,e[3]=-l*u+c*r,e[4]=c*o+u*s,e[5]=c*s-u*o,e},t.scale=function(e,t,a){var i=a[0],l=a[1];return e[0]=t[0]*i,e[1]=t[1]*l,e[2]=t[2]*i,e[3]=t[3]*l,e[4]=t[4]*i,e[5]=t[5]*l,e},t.invert=function(e,t){var a=t[0],i=t[2],l=t[4],o=t[1],n=t[3],r=t[5],s=a*n-o*i;return s?(s=1/s,e[0]=n*s,e[1]=-o*s,e[2]=-i*s,e[3]=a*s,e[4]=(i*r-n*l)*s,e[5]=(o*l-a*r)*s,e):null}},function(e,t,a){function i(e){return Math.floor(Math.log(e)/Math.LN10)}var l=a(0),o=1e-4,n=/^(?:(\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 l=t[1]-t[0],o=a[1]-a[0];if(0===l)return 0===o?a[0]:(a[0]+a[1])/2;if(i)if(l>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])/l*o+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 l=t.indexOf(".");return l<0?0:t.length-1-l},t.getPixelPrecision=function(e,t){var a=Math.log,i=Math.LN10,l=Math.floor(a(e[1]-e[0])/i),o=Math.round(a(Math.abs(t[1]-t[0]))/i),n=Math.min(Math.max(-l+o,0),20);return isFinite(n)?n:20},t.getPercentWithPrecision=function(e,t,a){if(!e[t])return 0;var i=l.reduce(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(0===i)return 0;for(var o=Math.pow(10,a),n=l.map(e,function(e){return(isNaN(e)?0:e)/i*o*100}),r=100*o,s=l.map(n,function(e){return Math.floor(e)}),u=l.reduce(s,function(e,t){return e+t},0),c=l.map(n,function(e,t){return e-s[t]});up&&(p=c[d],h=d);++s[h],c[h]=0,++u}return s[t]/o},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>-o&&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||l&&i.indexOf(l,r)<0)){var s=t.getShallow(r);null!=s&&(o[e[n][0]]=s)}}return o}}},function(e,t,a){function i(e){for(var t in e=e||{},n.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new o(e.style,this),this._rect=null,this.__clipPaths=[]}var l=a(0),o=a(40),n=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?n.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 o(e,this),this.dirty(!1),this}},l.inherits(i,n),l.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 l=a(0),o=a(5),n=a(9),r=l.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},p=o.truncateText,h=o.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){l.isArray(t)||(t=[t]);var o=t.length;if(!o)return"";for(var n=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=n.parseDate(t),l=a?"UTC":"",o=i["get"+l+"FullYear"](),r=i["get"+l+"Month"]()+1,s=i["get"+l+"Date"](),u=i["get"+l+"Hours"](),p=i["get"+l+"Minutes"](),h=i["get"+l+"Seconds"]();return e=e.replace("MM",c(r)).replace("M",r).replace("yyyy",o).replace("yy",o%100).replace("dd",c(s)).replace("d",s).replace("hh",c(u)).replace("h",u).replace("mm",c(p)).replace("m",p).replace("ss",c(h)).replace("s",h)},t.capitalFirst=function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},t.truncateText=p,t.getTextRect=h},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 l(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 l=function(e){this.value=e,this.next,this.prev},o=function(e){this._list=new a,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},n=o.prototype;n.put=function(e,t){var a=this._list,i=this._map,o=null;if(null==i[e]){var n=a.len(),r=this._lastRemovedEntry;if(n>=this._maxSize&&n>0){var s=a.head;a.remove(s),delete i[s.key],o=s.value,this._lastRemovedEntry=s}r?r.value=t:r=new l(t),r.key=e,a.insertEntry(r),i[e]=r}return o},n.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},n.clear=function(){this._list.clear(),this._map={}};var r=o;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.]+))/),l=e.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(e);return a&&(t.firefox=!0,t.version=a[1]),i&&(t.ie=!0,t.version=i[1]),l&&(t.edge=!0,t.version=l[1]),o&&(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),l=a(42),o=a(17),n=a(43),r=a(0),s=function(e){o.call(this,e),l.call(this,e),n.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 l=a(8),o=a(2),n=l.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||l.create(),a?this.getLocalTransform(i):n(i),t&&(a?l.mul(i,e.transform,i):l.copy(i,e.transform)),this.transform=i,this.invTransform=this.invTransform||l.create(),l.invert(this.invTransform,i)):i&&n(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&&(l.mul(c,e.invTransform,t),t=c);var a=t[0]*t[0]+t[1]*t[1],o=t[2]*t[2]+t[3]*t[3],n=this.position,r=this.scale;i(a-1)&&(a=Math.sqrt(a)),i(o-1)&&(o=Math.sqrt(o)),t[0]<0&&(a=-a),t[3]<0&&(o=-o),n[0]=t[4],n[1]=t[5],r[0]=a,r[1]=o,this.rotation=Math.atan2(-t[1]/o,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&&o.applyTransform(a,a,i),a},u.transformCoordToGlobal=function(e,t){var a=[e,t],i=this.transform;return i&&o.applyTransform(a,a,i),a},s.getLocalTransform=function(e,t){n(t=t||[]);var a=e.origin,i=e.scale||[1,1],o=e.rotation||0,r=e.position||[0,0];return a&&(t[4]-=a[0],t[5]-=a[1]),l.scale(t,t,i),o&&l.rotate(t,t,o),a&&(t[4]+=a[0],t[5]+=a[1]),t[4]+=r[0],t[5]+=r[1],t};var p=s;e.exports=p},function(e,t,a){function i(e){return(e=Math.round(e))<0?0:e>255?255:e}function l(e){return e<0?0:e>1?1:e}function o(e){return i(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function n(e){return l(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,l){return e[0]=t,e[1]=a,e[2]=i,e[3]=l,e}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function p(e,t){x&&c(x,t),x=g.put(e,x||t.slice())}function h(e,t){if(e){t=t||[];var a=g.get(e);if(a)return c(t,a);var i=(e+="").replace(/ /g,"").toLowerCase();if(i in b)return c(t,b[i]),p(e,t),t;if("#"!==i.charAt(0)){var l=i.indexOf("("),r=i.indexOf(")");if(-1!==l&&r+1===i.length){var s=i.substr(0,l),h=i.substr(l+1,r-(l+1)).split(","),m=1;switch(s){case"rgba":if(4!==h.length)return void u(t,0,0,0,1);m=n(h.pop());case"rgb":return 3!==h.length?void u(t,0,0,0,1):(u(t,o(h[0]),o(h[1]),o(h[2]),m),p(e,t),t);case"hsla":return 4!==h.length?void u(t,0,0,0,1):(h[3]=n(h[3]),d(h,t),p(e,t),t);case"hsl":return 3!==h.length?void u(t,0,0,0,1):(d(h,t),p(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),p(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),p(e,t),t):void u(t,0,0,0,1)}}}}function d(e,t){var a=(parseFloat(e[0])%360+360)%360/360,l=n(e[1]),o=n(e[2]),s=o<=.5?o*(l+1):o+l-o*l,c=2*o-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 o=e*(t.length-1),n=Math.floor(o),r=Math.ceil(o),u=t[n],c=t[r],p=o-n;return a[0]=i(s(u[0],c[0],p)),a[1]=i(s(u[1],c[1],p)),a[2]=i(s(u[2],c[2],p)),a[3]=l(s(u[3],c[3],p)),a}}function f(e,t,a){if(t&&t.length&&e>=0&&e<=1){var o=e*(t.length-1),n=Math.floor(o),r=Math.ceil(o),u=h(t[n]),c=h(t[r]),p=o-n,d=v([i(s(u[0],c[0],p)),i(s(u[1],c[1],p)),i(s(u[2],c[2],p)),l(s(u[3],c[3],p))],"rgba");return a?{color:d,leftIndex:n,rightIndex:r,value:o}: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),b={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]},g=new y(20),x=null,S=m,w=f;t.parse=h,t.lift=function(e,t){var a=h(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=h(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=h(e))return e=function(e){if(e){var t,a,i=e[0]/255,l=e[1]/255,o=e[2]/255,n=Math.min(i,l,o),r=Math.max(i,l,o),s=r-n,u=(r+n)/2;if(0===s)t=0,a=0;else{a=u<.5?s/(r+n):s/(2-r-n);var c=((r-i)/6+s/2)/s,p=((r-l)/6+s/2)/s,h=((r-o)/6+s/2)/s;i===r?t=h-p:l===r?t=1/3+c-h:o===r&&(t=2/3+p-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]=n(a)),null!=i&&(e[2]=n(i)),v(d(e),"rgba")},t.modifyAlpha=function(e,t){if((e=h(e))&&null!=t)return e[3]=l(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 l(e,t,a,i,l){var u=e.__textCotentBlock;u&&!e.__dirty||(u=e.__textCotentBlock=q.parseRichText(a,i)),function(e,t,a,i,l){var u=a.width,p=a.outerWidth,h=a.outerHeight,d=i.textPadding,m=c(0,i,l),f=m.baseX,v=m.baseY,y=m.textAlign,b=m.textVerticalAlign;o(t,i,l,f,v);var g=q.adjustTextX(f,p,y),x=q.adjustTextY(v,h,b),S=g,w=x;d&&(S+=d[3],w+=d[0]);var D=S+u;r(i)&&s(e,t,i,g,x,p,h);for(var C=0;C=0&&"right"===(T=L[P]).textAlign;)n(e,t,T,i,F,w,A,"right"),k-=T.width,A-=T.width,P--;for(W+=(u-(W-S)-(D-A)-k)/2;z<=P;)T=L[z],n(e,t,T,i,F,w,W+T.width/2,"center"),W+=T.width,z++;w+=F}}(e,t,u,i,l)}function o(e,t,a,i,l){if(a&&t.textRotation){var o=t.textOrigin;"center"===o?(i=a.width/2+a.x,l=a.height/2+a.y):o&&(i=o[0]+a.x,l=o[1]+a.y),e.translate(i,l),e.rotate(-t.textRotation),e.translate(-i,-l)}}function n(e,t,a,i,l,o,n,u){var c=i.rich[a.styleName]||{},m=a.textVerticalAlign,v=o+l/2;"top"===m?v=o+a.height/2:"bottom"===m&&(v=o+l-a.height/2),!a.isLineHolder&&r(c)&&s(e,t,c,"right"===u?n-a.width:"center"===u?n-a.width/2:n,v-a.height/2,a.width,a.height);var g=a.textPadding;g&&(n=f(n,u,g),v-=a.height/2-g[2]-a.textHeight/2),p(t,"shadowBlur",b(c.textShadowBlur,i.textShadowBlur,0)),p(t,"shadowColor",c.textShadowColor||i.textShadowColor||"transparent"),p(t,"shadowOffsetX",b(c.textShadowOffsetX,i.textShadowOffsetX,0)),p(t,"shadowOffsetY",b(c.textShadowOffsetY,i.textShadowOffsetY,0)),p(t,"textAlign",u),p(t,"textBaseline","middle"),p(t,"font",a.font||q.DEFAULT_FONT);var x=h(c.textStroke||i.textStroke,w),S=d(c.textFill||i.textFill),w=y(c.textStrokeWidth,i.textStrokeWidth);x&&(p(t,"lineWidth",w),p(t,"strokeStyle",x),t.strokeText(a.text,n,v)),S&&(p(t,"fillStyle",S),t.fillText(a.text,n,v))}function r(e){return e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor}function s(e,t,a,i,l,o,n){var r=a.textBackgroundColor,s=a.textBorderWidth,c=a.textBorderColor,h=S(r);if(p(t,"shadowBlur",a.textBoxShadowBlur||0),p(t,"shadowColor",a.textBoxShadowColor||"transparent"),p(t,"shadowOffsetX",a.textBoxShadowOffsetX||0),p(t,"shadowOffsetY",a.textBoxShadowOffsetY||0),h||s&&c){t.beginPath();var d=a.textBorderRadius;d?D.buildPath(t,{x:i,y:l,width:o,height:n,r:d}):t.rect(i,l,o,n),t.closePath()}if(h)p(t,"fillStyle",r),t.fill();else if(w(r)){var m=r.image;(m=C.createOrUpdateImage(m,null,e,u,r))&&C.isImageReady(m)&&t.drawImage(m,i,l,o,n)}s&&c&&(p(t,"lineWidth",s),p(t,"strokeStyle",c),t.stroke())}function u(e,t){t.image=e}function c(e,t,a){var i=t.x||0,l=t.y||0,o=t.textAlign,n=t.textVerticalAlign;if(a){var r=t.textPosition;if(r instanceof Array)i=a.x+m(r[0],a.width),l=a.y+m(r[1],a.height);else{var s=q.adjustTextPositionOnRect(r,a,t.textDistance);i=s.x,l=s.y,o=o||s.textAlign,n=n||s.textVerticalAlign}var u=t.textOffset;u&&(i+=u[0],l+=u[1])}return{baseX:i,baseY:l,textAlign:o,textVerticalAlign:n}}function p(e,t,a){return e[t]=a,e[t]}function h(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,b=v.retrieve3,g=v.each,x=v.normalizeCssArray,S=v.isString,w=v.isObject,q=a(5),D=a(21),C=a(10),T={left:1,right:1,center:1},O={top:1,bottom:1,middle:1};t.normalizeTextStyle=function(e){return i(e),g(e.rich,i),e},t.renderText=function(e,t,a,i,n){i.rich?l(e,t,a,i,n):function(e,t,a,i,l){var n=p(t,"font",i.font||q.DEFAULT_FONT),u=i.textPadding,m=e.__textCotentBlock;m&&!e.__dirty||(m=e.__textCotentBlock=q.parsePlainText(a,n,u,i.truncate));var v=m.outerHeight,y=m.lines,b=m.lineHeight,g=c(0,i,l),x=g.baseX,S=g.baseY,w=g.textAlign,D=g.textVerticalAlign;o(t,i,l,x,S);var C=q.adjustTextY(S,v,D),T=x,O=C,L=r(i);if(L||u){var _=q.getWidth(a,n),F=_;u&&(F+=u[1]+u[3]);var k=q.adjustTextX(x,F,w);L&&s(e,t,i,k,C,F,v),u&&(T=f(x,w,u),O+=u[0])}p(t,"textAlign",w||"left"),p(t,"textBaseline","middle"),p(t,"shadowBlur",i.textShadowBlur||0),p(t,"shadowColor",i.textShadowColor||"transparent"),p(t,"shadowOffsetX",i.textShadowOffsetX||0),p(t,"shadowOffsetY",i.textShadowOffsetY||0),O+=b/2;var z=i.textStrokeWidth,W=h(i.textStroke,z),A=d(i.textFill);W&&(p(t,"lineWidth",z),p(t,"strokeStyle",W)),A&&p(t,"fillStyle",A);for(var P=0;Pu&&(a*=u/(n=a+i),i*=u/n),l+o>u&&(l*=u/(n=l+o),o*=u/n),i+l>c&&(i*=c/(n=i+l),l*=c/n),a+o>c&&(a*=c/(n=a+o),o*=c/n),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-l),0!==l&&e.quadraticCurveTo(r+u,s+c,r+u-l,s+c),e.lineTo(r+o,s+c),0!==o&&e.quadraticCurveTo(r,s+c,r,s+c-o),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),l=a(67);t.buildPath=function(e,t,a){var o=t.points,n=t.smooth;if(o&&o.length>=2){if(n&&"spline"!==n){var r=l(o,n,a,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var s=o.length,u=0;u<(a?s:s-1);u++){var c=r[2*u],p=r[2*u+1],h=o[(u+1)%s];e.bezierCurveTo(c[0],c[1],p[0],p[1],h[0],h[1])}}else{"spline"===n&&(o=i(o,a)),e.moveTo(o[0][0],o[0][1]);for(var u=1,d=o.length;u128){var s=a.data[n]+a.data[n+1]+a.data[n+2];l+=s,++o}}for(var u=l/o,n=0;nu?(i.data[n]=0,i.data[n+1]=0,i.data[n+2]=0,i.data[n+3]=0):(i.data[n]=255,i.data[n+1]=255,i.data[n+2]=255,i.data[n+3]=255)}t.putImageData(i,0,0)}(u)}catch(e){console.error("Invalid mask image"),console.error(e.toString())}var h=a.get("sizeRange"),d=a.get("rotationRange"),m=s.getDataExtent("value"),f=Math.PI/180,v=a.get("gridSize");o(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,h),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:!p,rotateRatio:1,rotationStep:a.get("rotationStep")*f,drawOutOfBound:a.get("drawOutOfBound"),shuffle:!1,shape:a.get("shape")}),u.addEventListener("wordclouddrawn",n),a.layoutInstance&&a.layoutInstance.dispose(),a.layoutInstance={ondraw:null,dispose:function(){u.removeEventListener("wordclouddrawn",n),u.addEventListener("wordclouddrawn",function(e){e.preventDefault()})}}})}),i.registerPreprocessor(function(e){function t(e){e&&i.util.each(l,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 l=["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,l){var o=0,n=0;null==i&&(i=1/0),null==l&&(l=1/0);var r=0;t.eachChild(function(s,u){var c,p,h=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=o+v)>i||s.newline?(o=0,c=v,n+=r+a,r=d.height):r=Math.max(r,d.height)}else{var y=d.height+(f?-f.y+d.y:0);(p=n+y)>l||s.newline?(o+=r+a,n=0,p=y,r=d.width):r=Math.max(r,d.width)}s.newline||(h[0]=o,h[1]=n,"horizontal"===e?o=c+a:n=p+a)})}function l(e,t,a){a=c.normalizeCssArray(a||0);var i=t.width,l=t.height,o=u(e.left,i),n=u(e.top,l),s=u(e.right,i),p=u(e.bottom,l),h=u(e.width,i),d=u(e.height,l),m=a[2]+a[0],f=a[1]+a[3],v=e.aspect;switch(isNaN(h)&&(h=i-s-f-o),isNaN(d)&&(d=l-p-m-n),null!=v&&(isNaN(h)&&isNaN(d)&&(v>i/l?h=.8*i:d=.8*l),isNaN(h)&&(h=v*d),isNaN(d)&&(d=h/v)),isNaN(o)&&(o=i-s-h-f),isNaN(n)&&(n=l-p-d-m),e.left||e.right){case"center":o=i/2-h/2-a[3];break;case"right":o=i-h-f}switch(e.top||e.bottom){case"middle":case"center":n=l/2-d/2-a[0];break;case"bottom":n=l-d-m}o=o||0,n=n||0,isNaN(h)&&(h=i-f-o-(s||0)),isNaN(d)&&(d=l-m-n-(p||0));var y=new r(o+a[3],n+a[0],h,d);return y.margin=a,y}function o(e,t){return t&&e&&p(h,function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e}var n=a(0),r=a(3),s=a(9),u=s.parsePercent,c=a(13),p=n.each,h=["left","right","top","bottom","width","height"],d=[["width","left","right"],["height","top","bottom"]],m=i,f=n.curry(i,"vertical"),v=n.curry(i,"horizontal");t.LOCATION_PARAMS=h,t.HV_NAMES=d,t.box=m,t.vbox=f,t.hbox=v,t.getAvailableSize=function(e,t,a){var i=t.width,l=t.height,o=u(e.x,i),n=u(e.y,l),r=u(e.x2,i),s=u(e.y2,l);return(isNaN(o)||isNaN(parseFloat(e.x)))&&(o=0),(isNaN(r)||isNaN(parseFloat(e.x2)))&&(r=i),(isNaN(n)||isNaN(parseFloat(e.y)))&&(n=0),(isNaN(s)||isNaN(parseFloat(e.y2)))&&(s=l),a=c.normalizeCssArray(a||0),{width:Math.max(r-o-a[1]-a[3],0),height:Math.max(s-n-a[0]-a[2],0)}},t.getLayoutRect=l,t.positionElement=function(e,t,a,i,o){var s=!o||!o.hv||o.hv[0],u=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s||u){var p;if("raw"===c)p="group"===e.type?new r(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(p=e.getBoundingRect(),e.needLocalTransform()){var h=e.getLocalTransform();(p=p.clone()).applyTransform(h)}t=l(n.defaults({width:p.width,height:p.height},t),a,i);var d=e.position,m=s?t.x-p.x:0,f=u?t.y-p.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 n={},r=0,u={},c=0;if(p(a,function(t){u[t]=e[t]}),p(a,function(e){l(t,e)&&(n[e]=u[e]=t[e]),o(n,e)&&r++,o(u,e)&&c++}),s[i])return o(t,a[1])?u[a[2]]=null:o(t,a[2])&&(u[a[1]]=null),u;if(2!==c&&r){if(r>=2)return n;for(var h=0;h=a.length&&a.push({option:e})}}),a},t.makeIdAndName=function(e){var t=n.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;n.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,l=e.option,o=e.keyInfo;if(p(l)){if(o.name=null!=l.name?l.name+"":i?i.name:"\0-",i)o.id=i.id;else if(null!=l.id)o.id=l.id+"";else{var n=0;do{o.id="\0"+o.name+"\0"+n++}while(t.get(o.id))}t.set(o.id,e)}})},t.isIdInner=l,t.compressBatches=function(e,t){function a(e,t,a){for(var l=0,o=e.length;l=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 D(e,t,a,i,l,o){if("function"==typeof l&&(o=l,l=null),i&&i.isAnimationEnabled()){var n=e?"Update":"",r=i.getShallow("animationDuration"+n),s=i.getShallow("animationEasing"+n),u=i.getShallow("animationDelay"+n);"function"==typeof u&&(u=u(l,i.getAnimationDelayParams?i.getAnimationDelayParams(t,l):null)),"function"==typeof r&&(r=r(l)),r>0?t.animateTo(a,r,u||0,s,o,!!o):(t.stopAnimation(),t.attr(a),o&&o())}else t.stopAnimation(),t.attr(a),o&&o()}function C(e,t,a,i,l){D(!0,e,t,a,i,l)}function T(e,t,a){return t&&!O.isArrayLike(t)&&(t=W.getLocalTransform(t)),a&&(t=F.invert([],t)),k.applyTransform([],e,t)}var O=a(0),L=a(39),_=a(18),F=a(8),k=a(2),z=a(1),W=a(17),A=a(58);t.Image=A;var P=a(59);t.Group=P;var R=a(60);t.Text=R;var Y=a(61);t.Circle=Y;var M=a(62);t.Sector=M;var I=a(64);t.Ring=I;var E=a(65);t.Polygon=E;var N=a(68);t.Polyline=N;var B=a(69);t.Rect=B;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 K=a(3);t.BoundingRect=K;var G=Math.round,Z=Math.max,Q=Math.min,J={},ee=L.mergePath;t.extendShape=function(e){return z.extend(e)},t.extendPath=function(e,t){return L.extendFromString(e,t)},t.makePath=i,t.makeImage=function(e,t,a){var i=new A({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===a){var o={width:e.width,height:e.height};i.setStyle(l(t,o))}}});return i},t.mergePath=ee,t.resizePath=o,t.subPixelOptimizeLine=function(e){var t=e.shape,a=e.style.lineWidth;return G(2*t.x1)===G(2*t.x2)&&(t.x1=t.x2=n(t.x1,a,!0)),G(2*t.y1)===G(2*t.y2)&&(t.y1=t.y2=n(t.y1,a,!0)),e},t.subPixelOptimizeRect=function(e){var t=e.shape,a=e.style.lineWidth,i=t.x,l=t.y,o=t.width,r=t.height;return t.x=n(t.x,a,!0),t.y=n(t.y,a,!0),t.width=Math.max(n(i+o,a,!1)-t.x,0===o?0:1),t.height=Math.max(n(l+r,a,!1)-t.y,0===r?0:1),e},t.subPixelOptimize=n,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",b)},t.setLabelStyle=function(e,t,a,i,l,o,n){var r=(l=l||J).labelFetcher,s=l.labelDataIndex,u=l.labelDimIndex,c=a.getShallow("show"),p=i.getShallow("show"),h=c||p?O.retrieve2(r?r.getFormattedLabel(s,"normal",null,u):null,l.defaultText):null,d=c?h:null,m=p?O.retrieve2(r?r.getFormattedLabel(s,"emphasis",null,u):null,h):null;null==d&&null==m||(g(e,a,o,l),g(t,i,n,l,!0)),e.text=d,t.text=m},t.setTextStyle=g,t.setText=function(e,t,a){var i,l={isRectText:!0};!1===a?i=!0:l.autoColor=a,x(e,t,l,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=C,t.initProps=function(e,t,a,i,l){D(!1,e,t,a,i,l)},t.getTransform=function(e,t){for(var a=F.identity([]);e&&e!==t;)F.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]),l=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-l:"bottom"===e?l:0];return o=T(o,t,a),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},t.groupTransition=function(e,t,a,i){function l(e){var t={position:k.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=O.extend({},e.shape)),t}if(e&&t){var o=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=o[e.anid];if(t){var i=l(e);e.attr(l(t)),C(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=Q(a,t.x+t.width);var i=e[1];return i=Z(i,t.y),i=Q(i,t.y+t.height),[a,i]})},t.clipRectByRect=function(e,t){var a=Z(e.x,t.x),i=Q(e.x+e.width,t.x+t.width),l=Z(e.y,t.y),o=Q(e.y+e.height,t.y+t.height);if(i>=a&&o>=l)return{x:a,y:l,width:i-a,height:o-l}},t.createIcon=function(e,t,a){var l=(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://")?(l.image=e.slice(8),O.defaults(l,a),new A(t)):i(e.replace("path://",""),t,a,"center")}},function(e,t,a){function i(e,t,a,i,l,o,n,r,s,d,v){var y=s*(h/180),b=p(y)*(e-a)/2+c(y)*(t-i)/2,g=-1*c(y)*(e-a)/2+p(y)*(t-i)/2,x=b*b/(n*n)+g*g/(r*r);x>1&&(n*=u(x),r*=u(x));var S=(l===o?-1:1)*u((n*n*(r*r)-n*n*(g*g)-r*r*(b*b))/(n*n*(g*g)+r*r*(b*b)))||0,w=S*n*g/r,q=S*-r*b/n,D=(e+a)/2+p(y)*w-c(y)*q,C=(t+i)/2+c(y)*w+p(y)*q,T=f([1,0],[(b-w)/n,(g-q)/r]),O=[(b-w)/n,(g-q)/r],L=[(-1*b-w)/n,(-1*g-q)/r],_=f(O,L);m(O,L)<=-1&&(_=h),m(O,L)>=1&&(_=0),0===o&&_>0&&(_-=2*h),1===o&&_<0&&(_+=2*h),v.addData(d,D,C,n,r,T,_,y,o)}function l(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,l){for(var o="radial"===t.type?i:a,n=o(e,t,l),r=t.colorStops,s=0;s3&&(t=a.call(t,1));for(var l=this._$handlers[e],o=l.length,n=0;n4&&(t=a.call(t,1,t.length-1));for(var l=t[t.length-1],o=this._$handlers[e],n=o.length,r=0;r0&&this.animate(e,!1).when(null==i?500:i,o).delay(l||0),this}};var h=p;e.exports=h},function(e,t,a){function i(e,t){return e[t]}function l(e,t,a){e[t]=a}function o(e,t,a){return(t-e)*a+e}function n(e,t,a){return a>.5?t:e}function r(e,t,a,i,l){var n=e.length;if(1==l)for(var r=0;rl)e.length=l;else for(var o=i;o=0&&!(O[a]<=t);a--);a=Math.min(a,x-2)}else{for(a=N;at);a++);a=Math.min(a-1,x-2)}N=a,B=t;var i=O[a+1]-O[a];if(0!==i)if(R=(t-O[a])/i,g)if(M=L[a],Y=L[0===a?a:a-1],I=L[a>x-2?x-1:a+1],E=L[a>x-3?x-1:a+2],q)c(Y,M,I,E,R,R*R,R*R*R,m(e,l),T);else{if(D)s=c(Y,M,I,E,R,R*R,R*R*R,X,1),s=d(X);else{if(C)return n(M,I,R);s=p(Y,M,I,E,R,R*R,R*R*R)}y(e,l,s)}else if(q)r(L[a],L[a+1],R,m(e,l),T);else{var s;if(D)r(L[a],L[a+1],R,X,1),s=d(X);else{if(C)return n(L[a],L[a+1],R);s=o(L[a],L[a+1],R)}y(e,l,s)}},ondestroy:a});return t&&"spline"!==t&&(j.easing=t),j}}}var f=a(45),v=a(18),y=a(0),b=y.isArrayLike,g=Array.prototype.slice,x=function(e,t,a,o){this._tracks={},this._target=e,this._loop=t||!1,this._getter=a||i,this._setter=o||l,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 l=this._getter(this._target,i);if(null==l)continue;0!==e&&a[i].push({time:0,value:h(l)})}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&&(o=function(){for(var e in arguments)console.log(arguments[e])});var n=o;e.exports=n},function(e,t,a){var i=a(20),l=a(3),o=new l,n=function(){};n.prototype={constructor:n,drawRectText:function(e,t){var a=this.style;t=a.textRect||t,this.__dirty&&i.normalizeTextStyle(a,!0);var l=a.text;if(null!=l&&(l+=""),i.needDrawText(l,a)){e.save();var n=this.transform;a.transformText?this.setTransform(e):n&&(o.copy(t),o.applyTransform(n),t=o),i.renderText(this,e,l,a,t),e.restore()}}};var r=n;e.exports=r},function(e,t,a){var i=a(2),l=a(4),o=Math.min,n=Math.max,r=Math.sin,s=Math.cos,u=2*Math.PI,c=i.create(),p=i.create(),h=i.create(),d=[],m=[];t.fromPoints=function(e,t,a){if(0!==e.length){var i,l=e[0],r=l[0],s=l[0],u=l[1],c=l[1];for(i=1;i1e-4)return m[0]=e-a,m[1]=t-l,f[0]=e+a,void(f[1]=t+l);if(c[0]=s(o)*a+e,c[1]=r(o)*l+t,p[0]=s(n)*a+e,p[1]=r(n)*l+t,v(m,c,p),y(f,c,p),(o%=u)<0&&(o+=u),(n%=u)<0&&(n+=u),o>n&&!d?n+=u:oo&&(h[0]=s(x)*a+e,h[1]=r(x)*l+t,v(m,h,m),y(f,h,f))}},function(e,t,a){function i(e,t){return Math.abs(e-t)t&&c>i&&c>n&&c>s||c1&&l(),h=v.cubicAt(t,i,n,s,w[0]),f>1&&(d=v.cubicAt(t,i,n,s,w[1]))),2==f?bt&&r>i&&r>o||r=0&&u<=1){for(var c=0,p=v.quadraticAt(t,i,o,u),h=0;ha||r<-a)return 0;var s=Math.sqrt(a*a-r*r);S[0]=-s,S[1]=s;var u=Math.abs(i-l);if(u<1e-4)return 0;if(u%g<1e-4){i=0,l=g;var c=o?1:-1;return n>=S[0]+e&&n<=S[1]+e?c:0}if(o){var s=i;i=f(l),l=f(s)}else i=f(i),l=f(l);i>l&&(l+=g);for(var p=0,h=0;h<2;h++){var d=S[h];if(d+e>n){var m=Math.atan2(r,d),c=o?1:-1;m<0&&(m=g+m),(m>=i&&m<=l||m+g>=i&&m+g<=l)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),p+=c)}}return p}function s(e,t,a,l,s){for(var u=0,m=0,f=0,v=0,g=0,x=0;x1&&(a||(u+=y(m,f,v,g,l,s))),1==x&&(m=e[x],f=e[x+1],v=m,g=f),S){case b.M:v=e[x++],g=e[x++],m=v,f=g;break;case b.L:if(a){if(c.containStroke(m,f,e[x],e[x+1],t,l,s))return!0}else u+=y(m,f,e[x],e[x+1],l,s)||0;m=e[x++],f=e[x++];break;case b.C:if(a){if(p.containStroke(m,f,e[x++],e[x++],e[x++],e[x++],e[x],e[x+1],t,l,s))return!0}else u+=o(m,f,e[x++],e[x++],e[x++],e[x++],e[x],e[x+1],l,s)||0;m=e[x++],f=e[x++];break;case b.Q:if(a){if(h.containStroke(m,f,e[x++],e[x++],e[x],e[x+1],t,l,s))return!0}else u+=n(m,f,e[x++],e[x++],e[x],e[x+1],l,s)||0;m=e[x++],f=e[x++];break;case b.A:var w=e[x++],q=e[x++],D=e[x++],C=e[x++],T=e[x++],O=e[x++],L=(e[x++],1-e[x++]),_=Math.cos(T)*D+w,F=Math.sin(T)*C+q;x>1?u+=y(m,f,_,F,l,s):(v=_,g=F);var k=(l-w)*C/D+w;if(a){if(d.containStroke(w,q,C,T,T+O,L,t,k,s))return!0}else u+=r(w,q,C,T,T+O,L,k,s);m=Math.cos(T+O)*D+w,f=Math.sin(T+O)*C+q;break;case b.R:v=m=e[x++],g=f=e[x++];var z=e[x++],W=e[x++],_=v+z,F=g+W;if(a){if(c.containStroke(v,g,_,g,t,l,s)||c.containStroke(_,g,_,F,t,l,s)||c.containStroke(_,F,v,F,t,l,s)||c.containStroke(v,F,v,g,t,l,s))return!0}else u+=y(_,g,_,F,l,s),u+=y(v,F,v,g,l,s);break;case b.Z:if(a){if(c.containStroke(m,f,v,g,t,l,s))return!0}else u+=y(m,f,v,g,l,s);m=v,f=g}}return a||i(f,g)||(u+=y(m,f,v,g,l,s)||0),0!==u}var u=a(6),c=a(51),p=a(52),h=a(53),d=a(54),m=a(22),f=m.normalizeRadian,v=a(4),y=a(55),b=u.CMD,g=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,l,o,n){if(0===l)return!1;var r=l,s=0;if(n>t+r&&n>i+r||ne+r&&o>a+r||ot+h&&p>l+h&&p>n+h&&p>s+h||pe+h&&c>a+h&&c>o+h&&c>r+h||ct+c&&u>i+c&&u>n+c||ue+c&&s>a+c&&s>o+c||sa||h+pn&&(n+=o);var m=Math.atan2(c,u);return m<0&&(m+=o),m>=i&&m<=n||m+o>=i&&m+o<=n}},function(e,t){e.exports=function(e,t,a,i,l,o){if(o>t&&o>i||ol?n: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),l=a(2),o=l.applyTransform,n=i.CMD,r=[[],[],[]],s=Math.sqrt,u=Math.atan2;e.exports=function(e,t){var a,i,l,c,p,h=e.data,d=n.M,m=n.C,f=n.L,v=n.R,y=n.A,b=n.Q;for(l=0,c=0;l=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 n&&e.addChildrenToStorage(t)),a&&a.refresh()},remove:function(e){var t=this.__zr,a=this.__storage,l=this._children,o=i.indexOf(l,e);return o<0?this:(l.splice(o,1),e.parent=null,a&&(a.delFromStorage(e),e instanceof n&&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 o=0;oa-2?a-1:d+1],p=e[d>a-3?a-1:d+2]);var v=m*m,y=m*v;l.push([i(u[0],f[0],c[0],p[0],m,v,y),i(u[1],f[1],c[1],p[1],m,v,y)])}return l}},function(e,t,a){var i=a(2),l=i.min,o=i.max,n=i.scale,r=i.distance,s=i.add,u=i.clone,c=i.sub;e.exports=function(e,t,a,i){var p,h,d,m,f=[],v=[],y=[],b=[];if(i){d=[1/0,1/0],m=[-1/0,-1/0];for(var g=0,x=e.length;g=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,p,h,d,m,f,v=i.gridSize,y=v-i.maskGapWidth,b=Math.abs(i.maxRotation-i.minRotation),g=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,D=[],C=function(e){var t,a,i=e.currentTarget,l=i.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,a=e.touches[0].clientY):(t=e.clientX,a=e.clientY);var o=t-l.left,n=a-l.top,r=Math.floor(o*(i.width/l.width||1)/v),s=Math.floor(n*(i.height/l.height||1)/v);return D[r][s]},T=function(e){var t=C(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=C(e);t&&(i.click(t.item,t.dimension,e),e.preventDefault())},L=[],_=function(e){if(L[e])return L[e];var t=8*e,a=t,l=[];for(0===e&&l.push([h[0],h[1],0]);a--;){var o=1;"circle"!==i.shape&&(o=i.shape(a/t*2*Math.PI)),l.push([h[0]+e*o*Math.cos(-a/t*2*Math.PI),h[1]+e*o*Math.sin(-a/t*2*Math.PI)*i.ellipticity,a/t*2*Math.PI])}return L[e]=l,l},F=function(){return i.abortThreshold>0&&(new Date).getTime()-m>i.abortThreshold},k=function(e,t,a){var l=i.weightFactor(t);if(l<=i.minSize)return!1;var n=1;lL[1]&&(L[1]=O),qL[2]&&(L[2]=q);break e}}return{mu:n,occupied:T,bounds:L,gw:g,gh:b,fillTextOffsetX:f,fillTextOffsetY:y,fillTextWidth:u,fillTextHeight:c,fontSize:l}},z=function(e,t,a,l,o){for(var n=o.length;n--;){var r=e+o[n][0],s=t+o[n][1];if(r>=c||s>=p||r<0||s<0){if(!i.drawOutOfBound)return!1}else if(!u[r][s])return!1}return!0},W=function(t,a,l,o,n,r,s,u,c){var p,h,d=l.fontSize;p=f?f(o,n,d,r,s):i.color,h=S?S(o,n,d,r,s):i.classes;var m=l.bounds;m[3],m[0],m[1],m[3],m[2],m[0],e.forEach(function(e){if(e.getContext){var n=e.getContext("2d"),r=l.mu;n.save(),n.scale(1/r,1/r),n.font=i.fontWeight+" "+(d*r).toString(10)+"px "+i.fontFamily,n.fillStyle=p,n.translate((t+l.gw/2)*v*r,(a+l.gh/2)*v*r),0!==u&&n.rotate(-u),n.textBaseline="middle",n.fillText(o,l.fillTextOffsetX*r,(l.fillTextOffsetY+.5*d)*r),n.restore()}else{var s=document.createElement("span"),m="";m="rotate("+-u/Math.PI*180+"deg) ",1!==l.mu&&(m+="translateX(-"+l.fillTextWidth/4+"px) scale("+1/l.mu+")");var f={position:"absolute",display:"block",font:i.fontWeight+" "+d*l.mu+"px "+i.fontFamily,left:(t+l.gw/2)*v+l.fillTextOffsetX+"px",top:(a+l.gh/2)*v+l.fillTextOffsetY+"px",width:l.fillTextWidth+"px",height:l.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 p&&(f.color=p),s.textContent=o,f)s.style[y]=f[y];if(c)for(var b in c)s.setAttribute(b,c[b]);h&&(s.className+=h),e.appendChild(s)}})},A=function(t,a,i,l,o){t>=c||a>=p||t<0||a<0||(u[t][a]=!1,i&&e[0].getContext("2d").fillRect(t*v,a*v,y,y),q&&(D[t][a]={item:o,dimension:l}))},P=function(t,a,l,o,n,r){var s,u,h=n.occupied,d=i.drawMask;if(d&&((s=e[0].getContext("2d")).save(),s.fillStyle=i.maskColor),q){var m=n.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=h.length;f--;){var y=t+h[f][0],b=a+h[f][1];y>=c||b>=p||y<0||b<0||A(y,b,d,u,r)}d&&s.restore()},R=function(e){var t,a,l;Array.isArray(e)?(t=e[0],a=e[1]):(t=e.word,a=e.weight,l=e.attributes);var o=0===i.rotateRatio?0:Math.random()>i.rotateRatio?0:0===b?g:g+Math.round(Math.random()*b/x)*x,r=k(t,a,o);if(!r)return!1;if(F())return!1;if(!i.drawOutOfBound){var s=r.bounds;if(s[1]-s[3]+1>c||s[2]-s[0]+1>p)return!1}for(var u=d+1;u--;){var h=_(d-u);i.shuffle&&(h=[].concat(h),n(h));for(var m=0;m=i.list.length)return s(L),Y("wordcloudstop",!1),void S("wordcloudstart",C);m=(new Date).getTime();var t=R(i.list[n]),a=!Y("wordclouddrawn",!0,{item:i.list[n],drawn:t});if(F()||a)return s(L),i.abort(),Y("wordcloudabort",!1),Y("wordcloudstop",!1),void S("wordcloudstart",C);n++,L=r(e,i.wait)},i.wait)}}()}};r.isSupported=l,r.minFontSize=o,void 0!==(i=function(){return r}.apply(t,[]))&&(e.exports=i)}()}])}(a("MT78"))},"9K5v":function(e,t,a){},BIqN:function(e,t,a){},CJ5O:function(e,t,a){"use strict";var i=a("14Xm"),l=a.n(i),o=a("D3Ub"),n=a.n(o),r=a("sm2R"),s={name:"GetDictionary",props:{dictKey:String,updataDict:String,value:String},data:function(){return{dictionary:"",dictionaryOptions:[]}},watch:{dictKey:{immediate:!0,handler:function(){this.getSystem()}},value:{handler:function(e){this.dictionary=e},deep:!0}},created:function(){this.getSystem()},mounted:function(){this.dictionary=this.value},methods:{getSystem:function(){var e=this;return n()(l.a.mark(function t(){var a,i,o;return l.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(r.a)(e.dictKey);case 2:if(a=t.sent,i=a.code,o=a.data,"200"==i){t.next=7;break}return t.abrupt("return");case 7:e.dictionaryOptions=o;case 8:case"end":return t.stop()}},t,e)}))()},selectChange:function(e){this.$emit("input",e),this.$emit("change",e)}}},u=(a("1C1b"),a("KHd+")),c=Object(u.a)(s,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-select",{attrs:{placeholder:"请选择",clearable:"",size:"mini"},on:{change:e.selectChange},model:{value:e.dictionary,callback:function(t){e.dictionary=t},expression:"dictionary"}},e._l(e.dictionaryOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.text,value:e.id}})}),1)},[],!1,null,"9e2cd716",null);c.options.__file="index.vue";t.a=c.exports},DZNH:function(e,t,a){"use strict";var i=a("VhQ4");a.n(i).a},Dkhk:function(e,t,a){},DtvU:function(e,t,a){"use strict";var i=a("9K5v");a.n(i).a},EfKH:function(e,t,a){"use strict";var i=a("aLfJ");a.n(i).a},Ftma:function(e,t,a){"use strict";var i=a("froA");a.n(i).a},FxKO:function(e,t,a){"use strict";var i=a("MT78"),l=a.n(i),o=(a("MTm3"),{"台湾省":[121.5135,25.0308],"黑龙江省":[127.9688,45.368],"内蒙古自治区":[110.3467,41.4899],"吉林省":[125.8154,44.2584],"北京市":[116.4551,40.2539],"辽宁省":[123.1238,42.1216],"河北省":[114.4995,38.1006],"天津市":[117.4219,39.4189],"山西省":[112.3352,37.9413],"陕西省":[109.1162,34.2004],"甘肃省":[103.5901,36.3043],"宁夏回族自治区":[106.3586,38.1775],"青海省":[101.4038,36.8207],"新疆维吾尔自治区":[87.9236,43.5883],"西藏自治区":[91.11,29.97],"四川省":[103.9526,30.7617],"重庆市":[108.384366,30.439702],"山东省":[117.1582,36.8701],"河南省":[113.4668,34.6234],"江苏省":[118.8062,31.9208],"安徽省":[117.29,32.0581],"湖北省":[114.3896,30.6628],"浙江省":[119.5313,29.8773],"福建省":[119.4543,25.9222],"江西省":[116.0046,28.6633],"湖南省":[113.0823,28.2568],"贵州省":[106.6992,26.7682],"云南省":[102.9199,25.4663],"广东省":[113.12244,23.009505],"广西壮族自治区":[108.479,23.1152],"海南省":[110.3893,19.8516],"上海市":[121.4648,31.2891],"香港":[114.173355,22.320048],"澳门":[113.54909,22.198951]}),n=[{name:"南海诸岛",value:1},{name:"北京",value:524},{name:"天津",value:14},{name:"上海",value:150},{name:"重庆",value:75},{name:"河北",value:13},{name:"河南",value:83},{name:"云南",value:11},{name:"辽宁",value:19},{name:"黑龙江",value:15},{name:"湖南",value:69},{name:"安徽",value:260},{name:"山东",value:39},{name:"新疆",value:4},{name:"江苏",value:31},{name:"浙江",value:104},{name:"江西",value:36},{name:"湖北",value:1052},{name:"广西",value:33},{name:"甘肃",value:347},{name:"山西",value:8},{name:"内蒙古",value:157},{name:"陕西",value:22},{name:"吉林",value:4},{name:"福建",value:36},{name:"贵州",value:39},{name:"广东",value:996},{name:"青海",value:27},{name:"西藏",value:31},{name:"四川",value:46},{name:"宁夏",value:16},{name:"海南",value:22},{name:"台湾",value:6},{name:"香港",value:2},{name:"澳门",value:9}],r=function(e){for(var t=[],a=0;a1?e.data.name+""+e.data.value[2]:e.name}},geo:{map:"china",show:!0,roam:!1,label:{emphasis:{show:!1}},layoutSize:"80%",itemStyle:{normal:{borderColor:new l.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:n},{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(n),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.text=e.titleText,t.show=e.isNoTitle,t.left=e.textAlign,t.textStyle={color:e.textColor,fontSize:e.textFontSize,fontWeight:e.textFontWeight,fontStyle:e.textFontStyle},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize,fontStyle:e.subTextFontStyle},this.options.title=t},setOptionTextValue:function(){var e=this.optionsSetup,t=this.options.series[0].label,a={position:"right",show:e.isShowMap,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}}},l=r(e);this.options.series[1].data=l,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}}},l=r(e);this.options.series[1].data=l,a.normal=i}}},p=(a("5wOi"),a("KHd+")),h=Object(p.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,"65a61e11",null);h.options.__file="widgetAirBubbleMap.vue";t.a=h.exports},FyWN:function(e,t,a){"use strict";var i=a("P2sY"),l=a.n(i),o={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,fontStyle:e.textFontStyle},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize,fontStyle:e.subTextFontStyle},this.options.title=t},setOptionsX:function(){var e=this.optionsSetup,t={type:"category",show:e.hideX,name:e.nameX,nameTextStyle:{color:e.nameColorX,fontSize:e.nameFontSizeX},inverse:e.reversalX,axisLabel:{show:!0,interval:e.textInterval,rotate:e.textAngleX,textStyle:{color:e.colorX,fontSize:e.fontSizeX}},axisLine:{show:!0,lineStyle:{color:e.lineColorX,width:e.lineWidthX}},splitLine:{show:e.isShowSplitLineX,lineStyle:{color:e.splitLineColorX,width:e.splitLineWidthX}}};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},axisLabel:{show:!0,rotate:e.textAngleYLeft,textStyle:{color:e.colorYLeft,fontSize:e.fontSizeYLeft}},axisTick:{show:e.tickLineYLeft},axisLine:{show:e.lineYLeft,lineStyle:{width:e.lineWidthYLeft,color:e.lineColorYLeft}},splitLine:{show:e.isShowSplitLineYLeft,lineStyle:{color:e.splitLineColorYLeft,width:e.splitLineFontWidthYLeft}}},{type:"value",splitNumber:e.splitNumberRight,show:e.isShowYRight,name:e.textNameYRight,nameTextStyle:{color:e.nameColorYRight,fontSize:e.nameFontSizeYRight},axisLabel:{show:!0,rotate:e.textAngleYRight,textStyle:{color:e.colorYRight,fontSize:e.fontSizeYRight}},axisTick:{show:e.tickLineYRight},axisLine:{show:e.lineYRight,lineStyle:{width:e.lineWidthYRight,color:e.lineColorYRight}},splitLine:{show:e.isShowSplitLineYRight,lineStyle:{color:e.splitLineColorYRight,width:e.splitLineFontWidthYRight}}}];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].symbol=e.symbol,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.tipsColor,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},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.legendColor,fontSize:e.legendFontSize},t.itemWidth=e.legendWidth},setOptionsLegendName:function(e){var t=this.optionsSetup,a=this.options.series,i=t.legendName;if(null==i||""==i){for(var l=0;l{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,fontStyle:e.textFontStyle},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize,fontStyle:e.subTextFontStyle},this.options.title=t},setOptionsTooltip:function(){var e=this.optionsSetup,t={trigger:"item",show:!0,textStyle:{color:e.tipsColor,fontSize:e.tipsFontSize}};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.legendColor,fontSize:e.legendFontSize},t.itemWidth=e.legendWidth},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;as?s-o:i<0?0:i;this.leftMargin=i;var p=l+n>u?u-n:l<0?0:l;this.topMargin=l,this.leftMargin==c&&this.topMargin==p||this.$nextTick(function(){t.leftMargin=c,t.topMargin=p,t.$emit("onActivated",{index:a,left:c,top:p,width:o,height:n})})}}},V=(a("8LiF"),a("KHd+")),H=Object(V.a)(j,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:{focus:e.handleFocus,blur:e.handleBlur}},[a(e.type,{tag:"component",attrs:{value:e.value}})],1)},[],!1,null,"81660588",null);H.options.__file="widget.vue";var $=H.exports,U=a("P2sY"),K=a.n(U),G={name:"ColorPicker",model:{prop:"value",event:"input"},props:{value:{type:[String],default:""}},data:function(){return{predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585"],colorValue:""}},watch:{value:function(e){this.colorValue=e||""}},mounted:function(){this.colorValue=this.value},methods:{changeColor:function(e){this.colorValue=e||"",this.$emit("input",this.colorValue),this.$emit("change",this.colorValue)}}},Z=(a("y1Da"),Object(V.a)(G,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-input",{attrs:{clearable:"",placeholder:"请输入颜色",size:"mini"},on:{change:e.changeColor},model:{value:e.colorValue,callback:function(t){e.colorValue=t},expression:"colorValue"}},[a("template",{slot:"append"},[a("el-color-picker",{attrs:{predefine:e.predefineColors,"show-alpha":"",size:"mini"},on:{change:e.changeColor},model:{value:e.colorValue,callback:function(t){e.colorValue=t},expression:"colorValue"}})],1)],2)},[],!1,null,"1b9d04e2",null));Z.options.__file="colorPicker.vue";var Q=Z.exports,J=a("RaMD"),ee=(a("p77/"),a("qNmG"),a("aT2M"),a("+dQi"),a("/9rB"),a("AvDn"),{name:"DynamicComponents",components:{Dictionary:a("CJ5O").a},model:{prop:"formData",event:"input"},props:{chartType:String,dictKey:String,formData:Object},data:function(){return{dataSetValue:"",dataSet:[],userNameList:[],setParamList:[],params:{},chartProperties:{}}},watch:{formData:{handler:function(e){this.echoDataSet(e)},deep:!0}},computed:{setCode:function(){var e=this,t="";return this.dataSet.forEach(function(a){a.id==e.dataSetValue&&(t=a.setCode)}),t}},mounted:function(){this.loadDataSet(),this.echoDataSet(this.formData)},methods:{loadDataSet:function(){var e=this;return n()(l.a.mark(function t(){var a,i,o;return l.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(r.f)();case 2:if(a=t.sent,i=a.code,o=a.data,e.dataSet=o,"200"==i){t.next=8;break}return t.abrupt("return");case 8:case"end":return t.stop()}},t,e)}))()},selectDataSet:function(){var e=this;return n()(l.a.mark(function t(){var a,i,o;return l.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(r.a)(e.dataSetValue);case 2:if(a=t.sent,i=a.code,o=a.data,e.userNameList=o.dataSetParamDtoList,e.setParamList=o.setParamList,"200"==i){t.next=9;break}return t.abrupt("return");case 9:case"end":return t.stop()}},t,e)}))()},saveDataBtn:function(){var e=this;return n()(l.a.mark(function t(){var a,i,o;return l.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(a={},i=0;i0)for(var a=0;a0){for(var t=0;tt?(this.currentRecord=_e()(e),!1):(this.time=t,this.currentRecord&&(this.recordList.push(this.currentRecord),this.redoList.splice(0,this.redoList.length)),this.currentRecord=_e()(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}(),Pe={name:"Login",components:{draggable:we.a,VueRulerTool:De.a,widget:$,dynamicForm:xe,contentMenu:Oe},data:function(){return{uploadUrl:"http://report.picaiba.com/api//reportDashboard/import/"+this.$route.query.reportCode,grade:!1,layerWidget:[],widgetTools:h,widthLeftForTools:200,widthLeftForToolsHideButton:15,widthLeftForOptions:300,widthPaddingTools:18,toolIsShow:!0,bigscreenWidth:1920,bigscreenHeight:1080,revoke:null,dashboard:{id:null,title:"",width:1920,height:1080,backgroundColor:"",backgroundImage:"",refreshSeconds:null,presetLine:[],presetLineVisible:!0},screenCode:"",dragWidgetCode:"",widgets:[{type:"widget-text",value:{setup:{},data:{},position:{width:100,height:100,left:0,top:0,zIndex:0}},options:[]}],widgetIndex:0,widgetOptions:{setup:[],data:[],position:[]},flagWidgetClickStopPropagation:!1,styleObj:{left:0,top:0},visibleContentMenu:!1,rightClickIndex:-1,activeName:"first"}},computed:{step:function(){return Number(100/(100*this.bigscreenScaleInWorkbench))},headers:function(){return{Authorization:Object(pe.f)()}},middleWidth:function(){var e=0;this.toolIsShow&&(e+=this.widthLeftForTools),e+=this.widthLeftForToolsHideButton,e+=this.widthLeftForOptions;var t=this.bodyWidth-e;return t},middleHeight:function(){return this.bodyHeight},bigscreenScaleInWorkbench:function(){var e=(this.middleWidth-this.widthPaddingTools)/this.bigscreenWidth,t=(this.middleHeight-this.widthPaddingTools)/this.bigscreenHeight;return Math.min(e,t)},workbenchTransform:function(){return"scale("+this.bigscreenScaleInWorkbench+", "+this.bigscreenScaleInWorkbench+")"},bigscreenWidthInWorkbench:function(){return this.getPXUnderScale(this.bigscreenWidth)+this.widthPaddingTools},bigscreenHeightInWorkbench:function(){return this.getPXUnderScale(this.bigscreenHeight)+this.widthPaddingTools}},watch:{widgets:{handler:function(e){var t=this;this.handlerLayerWidget(e),this.$nextTick(function(){t.revoke.push(t.widgets)})},deep:!0}},created:function(){this.revoke=new Ae},mounted:function(){var e=this;this.initEchartData(),this.widgets=[],window.addEventListener("mouseup",function(){e.grade=!1})},methods:{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},handlerLayerWidget:function(e){for(var t=[],a=function(a){var i={};i.icon=d(e[a].type).icon,e[a].options.setup.forEach(function(e){"layerName"==e.name&&(i.label=e.value)}),t.push(i)},i=0;i0)for(var r=0;r=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.widgetOptions=this.deepClone(this.widgets[e].options)},widgetsClick:function(e){for(var t=this.$refs.widgets,a=0;a-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)}}},l=(a("L9dp"),a("KHd+")),o=Object(l.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,"4c4d83ee",null);o.options.__file="widgetTime.vue";t.a=o.exports},cyzc:function(e,t,a){"use strict";var i={name:"WidgetImage",components:{},props:{value:Object,ispreview:Boolean},data:function(){return{options:{}}},computed:{transStyle:function(){return this.objToOne(this.options)},styleColor:function(){return{position:this.ispreview?"absolute":"static",background:this.transStyle.background,"text-align":this.transStyle.textAlign,width:this.transStyle.width+"px",height:this.transStyle.height+"px",left:this.transStyle.left+"px",top:this.transStyle.top+"px",right:this.transStyle.right+"px"}},imgStyle:function(){return{imageAdress:this.transStyle.imageAdress,"border-radius":this.transStyle.borderRadius+"px",opacity:this.transStyle.transparency/100,animation:this.transStyle.startRotate?"turn "+(101-this.transStyle.rotationSpeed)/10+"s linear infinite":"none"}}},watch:{value:{handler:function(e){this.options=e},deep:!0}},created:function(){this.options=this.value},mounted:function(){},methods:{}},l=(a("5BTy"),a("KHd+")),o=Object(l.a)(i,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"imagebox",style:this.styleColor},[t("img",{class:this.transStyle.startRotate?"startImg":"",style:this.imgStyle,attrs:{src:this.imgStyle.imageAdress,alt:""}})])},[],!1,null,"51093336",null);o.options.__file="widgetImage.vue";t.a=o.exports},dHPb:function(e,t,a){"use strict";var i=a("Kw5r"),l=a("xtjD"),o=a.n(l);i.default.use(o.a);var n={props:{value:Object,ispreview:Boolean},data:function(){return{hackReset:!0,options:{title:{},legend:{},radar:{indicator:[]},series:[]},optionsSetup:{},optionsPosition:{},optionsData:{}}},computed:{styleObj:function(){var e=this.optionsPosition;return{position:this.ispreview?"absolute":"static",width:e.width+"px",height:e.height+"px",left:e.left+"px",top:e.top+"px",background:this.optionsSetup.background}}},watch:{value:{handler:function(e){this.optionsSetup=e.setup,this.optionsPosition=e.position,this.optionsData=e.data,this.editorOptions()},deep:!0}},mounted:function(){this.optionsSetup=this.value.setup,this.optionsPosition=this.value.position,this.optionsData=this.value.data,this.editorOptions()},methods:{editorOptions:function(){this.setOptionsTitle(),this.setOptionIndicator(),this.setOptionsRadar(),this.setOptionsLegend(),this.setOptionsTooltip(),this.setOptionsMargin(),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,fontStyle:e.textFontStyle},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize,fontStyle:e.subTextFontStyle},this.options.title=t},setOptionIndicator:function(){var e=this.optionsSetup.dynamicAddRadar;this.options.radar.indicator=e},setOptionsRadar:function(){var e=this.optionsSetup,t={show:e.axisLineShow,lineStyle:{color:e.axisLineColor,opacity:e.axisLineOpacity/100}},a={show:e.axisNameShow,color:e.axisNameColor,fontSize:e.axisNameFontSize,fontStyle:e.axisNamFontStyle,fontWeight:e.axisNamFontWeight},i={show:e.splitLineShow,lineStyle:{color:e.splitLineColor,opacity:e.splitLineOpacity/100}};this.options.radar.axisLine=t,this.options.radar.name=a,this.options.radar.splitLine=i,this.options.radar.shape=e.radarShape,this.options.radar.splitNumber=e.splitNumber},setOptionsLegend:function(){var e=this.optionsSetup,t={show:e.isShowLegend,left:e.lateralPosition,top:e.longitudinalPosition,bottom:e.longitudinalPosition,orient:e.layoutFront,textStyle:{color:e.legendColor,fontSize:e.legendFontSize},itemWidth:e.legendWidth};this.options.legend=t},setOptionsLegendName:function(e){var t=this.optionsSetup,a=this.options.series,i=t.legendName;if(null==i||""==i){for(var l=0;l{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,fontStyle:e.textFontStyle},t.subtext=e.subText,t.subtextStyle={color:e.subTextColor,fontWeight:e.subTextFontWeight,fontSize:e.subTextFontSize,fontStyle:e.subTextFontStyle},this.options.title=t},setOptionsX:function(){var e=this.optionsSetup,t={type:"category",show:e.hideX,name:e.nameX,nameTextStyle:{color:e.nameColorX,fontSize:e.nameFontSizeX},inverse:e.reversalX,axisLabel:{show:!0,interval:e.textInterval,rotate:e.textAngleX,textStyle:{color:e.colorX,fontSize:e.fontSizeX}},axisLine:{show:!0,lineStyle:{color:e.lineColorX,width:e.lineWidthX}},splitLine:{show:e.isShowSplitLineX,lineStyle:{color:e.splitLineColorX,width:e.splitLineWidthX}}};this.options.xAxis=t},setOptionsY:function(){var e=this.optionsSetup,t={type:"value",scale:e.scale,splitNumber:e.splitNumberY,show:e.isShowY,name:e.textNameY,nameTextStyle:{color:e.nameColorY,fontSize:e.nameFontSizeY},inverse:e.reversalY,axisLabel:{show:!0,rotate:e.textAngleY,textStyle:{color:e.colorY,fontSize:e.fontSizeY}},axisLine:{show:!0,lineStyle:{color:e.lineColorY,width:e.lineWidthY}},splitLine:{show:e.isShowSplitLineY,lineStyle:{color:e.splitLineColorY,width:e.splitLineWidthY}}};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].symbol=e.symbol,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.tipsColor,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;a