UNPKG

dmp-cli

Version:

Dmp component's cli

1 lines 815 kB
var echarts=function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/static/js/dll/",n(n.s=1)}({"+TT/":function(t,e,n){var i=n("bYtY"),a=n("mFDi"),r=n("OELB").parsePercent,o=n("7aKB"),s=i.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,i,a){var r=0,o=0;null==i&&(i=1/0),null==a&&(a=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.position,f=l.getBoundingRect(),p=e.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===t){var m=f.width+(g?-g.x+f.x:0);(c=r+m)>i||l.newline?(r=0,c=m,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(h=o+v)>a||l.newline?(r+=s+n,o=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=r,d[1]=o,"horizontal"===t?r=c+n:o=h+n)})}var h=c,d=i.curry(c,"vertical"),f=i.curry(c,"horizontal");function p(t,e,n){n=o.normalizeCssArray(n||0);var i=e.width,s=e.height,l=r(t.left,i),u=r(t.top,s),c=r(t.right,i),h=r(t.bottom,s),d=r(t.width,i),f=r(t.height,s),p=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(f)&&(f=s-h-p-u),null!=m&&(isNaN(d)&&isNaN(f)&&(m>i/s?d=.8*i:f=.8*s),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=i-c-d-g),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-f/2-n[0];break;case"bottom":u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(f)&&(f=s-p-u-(h||0));var v=new a(l+n[3],u+n[0],d,f);return v.margin=n,v}function g(t,e){return e&&t&&s(l,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}e.LOCATION_PARAMS=l,e.HV_NAMES=u,e.box=h,e.vbox=d,e.hbox=f,e.getAvailableSize=function(t,e,n){var i=e.width,a=e.height,s=r(t.x,i),l=r(t.y,a),u=r(t.x2,i),c=r(t.y2,a);return(isNaN(s)||isNaN(parseFloat(t.x)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.y)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=a),n=o.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}},e.getLayoutRect=p,e.positionElement=function(t,e,n,r,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||"all";if(s||l){var c;if("raw"===u)c="group"===t.type?new a(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(c=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(c=c.clone()).applyTransform(h)}e=p(i.defaults({width:c.width,height:c.height},e),n,r);var d=t.position,f=s?e.x-c.x:0,g=l?e.y-c.y:0;t.attr("position","raw"===u?[f,g]:[d[0]+f,d[1]+g])}},e.sizeCalculable=function(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]},e.mergeLayoutParam=function(t,e,n){!i.isObject(n)&&(n={});var a=n.ignoreSize;!i.isArray(a)&&(a=[a,a]);var r=l(u[0],0),o=l(u[1],1);function l(n,i){var r={},o=0,l={},u=0;if(s(n,function(e){l[e]=t[e]}),s(n,function(t){c(e,t)&&(r[t]=l[t]=e[t]),h(r,t)&&o++,h(l,t)&&u++}),a[i])return h(e,n[1])?l[n[2]]=null:h(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&o){if(o>=2)return r;for(var d=0;d<n.length;d++){var f=n[d];if(!c(r,f)&&c(t,f)){r[f]=t[f];break}}return r}return l}function c(t,e){return t.hasOwnProperty(e)}function h(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){s(t,function(t){e[t]=n[t]})}d(u[0],t,r),d(u[1],t,o)},e.getLayoutParams=function(t){return g({},t)},e.copyLayoutParams=g},"+lIL":function(t,e,n){var i=n("ProS");n("/ry/"),n("3OrL");var a=n("L5E0"),r=n("7Phj");i.registerVisual(a),i.registerLayout(r)},"+rIm":function(t,e,n){var i=n("bYtY"),a=i.retrieve,r=i.defaults,o=i.extend,s=i.each,l=n("7aKB"),u=n("IwbS"),c=n("Qxkt"),h=n("OELB"),d=h.isRadianAroundZero,f=h.remRadian,p=n("oVpE").createSymbol,g=n("Fofx"),m=n("QBsz").applyTransform,v=n("aX7z").shouldShowAllLabels,y=Math.PI,x=function(t,e){this.opt=e,this.axisModel=t,r(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var n=new u.Group({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};x.prototype={constructor:x,hasBuilder:function(t){return!!_[t]},add:function(t){_[t].call(this)},getGroup:function(){return this.group}};var _={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,a=[n[0],0],r=[n[1],0];i&&(m(a,a,i),m(r,r,i));var l=o({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new u.Line({anid:"line",subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:r[0],y2:r[1]},style:l,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1}));var c=e.get("axisLine.symbol"),h=e.get("axisLine.symbolSize"),d=e.get("axisLine.symbolOffset")||0;if("number"==typeof d&&(d=[d,d]),null!=c){"string"==typeof c&&(c=[c,c]),"string"!=typeof h&&"number"!=typeof h||(h=[h,h]);var f=h[0],g=h[1];s([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((a[0]-r[0])*(a[0]-r[0])+(a[1]-r[1])*(a[1]-r[1]))}],function(e,n){if("none"!==c[n]&&null!=c[n]){var i=p(c[n],-f/2,-g/2,f,g,l.stroke,!0),r=e.r+e.offset,o=[a[0]+r*Math.cos(t.rotation),a[1]-r*Math.sin(t.rotation)];i.attr({rotation:e.rotate,position:o,silent:!0,z2:11}),this.group.add(i)}},this)}}},axisTickLabel:function(){var t=this.axisModel,e=this.opt,n=function(t,e,n){var i=e.axis;if(!e.get("axisTick.show")||i.scale.isBlank())return;for(var a=e.getModel("axisTick"),o=a.getModel("lineStyle"),s=a.get("length"),l=i.getTicksCoords(),c=[],h=[],d=t._transform,f=[],p=0;p<l.length;p++){var g=l[p].coord;c[0]=g,c[1]=0,h[0]=g,h[1]=n.tickDirection*s,d&&(m(c,c,d),m(h,h,d));var v=new u.Line({anid:"tick_"+l[p].tickValue,subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:r(o.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}),z2:2,silent:!0});t.group.add(v),f.push(v)}return f}(this,t,e);!function(t,e,n){if(v(t.axis))return;var i=t.get("axisLabel.showMinLabel"),a=t.get("axisLabel.showMaxLabel");e=e||[],n=n||[];var r=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(M(r),M(u)):I(r,o)&&(i?(M(o),M(c)):(M(r),M(u)));!1===a?(M(s),M(h)):I(l,s)&&(a?(M(l),M(d)):(M(s),M(h)))}(t,function(t,e,n){var i=e.axis;if(!a(n.axisLabelShow,e.get("axisLabel.show"))||i.scale.isBlank())return;var r=e.getModel("axisLabel"),o=r.get("margin"),l=i.getViewLabels(),h=(a(n.labelRotate,r.get("rotate"))||0)*y/180,d=w(n.rotation,h,n.labelDirection),f=e.getCategories&&e.getCategories(!0),p=[],g=S(e),m=e.get("triggerEvent");return s(l,function(a,s){var l=a.tickValue,h=a.formattedLabel,v=a.rawLabel,y=r;f&&f[l]&&f[l].textStyle&&(y=new c(f[l].textStyle,r,e.ecModel));var x=y.getTextColor()||e.get("axisLine.lineStyle.color"),_=[i.dataToCoord(l),n.labelOffset+n.labelDirection*o],w=new u.Text({anid:"label_"+l,position:_,rotation:d.rotation,silent:g,z2:10});u.setTextStyle(w.style,y,{text:h,textAlign:y.getShallow("align",!0)||d.textAlign,textVerticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||d.textVerticalAlign,textFill:"function"==typeof x?x("category"===i.type?v:"value"===i.type?l+"":l,s):x}),m&&(w.eventData=b(e),w.eventData.targetType="axisLabel",w.eventData.value=v),t._dumbGroup.add(w),w.updateTransform(),p.push(w),t.group.add(w),w.decomposeTransform()}),p}(this,t,e),n)},axisName:function(){var t=this.opt,e=this.axisModel,n=a(t.axisName,e.get("name"));if(n){var i,r,s=e.get("nameLocation"),c=t.nameDirection,h=e.getModel("nameTextStyle"),p=e.get("nameGap")||0,g=this.axisModel.axis.getExtent(),m=g[0]>g[1]?-1:1,v=["start"===s?g[0]-m*p:"end"===s?g[1]+m*p:(g[0]+g[1])/2,T(s)?t.labelOffset+c*p:0],x=e.get("nameRotate");null!=x&&(x=x*y/180),T(s)?i=w(t.rotation,null!=x?x:t.rotation,c):(i=function(t,e,n,i){var a,r,o=f(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;d(o-y/2)?(r=l?"bottom":"top",a="center"):d(o-1.5*y)?(r=l?"top":"bottom",a="center"):(r="middle",a=o<1.5*y&&o>y/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:a,textVerticalAlign:r}}(t,s,x||0,g),null!=(r=t.axisNameAvailableWidth)&&(r=Math.abs(r/Math.sin(i.rotation)),!isFinite(r)&&(r=null)));var _=h.getFont(),M=e.get("nameTruncate",!0)||{},I=M.ellipsis,A=a(t.nameTruncateMaxWidth,M.maxWidth,r),D=null!=I&&null!=A?l.truncateText(n,A,_,I,{minChar:2,placeholder:M.placeholder}):n,C=e.get("tooltip",!0),L=e.mainType,P={componentType:L,name:n,$vars:["name"]};P[L+"Index"]=e.componentIndex;var k=new u.Text({anid:"name",__fullText:n,__truncatedText:D,position:v,rotation:i.rotation,silent:S(e),z2:1,tooltip:C&&C.show?o({content:n,formatter:function(){return n},formatterParams:P},C):null});u.setTextStyle(k.style,h,{text:D,textFont:_,textFill:h.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:h.get("align")||i.textAlign,textVerticalAlign:h.get("verticalAlign")||i.textVerticalAlign}),e.get("triggerEvent")&&(k.eventData=b(e),k.eventData.targetType="axisName",k.eventData.name=n),this._dumbGroup.add(k),k.updateTransform(),this.group.add(k),k.decomposeTransform()}}},b=x.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},w=x.innerTextLayout=function(t,e,n){var i,a,r=f(e-t);return d(r)?(a=n>0?"top":"bottom",i="center"):d(r-y)?(a=n>0?"bottom":"top",i="center"):(a="middle",i=r>0&&r<y?n>0?"right":"left":n>0?"left":"right"),{rotation:r,textAlign:i,textVerticalAlign:a}};var S=x.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};function M(t){t&&(t.ignore=!0)}function I(t,e,n){var i=t&&t.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(i&&a){var r=g.identity([]);return g.rotate(r,r,-t.rotation),i.applyTransform(g.mul([],r,t.getLocalTransform())),a.applyTransform(g.mul([],r,e.getLocalTransform())),i.intersect(a)}}function T(t){return"middle"===t||"center"===t}var A=x;t.exports=A},"+wW9":function(t,e,n){var i=n("bYtY"),a=i.each,r=i.isArray,o=i.isObject,s=n("JuEJ"),l=n("4NO4").normalizeToArray;function u(t){a(c,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var c=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],h=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];t.exports=function(t,e){s(t,e),t.series=l(t.series),a(t.series,function(t){if(o(t)){var e=t.type;if("pie"!==e&&"gauge"!==e||null!=t.clockWise&&(t.clockwise=t.clockWise),"gauge"===e){var n=function(t,e){e=e.split(",");for(var n=t,i=0;i<e.length&&null!=(n=n&&n[e[i]]);i++);return n}(t,"pointer.color");null!=n&&function(t,e,n,i){e=e.split(",");for(var a,r=t,o=0;o<e.length-1;o++)null==r[a=e[o]]&&(r[a]={}),r=r[a];(i||null==r[e[o]])&&(r[e[o]]=n)}(t,"itemStyle.color",n)}u(t)}}),t.dataRange&&(t.visualMap=t.dataRange),a(h,function(e){var n=t[e];n&&(r(n)||(n=[n]),a(n,function(t){u(t)}))})}},"/IIm":function(t,e,n){n("Tghj").__DEV__;var i=n("bYtY"),a=n("H6uX"),r=n("IwbS"),o=n("pP6R"),s=n("gPAo"),l=i.curry,u=i.each,c=i.map,h=Math.min,d=Math.max,f=Math.pow,p=1e4,g=6,m=6,v="globalPan",y={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},x={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},_={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0;function w(t){a.call(this),this._zr=t,this.group=new r.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+b++,this._handlers={},u(X,function(t,e){this._handlers[e]=i.bind(t,this)},this)}function S(t,e){var n=K[e.brushType].createCover(t,e);return n.__brushOption=e,T(n,e),t.group.add(n),n}function M(t,e){var n=D(e);return n.endCreating&&(n.endCreating(t,e),T(e,e.__brushOption)),e}function I(t,e){var n=e.__brushOption;D(e).updateCoverShape(t,e,n.range,n)}function T(t,e){var n=e.z;null==n&&(n=p),t.traverse(function(t){t.z=n,t.z2=n})}function A(t,e){D(e).updateCommon(t,e),I(t,e)}function D(t){return K[t.__brushOption.brushType]}function C(t,e,n){var i,a=t._panels;if(!a)return!0;var r=t._transform;return u(a,function(t){t.isTargetByCursor(e,n,r)&&(i=t)}),i}function L(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function P(t){var e=t._covers,n=e.length;return u(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function k(t,e){var n=c(t._covers,function(t){var e=t.__brushOption,n=i.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function O(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function E(t,e,n,i){var a=new r.Group;return a.add(new r.Rect({name:"main",style:B(n),silent:!0,draggable:!0,cursor:"move",drift:l(t,e,a,"nswe"),ondragend:l(k,e,{isEnd:!0})})),u(i,function(n){a.add(new r.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:l(t,e,a,n),ondragend:l(k,e,{isEnd:!0})}))}),a}function N(t,e,n,i){var a=i.brushStyle.lineWidth||0,r=d(a,m),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],h=n[1][1],f=c-r+a/2,p=h-r+a/2,g=c-o,v=h-s,y=g+a,x=v+a;z(t,e,"main",o,s,g,v),i.transformable&&(z(t,e,"w",l,u,r,x),z(t,e,"e",f,u,r,x),z(t,e,"n",l,u,y,r),z(t,e,"s",l,p,y,r),z(t,e,"nw",l,u,r,r),z(t,e,"ne",f,u,r,r),z(t,e,"sw",l,p,r,r),z(t,e,"se",f,p,r,r))}function R(t,e){var n=e.__brushOption,i=n.transformable,a=e.childAt(0);a.useStyle(B(n)),a.attr({silent:!i,cursor:i?"move":"default"}),u(["w","e","n","s","se","sw","ne","nw"],function(n){var a=e.childOfName(n),o=function t(e,n){if(n.length>1){n=n.split("");var i=[t(e,n[0]),t(e,n[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var i=r.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[n],function(t){return r.getTransform(t.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[i]}(t,n);a&&a.attr({silent:!i,invisible:!i,cursor:i?x[o]+"-resize":null})})}function z(t,e,n,i,a,r,o){var s=e.childOfName(n);s&&s.setShape(function(t){var e=h(t[0][0],t[1][0]),n=h(t[0][1],t[1][1]),i=d(t[0][0],t[1][0]),a=d(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:a-n}}(H(t,e,[[i,a],[i+r,a+o]])))}function B(t){return i.defaults({strokeNoScale:!0},t.brushStyle)}function V(t,e,n,i){var a=[h(t,n),h(e,i)],r=[d(t,n),d(e,i)];return[[a[0],r[0]],[a[1],r[1]]]}function Y(t,e,n,i,a,r,o,s){var l=i.__brushOption,c=t(l.range),h=F(n,r,o);u(a.split(""),function(t){var e=y[t];c[e[0]][e[1]]+=h[e[0]]}),l.range=e(V(c[0][0],c[1][0],c[0][1],c[1][1])),A(n,i),k(n,{isEnd:!1})}function G(t,e,n,i,a){var r=e.__brushOption.range,o=F(t,n,i);u(r,function(t){t[0]+=o[0],t[1]+=o[1]}),A(t,e),k(t,{isEnd:!1})}function F(t,e,n){var i=t.group,a=i.transformCoordToLocal(e,n),r=i.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function H(t,e,n){var a=L(t,e);return a&&!0!==a?a.clipPath(n,t._transform):i.clone(n)}function W(t){var e=t.event;e.preventDefault&&e.preventDefault()}function U(t,e,n){return t.childOfName("main").contain(e,n)}function j(t,e,n,a){var r,o=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],a=n[0]-i[0],r=n[1]-i[1];return f(a*a+r*r,.5)>g}(t)||o){if(s&&!o){"single"===l.brushMode&&P(t);var u=i.clone(l);u.brushType=Z(u.brushType,s),u.panelId=!0===s?null:s.panelId,o=t._creatingCover=S(t,u),t._covers.push(o)}if(o){var c=K[Z(t._brushType,s)];o.__brushOption.range=c.getCreatingRange(H(t,o,t._track)),a&&(M(t,o),c.updateCommon(t,o)),I(t,o),r={isEnd:a}}}else a&&"single"===l.brushMode&&l.removeOnClick&&C(t,e,n)&&P(t)&&(r={isEnd:a,removeOnClick:!0});return r}function Z(t,e){return"auto"===t?e.defaultBrushType:t}w.prototype={constructor:w,enableBrush:function(t){return this._brushType&&function(t){var e=t._zr;o.release(e,v,t._uid),u(t._handlers,function(t,n){e.off(n,t)}),t._brushType=t._brushOption=null}(this),t.brushType&&function(t,e){var n=t._zr;t._enableGlobalPan||o.take(n,v,t._uid);u(t._handlers,function(t,e){n.on(e,t)}),t._brushType=e.brushType,t._brushOption=i.merge(i.clone(_),e,!0)}(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};i.each(t,function(t){e[t.panelId]=i.clone(t)})}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){u(this._covers,t,e)},updateCovers:function(t){t=i.map(t,function(t){return i.merge(i.clone(_),t,!0)});var e="\0-brush-index-",n=this._covers,a=this._covers=[],r=this,o=this._creatingCover;return new s(n,t,function(t,e){return l(t.__brushOption,e)},l).add(u).update(u).remove(function(t){n[t]!==o&&r.group.remove(n[t])}).execute(),this;function l(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function u(e,i){var s=t[e];if(null!=i&&n[i]===o)a[e]=n[i];else{var l=a[e]=null!=i?(n[i].__brushOption=s,n[i]):M(r,S(r,s));A(r,l)}}},unmount:function(){return this.enableBrush(!1),P(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},i.mixin(w,a);var X={mousedown:function(t){if(this._dragging)q.call(this,t);else if(!t.target||!t.target.draggable){W(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=C(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function(t,e,n){if(t._brushType){var i=t._zr,a=t._covers,r=C(t,e,n);if(!t._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(r&&(!0===r||s.panelId===r.panelId)&&K[s.brushType].contain(a[o],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}(this,t,e),this._dragging){W(t);var n=j(this,t,e,!1);n&&k(this,n)}},mouseup:q};function q(t){if(this._dragging){W(t);var e=j(this,t,this.group.transformCoordToLocal(t.offsetX,t.offsetY),!0);this._dragging=!1,this._track=[],this._creatingCover=null,e&&k(this,e)}}var K={lineX:Q(0),lineY:Q(1),rect:{createCover:function(t,e){return E(l(Y,function(t){return t},function(t){return t}),t,e,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(t){var e=O(t);return V(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){N(t,e,n,i)},updateCommon:R,contain:U},polygon:{createCover:function(t,e){var n=new r.Group;return n.add(new r.Polyline({name:"main",style:B(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new r.Polygon({name:"main",draggable:!0,drift:l(G,t,e),ondragend:l(k,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:H(t,e,n)})},updateCommon:R,contain:U}};function Q(t){return{createCover:function(e,n){return E(l(Y,function(e){var n=[e,[0,100]];return t&&n.reverse(),n},function(e){return e[t]}),e,n,[["w","e"],["n","s"]][t])},getCreatingRange:function(e){var n=O(e);return[h(n[0][t],n[1][t]),d(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,a){var r,o=L(e,n);if(!0!==o&&o.getLinearBrushOtherExtent)r=o.getLinearBrushOtherExtent(t,e._transform);else{var s=e._zr;r=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,r];t&&l.reverse(),N(e,n,l,a)},updateCommon:R,contain:U}}var J=w;t.exports=J},"/SeX":function(t,e,n){var i=n("knOB"),a=n("qZFw"),r=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new i,this._angleAxis=new a,this._radiusAxis.polar=this._angleAxis.polar=this};r.prototype={type:"polar",axisPointerEnabled:!0,constructor:r,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),r=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]);i.inverse?r=o-360:o=r+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=l<r?1:-1;l<r||l>o;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]}};var o=r;t.exports=o},"/WM3":function(t,e,n){var i=n("QuXc"),a={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),a=(t.visualColorAccessPath||"itemStyle.color").split("."),r=t.get(a)||t.getColorFromPalette(t.name,null,e.getSeriesCount());if(n.setVisual("color",r),!e.isSeriesFiltered(t)){"function"!=typeof r||r instanceof i||n.each(function(e){n.setItemVisual(e,"color",r(t.getDataParams(e)))});return{dataEach:n.hasItemOption?function(t,e){var n=t.getItemModel(e).get(a,!0);null!=n&&t.setItemVisual(e,"color",n)}:null}}}};t.exports=a},"/d5a":function(t,e){var n={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},i=function(t,e){return Math.round(t.length/2)};t.exports=function(t){return{seriesType:t,modifyOutputEnd:!0,reset:function(t,e,a){var r=t.getData(),o=t.get("sampling"),s=t.coordinateSystem;if("cartesian2d"===s.type&&o){var l,u=s.getBaseAxis(),c=s.getOtherAxis(u),h=u.getExtent(),d=h[1]-h[0],f=Math.round(r.count()/d);f>1&&("string"==typeof o?l=n[o]:"function"==typeof o&&(l=o),l&&t.setData(r.downSample(r.mapDimension(c.dim),1/f,l,i)))}}}}},"/iHx":function(t,e,n){var i=n("6GrX"),a=n("IwbS"),r=["textStyle","color"],o={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(r):null)},getFont:function(){return a.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return i.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};t.exports=o},"/ry/":function(t,e,n){var i=n("bYtY"),a=n("T4UG"),r=n("5GhG").seriesModelMixin,o=a.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(o,r,!0);var s=o;t.exports=s},"/stD":function(t,e,n){var i=n("bYtY"),a=n("IUWy"),r=n("Kagy").toolbox.brush;function o(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}o.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:i.clone(r.title)};var s=o.prototype;s.render=s.updateView=function(t,e,n){var a,r,o;e.eachComponent({mainType:"brush"},function(t){a=t.brushType,r=t.brushOption.brushMode||"single",o|=t.areas.length}),this._brushType=a,this._brushMode=r,i.each(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===a)?"emphasis":"normal")})},s.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return i.each(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},s.onclick=function(t,e,n){var i=this._brushType,a=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===a?"single":"multiple":a}})},a.register("brush",o);var l=o;t.exports=l},"/y7N":function(t,e,n){var i=n("bYtY"),a=n("IwbS"),r=n("6GrX"),o=n("7aKB"),s=n("Fofx"),l=n("aX7z"),u=n("+rIm");function c(t,e,n,i,a){var s=h(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),l=n.getModel("label"),u=o.normalizeCssArray(l.get("padding")||0),c=l.getFont(),d=r.getBoundingRect(s,c),f=a.position,p=d.width+u[1]+u[3],g=d.height+u[0]+u[2],m=a.align;"right"===m&&(f[0]-=p),"center"===m&&(f[0]-=p/2);var v=a.verticalAlign;"bottom"===v&&(f[1]-=g),"middle"===v&&(f[1]-=g/2),function(t,e,n,i){var a=i.getWidth(),r=i.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+n,r)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(f,p,g,i);var y=l.get("backgroundColor");y&&"auto"!==y||(y=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:p,height:g,r:l.get("borderRadius")},position:f.slice(),style:{text:s,textFont:c,textFill:l.getTextColor(),textPosition:"inside",textPadding:u,fill:y,stroke:l.get("borderColor")||"transparent",lineWidth:l.get("borderWidth")||0,shadowBlur:l.get("shadowBlur"),shadowColor:l.get("shadowColor"),shadowOffsetX:l.get("shadowOffsetX"),shadowOffsetY:l.get("shadowOffsetY")},z2:10}}function h(t,e,n,a,r){t=e.scale.parse(t);var o=e.scale.getLabel(t,{precision:r.precision}),s=r.formatter;if(s){var u={value:l.getAxisRawValue(e,t),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};i.each(a,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,a=e&&e.getDataParams(i);a&&u.seriesData.push(a)}),i.isString(s)?o=s.replace("{value}",o):i.isFunction(s)&&(o=s(u))}return o}function d(t,e,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),a.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}e.buildElStyle=function(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e},e.buildLabelElOption=c,e.getValueLabel=h,e.getTransformedPosition=d,e.buildCartesianSingleLabelElOption=function(t,e,n,i,a,r){var o=u.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get("label.margin"),c(e,i,a,r,{position:d(i.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})},e.makeLineShape=function(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}},e.makeRectShape=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},e.makeSectorShape=function(t,e,n,i,a,r){return{cx:t,cy:e,r0:n,r:i,startAngle:a,endAngle:r,clockwise:!0}}},"0/Rx":function(t,e){t.exports=function(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),a=0;a<n.length;a++)if(!n[a].isSelected(e))return!1;return!0})}}}}},"01d+":function(t,e,n){var i=n("bYtY").each,a=n("HF/U"),r=a.simpleLayout,o=a.simpleLayoutEdge;t.exports=function(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var a=t.getData(),s=[];i(n.dimensions,function(t){s=s.concat(a.mapDimension(t,!0))});for(var l=0;l<a.count();l++){for(var u=[],c=!1,h=0;h<s.length;h++){var d=a.get(s[h],l);isNaN(d)||(c=!0),u.push(d)}c?a.setItemLayout(l,n.dataToPoint(u)):a.setItemLayout(l,[NaN,NaN])}o(a.graph)}else e&&"none"!==e||r(t)})}},"06DH":function(t,e,n){var i=n("ProS"),a=n("bYtY"),r=n("Kagy"),o=n("IUWy"),s=r.toolbox.magicType;function l(t){this.model=t}l.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:a.clone(s.title),option:{},seriesIndex:{}};var u=l.prototype;u.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return a.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var c={line:function(t,e,n,i){if("bar"===t)return a.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return a.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){if("line"===t||"bar"===t)return a.merge({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(t,e,n,i){if("line"===t||"bar"===t)return a.merge({id:e,stack:""},i.get("option.tiled")||{},!0)}},h=[["line","bar"],["stack","tiled"]];u.onclick=function(t,e,n){var i=this.model,r=i.get("seriesIndex."+n);if(c[n]){var o={series:[]};a.each(h,function(t){a.indexOf(t,n)>=0&&a.each(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(e){var r=e.subType,s=e.id,l=c[n](r,s,e,i);l&&(a.defaults(l,e.option),o.series.push(l));var u=e.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===n||"bar"===n)){var h=u.getAxesByScale("ordinal")[0];if(h){var d=h.dim+"Axis",f=t.queryComponents({mainType:d,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;o[d]=o[d]||[];for(var p=0;p<=f;p++)o[d][f]=o[d][f]||{};o[d][f].boundaryGap="bar"===n}}}),e.dispatchAction({type:"changeMagicType",currentType:n,newOption:o})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),o.register("magicType",l);var d=l;t.exports=d},"06Qe":function(t,e,n){var i,a=n("ItGF"),r="urn:schemas-microsoft-com:vml",o="undefined"==typeof window?null:window,s=!1,l=o&&o.document;if(l&&!a.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",r),i=function(t){return l.createElement("<zrvml:"+t+' class="zrvml">')}}catch(t){i=function(t){return l.createElement("<"+t+' xmlns="'+r+'" class="zrvml">')}}e.doc=l,e.createNode=function(t){return i(t)},e.initVML=function(){if(!s&&l){s=!0;var t=l.styleSheets;t.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}}},"0Bwj":function(t,e,n){var i=n("T4UG"),a=n("I3/A"),r=n("7aKB").encodeHTML,o=n("Qxkt"),s=(n("Tghj").__DEV__,i.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(t,e){for(var n=t.edges||t.links,i=t.data||t.nodes,r=t.levels,s=this.levelModels={},l=0;l<r.length;l++)null!=r[l].depth&&r[l].depth>=0&&(s[r[l].depth]=new o(r[l],this,e));if(i&&n)return a(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){return t.customizeGetParent(function(t){var n=this.parentModel,i=n.getData().getItemLayout(e).depth,a=n.levelModels[i];return a||this.parentModel}),t}),e.wrapMethod("getItemModel",function(t,e){return t.customizeGetParent(function(t){var n=this.parentModel,i=n.getGraph().getEdgeByIndex(e),a=i.node1.getLayout().depth,r=n.levelModels[a];return r||this.parentModel}),t})}).data},setNodePosition:function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getDataParams(t,n),a=i.data,o=a.source+" -- "+a.target;return i.value&&(o+=" : "+i.value),r(o)}if("node"===n){var l=this.getGraph().getNodeByIndex(t).getLayout().value,u=this.getDataParams(t,n).data.name;if(l)o=u+" : "+l;return r(o)}return s.superCall(this,"formatTooltip",t,e)},optionUpdated:function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}})),l=s;t.exports=l},"0HBW":function(t,e,n){var i=n("ProS"),a=n("bYtY");function r(t,e){e.update="updateView",i.registerAction(e,function(e,n){var i={};return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name);var r=n.coordinateSystem;a.each(r.regions,function(t){i[t.name]=n.isSelected(t.name)||!1})}),{selected:i,name:e.name}})}n("Hxpc"),n("7uqq"),n("dmGj"),n("SehX"),r("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),r("select",{type:"geoSelect",event:"geoselected"}),r("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(t,e,n){var i=n("bYtY"),a=n("+TT/"),r=n("OELB"),o=n("IDmD");function s(t,e,n){this._model=t}function l(t,e,n,i){var a=n.calendarModel,r=n.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem:null;return o===this?o[t](i):null}s.prototype={constructor:s,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=r.parseDate(t)).getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var i=t.getDate();i=i<10?"0"+i:i;var a=t.getDay();return{y:e,m:n,d:i,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)?this.getDateInfo(t):((t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t))},update:function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],o=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[n,7]:[7,n];i.each([0,1],function(t){h(o,t)&&(s[r[t]]=o[t]*l[t])});var u={width:e.getWidth(),height:e.getHeight()},c=this._rect=a.getLayoutRect(s,u);function h(t,e){return null!=t[e]&&"auto"!==t[e]}i.each([0,1],function(t){h(o,t)||(o[t]=c[r[t]]/l[t])}),this._sw=o[0],this._sh=o[1]},dataToPoint:function(t,e){i.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),a=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=a.start.time&&n.time<a.end.time+864e5))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},convertToPixel:i.curry(l,"dataToPoint"),convertFromPixel:i.curry(l,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(i.isArray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var n=this.getDateInfo(e),a=n.date;a.setMonth(a.getMonth()+1);var r=this.getNextNDay(a,-1);t=[n.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var n=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,i=new Date(t[0].time),a=i.getDate(),r=t[1].date.getDate();if(i.setDate(a+n-1),i.getDate()!==r)for(var o=i.getTime()-t[1].time>0?1:-1;i.getDate()!==r&&(i.getTime()-t[1].time)*o>0;)n-=o,i.setDate(a+n-1);var s=Math.floor((n+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return!1;var a=7*(t-1)-i.fweek+e,r=new Date(i.start.time);return r.setDate(i.start.d+a),this.getDateInfo(r)}},s.dimensions=s.prototype.dimensions,s.getDimensionsInfo=s.prototype.getDimensionsInfo,s.create=function(t,e){var n=[];return t.eachComponent("calendar",function(i){var a=new s(i,t,e);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},o.register("calendar",s);var u=s;t.exports=u},"0V0F":function(t,e,n){var i=n("bYtY"),a=i.createHashMap,r=i.each;function o(t){r(t,function(e,n){var i=[],a=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=o.map(r,function(r,l,u){var c,h,d=o.get(e.stackedDimension,u);if(isNaN(d))return a;s?h=o.getRawIndex(u):c=o.get(e.stackedByDimension,u);for(var f=NaN,p=n-1;p>=0;p--){var g=t[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return i[0]=d,i[1]=f,i});o.hostModel.setData(l),e.data=l})}t.exports=function(t){var e=a();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=t.getData(),r={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(r)}}),e.each(o)}},"0o9m":function(t,e,n){var i=n("ProS");n("hNWo"),n("RlCK"),n("XpcN");var a=n("kDyi"),r=n("bLfw");i.registerProcessor(a),r.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(t,e,n){var i=n("ProS");i.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),i.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0s+r":function(t,e,n){var i=n("bYtY"),a=n("QBsz"),r=n("y23F"),o=n("H6uX"),s=n("YH21"),l=n("C0SR"),u="silent";function c(t){s.stop(this.event)}function h(){}h.prototype.dispose=function(){};var d=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],f=function(t,e,n,i){o.call(this),this.storage=t,this.painter=e,this.painterRoot=i,n=n||new h,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,r.call(this),this.setHandlerProxy(n)};function p(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i,a=t;a;){if(a.clipPath&&!a.clipPath.contain(e,n))return!1;a.silent&&(i=!0),a=a.parent}return!i||u}return!1}f.prototype={constructor:f,setHandlerProxy:function(t){this.proxy&&this.proxy.dispose(),t&&(i.each(d,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},mousemove:function(t){var e=t.zrX,n=t.zrY,i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var r=this._hovered=this.findHover(e,n),o=r.target,s=this.proxy;s.setCursor&&s.setCursor(o?o.cursor:"default"),a&&o!==a&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(r,"mousemove",t),o&&o!==a&&this.dispatchToElement(r,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,n=t.toElement||t.relatedTarget;do{n=n&&n.parentNode}while(n&&9!==n.nodeType&&!(e=n===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var n=this[t];n&&n.call(this,e)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dispatchToElement:function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var a="on"+e,r=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:c}}(e,t,n);i&&(i[a]&&(r.cancelBubble=i[a].call(i,r)),i.trigger(e,r),i=i.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[a]&&t[a].call(t,r),t.trigger&&t.trigger(e,r)}))}},findHover:function(t,e,n){for(var i=this.storage.getDisplayList(),a={x:t,y:e},r=i.length-1;r>=0;r--){var o;if(i[r]!==n&&!i[r].ignore&&(o=p(i[r],t,e))&&(!a.topTarget&&(a.topTarget=i[r]),o!==u)){a.target=i[r];break}}return a},processGesture:function(t,e){this._gestureMgr||(this._gestureMgr=new l);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var a=i.type;t.gestureEvent=a,this.dispatchToElement({target:i.target},a,i.event)}}},i.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){f.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY),i=n.target;if("mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}),i.mixin(f,o),i.mixin(f,r);var g=f;t.exports=g},1:function(t,e,n){t.exports=n},"10cm":function(t,e,n){var i=n("ProS"),a=n("2B6p").updateCenterAndZoom;n("0qV/");i.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},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)})})},"1Jh7":function(t,e,n){var i=n("y+Vt"),a=n("T6xi"),r=i.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){a.buildPath(t,e,!1)}});t.exports=r},"1LEl":function(t,e,n){var i=n("ProS"),a=n("F9bG"),r=i.extendComponentView({type:"axisPointer",render:function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";a.register("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){a.unregister(e.getZr(),"axisPointer"),r.superApply(this._model,"remove",arguments)},dispose:function(t,e){a.unregister("axisPointer",e),r.superApply(this._model,"dispose",arguments)}}),o=r;t.exports=o},"1MYJ":function(t,e,n){var i=n("y+Vt"),a=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,n=0;n<e.length;n++)t=t||e[n].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},buildPath:function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}});t.exports=a},"1NG9":function(t,e,n){var i=n("y+Vt"),a=n("QBsz"),r=n("iXp4"),o=a.min,s=a.max,l=a.scaleAndAdd,u=a.copy,c=[],h=[],d=[];function f(t){return isNaN(t[0])||isNaN(t[1])}function p(t,e,n,i,r,p,g,m,v,y,x){return"none"!==y&&y?function(t,e,n,i,a,r,o,s,l,c,p){for(var g=0,m=n,v=0;v<i;v++){var y=e[m];if(m>=a||m<0)break;if(f(y)){if(p){m+=r;continue}break}if(m===n)t[r>0?"moveTo":"lineTo"](y[0],y[1]);else if(l>0){var x=e[g],_="y"===c?1:0,b=(y[_]-x[_])*l;u(h,x),h[_]=x[_]+b,u(d,y),d[_]=y[_]-b,t.bezierCurveTo(h[0],h[1],d[0],d[1],y[0],y[1])}else t.lineTo(y[0],y[1]);g=m,m+=r}return v}.apply(this,arguments):function(t,e,n,i,r,p,g,m,v,y,x){for(var _=0,b=n,w=0;w<i;w++){var S=e[b];if(b>=r||b<0)break;if(f(S)){if(x){b+=p;continue}break}if(b===n)t[p>0?"moveTo":"lineTo"](S[0],S[1]),u(h,S);else if(v>0){var M=b+p,I=e[M];if(x)for(;I&&f(e[M]);)I=e[M+=p];var T=.5,A=e[_],I=e[M];if(!I||f(I))u(d,S);else{var D,C;if(f(I)&&!x&&(I=S),a.sub(c,I,A),"x"===y||"y"===y){var L="x"===y?0:1;D=Math.abs(S[L]-A[L]),C=Math.abs(S[L]-I[L])}else D=a.dist(S,A),C=a.dist(S,I);l(d,S,c,-v*(1-(T=C/(C+D))))}o(h,h,m),s(h,h,g),o(d,d,m),s(d,d,g),t.bezierCurveTo(h[0],h[1],d[0],d[1],S[0],S[1]),l(h,S,c,v*T)}else t.lineTo(S[0],S[1]);_=b,b+=p}return w}.apply(this,arguments)}function g(t,e){var n=[1/0,1/0],i=[-1/0,-1/0];if(e)for(var a=0;a<t.length;a++){var r=t[a];r[0]<n[0]&&(n[0]=r[0]),r[1]<n[1]&&(n[1]=r[1]),r[0]>i[0]&&(i[0]=r[0]),r[1]>i[1]&&(i[1]=r[1])}return{min:e?n:i,max:e?i:n}}var m=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:r(i.prototype.brush),buildPath:function(t,e){var n=e.points,i=0,a=n.length,r=g(n,e.smoothConstraint);if(e.connectNulls){for(;a>0&&f(n[a-1]);a--);for(;i<a&&f(n[i]);i++);}for(;i<a;)i+=p(t,n,i,a,a,1,r.min,r.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),v=i.extend({