diff --git a/Makefile b/Makefile index c217eb88..f737d3f5 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,12 @@ build: frps frpc # compile assets into binary file file: - rm -rf ./assets/static/* - cp -rf ./web/frps/dist/* ./assets/static - go get -d github.com/rakyll/statik - go install github.com/rakyll/statik - rm -rf ./assets/statik + rm -rf ./assets/frps/static/* + rm -rf ./assets/frpc/static/* + cp -rf ./web/frps/dist/* ./assets/frps/static + cp -rf ./web/frpc/dist/* ./assets/frpc/static + rm -rf ./assets/frps/statik + rm -rf ./assets/frpc/statik go generate ./assets/... fmt: @@ -18,7 +19,6 @@ fmt: frps: go build -o bin/frps ./cmd/frps - @cp -rf ./assets/static ./bin frpc: go build -o bin/frpc ./cmd/frpc diff --git a/assets/assets.go b/assets/assets.go index 7be87c88..504c0e82 100644 --- a/assets/assets.go +++ b/assets/assets.go @@ -14,8 +14,10 @@ package assets -//go:generate statik -src=./static -//go:generate go fmt statik/statik.go +//go:generate statik -src=./frps/static -dest=./frps +//go:generate statik -src=./frpc/static -dest=./frpc +//go:generate go fmt ./frps/statik/statik.go +//go:generate go fmt ./frpc/statik/statik.go import ( "io/ioutil" @@ -24,8 +26,6 @@ import ( "path" "github.com/rakyll/statik/fs" - - _ "github.com/fatedier/frp/assets/statik" ) var ( diff --git a/assets/static/6f0a76321d30f3c8120915e57f7bd77e.ttf b/assets/frpc/static/6f0a76321d30f3c8120915e57f7bd77e.ttf similarity index 100% rename from assets/static/6f0a76321d30f3c8120915e57f7bd77e.ttf rename to assets/frpc/static/6f0a76321d30f3c8120915e57f7bd77e.ttf diff --git a/assets/static/favicon.ico b/assets/frpc/static/favicon.ico similarity index 100% rename from assets/static/favicon.ico rename to assets/frpc/static/favicon.ico diff --git a/assets/frpc/static/index.html b/assets/frpc/static/index.html new file mode 100644 index 00000000..b1eb88a3 --- /dev/null +++ b/assets/frpc/static/index.html @@ -0,0 +1 @@ +
=0;r--)n=o.merge(n,e[r],!0);l.set(this,\"__defaultOption\",n)}return l.get(this,\"__defaultOption\")},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+\"Index\",!0),id:this.get(e+\"Id\",!0)})}});l.enableClassManagement(d,{registerWhenExtend:!0}),a.enableSubTypeDefaulter(d),a.enableTopologicalTravel(d,n),o.mixin(d,c);var p=d;e.exports=p},function(e,t){var i={};i=\"undefined\"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0,svgSupported:!0}:function(e){var t={},i={},n=e.match(/Firefox\\/([\\d.]+)/),o=e.match(/MSIE\\s([\\d.]+)/)||e.match(/Trident\\/.+?rv:(([\\d.]+))/),r=e.match(/Edge\\/([\\d.]+)/),a=/micromessenger/i.test(e);return n&&(i.firefox=!0,i.version=n[1]),o&&(i.ie=!0,i.version=o[1]),r&&(i.edge=!0,i.version=r[1]),a&&(i.weChat=!0),{browser:i,os:t,node:!1,canvasSupported:!!document.createElement(\"canvas\").getContext,svgSupported:\"undefined\"!=typeof SVGRect,touchEventsSupported:\"ontouchstart\"in window&&!i.ie&&!i.edge,pointerEventsSupported:\"onpointerdown\"in window&&(i.edge||i.ie&&i.version>=11)}}(navigator.userAgent);var n=i;e.exports=n},function(e,t,i){function n(e){o.call(this,e),this.path=null}var o=i(96),r=i(0),a=i(59),l=i(680),s=i(252),c=s.prototype.getCanvasPattern,u=Math.abs,d=new a(!0);n.prototype={constructor:n,type:\"path\",__dirtyPath:!0,strokeContainThreshold:5,brush:function(e,t){var i=this.style,n=this.path||d,o=i.hasStroke(),r=i.hasFill(),a=i.fill,l=i.stroke,s=r&&!!a.colorStops,u=o&&!!l.colorStops,p=r&&!!a.image,h=o&&!!l.image;if(i.bind(e,this,t),this.setTransform(e),this.__dirty){var f;s&&(f=f||this.getBoundingRect(),this._fillGradient=i.getGradient(e,a,f)),u&&(f=f||this.getBoundingRect(),this._strokeGradient=i.getGradient(e,l,f))}s?e.fillStyle=this._fillGradient:p&&(e.fillStyle=c.call(a,e)),u?e.strokeStyle=this._strokeGradient:h&&(e.strokeStyle=c.call(l,e));var g=i.lineDash,m=i.lineDashOffset,v=!!e.setLineDash,b=this.getGlobalScale();n.setScale(b[0],b[1]),this.__dirtyPath||g&&!v&&o?(n.beginPath(e),g&&!v&&(n.setLineDash(g),n.setLineDashOffset(m)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),r&&n.fill(e),g&&v&&(e.setLineDash(g),e.lineDashOffset=m),o&&n.stroke(e),g&&v&&e.setLineDash([]),this.restoreTransform(e),null!=i.text&&this.drawRectText(e,this.getBoundingRect())},buildPath:function(e,t,i){},createPathProxy:function(){this.path=new a},getBoundingRect:function(){var e=this._rect,t=this.style,i=!e;if(i){var n=this.path;n||(n=this.path=new a),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),e=n.getBoundingRect()}if(this._rect=e,t.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||i){o.copy(e);var r=t.lineWidth,l=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(r=Math.max(r,this.strokeContainThreshold||4)),l>1e-10&&(o.width+=r/l,o.height+=r/l,o.x-=r/l/2,o.y-=r/l/2)}return o}return e},contain:function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect(),o=this.style;if(e=i[0],t=i[1],n.contain(e,t)){var r=this.path.data;if(o.hasStroke()){var a=o.lineWidth,s=o.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(o.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),l.containStroke(r,a/s,e,t)))return!0}if(o.hasFill())return l.contain(r,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate(\"shape\",e)},attrKV:function(e,t){\"shape\"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):o.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var i=this.shape;if(i){if(r.isObject(e))for(var n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);else i[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&u(e[0]-1)>1e-10&&u(e[3]-1)>1e-10?Math.sqrt(u(e[0]*e[3]-e[2]*e[1])):1}},n.extend=function(e){var t=function(t){n.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var i=e.shape;if(i){this.shape=this.shape||{};var o=this.shape;for(var r in i)!o.hasOwnProperty(r)&&i.hasOwnProperty(r)&&(o[r]=i[r])}e.init&&e.init.call(this,t)};r.inherits(t,n);for(var i in e)\"style\"!==i&&\"shape\"!==i&&(t.prototype[i]=e[i]);return t},r.inherits(n,o);var p=n;e.exports=p},function(e,t,i){var n=i(4),o=(n.__DEV__,i(0)),r=i(17),a=i(8),l=a.formatTime,s=a.encodeHTML,c=a.addCommas,u=a.getTooltipMarker,d=i(28),p=d.set,h=d.get,f=i(5),g=i(16),m=i(213),v=i(6),b=v.getLayoutParams,x=v.mergeLayoutParam,y=g.extend({type:\"series.__base__\",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:\"itemStyle.normal.color\",layoutMode:null,init:function(e,t,i,n){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(e,i);var o=this.getInitialData(e,i);p(this,\"dataBeforeProcessed\",o),this.restoreData()},mergeDefaultAndTheme:function(e,t){var i=this.layoutMode,n=i?b(e):{},r=this.subType;g.hasClass(r)&&(r+=\"Series\"),o.merge(e,t.getTheme().get(this.subType)),o.merge(e,this.getDefaultOption()),f.defaultEmphasis(e.label,[\"show\"]),this.fillDataTextStyle(e.data),i&&x(e,n,i)},mergeOption:function(e,t){e=o.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var i=this.layoutMode;i&&x(this.option,e,i);var n=this.getInitialData(e,t);n&&(p(this,\"data\",n),p(this,\"dataBeforeProcessed\",n.cloneShallow()))},fillDataTextStyle:function(e){if(e)for(var t=[\"show\"],i=0;i =0){var r=\"touchend\"!=n?t.targetTouches[0]:t.changedTouches[0];r&&o(e,r,t,i)}else o(e,t,t,i),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var a=t.button;return null==t.which&&void 0!==a&&h.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function l(e,t,i){p?e.addEventListener(t,i):e.attachEvent(\"on\"+t,i)}function s(e,t,i){p?e.removeEventListener(t,i):e.detachEvent(\"on\"+t,i)}function c(e){return e.which>1}var u=i(47);t.Dispatcher=u;var d=i(17),p=\"undefined\"!=typeof window&&!!window.addEventListener,h=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,f=p?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};t.clientToLocal=o,t.normalizeEvent=a,t.addEventListener=l,t.removeEventListener=s,t.stop=f,t.notLeftMouse=c},function(e,t,i){function n(e){return e=Math.round(e),e<0?0:e>255?255:e}function o(e){return e=Math.round(e),e<0?0:e>360?360:e}function r(e){return e<0?0:e>1?1:e}function a(e){return n(e.length&&\"%\"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function l(e){return r(e.length&&\"%\"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function s(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function c(e,t,i){return e+(t-e)*i}function u(e,t,i,n,o){return e[0]=t,e[1]=i,e[2]=n,e[3]=o,e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function p(e,t){A&&d(A,t),A=M.put(e,A||t.slice())}function h(e,t){if(e){t=t||[];var i=M.get(e);if(i)return d(t,i);e+=\"\";var n=e.replace(/ /g,\"\").toLowerCase();if(n in k)return d(t,k[n]),p(e,t),t;if(\"#\"!==n.charAt(0)){var o=n.indexOf(\"(\"),r=n.indexOf(\")\");if(-1!==o&&r+1===n.length){var s=n.substr(0,o),c=n.substr(o+1,r-(o+1)).split(\",\"),h=1;switch(s){case\"rgba\":if(4!==c.length)return void u(t,0,0,0,1);h=l(c.pop());case\"rgb\":return 3!==c.length?void u(t,0,0,0,1):(u(t,a(c[0]),a(c[1]),a(c[2]),h),p(e,t),t);case\"hsla\":return 4!==c.length?void u(t,0,0,0,1):(c[3]=l(c[3]),f(c,t),p(e,t),t);case\"hsl\":return 3!==c.length?void u(t,0,0,0,1):(f(c,t),p(e,t),t);default:return}}u(t,0,0,0,1)}else{if(4===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=4095?(u(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),p(e,t),t):void u(t,0,0,0,1)}if(7===n.length){var g=parseInt(n.substr(1),16);return g>=0&&g<=16777215?(u(t,(16711680&g)>>16,(65280&g)>>8,255&g,1),p(e,t),t):void u(t,0,0,0,1)}}}}function f(e,t){var i=(parseFloat(e[0])%360+360)%360/360,o=l(e[1]),r=l(e[2]),a=r<=.5?r*(o+1):r+o-r*o,c=2*r-a;return t=t||[],u(t,n(255*s(c,a,i+1/3)),n(255*s(c,a,i)),n(255*s(c,a,i-1/3)),1),4===e.length&&(t[3]=e[3]),t}function g(e){if(e){var t,i,n=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(n,o,r),l=Math.max(n,o,r),s=l-a,c=(l+a)/2;if(0===s)t=0,i=0;else{i=c<.5?s/(l+a):s/(2-l-a);var u=((l-n)/6+s/2)/s,d=((l-o)/6+s/2)/s,p=((l-r)/6+s/2)/s;n===l?t=p-d:o===l?t=1/3+u-p:r===l&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,i,c];return null!=e[3]&&h.push(e[3]),h}}function m(e,t){var i=h(e);if(i){for(var n=0;n<3;n++)i[n]=t<0?i[n]*(1-t)|0:(255-i[n])*t+i[n]|0;return w(i,4===i.length?\"rgba\":\"rgb\")}}function v(e){var t=h(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function b(e,t,i){if(t&&t.length&&e>=0&&e<=1){i=i||[];var o=e*(t.length-1),a=Math.floor(o),l=Math.ceil(o),s=t[a],u=t[l],d=o-a;return i[0]=n(c(s[0],u[0],d)),i[1]=n(c(s[1],u[1],d)),i[2]=n(c(s[2],u[2],d)),i[3]=r(c(s[3],u[3],d)),i}}function x(e,t,i){if(t&&t.length&&e>=0&&e<=1){var o=e*(t.length-1),a=Math.floor(o),l=Math.ceil(o),s=h(t[a]),u=h(t[l]),d=o-a,p=w([n(c(s[0],u[0],d)),n(c(s[1],u[1],d)),n(c(s[2],u[2],d)),r(c(s[3],u[3],d))],\"rgba\");return i?{color:p,leftIndex:a,rightIndex:l,value:o}:p}}function y(e,t,i,n){if(e=h(e))return e=g(e),null!=t&&(e[0]=o(t)),null!=i&&(e[1]=l(i)),null!=n&&(e[2]=l(n)),w(f(e),\"rgba\")}function _(e,t){if((e=h(e))&&null!=t)return e[3]=r(t),w(e,\"rgba\")}function w(e,t){if(e&&e.length){var i=e[0]+\",\"+e[1]+\",\"+e[2];return\"rgba\"!==t&&\"hsva\"!==t&&\"hsla\"!==t||(i+=\",\"+e[3]),t+\"(\"+i+\")\"}}var S=i(249),k={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]},M=new S(20),A=null,C=b,T=x;t.parse=h,t.lift=m,t.toHex=v,t.fastLerp=b,t.fastMapToColor=C,t.lerp=x,t.mapToColor=T,t.modifyHSL=y,t.modifyAlpha=_,t.stringify=w},function(e,t){var i=e.exports=\"undefined\"!=typeof window&&window.Math==Math?window:\"undefined\"!=typeof self&&self.Math==Math?self:Function(\"return this\")();\"number\"==typeof __g&&(__g=i)},function(e,t,i){function n(e){for(var t=0;t =0&&f n[1],s=\"start\"===t&&!l||\"start\"!==t&&l;return _(a-T/2)?(r=s?\"bottom\":\"top\",o=\"center\"):_(a-1.5*T)?(r=s?\"top\":\"bottom\",o=\"center\"):(r=\"middle\",o=a<1.5*T&&a>T/2?s?\"left\":\"right\":s?\"right\":\"left\"),{rotation:a,textAlign:o,textVerticalAlign:r}}function r(e){var t=e.get(\"tooltip\");return e.get(\"silent\")||!(e.get(\"triggerEvent\")||t&&t.show)}function a(e,t,i){var n=e.get(\"axisLabel.showMinLabel\"),o=e.get(\"axisLabel.showMaxLabel\");t=t||[],i=i||[];var r=t[0],a=t[1],c=t[t.length-1],u=t[t.length-2],d=i[0],p=i[1],h=i[i.length-1],f=i[i.length-2];!1===n?(l(r),l(d)):s(r,a)&&(n?(l(a),l(p)):(l(r),l(d))),!1===o?(l(c),l(h)):s(u,c)&&(o?(l(u),l(f)):(l(c),l(h)))}function l(e){e&&(e.ignore=!0)}function s(e,t,i){var n=e&&e.getBoundingRect().clone(),o=t&&t.getBoundingRect().clone();if(n&&o){var r=M.identity([]);return M.rotate(r,r,-e.rotation),n.applyTransform(M.mul([],r,e.getLocalTransform())),o.applyTransform(M.mul([],r,t.getLocalTransform())),n.intersect(o)}}function c(e){return\"middle\"===e||\"center\"===e}function u(e,t,i){var n=t.axis;if(t.get(\"axisTick.show\")&&!n.scale.isBlank()){for(var o=t.getModel(\"axisTick\"),r=o.getModel(\"lineStyle\"),a=o.get(\"length\"),l=D(o,i.labelInterval),s=n.getTicksCoords(o.get(\"alignWithLabel\")),c=n.scale.getTicks(),u=t.get(\"axisLabel.showMinLabel\"),d=t.get(\"axisLabel.showMaxLabel\"),p=[],h=[],g=e._transform,m=[],v=s.length,x=0;x p[e+1])break;r(e)}}function o(){for(;f>1;){var e=f-2;e>0&&p[e-1] =d||m>=d);if(v)break;b<0&&(b=0),b+=2}if(h=b,h<1&&(h=1),1===n){for(s=0;s
\":\", \")}(r):s(c(r)),d=n.getName(e),p=n.getItemVisual(e,\"color\");o.isObject(p)&&p.colorStops&&(p=(p.colorStops[0]||{}).color),p=p||\"transparent\";var g=u(p),m=this.name;return\"\\0-\"===m&&(m=\"\"),m=m?s(m)+(t?\": \":\"
\"):\"\",t?g+m+a:m+g+(d?s(d)+\": \"+a:a)},isAnimationEnabled:function(){if(r.node)return!1;var e=this.getShallow(\"animation\");return e&&this.getData().count()>this.getShallow(\"animationThreshold\")&&(e=!1),e},restoreData:function(){p(this,\"data\",h(this,\"dataBeforeProcessed\").cloneShallow())},getColorFromPalette:function(e,t){var i=this.ecModel,n=m.getColorFromPalette.call(this,e,t);return n||(n=i.getColorFromPalette(e,t)),n},getAxisTooltipData:null,getTooltipPosition:null});o.mixin(y,f.dataFormatMixin),o.mixin(y,m);var _=y;e.exports=_},function(e,t,i){\"use strict\";var n=i(139),o=i(294),r=i(293),a=i(292),l=i(290),s=i(291);t.a={required:n.a,whitespace:o.a,type:r.a,range:a.a,enum:l.a,pattern:s.a}},function(e,t,i){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function(e,i){function n(e){return void 0===e||null===e}function o(e){return void 0!==e&&null!==e}function r(e){return!0===e}function a(e){return!1===e}function l(e){return\"string\"==typeof e||\"number\"==typeof e||\"symbol\"==typeof e||\"boolean\"==typeof e}function s(e){return null!==e&&\"object\"==typeof e}function c(e){return\"[object Object]\"===sr.call(e)}function u(e){return\"[object RegExp]\"===sr.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return null==e?\"\":\"object\"==typeof e?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function f(e,t){for(var i=Object.create(null),n=e.split(\",\"),o=0;o0&&(a=xe(a,(t||\"\")+\"_\"+i),be(a[0])&&be(c)&&(u[s]=D(c.text+a[0].text),a.shift()),u.push.apply(u,a)):l(a)?be(c)?u[s]=D(c.text+a):\"\"!==a&&u.push(D(a)):be(a)&&be(c)?u[s]=D(c.text+a.text):(r(e._isVList)&&o(a.tag)&&n(a.key)&&o(t)&&(a.key=\"__vlist\"+t+\"_\"+i+\"__\"),u.push(a)));return u}function ye(e,t){return(e.__esModule||Hr&&\"Module\"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function _e(e,t,i,n,o){var r=Yr();return r.asyncFactory=e,r.asyncMeta={data:t,context:i,children:n,tag:o},r}function we(e,t,i){if(r(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;if(r(e.loading)&&o(e.loadingComp))return e.loadingComp;if(!o(e.contexts)){var a=e.contexts=[i],l=!0,c=function(){for(var e=0,t=a.length;e-1,a.selected!==r&&(a.selected=r);else if(k(Tn(a),n))return void(e.selectedIndex!==l&&(e.selectedIndex=l));o||(e.selectedIndex=-1)}}function Cn(e,t){return t.every(function(t){return!k(t,e)})}function Tn(e){return\"_value\"in e?e._value:e.value}function In(e){e.target.composing=!0}function Ln(e){e.target.composing&&(e.target.composing=!1,En(e.target,\"input\"))}function En(e,t){var i=document.createEvent(\"HTMLEvents\");i.initEvent(t,!0,!0),e.dispatchEvent(i)}function Pn(e){return!e.componentInstance||e.data&&e.data.transition?e:Pn(e.componentInstance._vnode)}function Dn(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Dn(ke(t.children)):e}function On(e){var t={},i=e.$options;for(var n in i.propsData)t[n]=e[n];var o=i._parentListeners;for(var r in o)t[hr(r)]=o[r];return t}function zn(e,t){if(/\\d-keep-alive$/.test(t.tag))return e(\"keep-alive\",{props:t.componentOptions.propsData})}function Rn(e){for(;e=e.parent;)if(e.data.transition)return!0}function Nn(e,t){return t.key===e.key&&t.tag===e.tag}function Bn(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Vn(e){e.data.newPos=e.elm.getBoundingClientRect()}function Fn(e){var t=e.data.pos,i=e.data.newPos,n=t.left-i.left,o=t.top-i.top;if(n||o){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform=\"translate(\"+n+\"px,\"+o+\"px)\",r.transitionDuration=\"0s\"}}function Hn(e,t){var i=t?Zl(t):ql;if(i.test(e)){for(var n,o,r,a=[],l=[],s=i.lastIndex=0;n=i.exec(e);){(o=n.index)>s&&(l.push(r=e.slice(s,o)),a.push(JSON.stringify(r)));var c=Ai(n[1].trim());a.push(\"_s(\"+c+\")\"),l.push({\"@binding\":c}),s=o+n[0].length}return s
\":arguments[1];return e.replace(/\\n/g,t)},br2nl:function(e){var t=arguments.length<=1||void 0===arguments[1]?\"\\r\\n\":arguments[1];return e.replace(/\\
/g,t)},capitalize:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return\"\"+e.charAt(0).toUpperCase()+(t?e.slice(1).toLowerCase():e.slice(1))},capitalizeAll:function(e){return e.replace(/(?:^|\\s)\\S/g,function(e){return e.toUpperCase()})},titleCase:function(e){var t=/\\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\\.?)\\b/i,i=/\\S+[A-Z]+\\S*/,n=/\\s+/,o=/-/,r=void 0;return(r=function(e){for(var a=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],s=arguments.length<=2||void 0===arguments[2]||arguments[2],c=[],u=e.split(a?o:n),d=0;ds||d>0&&m0?1.1:1/1.1;c.call(this,e,t,e.offsetX,e.offsetY)}}function s(e){if(!f.isTaken(this._zr,\"globalPan\")){var t=e.pinchScale>1?1.1:1/1.1;c.call(this,e,t,e.pinchX,e.pinchY)}}function c(e,t,i,n){this.pointerChecker&&this.pointerChecker(e,i,n)&&(h.stop(e.event),this.trigger(\"zoom\",t,i,n))}function u(e,t,i){var n=e._opt[t];return n&&(!d.isString(n)||i.event[n+\"Key\"])}var d=i(0),p=i(47),h=i(29),f=i(188);d.mixin(n,p);var g=n;e.exports=g},function(e,t,i){function n(e,t,i,n){o.each(u,function(a){t.extend({type:e+\"Axis.\"+a,mergeDefaultAndTheme:function(t,n){var r=this.layoutMode,l=r?s(t):{},u=n.getTheme();o.merge(t,u.get(a+\"Axis\")),o.merge(t,this.getDefaultOption()),t.type=i(e,t),r&&c(t,l,r)},defaultOption:o.mergeAll([{},r[a+\"Axis\"],n],!0)})}),a.registerSubTypeDefaulter(e+\"Axis\",o.curry(i,e))}var o=i(0),r=i(205),a=i(16),l=i(6),s=l.getLayoutParams,c=l.mergeLayoutParam,u=[\"value\",\"category\",\"time\",\"log\"];e.exports=n},function(e,t,i){function n(e,t){var i=e.get(\"boundingCoords\");if(null!=i){var n=i[0],o=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(o[0])||isNaN(o[1])||this.setBoundingRect(n[0],n[1],o[0]-n[0],o[1]-n[1])}var r,a=this.getBoundingRect(),l=e.get(\"layoutCenter\"),s=e.get(\"layoutSize\"),d=t.getWidth(),p=t.getHeight(),h=e.get(\"aspectScale\")||.75,f=a.width/a.height*h,g=!1;l&&s&&(l=[u.parsePercent(l[0],d),u.parsePercent(l[1],p)],s=u.parsePercent(s,Math.min(d,p)),isNaN(l[0])||isNaN(l[1])||isNaN(s)||(g=!0));var m;if(g){var m={};f>1?(m.width=s,m.height=s/f):(m.height=s,m.width=s*f),m.y=l[1]-m.height/2,m.x=l[0]-m.width/2}else r=e.getBoxLayoutParams(),r.aspect=f,m=c.getLayoutRect(r,{width:d,height:p});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(e.get(\"center\")),this.setZoom(e.get(\"zoom\"))}function o(e,t){l.each(t.get(\"geoCoord\"),function(t,i){e.addGeoCoord(i,t)})}var r=i(4),a=(r.__DEV__,i(1)),l=i(0),s=i(572),c=i(6),u=i(3),d={dimensions:s.prototype.dimensions,create:function(e,t){var i=[];e.eachComponent(\"geo\",function(e,r){var l=e.get(\"map\"),c=a.getMap(l),u=new s(l+r,l,c&&c.geoJson,c&&c.specialAreas,e.get(\"nameMap\"));u.zoomLimit=e.get(\"scaleLimit\"),i.push(u),o(u,e),e.coordinateSystem=u,u.model=e,u.resize=n,u.resize(e,t)}),e.eachSeries(function(e){if(\"geo\"===e.get(\"coordinateSystem\")){var t=e.get(\"geoIndex\")||0;e.coordinateSystem=i[t]}});var r={};return e.eachSeriesByType(\"map\",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}}),l.each(r,function(e,r){var c=a.getMap(r),u=l.map(e,function(e){return e.get(\"nameMap\")}),d=new s(r,r,c&&c.geoJson,c&&c.specialAreas,l.mergeAll(u));d.zoomLimit=l.retrieve.apply(null,l.map(e,function(e){return e.get(\"scaleLimit\")})),i.push(d),d.resize=n,d.resize(e[0],t),l.each(e,function(e){e.coordinateSystem=d,o(d,e)})}),i},getFilledRegions:function(e,t,i){var n=(e||[]).slice();i=i||{};var o=a.getMap(t),r=o&&o.geoJson;if(!r)return e;for(var s=l.createHashMap(),c=r.features,u=0;u.8?\"right\":d[0]<-.8?\"left\":\"center\",g=d[1]>.8?\"bottom\":d[1]<-.8?\"top\":\"middle\";n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||f},position:h,scale:[o,o]})}}}}function s(e,t,i){h.Group.call(this),this._createLine(e,t,i)}var c=i(0),u=i(7),d=i(23),p=i(420),h=i(2),f=i(3),g=f.round,m=[\"fromSymbol\",\"toSymbol\"],v=s.prototype;v.beforeUpdate=l,v._createLine=function(e,t,i){var a=e.hostModel,l=e.getItemLayout(t),s=r(l);s.shape.percent=0,h.initProps(s,{shape:{percent:1}},a,t),this.add(s);var u=new h.Text({name:\"label\"});this.add(u),c.each(m,function(i){var r=o(i,e,t);this.add(r),this[n(i)]=e.getItemVisual(t,i)},this),this._updateCommonStl(e,t,i)},v.updateData=function(e,t,i){var r=e.hostModel,l=this.childOfName(\"line\"),s=e.getItemLayout(t),u={shape:{}};a(u.shape,s),h.updateProps(l,u,r,t),c.each(m,function(i){var r=e.getItemVisual(t,i),a=n(i);if(this[a]!==r){this.remove(this.childOfName(i));var l=o(i,e,t);this.add(l)}this[a]=r},this),this._updateCommonStl(e,t,i)},v._updateCommonStl=function(e,t,i){var n=e.hostModel,o=this.childOfName(\"line\"),r=i&&i.lineStyle,a=i&&i.hoverLineStyle,l=i&&i.labelModel,s=i&&i.hoverLabelModel;if(!i||e.hasItemOption){var u=e.getItemModel(t);r=u.getModel(\"lineStyle.normal\").getLineStyle(),a=u.getModel(\"lineStyle.emphasis\").getLineStyle(),l=u.getModel(\"label.normal\"),s=u.getModel(\"label.emphasis\")}var d=e.getItemVisual(t,\"color\"),p=c.retrieve3(e.getItemVisual(t,\"opacity\"),r.opacity,1);o.useStyle(c.defaults({strokeNoScale:!0,fill:\"none\",stroke:d,opacity:p},r)),o.hoverStyle=a,c.each(m,function(e){var t=this.childOfName(e);t&&(t.setColor(d),t.setStyle({opacity:p}))},this);var f,v,b,x,y=l.getShallow(\"show\"),_=s.getShallow(\"show\"),w=this.childOfName(\"label\");if(y||_){var S=n.getRawValue(t);v=null==S?v=e.getName(t):isFinite(S)?g(S):S,f=d||\"#000\",b=c.retrieve2(n.getFormattedLabel(t,\"normal\",e.dataType),v),x=c.retrieve2(n.getFormattedLabel(t,\"emphasis\",e.dataType),b)}if(y){var k=h.setTextStyle(w.style,l,{text:b},{autoColor:f});w.__textAlign=k.textAlign,w.__verticalAlign=k.textVerticalAlign,w.__position=l.get(\"position\")||\"middle\"}else w.setStyle(\"text\",null);w.hoverStyle=_?{text:x,textFill:s.getTextColor(!0),fontStyle:s.getShallow(\"fontStyle\"),fontWeight:s.getShallow(\"fontWeight\"),fontSize:s.getShallow(\"fontSize\"),fontFamily:s.getShallow(\"fontFamily\")}:{text:null},w.ignore=!y&&!_,h.setHoverStyle(this)},v.highlight=function(){this.trigger(\"emphasis\")},v.downplay=function(){this.trigger(\"normal\")},v.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},v.setLinePoints=function(e){var t=this.childOfName(\"line\");a(t.shape,e),t.dirty()},c.inherits(s,h.Group);var b=s;e.exports=b},function(e,t,i){function n(e){return isNaN(e[0])||isNaN(e[1])}function o(e){return!n(e[0])&&!n(e[1])}function r(e){this._ctor=e||l,this.group=new a.Group}var a=i(2),l=i(114),s=r.prototype;s.updateData=function(e){var t=this._lineData,i=this.group,n=this._ctor,r=e.hostModel,a={lineStyle:r.getModel(\"lineStyle.normal\").getLineStyle(),hoverLineStyle:r.getModel(\"lineStyle.emphasis\").getLineStyle(),labelModel:r.getModel(\"label.normal\"),hoverLabelModel:r.getModel(\"label.emphasis\")};e.diff(t).add(function(t){if(o(e.getItemLayout(t))){var r=new n(e,t,a);e.setItemGraphicEl(t,r),i.add(r)}}).update(function(r,l){var s=t.getItemGraphicEl(l);if(!o(e.getItemLayout(r)))return void i.remove(s);s?s.updateData(e,r,a):s=new n(e,r,a),e.setItemGraphicEl(r,s),i.add(s)}).remove(function(e){i.remove(t.getItemGraphicEl(e))}).execute(),this._lineData=e},s.updateLayout=function(){var e=this._lineData;e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},s.remove=function(){this.group.removeAll()};var c=r;e.exports=c},function(e,t,i){function n(){}function o(e,t,i,n){r(m(i).lastProp,n)||(m(i).lastProp=n,t?d.updateProps(i,n,e):(i.stopAnimation(),i.attr(n)))}function r(e,t){if(c.isObject(e)&&c.isObject(t)){var i=!0;return c.each(t,function(t,n){i=i&&r(e[n],t)}),!!i}return e===t}function a(e,t){e[t.get(\"label.show\")?\"show\":\"hide\"]()}function l(e){return{position:e.position.slice(),rotation:e.rotation||0}}function s(e,t,i){var n=t.get(\"z\"),o=t.get(\"zlevel\");e&&e.traverse(function(e){\"group\"!==e.type&&(null!=n&&(e.z=n),null!=o&&(e.zlevel=o),e.silent=i)})}var c=i(0),u=i(28),d=i(2),p=i(84),h=i(29),f=i(42),g=i(5),m=g.makeGetter(),v=c.clone,b=c.bind;n.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,i,n){var r=t.get(\"value\"),a=t.get(\"status\");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,n||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var l=this._group,u=this._handle;if(!a||\"hide\"===a)return l&&l.hide(),void(u&&u.hide());l&&l.show(),u&&u.show();var p={};this.makeElOption(p,r,e,t,i);var h=p.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var f=this._moveAnimation=this.determineAnimation(e,t);if(l){var g=c.curry(o,t,f);this.updatePointerEl(l,p,g,t),this.updateLabelEl(l,p,g,t)}else l=this._group=new d.Group,this.createPointerEl(l,p,e,t),this.createLabelEl(l,p,e,t),i.getZr().add(l);s(l,t,!0),this._renderHandle(r)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var i=t.get(\"animation\"),n=e.axis,o=\"category\"===n.type,r=t.get(\"snap\");if(!r&&!o)return!1;if(\"auto\"===i||null==i){var a=this.animationThreshold;if(o&&n.getBandWidth()>a)return!0;if(r){var l=p.getAxisInfo(e).seriesDataCount,s=n.getExtent();return Math.abs(s[0]-s[1])/l>a}return!1}return!0===i},makeElOption:function(e,t,i,n,o){},createPointerEl:function(e,t,i,n){var o=t.pointer;if(o){var r=m(e).pointerEl=new d[o.type](v(t.pointer));e.add(r)}},createLabelEl:function(e,t,i,n){if(t.label){var o=m(e).labelEl=new d.Rect(v(t.label));e.add(o),a(o,n)}},updatePointerEl:function(e,t,i){var n=m(e).pointerEl;n&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,i,n){var o=m(e).labelEl;o&&(o.setStyle(t.label.style),i(o,{shape:t.label.shape,position:t.label.position}),a(o,n))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,i=this._api.getZr(),n=this._handle,o=t.getModel(\"handle\"),r=t.get(\"status\");if(!o.get(\"show\")||!r||\"hide\"===r)return n&&i.remove(n),void(this._handle=null);var a;this._handle||(a=!0,n=this._handle=d.createIcon(o.get(\"icon\"),{cursor:\"move\",draggable:!0,onmousemove:function(e){h.stop(e.event)},onmousedown:b(this._onHandleDragMove,this,0,0),drift:b(this._onHandleDragMove,this),ondragend:b(this._onHandleDragEnd,this)}),i.add(n)),s(n,t,!1);var l=[\"color\",\"borderColor\",\"borderWidth\",\"opacity\",\"shadowColor\",\"shadowBlur\",\"shadowOffsetX\",\"shadowOffsetY\"];n.setStyle(o.getItemStyle(null,l));var u=o.get(\"size\");c.isArray(u)||(u=[u,u]),n.attr(\"scale\",[u[0]/2,u[1]/2]),f.createOrUpdate(this,\"_doDispatchAxisPointer\",o.get(\"throttle\")||0,\"fixRate\"),this._moveHandleToValue(e,a)}},_moveHandleToValue:function(e,t){o(this._axisPointerModel,!t&&this._moveAnimation,this._handle,l(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(l(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(l(n)),m(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:\"updateAxisPointer\",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},_onHandleDragEnd:function(e){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get(\"value\");this._moveHandleToValue(t),this._api.dispatchAction({type:\"hideTip\"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}},n.prototype.constructor=n,u.enableClassExtend(n);var x=n;e.exports=x},function(e,t,i){function n(e){return a.indexOf(c,e)>=0}function o(e,t){e=e.slice();var i=a.map(e,l.capitalFirst);t=(t||[]).slice();var n=a.map(t,l.capitalFirst);return function(o,r){a.each(e,function(e,a){for(var l={name:e,capital:i[a]},s=0;s>>1);r(e,t[i+u])>0?a=u+1:s=u}return s}function l(e,t,i,n,o,r){var a=0,l=0,s=1;if(r(e,t[i+o])<0){for(l=o+1;s>>1);r(e,t[i+u])<0?s=u:a=u+1}return s}function s(e,t){function i(e,t){u[f]=e,p[f]=t,f+=1}function n(){for(;f>1;){var e=f-2;if(e>=1&&p[e-1]<=p[e]+p[e+1]||e>=2&&p[e-2]<=p[e]+p[e-1])p[e-1]
\");var i=!0,n=!1,o=void 0;try{for(var r,a=e[Symbol.iterator]();!(i=(r=a.next()).done);i=!0){var s=r.value;t+=''+s.seriesName+\": \"+l.a.fileSize(s.value)+\"
\"}}catch(e){n=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw o}}return t}},legend:{data:[\"Traffic In\",\"Traffic Out\"]},grid:{left:\"3%\",right:\"4%\",bottom:\"3%\",containLabel:!0},xAxis:[{type:\"category\",data:a}],yAxis:[{type:\"value\",axisLabel:{formatter:function(e){return l.a.fileSize(e)}}}],series:[{name:\"Traffic In\",type:\"bar\",data:t},{name:\"Traffic Out\",type:\"bar\",data:i}]};o.setOption(u),o.hideLoading()}i.d(t,\"b\",function(){return n}),i.d(t,\"c\",function(){return o}),i.d(t,\"a\",function(){return r});var a=i(58),l=i.n(a),s=i(1),c=i.n(s),u=i(618),d=(i.n(u),i(163)),p=(i.n(d),i(173)),h=(i.n(p),i(196)),f=(i.n(h),i(195));i.n(f)},function(e,t,i){\"use strict\";t.__esModule=!0;var n=i(311),o=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=o.default||function(e){for(var t=1;tb.getLayout().x&&(b=e),e.depth>x.depth&&(x=e)});var y=v===b?1:f(v,b)/2,_=y-v.getLayout().x,w=0,S=0,k=0,M=0;\"radial\"===n?(w=o/(b.getLayout().x+y+_),S=l/(x.depth-1||1),a(m,function(e){k=(e.getLayout().x+_)*w,M=(e.depth-1)*S;var t=p(k,M);e.setLayout({x:t.x,y:t.y,rawX:k,rawY:M},!0)})):\"horizontal\"===e.get(\"orient\")?(S=l/(b.getLayout().x+y+_),w=o/(x.depth-1||1),a(m,function(e){M=(e.getLayout().x+_)*S,k=(e.depth-1)*w,e.setLayout({x:k,y:M},!0)})):(w=o/(b.getLayout().x+y+_),S=l/(x.depth-1||1),a(m,function(e){k=(e.getLayout().x+_)*w,M=(e.depth-1)*S,e.setLayout({x:k,y:M},!0)}))}var o=i(470),r=o.eachAfter,a=o.eachBefore,l=i(175),s=l.init,c=l.firstWalk,u=l.secondWalk,d=l.separation,p=l.radialCoordinate,h=l.getViewRect;e.exports=n},function(e,t,i){function n(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t,i,n=[e];t=n.pop();)if(i=t.children,t.isExpand&&i.length)for(var o=i.length,r=o-1;r>=0;r--){var a=i[r];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},n.push(a)}}function o(e,t){var i=e.isExpand?e.children:[],n=e.parentNode.children,o=e.hierNode.i?n[e.hierNode.i-1]:null;if(i.length){c(e);var r=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=u(e,o,e.parentNode.hierNode.defaultAncestor||n[0],t)}function r(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function a(e){return arguments.length?e:g}function l(e,t){var i={};return e-=Math.PI/2,i.x=t*Math.cos(e),i.y=t*Math.sin(e),i}function s(e,t){return m.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e){for(var t=e.children,i=t.length,n=0,o=0;--i>=0;){var r=t[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,o+=r.hierNode.change,n+=r.hierNode.shift+o}}function u(e,t,i,n){if(t){for(var o=e,r=e,a=r.parentNode.children[0],l=t,s=o.hierNode.modifier,c=r.hierNode.modifier,u=a.hierNode.modifier,g=l.hierNode.modifier;l=d(l),r=p(r),l&&r;){o=d(o),a=p(a),o.hierNode.ancestor=e;var m=l.hierNode.prelim+g-r.hierNode.prelim-c+n(l,r);m>0&&(f(h(l,e,i),e,m),c+=m,s+=m),g+=l.hierNode.modifier,c+=r.hierNode.modifier,s+=o.hierNode.modifier,u+=a.hierNode.modifier}l&&!d(o)&&(o.hierNode.thread=l,o.hierNode.modifier+=g-s),r&&!p(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=c-u,i=e)}return i}function d(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function p(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function h(e,t,i){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:i}function f(e,t,i){var n=i/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=i,t.hierNode.modifier+=i,t.hierNode.prelim+=i,e.hierNode.change+=n}function g(e,t){return e.parentNode===t.parentNode?1:2}var m=i(6);t.init=n,t.firstWalk=o,t.secondWalk=r,t.separation=a,t.radialCoordinate=l,t.getViewRect=s},function(e,t,i){function n(e,t,i){i=i||{};var n=e.coordinateSystem,r=t.axis,a={},l=r.position,s=r.onZero?\"onZero\":l,c=r.dim,u=n.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],p={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get(\"offset\")||0,f=\"x\"===c?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(r.onZero){var g=n.getAxis(\"x\"===c?\"y\":\"x\",r.onZeroAxisIndex),m=g.toGlobalCoord(g.dataToCoord(0));f[p.onZero]=Math.max(Math.min(m,f[1]),f[0])}a.position=[\"y\"===c?f[p[s]]:d[0],\"x\"===c?f[p[s]]:d[3]],a.rotation=Math.PI/2*(\"x\"===c?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[l],a.labelOffset=r.onZero?f[p[l]]-f[p.onZero]:0,t.get(\"axisTick.inside\")&&(a.tickDirection=-a.tickDirection),o.retrieve(i.labelInside,t.get(\"axisLabel.inside\"))&&(a.labelDirection=-a.labelDirection);var b=t.get(\"axisLabel.rotate\");return a.labelRotate=\"top\"===s?-b:b,a.labelInterval=r.getLabelInterval(),a.z2=1,a}var o=i(0);t.layout=n},function(e,t,i){function n(e,t){t=t||{};var i=e.coordinateSystem,n=e.axis,r={},a=n.position,l=n.orient,s=i.getRect(),c=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};r.position=[\"vertical\"===l?u.vertical[a]:c[0],\"horizontal\"===l?u.horizontal[a]:c[3]];var d={horizontal:0,vertical:1};r.rotation=Math.PI/2*d[l];var p={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=p[a],e.get(\"axisTick.inside\")&&(r.tickDirection=-r.tickDirection),o.retrieve(t.labelInside,e.get(\"axisLabel.inside\"))&&(r.labelDirection=-r.labelDirection);var h=t.rotate;return null==h&&(h=e.get(\"axisLabel.rotate\")),r.labelRotation=\"top\"===a?-h:h,r.labelInterval=n.getLabelInterval(),r.z2=1,r}var o=i(0);t.layout=n},function(e,t,i){function n(e,t){var i={};return i[t.dim+\"AxisIndex\"]=t.index,e.getCartesian(i)}function o(e){return\"x\"===e.dim?0:1}var r=i(2),a=i(116),l=i(85),s=i(176),c=i(41),u=a.extend({makeElOption:function(e,t,i,o,r){var a=i.axis,c=a.grid,u=o.get(\"type\"),p=n(c,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(t,!0));if(u&&\"none\"!==u){var f=l.buildElStyle(o),g=d[u](a,h,p,f);g.style=f,e.graphicKey=g.type,e.pointer=g}var m=s.layout(c.model,i);l.buildCartesianSingleLabelElOption(t,e,m,i,o,r)},getHandleTransform:function(e,t,i){var n=s.layout(t.axis.grid.model,t,{labelInside:!1});return n.labelMargin=i.get(\"handle.margin\"),{position:l.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,o){var r=i.axis,a=r.grid,l=r.getGlobalExtent(!0),s=n(a,r).getOtherAxis(r).getGlobalExtent(),c=\"x\"===r.dim?0:1,u=e.position;u[c]+=t[c],u[c]=Math.min(l[1],u[c]),u[c]=Math.max(l[0],u[c]);var d=(s[1]+s[0])/2,p=[d,d];p[c]=u[c];var h=[{verticalAlign:\"middle\"},{align:\"center\"}];return{position:u,rotation:e.rotation,cursorPoint:p,tooltipOption:h[c]}}}),d={line:function(e,t,i,n){var a=l.makeLineShape([t,i[0]],[t,i[1]],o(e));return r.subPixelOptimizeLine({shape:a,style:n}),{type:\"Line\",shape:a}},shadow:function(e,t,i,n){var r=e.getBandWidth(),a=i[1]-i[0];return{type:\"Rect\",shape:l.makeRectShape([t-r/2,i[0]],[r,a],o(e))}}};c.registerAxisPointerClass(\"CartesianAxisPointer\",u);var p=u;e.exports=p},function(e,t,i){function n(e,t){var i,n=[],a=e.seriesIndex;if(null==a||!(i=t.getSeriesByIndex(a)))return{point:[]};var l=i.getData(),s=r.queryDataIndex(l,e);if(null==s||o.isArray(s))return{point:[]};var c=l.getItemGraphicEl(s),u=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(s)||[];else if(u&&u.dataToPoint)n=u.dataToPoint(l.getValues(o.map(u.dimensions,function(e){return i.coordDimToDataDim(e)[0]}),s,!0))||[];else if(c){var d=c.getBoundingRect().clone();d.applyTransform(c.transform),n=[d.x+d.width/2,d.y+d.height/2]}return{point:n,el:c}}var o=i(0),r=i(5);e.exports=n},function(e,t,i){function n(e,t,i){if(!d.node){var n=t.getZr();h(n).records||(h(n).records={}),o(n,t),(h(n).records[e]||(h(n).records[e]={})).handler=i}}function o(e,t){function i(i,n){e.on(i,function(i){var o=s(t);f(h(e).records,function(e){e&&n(e,i,o.dispatchAction)}),r(o.pendings,t)})}h(e).initialized||(h(e).initialized=!0,i(\"click\",u.curry(l,\"click\")),i(\"mousemove\",u.curry(l,\"mousemove\")),i(\"globalout\",a))}function r(e,t){var i,n=e.showTip.length,o=e.hideTip.length;n?i=e.showTip[n-1]:o&&(i=e.hideTip[o-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function a(e,t,i){e.handler(\"leave\",null,i)}function l(e,t,i,n){t.handler(e,i,n)}function s(e){var t={showTip:[],hideTip:[]},i=function(n){var o=t[n.type];o?o.push(n):(n.dispatchAction=i,e.dispatchAction(n))};return{dispatchAction:i,pendings:t}}function c(e,t){if(!d.node){var i=t.getZr();(h(i).records||{})[e]&&(h(i).records[e]=null)}}var u=i(0),d=i(17),p=i(5),h=p.makeGetter(),f=u.each;t.register=n,t.unregister=c},function(e,t,i){var n=i(1),o=i(0),r=i(117);n.registerAction(\"dataZoom\",function(e,t){var i=r.createLinkedNodesFinder(o.bind(t.eachComponent,t,\"dataZoom\"),r.eachAxisDim,function(e,t){return e.get(t.axisIndex)}),n=[];t.eachComponent({mainType:\"dataZoom\",query:e},function(e,t){n.push.apply(n,i(e).nodes)}),o.each(n,function(t,i){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})},function(e,t,i){function n(e,t,i){i.getAxisProxy(e.name,t).reset(i)}function o(e,t,i){i.getAxisProxy(e.name,t).filterData(i)}i(1).registerProcessor(function(e,t){e.eachComponent(\"dataZoom\",function(e){e.eachTargetAxis(n),e.eachTargetAxis(o)}),e.eachComponent(\"dataZoom\",function(e){var t=e.findRepresentativeAxisProxy(),i=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)})})},function(e,t,i){function n(e,t){var i=l(e);c(t,function(t,n){for(var o=i.length-1;o>=0&&!i[o][n];o--);if(o<0){var r=e.queryComponents({mainType:\"dataZoom\",subType:\"select\",id:n})[0];if(r){var a=r.getPercentRange();i[0][n]={dataZoomId:n,start:a[0],end:a[1]}}}}),i.push(t)}function o(e){var t=l(e),i=t[t.length-1];t.length>1&&t.pop();var n={};return c(i,function(e,i){for(var o=t.length-1;o>=0;o--){var e=t[o][i];if(e){n[i]=e;break}}}),n}function r(e){e[u]=null}function a(e){return l(e).length}function l(e){var t=e[u];return t||(t=e[u]=[{}]),t}var s=i(0),c=s.each,u=\"\\0_ec_hist_store\";t.push=n,t.pop=o,t.clear=r,t.count=a},function(e,t,i){i(16).registerSubTypeDefaulter(\"dataZoom\",function(){return\"slider\"})},function(e,t,i){function n(e,t,i){var n=this._targetInfoList=[],o={},a=r(t,e);g(_,function(e,t){(!i||!i.include||m(i.include,t)>=0)&&e(a,n,o)})}function o(e){return e[0]>e[1]&&e.reverse(),e}function r(e,t){return h.parseFinder(e,t,{includeMainTypes:x})}function a(e,t,i,n){var r=i.getAxis([\"x\",\"y\"][e]),a=o(d.map([0,1],function(e){return t?r.coordToData(r.toLocalCoord(n[e])):r.toGlobalCoord(r.dataToCoord(n[e]))})),l=[];return l[e]=a,l[1-e]=[NaN,NaN],{values:a,xyMinMax:l}}function l(e,t,i,n){return[t[0]-n[e]*i[0],t[1]-n[e]*i[1]]}function s(e,t){var i=c(e),n=c(t),o=[i[0]/n[0],i[1]/n[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function c(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var u=i(4),d=(u.__DEV__,i(0)),p=i(2),h=i(5),f=i(187),g=d.each,m=d.indexOf,v=d.curry,b=[\"dataToPoint\",\"pointToData\"],x=[\"grid\",\"xAxis\",\"yAxis\",\"geo\",\"graph\",\"polar\",\"radiusAxis\",\"angleAxis\",\"bmap\"],y=n.prototype;y.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,function(e,t,i){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var n=k[e.brushType](0,i,t);e.__rangeOffset={offset:M[e.brushType](n.values,e.range,[1,1]),xyMinMax:n.xyMinMax}}})},y.matchOutputRanges=function(e,t,i){g(e,function(e){var n=this.findTargetInfo(e,t);n&&!0!==n&&d.each(n.coordSyses,function(n){var o=k[e.brushType](1,n,e.range);i(e,o.values,n,t)})},this)},y.setInputRanges=function(e,t){g(e,function(e){var i=this.findTargetInfo(e,t);if(e.range=e.range||[],i&&!0!==i){e.panelId=i.panelId;var n=k[e.brushType](0,i.coordSys,e.coordRange),o=e.__rangeOffset;e.range=o?M[e.brushType](n.values,o.offset,s(n.xyMinMax,o.xyMinMax)):n.values}},this)},y.makePanelOpts=function(e,t){return d.map(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t&&t(i),clipPath:f.makeRectPanelClipPath(n),isTargetByCursor:f.makeRectIsTargetByCursor(n,e,i.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(n)}})},y.controlSeries=function(e,t,i){var n=this.findTargetInfo(e,i);return!0===n||n&&m(n.coordSyses,t.coordinateSystem)>=0},y.findTargetInfo=function(e,t){for(var i=this._targetInfoList,n=r(t,e),o=0;o