服务已经启动,请用浏览器打开地址访问:
"); + stringBuilder.append("服务已经启动,请用chrome或者Firefox(低版本IE无法正常运行)浏览器打开地址访问:
"); stringBuilder.append(""); stringBuilder.append(url).append(""); diff --git a/molicode-common/src/main/java/com/shareyi/molicode/common/utils/CostWatch.java b/molicode-common/src/main/java/com/shareyi/molicode/common/utils/CostWatch.java new file mode 100644 index 0000000..9e6e89e --- /dev/null +++ b/molicode-common/src/main/java/com/shareyi/molicode/common/utils/CostWatch.java @@ -0,0 +1,95 @@ +package com.shareyi.molicode.common.utils; + +import com.shareyi.molicode.common.valid.Validate; + +import java.util.concurrent.TimeUnit; + +/** + * 用时监控表 + * + * @author zhangshibin + * @date 2019/6/15 + */ +public class CostWatch { + + /** + * 起始时间 + */ + private Long startTime; + /** + * 结束时间 + */ + private Long stopTime; + + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public Long getStopTime() { + return stopTime; + } + + public void setStopTime(Long stopTime) { + this.stopTime = stopTime; + } + + /** + * 创建一个已经启动的表 + * + * @return + */ + public static CostWatch createStarted() { + CostWatch costWatch = new CostWatch(); + costWatch.start(); + return costWatch; + } + + /** + * 启动 + */ + public void start() { + this.startTime = System.currentTimeMillis(); + } + + public void stop() { + this.stopTime = System.currentTimeMillis(); + } + + /** + * 获取耗时 + * + * @param timeUnit + * @return + */ + public long getCost(TimeUnit timeUnit) { + long cost = getCost(); + switch (timeUnit) { + case DAYS: + return cost / (24 * 3600 * 1000); + case HOURS: + return cost / (3600 * 1000); + case MINUTES: + return cost / (60 * 1000); + case SECONDS: + return cost / (1 * 1000); + case MILLISECONDS: + return cost; + default: + Validate.assertTrue(false, "不支持的类型"); + } + return 0; + } + + /** + * 获取耗时 毫秒 + * + * @return + */ + private long getCost() { + return stopTime - startTime; + } +} diff --git a/molicode-common/src/main/java/com/shareyi/molicode/common/utils/MoliCodeStringUtils.java b/molicode-common/src/main/java/com/shareyi/molicode/common/utils/MoliCodeStringUtils.java index 684dc97..44d5f9d 100644 --- a/molicode-common/src/main/java/com/shareyi/molicode/common/utils/MoliCodeStringUtils.java +++ b/molicode-common/src/main/java/com/shareyi/molicode/common/utils/MoliCodeStringUtils.java @@ -1,6 +1,7 @@ package com.shareyi.molicode.common.utils; import com.google.common.collect.Lists; +import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; @@ -103,11 +104,24 @@ public static String getTimeBasedStr() { } + /** + * 执行md5 + * + * @param str + * @return + */ + public static String md5(String str) { + return DigestUtils.md5Hex(str); + } + + public static void main(String[] args) { System.out.println(compareVersion("1.0.0", "1.0.1")); System.out.println(compareVersion("1.0.a", "1.0.1")); System.out.println(compareVersion("1.0.2", "1.0.1")); System.out.println(compareVersion("1.0.1", "1.0.1")); System.out.println(getTimeBasedStr()); + + System.out.println(md5("hahaha")); } } diff --git a/molicode-common/src/main/java/com/shareyi/molicode/common/utils/Profiles.java b/molicode-common/src/main/java/com/shareyi/molicode/common/utils/Profiles.java index 4a45457..a823199 100644 --- a/molicode-common/src/main/java/com/shareyi/molicode/common/utils/Profiles.java +++ b/molicode-common/src/main/java/com/shareyi/molicode/common/utils/Profiles.java @@ -51,6 +51,17 @@ public class Profiles { */ private Mapi&&(h=a.interval=i);var c=a.intervalPrecision=o(h);return r(a.niceTickExtent=[u(Math.ceil(t[0]/h)*h,c),u(Math.floor(t[1]/h)*h,c)],t),a}function o(t){return l.getPrecisionSafe(t)+2}function a(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function r(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),a(t,0,e),a(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function s(t,e,n,i){var o=[];if(!t)return o;e[0] =0?i+=g:i-=g:_>=0?i-=g:i+=g}return i}function o(t,e){function n(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}var o=[],s=a.quadraticSubdivide,l=[[],[],[]],u=[[],[]],h=[];e/=2,t.eachEdge(function(t,a){var c=t.getLayout(),d=t.getVisual("fromSymbol"),p=t.getVisual("toSymbol");c.__original||(c.__original=[r.clone(c[0]),r.clone(c[1])],c[2]&&c.__original.push(r.clone(c[2])));var f=c.__original;if(null!=c[2]){if(r.copy(l[0],f[0]),r.copy(l[1],f[2]),r.copy(l[2],f[1]),d&&"none"!=d){var g=n(t.node1),m=i(l,f[0],g*e);s(l[0][0],l[1][0],l[2][0],m,o),l[0][0]=o[3],l[1][0]=o[4],s(l[0][1],l[1][1],l[2][1],m,o),l[0][1]=o[3],l[1][1]=o[4]}if(p&&"none"!=p){var g=n(t.node2),m=i(l,f[1],g*e);s(l[0][0],l[1][0],l[2][0],m,o),l[1][0]=o[1],l[2][0]=o[2],s(l[0][1],l[1][1],l[2][1],m,o),l[1][1]=o[1],l[2][1]=o[2]}r.copy(c[0],l[0]),r.copy(c[1],l[2]),r.copy(c[2],l[1])}else{if(r.copy(u[0],f[0]),r.copy(u[1],f[1]),r.sub(h,u[1],u[0]),r.normalize(h,h),d&&"none"!=d){var g=n(t.node1);r.scaleAndAdd(u[0],u[0],h,g*e)}if(p&&"none"!=p){var g=n(t.node2);r.scaleAndAdd(u[1],u[1],h,-g*e)}r.copy(c[0],u[0]),r.copy(c[1],u[1])}})}var a=n(451),r=n(295),s=[],l=[],u=[],h=a.quadraticAt,c=r.distSquare,d=Math.abs;t.exports=o},function(t,e,n){var i=n(289),o=n(567),a=o.updateCenterAndZoom,r={type:"graphRoam",event:"graphRoam",update:"none"};i.registerAction(r,function(t,e){e.eachComponent({mainType:"series",query:t},function(e){var n=e.coordinateSystem,i=a(n,t);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)})}),i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series.graph:focusNodeAdjacency"},function(){}),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series.graph:unfocusNodeAdjacency"},function(){})},function(t,e){function n(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getGraph(),o=i.data,a=n.mapArray(n.getName);o.filterSelf(function(t){var n=o.getItemModel(t),i=n.getShallow("category");if(null!=i){"number"==typeof i&&(i=a[i]);for(var r=0;r 0)],c=t.__pictorialBarRect;E(c.style,u,a,i,e.seriesModel,o,h),C.setHoverStyle(c,u)}function I(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var T=n(289),A=n(288),C=n(290),D=n(433),L=D.createSymbol,P=n(291),k=P.parsePercent,O=P.isNumeric,N=n(560),E=N.setLabel,z=["itemStyle","normal","borderWidth"],R=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],V=new C.Circle,B=T.extendChartView({type:"pictorialBar",render:function(t,e,n){var o=this.group,a=t.getData(),r=this._data,s=t.coordinateSystem,l=s.getBaseAxis(),u=!!l.isHorizontal(),h=s.grid.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:u,valueDim:R[+u],categoryDim:R[1-u]};return a.diff(r).add(function(t){if(a.hasValue(t)){var e=f(a,t),n=i(a,t,e,c),r=y(a,c,n);a.setItemGraphicEl(t,r),o.add(r),M(r,c,n)}}).update(function(t,e){var n=r.getItemGraphicEl(e);if(!a.hasValue(t))return void o.remove(n);var s=f(a,t),l=i(a,t,s,c),u=b(a,l);n&&u!==n.__pictorialShapeStr&&(o.remove(n),a.setItemGraphicEl(t,null),n=null),n?x(n,c,l):n=y(a,c,l,!0),a.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=l,o.add(n),M(n,c,l)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&_(r,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=a,this.group},dispose:A.noop,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){_(i,e.dataIndex,t,e)}):n.removeAll()}}),G=B;t.exports=G},function(t,e,n){var i=n(289),o=n(288);n(581),n(857),n(858);var a=n(859),r=n(860),s=n(490);i.registerLayout(a),i.registerVisual(r),i.registerProcessor(o.curry(s,"themeRiver"))},function(t,e,n){function i(t,e){var n=[];return t.eachComponent("singleAxis",function(i,a){var r=new o(i,t,e);r.name="single_"+a,r.resize(i,e),i.coordinateSystem=r,n.push(r)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}}),n}var o=n(849);n(439).register("single",{create:i,dimensions:o.prototype.dimensions})},function(t,e,n){function i(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this.model=t}var o=n(850),a=n(432),r=n(294),s=r.getLayoutRect;i.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:i,_init:function(t,e,n){var i=this.dimension,r=new o(i,a.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===r.type;r.onBand=s&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData(),n=this.dimension;this._axis.scale.unionExtentFromData(e,t.coordDimToDataDim(n)),a.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=s({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.reverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],o=t.isHorizontal();t.toGlobalCoord=o?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=o?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,i}};var l=i;t.exports=l},function(t,e,n){var i=n(288),o=n(454),a=function(t,e,n,i,a){o.call(this,t,e,n),this.type=i||"value",this.position=a||"bottom",this.orient=null,this._labelInterval=null};a.prototype={constructor:a,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},i.inherits(a,o);var r=a;t.exports=r},function(t,e,n){var i=n(288),o=n(459),a=n(290),r=n(582),s=n(460),l=o.getInterval,u=o.ifIgnoreOnTick,h=["axisLine","axisTickLabel","axisName"],c=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,n,a){var s=this.group;s.removeAll();var l=r.layout(t),u=new o(t,l);i.each(h,u.add,u),s.add(u.getGroup()),t.get("splitLine.show")&&this._splitLine(t,l.labelInterval),c.superCall(this,"render",t,e,n,a)},_splitLine:function(t,e){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),r=o.get("width"),s=o.get("color"),h=l(i,e);s=s instanceof Array?s:[s];for(var c=t.coordinateSystem.getRect(),d=n.isHorizontal(),p=[],f=0,g=n.getTicksCoords(),m=[],v=[],y=t.get("axisLabel.showMinLabel"),x=t.get("axisLabel.showMaxLabel"),_=0;_0&&i(n[l-1]);l--);for(;s
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptyCircle",symbolSize:4}}),h=u;t.exports=h},function(t,e,n){function i(t){return r.isArray(t)||(t=[+t,+t]),t}var o=n(289),a=n(290),r=n(288),s=n(433),l=o.extendChartView({type:"radar",render:function(t,e,n){function o(t,e){var n=t.getItemVisual(e,"symbol")||"circle",o=t.getItemVisual(e,"color");if("none"!==n){var a=i(t.getItemVisual(e,"symbolSize")),r=s.createSymbol(n,-1,-1,2,2,o);return r.attr({style:{strokeNoScale:!0},z2:100,scale:[a[0]/2,a[1]/2]}),r}}function l(e,n,i,r,s,l){i.removeAll();for(var u=0;uo&&(o=i));var l=t.area*t.area,u=e*e*n;return l?w(u*o/l,l/(u*a)):1/0}function h(t,e,n,i,o){var a=e===n.width?0:1,r=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],h=e?t.area/e:0;(o||h>n[l[r]])&&(h=n[l[r]]);for(var c=0,d=t.length;co*(1-h[0])?(l="jump",r=s-o*(1-h[2])):(r=s-o*h[1])>=0&&(r=s-o*(1-h[1]))<=0&&(r=0),r*=e.axisExpandWidth/u,r?f(r,i,a,"all"):l="none";else{var o=i[1]-i[0];i=[v(0,a[1]*s/o-o/2)],i[1]=m(a[1],i[0]+o),i[0]=i[1]-o}return{axisExpandWindow:i,behavior:l}}};var w=i;t.exports=w},function(t,e,n){var i=n(288),o=n(454),a=function(t,e,n,i,a){o.call(this,t,e,n),this.type=i||"value",this.axisIndex=a};a.prototype={constructor:a,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},i.inherits(a,o);var r=a;t.exports=r},function(t,e,n){var i=n(288),o=n(301);n(805);var a=o.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&i.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},setAxisExpand:function(t){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=i.filter(this.dependentModels.parallelAxis,function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this);i.each(n,function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)})}});t.exports=a},function(t,e,n){function i(t,e){return e.type||(e.data?"category":"value")}var o=n(288),a=n(301),r=n(463),s=n(488),l=n(291),u=n(466),h=a.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return r([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=o.clone(t);if(e)for(var n=e.length-1;n>=0;n--)l.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t)return"inactive";for(var n=0,i=e.length;n=0?e:NaN}})}function o(t){return+t.replace("dim","")}function a(t,e){var n=0;s.each(t,function(t){var e=o(t);e>n&&(n=e)});var i=e[0];i&&i.length-1>n&&(n=i.length-1);for(var a=[],r=0;r<=n;r++)a.push("dim"+r);return a}var r=n(302),s=n(288),l=n(303),u=n(436),h=l.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.normal.color",getInitialData:function(t,e){var n=e.getComponent("parallel",this.get("parallelIndex")),o=n.parallelAxisIndex,l=t.data,h=n.dimensions,c=a(h,l),d=s.map(c,function(t,n){var a=s.indexOf(h,t),r=a>=0&&e.getComponent("parallelAxis",o[a]);return r&&"category"===r.get("type")?(i(r,t,l),{name:t,type:"ordinal"}):a<0&&u.guessOrdinal(l,n)?{name:t,type:"ordinal"}:t}),p=new r(d,this);return p.initData(l),this.option.progressive&&(this.option.animation=!1),p},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,o){t===e&&i.push(n.getRawIndex(o))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}});t.exports=h},function(t,e,n){function i(t,e,n){var i=t.model,o=t.getRect(),a=new l.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),r="horizontal"===i.get("layout")?"width":"height";return a.setShape(r,0),l.initProps(a,{shape:{width:o.width,height:o.height}},e,n),a}function o(t,e,n,i){for(var o=[],a=0;a0){var l=i.getLayout().y+o;i.setLayout({y:l},!0)}r=i.getLayout().y+i.getLayout().dy+e}if((o=r-e-n)>0){var l=i.getLayout().y-o;for(i.setLayout({y:l},!0),r=i.getLayout().y,a=s-2;a>=0;--a)i=t[a],o=i.getLayout().y+i.getLayout().dy+e-r,o>0&&(l=i.getLayout().y-o,i.setLayout({y:l},!0)),r=i.getLayout().y}})}function p(t,e){A.each(t.slice().reverse(),function(t){A.each(t,function(t){if(t.outEdges.length){var n=_(t.outEdges,f)/_(t.outEdges,M),i=t.getLayout().y+(n-b(t))*e;t.setLayout({y:i},!0)}})})}function f(t){return b(t.node2)*t.getValue()}function g(t,e){A.each(t,function(t){A.each(t,function(t){if(t.inEdges.length){var n=_(t.inEdges,m)/_(t.inEdges,M),i=t.getLayout().y+(n-b(t))*e;t.setLayout({y:i},!0)}})})}function m(t){return b(t.node1)*t.getValue()}function v(t){A.each(t,function(t){t.outEdges.sort(y),t.inEdges.sort(x)}),A.each(t,function(t){var e=0,n=0;A.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),A.each(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}function y(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}function x(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}function _(t,e){for(var n=0,i=t.length,o=-1;++oe?1:t===e?0:NaN}function M(t){return t.getValue()}var I=n(294),T=n(578),A=n(288);t.exports=i},function(t,e,n){function i(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes;n.sort(function(t,e){return t.getLayout().value-e.getLayout().value});var i=n[0].getLayout().value,r=n[n.length-1].getLayout().value;a.each(n,function(e){var n=new o({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:t.get("color")}),a=n.mapValueToVisual(e.getLayout().value);e.setVisual("color",a);var s=e.getModel(),l=s.get("itemStyle.normal.color");null!=l&&e.setVisual("color",l)})})}var o=n(461),a=n(288);t.exports=i},function(t,e,n){var i=n(289);n(818),n(820);var o=n(821),a=n(822);i.registerVisual(o),i.registerLayout(a)},function(t,e,n){var i=n(288),o=n(303),a=n(493),r=a.seriesModelMixin,s=o.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(s,r,!0);var l=s;t.exports=l},function(t,e,n){function i(t,e,n,i){l.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=n,this._createContent(t,e,i),this.updateData(t,e,i),this._seriesModel}function o(t,e,n){return s.map(t,function(t){return t=t.slice(),t[e]=n.initBaseline,t})}function a(t){var e={};return s.each(t,function(t,n){e["ends"+n]=t}),e}function r(t){this.group=new l.Group,this.styleUpdater=t}var s=n(288),l=n(290),u=n(300),h=u.extend({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var n in e)if(e.hasOwnProperty(n)&&0===n.indexOf("ends")){var i=e[n];t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1])}}}),c=i.prototype;c._createContent=function(t,e,n){var i=t.getItemLayout(e),r="horizontal"===i.chartLayout?1:0,u=0;this.add(new l.Polygon({shape:{points:n?o(i.bodyEnds,r,i):i.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=u++;var c=s.map(i.whiskerEnds,function(t){return n?o(t,r,i):t});this.add(new h({shape:a(c),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=u++},c.updateData=function(t,e,n){var i=this._seriesModel=t.hostModel,o=t.getItemLayout(e),r=l[n?"initProps":"updateProps"];r(this.childAt(this.bodyIndex),{shape:{points:o.bodyEnds}},i,e),r(this.childAt(this.whiskerIndex),{shape:a(o.whiskerEnds)},i,e),this.styleUpdater.call(null,this,t,e)},s.inherits(i,l.Group);var d=r.prototype;d.updateData=function(t){var e=this.group,n=this._data,o=this.styleUpdater;t.diff(n).add(function(n){if(t.hasValue(n)){var a=new i(t,n,o,!0);t.setItemGraphicEl(n,a),e.add(a)}}).update(function(a,r){var s=n.getItemGraphicEl(r);if(!t.hasValue(a))return void e.remove(s);s?s.updateData(t,a):s=new i(t,a,o),e.add(s),t.setItemGraphicEl(a,s)}).remove(function(t){var i=n.getItemGraphicEl(t);i&&e.remove(i)}).execute(),this._data=t},d.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(e){e&&t.remove(e)})};var p=r;t.exports=p},function(t,e,n){function i(t,e,n){var i=e.getItemModel(n),o=i.getModel(h),a=e.getItemVisual(n,"color"),s=o.getItemStyle(["borderColor"]),l=t.childAt(t.whiskerIndex);l.style.set(s),l.style.stroke=a,l.dirty();var u=t.childAt(t.bodyIndex);u.style.set(s),u.style.stroke=a,u.dirty();var d=i.getModel(c).getItemStyle();r.setHoverStyle(t,d)}var o=n(288),a=n(452),r=n(290),s=n(493),l=s.viewMixin,u=a.extend({type:"boxplot",getStyleUpdater:function(){return i},dispose:o.noop});o.mixin(u,l,!0);var h=["itemStyle","normal"],c=["itemStyle","emphasis"],d=u;t.exports=d},function(t,e){function n(t,e){var n=t.get("color");t.eachRawSeriesByType("boxplot",function(e){var o=n[e.seriesIndex%n.length],a=e.getData();a.setVisual({legendSymbol:"roundRect",color:e.get(i)||o}),t.isSeriesFiltered(e)||a.each(function(t){var e=a.getItemModel(t);a.setItemVisual(t,{color:e.get(i,!0)})})})}var i=["itemStyle","normal","borderColor"];t.exports=n},function(t,e,n){function i(t){var e=o(t);h(e,function(t){var e=t.seriesModels;e.length&&(a(t),h(e,function(e,n){r(e,t.boxOffsetList[n],t.boxWidthList[n])}))})}function o(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(t){var i=t.getBaseAxis(),o=s.indexOf(n,i);o<0&&(o=n.length,n[o]=i,e[o]={axis:i,seriesModels:[]}),e[o].seriesModels.push(t)}),e}function a(t){var e,n,i=t.axis,o=t.seriesModels,a=o.length,r=t.boxWidthList=[],l=t.boxOffsetList=[],c=[];if("category"===i.type)n=i.getBandWidth();else{var d=0;h(o,function(t){d=Math.max(d,t.getData().count())}),e=i.getExtent(),Math.abs(e[1]-e[0])}h(o,function(t){var e=t.get("boxWidth");s.isArray(e)||(e=[e,e]),c.push([u(e[0],n)||0,u(e[1],n)||0])});var p=.8*n-2,f=p/a*.3,g=(p-f*(a-1))/a,m=g/2-p/2;h(o,function(t,e){l.push(m),m+=f+g,r.push(Math.min(Math.max(g,c[e][0]),c[e][1]))})}function r(t,e,n){var i,o=t.coordinateSystem,a=t.getData(),r=n/2,l=t.get("layout"),u="horizontal"===l?0:1,h=1-u,c=["x","y"],d=[];s.each(a.dimensions,function(t){var e=a.getDimensionInfo(t),n=e.coordDim;n===c[h]?d.push(t):n===c[u]&&(i=t)}),null==i||d.length<5||a.each([i].concat(d),function(){function t(t){var n=[];n[u]=c,n[h]=t;var i;return isNaN(c)||isNaN(t)?i=[NaN,NaN]:(i=o.dataToPoint(n),i[u]+=e),i}function n(t,e){var n=t.slice(),i=t.slice();n[u]+=r,i[u]-=r,e?y.push(n,i):y.push(i,n)}function i(t){var e=[t.slice(),t.slice()];e[0][u]-=r,e[1][u]+=r,v.push(e)}var s=arguments,c=s[0],p=s[d.length+1],f=t(s[3]),g=t(s[1]),m=t(s[5]),v=[[g,t(s[2])],[m,t(s[4])]];i(g),i(m),i(f);var y=[];n(v[0][1],0),n(v[1][1],1),a.setItemLayout(p,{chartLayout:l,initBaseline:f[h],median:f,bodyEnds:y,whiskerEnds:v})})}var s=n(288),l=n(291),u=l.parsePercent,h=s.each;t.exports=i},function(t,e,n){var i=n(289);n(824),n(825);var o=n(826),a=n(827),r=n(828);i.registerPreprocessor(o),i.registerVisual(a),i.registerLayout(r)},function(t,e,n){var i=n(288),o=n(303),a=n(493),r=a.seriesModelMixin,s=o.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,n){var i=e.getItemLayout(t);return n.rect(i.brushRect)}});i.mixin(s,r,!0);var l=s;t.exports=l},function(t,e,n){function i(t,e,n){var i=e.getItemModel(n),o=i.getModel(h),a=e.getItemVisual(n,"color"),s=e.getItemVisual(n,"borderColor")||a,l=o.getItemStyle(["color","color0","borderColor","borderColor0"]),u=t.childAt(t.whiskerIndex);u.useStyle(l),u.style.stroke=s;var d=t.childAt(t.bodyIndex);d.useStyle(l),d.style.fill=a,d.style.stroke=s;var p=i.getModel(c).getItemStyle();r.setHoverStyle(t,p)}var o=n(288),a=n(452),r=n(290),s=n(493),l=s.viewMixin,u=a.extend({type:"candlestick",getStyleUpdater:function(){return i},dispose:o.noop});o.mixin(u,l,!0);var h=["itemStyle","normal"],c=["itemStyle","emphasis"],d=u;t.exports=d},function(t,e,n){function i(t){t&&o.isArray(t.series)&&o.each(t.series,function(t){o.isObject(t)&&"k"===t.type&&(t.type="candlestick")})}var o=n(288);t.exports=i},function(t,e){function n(t,e){t.eachRawSeriesByType("candlestick",function(e){var n=e.getData();n.setVisual({legendSymbol:"roundRect"}),t.isSeriesFiltered(e)||n.each(function(t){var e=n.getItemModel(t),s=n.getItemLayout(t).sign;n.setItemVisual(t,{color:e.get(s>0?a:r),borderColor:e.get(s>0?i:o)})})})}var i=["itemStyle","normal","borderColor"],o=["itemStyle","normal","borderColor0"],a=["itemStyle","normal","color"],r=["itemStyle","normal","color0"];t.exports=n},function(t,e,n){function i(t){t.eachSeriesByType("candlestick",function(t){var e,n=t.coordinateSystem,i=t.getData(),r=o(t,i),s=t.get("layout"),l="horizontal"===s?0:1,h=1-l,c=["x","y"],d=[];if(a.each(i.dimensions,function(t){var n=i.getDimensionInfo(t),o=n.coordDim;o===c[h]?d.push(t):o===c[l]&&(e=t)}),!(null==e||d.length<4)){var p=0;i.each([e].concat(d),function(){function t(t){var e=[];return e[l]=c,e[h]=t,isNaN(c)||isNaN(t)?[NaN,NaN]:n.dataToPoint(e)}function e(t,e){var n=t.slice(),i=t.slice();n[l]=u(n[l]+r/2,1,!1),i[l]=u(i[l]-r/2,1,!0),e?T.push(n,i):T.push(i,n)}function o(t){return t[l]=u(t[l],1),t}var a=arguments,c=a[0],f=a[d.length+1],g=a[1],m=a[2],v=a[3],y=a[4],x=Math.min(g,m),_=Math.max(g,m),b=t(x),w=t(_),S=t(v),M=t(y),I=[[o(M),o(w)],[o(S),o(b)]],T=[];e(w,0),e(b,1);var A;A=g>m?-1:g
":"")+o.join("
"))}})},this),r.reverse(),r=r.join("
");var u=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,u,a[0],a[1],this._tooltipContent,s):this._showTooltipContent(l,r,s,Math.random(),a[0],a[1],u)})},_showSeriesItemTooltip:function(t,e,n){var o=this._ecModel,a=e.seriesIndex,r=o.getSeriesByIndex(a),s=e.dataModel||r,l=e.dataIndex,u=e.dataType,h=s.getData(),c=i([h.getItemModel(l),s,r&&(r.coordinateSystem||{}).model,this._tooltipModel]),d=c.get("trigger");if(null==d||"item"===d){var p=s.getDataParams(l,u),f=s.formatTooltip(l,!1,u),g="item_"+s.name+"_"+l;this._showOrMove(c,function(){this._showTooltipContent(c,f,p,g,t.offsetX,t.offsetY,t.position,t.target)}),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,n){var i=e.tooltip;if("string"==typeof i){var o=i;i={content:o,formatter:o}}var a=new x(i,this._tooltipModel,this._ecModel),r=a.get("content"),s=Math.random();this._showOrMove(a,function(){this._showTooltipContent(a,r,a.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),n({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,n,i,o,a,r,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,u=t.get("formatter");r=r||t.get("position");var h=e;if(u&&"string"==typeof u)h=f.formatTpl(u,n,!0);else if("function"==typeof u){var c=S(function(e,i){e===this._ticket&&(l.setContent(i),this._updatePosition(t,r,o,a,l,n,s))},this);this._ticket=i,h=u(n,i,c)}l.setContent(h),l.show(t),this._updatePosition(t,r,o,a,l,n,s)}},_updatePosition:function(t,e,n,i,o,s,h){var d=this._api.getWidth(),p=this._api.getHeight();e=e||t.get("position");var f=o.getSize(),g=t.get("align"),m=t.get("verticalAlign"),v=h&&h.getBoundingRect().clone();if(h&&v.applyTransform(h.transform),"function"==typeof e&&(e=e([n,i],s,o.el,v,{viewSize:[d,p],contentSize:f.slice()})),c.isArray(e))n=I(e[0],d),i=I(e[1],p);else if(c.isObject(e)){e.width=f[0],e.height=f[1];var x=y.getLayoutRect(e,{width:d,height:p});n=x.x,i=x.y,g=null,m=null}else if("string"==typeof e&&h){var _=l(e,v,f);n=_[0],i=_[1]}else{var _=a(n,i,o.el,d,p,g?null:20,m?null:20);n=_[0],i=_[1]}if(g&&(n-=u(g)?f[0]/2:"right"===g?f[0]:0),m&&(i-=u(m)?f[1]/2:"bottom"===m?f[1]:0),t.get("confine")){var _=r(n,i,o.el,d,p);n=_[0],i=_[1]}o.moveTo(n,i)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&M(e,function(e,i){var o=e.dataByAxis||{},a=t[i]||{},r=a.dataByAxis||[];(n&=o.length===r.length)&&M(o,function(t,e){var i=r[e]||{},o=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n&=t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&o.length===a.length)&&M(o,function(t,e){var i=a[e];n&=t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){d.node||(this._tooltipContent.hide(),_.unregister("itemTooltip",e))}});t.exports=A},function(t,e,n){function i(t){var e="left "+t+"s cubic-bezier(0.23, 1, 0.32, 1),top "+t+"s cubic-bezier(0.23, 1, 0.32, 1)";return s.map(f,function(t){return t+"transition:"+e}).join(";")}function o(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),d(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function a(t){var e=[],n=t.get("transitionDuration"),a=t.get("backgroundColor"),r=t.getModel("textStyle"),s=t.get("padding");return n&&e.push(i(n)),a&&(h.canvasSupported?e.push("background-Color:"+a):(e.push("background-Color:#"+l.toHex(a)),e.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(n){var i="border-"+n,o=p(i),a=t.get(o);null!=a&&e.push(i+":"+a+("color"===n?"":"px"))}),e.push(o(r)),null!=s&&e.push("padding:"+c.normalizeCssArray(s).join("px ")+"px"),e.join(";")+";"}function r(t,e){var n=document.createElement("div"),i=this._zr=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!o._enterable){var n=i.handler;u.normalizeEvent(t,e,!0),n.dispatch("mousemove",e)}},n.onmouseleave=function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1}}var s=n(288),l=n(440),u=n(441),h=n(299),c=n(296),d=s.each,p=c.toCamelCase,f=["","-webkit-","-moz-","-o-"];r.prototype={constructor:r,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+a(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var n,i=this._zr;i&&i.painter&&(n=i.painter.getViewportRootOffset())&&(t+=n.offsetLeft,e+=n.offsetTop);var o=this.el.style;o.left=t+"px",o.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}};var g=r;t.exports=g},function(t,e,n){var i=n(289),o=n(288),a=n(881);n(512),n(887),n(889),n(475),n(891),i.registerLayout(o.curry(a,"bar")),i.extendComponentView({type:"polar"})},function(t,e,n){function i(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function o(t){return t.dim}function a(t,e,n){var a=n.getWidth(),l=n.getHeight(),h={},c={},d=r(s.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,r=n.getAngleAxis(),s=n.getBaseAxis(),p=i(t),f=d[o(s)][p],g=f.offset,m=f.width,v=n.getOtherAxis(s),y=t.get("center")||["50%","50%"],x=u(y[0],a),_=u(y[1],l),b=t.get("barMinHeight")||0,w=t.get("barMinAngle")||0,S=v.getExtent()[0],M=v.model.get("max"),I=v.model.get("min"),T=[t.coordDimToDataDim("radius")[0],t.coordDimToDataDim("angle")[0]],A=e.mapArray(T,function(t,e){return n.dataToPoint([t,e])},!0);h[p]=h[p]||[],c[p]=c[p]||[],e.each(t.coordDimToDataDim(v.dim)[0],function(t,i){if(!isNaN(t)){h[p][i]||(h[p][i]={p:S,n:S},c[p][i]={p:S,n:S});var o,a,s,l,u=t>=0?"p":"n",d=n.pointToCoord(A[i]),f=c[p][i][u];if("radius"===v.dim)o=f,a=d[0],s=(-d[1]+g)*Math.PI/180,l=s+m*Math.PI/180,Math.abs(a)0?C=T[1]:C===T[1]&&t<0&&(C=T[0]),c[p][i][u]=C}e.setItemLayout(i,{cx:x,cy:_,r0:o,r:a,startAngle:s,endAngle:l})}},!0)}},this)}function r(t,e){var n={};s.each(t,function(t,e){var a=t.getData(),r=t.coordinateSystem,s=r.getBaseAxis(),l=s.getExtent(),h="category"===s.type?s.getBandWidth():Math.abs(l[1]-l[0])/a.count(),c=n[o(s)]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=c.stacks;n[o(s)]=c;var p=i(t);d[p]||c.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var f=u(t.get("barWidth"),h),g=u(t.get("barMaxWidth"),h),m=t.get("barGap"),v=t.get("barCategoryGap");f&&!d[p].width&&(f=Math.min(c.remainedWidth,f),d[p].width=f,c.remainedWidth-=f),g&&(d[p].maxWidth=g),null!=m&&(c.gap=m),null!=v&&(c.categoryGap=v)});var a={};return s.each(n,function(t,e){a[e]={};var n=t.stacks,i=t.bandWidth,o=u(t.categoryGap,i),r=u(t.gap,1),l=t.remainedWidth,h=t.autoWidthCount,c=(l-o)/(h+(h-1)*r);c=Math.max(c,0),s.each(n,function(t,e){var n=t.maxWidth;n&&n=0)return!0}function u(t){for(var e=t.split(/\n+/g),n=s(e.shift()).split(w),i=[],o=g.map(n,function(t){return{name:t,data:[]}}),a=0;a