!function(t){function e(n){if(i[n])return i[n].exports;var a=i[n]={exports:{},id:n,loaded:!1};return t[n].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}var i={};return e.m=t,e.c=i,e.p="/",e(0)}([function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var a=i(36),o=n(a),r=i(950),s=n(r);new o["default"]({el:"body",components:{App:s["default"]}})},function(t,e){function i(t,e){U[t]=e}function n(t){if(null==t||"object"!=typeof t)return t;var e=t,i=B.call(t);if("[object Array]"===i){e=[];for(var a=0,o=t.length;o>a;a++)e[a]=n(t[a])}else if(V[i]){var r=t.constructor;if(t.constructor.from)e=r.from(t);else{e=new r(t.length);for(var a=0,o=t.length;o>a;a++)e[a]=n(t[a])}}else if(!F[i]&&!O(t)&&!A(t)){e={};for(var s in t)t.hasOwnProperty(s)&&(e[s]=n(t[s]))}return e}function a(t,e,i){if(!S(e)||!S(t))return i?n(e):t;for(var o in e)if(e.hasOwnProperty(o)){var r=t[o],s=e[o];!S(s)||!S(r)||_(s)||_(r)||A(s)||A(r)||M(s)||M(r)||O(s)||O(r)?!i&&o in t||(t[o]=n(e[o],!0)):a(r,s,i)}return t}function o(t,e){for(var i=t[0],n=1,o=t.length;o>n;n++)i=a(i,t[n],e);return i}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function s(t,e,i){for(var n in e)e.hasOwnProperty(n)&&(i?null!=e[n]:null==t[n])&&(t[n]=e[n]);return t}function l(){return Y||(Y=Z().getContext("2d")),Y}function u(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i}return-1}function c(t,e){function i(){}var n=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var a in n)t.prototype[a]=n[a];t.prototype.constructor=t,t.superClass=e}function h(t,e,i){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,s(t,e,i)}function d(t){return t?"string"==typeof t?!1:"number"==typeof t.length:void 0}function p(t,e,i){if(t&&e)if(t.forEach&&t.forEach===G)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,a=t.length;a>n;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function f(t,e,i){if(t&&e){if(t.map&&t.map===$)return t.map(e,i);for(var n=[],a=0,o=t.length;o>a;a++)n.push(e.call(i,t[a],a,t));return n}}function g(t,e,i,n){if(t&&e){if(t.reduce&&t.reduce===q)return t.reduce(e,i,n);for(var a=0,o=t.length;o>a;a++)i=e.call(n,i,t[a],a,t);return i}}function m(t,e,i){if(t&&e){if(t.filter&&t.filter===W)return t.filter(e,i);for(var n=[],a=0,o=t.length;o>a;a++)e.call(i,t[a],a,t)&&n.push(t[a]);return n}}function v(t,e,i){if(t&&e)for(var n=0,a=t.length;a>n;n++)if(e.call(i,t[n],n,t))return t[n]}function y(t,e){var i=H.call(arguments,2);return function(){return t.apply(e,i.concat(H.call(arguments)))}}function x(t){var e=H.call(arguments,1);return function(){return t.apply(this,e.concat(H.call(arguments)))}}function _(t){return"[object Array]"===B.call(t)}function b(t){return"function"==typeof t}function w(t){return"[object String]"===B.call(t)}function S(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function M(t){return!!F[B.call(t)]}function A(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function T(t){return t!==t}function I(t){for(var e=0,i=arguments.length;i>e;e++)if(null!=arguments[e])return arguments[e]}function L(t,e){return null!=t?t:e}function C(t,e,i){return null!=t?t:null!=e?e:i}function D(){return Function.call.apply(H,arguments)}function P(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function k(t,e){if(!t)throw new Error(e)}function E(t){t[X]=!0}function O(t){return t[X]}function z(t){t&&p(t,function(t,e){this.set(e,t)},this)}function N(t){return new z(t)}function R(){}var F={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},V={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},B=Object.prototype.toString,j=Array.prototype,G=j.forEach,W=j.filter,H=j.slice,$=j.map,q=j.reduce,U={},Z=function(){return U.createCanvas()};U.createCanvas=function(){return document.createElement("canvas")};var Y,X="__ec_primitive__",K="_ec_",J=4;z.prototype={constructor:z,get:function(t){return this[K+t]},set:function(t,e){return this[K+t]=e,e},each:function(t,e){void 0!==e&&(t=y(t,e));for(var i in this)this.hasOwnProperty(i)&&t(this[i],i.slice(J))},removeKey:function(t){delete this[K+t]}},e.$override=i,e.clone=n,e.merge=a,e.mergeAll=o,e.extend=r,e.defaults=s,e.createCanvas=Z,e.getContext=l,e.indexOf=u,e.inherits=c,e.mixin=h,e.isArrayLike=d,e.each=p,e.map=f,e.reduce=g,e.filter=m,e.find=v,e.bind=y,e.curry=x,e.isArray=_,e.isFunction=b,e.isString=w,e.isObject=S,e.isBuiltInObject=M,e.isDom=A,e.eqNaN=T,e.retrieve=I,e.retrieve2=L,e.retrieve3=C,e.slice=D,e.normalizeCssArray=P,e.assert=k,e.setAsPrimitive=E,e.isPrimitive=O,e.createHashMap=N,e.noop=R},function(t,e,i){(function(e){function n(t){return function(e,i,n){e=e&&e.toLowerCase(),F.prototype[t].call(this,e,i,n)}}function a(){F.call(this)}function o(t,e,i){function n(t,e){return t.prio-e.prio}i=i||{},"string"==typeof e&&(e=lt[e]),this.id,this.group,this._dom=t;var o=this._zr=z.init(t,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=O.throttle(N.bind(o.flush,o),17),this._theme=N.clone(e),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new T,this._api=b(this),F.call(this),this._messageCenter=new a,this._initEvents(),this.resize=N.bind(this.resize,this),this._pendingActions=[],V(st,n),V(at,n),o.animation.on("frame",this._onframe,this),N.setAsPrimitive(this)}function r(t,e,i){var n,a=this._model,o=this._coordSysMgr.getCoordinateSystems();e=E.parseFinder(a,e);for(var r=0;re.get("hoverLayerThreshold")&&!S.node&&i.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function x(t,e){var i=0;e.group.traverse(function(t){"group"===t.type||t.ignore||i++});var n=+t.get("progressive"),a=i>t.get("progressiveThreshold")&&n&&!S.node;a&&e.group.traverse(function(t){t.isGroup||(t.progressive=a?Math.floor(i++/n):-1,a&&t.stopAnimation(!0))});var o=t.get("blendMode")||null;__DEV__&&!S.canvasSupported&&o&&"source-over"!==o&&console.warn("Only canvas support blendMode"),e.group.traverse(function(t){t.isGroup||t.setStyle("blend",o)})}function _(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))})}function b(t){var e=t._coordSysMgr;return N.extend(new A(t),{getCoordinateSystems:N.bind(e.getCoordinateSystems,e),getComponentByElement:function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}}})}function w(t){function e(t,e){for(var i=0;i=0&&N.each(t,function(t){var a=t.coordinateSystem;if(a&&a.containPoint)i|=!!a.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint?i|=o.containPoint(e,t):__DEV__&&console.warn(n+": "+(o?"The found component do not support containPoint.":"No view mapping to the found component."))}else __DEV__&&console.warn(n+": containPoint is not supported")},this)},this),!!i},Q.getVisual=function(t,e){var i=this._model;t=E.parseFinder(i,t,{defaultMainType:"series"});var n=t.seriesModel;__DEV__&&(n||console.warn("There is no specified seires model"));var a=n.getData(),o=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?a.indexOfRawIndex(t.dataIndex):null;return null!=o?a.getItemVisual(o,e):a.getVisual(e)},Q.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},Q.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var tt={update:function(t){var e=this._model,i=this._api,n=this._coordSysMgr,a=this._zr;if(e){e.restoreData(),n.create(this._model,this._api),p.call(this,e,i),f.call(this,e),n.update(e,i),m.call(this,e,t),v.call(this,e,t);var o=e.get("backgroundColor")||"transparent",r=a.painter;if(r.isSingleCanvas&&r.isSingleCanvas())a.configLayer(0,{clearColor:o});else{if(!S.canvasSupported){var s=R.parse(o);o=R.stringify(s,"rgb"),0===s[3]&&(o="transparent")}o.colorStops||o.image?(a.configLayer(0,{clearColor:o}),this[X]=!0,this._dom.style.background="transparent"):(this[X]&&a.configLayer(0,{clearColor:null}),this[X]=!1,this._dom.style.background=o)}B(rt,function(t){t(e,i)})}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),m.call(this,e,t),h.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),m.call(this,e,t,!0),h.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(g.call(this,e,t),h.call(this,"updateLayout",e,t))},prepareAndUpdate:function(t){var e=this._model;d.call(this,"component",e),d.call(this,"chart",e),this.__lastOnlyGraphic?(B(this._componentsViews,function(i){var n=i.__model;n&&"graphic"===n.mainType&&(i.render(n,e,this._api,t),_(n,i))},this),this.__lastOnlyGraphic=!1):tt.update.call(this,t)}};Q.resize=function(t){__DEV__&&N.assert(!this[Y],"`resize` should not be called during main process."),this[Y]=!0,this._zr.resize(t);var e=this._model&&this._model.resetOption("media"),i=e?"prepareAndUpdate":"update";tt[i].call(this),this._loadingFX&&this._loadingFX.resize(),this[Y]=!1;var n=t&&t.silent;u.call(this,n),c.call(this,n)},Q.showLoading=function(t,e){if(N.isObject(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),!ut[t])return void(__DEV__&&console.warn("Loading effects "+t+" not exists."));var i=ut[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)},Q.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Q.makeActionFromEvent=function(t){var e=N.extend({},t);return e.type=nt[t.type],e},Q.dispatchAction=function(t,e){if(N.isObject(e)||(e={silent:!!e}),it[t.type]){if(this[Y])return void this._pendingActions.push(t);l.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&S.browser.weChat&&this._throttledZrFlush(),u.call(this,e.silent),c.call(this,e.silent)}},Q.on=n("on"),Q.off=n("off"),Q.one=n("one");var et=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Q._initEvents=function(){B(et,function(t){this._zr.on(t,function(e){var i,n=this.getModel(),a=e.target;if("globalout"===t)i={};else if(a&&null!=a.dataIndex){var o=a.dataModel||n.getSeriesByIndex(a.seriesIndex);i=o&&o.getDataParams(a.dataIndex,a.dataType)||{}}else a&&a.eventData&&(i=N.extend({},a.eventData));i&&(i.event=e,i.type=t,this.trigger(t,i))},this)},this),B(nt,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},Q.isDisposed=function(){return this._disposed},Q.clear=function(){this.setOption({series:[]},!0)},Q.dispose=function(){if(this._disposed)return void(__DEV__&&console.warn("Instance "+this.id+" has been disposed"));this._disposed=!0;var t=this._api,e=this._model;B(this._componentsViews,function(i){i.dispose(e,t)}),B(this._chartsViews,function(i){i.dispose(e,t)}),this._zr.dispose(),delete ct[this.id]},N.mixin(o,F);var it={},nt={},at=[],ot=[],rt=[],st=[],lt={},ut={},ct={},ht={},dt=new Date-0,pt=new Date-0,ft="_echarts_instance_",gt={version:"3.5.4",dependencies:{zrender:"3.4.4"}};gt.init=function(t,e,i){if(__DEV__){if(z.version.replace(".","")-00?e.animateTo(i,l,c||0,u,o):(e.stopAnimation(),e.attr(i),o&&o())}else e.stopAnimation(),e.attr(i),o&&o()}var m=i(1),v=i(230),y=Math.round,x=i(6),_=i(33),b=i(21),w=i(5),S=i(145),M=i(10),A={};A.Group=i(79),A.Image=i(57),A.Text=i(58),A.Circle=i(222),A.Sector=i(228),A.Ring=i(227),A.Polygon=i(224),A.Polyline=i(225),A.Rect=i(226),A.Line=i(223),A.BezierCurve=i(221),A.Arc=i(220),A.CompoundPath=i(214),A.LinearGradient=i(142),A.RadialGradient=i(215),A.BoundingRect=M,A.extendShape=function(t){return x.extend(t)},A.extendPath=function(t,e){return v.extendFromString(t,e)},A.makePath=function(t,e,i,n){var a=v.createFromString(t,e),o=a.getBoundingRect();if(i){var r=o.width/o.height;if("center"===n){var s,l=i.height*r;l<=i.width?s=i.height:(l=i.width,s=l/r);var u=i.x+i.width/2,c=i.y+i.height/2;i.x=u-l/2,i.y=c-s/2,i.width=l,i.height=s}A.resizePath(a,i)}return a},A.mergePath=v.mergePath,A.resizePath=function(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}},A.subPixelOptimizeLine=function(t){var e=A.subPixelOptimize,i=t.shape,n=t.style.lineWidth;return y(2*i.x1)===y(2*i.x2)&&(i.x1=i.x2=e(i.x1,n,!0)),y(2*i.y1)===y(2*i.y2)&&(i.y1=i.y2=e(i.y1,n,!0)),t},A.subPixelOptimizeRect=function(t){var e=A.subPixelOptimize,i=t.shape,n=t.style.lineWidth,a=i.x,o=i.y,r=i.width,s=i.height;return i.x=e(i.x,n,!0),i.y=e(i.y,n,!0),i.width=Math.max(e(a+r,n,!1)-i.x,0===r?0:1),i.height=Math.max(e(o+s,n,!1)-i.y,0===s?0:1),t},A.subPixelOptimize=function(t,e,i){var n=y(2*t);return(n+y(e))%2===0?n/2:(n+(i?1:-1))/2},A.setHoverStyle=function(t,e,i){t.__hoverSilentOnTouch=i&&i.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&c(t,e)}):c(t,e),t.on("mouseover",h).on("mouseout",d),t.on("emphasis",p).on("normal",f)},A.setText=function(t,e,i){var n=e.getShallow("position")||"inside",a=e.getShallow("offset"),o=n.indexOf("inside")>=0?"white":i,r=e.getModel("textStyle");m.extend(t,{textDistance:e.getShallow("distance")||5,textFont:r.getFont(),textPosition:n,textOffset:a,textFill:r.getTextColor()||o})},A.updateProps=function(t,e,i,n,a){g(!0,t,e,i,n,a)},A.initProps=function(t,e,i,n,a){g(!1,t,e,i,n,a)},A.getTransform=function(t,e){for(var i=b.identity([]);t&&t!==e;)b.mul(i,t.getLocalTransform(),i),t=t.parent;return i},A.applyTransform=function(t,e,i){return e&&!m.isArrayLike(e)&&(e=S.getLocalTransform(e)),i&&(e=b.invert([],e)),w.applyTransform([],t,e)},A.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-a:"bottom"===t?a:0];return o=A.applyTransform(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},A.groupTransition=function(t,e,i,n){function a(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function o(t){var e={position:w.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=m.extend({},t.shape)),e}if(t&&e){var r=a(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var n=o(t);t.attr(o(e)),A.updateProps(t,n,i,t.dataIndex)}}})}},t.exports=A},function(t,e){function i(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}function n(t){return Math.floor(Math.log(t)/Math.LN10)}var a={},o=1e-4;a.linearMap=function(t,e,i,n){var a=e[1]-e[0],o=i[1]-i[0];if(0===a)return 0===o?i[0]:(i[0]+i[1])/2;if(n)if(a>0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/a*o+i[0]},a.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?i(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},a.round=function(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t},a.asc=function(t){return t.sort(function(t,e){return t-e}),t},a.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},a.getPrecisionSafe=function(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return 0>n?-n:0}var a=e.indexOf(".");return 0>a?0:e.length-1-a},a.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,a=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),r=Math.min(Math.max(-a+o,0),20);return isFinite(r)?r:20},a.MAX_SAFE_INTEGER=9007199254740991,a.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},a.isRadianAroundZero=function(t){return t>-o&&o>t};var r=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;a.getTimezoneOffset=function(){return(new Date).getTimezoneOffset()},a.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=r.exec(t);if(!e)return new Date(NaN);var i=a.getTimezoneOffset(),n=e[8]?"Z"===e[8].toUpperCase()?i:60*+e[8].slice(0,3)+i:0;return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0)-n,+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},a.quantity=function(t){return Math.pow(10,n(t))},a.nice=function(t,e){var i,a=n(t),o=Math.pow(10,a),r=t/o;return i=e?1.5>r?1:2.5>r?2:4>r?3:7>r?5:10:1>r?1:2>r?2:3>r?3:5>r?5:10,t=i*o,a>=-20?+t.toFixed(0>a?-a:0):t},a.reformIntervals=function(t){function e(t,i,n){return t.interval[n]s;s++)o[s]<=i&&(o[s]=i,r[s]=s?1:1-n),i=o[s],n=r[s];o[0]===o[1]&&r[0]*r[1]!==1?t.splice(a,1):a++}return t},a.isNumeric=function(t){return t-parseFloat(t)>=0},t.exports=a},function(t,e){function i(t,e){var i=new S(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i}function n(t,e){return t[0]=e[0],t[1]=e[1],t}function a(t){var e=new S(2);return e[0]=t[0],e[1]=t[1],e}function o(t,e,i){return t[0]=e,t[1]=i,t}function r(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function s(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t}function l(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function u(t){return Math.sqrt(c(t))}function c(t){return t[0]*t[0]+t[1]*t[1]}function h(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t}function d(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t}function p(t,e){return t[0]*e[0]+t[1]*e[1]}function f(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function g(t,e){var i=u(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function m(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function v(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function y(t,e){return t[0]=-e[0],t[1]=-e[1],t}function x(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function _(t,e,i){var n=e[0],a=e[1];return t[0]=i[0]*n+i[2]*a+i[4],t[1]=i[1]*n+i[3]*a+i[5],t}function b(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function w(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}var S="undefined"==typeof Float32Array?Array:Float32Array,M=u,A=c,T=m,I=v;e.create=i,e.copy=n,e.clone=a,e.set=o,e.add=r,e.scaleAndAdd=s,e.sub=l,e.len=u,e.length=M,e.lenSquare=c,e.lengthSquare=A,e.mul=h,e.div=d,e.dot=p,e.scale=f,e.normalize=g,e.distance=m,e.dist=T,e.distanceSquare=v,e.distSquare=I,e.negate=y,e.lerp=x,e.applyTransform=_,e.min=b,e.max=w},function(t,e,i){function n(t){a.call(this,t),this.path=null}var a=i(95),o=i(1),r=i(56),s=i(490),l=i(143),u=l.prototype.getCanvasPattern,c=Math.abs,h=new r(!0);n.prototype={constructor:n,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i=this.style,n=this.path||h,a=i.hasStroke(),o=i.hasFill(),r=i.fill,s=i.stroke,l=o&&!!r.colorStops,c=a&&!!s.colorStops,d=o&&!!r.image,p=a&&!!s.image;if(i.bind(t,this,e),this.setTransform(t),this.__dirty){var f;l&&(f=f||this.getBoundingRect(),this._fillGradient=i.getGradient(t,r,f)),c&&(f=f||this.getBoundingRect(),this._strokeGradient=i.getGradient(t,s,f))}l?t.fillStyle=this._fillGradient:d&&(t.fillStyle=u.call(r,t)),c?t.strokeStyle=this._strokeGradient:p&&(t.strokeStyle=u.call(s,t));var g=i.lineDash,m=i.lineDashOffset,v=!!t.setLineDash,y=this.getGlobalScale();n.setScale(y[0],y[1]),this.__dirtyPath||g&&!v&&a?(n.beginPath(t),g&&!v&&(n.setLineDash(g),n.setLineDashOffset(m)),this.buildPath(n,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o&&n.fill(t),g&&v&&(t.setLineDash(g),t.lineDashOffset=m),a&&n.stroke(t),g&&v&&t.setLineDash([]),this.restoreTransform(t),null!=i.text&&this.drawRectText(t,this.getBoundingRect())},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new r},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new r),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var o=e.lineWidth,s=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=o/s,a.height+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),a=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path.data;if(a.hasStroke()){var r=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(a.hasFill()||(r=Math.max(r,this.strokeContainThreshold)),s.containStroke(o,r/l,t,e)))return!0}if(a.hasFill())return s.contain(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):a.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(o.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},n.extend=function(t){var e=function(e){n.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var a=this.shape;for(var o in i)!a.hasOwnProperty(o)&&i.hasOwnProperty(o)&&(a[o]=i[o])}t.init&&t.init.call(this,e)};o.inherits(e,n);for(var i in t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},o.inherits(n,a);var d=n;t.exports=d},function(t,e,i){var n=i(1),a=i(4),o=i(32),r={};r.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))},r.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},r.normalizeCssArray=function(t){var e=t.length;return"number"==typeof t?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t};var s=r.encodeHTML=function(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},l=["a","b","c","d","e","f","g"],u=function(t,e){return"{"+t+(null==e?"":e)+"}"};r.formatTpl=function(t,e,i){n.isArray(e)||(e=[e]);var a=e.length;if(!a)return"";for(var o=e[0].$vars||[],r=0;rd;d++)for(var p=0;pt?"0"+t:t};r.formatTime=function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=a.parseDate(e),o=i?"UTC":"",r=n["get"+o+"FullYear"](),s=n["get"+o+"Month"]()+1,l=n["get"+o+"Date"](),u=n["get"+o+"Hours"](),h=n["get"+o+"Minutes"](),d=n["get"+o+"Seconds"]();return t=t.replace("MM",c(s)).toLowerCase().replace("yyyy",r).replace("yy",r%100).replace("dd",c(l)).replace("d",l).replace("hh",c(u)).replace("h",u).replace("mm",c(h)).replace("m",h).replace("ss",c(d)).replace("s",d)},r.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},r.truncateText=o.truncateText,t.exports=r},function(t,e,i){function n(t,e){return t&&t.hasOwnProperty(e)}var a=i(7),o=i(4),r=i(12),s=i(1),l=s.each,u=s.isObject,c={};c.normalizeToArray=function(t){return t instanceof Array?t:null==t?[]:[t]},c.defaultEmphasis=function(t,e){if(t){var i=t.emphasis=t.emphasis||{},n=t.normal=t.normal||{};l(e,function(t){var e=s.retrieve(i[t],n[t]);null!=e&&(i[t]=e)})}},c.LABEL_OPTIONS=["position","offset","show","textStyle","distance","formatter"],c.getDataItemValue=function(t){return t&&(null==t.value?t:t.value)},c.isDataItemOption=function(t){return u(t)&&!(t instanceof Array)},c.converDataValue=function(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"===i&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+o.parseDate(t)),null==t||""===t?NaN:+t)},c.createDataFormatModel=function(t,e){var i=new r;return s.mixin(i,c.dataFormatMixin),i.seriesIndex=e.seriesIndex,i.name=e.name||"",i.mainType=e.mainType,i.subType=e.subType,i.getData=function(){return t},i},c.dataFormatMixin={getDataParams:function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t,!0),r=i.getRawDataItem(t);return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:this.seriesIndex,seriesId:this.id,seriesName:this.name,name:o,dataIndex:a,data:r,dataType:e,value:n,color:i.getItemVisual(t,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(t,e,i,n){e=e||"normal";var o=this.getData(i),r=o.getItemModel(t),s=this.getDataParams(t,i);null!=n&&s.value instanceof Array&&(s.value=s.value[n]);var l=r.get(["label",e,"formatter"]);return"function"==typeof l?(s.status=e,l(s)):"string"==typeof l?a.formatTpl(l,s):void 0},getRawValue:function(t,e){var i=this.getData(e),n=i.getRawDataItem(t);return null!=n?!u(n)||n instanceof Array?n:n.value:void 0},formatTooltip:s.noop},c.mappingToExists=function(t,e){e=(e||[]).slice();var i=s.map(t||[],function(t,e){return{exist:t}});return l(e,function(t,n){if(u(t)){for(var a=0;a=i.length&&i.push({option:t})}}),i},c.makeIdAndName=function(t){var e={};l(t,function(t,i){var n=t.exist;n&&(e[n.id]=t)}),l(t,function(t,i){var n=t.option;s.assert(!n||null==n.id||!e[n.id]||e[n.id]===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&(e[n.id]=t),!t.keyInfo&&(t.keyInfo={})}),l(t,function(t,i){var n=t.exist,a=t.option,o=t.keyInfo;if(u(a)){if(o.name=null!=a.name?a.name+"":n?n.name:"\x00-",n)o.id=n.id;else if(null!=a.id)o.id=a.id+"";else{var r=0;do o.id="\x00"+o.name+"\x00"+r++;while(e[o.id])}e[o.id]=t}})},c.isIdInner=function(t){return u(t)&&t.id&&0===(t.id+"").indexOf("\x00_ec_\x00")},c.compressBatches=function(t,e){function i(t,e,i){for(var n=0,a=t.length;a>n;n++)for(var o=t[n].seriesId,r=c.normalizeToArray(t[n].dataIndex),s=i&&i[o],l=0,u=r.length;u>l;l++){var h=r[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}function n(t,e){var i=[];for(var a in t)if(t.hasOwnProperty(a)&&null!=t[a])if(e)i.push(+a);else{var o=n(t[a],!0);o.length&&i.push({seriesId:a,dataIndex:o})}return i}var a={},o={};return i(t||[],a),i(e||[],o,a),[n(a),n(o)]},c.queryDataIndex=function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?s.isArray(e.dataIndex)?s.map(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?s.isArray(e.name)?s.map(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0},c.makeGetter=function(){var t=0;return function(){var e="\x00__ec_prop_getter_"+t++;return function(t){return t[e]||(t[e]={})}}}(),c.parseFinder=function(t,e,i){if(s.isString(e)){var a={};a[e+"Index"]=0,e=a}var o=i&&i.defaultMainType;!o||n(e,o+"Index")||n(e,o+"Id")||n(e,o+"Name")||(e[o+"Index"]=0);var r={};return l(e,function(n,a){var n=e[a];if("dataIndex"===a||"dataIndexInside"===a)return void(r[a]=n);var o=a.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],u=(o[2]||"").toLowerCase();if(!(!l||!u||null==n||"index"===u&&"none"===n||i&&i.includeMainTypes&&s.indexOf(i.includeMainTypes,l)<0)){var c={mainType:l};"index"===u&&"all"===n||(c[u]=n);var h=t.queryComponents(c);r[l+"Models"]=h,r[l+"Model"]=h[0]}}),r},t.exports=c},function(t,e,i){"use strict";function n(t,e,i,n,a){var o=0,r=0;null==n&&(n=1/0),null==a&&(a=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.position,p=l.getBoundingRect(),f=e.childAt(u+1),g=f&&f.getBoundingRect();if("horizontal"===t){var m=p.width+(g?-g.x+p.x:0);c=o+m,c>n||l.newline?(o=0,c=m,r+=s+i,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(g?-g.y+p.y:0);h=r+v,h>a||l.newline?(o+=s+i,r=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(d[0]=o,d[1]=r,"horizontal"===t?o=c+i:r=h+i)})}var a=i(1),o=i(10),r=i(4),s=i(7),l=r.parsePercent,u=a.each,c={},h=c.LOCATION_PARAMS=["left","right","top","bottom","width","height"],d=c.HV_NAMES=[["width","left","right"],["height","top","bottom"]];c.box=n,c.vbox=a.curry(n,"vertical"),c.hbox=a.curry(n,"horizontal"),c.getAvailableSize=function(t,e,i){var n=e.width,a=e.height,o=l(t.x,n),r=l(t.y,a),u=l(t.x2,n),c=l(t.y2,a);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=n),(isNaN(r)||isNaN(parseFloat(t.y)))&&(r=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=a),i=s.normalizeCssArray(i||0),{width:Math.max(u-o-i[1]-i[3],0),height:Math.max(c-r-i[0]-i[2],0)}},c.getLayoutRect=function(t,e,i){i=s.normalizeCssArray(i||0);var n=e.width,a=e.height,r=l(t.left,n),u=l(t.top,a),c=l(t.right,n),h=l(t.bottom,a),d=l(t.width,n),p=l(t.height,a),f=i[2]+i[0],g=i[1]+i[3],m=t.aspect;switch(isNaN(d)&&(d=n-c-g-r),isNaN(p)&&(p=a-h-f-u),isNaN(d)&&isNaN(p)&&(m>n/a?d=.8*n:p=.8*a),null!=m&&(isNaN(d)&&(d=m*p),isNaN(p)&&(p=d/m)),isNaN(r)&&(r=n-c-d-g),isNaN(u)&&(u=a-h-p-f),t.left||t.right){case"center":r=n/2-d/2-i[3];break;case"right":r=n-d-g}switch(t.top||t.bottom){case"middle":case"center":u=a/2-p/2-i[0];break;case"bottom":u=a-p-f}r=r||0,u=u||0,isNaN(d)&&(d=n-r-(c||0)),isNaN(p)&&(p=a-u-(h||0));var v=new o(r+i[3],u+i[0],d,p);return v.margin=i,v},c.positionElement=function(t,e,i,n,r){var s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(s||l){var h;if("raw"===u)h="group"===t.type?new o(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(h=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();h=h.clone(),h.applyTransform(d)}e=c.getLayoutRect(a.defaults({width:h.width,height:h.height},e),i,n);var p=t.position,f=s?e.x-h.x:0,g=l?e.y-h.y:0;t.attr("position","raw"===u?[f,g]:[p[0]+f,p[1]+g])}},c.sizeCalculable=function(t,e){return null!=t[d[e][0]]||null!=t[d[e][1]]&&null!=t[d[e][2]]},c.mergeLayoutParam=function(t,e,i){function n(i,n){var a={},s=0,c={},h=0,d=2;if(u(i,function(e){c[e]=t[e]}),u(i,function(t){o(e,t)&&(a[t]=c[t]=e[t]),r(a,t)&&s++,r(c,t)&&h++}),l[n])return r(e,i[1])?c[i[2]]=null:r(e,i[2])&&(c[i[1]]=null),c;if(h!==d&&s){if(s>=d)return a;for(var p=0;pi&&(t+=i,i=-i),0>n&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}var a=i(5),o=i(21),r=a.applyTransform,s=Math.min,l=Math.max;n.prototype={constructor:n,union:function(t){var e=s(t.x,this.x),i=s(t.y,this.y);this.width=l(t.x+t.width,this.x+this.width)-e,this.height=l(t.y+t.height,this.y+this.height)-i,this.x=e,this.y=i},applyTransform:function(){var t=[],e=[],i=[],n=[];return function(a){if(a){t[0]=i[0]=this.x,t[1]=n[1]=this.y,e[0]=n[0]=this.x+this.width,e[1]=i[1]=this.y+this.height,r(t,t,a),r(e,e,a),r(i,i,a),r(n,n,a),this.x=s(t[0],e[0],i[0],n[0]),this.y=s(t[1],e[1],i[1],n[1]);var o=l(t[0],e[0],i[0],n[0]),u=l(t[1],e[1],i[1],n[1]);this.width=o-this.x,this.height=u-this.y}}}(),calculateTransform:function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=o.create();return o.translate(a,a,[-e.x,-e.y]),o.scale(a,a,[i,n]),o.translate(a,a,[t.x,t.y]),a},intersect:function(t){if(!t)return!1;t instanceof n||(t=n.create(t));var e=this,i=e.x,a=e.x+e.width,o=e.y,r=e.y+e.height,s=t.x,l=t.x+t.width,u=t.y,c=t.y+t.height;return!(s>a||i>l||u>r||o>c)},contain:function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new n(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},n.create=function(t){return new n(t.x,t.y,t.width,t.height)};var u=n;t.exports=u},function(t,e){"use strict";function i(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(e);return null!=i?unescape(i[2]):null}function n(t){$.ajax({type:"get",url:t+"puserinfo",async:!1,success:function(t){if(""==t){var e=window.location,i="login.html?locatin_href=";i+=e,window.location=i}else t=JSON.parse(t),self.login_user=t.rname},error:function(t){alert("error")}})}Object.defineProperty(e,"__esModule",{value:!0}),e.getUrlParam=i,e.getUserIstoken=n},function(t,e,i){function n(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function a(t,e,i){for(var n=0;n=0?a[s]=new l.constructor(o[s].length):a[s]=o[s]}return n}var o="undefined",r="undefined"==typeof window?e:window,s=typeof r.Float64Array===o?Array:r.Float64Array,l=typeof r.Int32Array===o?Array:r.Int32Array,u={"float":s,"int":l,ordinal:Array,number:Array,time:Array},c=i(12),h=i(77),d=i(1),p=i(8),f=d.isObject,g=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],m=function(t,e){d.each(g.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods},v=function(t,e){t=t||["x","y"];for(var i={},n=[],a=0;a0&&(S+="__ec__"+c[w]),c[w]++),S&&(l[h]=S)}this._nameList=e,this._idList=l},y.count=function(){return this.indices.length},y.get=function(t,e,i){var n=this._storage,a=this.indices[e];if(null==a)return NaN;var o=n[t]&&n[t][a];if(i){var r=this._dimensionInfos[t];if(r&&r.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(o>=0&&l>0||0>=o&&0>l)&&(o+=l),s=s.stackedOn}}return o},y.getValues=function(t,e,i){var n=[];d.isArray(t)||(i=e,e=t,t=this.dimensions);for(var a=0,o=t.length;o>a;a++)n.push(this.get(t[a],e,i));return n},y.hasValue=function(t){for(var e=this.dimensions,i=this._dimensionInfos,n=0,a=e.length;a>n;n++)if("ordinal"!==i[e[n]].type&&isNaN(this.get(e[n],t)))return!1;return!0},y.getDataExtent=function(t,e,i){t=this.getDimension(t);var n=this._storage[t],a=this.getDimensionInfo(t);e=a&&a.stackable&&e;var o,r=(this._extent||(this._extent={}))[t+!!e];if(r)return r;if(n){for(var s=1/0,l=-(1/0),u=0,c=this.count();c>u;u++)o=this.get(t,u,e),i&&!i(o,t,u)||(s>o&&(s=o),o>l&&(l=o));return this._extent[t+!!e]=[s,l]}return[1/0,-(1/0)]},y.getSum=function(t,e){var i=this._storage[t],n=0;if(i)for(var a=0,o=this.count();o>a;a++){var r=this.get(t,a,e);isNaN(r)||(n+=r)}return n},y.indexOf=function(t,e){var i=this._storage,n=i[t],a=this.indices;if(n)for(var o=0,r=a.length;r>o;o++){var s=a[o];if(n[s]===e)return o}return-1},y.indexOfName=function(t){for(var e=this.indices,i=this._nameList,n=0,a=e.length;a>n;n++){var o=e[n];if(i[o]===t)return n}return-1},y.indexOfRawIndex=function(t){var e=this.indices,i=e[t];if(null!=i&&i===t)return t;for(var n=0,a=e.length-1;a>=n;){var o=(n+a)/2|0;if(e[o]t))return o;a=o-1}}return-1},y.indicesOfNearest=function(t,e,i,n){var a=this._storage,o=a[t],r=[];if(!o)return r;null==n&&(n=1/0);for(var s=Number.MAX_VALUE,l=-1,u=0,c=this.count();c>u;u++){var h=e-this.get(t,u,i),d=Math.abs(h);n>=h&&s>=d&&((s>d||h>=0&&0>l)&&(s=d,l=h,r.length=0),r.push(u))}return r},y.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},y.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},y.getName=function(t){return this._nameList[this.indices[t]]||""},y.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},y.each=function(t,e,i,a){"function"==typeof t&&(a=i,i=e,e=t,t=[]),t=d.map(n(t),this.getDimension,this);var o=[],r=t.length,s=this.indices;a=a||this;for(var l=0;lu;u++)o[u]=this.get(t[u],l,i);o[u]=l,e.apply(a,o)}},y.filterSelf=function(t,e,i,a){"function"==typeof t&&(a=i,i=e,e=t,t=[]),t=d.map(n(t),this.getDimension,this);var o=[],r=[],s=t.length,l=this.indices;a=a||this;for(var u=0;uh;h++)r[h]=this.get(t[h],u,i);r[h]=u,c=e.apply(a,r)}c&&o.push(l[u])}return this.indices=o,this._extent={},this},y.mapArray=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]);var a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},i,n),a},y.map=function(t,e,i,o){t=d.map(n(t),this.getDimension,this);var r=a(this,t),s=r.indices=this.indices,l=r._storage,u=[];return this.each(t,function(){var i=arguments[arguments.length-1],n=e&&e.apply(this,arguments);if(null!=n){"number"==typeof n&&(u[0]=n,n=u);for(var a=0;ag;g+=d){d>f-g&&(d=f-g,c.length=d);for(var m=0;d>m;m++){var v=l[g+m];c[m]=p[v],h[m]=v}var y=i(c),v=h[n(c,y)||0];p[v]=y,u.push(v)}return o},y.getItemModel=function(t){var e=this.hostModel;return t=this.indices[t],new c(this._rawData[t],e,e&&e.ecModel)},y.diff=function(t){var e,i=this._idList,n=t&&t._idList,a="e\x00\x00";return new h(t?t.indices:[],this.indices,function(t){return null!=(e=n[t])?e:a+t},function(t){return null!=(e=i[t])?e:a+t})},y.getVisual=function(t){var e=this._visual;return e&&e[t]},y.setVisual=function(t,e){if(f(t))for(var i in t)t.hasOwnProperty(i)&&this.setVisual(i,t[i]);else this._visual=this._visual||{},this._visual[t]=e},y.setLayout=function(t,e){if(f(t))for(var i in t)t.hasOwnProperty(i)&&this.setLayout(i,t[i]);else this._layout[t]=e},y.getLayout=function(t){return this._layout[t]},y.getItemLayout=function(t){return this._itemLayouts[t]},y.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?d.extend(this._itemLayouts[t]||{},e):e},y.clearItemLayouts=function(){this._itemLayouts.length=0},y.getItemVisual=function(t,e,i){var n=this._itemVisuals[t],a=n&&n[e];return null!=a||i?a:this.getVisual(e)},y.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};if(this._itemVisuals[t]=n,f(e))for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);else n[e]=i},y.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var x=function(t){t.seriesIndex=this.seriesIndex,t.dataIndex=this.dataIndex,t.dataType=this.dataType};y.setItemGraphicEl=function(t,e){var i=this.hostModel;e&&(e.dataIndex=t,e.dataType=this.dataType,e.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(x,e)),this._graphicEls[t]=e},y.getItemGraphicEl=function(t){return this._graphicEls[t]},y.eachItemGraphicEl=function(t,e){d.each(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},y.cloneShallow=function(){var t=d.map(this.dimensions,this.getDimensionInfo,this),e=new v(t,this.hostModel);return e._storage=this._storage,m(e,this),e.indices=this.indices.slice(),this._extent&&(e._extent=d.extend({},this._extent)),e},y.wrapMethod=function(t,e){var i=this[t];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(d.slice(arguments)))})},y.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],y.CHANGABLE_METHODS=["filterSelf"],t.exports=v}).call(e,function(){return this}())},function(t,e,i){var n,a;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function i(){for(var t=[],e=0;e=0;a--)n=o.merge(n,t[a],!0);l.set(this,"__defaultOption",n)}return l.get(this,"__defaultOption")},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});l.enableClassManagement(c,{registerWhenExtend:!0}),s.enableSubTypeDefaulter(c),s.enableTopologicalTravel(c,n),o.mixin(c,i(468)),t.exports=c},function(t,e){function i(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),r=/micromessenger/i.test(t);return n&&(i.firefox=!0,i.version=n[1]),a&&(i.ie=!0,i.version=a[1]),o&&(i.edge=!0,i.version=o[1]),r&&(i.weChat=!0),{browser:i,os:e,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)}}var n={};n="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0,svgSupported:!0}:i(navigator.userAgent);var a=n;t.exports=a},function(t,e,i){"use strict";var n=i(1),a=i(7),o=i(34),r=i(8),s=i(15),l=i(200),u=i(16),c=i(9),h=o.set,d=o.get,p=a.encodeHTML,f=a.addCommas,g=s.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",layoutMode:null,init:function(t,e,i,a){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,i);var o=this.getInitialData(t,i);__DEV__&&n.assert(o,"getInitialData returned invalid data."),h(this,"dataBeforeProcessed",o),this.restoreData()},mergeDefaultAndTheme:function(t,e){var i=this.layoutMode,a=i?c.getLayoutParams(t):{};n.merge(t,e.getTheme().get(this.subType)),n.merge(t,this.getDefaultOption()),r.defaultEmphasis(t.label,r.LABEL_OPTIONS),this.fillDataTextStyle(t.data),i&&c.mergeLayoutParam(t,a,i)},mergeOption:function(t,e){t=n.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var i=this.layoutMode;i&&c.mergeLayoutParam(this.option,t,i);var a=this.getInitialData(t,e);a&&(h(this,"data",a),h(this,"dataBeforeProcessed",a.cloneShallow()))},fillDataTextStyle:function(t){if(t)for(var e=0;e',g=this.name;return"\x00-"===g&&(g=""),e?h+p(this.name)+" : "+l:(g&&p(g)+"
")+h+(u?p(u)+" : "+l:l)},isAnimationEnabled:function(){if(u.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){h(this,"data",d(this,"dataBeforeProcessed").cloneShallow())},getColorFromPalette:function(t,e){var i=this.ecModel,n=l.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipData:null,getTooltipPosition:null});n.mixin(g,r.dataFormatMixin),n.mixin(g,l),t.exports=g},function(t,e){var i=Object;t.exports={create:i.create,getProto:i.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:i.getOwnPropertyDescriptor,setDesc:i.defineProperty,setDescs:i.defineProperties,getKeys:i.keys,getNames:i.getOwnPropertyNames,getSymbols:i.getOwnPropertySymbols,each:[].forEach}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var a=i(36),o=n(a),r=i(71),s=n(r);o["default"].use(s["default"]);var l={base_debug:"/",root_debug:"/api/",base_release:"/",root_release:"/api/"},u={baseUrl:l.base_debug,rootUrl:l.root_debug,pjid:0,user:{authenticated:!1,user_id:"",wx_id:"",wx_code:"",id_token:"no authenticated",auth:[]},wx_appid:"oApExuAZK13RJztWWZ8ttrgwVzLc",wx_secretid:"3e24069002a9228bc4bd52e2b47696d1",wx_grant_type:"authorization_code",hf_weather:"https://free-api.heweather.com/s6/weather?location=CN{0}&key=6237fa70e7b142beb29a84b1caa6e173",equip_model:{},current_project:{},current_place:{},project_list:[{id:1,name:"空项目"}],place_list:[],search_time:{},key_user:3,search_date:{},c_data_list:[],m_data_list:[],l_data_list:[],s_data_list:[],compare_data:[],download_data:[],simple_list_style:!1,view_data:1},c={LOAD_PROJECT_LIST:function(t,e){t.project_list=e},SET_PROJECT_ID:function(t,e){t.pjid=e},SET_ViewData:function(t,e){t.view_data=e},SET_CompareData:function(t,e){t.compare_data=e},SET_PROJECT:function(t,e){t.current_project=e},LOAD_PLACE_LIST:function(t,e){t.place_list=e},LOAD_SEARCH_TIME:function(t,e){t.search_time=e},SET_KEY_USER:function(t,e){t.key_user=e},LOAD_SEARCH_TIME2:function(t,e){t.search_date=e},SET_PLACE:function(t,e){t.current_place=e,t.m_data_list=[],t.c_data_list=[],t.l_data_list=[],t.s_data_list=[]},CHANGE_PLACE_FAVORITE:function(t,e){t.place_list.forEach(function(t){return t.id==e?void(t.favorite=!t.favorite):void 0})},SET_PLACE_CDATA:function(t,e){t.c_data_list=e},SET_PLACE_MDATA:function(t,e){t.m_data_list=e},SET_PLACE_LDATA:function(t,e){t.l_data_list=e},SET_PLACE_SDATA:function(t,e){t.s_data_list=e},SET_PLACE_INFO:function(t,e){t.current_place.info=$.extend(!0,{},e)},SET_PLACE_DATA_TAG:function(t,e){t.current_place.data_tag=$.extend(!0,{},e)},SET_PLACE_ALARM_RULE:function(t,e,i,n,a){t.current_place.alarm_rule.forEach(function(t){2==t.id&&(t.value=e),3==t.id&&(t.value=i),4==t.id&&(t.value=n)})},SET_PLACE_PROBE:function(t,e){t.current_place.probe=$.extend(!0,{},e)},SET_PLACE_PROTOCOL:function(t,e){t.current_place.protocol=$.extend(!0,{},e)},SET_WX_ID:function(t,e){t.user.wx_id=e},SET_WX_CODE:function(t,e){t.user.wx_code=e},SET_USER_ID:function(t,e){t.user.user_id=e},SET_EQUIP:function(t,e){t.equip_model=e},SET_USER_TK:function(t,e){t.user.id_token=e},SET_USER_AUTH:function(t,e){t.user.auth=e},SET_SIMPLE_EQUIP_LIST:function(t,e){t.simple_list_style=e}};e["default"]=new s["default"].Store({state:u,mutations:c,strict:!1})},function(t,e,i){var n=i(476),a=i(91);i(477),i(475);var o=i(92),r=i(4),s=i(1),l=i(32),u={};u.getScaleExtent=function(t,e){var i,n,a,o=t.type,l=e.getMin(),u=e.getMax(),c=null!=l,h=null!=u,d=t.getExtent();return"ordinal"===o?i=(e.get("data")||[]).length:(n=e.get("boundaryGap"),s.isArray(n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(__DEV__&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),n=[0,0]),n[0]=r.parsePercent(n[0],1),n[1]=r.parsePercent(n[1],1),a=d[1]-d[0]||Math.abs(d[0])),null==l&&(l="ordinal"===o?i?0:NaN:d[0]-n[0]*a),null==u&&(u="ordinal"===o?i?i-1:NaN:d[1]+n[1]*a),"dataMin"===l&&(l=d[0]),"dataMax"===u&&(u=d[1]),(null==l||!isFinite(l))&&(l=NaN),(null==u||!isFinite(u))&&(u=NaN),t.setBlank(s.eqNaN(l)||s.eqNaN(u)),e.getNeedCrossZero()&&(l>0&&u>0&&!c&&(l=0),0>l&&0>u&&!h&&(u=0)),[l,u]},u.niceScaleExtent=function(t,e){var i=u.getScaleExtent(t,e),n=null!=e.getMin(),a=null!=e.getMax(),o=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase")),t.setExtent(i[0],i[1]),t.niceExtent(o,n,a);var r=e.get("minInterval");if(isFinite(r)&&!n&&!a&&"interval"===t.type){var s=t.getInterval(),l=Math.max(Math.abs(s),r)/s;i=t.getExtent();var c=(i[1]+i[0])/2;t.setExtent(l*(i[0]-c)+c,l*(i[1]-c)+c),t.niceExtent(o)}var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)},u.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new n(t.getCategories(),[1/0,-(1/0)]);case"value":return new a;default:return(o.getClass(e)||a).create(t)}},u.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||0>i&&0>n)},u.getAxisLabelInterval=function(t,e,i,n){var a,o=0,r=0,s=1;e.length>40&&(s=Math.floor(e.length/40));for(var u=0;u1?s:(o+1)*s-1},u.getFormattedLabels=function(t,e){var i=t.scale,n=i.getTicksLabels(),a=i.getTicks();return"string"==typeof e?(e=function(t){return function(e){return t.replace("{value}",null!=e?e:"")}}(e),s.map(n,e)):"function"==typeof e?s.map(a,function(i,n){return e(u.getAxisRawValue(t,i),n)},this):n},u.getAxisRawValue=function(t,e){return"category"===t.type?t.scale.getLabel(e):e},t.exports=u},function(t,e){function i(){var t=new c(6);return n(t),t}function n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function o(t,e,i){var n=e[0]*i[0]+e[2]*i[1],a=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],r=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=a,t[2]=o,t[3]=r,t[4]=s,t[5]=l,t}function r(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function s(t,e,i){var n=e[0],a=e[2],o=e[4],r=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+r*u,t[1]=-n*u+r*c,t[2]=a*c+s*u,t[3]=-a*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function l(t,e,i){var n=i[0],a=i[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t}function u(t,e){var i=e[0],n=e[2],a=e[4],o=e[1],r=e[3],s=e[5],l=i*r-o*n;return l?(l=1/l,t[0]=r*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-r*a)*l,t[5]=(o*a-i*s)*l,t):null}var c="undefined"==typeof Float32Array?Array:Float32Array;e.create=i,e.identity=n,e.copy=a,e.mul=o,e.translate=r,e.rotate=s,e.scale=l,e.invert=u},function(t,e){"use strict";function i(t){return function(e){for(var i=arguments.length,n=Array(i>1?i-1:0),a=1;i>a;a++)n[a-1]=arguments[a];var o=e.dispatch;return o.apply(void 0,[t].concat(n))}}Object.defineProperty(e,"__esModule",{value:!0});e.SetProjectList=i("LOAD_PROJECT_LIST"),e.SetCurProject=i("SET_PROJECT"),e.SetCurProjectID=i("SET_PROJECT_ID"),e.SetPlaceList=i("LOAD_PLACE_LIST"),e.SetSearchTime=i("LOAD_SEARCH_TIME"),e.SetSearchDate=i("LOAD_SEARCH_TIME2"),e.SetCurPlace=i("SET_PLACE"),e.SetCompareData=i("SET_CompareData"),e.SetViewData=i("SET_ViewData"),e.ChangePlaceFavorite=i("CHANGE_PLACE_FAVORITE"),e.SetPlaceCData=i("SET_PLACE_CDATA"),e.SetPlaceMData=i("SET_PLACE_MDATA"),e.SetPlaceLData=i("SET_PLACE_LDATA"),e.SetPlaceSData=i("SET_PLACE_SDATA"),e.SetPlaceInfo=i("SET_PLACE_INFO"),e.SetKeyUser=i("SET_KEY_USER"),e.SetPlaceDataTag=i("SET_PLACE_DATA_TAG"),e.SetPlaceAlarmRule=i("SET_PLACE_ALARM_RULE"),e.SetPlaceProbe=i("SET_PLACE_PROBE"),e.SetPlaceProtocol=i("SET_PLACE_PROTOCOL"),e.SetEquip=i("SET_EQUIP"),e.SetWxID=i("SET_WX_ID"),e.SetWxCode=i("SET_WX_CODE"),e.SetUserID=i("SET_USER_ID"),e.SetUserTK=i("SET_USER_TK"),e.SetUserAuth=i("SET_USER_AUTH"),e.SetEquipSimpleList=i("SET_SIMPLE_EQUIP_LIST")},function(t,e){var i=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=i)},function(t,e){"use strict";function i(t){$.prompt(t,{title:"提示",buttons:{"知道了":!0}})}Object.defineProperty(e,"__esModule",{value:!0}),e.alertText=i},function(t,e,i){function n(t,e,i){if(!e)return t;i=i||{};var n=i.dimCount;if(null==n){var s=a(e[0]);n=o.isArray(s)&&s.length||1}for(var l=i.defaultNames||[],u=i.extraPrefix||"extra",c=0;n>c;c++)if(!t[c]){var h=l[c]||u+(c-l.length);t[c]=r(e,c)?{type:"ordinal",name:h}:h}return t}function a(t){return o.isArray(t)?t:o.isObject(t)?t.value:t}var o=i(1),r=n.guessOrdinal=function(t,e){for(var i=0,n=t.length;n>i;i++){var r=a(t[i]);if(!o.isArray(r))return!1;var r=r[e];if(null!=r&&isFinite(r))return!1;if(o.isString(r)&&"-"!==r)return!0}return!1};t.exports=n},function(t,e,i){"use strict";var n=i(3),a=i(10),o=n.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+a,n+o),t.lineTo(i-a,n+o),t.closePath()}}),r=n.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+a,n),t.lineTo(i,n+o),t.lineTo(i-a,n),t.closePath()}}),s=n.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,a=e.width/5*3,o=Math.max(a,e.height),r=a/2,s=r*r/(o-r),l=n-o+r+s,u=Math.asin(s/r),c=Math.cos(u)*r,h=Math.sin(u),d=Math.cos(u);t.arc(i,l,r,Math.PI-u,2*Math.PI+u);var p=.6*r,f=.7*r;t.bezierCurveTo(i+c-h*p,l+s+d*p,i,n-f,i,n),t.bezierCurveTo(i,n-f,i-c+h*p,l+s+d*p,i-c,l+s),t.closePath()}}),l=n.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,a=e.x,o=e.y,r=n/3*2;t.moveTo(a,o),t.lineTo(a+r,o+i),t.lineTo(a,o+i/4*3),t.lineTo(a-r,o+i),t.lineTo(a,o),t.closePath()}}),u={line:n.Line,rect:n.Rect,roundRect:n.Rect,square:n.Rect,circle:n.Circle,diamond:r,pin:s,arrow:l,triangle:o},c={line:function(t,e,i,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+i,a.y2=e+n/2},rect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n},roundRect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n,a.r=Math.min(i,n)/4},square:function(t,e,i,n,a){var o=Math.min(i,n);a.x=t,a.y=e,a.width=o,a.height=o},circle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.r=Math.min(i,n)/2},diamond:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n},pin:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},arrow:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},triangle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n}},h={};for(var d in u)u.hasOwnProperty(d)&&(h[d]=new u[d]);var p=n.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,a=h[n];"none"!==e.symbolType&&(a||(n="rect",a=h[n]),c[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,i))}}),f=function(t){if("image"!==this.type){var e=this.style,i=this.shape;i&&"line"===i.symbolType?e.stroke=t:this.__isEmptyBrush?(e.stroke=t,e.fill="#fff"):(e.fill&&(e.fill=t),e.stroke&&(e.stroke=t)),this.dirty(!1)}},g={createSymbol:function(t,e,i,o,r,s){var l=0===t.indexOf("empty");l&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return u=0===t.indexOf("image://")?new n.Image({style:{image:t.slice(8),x:e,y:i,width:o,height:r}}):0===t.indexOf("path://")?n.makePath(t.slice(7),{},new a(e,i,o,r)):new p({shape:{symbolType:t,x:e,y:i,width:o,height:r}}),u.__isEmptyBrush=l,u.setColor=f,u.setColor(s),u}};t.exports=g},function(module,exports){"use strict";function GetDateDiff(t,e,i){t=t.replace(/\-/g,"/"),e=e.replace(/\-/g,"/"),i=i.toLowerCase();var n=new Date(t),a=new Date(e),o=1;switch(i){case"second":o=1e3;break;case"minute":o=6e4;break;case"hour":o=36e5;break;case"day":o=864e5}return parseInt((a.getTime()-n.getTime())/parseInt(o))}function StringToDate(t){var e=t.split(/\D+/);return--e[1],new Date(e[0],e[1],e[2])}function LastDay(t){var e=arguments.length<=1||void 0===arguments[1]?1:arguments[1],i=new Date(t.getTime()-864e5*e);return i}function NextDay(t){var e=arguments.length<=1||void 0===arguments[1]?1:arguments[1],i=new Date(t.getTime()+864e5*e);return i}function MinutesBack(t){var e=arguments.length<=1||void 0===arguments[1]?1:arguments[1],i=new Date(t.getTime()-6e4*e);return i}function MinutesForwards(t){var e=arguments.length<=1||void 0===arguments[1]?1:arguments[1],i=new Date(t.getTime()+6e4*e);return i}function ConvertTickToDate(t){var e=new Date(2014,0,1,0,0,0),i=e.getTime()+60*t*1e3;return new Date(i)}function ConvertTickToDateByStTimeAndStep(t,e,i){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0),a=n.getTime()+60*e*1e3,o=FormatDate(new Date(a),"yyyy-MM-dd hh:mm:ss");return o}function ConvertDate(t,e){var i=e?new Date(1e3*e):new Date,n=function(t,e){return(t+="").length>0},W:function(){var t,e=s.z(),n=364+s.L()-e,a=(new Date(i.getFullYear()+"/1/1").getDay()||7)-1;return 2>=n&&(i.getDay()||7)-1<=2-n?1:2>=e&&a>=4&&e>=6-a?(t=new Date(i.getFullYear()-1+"/12/31"),date("W",Math.round(t.getTime()/1e3))):1+(3>=a?(e+a)/7:(e-(7-a))/7)>>0},F:function(){return r[s.n()]},m:function(){return n(s.n(),2)},M:function(){return s.F().substr(0,3)},n:function(){return i.getMonth()+1},t:function(){var t;return 2==(t=i.getMonth()+1)?28+s.L():1&t&&8>t||!(1&t)&&t>7?31:30},L:function(){var t=s.Y();return 3&t||!(t%100)&&t%400?0:1},Y:function(){return i.getFullYear()},y:function(){return(i.getFullYear()+"").slice(2)},a:function(){return i.getHours()>11?"pm":"am"},A:function(){return s.a().toUpperCase()},B:function(){var t=60*(i.getTimezoneOffset()+60),e=3600*i.getHours()+60*i.getMinutes()+i.getSeconds()+t,n=Math.floor(e/86.4);return n>1e3&&(n-=1e3),0>n&&(n+=1e3),1==String(n).length&&(n="00"+n),2==String(n).length&&(n="0"+n),n},g:function(){return i.getHours()%12||12},G:function(){return i.getHours()},h:function(){return n(s.g(),2)},H:function(){return n(i.getHours(),2)},i:function(){return n(i.getMinutes(),2)},s:function(){return n(i.getSeconds(),2)},O:function(){var t=n(Math.abs(i.getTimezoneOffset()/60*100),4);return t=i.getTimezoneOffset()>0?"-"+t:"+"+t},P:function(){var t=s.O();return t.substr(0,3)+":"+t.substr(3,2)},c:function(){return s.Y()+"-"+s.m()+"-"+s.d()+"T"+s.h()+":"+s.i()+":"+s.s()+s.P()},U:function(){return Math.round(i.getTime()/1e3)}};return t.replace(/[\\]?([a-zA-Z])/g,function(t,e){return t!=e?ret=e:s[e]?ret=s[e]():ret=e,ret})}function FormatDate(time,format){var z={y:time.getFullYear(),M:time.getMonth()+1,d:time.getDate(),h:time.getHours(),m:time.getMinutes(),s:time.getSeconds()};return null!=format&&void 0!=format||(format="yyyy-MM-dd hh:mm:ss"),format.replace(/(y+|M+|d+|h+|m+|s+)/g,function(v){return((v.length>1?"0":"")+eval("z."+v.slice(-1))).slice(-(v.length>2?v.length:2))})}function FormatDateSpan(t){if(void 0==t)return"-";var e=1,i=60*e,n=24*i,a=30*n,o=t/a,r=t/(7*n),s=t/n,l=t/i,u=t/e,c="";return 0>t?"-":c=o>=1?parseInt(o)+"个月前":r>=1?parseInt(r)+"周前":s>=1?parseInt(s)+"天前":l>=1?parseInt(l)+"个小时前":u>=1?parseInt(u)+"分钟前":"刚刚"}function DatePickerConfig(){return{dateFormat:"yy-mm-dd",dayNames:["周一","周二","周三","周四","周五","周六","周日"],dayNamesMin:["一","二","三","四","五","六","日"],monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一","十二"],monthNamesShort:["一","二","三","四","五","六","七","八","九","十","十一","十二"],minDate:new Date(2014,0,1),maxDate:new Date,numberOfMonths:[1,2],showMonthAfterYear:!0}}function GetWeekName(t){var e="";switch(t){case 0:e="星期日";break;case 1:e="星期一";break;case 2:e="星期二";break;case 3:e="星期三";break;case 4:e="星期四";break;case 5:e="星期五";break;case 6:e="星期六";break;default:e="系统错误!"}return e}function FormatDateSpan2(t){var e=1,i=60*e,n=24*i,a=parseInt(t/n),o=parseInt(t%n/i),r=t-1440*a-60*o,s="";return a>=1?s=parseInt(a)+"天":o>=1?(s=parseInt(o)+"小时",r>0&&(s=s+parseInt(r)+"分钟")):r>=1&&(s=parseInt(r)+"分钟"),s}function IsDate(t){return!isNaN(new Date(t))}function CDate(t){if(IsDate(t))return new Date(t);var e=t.replace(/\-/g,"/").replace(/\./g,"/").replace(/ /g,"/");if(e=e.replace(/pm$/i," pm").replace(/am$/i," am"),IsDate(e))return new Date(e);var i=e+"/"+(new Date).getFullYear();if(IsDate(i))return new Date(i);if(e.indexOf(":")){var n=e.replace(/ /,"/"+(new Date).getFullYear()+" ");if(IsDate(n))return new Date(n);var a=(new Date).toDateString()+" "+t;if(IsDate(a))return new Date(a)}return!1}function DateAdd(t,e,i){if(!CDate(i))return"invalid date: '"+i+"'";if(isNaN(e))return"invalid number: '"+e+"'";e=new Number(e);var n=CDate(i);switch(t.toLowerCase()){case"yyyy":n.setFullYear(n.getFullYear()+e);break;case"q":n.setMonth(n.getMonth()+3*e);break;case"m":n.setMonth(n.getMonth()+e);break;case"y":case"d":case"w":n.setDate(n.getDate()+e);break;case"ww":n.setDate(n.getDate()+7*e);break;case"h":n.setHours(n.getHours()+e);break;case"n":n.setMinutes(n.getMinutes()+e);break;case"s":n.setSeconds(n.getSeconds()+e);break;case"ms":n.setMilliseconds(n.getMilliseconds()+e);break;default:return"invalid interval: '"+t+"'"}return n}function dateformat(t){var e=new Date(t);return Date.prototype.format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var i in e)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[i]:("00"+e[i]).substr((""+e[i]).length)));return t},e.format("yyyy-MM-dd hh:mm:ss")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.GetDateDiff=GetDateDiff,exports.StringToDate=StringToDate,exports.LastDay=LastDay,exports.NextDay=NextDay,exports.MinutesBack=MinutesBack,exports.MinutesForwards=MinutesForwards,exports.ConvertTickToDate=ConvertTickToDate,exports.ConvertTickToDateByStTimeAndStep=ConvertTickToDateByStTimeAndStep,exports.ConvertDate=ConvertDate,exports.FormatDate=FormatDate,exports.FormatDateSpan=FormatDateSpan,exports.DatePickerConfig=DatePickerConfig,exports.GetWeekName=GetWeekName,exports.FormatDateSpan2=FormatDateSpan2,exports.IsDate=IsDate,exports.CDate=CDate,exports.DateAdd=DateAdd,exports.dateformat=dateformat},function(t,e){},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){"use strict";function i(){return"BackCompat"==document.compatMode?{w:document.body.clientWidth,h:document.body.clientHeight}:{w:document.documentElement.clientWidth,h:document.documentElement.clientHeight}}function n(t,e,i,n,a,o){var r=$('
新窗口
').appendTo($("body")).hide();return r.find(".close").click(function(){r.fadeOut()}),r.find(".new").click(function(){window.open(r.find("iframe").attr("src")),r.fadeOut()}),r.find(".title").text(e),r.css({width:i,height:n,left:a,top:o}).find(".windowContent").append($(t)),r.fadeIn(),r}Object.defineProperty(e,"__esModule",{value:!0}),e.getClientPoint=i,e.openWindow=n},function(t,e,i){"use strict";function n(){this._coordinateSystems=[]}var a=i(1),o={};n.prototype={constructor:n,create:function(t,e){var i=[];a.each(o,function(n,a){var o=n.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},update:function(t,e){a.each(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},n.register=function(t,e){o[t]=e},n.get=function(t){return o[t]},t.exports=n},function(t,e,i){function n(t,e){E[t]=e}function a(t,e){e=e||k;var i=t+":"+e;if(L[i])return L[i];for(var n=(t+"").split("\n"),a=0,o=0,r=n.length;r>o;o++)a=Math.max(m(n[o],e).width,a);return C>D&&(C=0,L={}),C++,L[i]=a,a}function o(t,e,i,n,a,o,l){return o?s(t,e,i,n,a,o,l):r(t,e,i,n,a,l)}function r(t,e,i,n,o,r){var s=v(t,e,o,r),c=a(t,e);o&&(c+=o[1]+o[3]);var h=s.outerHeight,d=l(0,c,i),p=u(0,h,n),f=new b(d,p,c,h);return f.lineHeight=s.lineHeight,f}function s(t,e,i,n,a,o,r){var s=y(t,{rich:o,truncate:r,font:e,textAlign:i,textPadding:a}),c=s.outerWidth,h=s.outerHeight,d=l(0,c,i),p=u(0,h,n);return new b(d,p,c,h)}function l(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function u(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function c(t,e,i){var n=e.x,a=e.y,o=e.height,r=e.width,s=o/2,l="left",u="top";switch(t){case"left":n-=i,a+=s,l="right",u="middle";break;case"right":n+=i+r,a+=s,u="middle";break;case"top":n+=r/2,a-=i,l="center",u="bottom";break;case"bottom":n+=r/2,a+=o+i,l="center";break;case"inside":n+=r/2,a+=s,l="center",u="middle";break;case"insideLeft":n+=i,a+=s,u="middle";break;case"insideRight":n+=r-i,a+=s,l="right",u="middle";break;case"insideTop":n+=r/2,a+=i,l="center";break;case"insideBottom":n+=r/2,a+=o-i,l="center",u="bottom";break;case"insideTopLeft":n+=i,a+=i;break;case"insideTopRight":n+=r-i,a+=i,l="right";break;case"insideBottomLeft":n+=i,a+=o-i,u="bottom";break;case"insideBottomRight":n+=r-i,a+=o-i,l="right",u="bottom"}return{x:n,y:a,textAlign:l,textVerticalAlign:u}}function h(t,e,i,n,a){if(!e)return"";var o=(t+"").split("\n");a=d(e,i,n,a);for(var r=0,s=o.length;s>r;r++)o[r]=p(o[r],a);return o.join("\n")}function d(t,e,i,n){n=A({},n),n.font=e;var i=T(i,"...");n.maxIterations=T(n.maxIterations,2);var o=n.minChar=T(n.minChar,0);n.cnCharWidth=a("国",e);var r=n.ascCharWidth=a("a",e);n.placeholder=T(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=r;l++)s-=r;var u=a(i);return u>s&&(i="",u=0),s=t-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=t,n}function p(t,e){var i=e.containerWidth,n=e.font,o=e.contentWidth;if(!i)return"";var r=a(t,n);if(i>=r)return t;for(var s=0;;s++){if(o>=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?f(t,o,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(t.length*o/r):0;t=t.substr(0,l),r=a(t,n)}return""===t&&(t=e.placeholder),t}function f(t,e,i,n){for(var a=0,o=0,r=t.length;r>o&&e>a;o++){var s=t.charCodeAt(o);a+=s>=0&&127>=s?i:n}return o}function g(t){return a("国",t)}function m(t,e){return E.measureText(t,e)}function v(t,e,i,n){null!=t&&(t+="");var a=g(e),o=t?t.split("\n"):[],r=o.length*a,s=r;if(i&&(s+=i[0]+i[2]),t&&n){var l=n.outerHeight,u=n.outerWidth;if(null!=l&&s>l)t="",o=[];else if(null!=u)for(var c=d(u-(i?i[1]+i[3]:0),e,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),h=0,f=o.length;f>h;h++)o[h]=p(o[h],c)}return{lines:o,height:r,outerHeight:s,lineHeight:a}}function y(t,e){var i={lines:[],width:0,height:0};if(null!=t&&(t+=""),!t)return i;for(var n,o=P.lastIndex=0;null!=(n=P.exec(t));){var r=n.index;r>o&&x(i,t.substring(o,r)),x(i,n[2],n[1]),o=P.lastIndex}om)return{lines:[],width:0,height:0};M.textWidth=a(M.text,C);var k=A.textWidth,E=null==k||"auto"===k;if("string"==typeof k&&"%"===k.charAt(k.length-1))M.percentWidth=k,c.push(M),k=0;else{if(E){k=M.textWidth;var O=A.textBackgroundColor,z=O&&O.image;z&&(z=w.findExistImage(z),w.isImageReady(z)&&(k=Math.max(k,z.width*D/z.height)))}var N=L?L[1]+L[3]:0;k+=N;var R=null!=f?f-b:null;null!=R&&k>R&&(!E||N>R?(M.text="",M.textWidth=k=0):(M.text=h(M.text,R-N,C,p.ellipsis,{minChar:p.minChar}),M.textWidth=a(M.text,C),k=M.textWidth+N))}b+=M.width=k,A&&(_=Math.max(_,M.lineHeight))}y.width=b,y.lineHeight=_,l+=_,u=Math.max(u,b)}i.outerWidth=i.width=T(e.textWidth,u),i.outerHeight=i.height=T(e.textHeight,l),d&&(i.outerWidth+=d[1]+d[3],i.outerHeight+=d[0]+d[2]);for(var v=0;vt?0:t>255?255:t}function a(t){return t=Math.round(t),0>t?0:t>360?360:t}function o(t){return 0>t?0:t>1?1:t}function r(t){return n(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function s(t){return o(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function l(t,e,i){return 0>i?i+=1:i>1&&(i-=1),1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}function u(t,e,i){return t+(e-t)*i}function c(t,e,i,n,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=a,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function d(t,e){T&&h(T,e),T=A.put(t,T||e.slice())}function p(t,e){if(t){e=e||[];var i=A.get(t);if(i)return h(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in M)return h(e,M[n]),d(t,e),e;if("#"!==n.charAt(0)){var a=n.indexOf("("),o=n.indexOf(")");if(-1!==a&&o+1===n.length){var l=n.substr(0,a),u=n.substr(a+1,o-(a+1)).split(","),p=1;switch(l){case"rgba":if(4!==u.length)return void c(e,0,0,0,1);p=s(u.pop());case"rgb":return 3!==u.length?void c(e,0,0,0,1):(c(e,r(u[0]),r(u[1]),r(u[2]),p),d(t,e),e);case"hsla":return 4!==u.length?void c(e,0,0,0,1):(u[3]=s(u[3]), f(u,e),d(t,e),e);case"hsl":return 3!==u.length?void c(e,0,0,0,1):(f(u,e),d(t,e),e);default:return}}c(e,0,0,0,1)}else{if(4===n.length){var g=parseInt(n.substr(1),16);return g>=0&&4095>=g?(c(e,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),d(t,e),e):void c(e,0,0,0,1)}if(7===n.length){var g=parseInt(n.substr(1),16);return g>=0&&16777215>=g?(c(e,(16711680&g)>>16,(65280&g)>>8,255&g,1),d(t,e),e):void c(e,0,0,0,1)}}}}function f(t,e){var i=(parseFloat(t[0])%360+360)%360/360,a=s(t[1]),o=s(t[2]),r=.5>=o?o*(a+1):o+a-o*a,u=2*o-r;return e=e||[],c(e,n(255*l(u,r,i+1/3)),n(255*l(u,r,i)),n(255*l(u,r,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function g(t){if(t){var e,i,n=t[0]/255,a=t[1]/255,o=t[2]/255,r=Math.min(n,a,o),s=Math.max(n,a,o),l=s-r,u=(s+r)/2;if(0===l)e=0,i=0;else{i=.5>u?l/(s+r):l/(2-s-r);var c=((s-n)/6+l/2)/l,h=((s-a)/6+l/2)/l,d=((s-o)/6+l/2)/l;n===s?e=d-h:a===s?e=1/3+c-d:o===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var p=[360*e,i,u];return null!=t[3]&&p.push(t[3]),p}}function m(t,e){var i=p(t);if(i){for(var n=0;3>n;n++)0>e?i[n]=i[n]*(1-e)|0:i[n]=(255-i[n])*e+i[n]|0;return w(i,4===i.length?"rgba":"rgb")}}function v(t){var e=p(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function y(t,e,i){if(e&&e.length&&t>=0&&1>=t){i=i||[];var a=t*(e.length-1),r=Math.floor(a),s=Math.ceil(a),l=e[r],c=e[s],h=a-r;return i[0]=n(u(l[0],c[0],h)),i[1]=n(u(l[1],c[1],h)),i[2]=n(u(l[2],c[2],h)),i[3]=o(u(l[3],c[3],h)),i}}function x(t,e,i){if(e&&e.length&&t>=0&&1>=t){var a=t*(e.length-1),r=Math.floor(a),s=Math.ceil(a),l=p(e[r]),c=p(e[s]),h=a-r,d=w([n(u(l[0],c[0],h)),n(u(l[1],c[1],h)),n(u(l[2],c[2],h)),o(u(l[3],c[3],h))],"rgba");return i?{color:d,leftIndex:r,rightIndex:s,value:a}:d}}function _(t,e,i,n){return t=p(t),t?(t=g(t),null!=e&&(t[0]=a(e)),null!=i&&(t[1]=s(i)),null!=n&&(t[2]=s(n)),w(f(t),"rgba")):void 0}function b(t,e){return t=p(t),t&&null!=e?(t[3]=o(e),w(t,"rgba")):void 0}function w(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}var S=i(212),M={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]},A=new S(20),T=null,I=y,L=x;e.parse=p,e.lift=m,e.toHex=v,e.fastLerp=y,e.fastMapToColor=I,e.lerp=x,e.mapToColor=L,e.modifyHSL=_,e.modifyAlpha=b,e.stringify=w},function(t,e,i){function n(t){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function a(t,e){var i=r.slice(arguments,2);return this.superClass.prototype[e].apply(t,i)}function o(t,e,i){return this.superClass.prototype[e].apply(t,i)}var r=i(1),s={},l=".",u="___EC__COMPONENT__CONTAINER___",c="\x00ec_\x00";s.set=function(t,e,i){return t[c+e]=i},s.get=function(t,e){return t[c+e]},s.hasOwn=function(t,e){return t.hasOwnProperty(c+e)};var h=s.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(l),e.main=t[0]||"",e.sub=t[1]||""),e};s.enableClassExtend=function(t,e){t.$constructor=t,t.extend=function(t){__DEV__&&r.each(e,function(e){t[e]||console.warn("Method `"+e+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var i=this,n=function(){t.$constructor?t.$constructor.apply(this,arguments):i.apply(this,arguments)};return r.extend(n.prototype,t),n.extend=this.extend,n.superCall=a,n.superApply=o,r.inherits(n,this),n.superClass=i,n}},s.enableClassManagement=function(t,e){function i(t){var e=a[t.main];return e&&e[u]||(e=a[t.main]={},e[u]=!0),e}e=e||{};var a={};if(t.registerClass=function(t,e){if(e)if(n(e),e=h(e),e.sub){if(e.sub!==u){var o=i(e);o[e.sub]=t}}else __DEV__&&a[e.main]&&console.warn(e.main+" exists."),a[e.main]=t;return t},t.getClass=function(t,e,i){var n=a[t];if(n&&n[u]&&(n=e?n[e]:null),i&&!n)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return n},t.getClassesByMainType=function(t){t=h(t);var e=[],i=a[t.main];return i&&i[u]?r.each(i,function(t,i){i!==u&&e.push(t)}):e.push(i),e},t.hasClass=function(t){return t=h(t),!!a[t.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(a,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){t=h(t);var e=a[t.main];return e&&e[u]},t.parseClassType=h,e.registerWhenExtend){var o=t.extend;o&&(t.extend=function(e){var i=o.call(this,e);return t.registerClass(i,e.type)})}return t},s.setReadOnly=function(t,e){},t.exports=s},function(t,e,i){function n(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function a(t,e,i,n){return i=i||{},n||!h.canvasSupported?o(t,e,i):h.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):o(t,e,i),i}function o(t,e,i){var a=n(t);i.zrX=e.clientX-a.left,i.zrY=e.clientY-a.top}function r(t,e,i){if(e=e||window.event,null!=e.zrX)return e;var n=e.type,o=n&&n.indexOf("touch")>=0;if(o){var r="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];r&&a(t,r,e,i)}else a(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var s=e.button;return null==e.which&&void 0!==s&&p.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function s(t,e,i){d?t.addEventListener(e,i):t.attachEvent("on"+e,i)}function l(t,e,i){d?t.removeEventListener(e,i):t.detachEvent("on"+e,i)}function u(t){return t.which>1}var c=i(49);e.Dispatcher=c;var h=i(16),d="undefined"!=typeof window&&!!window.addEventListener,p=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,f=d?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};e.clientToLocal=a,e.normalizeEvent=r,e.addEventListener=s,e.removeEventListener=l,e.stop=f,e.notLeftMouse=u},function(t,e,i){(function(e){/*! * Vue.js v1.0.18 * (c) 2016 Evan You * Released under the MIT License. */ "use strict";function i(t,e,n){if(a(t,e))return void(t[e]=n);if(t._isVue)return void i(t._data,e,n);var o=t.__ob__;if(!o)return void(t[e]=n);if(o.convert(e,n),o.dep.notify(),o.vms)for(var r=o.vms.length;r--;){var s=o.vms[r];s._proxy(e),s._digest()}return n}function n(t,e){if(a(t,e)){delete t[e];var i=t.__ob__;if(i&&(i.dep.notify(),i.vms))for(var n=i.vms.length;n--;){var o=i.vms[n];o._unproxy(e),o._digest()}}}function a(t,e){return wi.call(t,e)}function o(t){return Si.test(t)}function r(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function s(t){return null==t?"":t.toString()}function l(t){if("string"!=typeof t)return t;var e=Number(t);return isNaN(e)?t:e}function u(t){return"true"===t?!0:"false"===t?!1:t}function c(t){var e=t.charCodeAt(0),i=t.charCodeAt(t.length-1);return e!==i||34!==e&&39!==e?t:t.slice(1,-1)}function h(t){return t.replace(Mi,d)}function d(t,e){return e?e.toUpperCase():""}function p(t){return t.replace(Ai,"$1-$2").toLowerCase()}function f(t){return t.replace(Ti,d)}function g(t,e){return function(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function m(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function v(t,e){for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t}function y(t){return null!==t&&"object"==typeof t}function x(t){return Ii.call(t)===Li}function _(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}function b(t,e){var i,n,a,o,r,s=function l(){var s=Date.now()-o;e>s&&s>=0?i=setTimeout(l,e-s):(i=null,r=t.apply(a,n),i||(a=n=null))};return function(){return a=this,n=arguments,o=Date.now(),i||(i=setTimeout(s,e)),r}}function w(t,e){for(var i=t.length;i--;)if(t[i]===e)return i;return-1}function S(t){var e=function i(){return i.cancelled?void 0:t.apply(this,arguments)};return e.cancel=function(){e.cancelled=!0},e}function M(t,e){return t==e||(y(t)&&y(e)?JSON.stringify(t)===JSON.stringify(e):!1)}function A(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap=Object.create(null)}function T(){var t,e=Hi.slice(Xi,Zi).trim();if(e){t={};var i=e.match(an);t.name=i[0],i.length>1&&(t.args=i.slice(1).map(I))}t&&($i.filters=$i.filters||[]).push(t),Xi=Zi+1}function I(t){if(on.test(t))return{value:l(t),dynamic:!1};var e=c(t),i=e===t;return{value:i?t:e,dynamic:i}}function L(t){var e=nn.get(t);if(e)return e;for(Hi=t,Ki=Ji=!1,Qi=tn=en=0,Xi=0,$i={},Zi=0,Yi=Hi.length;Yi>Zi;Zi++)if(Ui=qi,qi=Hi.charCodeAt(Zi),Ki)39===qi&&92!==Ui&&(Ki=!Ki);else if(Ji)34===qi&&92!==Ui&&(Ji=!Ji);else if(124===qi&&124!==Hi.charCodeAt(Zi+1)&&124!==Hi.charCodeAt(Zi-1))null==$i.expression?(Xi=Zi+1,$i.expression=Hi.slice(0,Zi).trim()):T();else switch(qi){case 34:Ji=!0;break;case 39:Ki=!0;break;case 40:en++;break;case 41:en--;break;case 91:tn++;break;case 93:tn--;break;case 123:Qi++;break;case 125:Qi--}return null==$i.expression?$i.expression=Hi.slice(0,Zi).trim():0!==Xi&&T(),nn.put(t,$i),$i}function C(t){return t.replace(sn,"\\$&")}function D(){var t=C(gn.delimiters[0]),e=C(gn.delimiters[1]),i=C(gn.unsafeDelimiters[0]),n=C(gn.unsafeDelimiters[1]);un=new RegExp(i+"(.+?)"+n+"|"+t+"(.+?)"+e,"g"),cn=new RegExp("^"+i+".*"+n+"$"),ln=new A(1e3)}function P(t){ln||D();var e=ln.get(t);if(e)return e;if(t=t.replace(/\n/g,""),!un.test(t))return null;for(var i,n,a,o,r,s,l=[],u=un.lastIndex=0;i=un.exec(t);)n=i.index,n>u&&l.push({value:t.slice(u,n)}),a=cn.test(i[0]),o=a?i[1]:i[2],r=o.charCodeAt(0),s=42===r,o=s?o.slice(1):o,l.push({tag:!0,value:o.trim(),html:a,oneTime:s}),u=n+i[0].length;return u1?t.map(function(t){return E(t,e)}).join("+"):E(t[0],e,!0)}function E(t,e,i){return t.tag?t.oneTime&&e?'"'+e.$eval(t.value)+'"':O(t.value,i):'"'+t.value+'"'}function O(t,e){if(hn.test(t)){var i=L(t);return i.filters?"this._applyFilters("+i.expression+",null,"+JSON.stringify(i.filters)+",false)":"("+t+")"}return e?t:"("+t+")"}function z(t,e,i,n){F(t,1,function(){e.appendChild(t)},i,n)}function N(t,e,i,n){F(t,1,function(){H(t,e)},i,n)}function R(t,e,i){F(t,-1,function(){q(t)},e,i)}function F(t,e,i,n,a){var o=t.__v_trans;if(!o||!o.hooks&&!Ri||!n._isCompiled||n.$parent&&!n.$parent._isCompiled)return i(),void(a&&a());var r=e>0?"enter":"leave";o[r](i,a)}function V(t){if("string"==typeof t){t=document.querySelector(t)}return t}function B(t){var e=document.documentElement,i=t&&t.parentNode;return e===t||e===i||!(!i||1!==i.nodeType||!e.contains(i))}function j(t,e){var i=t.getAttribute(e);return null!==i&&t.removeAttribute(e),i}function G(t,e){var i=j(t,":"+e);return null===i&&(i=j(t,"v-bind:"+e)),i}function W(t,e){return t.hasAttribute(e)||t.hasAttribute(":"+e)||t.hasAttribute("v-bind:"+e)}function H(t,e){e.parentNode.insertBefore(t,e)}function $(t,e){e.nextSibling?H(t,e.nextSibling):e.parentNode.appendChild(t)}function q(t){t.parentNode.removeChild(t)}function U(t,e){e.firstChild?H(t,e.firstChild):e.appendChild(t)}function Z(t,e){var i=t.parentNode;i&&i.replaceChild(e,t)}function Y(t,e,i,n){t.addEventListener(e,i,n)}function X(t,e,i){t.removeEventListener(e,i)}function K(t,e){Oi&&!/svg$/.test(t.namespaceURI)?t.className=e:t.setAttribute("class",e)}function J(t,e){if(t.classList)t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&K(t,(i+e).trim())}}function Q(t,e){if(t.classList)t.classList.remove(e);else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");K(t,i.trim())}t.className||t.removeAttribute("class")}function tt(t,e){var i,n;if(nt(t)&<(t.content)&&(t=t.content),t.hasChildNodes())for(et(t),n=e?document.createDocumentFragment():document.createElement("div");i=t.firstChild;)n.appendChild(i);return n}function et(t){for(var e;e=t.firstChild,it(e);)t.removeChild(e);for(;e=t.lastChild,it(e);)t.removeChild(e)}function it(t){return t&&(3===t.nodeType&&!t.data.trim()||8===t.nodeType)}function nt(t){return t.tagName&&"template"===t.tagName.toLowerCase()}function at(t,e){var i=gn.debug?document.createComment(t):document.createTextNode(e?" ":"");return i.__v_anchor=!0,i}function ot(t){if(t.hasAttributes())for(var e=t.attributes,i=0,n=e.length;n>i;i++){var a=e[i].name;if(yn.test(a))return h(a.replace(yn,""))}}function rt(t,e,i){for(var n;t!==e;)n=t.nextSibling,i(t),t=n;i(e)}function st(t,e,i,n,a){function o(){if(s++,r&&s>=l.length){for(var t=0;tn;n++){var o=i[n];_(t,o,e[o])}}function ft(t,e){if(t&&"object"==typeof t){var i;return a(t,"__ob__")&&t.__ob__ instanceof ht?i=t.__ob__:(Ci(t)||x(t))&&Object.isExtensible(t)&&!t._isVue&&(i=new ht(t)),i&&e&&i.addVm(e),i}}function gt(t,e,i,n){var a=new ct,o=Object.getOwnPropertyDescriptor(t,e);if(!o||o.configurable!==!1){var r=o&&o.get,s=o&&o.set,l=n?y(i)&&i.__ob__:ft(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=r?r.call(t):i;if(ct.target&&(a.depend(),l&&l.dep.depend(),Ci(e)))for(var n,o=0,s=e.length;s>o;o++)n=e[o],n&&n.__ob__&&n.__ob__.dep.depend();return e},set:function(e){var o=r?r.call(t):i;e!==o&&(s?s.call(t,e):i=e,l=n?y(e)&&e.__ob__:ft(e),a.notify())}})}}function mt(t,e){var i=t.tagName.toLowerCase(),n=t.hasAttributes();if(Sn.test(i)||Mn.test(i)){if(n)return vt(t)}else{if(Lt(e,"components",i))return{id:i};var a=n&&vt(t);if(a)return a}}function vt(t){var e=j(t,"is");return null!=e?{id:e}:(e=G(t,"is"),null!=e?{id:e,dynamic:!0}:void 0)}function yt(t,e,i){var n=e.path;i=bt(e,i),void 0===i&&(i=xt(t,e.options)),_t(e,i)&>(t,n,i,!0)}function xt(t,e){if(!a(e,"default"))return e.type===Boolean?!1:void 0;var i=e["default"];return y(i),"function"==typeof i&&e.type!==Function?i.call(t):i}function _t(t,e){if(!t.options.required&&(null===t.raw||null==e))return!0;var i,n=t.options,a=n.type,o=!0;if(a&&(a===String?(i="string",o=typeof e===i):a===Number?(i="number",o="number"==typeof e):a===Boolean?(i="boolean",o="boolean"==typeof e):a===Function?(i="function",o="function"==typeof e):a===Object?(i="object",o=x(e)):a===Array?(i="array",o=Ci(e)):o=e instanceof a),!o)return!1;var r=n.validator;return!r||r(e)}function bt(t,e){var i=t.options.coerce;return i?i(e):e}function wt(t,e){var n,o,r;for(n in e)o=t[n],r=e[n],a(t,n)?y(o)&&y(r)&&wt(o,r):i(t,n,r);return t}function St(t,e){var i=Object.create(t);return e?v(i,Tt(e)):i}function Mt(t){if(t.components)for(var e,i=t.components=Tt(t.components),n=Object.keys(i),a=0,o=n.length;o>a;a++){var r=n[a];Sn.test(r)||Mn.test(r)||(e=i[r],x(e)&&(i[r]=mi.extend(e)))}}function At(t){var e,i,n=t.props;if(Ci(n))for(t.props={},e=n.length;e--;)i=n[e],"string"==typeof i?t.props[i]=null:i.name&&(t.props[i.name]=i);else if(x(n)){var a=Object.keys(n);for(e=a.length;e--;)i=n[a[e]],"function"==typeof i&&(n[a[e]]={type:i})}}function Tt(t){if(Ci(t)){for(var e,i={},n=t.length;n--;){e=t[n];var a="function"==typeof e?e.options&&e.options.name||e.id:e.name||e.id;a&&(i[a]=e)}return i}return t}function It(t,e,i){function n(n){var a=An[n]||Tn;r[n]=a(t[n],e[n],i,n)}Mt(e),At(e);var o,r={};if(e.mixins)for(var s=0,l=e.mixins.length;l>s;s++)t=It(t,e.mixins[s],i);for(o in t)n(o);for(o in e)a(t,o)||n(o);return r}function Lt(t,e,i){if("string"==typeof i){var n,a=t[e];return a[i]||a[n=h(i)]||a[n.charAt(0).toUpperCase()+n.slice(1)]}}function Ct(t,e,i){}function Dt(t){t.prototype._init=function(t){t=t||{},this.$el=null,this.$parent=t.parent,this.$root=this.$parent?this.$parent.$root:this,this.$children=[],this.$refs={},this.$els={},this._watchers=[],this._directives=[],this._uid=Ln++,this._isVue=!0,this._events={},this._eventsCount={},this._isFragment=!1,this._fragment=this._fragmentStart=this._fragmentEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=this._vForRemoving=!1,this._unlinkFn=null,this._context=t._context||this.$parent,this._scope=t._scope,this._frag=t._frag,this._frag&&this._frag.children.push(this),this.$parent&&this.$parent.$children.push(this),t=this.$options=It(this.constructor.options,t,this),this._updateRef(),this._data={},this._runtimeData=t.data,this._callHook("init"),this._initState(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}}function Pt(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function kt(t){var e=t.trim();return"0"===t.charAt(0)&&isNaN(t)?!1:o(e)?c(e):"*"+e}function Et(t){function e(){var e=t[c+1];return h===Vn&&"'"===e||h===Bn&&'"'===e?(c++,n="\\"+e,p[Dn](),!0):void 0}var i,n,a,o,r,s,l,u=[],c=-1,h=On,d=0,p=[];for(p[Pn]=function(){void 0!==a&&(u.push(a),a=void 0)},p[Dn]=function(){void 0===a?a=n:a+=n},p[kn]=function(){p[Dn](),d++},p[En]=function(){if(d>0)d--,h=Fn,p[Dn]();else{if(d=0,a=kt(a),a===!1)return!1;p[Pn]()}};null!=h;)if(c++,i=t[c],"\\"!==i||!e()){if(o=Pt(i),l=Wn[h],r=l[o]||l["else"]||Gn,r===Gn)return;if(h=r[0],s=p[r[1]],s&&(n=r[2],n=void 0===n?i:n,s()===!1))return;if(h===jn)return u.raw=t,u}}function Ot(t){var e=Cn.get(t);return e||(e=Et(t),e&&Cn.put(t,e)),e}function zt(t,e){return Wt(e).get(t)}function Nt(t,e,n){var a=t;if("string"==typeof e&&(e=Et(e)),!e||!y(t))return!1;for(var o,r,s=0,l=e.length;l>s;s++)o=t,r=e[s],"*"===r.charAt(0)&&(r=Wt(r.slice(1)).get.call(a,a)),l-1>s?(t=t[r],y(t)||(t={},i(o,r,t))):Ci(t)?t.$set(r,n):r in t?t[r]=n:i(t,r,n);return!0}function Rt(t,e){var i=aa.length;return aa[i]=e?t.replace(Jn,"\\n"):t,'"'+i+'"'}function Ft(t){var e=t.charAt(0),i=t.slice(1);return Zn.test(i)?t:(i=i.indexOf('"')>-1?i.replace(ta,Vt):i,e+"scope."+i)}function Vt(t,e){return aa[e]}function Bt(t){Xn.test(t),aa.length=0;var e=t.replace(Qn,Rt).replace(Kn,"");return e=(" "+e).replace(ia,Ft).replace(ta,Vt),jt(e)}function jt(t){try{return new Function("scope","return "+t+";")}catch(e){}}function Gt(t){var e=Ot(t);return e?function(t,i){Nt(t,e,i)}:void 0}function Wt(t,e){t=t.trim();var i=qn.get(t);if(i)return e&&!i.set&&(i.set=Gt(i.exp)),i;var n={exp:t};return n.get=Ht(t)&&t.indexOf("[")<0?jt("scope."+t):Bt(t),e&&(n.set=Gt(t)),qn.put(t,n),n}function Ht(t){return ea.test(t)&&!na.test(t)&&"Math."!==t.slice(0,5)}function $t(){ra=[],sa=[],la={},ua={},ca=ha=!1}function qt(){Ut(ra),ha=!0,Ut(sa),ki&&gn.devtools&&ki.emit("flush"),$t()}function Ut(t){for(Hn=0;Hn0){var r=o+(n?e:ut(e));a=Sa.get(r),a||(a=De(i,t.$options,!0),Sa.put(r,a))}else a=De(i,t.$options,!0);this.linker=a}function ce(t,e,i){var n=t.node.previousSibling;if(n){for(t=n.__v_frag;!(t&&t.forId===i&&t.inserted||n===e);){if(n=n.previousSibling,!n)return;t=n.__v_frag}return t}}function he(t){var e=t.node;if(t.end)for(;!e.__vue__&&e!==t.end&&e.nextSibling;)e=e.nextSibling;return e.__vue__}function de(t){for(var e=-1,i=new Array(Math.floor(t));++es;s++)if(n=t.options[s],o=i?n.hasAttribute("selected"):n.selected){if(a=n.hasOwnProperty("_value")?n._value:n.value,!e)return a;r.push(a)}return r}function fe(t,e){for(var i=t.length;i--;)if(M(t[i],e))return i;return-1}function ge(t,e){var i=e.map(function(t){var e=t.charCodeAt(0);return e>47&&58>e?parseInt(t,10):1===t.length&&(e=t.toUpperCase().charCodeAt(0),e>64&&91>e)?e:Ha[t]});return i=[].concat.apply([],i),function(e){return i.indexOf(e.keyCode)>-1?t.call(this,e):void 0}}function me(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function ve(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ye(t){return function(e){return e.target===e.currentTarget?t.call(this,e):void 0}}function xe(t){if(Ya[t])return Ya[t];var e=_e(t);return Ya[t]=Ya[e]=e,e}function _e(t){t=p(t);var e=h(t),i=e.charAt(0).toUpperCase()+e.slice(1);Xa||(Xa=document.createElement("div"));for(var n,a=qa.length;a--;)if(n=Ua[a]+i,n in Xa.style)return qa[a]+t;return e in Xa.style?t:void 0}function be(t){for(var e={},i=t.trim().split(/\s+/),n=i.length;n--;)e[i[n]]=!0;return e}function we(t,e){return Ci(t)?t.indexOf(e)>-1:a(t,e)}function Se(t,e,i){function n(){++o>=a?i():t[o].call(e,n)}var a=t.length,o=0;t[0].call(e,n)}function Me(t){fo.push(t),go||(go=!0,Gi(Ae))}function Ae(){for(var t=document.documentElement.offsetHeight,e=0;ea;a++)n[a]._bind();return n}function ke(t,e){return t=t.descriptor.def.priority||ko,e=e.descriptor.def.priority||ko,t>e?-1:t===e?0:1}function Ee(t,e,i,n){function a(a){Oe(t,e,a),i&&n&&Oe(i,n)}return a.dirs=e,a}function Oe(t,e,i){for(var n=e.length;n--;)e[n]._teardown()}function ze(t,e,i,n){var a=Le(e,i),o=Pe(function(){a(t,n)},t);return Ee(t,o)}function Ne(t,e,i){var n,a,o=e._containerAttrs,r=e._replacerAttrs;if(11!==t.nodeType)e._asComponent?(o&&i&&(n=Xe(o,i)),r&&(a=Xe(r,e))):a=Xe(t.attributes,e);else;return e._containerAttrs=e._replacerAttrs=null,function(t,e,i){var o,r=t._context;r&&n&&(o=Pe(function(){n(r,e,null,i)},r));var s=Pe(function(){a&&a(t,e)},t);return Ee(t,s,r,o)}}function Re(t,e){var i=t.nodeType;return 1===i&&"SCRIPT"!==t.tagName?Fe(t,e):3===i&&t.data.trim()?Ve(t,e):null}function Fe(t,e){if("TEXTAREA"===t.tagName){var i=P(t.value);i&&(t.setAttribute(":value",k(i)),t.value="")}var n,a=t.hasAttributes();return a&&(n=Ue(t,e)),n||(n=$e(t,e)),n||(n=qe(t,e)),!n&&a&&(n=Xe(t.attributes,e)),n}function Ve(t,e){if(t._skip)return Be;var i=P(t.wholeText);if(!i)return null;for(var n=t.nextSibling;n&&3===n.nodeType;)n._skip=!0,n=n.nextSibling;for(var a,o,r=document.createDocumentFragment(),s=0,l=i.length;l>s;s++)o=i[s],a=o.tag?je(o,e):document.createTextNode(o.value),r.appendChild(a);return Ge(i,r,e)}function Be(t,e){q(e)}function je(t,e){function i(e){if(!t.descriptor){var i=L(t.value);t.descriptor={name:e,def:lo[e],expression:i.expression,filters:i.filters}}}var n;return t.oneTime?n=document.createTextNode(t.value):t.html?(n=document.createComment("v-html"),i("html")):(n=document.createTextNode(" "),i("text")),n}function Ge(t,e){return function(i,n,a,o){for(var r,s,l,u=e.cloneNode(!0),c=m(u.childNodes),h=0,d=t.length;d>h;h++)r=t[h],s=r.value,r.tag&&(l=c[h],r.oneTime?(s=(o||i).$eval(s),r.html?Z(l,ee(s,!0)):l.data=s):i._bindDir(r.descriptor,l,a,o));Z(n,u)}}function We(t,e){for(var i,n,a,o=[],r=0,s=t.length;s>r;r++)a=t[r],i=Re(a,e),n=i&&i.terminal||"SCRIPT"===a.tagName||!a.hasChildNodes()?null:We(a.childNodes,e),o.push(i,n);return o.length?He(o):null}function He(t){return function(e,i,n,a,o){for(var r,s,l,u=0,c=0,h=t.length;h>u;c++){r=i[c],s=t[u++],l=t[u++];var d=m(r.childNodes);s&&s(e,r,n,a,o),l&&l(e,d,n,a,o)}}}function $e(t,e){var i=t.tagName.toLowerCase();if(!Sn.test(i)){var n=Lt(e,"elementDirectives",i);return n?Ye(t,i,"",e,n):void 0}}function qe(t,e){var i=mt(t,e);if(i){var n=ot(t),a={name:"component",ref:n,expression:i.id,def:wo.component,modifiers:{literal:!i.dynamic}},o=function(t,e,i,o,r){n&>((o||t).$refs,n,null),t._bindDir(a,e,i,o,r)};return o.terminal=!0,o}}function Ue(t,e){if(null!==j(t,"v-pre"))return Ze;if(t.hasAttribute("v-else")){var i=t.previousElementSibling;if(i&&i.hasAttribute("v-if"))return Ze}for(var n,a,o=0,r=Po.length;r>o;o++)if(a=Po[o],n=t.getAttribute("v-"+a),null!=n)return Ye(t,a,n,e)}function Ze(){}function Ye(t,e,i,n,a){var o=L(i),r={name:e,expression:o.expression,filters:o.filters,raw:i,def:a||Lt(n,"directives",e)};"for"!==e&&"router-view"!==e||(r.ref=ot(t));var s=function(t,e,i,n,a){r.ref&>((n||t).$refs,r.ref,null),t._bindDir(r,e,i,n,a)};return s.terminal=!0,s}function Xe(t,e){function i(t,e,i){var n=i&&Qe(i),a=!n&&L(o);g.push({name:t,attr:r,raw:s,def:e,arg:u,modifiers:c,expression:a&&a.expression,filters:a&&a.filters,interp:i,hasOneTime:n})}for(var n,a,o,r,s,l,u,c,h,d,p,f=t.length,g=[];f--;)if(n=t[f],a=r=n.name,o=s=n.value,d=P(o),u=null,c=Ke(a),a=a.replace(Co,""),d)o=k(d),u=a,i("bind",lo.bind,d);else if(Do.test(a))c.literal=!To.test(a),i("transition",wo.transition);else if(Io.test(a))u=a.replace(Io,""),i("on",lo.on);else if(To.test(a))l=a.replace(To,""),"style"===l||"class"===l?i(l,wo[l]):(u=l,i("bind",lo.bind));else if(p=a.match(Lo)){if(l=p[1],u=p[2],"else"===l)continue;h=Lt(e,"directives",l),h&&i(l,h)}return g.length?Je(g):void 0}function Ke(t){var e=Object.create(null),i=t.match(Co);if(i)for(var n=i.length;n--;)e[i[n].slice(1)]=!0;return e}function Je(t){return function(e,i,n,a,o){for(var r=t.length;r--;)e._bindDir(t[r],i,n,a,o)}}function Qe(t){for(var e=t.length;e--;)if(t[e].oneTime)return!0}function ti(t,e){return e&&(e._containerAttrs=ii(t)),nt(t)&&(t=ee(t)),e&&(e._asComponent&&!e.template&&(e.template=""),e.template&&(e._content=tt(t),t=ei(t,e))),lt(t)&&(U(at("v-start",!0),t),t.appendChild(at("v-end",!0))),t}function ei(t,e){var i=e.template,n=ee(i,!0);if(n){var a=n.firstChild,o=a.tagName&&a.tagName.toLowerCase();return e.replace?(t===document.body,n.childNodes.length>1||1!==a.nodeType||"component"===o||Lt(e,"components",o)||W(a,"is")||Lt(e,"elementDirectives",o)||a.hasAttribute("v-for")||a.hasAttribute("v-if")?n:(e._replacerAttrs=ii(a),ni(t,a),a)):(t.appendChild(n),t)}}function ii(t){return 1===t.nodeType&&t.hasAttributes()?m(t.attributes):void 0}function ni(t,e){for(var i,n,a=t.attributes,o=a.length;o--;)i=a[o].name,n=a[o].value,e.hasAttribute(i)||Eo.test(i)?"class"!==i||P(n)||n.trim().split(/\s+/).forEach(function(t){J(e,t)}):e.setAttribute(i,n)}function ai(t,e){if(e){for(var i,n,a=t._slotContents=Object.create(null),o=0,r=e.children.length;r>o;o++)i=e.children[o],(n=i.getAttribute("slot"))&&(a[n]||(a[n]=[])).push(i);for(n in a)a[n]=oi(a[n],e);e.hasChildNodes()&&(a["default"]=oi(e.childNodes,e))}}function oi(t,e){var i=document.createDocumentFragment();t=m(t);for(var n=0,a=t.length;a>n;n++){var o=t[n];!nt(o)||o.hasAttribute("v-if")||o.hasAttribute("v-for")||(e.removeChild(o),o=ee(o)),i.appendChild(o)}return i}function ri(t){function e(){}function i(t,e){var i=new Yt(e,t,null,{lazy:!0});return function(){return i.dirty&&i.evaluate(),ct.target&&i.depend(),i.value}}Object.defineProperty(t.prototype,"$data",{get:function(){return this._data},set:function(t){t!==this._data&&this._setData(t)}}),t.prototype._initState=function(){this._initProps(),this._initMeta(),this._initMethods(),this._initData(),this._initComputed()},t.prototype._initProps=function(){var t=this.$options,e=t.el,i=t.props;e=t.el=V(e),this._propsUnlinkFn=e&&1===e.nodeType&&i?ze(this,e,i,this._scope):null},t.prototype._initData=function(){var t,e,i=this.$options.data,n=this._data=i?i():{},o=this._props,r=this._runtimeData?"function"==typeof this._runtimeData?this._runtimeData():this._runtimeData:null,s=Object.keys(n);for(t=s.length;t--;)e=s[t],(!o||!a(o,e)||r&&a(r,e)&&null===o[e].raw)&&this._proxy(e);ft(n,this)},t.prototype._setData=function(t){t=t||{};var e=this._data;this._data=t;var i,n,o;for(i=Object.keys(e),o=i.length;o--;)n=i[o],n in t||this._unproxy(n);for(i=Object.keys(t),o=i.length;o--;)n=i[o],a(this,n)||this._proxy(n);e.__ob__.removeVm(this),ft(t,this),this._digest()},t.prototype._proxy=function(t){if(!r(t)){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(i){e._data[t]=i}})}},t.prototype._unproxy=function(t){r(t)||delete this[t]},t.prototype._digest=function(){for(var t=0,e=this._watchers.length;e>t;t++)this._watchers[t].update(!0)},t.prototype._initComputed=function(){var t=this.$options.computed;if(t)for(var n in t){var a=t[n],o={enumerable:!0,configurable:!0};"function"==typeof a?(o.get=i(a,this),o.set=e):(o.get=a.get?a.cache!==!1?i(a.get,this):g(a.get,this):e,o.set=a.set?g(a.set,this):e),Object.defineProperty(this,n,o)}},t.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=g(t[e],this)},t.prototype._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)gt(this,e,t[e])}}function si(t){function e(t,e){for(var i,n,a=e.attributes,o=0,r=a.length;r>o;o++)i=a[o].name,zo.test(i)&&(i=i.replace(zo,""),n=(t._scope||t._context).$eval(a[o].value,!0),"function"==typeof n&&(n._fromParent=!0,t.$on(i.replace(zo),n)))}function i(t,e,i){if(i){var a,o,r,s;for(o in i)if(a=i[o],Ci(a))for(r=0,s=a.length;s>r;r++)n(t,e,o,a[r]);else n(t,e,o,a)}}function n(t,e,i,a,o){var r=typeof a;if("function"===r)t[e](i,a,o);else if("string"===r){var s=t.$options.methods,l=s&&s[a];l&&t[e](i,l,o)}else a&&"object"===r&&n(t,e,i,a.handler,a)}function a(){this._isAttached||(this._isAttached=!0,this.$children.forEach(o))}function o(t){!t._isAttached&&B(t.$el)&&t._callHook("attached")}function r(){this._isAttached&&(this._isAttached=!1,this.$children.forEach(s))}function s(t){t._isAttached&&!B(t.$el)&&t._callHook("detached")}t.prototype._initEvents=function(){var t=this.$options;t._asComponent&&e(this,t.el),i(this,"$on",t.events),i(this,"$watch",t.watch)},t.prototype._initDOMHooks=function(){this.$on("hook:attached",a),this.$on("hook:detached",r)},t.prototype._callHook=function(t){this.$emit("pre-hook:"+t);var e=this.$options[t];if(e)for(var i=0,n=e.length;n>i;i++)e[i].call(this);this.$emit("hook:"+t)}}function li(){}function ui(t,e,i,n,a,o){this.vm=e,this.el=i,this.descriptor=t,this.name=t.name,this.expression=t.expression,this.arg=t.arg,this.modifiers=t.modifiers,this.filters=t.filters,this.literal=this.modifiers&&this.modifiers.literal,this._locked=!1,this._bound=!1,this._listeners=null,this._host=n,this._scope=a,this._frag=o}function ci(t){t.prototype._updateRef=function(t){var e=this.$options._ref;if(e){var i=(this._scope||this._context).$refs;t?i[e]===this&&(i[e]=null):i[e]=this}},t.prototype._compile=function(t){var e=this.$options,i=t;if(t=ti(t,e),this._initElement(t),1!==t.nodeType||null===j(t,"v-pre")){var n=this._context&&this._context.$options,a=Ne(t,e,n);ai(this,e._content);var o,r=this.constructor;e._linkerCachable&&(o=r.linker,o||(o=r.linker=De(t,e)));var s=a(this,t,this._scope),l=o?o(this,t):De(t,e)(this,t);this._unlinkFn=function(){s(),l(!0)},e.replace&&Z(i,t),this._isCompiled=!0,this._callHook("compiled")}},t.prototype._initElement=function(t){lt(t)?(this._isFragment=!0,this.$el=this._fragmentStart=t.firstChild,this._fragmentEnd=t.lastChild,3===this._fragmentStart.nodeType&&(this._fragmentStart.data=this._fragmentEnd.data=""),this._fragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},t.prototype._bindDir=function(t,e,i,n,a){this._directives.push(new ui(t,this,e,i,n,a))},t.prototype._destroy=function(t,e){if(this._isBeingDestroyed)return void(e||this._cleanup());var i,n,a=this,o=function(){!i||n||e||a._cleanup()};t&&this.$el&&(n=!0,this.$remove(function(){n=!1,o()})),this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var r,s=this.$parent;for(s&&!s._isBeingDestroyed&&(s.$children.$remove(this),this._updateRef(!0)),r=this.$children.length;r--;)this.$children[r].$destroy();for(this._propsUnlinkFn&&this._propsUnlinkFn(),this._unlinkFn&&this._unlinkFn(),r=this._watchers.length;r--;)this._watchers[r].teardown();this.$el&&(this.$el.__vue__=null),i=!0,o()},t.prototype._cleanup=function(){this._isDestroyed||(this._frag&&this._frag.children.$remove(this),this._data.__ob__&&this._data.__ob__.removeVm(this),this.$el=this.$parent=this.$root=this.$children=this._watchers=this._context=this._scope=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off())}}function hi(t){t.prototype._applyFilters=function(t,e,i,n){var a,o,r,s,l,u,c,h,d;for(u=0,c=i.length;c>u;u++)if(a=i[u],o=Lt(this.$options,"filters",a.name),o&&(o=n?o.write:o.read||o,"function"==typeof o)){if(r=n?[t,e]:[t],l=n?2:1,a.args)for(h=0,d=a.args.length;d>h;h++)s=a.args[h],r[h+l]=s.dynamic?this.$get(s.value):s.value;t=o.apply(this,r)}return t},t.prototype._resolveComponent=function(e,i){var n=Lt(this.$options,"components",e);if(n)if(n.options)i(n);else if(n.resolved)i(n.resolved);else if(n.requested)n.pendingCallbacks.push(i);else{n.requested=!0;var a=n.pendingCallbacks=[i];n.call(this,function(e){x(e)&&(e=t.extend(e)),n.resolved=e;for(var i=0,o=a.length;o>i;i++)a[i](e)},function(t){})}}}function di(t){function e(t){return JSON.parse(JSON.stringify(t))}t.prototype.$get=function(t,e){var i=Wt(t);if(i){if(e&&!Ht(t)){var n=this;return function(){n.$arguments=m(arguments);var t=i.get.call(n,n);return n.$arguments=null, t}}try{return i.get.call(this,this)}catch(a){}}},t.prototype.$set=function(t,e){var i=Wt(t,!0);i&&i.set&&i.set.call(this,this,e)},t.prototype.$delete=function(t){n(this._data,t)},t.prototype.$watch=function(t,e,i){var n,a=this;"string"==typeof t&&(n=L(t),t=n.expression);var o=new Yt(a,t,e,{deep:i&&i.deep,sync:i&&i.sync,filters:n&&n.filters,user:!i||i.user!==!1});return i&&i.immediate&&e.call(a,o.value),function(){o.teardown()}},t.prototype.$eval=function(t,e){if(No.test(t)){var i=L(t),n=this.$get(i.expression,e);return i.filters?this._applyFilters(n,null,i.filters):n}return this.$get(t,e)},t.prototype.$interpolate=function(t){var e=P(t),i=this;return e?1===e.length?i.$eval(e[0].value)+"":e.map(function(t){return t.tag?i.$eval(t.value):t.value}).join(""):t},t.prototype.$log=function(t){var i=t?zt(this._data,t):this._data;if(i&&(i=e(i)),!t){var n;for(n in this.$options.computed)i[n]=e(this[n]);if(this._props)for(n in this._props)i[n]=e(this[n])}console.log(i)}}function pi(t){function e(t,e,n,a,o,r){e=i(e);var s=!B(e),l=a===!1||s?o:r,u=!s&&!t._isAttached&&!B(t.$el);return t._isFragment?(rt(t._fragmentStart,t._fragmentEnd,function(i){l(i,e,t)}),n&&n()):l(t.$el,e,t,n),u&&t._callHook("attached"),t}function i(t){return"string"==typeof t?document.querySelector(t):t}function n(t,e,i,n){e.appendChild(t),n&&n()}function a(t,e,i,n){H(t,e),n&&n()}function o(t,e,i){q(t),i&&i()}t.prototype.$nextTick=function(t){Gi(t,this)},t.prototype.$appendTo=function(t,i,a){return e(this,t,i,a,n,z)},t.prototype.$prependTo=function(t,e,n){return t=i(t),t.hasChildNodes()?this.$before(t.firstChild,e,n):this.$appendTo(t,e,n),this},t.prototype.$before=function(t,i,n){return e(this,t,i,n,a,N)},t.prototype.$after=function(t,e,n){return t=i(t),t.nextSibling?this.$before(t.nextSibling,e,n):this.$appendTo(t.parentNode,e,n),this},t.prototype.$remove=function(t,e){if(!this.$el.parentNode)return t&&t();var i=this._isAttached&&B(this.$el);i||(e=!1);var n=this,a=function(){i&&n._callHook("detached"),t&&t()};if(this._isFragment)st(this._fragmentStart,this._fragmentEnd,this,this._fragment,a);else{var r=e===!1?o:R;r(this.$el,this,a)}return this}}function fi(t){function e(t,e,n){var a=t.$parent;if(a&&n&&!i.test(e))for(;a;)a._eventsCount[e]=(a._eventsCount[e]||0)+n,a=a.$parent}t.prototype.$on=function(t,i){return(this._events[t]||(this._events[t]=[])).push(i),e(this,t,1),this},t.prototype.$once=function(t,e){function i(){n.$off(t,i),e.apply(this,arguments)}var n=this;return i.fn=e,this.$on(t,i),this},t.prototype.$off=function(t,i){var n;if(!arguments.length){if(this.$parent)for(t in this._events)n=this._events[t],n&&e(this,t,-n.length);return this._events={},this}if(n=this._events[t],!n)return this;if(1===arguments.length)return e(this,t,-n.length),this._events[t]=null,this;for(var a,o=n.length;o--;)if(a=n[o],a===i||a.fn===i){e(this,t,-1),n.splice(o,1);break}return this},t.prototype.$emit=function(t){var e="string"==typeof t;t=e?t:t.name;var i=this._events[t],n=e||!i;if(i){i=i.length>1?m(i):i;var a=e&&i.some(function(t){return t._fromParent});a&&(n=!1);for(var o=m(arguments,1),r=0,s=i.length;s>r;r++){var l=i[r],u=l.apply(this,o);u!==!0||a&&!l._fromParent||(n=!0)}}return n},t.prototype.$broadcast=function(t){var e="string"==typeof t;if(t=e?t:t.name,this._eventsCount[t]){var i=this.$children,n=m(arguments);e&&(n[0]={name:t,source:this});for(var a=0,o=i.length;o>a;a++){var r=i[a],s=r.$emit.apply(r,n);s&&r.$broadcast.apply(r,n)}return this}},t.prototype.$dispatch=function(t){var e=this.$emit.apply(this,arguments);if(e){var i=this.$parent,n=m(arguments);for(n[0]={name:t,source:this};i;)e=i.$emit.apply(i,n),i=e?i.$parent:null;return this}};var i=/^hook:/}function gi(t){function e(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}t.prototype.$mount=function(t){return this._isCompiled?void 0:(t=V(t),t||(t=document.createElement("div")),this._compile(t),this._initDOMHooks(),B(this.$el)?(this._callHook("attached"),e.call(this)):this.$once("hook:attached",e),this)},t.prototype.$destroy=function(t,e){this._destroy(t,e)},t.prototype.$compile=function(t,e,i,n){return De(t,this.$options,!0)(this,t,e,i,n)}}function mi(t){this._init(t)}function vi(t,e,i){return i=i?parseInt(i,10):0,e=l(e),"number"==typeof e?t.slice(i,i+e):t}function yi(t,e,i){if(t=Bo(t),null==e)return t;if("function"==typeof e)return t.filter(e);e=(""+e).toLowerCase();for(var n,a,o,r,s="in"===i?3:2,l=m(arguments,s).reduce(function(t,e){return t.concat(e)},[]),u=[],c=0,h=t.length;h>c;c++)if(n=t[c],o=n&&n.$value||n,r=l.length){for(;r--;)if(a=l[r],"$key"===a&&_i(n.$key,e)||_i(zt(o,a),e)){u.push(n);break}}else _i(n,e)&&u.push(n);return u}function xi(t,e,i){if(t=Bo(t),!e)return t;var n=i&&0>i?-1:1;return t.slice().sort(function(t,i){return"$key"!==e&&(y(t)&&"$value"in t&&(t=t.$value),y(i)&&"$value"in i&&(i=i.$value)),t=y(t)?zt(t,e):t,i=y(i)?zt(i,e):i,t===i?0:t>i?n:-n})}function _i(t,e){var i;if(x(t)){var n=Object.keys(t);for(i=n.length;i--;)if(_i(t[n[i]],e))return!0}else if(Ci(t)){for(i=t.length;i--;)if(_i(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}function bi(t){function e(t){return new Function("return function "+f(t)+" (options) { this._init(options) }")()}t.options={directives:lo,elementDirectives:Vo,filters:Go,transitions:{},components:{},partials:{},replace:!0},t.util=In,t.config=gn,t.set=i,t["delete"]=n,t.nextTick=Gi,t.compiler=Oo,t.FragmentFactory=ue,t.internalDirectives=wo,t.parsers={path:$n,text:dn,template:ba,directive:rn,expression:oa},t.cid=0;var a=1;t.extend=function(t){t=t||{};var i=this,n=0===i.cid;if(n&&t._Ctor)return t._Ctor;var o=t.name||i.options.name,r=e(o||"VueComponent");return r.prototype=Object.create(i.prototype),r.prototype.constructor=r,r.cid=a++,r.options=It(i.options,t),r["super"]=i,r.extend=i.extend,gn._assetTypes.forEach(function(t){r[t]=i[t]}),o&&(r.options.components[o]=r),n&&(t._Ctor=r),r},t.use=function(t){if(!t.installed){var e=m(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}},t.mixin=function(e){t.options=It(t.options,e)},gn._assetTypes.forEach(function(e){t[e]=function(i,n){return n?("component"===e&&x(n)&&(n.name=i,n=t.extend(n)),this.options[e+"s"][i]=n,n):this.options[e+"s"][i]}}),v(t.transition,vn)}var wi=Object.prototype.hasOwnProperty,Si=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,Mi=/-(\w)/g,Ai=/([a-z\d])([A-Z])/g,Ti=/(?:^|[-_\/])(\w)/g,Ii=Object.prototype.toString,Li="[object Object]",Ci=Array.isArray,Di="__proto__"in{},Pi="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),ki=Pi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ei=Pi&&window.navigator.userAgent.toLowerCase(),Oi=Ei&&Ei.indexOf("msie 9.0")>0,zi=Ei&&Ei.indexOf("android")>0,Ni=void 0,Ri=void 0,Fi=void 0,Vi=void 0;if(Pi&&!Oi){var Bi=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,ji=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;Ni=Bi?"WebkitTransition":"transition",Ri=Bi?"webkitTransitionEnd":"transitionend",Fi=ji?"WebkitAnimation":"animation",Vi=ji?"webkitAnimationEnd":"animationend"}var Gi=function(){function t(){a=!1;var t=n.slice(0);n=[];for(var e=0;ee;e++)t[e].update()};var _n=Array.prototype,bn=Object.create(_n);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=_n[t];_(bn,t,function(){for(var i=arguments.length,n=new Array(i);i--;)n[i]=arguments[i];var a,o=e.apply(this,n),r=this.__ob__;switch(t){case"push":a=n;break;case"unshift":a=n;break;case"splice":a=n.slice(2)}return a&&r.observeArray(a),r.dep.notify(),o})}),_(_n,"$set",function(t,e){return t>=this.length&&(this.length=Number(t)+1),this.splice(t,1,e)[0]}),_(_n,"$remove",function(t){if(this.length){var e=w(this,t);return e>-1?this.splice(e,1):void 0}});var wn=Object.getOwnPropertyNames(bn);ht.prototype.walk=function(t){for(var e=Object.keys(t),i=0,n=e.length;n>i;i++)this.convert(e[i],t[e[i]])},ht.prototype.observeArray=function(t){for(var e=0,i=t.length;i>e;e++)ft(t[e])},ht.prototype.convert=function(t,e){gt(this.value,t,e)},ht.prototype.addVm=function(t){(this.vms||(this.vms=[])).push(t)},ht.prototype.removeVm=function(t){this.vms.$remove(t)};var Sn=/^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/i,Mn=/^(slot|partial|component)$/i,An=gn.optionMergeStrategies=Object.create(null);An.data=function(t,e,i){return i?t||e?function(){var n="function"==typeof e?e.call(i):e,a="function"==typeof t?t.call(i):void 0;return n?wt(n,a):a}:void 0:e?"function"!=typeof e?t:t?function(){return wt(e.call(this),t.call(this))}:e:t},An.el=function(t,e,i){if(i||!e||"function"==typeof e){var n=e||t;return i&&"function"==typeof n?n.call(i):n}},An.init=An.created=An.ready=An.attached=An.detached=An.beforeCompile=An.compiled=An.beforeDestroy=An.destroyed=An.activate=function(t,e){return e?t?t.concat(e):Ci(e)?e:[e]:t},An.paramAttributes=function(){},gn._assetTypes.forEach(function(t){An[t+"s"]=St}),An.watch=An.events=function(t,e){if(!e)return t;if(!t)return e;var i={};v(i,t);for(var n in e){var a=i[n],o=e[n];a&&!Ci(a)&&(a=[a]),i[n]=a?a.concat(o):[o]}return i},An.props=An.methods=An.computed=function(t,e){if(!e)return t;if(!t)return e;var i=Object.create(null);return v(i,t),v(i,e),i};var Tn=function(t,e){return void 0===e?t:e},In=Object.freeze({defineReactive:gt,set:i,del:n,hasOwn:a,isLiteral:o,isReserved:r,_toString:s,toNumber:l,toBoolean:u,stripQuotes:c,camelize:h,hyphenate:p,classify:f,bind:g,toArray:m,extend:v,isObject:y,isPlainObject:x,def:_,debounce:b,indexOf:w,cancellable:S,looseEqual:M,isArray:Ci,hasProto:Di,inBrowser:Pi,devtools:ki,isIE9:Oi,isAndroid:zi,get transitionProp(){return Ni},get transitionEndEvent(){return Ri},get animationProp(){return Fi},get animationEndEvent(){return Vi},nextTick:Gi,query:V,inDoc:B,getAttr:j,getBindAttr:G,hasBindAttr:W,before:H,after:$,remove:q,prepend:U,replace:Z,on:Y,off:X,setClass:K,addClass:J,removeClass:Q,extractContent:tt,trimNode:et,isTemplate:nt,createAnchor:at,findRef:ot,mapNodeRange:rt,removeNodeRange:st,isFragment:lt,getOuterHTML:ut,mergeOptions:It,resolveAsset:Lt,assertAsset:Ct,checkComponentAttr:mt,initProp:yt,assertProp:_t,coerceProp:bt,commonTagRE:Sn,reservedTagRE:Mn,get warn(){return mn}}),Ln=0,Cn=new A(1e3),Dn=0,Pn=1,kn=2,En=3,On=0,zn=1,Nn=2,Rn=3,Fn=4,Vn=5,Bn=6,jn=7,Gn=8,Wn=[];Wn[On]={ws:[On],ident:[Rn,Dn],"[":[Fn],eof:[jn]},Wn[zn]={ws:[zn],".":[Nn],"[":[Fn],eof:[jn]},Wn[Nn]={ws:[Nn],ident:[Rn,Dn]},Wn[Rn]={ident:[Rn,Dn],0:[Rn,Dn],number:[Rn,Dn],ws:[zn,Pn],".":[Nn,Pn],"[":[Fn,Pn],eof:[jn,Pn]},Wn[Fn]={"'":[Vn,Dn],'"':[Bn,Dn],"[":[Fn,kn],"]":[zn,En],eof:Gn,"else":[Fn,Dn]},Wn[Vn]={"'":[Fn,Dn],eof:Gn,"else":[Vn,Dn]},Wn[Bn]={'"':[Fn,Dn],eof:Gn,"else":[Bn,Dn]};var Hn,$n=Object.freeze({parsePath:Ot,getPath:zt,setPath:Nt}),qn=new A(1e3),Un="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",Zn=new RegExp("^("+Un.replace(/,/g,"\\b|")+"\\b)"),Yn="break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,with,yield,enum,await,implements,package,protected,static,interface,private,public",Xn=new RegExp("^("+Yn.replace(/,/g,"\\b|")+"\\b)"),Kn=/\s/g,Jn=/\n/g,Qn=/[\{,]\s*[\w\$_]+\s*:|('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`)|new |typeof |void /g,ta=/"(\d+)"/g,ea=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,ia=/[^\w$\.](?:[A-Za-z_$][\w$]*)/g,na=/^(?:true|false)$/,aa=[],oa=Object.freeze({parseExpression:Wt,isSimplePath:Ht}),ra=[],sa=[],la={},ua={},ca=!1,ha=!1,da=0;Yt.prototype.get=function(){this.beforeGet();var t,e=this.scope||this.vm;try{t=this.getter.call(e,e)}catch(i){}return this.deep&&Xt(t),this.preProcess&&(t=this.preProcess(t)),this.filters&&(t=e._applyFilters(t,null,this.filters,!1)),this.postProcess&&(t=this.postProcess(t)),this.afterGet(),t},Yt.prototype.set=function(t){var e=this.scope||this.vm;this.filters&&(t=e._applyFilters(t,this.value,this.filters,!0));try{this.setter.call(e,e,t)}catch(i){}var n=e.$forContext;if(n&&n.alias===this.expression){if(n.filters)return;n._withLock(function(){e.$key?n.rawValue[e.$key]=t:n.rawValue.$set(e.$index,t)})}},Yt.prototype.beforeGet=function(){ct.target=this,this.newDepIds=Object.create(null),this.newDeps.length=0},Yt.prototype.addDep=function(t){var e=t.id;this.newDepIds[e]||(this.newDepIds[e]=!0,this.newDeps.push(t),this.depIds[e]||t.addSub(this))},Yt.prototype.afterGet=function(){ct.target=null;for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds[e.id]||e.removeSub(this)}this.depIds=this.newDepIds;var i=this.deps;this.deps=this.newDeps,this.newDeps=i},Yt.prototype.update=function(t){this.lazy?this.dirty=!0:this.sync||!gn.async?this.run():(this.shallow=this.queued?t?this.shallow:!1:!!t,this.queued=!0,Zt(this))},Yt.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||(y(t)||this.deep)&&!this.shallow){var e=this.value;this.value=t;this.prevError;this.cb.call(this.vm,t,e)}this.queued=this.shallow=!1}},Yt.prototype.evaluate=function(){var t=ct.target;this.value=this.get(),this.dirty=!1,ct.target=t},Yt.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Yt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||this.vm._watchers.$remove(this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.vm=this.cb=this.value=null}};var pa={bind:function(){this.attr=3===this.el.nodeType?"data":"textContent"},update:function(t){this.el[this.attr]=s(t)}},fa=new A(1e3),ga=new A(1e3),ma={efault:[0,"",""],legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"]};ma.td=ma.th=[3,"","
"],ma.option=ma.optgroup=[1,'"],ma.thead=ma.tbody=ma.colgroup=ma.caption=ma.tfoot=[1,"","
"],ma.g=ma.defs=ma.symbol=ma.use=ma.image=ma.text=ma.circle=ma.ellipse=ma.line=ma.path=ma.polygon=ma.polyline=ma.rect=[1,'',""];var va=/<([\w:-]+)/,ya=/&#?\w+?;/,xa=function(){if(Pi){var t=document.createElement("div");return t.innerHTML="",!t.cloneNode(!0).firstChild.innerHTML}return!1}(),_a=function(){if(Pi){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}return!1}(),ba=Object.freeze({cloneNode:te,parseTemplate:ee}),wa={bind:function(){8===this.el.nodeType&&(this.nodes=[],this.anchor=at("v-html"),Z(this.el,this.anchor))},update:function(t){t=s(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)q(this.nodes[e]);var i=ee(t,!0,!0);this.nodes=m(i.childNodes),H(i,this.anchor)}};ie.prototype.callHook=function(t){var e,i;for(e=0,i=this.childFrags.length;i>e;e++)this.childFrags[e].callHook(t);for(e=0,i=this.children.length;i>e;e++)t(this.children[e])},ie.prototype.beforeRemove=function(){var t,e;for(t=0,e=this.childFrags.length;e>t;t++)this.childFrags[t].beforeRemove(!1);for(t=0,e=this.children.length;e>t;t++)this.children[t].$destroy(!1,!0);var i=this.unlink.dirs;for(t=0,e=i.length;e>t;t++)i[t]._watcher&&i[t]._watcher.teardown()},ie.prototype.destroy=function(){this.parentFrag&&this.parentFrag.childFrags.$remove(this),this.node.__v_frag=null,this.unlink()};var Sa=new A(5e3);ue.prototype.create=function(t,e,i){var n=te(this.template);return new ie(this.linker,this.vm,n,t,e,i)};var Ma=700,Aa=800,Ta=850,Ia=1100,La=1500,Ca=1500,Da=1750,Pa=2e3,ka=2e3,Ea=2100,Oa=0,za={priority:Pa,params:["track-by","stagger","enter-stagger","leave-stagger"],bind:function(){var t=this.expression.match(/(.*) (?:in|of) (.*)/);if(t){var e=t[1].match(/\((.*),(.*)\)/);e?(this.iterator=e[1].trim(),this.alias=e[2].trim()):this.alias=t[1].trim(),this.expression=t[2]}if(this.alias){this.id="__v-for__"+ ++Oa;var i=this.el.tagName;this.isOption=("OPTION"===i||"OPTGROUP"===i)&&"SELECT"===this.el.parentNode.tagName,this.start=at("v-for-start"),this.end=at("v-for-end"),Z(this.el,this.end),H(this.start,this.end),this.cache=Object.create(null),this.factory=new ue(this.vm,this.el)}},update:function(t){this.diff(t),this.updateRef(),this.updateModel()},diff:function(t){var e,i,n,o,r,s,l=t[0],u=this.fromObject=y(l)&&a(l,"$key")&&a(l,"$value"),c=this.params.trackBy,h=this.frags,d=this.frags=new Array(t.length),p=this.alias,f=this.iterator,g=this.start,m=this.end,v=B(g),x=!h;for(e=0,i=t.length;i>e;e++)l=t[e],o=u?l.$key:null,r=u?l.$value:l,s=!y(r),n=!x&&this.getCachedFrag(r,e,o),n?(n.reused=!0,n.scope.$index=e,o&&(n.scope.$key=o),f&&(n.scope[f]=null!==o?o:e),(c||u||s)&&(n.scope[p]=r)):(n=this.create(r,p,e,o),n.fresh=!x),d[e]=n,x&&n.before(m);if(!x){var _=0,b=h.length-d.length;for(this.vm._vForRemoving=!0,e=0,i=h.length;i>e;e++)n=h[e],n.reused||(this.deleteCachedFrag(n),this.remove(n,_++,b,v));this.vm._vForRemoving=!1,_&&(this.vm._watchers=this.vm._watchers.filter(function(t){return t.active}));var w,S,M,A=0;for(e=0,i=d.length;i>e;e++)n=d[e],w=d[e-1],S=w?w.staggerCb?w.staggerAnchor:w.end||w.node:g,n.reused&&!n.staggerCb?(M=ce(n,g,this.id),M===w||M&&ce(M,g,this.id)===w||this.move(n,S)):this.insert(n,A++,S,v),n.reused=n.fresh=!1}},create:function(t,e,i,n){var a=this._host,o=this._scope||this.vm,r=Object.create(o);r.$refs=Object.create(o.$refs),r.$els=Object.create(o.$els),r.$parent=o,r.$forContext=this,gt(r,e,t,!0),gt(r,"$index",i),n?gt(r,"$key",n):r.$key&&_(r,"$key",null),this.iterator&>(r,this.iterator,null!==n?n:i);var s=this.factory.create(a,r,this._frag);return s.forId=this.id,this.cacheFrag(t,s,i,n),s},updateRef:function(){var t=this.descriptor.ref;if(t){var e,i=(this._scope||this.vm).$refs;this.fromObject?(e={},this.frags.forEach(function(t){e[t.scope.$key]=he(t)})):e=this.frags.map(he),i[t]=e}},updateModel:function(){if(this.isOption){var t=this.start.parentNode,e=t&&t.__v_model;e&&e.forceUpdate()}},insert:function(t,e,i,n){t.staggerCb&&(t.staggerCb.cancel(),t.staggerCb=null);var a=this.getStagger(t,e,null,"enter");if(n&&a){var o=t.staggerAnchor;o||(o=t.staggerAnchor=at("stagger-anchor"),o.__v_frag=t),$(o,i);var r=t.staggerCb=S(function(){t.staggerCb=null,t.before(o),q(o)});setTimeout(r,a)}else t.before(i.nextSibling)},remove:function(t,e,i,n){if(t.staggerCb)return t.staggerCb.cancel(),void(t.staggerCb=null);var a=this.getStagger(t,e,i,"leave");if(n&&a){var o=t.staggerCb=S(function(){t.staggerCb=null,t.remove()});setTimeout(o,a)}else t.remove()},move:function(t,e){e.nextSibling||this.end.parentNode.appendChild(this.end),t.before(e.nextSibling,!1)},cacheFrag:function(t,e,i,n){var o,r=this.params.trackBy,s=this.cache,l=!y(t);n||r||l?(o=r?"$index"===r?i:t[r]:n||t,s[o]||(s[o]=e)):(o=this.id,a(t,o)?null===t[o]&&(t[o]=e):_(t,o,e)),e.raw=t},getCachedFrag:function(t,e,i){var n,a=this.params.trackBy,o=!y(t);if(i||a||o){var r=a?"$index"===a?e:t[a]:i||t;n=this.cache[r]}else n=t[this.id];return n&&(n.reused||n.fresh),n},deleteCachedFrag:function(t){var e=t.raw,i=this.params.trackBy,n=t.scope,o=n.$index,r=a(n,"$key")&&n.$key,s=!y(e);if(i||r||s){var l=i?"$index"===i?o:e[i]:r||e;this.cache[l]=null}else e[this.id]=null,t.raw=null},getStagger:function(t,e,i,n){n+="Stagger";var a=t.node.__v_trans,o=a&&a.hooks,r=o&&(o[n]||o.stagger);return r?r.call(t,e,i):e*parseInt(this.params[n]||this.params.stagger,10)},_preProcess:function(t){return this.rawValue=t,t},_postProcess:function(t){if(Ci(t))return t;if(x(t)){for(var e,i=Object.keys(t),n=i.length,a=new Array(n);n--;)e=i[n],a[n]={$key:e,$value:t[e]};return a}return"number"!=typeof t||isNaN(t)||(t=de(t)),t||[]},unbind:function(){if(this.descriptor.ref&&((this._scope||this.vm).$refs[this.descriptor.ref]=null),this.frags)for(var t,e=this.frags.length;e--;)t=this.frags[e],this.deleteCachedFrag(t),t.destroy()}},Na={priority:ka,bind:function(){var t=this.el;if(t.__vue__)this.invalid=!0;else{var e=t.nextElementSibling;e&&null!==j(e,"v-else")&&(q(e),this.elseEl=e),this.anchor=at("v-if"),Z(t,this.anchor)}},update:function(t){this.invalid||(t?this.frag||this.insert():this.remove())},insert:function(){this.elseFrag&&(this.elseFrag.remove(),this.elseFrag=null),this.factory||(this.factory=new ue(this.vm,this.el)),this.frag=this.factory.create(this._host,this._scope,this._frag),this.frag.before(this.anchor)},remove:function(){this.frag&&(this.frag.remove(),this.frag=null),this.elseEl&&!this.elseFrag&&(this.elseFactory||(this.elseFactory=new ue(this.elseEl._context||this.vm,this.elseEl)),this.elseFrag=this.elseFactory.create(this._host,this._scope,this._frag),this.elseFrag.before(this.anchor))},unbind:function(){this.frag&&this.frag.destroy(),this.elseFrag&&this.elseFrag.destroy()}},Ra={bind:function(){var t=this.el.nextElementSibling;t&&null!==j(t,"v-else")&&(this.elseEl=t)},update:function(t){this.apply(this.el,t),this.elseEl&&this.apply(this.elseEl,!t)},apply:function(t,e){function i(){t.style.display=e?"":"none"}B(t)?F(t,e?1:-1,i,this.vm):i()}},Fa={bind:function(){var t=this,e=this.el,i="range"===e.type,n=this.params.lazy,a=this.params.number,o=this.params.debounce,r=!1;if(zi||i||(this.on("compositionstart",function(){r=!0}),this.on("compositionend",function(){r=!1,n||t.listener()})),this.focused=!1,i||n||(this.on("focus",function(){t.focused=!0}),this.on("blur",function(){t.focused=!1,t._frag&&!t._frag.inserted||t.rawListener()})),this.listener=this.rawListener=function(){if(!r&&t._bound){var n=a||i?l(e.value):e.value;t.set(n),Gi(function(){t._bound&&!t.focused&&t.update(t._watcher.value)})}},o&&(this.listener=b(this.listener,o)),this.hasjQuery="function"==typeof jQuery,this.hasjQuery){var s=jQuery.fn.on?"on":"bind";jQuery(e)[s]("change",this.rawListener),n||jQuery(e)[s]("input",this.listener)}else this.on("change",this.rawListener),n||this.on("input",this.listener);!n&&Oi&&(this.on("cut",function(){Gi(t.listener)}),this.on("keyup",function(e){46!==e.keyCode&&8!==e.keyCode||t.listener()})),(e.hasAttribute("value")||"TEXTAREA"===e.tagName&&e.value.trim())&&(this.afterBind=this.listener)},update:function(t){this.el.value=s(t)},unbind:function(){var t=this.el;if(this.hasjQuery){var e=jQuery.fn.off?"off":"unbind";jQuery(t)[e]("change",this.listener),jQuery(t)[e]("input",this.listener)}}},Va={bind:function(){var t=this,e=this.el;this.getValue=function(){if(e.hasOwnProperty("_value"))return e._value;var i=e.value;return t.params.number&&(i=l(i)),i},this.listener=function(){t.set(t.getValue())},this.on("change",this.listener),e.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){this.el.checked=M(t,this.getValue())}},Ba={bind:function(){var t=this,e=this.el;this.forceUpdate=function(){t._watcher&&t.update(t._watcher.get())};var i=this.multiple=e.hasAttribute("multiple");this.listener=function(){var n=pe(e,i);n=t.params.number?Ci(n)?n.map(l):l(n):n,t.set(n)},this.on("change",this.listener);var n=pe(e,i,!0);(i&&n.length||!i&&null!==n)&&(this.afterBind=this.listener),this.vm.$on("hook:attached",this.forceUpdate)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var i,n,a=this.multiple&&Ci(t),o=e.options,r=o.length;r--;)i=o[r],n=i.hasOwnProperty("_value")?i._value:i.value,i.selected=a?fe(t,n)>-1:M(t,n)},unbind:function(){this.vm.$off("hook:attached",this.forceUpdate)}},ja={bind:function(){function t(){var t=i.checked;return t&&i.hasOwnProperty("_trueValue")?i._trueValue:!t&&i.hasOwnProperty("_falseValue")?i._falseValue:t}var e=this,i=this.el;this.getValue=function(){return i.hasOwnProperty("_value")?i._value:e.params.number?l(i.value):i.value},this.listener=function(){var n=e._watcher.value;if(Ci(n)){var a=e.getValue();i.checked?w(n,a)<0&&n.push(a):n.$remove(a)}else e.set(t())},this.on("change",this.listener),i.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){var e=this.el;Ci(t)?e.checked=w(t,this.getValue())>-1:e.hasOwnProperty("_trueValue")?e.checked=M(t,e._trueValue):e.checked=!!t}},Ga={text:Fa,radio:Va,select:Ba,checkbox:ja},Wa={priority:Aa,twoWay:!0,handlers:Ga,params:["lazy","number","debounce"],bind:function(){this.checkFilters(),this.hasRead&&!this.hasWrite;var t,e=this.el,i=e.tagName;if("INPUT"===i)t=Ga[e.type]||Ga.text;else if("SELECT"===i)t=Ga.select;else{if("TEXTAREA"!==i)return;t=Ga.text}e.__v_model=this,t.bind.call(this),this.update=t.update,this._unbind=t.unbind},checkFilters:function(){var t=this.filters;if(t)for(var e=t.length;e--;){var i=Lt(this.vm.$options,"filters",t[e].name);("function"==typeof i||i.read)&&(this.hasRead=!0),i.write&&(this.hasWrite=!0)}},unbind:function(){this.el.__v_model=null,this._unbind&&this._unbind()}},Ha={esc:27,tab:9,enter:13,space:32,"delete":[8,46],up:38,left:37,right:39,down:40},$a={priority:Ma,acceptStatement:!0,keyCodes:Ha,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){Y(t.el.contentWindow,t.arg,t.handler,t.modifiers.capture)},this.on("load",this.iframeBind)}},update:function(t){if(this.descriptor.raw||(t=function(){}),"function"==typeof t){this.modifiers.stop&&(t=me(t)),this.modifiers.prevent&&(t=ve(t)),this.modifiers.self&&(t=ye(t));var e=Object.keys(this.modifiers).filter(function(t){return"stop"!==t&&"prevent"!==t&&"self"!==t});e.length&&(t=ge(t,e)),this.reset(),this.handler=t,this.iframeBind?this.iframeBind():Y(this.el,this.arg,this.handler,this.modifiers.capture)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&X(t,this.arg,this.handler)},unbind:function(){this.reset()}},qa=["-webkit-","-moz-","-ms-"],Ua=["Webkit","Moz","ms"],Za=/!important;?$/,Ya=Object.create(null),Xa=null,Ka={deep:!0,update:function(t){"string"==typeof t?this.el.style.cssText=t:Ci(t)?this.handleObject(t.reduce(v,{})):this.handleObject(t||{})},handleObject:function(t){var e,i,n=this.cache||(this.cache={});for(e in n)e in t||(this.handleSingle(e,null),delete n[e]);for(e in t)i=t[e],i!==n[e]&&(n[e]=i,this.handleSingle(e,i))},handleSingle:function(t,e){if(t=xe(t))if(null!=e&&(e+=""),e){var i=Za.test(e)?"important":"";i&&(e=e.replace(Za,"").trim()),this.el.style.setProperty(t,e,i)}else this.el.style.removeProperty(t)}},Ja="http://www.w3.org/1999/xlink",Qa=/^xlink:/,to=/^v-|^:|^@|^(?:is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/,eo=/^(?:value|checked|selected|muted)$/,io=/^(?:draggable|contenteditable|spellcheck)$/,no={value:"_value","true-value":"_trueValue","false-value":"_falseValue"},ao={priority:Ta,bind:function(){var t=this.arg,e=this.el.tagName;t||(this.deep=!0);var i=this.descriptor,n=i.interp;if(n){i.hasOneTime&&(this.expression=k(n,this._scope||this.vm)),(to.test(t)||"name"===t&&("PARTIAL"===e||"SLOT"===e))&&(this.el.removeAttribute(t),this.invalid=!0)}},update:function(t){if(!this.invalid){var e=this.arg;this.arg?this.handleSingle(e,t):this.handleObject(t||{})}},handleObject:Ka.handleObject,handleSingle:function(t,e){var i=this.el,n=this.descriptor.interp;this.modifiers.camel&&(t=h(t)),!n&&eo.test(t)&&t in i&&(i[t]="value"===t&&null==e?"":e);var a=no[t];if(!n&&a){i[a]=e;var o=i.__v_model;o&&o.listener()}return"value"===t&&"TEXTAREA"===i.tagName?void i.removeAttribute(t):void(io.test(t)?i.setAttribute(t,e?"true":"false"):null!=e&&e!==!1?"class"===t?(i.__v_trans&&(e+=" "+i.__v_trans.id+"-transition"),K(i,e)):Qa.test(t)?i.setAttributeNS(Ja,t,e===!0?"":e):i.setAttribute(t,e===!0?"":e):i.removeAttribute(t))}},oo={priority:La,bind:function(){if(this.arg){var t=this.id=h(this.arg),e=(this._scope||this.vm).$els;a(e,t)?e[t]=this.el:gt(e,t,this.el)}},unbind:function(){var t=(this._scope||this.vm).$els;t[this.id]===this.el&&(t[this.id]=null)}},ro={bind:function(){}},so={bind:function(){var t=this.el;this.vm.$once("pre-hook:compiled",function(){t.removeAttribute("v-cloak")})}},lo={text:pa,html:wa,"for":za,"if":Na,show:Ra,model:Wa,on:$a,bind:ao,el:oo,ref:ro,cloak:so},uo={deep:!0,update:function(t){t&&"string"==typeof t?this.handleObject(be(t)):x(t)?this.handleObject(t):Ci(t)?this.handleArray(t):this.cleanup()},handleObject:function(t){this.cleanup(t);for(var e=this.prevKeys=Object.keys(t),i=0,n=e.length;n>i;i++){var a=e[i];t[a]?J(this.el,a):Q(this.el,a)}},handleArray:function(t){this.cleanup(t);for(var e=0,i=t.length;i>e;e++)t[e]&&J(this.el,t[e]);this.prevKeys=t.slice()},cleanup:function(t){if(this.prevKeys)for(var e=this.prevKeys.length;e--;){var i=this.prevKeys[e];!i||t&&we(t,i)||Q(this.el,i)}}},co={priority:Ca,params:["keep-alive","transition-mode","inline-template"],bind:function(){this.el.__vue__||(this.keepAlive=this.params.keepAlive,this.keepAlive&&(this.cache={}),this.params.inlineTemplate&&(this.inlineTemplate=tt(this.el,!0)),this.pendingComponentCb=this.Component=null,this.pendingRemovals=0,this.pendingRemovalCb=null,this.anchor=at("v-component"),Z(this.el,this.anchor),this.el.removeAttribute("is"),this.descriptor.ref&&this.el.removeAttribute("v-ref:"+p(this.descriptor.ref)),this.literal&&this.setComponent(this.expression))},update:function(t){this.literal||this.setComponent(t)},setComponent:function(t,e){if(this.invalidatePending(),t){var i=this;this.resolveComponent(t,function(){i.mountComponent(e)})}else this.unbuild(!0),this.remove(this.childVM,e),this.childVM=null},resolveComponent:function(t,e){var i=this;this.pendingComponentCb=S(function(n){i.ComponentName=n.options.name||t,i.Component=n,e()}),this.vm._resolveComponent(t,this.pendingComponentCb)},mountComponent:function(t){this.unbuild(!0);var e=this,i=this.Component.options.activate,n=this.getCached(),a=this.build(); i&&!n?(this.waitingFor=a,Se(i,a,function(){e.waitingFor===a&&(e.waitingFor=null,e.transition(a,t))})):(n&&a._updateRef(),this.transition(a,t))},invalidatePending:function(){this.pendingComponentCb&&(this.pendingComponentCb.cancel(),this.pendingComponentCb=null)},build:function(t){var e=this.getCached();if(e)return e;if(this.Component){var i={name:this.ComponentName,el:te(this.el),template:this.inlineTemplate,parent:this._host||this.vm,_linkerCachable:!this.inlineTemplate,_ref:this.descriptor.ref,_asComponent:!0,_isRouterView:this._isRouterView,_context:this.vm,_scope:this._scope,_frag:this._frag};t&&v(i,t);var n=new this.Component(i);return this.keepAlive&&(this.cache[this.Component.cid]=n),n}},getCached:function(){return this.keepAlive&&this.cache[this.Component.cid]},unbuild:function(t){this.waitingFor&&(this.waitingFor.$destroy(),this.waitingFor=null);var e=this.childVM;return!e||this.keepAlive?void(e&&(e._inactive=!0,e._updateRef(!0))):void e.$destroy(!1,t)},remove:function(t,e){var i=this.keepAlive;if(t){this.pendingRemovals++,this.pendingRemovalCb=e;var n=this;t.$remove(function(){n.pendingRemovals--,i||t._cleanup(),!n.pendingRemovals&&n.pendingRemovalCb&&(n.pendingRemovalCb(),n.pendingRemovalCb=null)})}else e&&e()},transition:function(t,e){var i=this,n=this.childVM;switch(n&&(n._inactive=!0),t._inactive=!1,this.childVM=t,i.params.transitionMode){case"in-out":t.$before(i.anchor,function(){i.remove(n,e)});break;case"out-in":i.remove(n,function(){t.$before(i.anchor,e)});break;default:i.remove(n),t.$before(i.anchor,e)}},unbind:function(){if(this.invalidatePending(),this.unbuild(),this.cache){for(var t in this.cache)this.cache[t].$destroy();this.cache=null}}},ho=gn._propBindingModes,po={bind:function(){var t=this.vm,e=t._context,i=this.descriptor.prop,n=i.path,a=i.parentPath,o=i.mode===ho.TWO_WAY,r=this.parentWatcher=new Yt(e,a,function(e){e=bt(i,e),_t(i,e)&&(t[n]=e)},{twoWay:o,filters:i.filters,scope:this._scope});if(yt(t,i,r.value),o){var s=this;t.$once("pre-hook:created",function(){s.childWatcher=new Yt(t,n,function(t){r.set(t)},{sync:!0})})}},unbind:function(){this.parentWatcher.teardown(),this.childWatcher&&this.childWatcher.teardown()}},fo=[],go=!1,mo="transition",vo="animation",yo=Ni+"Duration",xo=Fi+"Duration",_o=Te.prototype;_o.enter=function(t,e){this.cancelPending(),this.callHook("beforeEnter"),this.cb=e,J(this.el,this.enterClass),t(),this.entered=!1,this.callHookWithCb("enter"),this.entered||(this.cancel=this.hooks&&this.hooks.enterCancelled,Me(this.enterNextTick))},_o.enterNextTick=function(){this.justEntered=!0;var t=this;setTimeout(function(){t.justEntered=!1},17);var e=this.enterDone,i=this.getCssTransitionType(this.enterClass);this.pendingJsCb?i===mo&&Q(this.el,this.enterClass):i===mo?(Q(this.el,this.enterClass),this.setupCssCb(Ri,e)):i===vo?this.setupCssCb(Vi,e):e()},_o.enterDone=function(){this.entered=!0,this.cancel=this.pendingJsCb=null,Q(this.el,this.enterClass),this.callHook("afterEnter"),this.cb&&this.cb()},_o.leave=function(t,e){this.cancelPending(),this.callHook("beforeLeave"),this.op=t,this.cb=e,J(this.el,this.leaveClass),this.left=!1,this.callHookWithCb("leave"),this.left||(this.cancel=this.hooks&&this.hooks.leaveCancelled,this.op&&!this.pendingJsCb&&(this.justEntered?this.leaveDone():Me(this.leaveNextTick)))},_o.leaveNextTick=function(){var t=this.getCssTransitionType(this.leaveClass);if(t){var e=t===mo?Ri:Vi;this.setupCssCb(e,this.leaveDone)}else this.leaveDone()},_o.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),Q(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},_o.cancelPending=function(){this.op=this.cb=null;var t=!1;this.pendingCssCb&&(t=!0,X(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(t=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),t&&(Q(this.el,this.enterClass),Q(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},_o.callHook=function(t){this.hooks&&this.hooks[t]&&this.hooks[t].call(this.vm,this.el)},_o.callHookWithCb=function(t){var e=this.hooks&&this.hooks[t];e&&(e.length>1&&(this.pendingJsCb=S(this[t+"Done"])),e.call(this.vm,this.el,this.pendingJsCb))},_o.getCssTransitionType=function(t){if(!(!Ri||document.hidden||this.hooks&&this.hooks.css===!1||Ie(this.el))){var e=this.type||this.typeCache[t];if(e)return e;var i=this.el.style,n=window.getComputedStyle(this.el),a=i[yo]||n[yo];if(a&&"0s"!==a)e=mo;else{var o=i[xo]||n[xo];o&&"0s"!==o&&(e=vo)}return e&&(this.typeCache[t]=e),e}},_o.setupCssCb=function(t,e){this.pendingCssEvent=t;var i=this,n=this.el,a=this.pendingCssCb=function(o){o.target===n&&(X(n,t,a),i.pendingCssEvent=i.pendingCssCb=null,!i.pendingJsCb&&e&&e())};Y(n,t,a)};var bo={priority:Ia,update:function(t,e){var i=this.el,n=Lt(this.vm.$options,"transitions",t);t=t||"v",i.__v_trans=new Te(i,t,n,this.vm),e&&Q(i,e+"-transition"),J(i,t+"-transition")}},wo={style:Ka,"class":uo,component:co,prop:po,transition:bo},So=gn._propBindingModes,Mo={},Ao=/^[$_a-zA-Z]+[\w$]*$/,To=/^v-bind:|^:/,Io=/^v-on:|^@/,Lo=/^v-([^:]+)(?:$|:(.*)$)/,Co=/\.[^\.]+/g,Do=/^(v-bind:|:)?transition$/,Po=["for","if"],ko=1e3;Ze.terminal=!0;var Eo=/[^\w\-:\.]/,Oo=Object.freeze({compile:De,compileAndLinkProps:ze,compileRoot:Ne,terminalDirectives:Po,transclude:ti,resolveSlots:ai}),zo=/^v-on:|^@/;ui.prototype._bind=function(){var t=this.name,e=this.descriptor;if(("cloak"!==t||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){var i=e.attr||"v-"+t;this.el.removeAttribute(i)}var n=e.def;if("function"==typeof n?this.update=n:v(this,n),this._setupParams(),this.bind&&this.bind(),this._bound=!0,this.literal)this.update&&this.update(e.raw);else if((this.expression||this.modifiers)&&(this.update||this.twoWay)&&!this._checkStatement()){var a=this;this.update?this._update=function(t,e){a._locked||a.update(t,e)}:this._update=li;var o=this._preProcess?g(this._preProcess,this):null,r=this._postProcess?g(this._postProcess,this):null,s=this._watcher=new Yt(this.vm,this.expression,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:o,postProcess:r,scope:this._scope});this.afterBind?this.afterBind():this.update&&this.update(s.value)}},ui.prototype._setupParams=function(){if(this.params){var t=this.params;this.params=Object.create(null);for(var e,i,n,a=t.length;a--;)e=t[a],n=h(e),i=G(this.el,e),null!=i?this._setupParamWatcher(n,i):(i=j(this.el,e),null!=i&&(this.params[n]=""===i?!0:i))}},ui.prototype._setupParamWatcher=function(t,e){var i=this,n=!1,a=(this._scope||this.vm).$watch(e,function(e,a){if(i.params[t]=e,n){var o=i.paramWatchers&&i.paramWatchers[t];o&&o.call(i,e,a)}else n=!0},{immediate:!0,user:!1});(this._paramUnwatchFns||(this._paramUnwatchFns=[])).push(a)},ui.prototype._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!Ht(t)){var e=Wt(t).get,i=this._scope||this.vm,n=function(t){i.$event=t,e.call(i,i),i.$event=null};return this.filters&&(n=i._applyFilters(n,null,this.filters)),this.update(n),!0}},ui.prototype.set=function(t){this.twoWay&&this._withLock(function(){this._watcher.set(t)})},ui.prototype._withLock=function(t){var e=this;e._locked=!0,t.call(e),Gi(function(){e._locked=!1})},ui.prototype.on=function(t,e,i){Y(this.el,t,e,i),(this._listeners||(this._listeners=[])).push([t,e])},ui.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var t,e=this._listeners;if(e)for(t=e.length;t--;)X(this.el,e[t][0],e[t][1]);var i=this._paramUnwatchFns;if(i)for(t=i.length;t--;)i[t]();this.vm=this.el=this._watcher=this._listeners=null}};var No=/[^|]\|[^|]/;Dt(mi),ri(mi),si(mi),ci(mi),hi(mi),di(mi),pi(mi),fi(mi),gi(mi);var Ro={priority:Ea,params:["name"],bind:function(){var t=this.params.name||"default",e=this.vm._slotContents&&this.vm._slotContents[t];e&&e.hasChildNodes()?this.compile(e.cloneNode(!0),this.vm._context,this.vm):this.fallback()},compile:function(t,e,i){if(t&&e){if(this.el.hasChildNodes()&&1===t.childNodes.length&&1===t.childNodes[0].nodeType&&t.childNodes[0].hasAttribute("v-if")){var n=document.createElement("template");n.setAttribute("v-else",""),n.innerHTML=this.el.innerHTML,n._context=this.vm,t.appendChild(n)}var a=i?i._scope:this._scope;this.unlink=e.$compile(t,i,a,this._frag)}t?Z(this.el,t):q(this.el)},fallback:function(){this.compile(tt(this.el,!0),this.vm)},unbind:function(){this.unlink&&this.unlink()}},Fo={priority:Da,params:["name"],paramWatchers:{name:function(t){Na.remove.call(this),t&&this.insert(t)}},bind:function(){this.anchor=at("v-partial"),Z(this.el,this.anchor),this.insert(this.params.name)},insert:function(t){var e=Lt(this.vm.$options,"partials",t);e&&(this.factory=new ue(this.vm,e),Na.insert.call(this))},unbind:function(){this.frag&&this.frag.destroy()}},Vo={slot:Ro,partial:Fo},Bo=za._postProcess,jo=/(\d{3})(?=\d)/g,Go={orderBy:xi,filterBy:yi,limitBy:vi,json:{read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,Number(e)||2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},capitalize:function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},uppercase:function(t){return t||0===t?t.toString().toUpperCase():""},lowercase:function(t){return t||0===t?t.toString().toLowerCase():""},currency:function(t,e){if(t=parseFloat(t),!isFinite(t)||!t&&0!==t)return"";e=null!=e?e:"$";var i=Math.abs(t).toFixed(2),n=i.slice(0,-3),a=n.length%3,o=a>0?n.slice(0,a)+(n.length>3?",":""):"",r=i.slice(-3),s=0>t?"-":"";return s+e+o+n.slice(a).replace(jo,"$1,")+r},pluralize:function(t){var e=m(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")},debounce:function(t,e){return t?(e||(e=300),b(t,e)):void 0}};bi(mi),mi.version="1.0.18",gn.devtools&&ki&&ki.emit("init",mi),t.exports=mi}).call(e,function(){return this}())},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,i){var n=i(111),a=i(59);t.exports=function(t){return n(a(t))}},function(t,e,i){t.exports=i(2),i(295),i(244),i(316),i(331),i(321),i(304),i(339),i(272),i(268),i(264),i(311),i(326),i(250),i(255),i(261),i(299),i(285),i(315),i(334),i(380),i(381),i(382),i(420),i(73),i(397),i(378),i(183),i(184),i(359),i(366),i(410),i(368),i(424),i(389),i(388),i(387),i(401),i(411),i(232)},function(t,e){"use strict";var i={};t.exports={register:function(t,e){i[t]=e},get:function(t){return i[t]}}},function(t,e,i){function n(t,e){var i=t[1]-t[0],n=e,a=i/n/2;t[0]+=a,t[1]-=a}var a=i(4),o=a.linearMap,r=i(1),s=[0,1],l=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};l.prototype={constructor:l,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&n>=t},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){var t=this._extent.slice();return t},getPixelPrecision:function(t){return a.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&"ordinal"===a.type&&(i=i.slice(),n(i,a.count())),o(t,s,i,e)},coordToData:function(t,e){var i=this._extent,a=this.scale;this.onBand&&"ordinal"===a.type&&(i=i.slice(),n(i,a.count()));var r=o(t,i,s,e);return this.scale.scale(r)},pointToData:function(t,e){},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;nr;r++)e.push([o*r/i+n,o*(r+1)/i+n]);return e},getBandWidth:function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i}},t.exports=l},function(t,e,i){function n(){this.group=new r,this.uid=s.getUID("viewChart")}function a(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i-w&&w>t}function a(t){return t>w||-w>t}function o(t,e,i,n,a){var o=1-a;return o*o*(o*t+3*a*e)+a*a*(a*n+3*o*i)}function r(t,e,i,n,a){var o=1-a;return 3*(((e-t)*o+2*(i-e)*a)*o+(n-i)*a*a)}function s(t,e,i,a,o,r){var s=a+3*(e-i)-t,l=3*(i-2*e+t),u=3*(e-t),c=t-o,h=l*l-3*s*u,d=l*u-9*s*c,p=u*u-3*l*c,f=0;if(n(h)&&n(d))if(n(l))r[0]=0;else{var g=-u/l;g>=0&&1>=g&&(r[f++]=g)}else{var m=d*d-4*h*p;if(n(m)){var v=d/h,g=-l/s+v,y=-v/2;g>=0&&1>=g&&(r[f++]=g),y>=0&&1>=y&&(r[f++]=y)}else if(m>0){var x=b(m),w=h*l+1.5*s*(-d+x),S=h*l+1.5*s*(-d-x);w=0>w?-_(-w,A):_(w,A),S=0>S?-_(-S,A):_(S,A);var g=(-l-(w+S))/(3*s);g>=0&&1>=g&&(r[f++]=g)}else{var T=(2*h*l-3*s*d)/(2*b(h*h*h)),I=Math.acos(T)/3,L=b(h),C=Math.cos(I),g=(-l-2*L*C)/(3*s),y=(-l+L*(C+M*Math.sin(I)))/(3*s),D=(-l+L*(C-M*Math.sin(I)))/(3*s);g>=0&&1>=g&&(r[f++]=g),y>=0&&1>=y&&(r[f++]=y),D>=0&&1>=D&&(r[f++]=D)}}return f}function l(t,e,i,o,r){var s=6*i-12*e+6*t,l=9*e+3*o-3*t-9*i,u=3*e-3*t,c=0;if(n(l)){if(a(s)){var h=-u/s;h>=0&&1>=h&&(r[c++]=h)}}else{var d=s*s-4*l*u;if(n(d))r[0]=-s/(2*l);else if(d>0){var p=b(d),h=(-s+p)/(2*l),f=(-s-p)/(2*l);h>=0&&1>=h&&(r[c++]=h),f>=0&&1>=f&&(r[c++]=f)}}return c}function u(t,e,i,n,a,o){var r=(e-t)*a+t,s=(i-e)*a+e,l=(n-i)*a+i,u=(s-r)*a+r,c=(l-s)*a+s,h=(c-u)*a+u;o[0]=t,o[1]=r,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=n}function c(t,e,i,n,a,r,s,l,u,c,h){var d,p,f,g,m,v=.005,y=1/0;T[0]=u,T[1]=c;for(var _=0;1>_;_+=.05)I[0]=o(t,i,a,s,_),I[1]=o(e,n,r,l,_),g=x(T,I),y>g&&(d=_,y=g);y=1/0;for(var w=0;32>w&&!(S>v);w++)p=d-v,f=d+v,I[0]=o(t,i,a,s,p),I[1]=o(e,n,r,l,p),g=x(I,T),p>=0&&y>g?(d=p,y=g):(L[0]=o(t,i,a,s,f),L[1]=o(e,n,r,l,f),m=x(L,T),1>=f&&y>m?(d=f,y=m):v*=.5);return h&&(h[0]=o(t,i,a,s,d),h[1]=o(e,n,r,l,d)),b(y)}function h(t,e,i,n){var a=1-n;return a*(a*t+2*n*e)+n*n*i}function d(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function p(t,e,i,o,r){var s=t-2*e+i,l=2*(e-t),u=t-o,c=0;if(n(s)){if(a(l)){var h=-u/l;h>=0&&1>=h&&(r[c++]=h)}}else{var d=l*l-4*s*u;if(n(d)){var h=-l/(2*s);h>=0&&1>=h&&(r[c++]=h)}else if(d>0){var p=b(d),h=(-l+p)/(2*s),f=(-l-p)/(2*s);h>=0&&1>=h&&(r[c++]=h),f>=0&&1>=f&&(r[c++]=f)}}return c}function f(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function g(t,e,i,n,a){var o=(e-t)*n+t,r=(i-e)*n+e,s=(r-o)*n+o;a[0]=t,a[1]=o,a[2]=s,a[3]=s,a[4]=r,a[5]=i}function m(t,e,i,n,a,o,r,s,l){var u,c=.005,d=1/0;T[0]=r,T[1]=s;for(var p=0;1>p;p+=.05){I[0]=h(t,i,a,p),I[1]=h(e,n,o,p);var f=x(T,I);d>f&&(u=p,d=f)}d=1/0;for(var g=0;32>g&&!(S>c);g++){var m=u-c,v=u+c;I[0]=h(t,i,a,m),I[1]=h(e,n,o,m);var f=x(I,T);if(m>=0&&d>f)u=m,d=f;else{L[0]=h(t,i,a,v),L[1]=h(e,n,o,v);var y=x(L,T);1>=v&&d>y?(u=v,d=y):c*=.5}}return l&&(l[0]=h(t,i,a,u),l[1]=h(e,n,o,u)),b(d)}var v=i(5),y=v.create,x=v.distSquare,_=Math.pow,b=Math.sqrt,w=1e-8,S=1e-4,M=b(3),A=1/3,T=y(),I=y(),L=y();e.cubicAt=o,e.cubicDerivativeAt=r,e.cubicRootAt=s,e.cubicExtrema=l,e.cubicSubdivide=u,e.cubicProjectPoint=c,e.quadraticAt=h,e.quadraticDerivativeAt=d,e.quadraticRootAt=p,e.quadraticExtremum=f,e.quadraticSubdivide=g,e.quadraticProjectPoint=m},function(t,e){"use strict";function i(){return[{id:1,name:"液位仪",code:"1,8,14,21",c:!0,count:0},{id:2,name:"流量计",code:"2,7,10,13",c:!1,count:0},{id:3,name:"雨量计",code:"3,9,6,15",c:!1,count:0},{id:4,name:"SS水质仪",code:"4,16",c:!1,count:0},{id:11,name:"温湿度仪",code:"11,19",c:!1,count:0},{id:12,name:"气象站",code:"12",c:!1,count:0},{id:5,name:"DO水质仪",code:"5,17",c:!1,count:0},{id:18,name:"水质监测站",code:"18",c:!1,count:0},{id:20,name:"BKS水质仪",code:"20",c:!1,count:0}]}function n(t){switch(t){case 1:case 8:case 14:case 21:return"液位仪";case 2:case 7:case 10:case 13:return"流量计";case 3:case 6:case 9:case 15:return"雨量计";case 4:case 16:return"SS水质仪";case 11:case 19:return"温湿度仪";case 12:return"气象站";case 5:case 17:return"DO水质仪";case 18:return"水质监测站";case 20:return"BKS水质仪";default:return""}}function a(t){switch(t){case 1:case 8:case 14:case 21:return 1;case 2:case 7:case 10:case 13:return 2;case 3:case 6:case 9:case 15:return 3;case 4:case 16:return 4;case 11:case 19:return 11;case 18:return 18;case 20:return 20;case 12:return 12;case 5:case 17:return 5;default:return 0}}function o(){return[{id:1,name:"数据时间从新到旧",title:"数据时间",value:"ts",asc:1,asc_value:1,c:!0},{id:2,name:"剩余电量从低到高",title:"剩余电量",value:"p",asc:1,asc_value:1,c:!1},{id:4,name:"设备编号从小到大",title:"设备编号",value:"eid",asc:1,asc_value:1,c:!1},{id:5,name:"安装点名称",title:"安装点",value:"py",asc:1,asc_value:1,c:!1}]}function r(){return[{id:1,name:"液位报警",title:"液位报警",value:"la",asc:1,c:!1},{id:2,name:"电压报警",title:"电压报警",value:"va",asc:1,c:!1}]}function s(t){switch(t){case 1:case 8:case 14:case 21:return"l";case 2:case 7:case 10:case 13:return"f";case 3:case 6:case 9:case 15:case 12:return"r";case 4:case 16:return"s";case 5:case 17:return"d";case 11:case 19:return"t";case 18:return"st";case 20:return"bks";default:return"0"}}Object.defineProperty(e,"__esModule",{value:!0}),e.EquipType=i,e.GetEquipTypeName=n,e.GetTypeByCode=a,e.SortType=o,e.AlarmType=r,e.GetEquipIconName=s},function(t,e,i){"use strict";function n(t){for(var e=0;e=0&&a(t)?function(t,e,i,n){return d.isDataItemOption(t)&&(x.hasItemOption=!0),n===y?i:g(f(t),v[n])}:function(t,e,i,n){var a=f(t),o=g(a&&a[n],v[n]);d.isDataItemOption(t)&&(x.hasItemOption=!0);var r=s&&s.categoryAxesModels;return r&&r[e]&&"string"==typeof o&&(b[e]=b[e]||r[e].getCategories(),o=h.indexOf(b[e],o),0>o&&!isNaN(o)&&(o=+o)),o};return x.hasItemOption=!1,x.initData(t,_,w),x}function r(t){return"category"!==t&&"time"!==t}function s(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function l(t,e){var i,n=[],a=t&&t.dimensions[t.categoryIndex];if(a&&(i=t.categoryAxesModels[a.name]),i){var o=i.getCategories();if(o){var r=e.length;if(h.isArray(e[0])&&e[0].length>1){n=[];for(var s=0;r>s;s++)n[s]=o[e[s][t.categoryIndex||0]]}else n=o.slice(0)}}return n}var u=i(13),c=i(25),h=i(1),d=i(8),p=i(31),f=d.getDataItemValue,g=d.converDataValue,m={cartesian2d:function(t,e,i){var n=h.map(["xAxis","yAxis"],function(t){return i.queryComponents({mainType:t,index:e.get(t+"Index"),id:e.get(t+"Id")})[0]}),a=n[0],o=n[1];if(__DEV__){if(!a)throw new Error('xAxis "'+h.retrieve(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+h.retrieve(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}var l=a.get("type"),u=o.get("type"),d=[{name:"x",type:s(l),stackable:r(l)},{name:"y",type:s(u),stackable:r(u)}],p="category"===l,f="category"===u;c(d,t,{defaultNames:["x","y","z"]});var g={};return p&&(g.x=a),f&&(g.y=o),{dimensions:d,categoryIndex:p?0:f?1:-1,categoryAxesModels:g}},singleAxis:function(t,e,i){var n=i.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];if(__DEV__&&!n)throw new Error("singleAxis should be specified.");var a=n.get("type"),o="category"===a,l=[{name:"single",type:s(a),stackable:r(a)}];c(l,t);var u={};return o&&(u.single=n),{dimensions:l,categoryIndex:o?0:-1,categoryAxesModels:u}},polar:function(t,e,i){var n=i.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0],a=n.findAxisModel("angleAxis"),o=n.findAxisModel("radiusAxis");if(__DEV__){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}var l=o.get("type"),u=a.get("type"),h=[{name:"radius",type:s(l),stackable:r(l)},{name:"angle",type:s(u),stackable:r(u)}],d="category"===u,p="category"===l;c(h,t,{defaultNames:["radius","angle","value"]});var f={};return p&&(f.radius=o),d&&(f.angle=a),{dimensions:h,categoryIndex:d?1:p?0:-1,categoryAxesModels:f}},geo:function(t,e,i){return{dimensions:c([{name:"lng"},{name:"lat"}],t,{defaultNames:["lng","lat","value"]})}}};t.exports=o},function(t,e,i){function n(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function a(t,e,i,n){var a,o,r=p(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return f(r-x/2)?(o=l?"bottom":"top",a="center"):f(r-1.5*x)?(o=l?"top":"bottom",a="center"):(o="middle",a=1.5*x>r&&r>x/2?l?"left":"right":l?"right":"left"),{rotation:r,textAlign:a,textVerticalAlign:o}}function o(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function r(t,e){var i=t.get("axisLabel.showMinLabel"),n=t.get("axisLabel.showMaxLabel"),a=e[0],o=e[1],r=e[e.length-1],l=e[e.length-2];i===!1?a.ignore=!0:null!=t.getMin()&&s(a,o)&&(i?o.ignore=!0:a.ignore=!0),n===!1?r.ignore=!0:null!=t.getMax()&&s(l,r)&&(n?l.ignore=!0:r.ignore=!0)}function s(t,e,i){var n=t&&t.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(n&&a){var o=m.identity([]);return m.rotate(o,o,-t.rotation),n.applyTransform(m.mul([],o,t.getLocalTransform())),a.applyTransform(m.mul([],o,e.getLocalTransform())),n.intersect(a)}}var l=i(1),u=i(7),c=i(3),h=i(12),d=i(4),p=d.remRadian,f=d.isRadianAroundZero,g=i(5),m=i(21),v=g.applyTransform,y=l.retrieve,x=Math.PI,_=function(t,e){this.opt=e,this.axisModel=t,l.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var i=new c.Group({position:e.position.slice(),rotation:e.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};_.prototype={constructor:_,hasBuilder:function(t){return!!b[t]},add:function(t){b[t].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,a=[i[0],0],o=[i[1],0];n&&(v(a,a,n),v(o,o,n)),this.group.add(new c.Line(c.subPixelOptimizeLine({anid:"line",shape:{x1:a[0],y1:a[1],x2:o[0],y2:o[1]},style:l.extend({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel,e=t.axis;if(t.get("axisTick.show")&&!e.scale.isBlank())for(var i=t.getModel("axisTick"),n=this.opt,a=i.getModel("lineStyle"),o=i.get("length"),r=M(i,n.labelInterval),s=e.getTicksCoords(i.get("alignWithLabel")),u=e.scale.getTicks(),h=[],d=[],p=this._transform,f=0;ff[1]?-1:1,m=["start"===s?f[0]-g*p:"end"===s?f[1]+g*p:(f[0]+f[1])/2,"middle"===s?t.labelOffset+h*p:0],v=e.get("nameRotate");null!=v&&(v=v*x/180);var _;"middle"===s?r=w(t.rotation,null!=v?v:t.rotation,h):(r=a(t,s,v||0,f),_=t.axisNameAvailableWidth,null!=_&&(_=Math.abs(_/Math.sin(r.rotation)),!isFinite(_)&&(_=null)));var b=d.getFont(),S=e.get("nameTruncate",!0)||{},M=S.ellipsis,A=y(t.nameTruncateMaxWidth,S.maxWidth,_),T=null!=M&&null!=A?u.truncateText(i,A,b,M,{minChar:2,placeholder:S.placeholder}):i,I=e.get("tooltip",!0),L=e.mainType,C={componentType:L,name:i,$vars:["name"]};C[L+"Index"]=e.componentIndex;var D=new c.Text({anid:"name",__fullText:i,__truncatedText:T,style:{text:T,textFont:b,fill:d.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:r.textAlign,textVerticalAlign:r.textVerticalAlign},position:m,rotation:r.rotation,silent:o(e),z2:1,tooltip:I&&I.show?l.extend({content:i,formatter:function(){return i},formatterParams:C},I):null});e.get("triggerEvent")&&(D.eventData=n(e),D.eventData.targetType="axisName",D.eventData.name=i),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},w=_.innerTextLayout=function(t,e,i){var n,a,o=p(e-t);return f(o)?(a=i>0?"top":"bottom",n="center"):f(o-x)?(a=i>0?"bottom":"top",n="center"):(a="middle",n=o>0&&x>o?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:a}},S=_.ifIgnoreOnTick=function(t,e,i){var n,a=t.scale;return"ordinal"===a.type&&("function"==typeof i?(n=a.getTicks()[e],!i(n,a.getLabel(n))):e%(i+1))},M=_.getInterval=function(t,e){var i=t.get("interval");return null!=i&&"auto"!=i||(i=e),i};t.exports=_},function(t,e,i){function n(t,e,i,n,s,l){var u=r.getAxisPointerClass(t.axisPointerClass);if(u){var c=o.getAxisPointerModel(e);c?(t._axisPointer||(t._axisPointer=new u)).render(e,c,n,l):a(t,n)}}function a(t,e,i){var n=t._axisPointer;n&&n.dispose(e,i),t._axisPointer=null}var o=i(84),r=i(2).extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(t,e,i,a){this.axisPointerClass&&o.fixValue(t),r.superApply(this,"render",arguments),n(this,t,e,i,a,!0)},updateAxisPointer:function(t,e,i,a,o){n(this,t,e,i,a,!1)},remove:function(t,e){var i=this._axisPointer;i&&i.remove(e),r.superApply(this,"remove",arguments)},dispose:function(t,e){a(this,e),r.superApply(this,"dispose",arguments)}}),s=[];r.registerAxisPointerClass=function(t,e){if(__DEV__&&s[t])throw new Error("axisPointer "+t+" exists");s[t]=e},r.getAxisPointerClass=function(t){return t&&s[t]},t.exports=r},function(t,e,i){function n(t){var e=t.pieceList;t.hasSpecialVisual=!1,g.each(e,function(e,i){e.originIndex=i,null!=e.visual&&(t.hasSpecialVisual=!0)})}function a(t){var e=t.categories,i=t.visual,n=t.categoryMap={};if(y(e,function(t,e){n[t]=e}),!g.isArray(i)){var a=[];g.isObject(i)?y(i,function(t,e){var i=n[e];a[null!=i?i:_]=t}):a[_]=i,i=p(t,a)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function o(t,e){var i=t.visual,n=[];g.isObject(i)?y(i,function(t){n.push(t)}):null!=i&&n.push(i);var a={color:1,symbol:1};e||1!==n.length||a.hasOwnProperty(t.type)||(n[1]=n[0]),p(t,n)}function r(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:h([0,1])}}function s(t){var e=this.option.visual;return e[Math.round(v(t,[0,1],[0,e.length-1],!0))]||{}}function l(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function u(t){var e=this.option.visual;return e[this.option.loop&&t!==_?t%e.length:t]}function c(){return this.option.visual[0]}function h(t){return{linear:function(e){return v(e,t,this.option.visual,!0)},category:u,piecewise:function(e,i){var n=d.call(this,i);return null==n&&(n=v(e,t,this.option.visual,!0)),n},fixed:c}}function d(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=b.findPieceIndex(t,i),a=i[n];if(a&&a.visual)return a.visual[this.type]}}function p(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=g.map(e,function(t){return m.parse(t)})),e}function f(t,e,i){return t?i>=e:i>e}var g=i(1),m=i(33),v=i(4).linearMap,y=g.each,x=g.isObject,_=-1,b=function(t){var e=t.mappingMethod,i=t.type,r=this.option=g.clone(t);this.type=i,this.mappingMethod=e,this._normalizeData=S[e];var s=w[i];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._doMap=s._doMap[e],"piecewise"===e?(o(r),n(r)):"category"===e?r.categories?a(r):o(r,!0):(g.assert("linear"!==e||r.dataExtent),o(r))};b.prototype={constructor:b,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return g.bind(this._normalizeData,this)}};var w=b.visualHandlers={color:{applyVisual:l("color"),getColorMapper:function(){var t=this.option;return g.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),u.call(this,t)}:function(e,i,n){var a=!!n;return!i&&(e=this._normalizeData(e)),n=m.fastMapToColor(e,t.parsedVisual,n),a?n:m.stringify(n,"rgba")},this)},_doMap:{linear:function(t){return m.stringify(m.fastMapToColor(t,this.option.parsedVisual),"rgba")},category:u,piecewise:function(t,e){var i=d.call(this,e);return null==i&&(i=m.stringify(m.fastMapToColor(t,this.option.parsedVisual),"rgba")),i},fixed:c}},colorHue:r(function(t,e){return m.modifyHSL(t,e)}),colorSaturation:r(function(t,e){return m.modifyHSL(t,null,e)}),colorLightness:r(function(t,e){return m.modifyHSL(t,null,null,e)}),colorAlpha:r(function(t,e){return m.modifyAlpha(t,e)}),opacity:{applyVisual:l("opacity"),_doMap:h([0,1])},symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(g.isString(n))i("symbol",n);else if(x(n))for(var a in n)n.hasOwnProperty(a)&&i(a,n[a])},_doMap:{linear:s,category:u,piecewise:function(t,e){var i=d.call(this,e);return null==i&&(i=s.call(this,t)),i},fixed:c}},symbolSize:{applyVisual:l("symbolSize"),_doMap:h([0,1])}},S={linear:function(t){return v(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=b.findPieceIndex(t,e,!0);return null!=i?v(i,[0,e.length-1],[0,1],!0):void 0},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?_:e},fixed:g.noop};b.listVisualTypes=function(){var t=[];return g.each(w,function(e,i){t.push(i)}),t},b.addVisualHandler=function(t,e){w[t]=e},b.isValidType=function(t){return w.hasOwnProperty(t)},b.eachVisual=function(t,e,i){g.isObject(t)?g.each(t,e,i):e.call(i,t)},b.mapVisual=function(t,e,i){var n,a=g.isArray(t)?[]:g.isObject(t)?{}:(n=!0,null);return b.eachVisual(t,function(t,o){var r=e.call(i,t,o);n?a=r:a[o]=r}),a},b.retrieveVisuals=function(t){var e,i={};return t&&y(w,function(n,a){t.hasOwnProperty(a)&&(i[a]=t[a],e=!0)}),e?i:null},b.prepareVisualTypes=function(t){if(x(t)){var e=[];y(t,function(t,i){e.push(i)}),t=e}else{if(!g.isArray(t))return[];t=t.slice()}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},b.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},b.findPieceIndex=function(t,e,i){function n(e,i){var n=Math.abs(e-t); o>n&&(o=n,a=i)}for(var a,o=1/0,r=0,s=e.length;s>r;r++){var l=e[r].value;if(null!=l){if(l===t||"string"==typeof l&&l===t+"")return r;i&&n(l,r)}}for(var r=0,s=e.length;s>r;r++){var u=e[r],c=u.interval,h=u.close;if(c){if(c[0]===-(1/0)){if(f(h[1],t,c[1]))return r}else if(c[1]===1/0){if(f(h[0],c[0],t))return r}else if(f(h[0],c[0],t)&&f(h[1],t,c[1]))return r;i&&n(c[0],r),i&&n(c[1],r)}}return i?t===1/0?e.length-1:t===-(1/0)?0:a:void 0},t.exports=b},function(t,e){var i=Array.prototype.slice,n=function(){this._$handlers={}};n.prototype={constructor:n,one:function(t,e,i){var n=this._$handlers;if(!e||!t)return this;n[t]||(n[t]=[]);for(var a=0;aa;a++)i[t][a].h!=e&&n.push(i[t][a]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},trigger:function(t){if(this._$handlers[t]){var e=arguments,n=e.length;n>3&&(e=i.call(e,1));for(var a=this._$handlers[t],o=a.length,r=0;o>r;){switch(n){case 1:a[r].h.call(a[r].ctx);break;case 2:a[r].h.call(a[r].ctx,e[1]);break;case 3:a[r].h.call(a[r].ctx,e[1],e[2]);break;default:a[r].h.apply(a[r].ctx,e)}a[r].one?(a.splice(r,1),o--):r++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var e=arguments,n=e.length;n>4&&(e=i.call(e,1,e.length-1));for(var a=e[e.length-1],o=this._$handlers[t],r=o.length,s=0;r>s;){switch(n){case 1:o[s].h.call(a);break;case 2:o[s].h.call(a,e[1]);break;case 3:o[s].h.call(a,e[1],e[2]);break;default:o[s].h.apply(a,e)}o[s].one?(o.splice(s,1),r--):s++}}return this}};var a=n;t.exports=a},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){return/^\d+[.]?\d*$/.test(e)||$(t).val(/^\d+[.]?\d*/.exec($(t).val())),!1}function o(t,e){return/^\d+$/.test(e)||$(t).val(/^\d+/.exec($(t).val())),!1}function r(t){var e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(e);return null!=i?unescape(i[2]):null}function s(t){return Array.isArray(t)&&0===t.length||Object.prototype.isPrototypeOf(t)&&0===(0,d["default"])(t).length}function l(t){var e=document.cookie.match("\\b"+t+"=([^;]*)\\b");return e?e[1]:""}function u(t){var e=t+"=null";document.cookie=e}function c(){return l("_xsrf")}Object.defineProperty(e,"__esModule",{value:!0});var h=i(103),d=n(h);e.ValidateFloat=a,e.ValidateInt=o,e.getUrlParam=r,e.isEmpty=s,e.getCookie=l,e.delCookie=u,e.getXsrf=c},,function(t,e,i){var n=i(1),a={retrieveTargetInfo:function(t,e){if(t&&("treemapZoomToNode"===t.type||"treemapRootToNode"===t.type)){var i=e.getData().tree.root,n=t.targetNode;if(n&&i.contains(n))return{node:n};var a=t.targetNodeId;if(null!=a&&(n=i.getNodeById(a)))return{node:n}}},getPathToRoot:function(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()},aboveViewRoot:function(t,e){var i=a.getPathToRoot(t);return n.indexOf(i,e)>=0},wrapTreePathInfo:function(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i}};t.exports=a},function(t,e,i){function n(t){return a.isObject(t)&&null!=t.value?t.value:t}var a=i(1),o=i(20);t.exports={getFormattedLabels:function(){return o.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))},getCategories:function(){return"category"===this.get("type")&&a.map(this.get("data"),n)},getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&!a.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&!a.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null!=t.rangeStart||null!=t.rangeEnd?!1:!t.scale},getCoordSysModel:a.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}}},function(t,e){var i={},n="\x00__throttleOriginMethod",a="\x00__throttleRate",o="\x00__throttleType";i.throttle=function(t,e,i){function n(){c=(new Date).getTime(),h=null,t.apply(r,s||[])}var a,o,r,s,l,u=0,c=0,h=null;e=e||0;var d=function(){a=(new Date).getTime(),r=this,s=arguments;var t=l||e,d=l||i;l=null,o=a-(d?u:c)-t,clearTimeout(h),d?h=setTimeout(n,t):o>=0?n():h=setTimeout(n,-o),u=a};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){l=t},d},i.createOrUpdate=function(t,e,r,s){var l=t[e];if(l){var u=l[n]||l,c=l[o],h=l[a];if(h!==r||c!==s){if(null==r||!s)return t[e]=u;l=t[e]=i.throttle(u,r,"debounce"===s),l[n]=u,l[o]=s,l[a]=r}return l}},i.clear=function(t,e){var i=t[e];i&&i[n]&&(t[e]=i[n])},t.exports=i},function(t,e){t.exports=function(t,e,i,n,a){n.eachRawSeriesByType(t,function(t){var a=t.getData(),o=t.get("symbol")||e,r=t.get("symbolSize");a.setVisual({legendSymbol:i||o,symbol:o,symbolSize:r}),n.isSeriesFiltered(t)||("function"==typeof r&&a.each(function(e){var i=t.getRawValue(e),n=t.getDataParams(e);a.setItemVisual(e,"symbolSize",r(i,n))}),a.each(function(t){var e=a.getItemModel(t),i=e.getShallow("symbol",!0),n=e.getShallow("symbolSize",!0);null!=i&&a.setItemVisual(t,"symbol",i),null!=n&&a.setItemVisual(t,"symbolSize",n)}))})}},function(t,e,i){var n=i(43),a=i(5),o=i(140),r=i(10),s=i(94),l=s.devicePixelRatio,u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],h=[],d=[],p=[],f=Math.min,g=Math.max,m=Math.cos,v=Math.sin,y=Math.sqrt,x=Math.abs,_="undefined"!=typeof Float32Array,b=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};b.prototype={constructor:b,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=x(1/l/t)||0,this._uy=x(1/l/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(u.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=x(t-this._xi)>this._ux||x(e-this._yi)>this._uy||this._len<5;return this.addData(u.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,a,o){return this.addData(u.C,t,e,i,n,a,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,a,o):this._ctx.bezierCurveTo(t,e,i,n,a,o)),this._xi=a,this._yi=o,this},quadraticCurveTo:function(t,e,i,n){return this.addData(u.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,a,o){return this.addData(u.A,t,e,i,i,n,a-n,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=m(a)*i+t,this._yi=v(a)*i+t,this},arcTo:function(t,e,i,n,a){return this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(u.R,t,e,i,n),this},closePath:function(){this.addData(u.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ii;i++)this.data[i]=t[i];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;e>a;a++)i+=t[a].len();_&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;e>a;a++)for(var o=t[a].data,r=0;re.length&&(this._expandData(),e=this.data);for(var i=0;io&&(o=a+o),o%=a,p-=o*c,m-=o*h;c>0&&t>=p||0>c&&p>=t||0==c&&(h>0&&e>=m||0>h&&m>=e);)n=this._dashIdx,i=r[n],p+=c*i,m+=h*i,this._dashIdx=(n+1)%v,c>0&&l>p||0>c&&p>l||h>0&&u>m||0>h&&m>u||s[n%2?"moveTo":"lineTo"](c>=0?f(p,t):g(p,t),h>=0?f(m,e):g(m,e));c=p-t,h=m-e,this._dashOffset=-y(c*c+h*h)},_dashedBezierTo:function(t,e,i,a,o,r){var s,l,u,c,h,d=this._dashSum,p=this._dashOffset,f=this._lineDash,g=this._ctx,m=this._xi,v=this._yi,x=n.cubicAt,_=0,b=this._dashIdx,w=f.length,S=0;for(0>p&&(p=d+p),p%=d,s=0;1>s;s+=.1)l=x(m,t,i,o,s+.1)-x(m,t,i,o,s),u=x(v,e,a,r,s+.1)-x(v,e,a,r,s),_+=y(l*l+u*u);for(;w>b&&(S+=f[b],!(S>p));b++);for(s=(S-p)/_;1>=s;)c=x(m,t,i,o,s),h=x(v,e,a,r,s),b%2?g.moveTo(c,h):g.lineTo(c,h),s+=f[b]/_,b=(b+1)%w;b%2!==0&&g.lineTo(o,r),l=o-c,u=r-h,this._dashOffset=-y(l*l+u*u)},_dashedQuadraticTo:function(t,e,i,n){var a=i,o=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,a,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,_&&(this.data=new Float32Array(t)))},getBoundingRect:function(){c[0]=c[1]=d[0]=d[1]=Number.MAX_VALUE,h[0]=h[1]=p[0]=p[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,s=0,l=0;ld;){var p=s[d++];switch(1==d&&(n=s[d],a=s[d+1],e=n,i=a),p){case u.M:e=n=s[d++],i=a=s[d++],t.moveTo(n,a);break;case u.L:o=s[d++],r=s[d++],(x(o-n)>l||x(r-a)>c||d===h-1)&&(t.lineTo(o,r),n=o,a=r);break;case u.C:t.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),n=s[d-2],a=s[d-1];break;case u.Q:t.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),n=s[d-2],a=s[d-1];break;case u.A:var f=s[d++],g=s[d++],y=s[d++],_=s[d++],b=s[d++],w=s[d++],S=s[d++],M=s[d++],A=y>_?y:_,T=y>_?1:y/_,I=y>_?_/y:1,L=Math.abs(y-_)>.001,C=b+w;L?(t.translate(f,g),t.rotate(S),t.scale(T,I),t.arc(0,0,A,b,C,1-M),t.scale(1/T,1/I),t.rotate(-S),t.translate(-f,-g)):t.arc(f,g,A,b,C,1-M),1==d&&(e=m(b)*y+f,i=v(b)*_+g),n=m(C)*y+f,a=v(C)*_+g;break;case u.R:e=n=s[d],i=a=s[d+1],t.rect(s[d++],s[d++],s[d++],s[d++]);break;case u.Z:t.closePath(),n=e,a=i}}}},b.CMD=u;var w=b;t.exports=w},function(t,e,i){function n(t){a.call(this,t)}var a=i(95),o=i(10),r=i(1),s=i(144);n.prototype={constructor:n,type:"image",brush:function(t,e){var i=this.style,n=i.image;i.bind(t,this,e);var a=this._image=s.createOrUpdateImage(n,this._image,this,this.onload);if(a&&s.isImageReady(a)){var o=i.x||0,r=i.y||0,l=i.width,u=i.height,c=a.width/a.height;if(null==l&&null!=u?l=u*c:null==u&&null!=l?u=l/c:null==l&&null==u&&(l=a.width,u=a.height),this.setTransform(t),i.sWidth&&i.sHeight){var h=i.sx||0,d=i.sy||0;t.drawImage(a,h,d,i.sWidth,i.sHeight,o,r,l,u)}else if(i.sx&&i.sy){var h=i.sx,d=i.sy,p=l-h,f=u-d;t.drawImage(a,h,d,p,f,o,r,l,u)}else t.drawImage(a,o,r,l,u);this.restoreTransform(t),null!=i.text&&this.drawRectText(t,this.getBoundingRect())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new o(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},r.inherits(n,a);var l=n;t.exports=l},function(t,e,i){var n=i(95),a=i(1),o=i(32),r=i(97),s=function(t){n.call(this,t)};s.prototype={constructor:s,type:"text",brush:function(t,e){var i=this.style;this.__dirty&&r.normalizeTextStyle(i,!0),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;null!=n&&(n+=""),i.bind(t,this,e),r.needDrawText(n,i)&&(this.setTransform(t),r.renderText(this,t,n,i),this.restoreTransform(t))},getBoundingRect:function(){var t=this.style;if(this.__dirty&&r.normalizeTextStyle(t,!0),!this._rect){var e=t.text;null!=e?e+="":e="";var i=o.getBoundingRect(t.text+"",t.font,t.textAlign,t.textVerticalAlign,t.textPadding,t.rich);if(i.x+=t.x||0,i.y+=t.y||0,r.getStroke(t.textStroke,t.textStrokeWidth)){var n=t.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},a.inherits(s,n);var l=s;t.exports=l},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(29),a=i(23),o=i(100),r="prototype",s=function(t,e,i){var l,u,c,h=t&s.F,d=t&s.G,p=t&s.S,f=t&s.P,g=t&s.B,m=t&s.W,v=d?a:a[e]||(a[e]={}),y=d?n:p?n[e]:(n[e]||{})[r];d&&(i=e);for(l in i)u=!h&&y&&l in y,u&&l in v||(c=u?y[l]:i[l],v[l]=d&&"function"!=typeof y[l]?i[l]:g&&u?o(c,n):m&&y[l]==c?function(t){var e=function(e){return this instanceof t?new t(e):t(e)};return e[r]=t[r],e}(c):f&&"function"==typeof c?o(Function.call,c):c,f&&((v[r]||(v[r]={}))[l]=c))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,t.exports=s},function(t,e){},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,i){t.exports=!i(37)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(29),a="__core-js_shared__",o=n[a]||(n[a]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e,i){var n=i(66)("wks"),a=i(67),o=i(29).Symbol;t.exports=function(t){return n[t]||(n[t]=o&&o[t]||(o||a)("Symbol."+t))}},function(t,e,i){"use strict";function n(t,e,i,n,a,o,r,s,l,u,c,h,d,p,f,g,m){var v=Math.abs(s)>=Math.abs(r)?Math.abs(s):Math.abs(r),y=Math.round(5*v);1>y&&(y=3);var x=Math.floor(r);v=Math.abs(c)>=Math.abs(u)?Math.abs(c):Math.abs(u);var _=Math.round(5*v);1>_&&(_=3);var b=(Math.floor(u),Math.round(1*d));return 3>b&&(b=3),{title:{x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0,1]},{type:"inside",realtime:!0,start:0,end:100,xAxisIndex:[0,1]}],legend:{data:["流量(L/s)","流速(m/s)","测量液位(m)","降雨量(mm)"],left:"center",top:25,itemHeight:10,padding:6},grid:[{left:60,right:60,top:80,height:"180"},{left:60,right:60,top:"320",height:"125"}],xAxis:[{type:"category",boundaryGap:!1,splitNumber:5,data:i,axisLine:{onZero:!0,show:!0},gridIndex:1,position:"bottom",splitLine:{show:!1}},{axisLabel:{rotate:0},splitNumber:5,gridIndex:0,type:"category",boundaryGap:!1,axisLine:{onZero:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{gridIndex:1,name:"液位(m)",type:"value",max:b,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,splitLine:{show:!1}},{gridIndex:1,name:"降雨量(mm)",nameLocation:"start",max:a+20,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",inverse:!0,splitLine:{show:!1}},{gridIndex:0,name:"流量(L/s)",max:y,min:x,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}},{gridIndex:0,name:"流速(m/s)",max:b,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}}],series:[]}}function a(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"立方米/秒(L/s)":arguments[9],c=arguments[10],h=arguments[11],d=arguments[12],p=arguments.length<=13||void 0===arguments[13]?"米/秒(m/s)":arguments[13],f=arguments[14],g=arguments[15],m=arguments[16],v=arguments.length<=17||void 0===arguments[17]?"液位(m)":arguments[17],y=arguments[18];arguments[19];pt.data=[],vt.data=[],gt.data=[],yt.data=[],xt.data=[],_t.data=[],bt.data=[],ft.data=[],wt.data=[];var x=F(t);x.legend.data=[],x.series=[],x.color=[];var _=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),b=Math.round(1*_)+1;1>b&&(b=3);var w=Math.floor(s);_=Math.abs(d)>=Math.abs(h)?Math.abs(d):Math.abs(h);var S=Math.round(1*_)+1;S=Math.round(1*_)<1?1:Math.round(1*_)+1;var M=Math.floor(h),A=Math.round(1*m),T=Math.floor(1*g);x.yAxis[0].name=v,x.yAxis[2].name=u,x.yAxis[3].name=p,0==o||void 0==o||null==o?o=10:(o=(parseFloat(o)*at).toFixed(1),1>o&&(o=1)),x.yAxis[1].max=o,x.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),y?(0>T?(x.yAxis[0].min=0-A,x.yAxis[0].max=A,x.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(0-A,A)):(x.yAxis[0].min=T,x.yAxis[0].max=A,x.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(T,A)),0>w||0>M?(x.yAxis[2].max=b,x.yAxis[2].min=0-b,x.yAxis[2].axisLabel.formatter=(0,et.YPrecision)(0-b,b)):(x.yAxis[2].max=b,x.yAxis[2].min=w,x.yAxis[2].axisLabel.formatter=(0,et.YPrecision)(w,b)),0>M||0>w?(x.yAxis[3].max=S,x.yAxis[3].min=0-S,x.yAxis[3].axisLabel.formatter=(0,et.YPrecision)(0-S,S)):(x.yAxis[3].max=S,x.yAxis[3].min=M,x.yAxis[3].axisLabel.formatter=(0,et.YPrecision)(M,S))):(x.yAxis[0].max="dataMax",x.yAxis[0].min="dataMin",x.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3),x.yAxis[2].max="dataMax",x.yAxis[2].min="dataMin",x.yAxis[2].axisLabel.formatter=(0,et.YPrecisionCustom)(3),x.yAxis[3].max="dataMax",x.yAxis[3].min="dataMin",x.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3)),null!=n&&(x.xAxis[0].data=n,x.xAxis[1].data=n),null!=r&&(pt.data=r,pt.name=u,x.series.push(pt),x.legend.data.push(u),x.color.push(nt.get("f"))),null!=c&&(ft.data=c,x.series.push(ft),x.legend.data.push(ft.name),x.color.push(nt.get("v"))),null!=f&&(gt.data=f,gt.name=v,x.series.push(gt),x.legend.data.push(v),x.color.push(nt.get("l"))),null!=a&&(vt.data=a,x.series.push(vt),x.legend.data.push(vt.name),x.color.push(nt.get("r"))),V(t,x)}function o(t,e,i,n,a,o,r,s,l){var u=Math.round(1*r);return 5>u&&(u=5),{title:{text:t,subtext:e,x:"center",align:"right"},color:(0,Q.ColorArray)(),grid:{bottom:80},legend:{data:["液位(m)","降雨量(mm)","预警线","报警线","溢流线","管顶线"],x:"left",bottom:10,selected:{"液位(m)":!0,"降雨量(mm)":!0,"预警线":!1,"报警线":!1,"溢流线":!0,"管顶线":!0}},xAxis:[{type:"category",boundaryGap:!0,splitNumber:500,interval:500,axisLabel:{rotate:0},axisTick:{interval:500},axisLine:{onZero:!1},splitLine:{show:!1},data:i}],yAxis:[{name:"液位(m)",type:"value",max:u,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1}},{name:"降雨量(mm)",nameLocation:"start",max:a+20,min:0,type:"value",inverse:!0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1}}],series:[{name:"测量液位(m)",type:"line",data:o,z:6,symbolSize:0,smooth:!0,lineStyle:{normal:{width:2,color:"#0099cc"}}},{name:"降雨量(mm)",type:"line",barWidth:20,symbolSize:0,data:n,yAxisIndex:1,z:5,itemStyle:{normal:{color:"rgba(68,138,255,0.8)"}},areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(68,138,255,0.5)"},{offset:1,color:"rgba(68,138,255,0.1)"}])}}},{name:"预警线",type:"line",data:s[1],z:3,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:"#ff9400"}}},{name:"报警线",type:"line",data:s[2],z:2,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:"#eb370e"}}},{name:"溢流线",type:"line",data:s[3],z:1,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:"#ea5ceb"}}},{name:"管顶线",type:"line",data:l,z:6,symbolSize:0,smooth:!0,lineStyle:{normal:{width:1,type:"dashed",color:"#829fa9"}}}]}}function r(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"液位(m)":arguments[9],c=arguments[10],h=arguments[11],d=F(t);d.title[0].text=e,d.title[0].subtext=i,d.legend[0].data[0]=u,d.yAxis[0].name=u,d.series[0].name=u,null!=n&&(d.xAxis[0].data=n);var p=Math.round(1*l);3>p&&(p=3),d.yAxis[0].max=p;var f=Math.floor(s);d.yAxis[0].min=f;var g=o+20;g=parseFloat(g.toFixed(0)),d.yAxis[1].max=1*g,null!=r&&(d.series[0].data=r),null!=a&&(d.series[1].data=a),null!=c&&(d.series[2].data=c[0]),null!=c&&(d.series[3].data=c[1]),null!=c&&(d.series[4].data=c[2]),null!=h&&(d.series[5].data=h),V(t,d)}function s(t,e,i,n,a,o,r,s,l,u){var c=Math.round(1*r);5>c&&(c=5);var h=20170012==(0,tt.getUrlParam)("pjid")&&t.indexOf("HC-NL")<0;return("地下水"==u||"溢流口"==u||t.indexOf("溢流口")>=0||t.indexOf("地下水")>=0||"断面"==u||t.indexOf("断面")>=0||h)&&20170012!=(0,tt.getUrlParam)("pjid")?{title:{text:t,subtext:e,x:"left",align:"right"},tooltip:{trigger:"axis"},grid:{top:100,left:60,right:40,bottom:80},toolbox:{show:!0,top:0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["液位(m)","降雨量(mm)"],x:"right",top:45,itemHeight:10,padding:6},dataZoom:[{type:"slider",show:!0,realtime:!0,start:0,end:100}],xAxis:[{type:"category",boundaryGap:!0,axisLabel:{rotate:0},axisLine:{onZero:!1},splitLine:{show:!1},data:i}],yAxis:[{name:"液位(m)",type:"value",max:c,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1}},{name:"降雨量(mm)",nameLocation:"start",max:20,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",inverse:!0,splitLine:{show:!1}}],series:[]}:{title:{text:t,subtext:e,x:"left",align:"right"},tooltip:{trigger:"axis"},grid:{top:100,left:60,right:40,bottom:80},toolbox:{show:!0,top:0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["液位(m)","降雨量(mm)","预警线(m)","报警线(m)","溢流线(m)","管顶线(m)"],x:"right",top:45,itemHeight:10,padding:6},dataZoom:[{type:"slider",show:!0,realtime:!0,start:0,end:100}],xAxis:[{type:"category",boundaryGap:!1,axisLabel:{rotate:0,interval:"auto"},axisLine:{onZero:!1},splitLine:{show:!1},data:i}],yAxis:[{name:"液位(m)",type:"value",max:c,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1}},{name:"降雨量(mm)",nameLocation:"start",max:20,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",inverse:!0,splitLine:{show:!1}}],series:[]}}function l(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"液位(m)":arguments[9],c=arguments[10],h=arguments[11],d=arguments[12],p=arguments[13],f=arguments[14],g=F(t);g.series=[],g.legend.data=[],ot.data.data=[],a.data=[],st.data=[],lt.data=[],ut.data=[],ct.data=[],g.color=[];var m=20170012==(0,tt.getUrlParam)("pjid")&&e.indexOf("HC-NL")<0;if(("地下水"==p||"溢流口"==p||e.indexOf("溢流口")>=0||e.indexOf("地下水")>=0||"断面"==p||e.indexOf("断面")>=0||m)&&20170012!=(0,tt.getUrlParam)("pjid")){g.title[0].text=e,g.title[0].subtext=i,g.legend[0].data[0]=u,g.yAxis[0].name=u;var v=Math.round(1.2*l);5>=v&&(v=5);var y=.8*Math.floor(s);0==o||void 0==o||null==o?o=10:(o=(1.2*parseFloat(o)).toFixed(1),1>o&&(o=1)),g.yAxis[1].max=o,g.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),null!=n&&(g.xAxis[0].data=n),null!=r&&(ot.data=r,ot.name=u,g.series.push(ot),g.legend.data.push(u),g.color.push(nt.get("l"))),d?(g.yAxis[0].max=v,g.yAxis[0].min=y,g.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(y,v),null!=a&&(rt.data=a,g.series.push(rt),g.legend.data.push(rt.name),g.color.push(nt.get("r")))):(null!=a&&(rt.data=a,g.series.push(rt),g.legend.data.push(rt.name),g.color.push(nt.get("r"))),g.yAxis[0].min="dataMin",g.yAxis[0].max="dataMax",g.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3)),V(t,g)}else{g.title[0].text=e,g.title[0].subtext=i,g.legend[0].data[0]=u,g.yAxis[0].name=u;var v=Math.round(1.2*l);5>=v&&(v=5);var y=.8*Math.floor(s);0==o||void 0==o||null==o?o=10:(o=(1.2*parseFloat(o)).toFixed(1),1>o&&(o=1)),g.yAxis[1].max=o,g.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),null!=n&&(g.xAxis[0].data=n),null!=r&&(ot.data=r,ot.name=u,g.series.push(ot),g.legend.data.push(u),g.color.push(nt.get("l"))),d?(null!=c&&(c.length>=1&&(st.data=c[0],st.name="预警线("+f+")",g.series.push(st),g.legend.data.push(st.name),g.color.push(nt.get("l_r2"))),c.length>=2&&(lt.data=c[1],lt.name="报警线("+f+")",g.series.push(lt),g.legend.data.push(lt.name),g.color.push(nt.get("l_r3"))),c.length>=3&&(ut.data=c[2],ut.name="溢流线("+f+")",g.series.push(ut),g.legend.data.push(ut.name),g.color.push(nt.get("l_r4")))),null!=h&&(ct.data=h,ct.name="管顶线("+f+")",g.series.push(ct),g.legend.data.push(ct.name),g.color.push(nt.get("l_node"))),null!=a&&(rt.data=a,g.series.push(rt),g.legend.data.push(rt.name),g.color.push(nt.get("r"))),g.yAxis[0].max=v,g.yAxis[0].min=y,g.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(y,v)):(null!=a&&(rt.data=a,g.series.push(rt),g.legend.data.push(rt.name),g.color.push(nt.get("r"))),g.yAxis[0].min="dataMin",g.yAxis[0].max="dataMax",g.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3)),V(t,g)}}function u(t,e,i,n,a,o,r,s,l,u,c,h,d,p,f,g){var m=Math.abs(s)>=Math.abs(r)?Math.abs(s):Math.abs(r),v=Math.round(5*m);1>v&&(v=3);var y=Math.floor(r);m=Math.abs(c)>=Math.abs(u)?Math.abs(c):Math.abs(u);var x=Math.round(5*m);1>x&&(x=3);var _=(Math.floor(u),Math.round(1*d));return 3>_&&(_=3),{color:(0,Q.ColorArray)(),title:{text:t,subtext:e,x:"center"},legend:{data:["流量(L/s)","流速(m/s)","测量液位(m)","降雨量(mm)"],x:"left",bottom:10,left:10},grid:[{left:40,right:40,top:80,height:60},{left:40,right:40,top:200,height:120}],xAxis:[{type:"category",boundaryGap:!0,axisLine:{onZero:!0,show:!0},data:i,position:"bottom",splitLine:{show:!1}},{type:"category",boundaryGap:!0,axisLine:{onZero:!0},data:i,position:"bottom",splitLine:{show:!1},axisLabel:{rotate:0},gridIndex:1}],yAxis:[{gridIndex:0,name:"液位(m)",type:"value",max:_,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1}},{gridIndex:0,name:"降雨量(mm)",type:"value",max:a,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1},interval:5,inverse:!0,nameLocation:"start"},{gridIndex:1,name:"流量(L/s)",type:"value",max:v,min:y,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},nameLocation:"end",splitLine:{show:!1}},{gridIndex:1,name:"流速(m/s)",type:"value",max:_,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},nameLocation:"end",splitLine:{show:!1}}],series:[{name:"流量(L/s)",type:"line",xAxisIndex:1,yAxisIndex:2,symbolSize:0,hoverAnimation:!1,areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(0,153,204,0.5)"},{offset:1,color:"rgba(0,153,204,0.1)"}])}},lineStyle:{normal:{}},nameTextStyle:{fontWeight:"bold"},data:o},{name:"流速(m/s)",type:"line",xAxisIndex:1,yAxisIndex:3,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{}},data:l},{name:"测量液位(m)",type:"line",xAxisIndex:0,yAxisIndex:0,symbolSize:0,z:6,smooth:!0,lineStyle:{normal:{width:1,color:"#0099cc"}},data:h},{name:"降雨量(mm)",xAxisIndex:0,yAxisIndex:1,type:"bar",barWidth:6,data:n,z:5,lineStyle:{normal:{color:"rgba(0,0,0,0.2)"}}},{name:"预警线",xAxisIndex:0,yAxisIndex:0,type:"line",data:p[1],z:3,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:"#ff9400"}}},{name:"报警线",xAxisIndex:0,yAxisIndex:0,type:"line",data:p[2],z:2,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:"#eb370e"}}},{name:"溢流线",xAxisIndex:0,yAxisIndex:0,type:"line",data:p[3],z:1,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:"#ea5ceb"}}},{name:"管顶线",xAxisIndex:0,yAxisIndex:0,type:"line",data:f,z:6,symbolSize:0,smooth:!0,lineStyle:{normal:{width:1,type:"dashed",color:"#829fa9"}}},{name:"流速报警线(m/s)",type:"line",data:g,z:3,xAxisIndex:1,yAxisIndex:3,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:"#eb370e"}}}]}}function c(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"立方米/秒(L/s)":arguments[9],c=arguments[10],h=arguments[11],d=arguments[12],p=arguments.length<=13||void 0===arguments[13]?"米/秒(m/s)":arguments[13],f=arguments[14],g=arguments[15],m=arguments.length<=16||void 0===arguments[16]?"液位(m)":arguments[16],v=arguments[17],y=arguments[18],x=arguments[19],_=F(t);_.title[0].text=e,_.title[0].subtext=i;var b=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),w=Math.round(1*b);1>w&&(w=3);var S=Math.floor(s);b=Math.abs(d)>=Math.abs(h)?Math.abs(d):Math.abs(h);var M=Math.round(1*b);1>M&&(M=1);var A=Math.floor(h),T=Math.round(1*g);3>T&&(T=3),_.yAxis[0].max=T,_.yAxis[0].name=m,o>0?_.yAxis[1].max=o:_.yAxis[1].max=5,_.yAxis[2].max=w,_.yAxis[2].min=S,_.yAxis[2].name=u,_.yAxis[3].max=M,_.yAxis[3].min=A,_.yAxis[3].name=p,null!=n&&(_.xAxis[0].data=n,_.xAxis[1].data=n),null!=a&&(_.series[3].data=a),null!=r&&(_.series[0].data=r),_.series[0].name=u,null!=c&&(_.series[1].data=c),null!=f&&(_.series[2].data=f),null!=v&&(_.series[4].data=v[0],_.series[5].data=v[1],_.series[6].data=v[2]),null!=y&&(_.series[7].data=y),null!=x&&(_.series[8].data=x),V(t,_)}function h(t,e,i,n,a,o,r,s,l,u,c,h,d,p,f,g,m,v){var y=Math.abs(s)>=Math.abs(r)?Math.abs(s):Math.abs(r),x=Math.round(5*y);1>x&&(x=3);var _=Math.floor(r);y=Math.abs(c)>=Math.abs(u)?Math.abs(c):Math.abs(u);var b=Math.round(5*y);1>b&&(b=3);var w=(Math.floor(u),Math.round(1*d));return 3>w&&(w=3),("地下水"==m||"溢流口"==m||t.indexOf("溢流口")>=0||t.indexOf("地下水")>=0||"断面"==m||t.indexOf("断面")>=0)&&20170012!=(0,tt.getUrlParam)("pjid")?t.indexOf("三角堰")>=0?{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0,1]},{type:"inside",realtime:!0,start:0,end:100,xAxisIndex:[0,1]}],legend:{data:["流量(L/s)","测量液位(m)","降雨量(mm)"],left:"center",top:45,itemHeight:10,padding:6},grid:[{left:60,right:60,top:120,height:"180"},{left:60,right:60,top:"360",height:"125"}],xAxis:[{type:"category",boundaryGap:!1,splitNumber:5,data:i,axisLine:{onZero:!0,show:!0},gridIndex:1,position:"bottom",splitLine:{show:!1}},{axisLabel:{rotate:0},splitNumber:5,gridIndex:0,type:"category",boundaryGap:!1,axisLine:{onZero:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{gridIndex:1,name:"液位(m)",type:"value",max:w,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,splitLine:{show:!1}},{gridIndex:1,name:"降雨量(mm)",nameLocation:"start",max:a+20,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",inverse:!0,splitLine:{show:!1}},{gridIndex:0,name:"流量(L/s)",max:x,min:_,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}}],series:[]}:{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0,1]},{type:"inside",realtime:!0,start:0,end:100,xAxisIndex:[0,1]}],legend:{data:["流量(L/s)","流速(m/s)","测量液位(m)","降雨量(mm)"],left:"center",top:45,itemHeight:10,padding:6},grid:[{left:60,right:60,top:120,height:"180"},{left:60,right:60,top:"360",height:"125"}], xAxis:[{type:"category",boundaryGap:!1,splitNumber:5,data:i,axisLine:{onZero:!0,show:!0},gridIndex:1,position:"bottom",splitLine:{show:!1}},{axisLabel:{rotate:0},splitNumber:5,gridIndex:0,type:"category",boundaryGap:!1,axisLine:{onZero:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{gridIndex:1,name:"液位(m)",type:"value",max:w,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,splitLine:{show:!1}},{gridIndex:1,name:"降雨量(mm)",nameLocation:"start",max:a+20,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",inverse:!0,splitLine:{show:!1}},{gridIndex:0,name:"流量(L/s)",max:x,min:_,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}},{gridIndex:0,name:"流速(m/s)",max:w,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}}],series:[]}:t.indexOf("三角堰")>=0?{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0,1]},{type:"inside",realtime:!0,start:0,end:100,xAxisIndex:[0,1]}],legend:{data:["流量(L/s)","流速报警线(m/s)","测量液位(m)","降雨量(mm)","预警线(m)","报警线(m)","溢流线(m)","管顶线(m)"],left:"center",top:45,itemHeight:10,padding:6},grid:[{left:60,right:60,top:120,height:"180"},{left:60,right:60,top:"360",height:"125"}],xAxis:[{type:"category",boundaryGap:!1,splitNumber:5,data:i,axisLine:{onZero:!0,show:!0},gridIndex:1,position:"bottom",splitLine:{show:!1}},{axisLabel:{rotate:0},splitNumber:5,gridIndex:0,type:"category",boundaryGap:!1,axisLine:{onZero:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{gridIndex:1,name:"液位(m)",type:"value",max:w,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,splitLine:{show:!1}},{gridIndex:1,name:"降雨量(mm)",nameLocation:"start",max:a+20,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",inverse:!0,splitLine:{show:!1}},{gridIndex:0,name:"流量(L/s)",max:x,min:_,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}}],series:[]}:"17510170"==v||"17510179"==v||"17510163"==v||"17510154"==v||"17510159"==v||"16510530"==v||"17510196"==v?{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0,1]},{type:"inside",realtime:!0,start:0,end:100,xAxisIndex:[0,1]}],legend:{data:["流量(L/s)","流速(m/s)","流速报警线(m/s)","测量液位(m)","降雨量(mm)","预警线(m)","报警线(m)","管顶线(m)"],left:"center",top:45,itemHeight:10,padding:6},grid:[{left:60,right:60,top:120,height:"180"},{left:60,right:60,top:"360",height:"125"}],xAxis:[{type:"category",boundaryGap:!1,splitNumber:5,data:i,axisLine:{onZero:!0,show:!0},gridIndex:1,position:"bottom",splitLine:{show:!1}},{axisLabel:{rotate:0},splitNumber:5,gridIndex:0,type:"category",boundaryGap:!1,axisLine:{onZero:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{gridIndex:1,name:"液位(m)",type:"value",max:w,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,splitLine:{show:!1}},{gridIndex:1,name:"降雨量(mm)",nameLocation:"start",max:a+20,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",inverse:!0,splitLine:{show:!1}},{gridIndex:0,name:"流量(L/s)",max:x,min:_,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}},{gridIndex:0,name:"流速(m/s)",max:w,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}}],series:[]}:{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0,1]},{type:"inside",realtime:!0,start:0,end:100,xAxisIndex:[0,1]}],legend:{data:["流量(L/s)","流速(m/s)","流速报警线(m/s)","测量液位(m)","降雨量(mm)","预警线(m)","报警线(m)","溢流线(m)","管顶线(m)"],left:"center",top:45,itemHeight:10,padding:6},grid:[{left:60,right:60,top:120,height:"180"},{left:60,right:60,top:"360",height:"125"}],xAxis:[{type:"category",boundaryGap:!1,splitNumber:5,data:i,axisLine:{onZero:!0,show:!0},gridIndex:1,position:"bottom",splitLine:{show:!1}},{axisLabel:{rotate:0},splitNumber:5,gridIndex:0,type:"category",boundaryGap:!1,axisLine:{onZero:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{gridIndex:1,name:"液位(m)",type:"value",max:w,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,splitLine:{show:!1}},{gridIndex:1,name:"降雨量(mm)",nameLocation:"start",max:a+20,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",inverse:!0,splitLine:{show:!1}},{gridIndex:0,name:"流量(L/s)",max:x,min:_,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}},{gridIndex:0,name:"流速(m/s)",max:w,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}}],series:[]}}function d(t,e,i,n,a,o,r,s,l,u,c,h,d,p,f,g,m,v){var y=Math.abs(s)>=Math.abs(r)?Math.abs(s):Math.abs(r),x=Math.round(5*y);1>x&&(x=3);Math.floor(r);y=Math.abs(c)>=Math.abs(u)?Math.abs(c):Math.abs(u);var _=Math.round(5*y);1>_&&(_=3);var b=(Math.floor(u),Math.round(1*d));return 3>b&&(b=3),{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["1","2"],x:"right",top:45,itemHeight:10,padding:6},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0]}],grid:{top:100,left:60,right:60,bottom:80},xAxis:[{type:"category",boundaryGap:!0,axisLine:{onZero:!0,show:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{name:"流量(L/m)",type:"value",max:b,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},inverse:!1,nameLocation:"end",splitNumber:5,splitLine:{show:!1}},{name:"降雨量(mm)",type:"value",nameLocation:"start",max:a+20,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1},splitNumber:5,inverse:!0}],series:[]}}function p(t,e,i,n,a,o,r,s,l,u,c,h,d,p,f,g,m,v){var y=Math.abs(s)>=Math.abs(r)?Math.abs(s):Math.abs(r),x=Math.round(5*y);1>x&&(x=3);Math.floor(r);y=Math.abs(c)>=Math.abs(u)?Math.abs(c):Math.abs(u);var _=Math.round(5*y);1>_&&(_=3);var b=(Math.floor(u),Math.round(1*d));return 3>b&&(b=3),{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["1","2","3","4"],x:"right",top:45,itemHeight:10,padding:6},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0]}],grid:{top:100,left:60,right:60,bottom:80},xAxis:[{type:"category",boundaryGap:!0,axisLine:{onZero:!0,show:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{name:"液位(m)",type:"value",max:b,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},inverse:!1,nameLocation:"end",splitNumber:5,splitLine:{show:!1}},{name:"降雨量(mm)",type:"value",nameLocation:"start",max:a+20,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1},splitNumber:5,inverse:!0}],series:[]}}function f(t,e,i,n,a,o,r,s,l,u,c,h,d,p,f,g,m){var v=Math.abs(s)>=Math.abs(r)?Math.abs(s):Math.abs(r),y=Math.round(5*v);1>y&&(y=3);var x=Math.floor(r);v=Math.abs(c)>=Math.abs(u)?Math.abs(c):Math.abs(u);var _=Math.round(5*v);1>_&&(_=3);var b=(Math.floor(u),Math.round(1*d));return 3>b&&(b=3),{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{show:!1},restore:{},saveAsImage:{}}},dataZoom:[{show:!1,realtime:!0,start:0,end:100,xAxisIndex:[0,1]},{type:"inside",realtime:!0,start:0,end:100,xAxisIndex:[0,1]},{type:"inside",realtime:!0,start:0,end:100,xAxisIndex:[0,1]},{type:"inside",realtime:!0,start:0,end:100,xAxisIndex:[0,1]}],legend:{data:["流量(L/s)","流速(m/s)","测量液位(m)","降雨量(mm)","悬浮物(mg/L)","DO(mg/L)"],left:"center",top:45,itemHeight:10,padding:6},grid:[{left:60,right:60,top:100,height:"100"},{left:60,right:60,top:"250",height:"100"},{left:60,right:60,top:"400",height:"100"},{left:60,right:60,top:"550",height:"100"}],xAxis:[{type:"category",boundaryGap:!1,splitNumber:5,data:i,axisLine:{onZero:!0,show:!0},gridIndex:1,position:"bottom",splitLine:{show:!1}},{axisLabel:{rotate:0},splitNumber:5,gridIndex:0,type:"category",boundaryGap:!1,axisLine:{onZero:!0},data:i,position:"bottom",splitLine:{show:!1}},{type:"category",boundaryGap:!1,splitNumber:5,data:i,axisLine:{onZero:!0,show:!0},gridIndex:2,position:"bottom",splitLine:{show:!1}},{type:"category",boundaryGap:!1,splitNumber:5,data:i,axisLine:{onZero:!0,show:!0},gridIndex:3,position:"bottom",splitLine:{show:!1}}],yAxis:[{gridIndex:1,name:"液位(m)",type:"value",max:b,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,splitLine:{show:!1}},{gridIndex:1,name:"降雨量(mm)",nameLocation:"start",max:a+20,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",inverse:!0,splitLine:{show:!1}},{gridIndex:0,name:"流量(L/s)",max:y,min:x,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}},{gridIndex:0,name:"流速(m/s)",max:b,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}},{gridIndex:2,name:"悬浮物(mg/L)",axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}},{gridIndex:3,name:"DO(mg/L)",axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitNumber:5,type:"value",nameLocation:"end",splitLine:{show:!1}}],series:[]}}function g(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"立方米/秒(L/s)":arguments[9],c=arguments[10],h=arguments[11],d=arguments[12],p=arguments.length<=13||void 0===arguments[13]?"米/秒(m/s)":arguments[13],f=arguments[14],g=arguments[15],m=arguments[16],v=arguments.length<=17||void 0===arguments[17]?"液位(m)":arguments[17],y=arguments[18],x=arguments[19],_=arguments[20],b=arguments[21],w=arguments[22],S=arguments[23],M=arguments[24];pt.data=[],vt.data=[],gt.data=[],yt.data=[],xt.data=[],_t.data=[],bt.data=[],ft.data=[],wt.data=[];var A=F(t);A.legend.data=[],A.series=[],A.title[0].text=e,A.title[0].subtext=i,A.color=[];var T=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),I=Math.round(1*T)+1;1>I&&(I=3);var L=Math.floor(s);T=Math.abs(d)>=Math.abs(h)?Math.abs(d):Math.abs(h);var C=Math.round(1*T)+1;C=Math.round(1*T)<1?1:Math.round(1*T)+1;var D=Math.floor(h),P=Math.round(1*m);3>P&&(P=3);var k=Math.floor(1*g);A.yAxis[0].name=v,A.yAxis[2].name=u,e.indexOf("三角堰")>=0||(A.yAxis[3].name=p),0==o||void 0==o||null==o?o=10:(o=(parseFloat(o)*at).toFixed(1),1>o&&(o=1)),A.yAxis[1].max=o,A.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),b?(0>k?(A.yAxis[0].min=0-P,A.yAxis[0].max=P,A.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(0-P,P)):(A.yAxis[0].min=k,A.yAxis[0].max=P,A.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(k,P)),0>L||0>D?(A.yAxis[2].max=I,A.yAxis[2].min=0-I,A.yAxis[2].axisLabel.formatter=(0,et.YPrecision)(0-I,I)):(A.yAxis[2].max=I,A.yAxis[2].min=L,A.yAxis[2].axisLabel.formatter=(0,et.YPrecision)(L,I)),e.indexOf("三角堰")>=0||(0>D||0>L?(A.yAxis[3].max=C,A.yAxis[3].min=0-C,A.yAxis[3].axisLabel.formatter=(0,et.YPrecision)(0-C,C)):(A.yAxis[3].max=C,A.yAxis[3].min=D,A.yAxis[3].axisLabel.formatter=(0,et.YPrecision)(D,C)))):(A.yAxis[0].max="dataMax",A.yAxis[0].min="dataMin",A.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3),A.yAxis[2].max="dataMax",A.yAxis[2].min="dataMin",e.indexOf("三角堰")>=0||(A.yAxis[3].max="dataMax",A.yAxis[3].min="dataMin"),A.yAxis[2].axisLabel.formatter=(0,et.YPrecisionCustom)(3),A.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3)),null!=n&&(A.xAxis[0].data=n,A.xAxis[1].data=n),null!=r&&(pt.data=r,pt.name=u,A.series.push(pt),A.legend.data.push(u),A.color.push(nt.get("f"))),e.indexOf("三角堰")>=0||null!=c&&(ft.data=c,A.series.push(ft),A.legend.data.push(ft.name),A.color.push(nt.get("v"))),null!=f&&(gt.data=f,gt.name=v,A.series.push(gt),A.legend.data.push(v),A.color.push(nt.get("l"))),null!=a&&(vt.data=a,A.series.push(vt),A.legend.data.push(vt.name),A.color.push(nt.get("r"))),("地下水"==w||"溢流口"==w||e.indexOf("溢流口")>=0||e.indexOf("地下水")>=0||"断面"==w||e.indexOf("断面")>=0)&&20170012!=(0,tt.getUrlParam)("pjid")||(null!=y&&b&&(y.length>=1&&(yt.data=y[0],yt.name="预警线("+S+")",A.series.push(yt),A.legend.data.push(yt.name),A.color.push(nt.get("l_r2"))),y.length>=2&&(xt.data=y[1],xt.name="报警线("+S+")",A.series.push(xt),A.legend.data.push(xt.name),A.color.push(nt.get("l_r3"))),"17510170"==M||"17510179"==M||"17510163"==M||"17510154"==M||"17510159"==M||"16510530"==M||"17510196"==M||y.length>=3&&(_t.data=y[2],_t.name="溢流线("+S+")",A.series.push(_t),A.legend.data.push(_t.name),A.color.push(nt.get("l_r4")))),null!=x&&b&&(bt.data=x,bt.name="管顶线("+S+")",A.series.push(bt),A.legend.data.push(bt.name),A.color.push(nt.get("l_node"))),e.indexOf("三角堰")>=0||null!=_&&b&&(wt.data=_,A.series.push(wt),A.legend.data.push(wt.name),A.color.push(nt.get("v_r")))),V(t,A)}function m(t,e,i,n,a,o,r,s,l){var u=(arguments.length<=9||void 0===arguments[9]?"立方米/秒(L/s)":arguments[9],arguments[10],arguments[11]),c=arguments[12],h=(arguments.length<=13||void 0===arguments[13]?"米/秒(m/s)":arguments[13],arguments[14]),d=arguments[15],p=arguments[16],f=arguments.length<=17||void 0===arguments[17]?"液位(m)":arguments[17],g=arguments[18],m=arguments[19],v=(arguments[20],arguments[21]),y=(arguments[22],arguments[23]);arguments[24];pt.data=[],vt.data=[],gt.data=[],yt.data=[],xt.data=[],_t.data=[],bt.data=[],ft.data=[],wt.data=[];var x=F(t);x.legend.data=[],x.series=[],x.title[0].text=e,x.title[0].subtext=i,x.color=[];var _=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),b=Math.round(1*_)+1;1>b&&(b=3);Math.floor(s);_=Math.abs(c)>=Math.abs(u)?Math.abs(c):Math.abs(u);var w=Math.round(1*_)+1;w=Math.round(1*_)<1?1:Math.round(1*_)+1;var S=(Math.floor(u),Math.round(1*p)),M=Math.floor(1*d);4.5>S&&(S=5),x.yAxis[0].name=f,0==o||void 0==o||null==o?o=10:(o=(parseFloat(o)*at).toFixed(1),1>o&&(o=1)),x.yAxis[1].max=o,x.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),v?0>M?(x.yAxis[0].min=0-S,x.yAxis[0].max=S,x.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(0-S,S)):(x.yAxis[0].min=M,x.yAxis[0].max=S,x.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(M,S)):(x.yAxis[0].max="dataMax",x.yAxis[0].min="dataMin",x.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3),x.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3)),null!=n&&(x.xAxis[0].data=n),null!=h&&(gt.data=h,gt.name=f,x.series.push(gt),x.legend[0].data.push(f),x.color.push(nt.get("l"))),null!=a&&(vt.data=a,x.series.push(vt),x.legend[0].data.push(vt.name),x.color.push(nt.get("r"))),null!=g&&v&&(g.length>=1&&(yt.data=g[0],yt.name="预警线("+y+")",x.series.push(yt),x.legend[0].data.push(yt.name),x.color.push(nt.get("l_r2"))),g.length>=2&&(xt.data=g[1],xt.name="报警线("+y+")",x.series.push(xt),x.legend[0].data.push(xt.name),x.color.push(nt.get("l_r3"))),g.length>=3&&(_t.data=g[2],_t.name="溢流线("+y+")",x.series.push(_t),x.legend[0].data.push(_t.name),x.color.push(nt.get("l_r4"))),null!=m&&v&&(bt.data=m,bt.name="管顶线("+y+")",x.series.push(bt),x.legend[0].data.push(bt.name),x.color.push(nt.get("l_node")))),V(t,x)}function v(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"立方米/秒(L/s)":arguments[9],c=(arguments[10],arguments[11]),h=arguments[12],d=(arguments.length<=13||void 0===arguments[13]?"米/秒(m/s)":arguments[13],arguments[14],arguments[15]),p=arguments[16],f=(arguments.length<=17||void 0===arguments[17]?"液位(m)":arguments[17],arguments[18],arguments[19],arguments[20],arguments[21]);arguments[22],arguments[23],arguments[24];pt.data=[],vt.data=[],gt.data=[],yt.data=[],xt.data=[],_t.data=[],bt.data=[],ft.data=[],wt.data=[];var g=F(t);g.legend.data=[],g.series=[],g.title[0].text=e,g.title[0].subtext=i,g.color=[];var m=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),v=Math.round(1*m)+1;1>v&&(v=3);var y=Math.floor(s);m=Math.abs(h)>=Math.abs(c)?Math.abs(h):Math.abs(c);var x=Math.round(1*m)+1;x=Math.round(1*m)<1?1:Math.round(1*m)+1;var _=Math.floor(c);Math.round(1*p),Math.floor(1*d);g.yAxis[0].name="流量(L/s)",0==o||void 0==o||null==o?o=10:(o=(parseFloat(o)*at).toFixed(1),1>o&&(o=1)),g.yAxis[1].max=o,g.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),f?0>y||0>_?(g.yAxis[0].max=v,g.yAxis[0].min=0-v,g.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(0-v,v)):(g.yAxis[0].max=v,g.yAxis[0].min=y,g.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(y,v)):(g.yAxis[0].max="dataMax",g.yAxis[0].min="dataMin",g.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3),g.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3)),null!=n&&(g.xAxis[0].data=n),null!=r&&(mt.data=r,mt.name=u,g.series.push(mt),g.legend[0].data.push(u),g.color.push(nt.get("f"))),null!=a&&(vt.data=a,g.series.push(vt),g.legend[0].data.push(vt.name),g.color.push(nt.get("r"))),V(t,g)}function y(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"立方米/秒(L/s)":arguments[9],c=arguments[10],h=arguments[11],d=arguments[12],p=arguments.length<=13||void 0===arguments[13]?"米/秒(m/s)":arguments[13],f=arguments[14],g=arguments[15],m=arguments[16],v=arguments.length<=17||void 0===arguments[17]?"液位(m)":arguments[17],y=(arguments[18],arguments[19],arguments[20],arguments[21]),x=(arguments[22],arguments[23],arguments[24]),_=arguments[25],b=arguments[26],w=arguments[27],S=arguments[28],M=arguments[29];pt.data=[],vt.data=[],ht.data=[],dt.data=[],gt.data=[],yt.data=[],xt.data=[],_t.data=[],bt.data=[],ft.data=[],wt.data=[];var A=F(t);A.legend.data=[],A.series=[],A.title[0].text=e,A.title[0].subtext=i,A.color=[];var T=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),I=Math.round(1*T)+1;1>I&&(I=3);var L=Math.floor(s);T=Math.abs(d)>=Math.abs(h)?Math.abs(d):Math.abs(h);var C=Math.round(1*T)+1;C=Math.round(1*T)<1?1:Math.round(1*T)+1;var D=Math.floor(h),P=Math.round(1*m),k=Math.floor(1*g);0==o||void 0==o||null==o?o=10:(o=(parseFloat(o)*at).toFixed(1),1>o&&(o=1)),A.yAxis[1].max=o,A.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),y?(0>k?(A.yAxis[0].min=0-P,A.yAxis[0].max=P,A.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(0-P,P)):(A.yAxis[0].min=k,A.yAxis[0].max=P,A.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(k,P)),0>L||0>D?(A.yAxis[2].max=I,A.yAxis[2].min=0-I,A.yAxis[2].axisLabel.formatter=(0,et.YPrecision)(0-I,I)):(A.yAxis[2].max=I,A.yAxis[2].min=L,A.yAxis[2].axisLabel.formatter=(0,et.YPrecision)(L,I)),0>D||0>L?(A.yAxis[3].max=C,A.yAxis[3].min=0-C,A.yAxis[3].axisLabel.formatter=(0,et.YPrecision)(0-C,C)):(A.yAxis[3].max=C,A.yAxis[3].min=D,A.yAxis[3].axisLabel.formatter=(0,et.YPrecision)(D,C))):(A.yAxis[0].max="dataMax",A.yAxis[0].min="dataMin",A.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3),A.yAxis[2].max="dataMax",A.yAxis[2].min="dataMin",A.yAxis[2].axisLabel.formatter=(0,et.YPrecisionCustom)(3),A.yAxis[3].max="dataMax",A.yAxis[3].min="dataMin",A.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3)),null!=n&&(A.xAxis[0].data=n,A.xAxis[1].data=n,A.xAxis[2].data=n,A.xAxis[3].data=n),A.yAxis[0].name=v,A.yAxis[2].name=u,A.yAxis[3].name=p,b>0||0==b&&0==w&&0==S&&0==M?(null!=r&&(pt.data=r,pt.name=u,A.series.push(pt),A.legend.data.push(u),A.color.push(nt.get("f"))),null!=c&&(ft.data=c,A.series.push(ft),A.legend.data.push(ft.name),A.color.push(nt.get("v")))):(A.grid[0].height=0,A.grid[0].top="-10000",A.grid[0].left=0,A.grid[0].right=0),w>0||0==b&&0==w&&0==S&&0==M?(null!=f&&(gt.data=f,gt.name=v,A.series.push(gt),A.legend.data.push(v),A.color.push(nt.get("l"))),null!=a&&(vt.data=a,A.series.push(vt),A.legend.data.push(vt.name),A.color.push(nt.get("r")))):(A.grid[1].height=0,A.grid[1].top="-10000",A.grid[1].left=0,A.grid[1].right=0),null!=_&&S>0||0==b&&0==w&&0==S&&0==M?(dt.data=_,A.series.push(dt),A.legend.data.push(dt.name),A.color.push(nt.get("ss"))):(A.grid[2].height=0,A.grid[2].top="-10000",A.grid[2].left=0,A.grid[2].right=0),null!=x&&M>0||0==b&&0==w&&0==S&&0==M?(ht.data=x,A.series.push(ht),A.legend.data.push(ht.name),A.color.push(nt.get("do"))):(A.grid[3].height=0,A.grid[3].top="-10000",A.grid[3].left=0,A.grid[3].right=0),V(t,A)}function x(t,e,i,n,a,o){var r=Math.round(1.5*n),s=Math.floor(a),l=Math.round(1.3*o);return 3>l&&(l=3),{color:(0,Q.ColorArray)(),title:{text:t,subtext:e,x:"center"},tooltip:{trigger:"axis",showDelay:0,formatter:function(t){return"流量(L/s) 液位(m)
"+t.value},axisPointer:{show:!0,type:"cross",lineStyle:{type:"solid",width:1}}},toolbox:{show:!1,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["流量液位散点"],x:"left"},xAxis:[{type:"value",scale:!0,min:s,max:r,name:"流量(m^3/s)",nameLocation:"middle",nameGap:35,splitLine:{lineStyle:{type:"solid"}}}],yAxis:[{type:"value",scale:!0,min:0,max:r,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},name:"液位(m)",splitLine:{lineStyle:{type:"solid"}}}],series:[{name:"流量液位散点",type:"scatter",data:i}]}}function _(t,e,i,n,a,o,r){return{title:{text:t,subtext:e,x:"center"},color:(0,Q.ColorArray)(),grid:{top:80,left:40,right:40,bottom:80},legend:{data:["降雨量(mm)","参考降雨量(mm)","小雨","中雨","大雨","暴雨"],x:"right",bottom:10},xAxis:[{type:"category",boundaryGap:!1,axisLabel:{rotate:0},axisLine:{onZero:!1},splitLine:{show:!1},data:i}],yAxis:[{name:"降雨量(mm)",nameLocation:"end",max:a+5,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},type:"value",inverse:!1,splitLine:{show:!0}}],series:[{name:"降雨量(mm)",type:"bar",barWidth:6,areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(0,153,204,0.5)"},{offset:1,color:"rgba(0,153,204,0.1)"}])}},data:n,z:6,symbolSize:0,smooth:!0,lineStyle:{normal:{width:1,color:"#0099cc"}}},{name:"参考降雨量(mm)",type:"bar",barWidth:6,data:o,z:5,itemStyle:{normal:{color:"rgba(0,0,0,0.2)"}}}]}}function b(t,e,i,n,a,o,r,s){var l=F(t);l.title[0].text=e,l.title[0].subtext=i,null!=n&&(l.xAxis[0].data=n),l.yAxis[0].max=1.2*Math.round(o),null!=a&&(l.series[0].data=a),null!=r&&(l.series[1].data=r),V(t,l)}function w(t,e,i,n,a,o,r){return{title:{text:t,subtext:e,x:"left",align:"right"},color:[nt.get("r"),nt.get("r_c")],tooltip:{trigger:"axis"},grid:{top:100,left:80,right:80,bottom:80},toolbox:{show:!0,top:0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["降雨量(mm)","参考降雨量(mm)","中继温度(℃)","小雨","中雨","大雨","暴雨"],x:"right",top:45,itemHeight:10,padding:6},dataZoom:[{show:!0,realtime:!0,start:0,end:100}],xAxis:[{type:"category",boundaryGap:!0,splitNumber:500,axisLabel:{rotate:0},axisLine:{onZero:!1},splitLine:{show:!1},data:i}],yAxis:[{name:"降雨量(mm)",nameLocation:"end",min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},type:"value",inverse:!1,splitLine:{show:!0}}],series:[{name:"降雨量(mm)",barGap:"3%",barCategoryGap:"10%",type:"bar",barWidth:3,barMaxWidth:5,areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:nt.get("r")},{offset:1,color:nt.get("r")}])}},data:n,z:6,symbolSize:0,smooth:!0,lineStyle:{normal:{width:5,color:nt.get("r")}}},{name:"参考降雨量(mm)",type:"bar",barGap:"3%",barCategoryGap:"10%",xAxisIndex:0,yAxisIndex:0,barWidth:3,barMaxWidth:5,data:o,z:5,areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(0,153,204,0.5)"},{offset:1,color:"rgba(0,153,204,0.1)"}])}},itemStyle:{normal:{color:nt.get("r_c")}}}]}}function S(t,e,i,n,a,o,r,s,l){var u=F(e);u.title[0].text=i,u.title[0].subtext=n,null!=a&&(u.xAxis[0].data=a),0!=r&&(u.yAxis[0].max=parseInt(r+1)),u.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(0,r),null!=o&&(u.series[0].data=o),null!=s&&(u.series[1].data=s),V(e,u)}function M(t,e,i,n,a,o,r,s){var l=Math.abs(s)>=Math.abs(r)?Math.abs(s):Math.abs(r),u=Math.round(3*l);1>u&&(u=5);var c=Math.floor(r);return{color:ColorArray_MapSS(),title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!1,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["悬浮物(mg/L)","降雨量(mm)"],x:"left",bottom:10},dataZoom:[{show:!1,realtime:!0,start:0,end:100,xAxisIndex:[0]},{type:"inside",realtime:!0,start:0,end:100,xAxisIndex:[0]}],grid:{left:40,right:40,top:80,height:100},xAxis:[{type:"category",boundaryGap:!0,axisLine:{onZero:!0,show:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{name:"悬浮物(mg/L)",type:"value",max:u,min:c,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},inverse:!1,splitLine:{show:!1},nameLocation:"end"},{name:"降雨量(mm)",type:"value",max:a,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1},interval:5,inverse:!0,nameLocation:"start"}],series:[{name:"降雨量(mm)",type:"line",data:n,xAxisIndex:0,yAxisIndex:1,barWidth:6,z:5,itemStyle:{normal:{color:"rgba(68,138,255,0.8)"}},areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(68,138,255,0.5)"},{offset:1,color:"rgba(68,138,255,0.1)"}])}}},{name:"悬浮物(mg/L)",type:"line",data:o,xAxisIndex:0,yAxisIndex:0,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{}},nameTextStyle:{fontWeight:"bold"}}]}}function A(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"悬浮物(mg/L)":arguments[9],c=F(t);c.title[0].text=e,c.title[0].subtext=i;var h=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),d=1.2*Math.round(1*h);1>d&&(d=3);var p=Math.floor(s);c.yAxis[1].max=o*at,c.yAxis[0].max=d,c.yAxis[0].min=p,c.yAxis[0].name=u,null!=n&&(c.xAxis[0].data=n),null!=a&&(c.series[0].data=a),null!=r&&(c.series[1].data=r),V(t,c)}function T(t,e,i,n,a,o,r,s,l,u,c,h,d,p){var f=Math.abs(s)>=Math.abs(r)?Math.abs(s):Math.abs(r),g=Math.round(3*f);1>g&&(g=5);var m=Math.floor(r),v=Math.round(1*u);return 3>v&&(v=3),{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["1","2","3","4","5","6"],x:"right",top:45,itemHeight:10,padding:6},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0]}],grid:{top:100,left:60,right:60,bottom:80},xAxis:[{type:"category",boundaryGap:!0,axisLine:{onZero:!0,show:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{name:"(mg/L)",type:"value",max:g,min:m,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},inverse:!1,nameLocation:"end",splitNumber:5,splitLine:{show:!1}},{name:"降雨量(mm)",type:"value",max:a,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1},splitNumber:5,inverse:!0,nameLocation:"end"}],series:[]}}function I(t,e,i,n,a,o,r,s,l,u,c,h,d,p){var f=Math.abs(s)>=Math.abs(r)?Math.abs(s):Math.abs(r),g=Math.round(3*f);1>g&&(g=5);var m=Math.floor(r),v=Math.round(1*u);3>v&&(v=3);var y=20170012==(0,tt.getUrlParam)("pjid")&&t.indexOf("HC-NL")<0;return("地下水"==p||"溢流口"==p||t.indexOf("溢流口")>=0||t.indexOf("地下水")>=0||"断面"==p||t.indexOf("断面")>=0||y)&&20170012!=(0,tt.getUrlParam)("pjid")?{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["1","2"],x:"right",top:45,itemHeight:10,padding:6},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0]}],grid:{top:100,left:60,right:60,bottom:80},xAxis:[{type:"category",boundaryGap:!0,axisLine:{onZero:!0,show:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{name:"悬浮物(mg/L)",type:"value",max:g,min:m,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},inverse:!1,nameLocation:"end",splitNumber:5,splitLine:{show:!1}},{name:"降雨量(mm)",type:"value",max:a,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1},splitNumber:5,inverse:!0,nameLocation:"end"}],series:[]}:{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["1","2","3","4"],x:"right",top:45,itemHeight:10,padding:6},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0]}],grid:{top:100,left:60,right:60,bottom:80},xAxis:[{type:"category",boundaryGap:!0,axisLine:{onZero:!0,show:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{name:"悬浮物(mg/L)",type:"value",max:g,min:m,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},inverse:!1,nameLocation:"end",splitNumber:5,splitLine:{show:!1}},{name:"降雨量(mm)",type:"value",max:a,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1},splitNumber:5,inverse:!0,nameLocation:"end"}],series:[]}}function L(t,e,i,n,a,o,r,s,l,u,c,h,d){var p=Math.abs(s)>=Math.abs(r)?Math.abs(s):Math.abs(r),f=Math.round(3*p);1>f&&(f=5);var g=Math.floor(r),m=Math.round(1*u);return 3>m&&(m=3),{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["1","2","3","4"],x:"right",top:45,itemHeight:10,padding:6},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0]}],grid:{top:100,left:60,right:60,bottom:80},xAxis:[{type:"category",boundaryGap:!0,axisLine:{onZero:!0,show:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{name:"溶解氧(mg/L)",type:"value",max:f,min:g,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},inverse:!1,nameLocation:"end",splitNumber:5,splitLine:{show:!1}},{name:"降雨量(mm)",type:"value",max:a,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1},splitNumber:5,inverse:!0,nameLocation:"end"}],series:[]}}function C(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"(mg/L)":arguments[9],c=(arguments[10],arguments[11]),h=(arguments.length<=12||void 0===arguments[12]?"液位(m)":arguments[12],arguments[13],arguments[14],arguments[15],arguments[16]),d=(arguments[17],arguments[18]),p=arguments[19],f=arguments[20],g=arguments[21],m=(20170012==(0,tt.getUrlParam)("pjid")&&e.indexOf("HC-NL")<0,F(t));m.legend.data=[],m.series=[],m.color=[],m.title[0].text=e,m.title[0].subtext=i;var v=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),y=1.2*Math.round(1*v);1>y&&(y=3);var x=Math.floor(s);600>=y&&(y=600);var _=Math.round(1*c);3>_&&(_=3),o=0==o||void 0==o||null==o?10:(parseFloat(o)*at).toFixed(1),m.yAxis[1].max=o,m.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),m.yAxis[0].name=u,h?(m.yAxis[0].max=y,m.yAxis[0].min=x,m.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(0,600)):(m.yAxis[0].max="dataMax",m.yAxis[0].min="dataMin",m.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3)),null!=n&&(m.xAxis[0].data=n),null!=r&&(Lt.data=r,m.series.push(Lt),m.legend[0].data.push(Lt.name),m.color.push(nt.get("ss"))),null!=d&&(Mt.data=d,m.series.push(Mt),m.legend[0].data.push(Mt.name),m.color.push(nt.get("do"))),null!=p&&(At.data=p,m.series.push(At),m.legend[0].data.push(At.name),m.color.push(nt.get("l"))),null!=f&&(Tt.data=f,m.series.push(Tt),m.legend[0].data.push(Tt.name),m.color.push(nt.get("f"))),null!=g&&(It.data=g,m.series.push(It),m.legend[0].data.push(It.name),m.color.push(nt.get("v"))),null!=a&&(kt.data=a,m.series.push(kt),m.legend[0].data.push(kt.name),m.color.push(nt.get("r"))),V(t,m)}function D(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"悬浮物(mg/L)":arguments[9],c=(arguments[10],arguments[11]),h=(arguments.length<=12||void 0===arguments[12]?"液位(m)":arguments[12],arguments[13],arguments[14],arguments[15]),d=arguments[16],p=arguments[17],f=20170012==(0,tt.getUrlParam)("pjid")&&e.indexOf("HC-NL")<0,g=F(t);g.legend.data=[],g.series=[],g.color=[],g.title[0].text=e,g.title[0].subtext=i; var m=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),v=1.2*Math.round(1*m);1>v&&(v=3);var y=Math.floor(s);600>=v&&(v=600);var x=Math.round(1*c);3>x&&(x=3),o=0==o||void 0==o||null==o?10:(parseFloat(o)*at).toFixed(1),g.yAxis[1].max=o,g.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),g.yAxis[0].name=u,d?(g.yAxis[0].max=v,g.yAxis[0].min=y,g.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(0,600)):(g.yAxis[0].max="dataMax",g.yAxis[0].min="dataMin",g.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3)),null!=n&&(g.xAxis[0].data=n),null!=r&&(Ct.data=r,g.series.push(Ct),g.legend[0].data.push(Ct.name),g.color.push(nt.get("ss"))),null!=a&&(kt.data=a,g.series.push(kt),g.legend[0].data.push(kt.name),g.color.push(nt.get("r"))),("地下水"==p||"溢流口"==p||e.indexOf("溢流口")>=0||e.indexOf("地下水")>=0||"断面"==p||e.indexOf("断面")>=0||f)&&20170012!=(0,tt.getUrlParam)("pjid")||d&&null!=h&&(h.length>=1&&(Dt.data=h[0],g.series.push(Dt),g.legend[0].data.push(Dt.name),g.color.push(nt.get("ss_r2"))),h.length>=2&&(Pt.data=h[1],g.series.push(Pt),g.legend[0].data.push(Pt.name),g.color.push(nt.get("ss_r3")))),V(t,g)}function P(t,e,i,n,a,o,r,s,l){var u=arguments.length<=9||void 0===arguments[9]?"溶解氧(mg/L)":arguments[9],c=(arguments[10],arguments[11]),h=(arguments.length<=12||void 0===arguments[12]?"液位(m)":arguments[12],arguments[13],arguments[14],arguments[15],arguments[16]),d=F(t);d.legend.data=[],d.series=[],d.color=[],d.title[0].text=e,d.title[0].subtext=i;var p=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),f=1.2*Math.round(1*p),g=Math.floor(s),m=Math.round(1*c);3>m&&(m=3),o=0==o||void 0==o||null==o?10:(parseFloat(o)*at).toFixed(1),d.yAxis[1].max=o,d.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),d.yAxis[0].name=u,h?(d.yAxis[0].max=f,d.yAxis[0].min=g,d.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(0,600)):(d.yAxis[0].max="dataMax",d.yAxis[0].min="dataMin",d.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3)),null!=n&&(d.xAxis[0].data=n),null!=r&&(St.data=r,d.series.push(St),d.legend[0].data.push(St.name),d.color.push(nt.get("do"))),null!=a&&(kt.data=a,d.series.push(kt),d.legend[0].data.push(kt.name),d.color.push(nt.get("r"))),V(t,d)}function k(t,e,i,n){var a=F(t),o=Math.abs(i)>=Math.abs(e)?Math.abs(i):Math.abs(e),r=1.2*Math.round(1*o);1>r&&(r=3);var s=Math.floor(e);a.yAxis[0].max=r,a.yAxis[0].min=s,null!=n&&(a.series[2].data=n[0]),null!=n&&(a.series[3].data=n[1]),V(t,a)}function E(t){var e=F(t);e.yAxis[0].max="dataMax",e.yAxis[0].min="dataMin",e.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3),e.series[2].data=[],e.series[3].data=[],V(t,e)}function O(t,e,i,n,a,o){var r=Math.round(1*o),s=Math.floor(1*a);return{color:(0,Q.ColorArray)(),title:{text:"",subtext:"",x:"center"},tooltip:{trigger:"axis"},toolbox:{show:!1,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:[t],x:"left"},dataZoom:{show:!0,realtime:!0,start:0,end:100},grid:[{left:50,right:20,top:25,height:90,bottom:35}],xAxis:[{type:"category",data:i,symbolSize:0,axisLabel:{rotate:0,formatter:function(t,e){return t+":00"}},splitLine:{show:!1}}],yAxis:[{type:"value",name:t,max:r,min:s,axisLabel:{formatter:"{value}"},splitLine:{show:!0},splitNumber:2}],series:[{name:e,type:"line",data:n}]}}function z(t,e,i,n,a,o){var r=1.5*Math.round(1*a),s=(Math.floor(1*n),F(t));s.xAxis[0].data=e,s.yAxis[0].max=r,s.yAxis[0].min=0,s.yAxis[0].name=o,s.series[0].data=i,V(t,s)}function N(t,e,i){return{color:(0,Q.ColorArray)(),title:{text:"",subtext:"未来三日概况",x:"center"},tooltip:{trigger:"axis"},toolbox:{show:!1},legend:{data:["降水概率(%)","温度(℃)"],x:"center"},dataZoom:{show:!1,realtime:!0,start:0,end:100},grid:[{left:26,right:26,top:30,bottom:22}],xAxis:[{type:"category",data:t,symbolSize:0,axisLabel:{rotate:0},splitLine:{show:!1}}],yAxis:[{type:"value",nameLocation:"end",name:"降水概率(%)",max:110,min:0,interval:30,axisLabel:{formatter:"{value}"},splitLine:{show:!1}},{type:"value",name:"温度(℃)",nameLocation:"end",max:60,min:-30,interval:30,axisLabel:{formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"降水概率(%)",type:"bar",data:e,yAxisIndex:0},{name:"温度(℃)",type:"line",data:i,yAxisIndex:1}]}}function R(t,e,i,n){var a=F(t);a.xAxis[0].data=e,a.series[0].data=i,a.series[1].data=n,V(t,a)}function F(t){var e=t.getOption();return $.extend(!0,{},e)}function V(t,e){t.clear(),"undefined"==typeof e.dataZoom[0]||(e.dataZoom[0].end=100,e.dataZoom[0].endValue=0,e.dataZoom[0].start=0,e.dataZoom[0].startValue=0),t.setOption(e)}function B(t,e,i,n,a,o,r){var n=[2.6,5.9,9,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6,2.3],i=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"];return{color:(0,Q.ColorArray)(),title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},grid:{top:80,left:40,right:40,bottom:80},legend:{data:["","最小值","最大值"],x:"right",bottom:10},xAxis:[{type:"category",data:i,axisLabel:{rotate:0},splitLine:{show:!1}}],yAxis:[{type:"value",name:a,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!0}}],series:[{name:"",type:"bar",data:n,areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(0,153,204,0.5)"},{offset:1,color:"rgba(0,153,204,0.1)"}])}},z:1,symbolSize:0,smooth:!0,lineStyle:{normal:{width:1,color:"#0099cc"}}},{name:"最小值",type:"line",z:2,data:[]},{name:"最大值",type:"line",z:3,data:[]}]}}function j(t,e,i,n,a,o,r,s){var l=F(t);l.xAxis[0].data=e,l.yAxis[0].name=n,l.yAxis[0].max=parseFloat(r),l.yAxis[1].max=1.5*parseFloat(s),l.series[0].name=n,l.series[0].data=i,l.series[1].data=a,l.series[2].data=o,0==o.length?l.legend[0].data=[n]:l.legend[0].data[0]=n,yMax>9999?l.grid.left=80:l.grid.left=40,V(t,l)}function G(t,e,i,n,a,o,r){return{title:{text:t,subtext:e,x:"left",align:"right"},tooltip:{trigger:"axis"},grid:{top:80,left:80,right:40,bottom:80},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["降雨量","最小值","最大值","参考降雨量(mm)"],x:"right",top:25},dataZoom:{show:!0,start:0,end:10},xAxis:[{type:"category",data:[],axisPointer:{type:"shadow"},axisLabel:{rotate:0,interval:"auto"}}],yAxis:[{type:"value",name:a,axisLabel:{formatter:"{value}",interval:"auto"},splitLine:{show:!1}},{name:"降雨量(mm)",nameLocation:"start",max:500,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)},interval:"auto"},type:"value",inverse:!0,splitLine:{show:!1}}],series:[{name:a,type:"bar",barWidth:6,data:[]},{name:"最小值",type:"line",data:[]},{name:"最大值",type:"line",data:[]},{name:"参考降雨量(mm)",type:"bar",data:[],yAxisIndex:1,barWidth:6}]}}function W(t,e,i,n,a,o,r,s,l,u,c,h,d,p){var f=F(i);f.xAxis[0].data=n,f.yAxis[0].name=o,a.length>=100?(f.series[0]={name:o,type:"line",barWidth:6,data:a,smooth:!0,lineStyle:{normal:{color:"#00CCFF"}},areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#00CCFF"},{offset:1,color:"#00CCFF"}])}}},f.series[3]={yAxisIndex:1,name:"参考降雨量(mm)",type:"line",barWidth:6,data:u,smooth:!0,lineStyle:{normal:{color:"#0066CC"}},areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#0066CC"},{offset:1,color:"#0066CC"}])}}}):(f.series[0]={name:o,type:"bar",barWidth:6,data:a},f.series[3]={yAxisIndex:1,name:"参考降雨量(mm)",type:"bar",barWidth:6,data:u}),f.series[0].name=o,f.series[0].data=a,f.series[1].name="最小值("+l+")",f.series[2].name="最大值("+l+")",f.series[1].data=r,f.series[2].data=s,f.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(3),f.yAxis[1].max=parseFloat(h),f.yAxis[0].max=parseFloat(p),f.legend[0].data=[],f.legend[0].data.push(o,f.series[1].name,f.series[2].name,"参考降雨量(mm)"),f.color=["#00CCFF",nt.get("stat_min"),nt.get("stat_max"),"#0066CC"],V(i,f)}function H(t,e,i,n,a,o,r){return{title:{text:t,subtext:e,x:"left",align:"right"},tooltip:{trigger:"axis"},grid:{top:80,left:80,right:40,bottom:80},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["降雨量","参考降雨量"],x:"right",top:25},dataZoom:{show:!0,realtime:!0,start:0,end:100},xAxis:[{type:"category",data:[],splitLine:{show:!1}}],yAxis:[{name:"降雨量(mm)",nameLocation:"end",axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},type:"value",splitLine:{show:!1}},{name:"参考降雨量(mm)",nameLocation:"start",max:500,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)},interval:"auto"},type:"value",inverse:!0,splitLine:{show:!1}}],series:[{name:"降雨量",type:"bar",data:[]},{name:"参考降雨量(mm)",type:"bar",data:[],yAxisIndex:1,barWidth:6}]}}function q(t,e,i,n,a,o,r,s,l,u,c,h,d,p){var f=F(i);f.xAxis[0].data=n,f.yAxis[0].name=o,f.yAxis[1].max=parseFloat(h),f.yAxis[0].max=parseFloat(p),a.length>=100?(f.series[0]={name:o,type:"line",barWidth:6,data:a,smooth:!0,lineStyle:{normal:{color:"#00CCFF"}},areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#00CCFF"},{offset:1,color:"#00CCFF"}])}}},f.series[1]={yAxisIndex:1,name:"参考降雨量(mm)",type:"line",barWidth:6,data:u,smooth:!0,lineStyle:{normal:{color:"#0066CC"}},areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#0066CC"},{offset:1,color:"#0066CC"}])}}}):(f.series[0]={name:o,type:"bar",barWidth:6,data:a},f.series[1]={yAxisIndex:1,name:"参考降雨量(mm)",type:"bar",barWidth:6,data:u}),f.series[0].name=o,f.series[0].data=a,f.legend[0].data=[],f.series[1].data=r,f.series[1].data=u,f.legend[0].data.push(o,"参考降雨量(mm)"),f.color=["#00CCFF","#0066CC"],V(i,f)}function U(t,e,i,n,a){return{title:{text:t,subtext:e,x:"center"},color:(0,Q.ColorArray)(),tooltip:{trigger:"axis"},toolbox:{show:!1,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["降雨量"],x:"left"},xAxis:[{type:"category",data:i,axisLabel:{rotate:0},splitLine:{show:!1}}],yAxis:[{type:"value",name:"降雨量(mm)",min:0,max:a+5,inverse:!0,interval:2,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!0}}],series:[{name:"降雨量(mm)",type:"bar",barWidth:6,areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(0,153,204,0.5)"},{offset:1,color:"rgba(0,153,204,0.1)"}])}},data:n,z:6,symbolSize:0,smooth:!0,lineStyle:{normal:{width:1,color:"#0099cc"}}}]}}function Z(t,e,i,n){var a=arguments.length<=4||void 0===arguments[4]?!1:arguments[4],o=F(t);o.xAxis[0].data=e,o.yAxis[0].max=n+5,o.series[0].data=i,a&&(o.dataZoom=[]),V(t,o)}function Y(t,e,i,n,a,o){return{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis",formatter:function(t,e,i){for(var n=""+t[0].name,a=0,o=t.length;o>a;a++){var r=isNaN(t[a].value)?"":t[a].value.toFixed(3);n+="
"+t[a].seriesName+" : "+r}return setTimeout(function(){i(e,n)},200),n}},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["中继电压(v)"],x:"center",top:25},dataZoom:[{show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0]}],grid:{top:80,left:60,right:60,bottom:80},xAxis:[{type:"category",gridIndex:0,boundaryGap:!0,axisLine:{onZero:!0,show:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{gridIndex:0,name:"电压(v)",type:"value",max:4.2,min:3,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},inverse:!1,nameLocation:"end",splitLine:{show:!1}}],series:[]}}function X(t,e,i,n,a,o,r,s){var l=(arguments.length<=8||void 0===arguments[8]?"中继电压(v)":arguments[8],F(t));l.series=[],l.color=[],l.title[0].text=e,l.title[0].subtext=i,l.yAxis[0].name=n;var u=4.2,c=3;void 0!=s&&(u=parseFloat(s)+.01),void 0!=r&&(c=0==r?0:parseFloat(r)-.01),l.yAxis[0].max=u,l.yAxis[0].min=c,l.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(c,u),l.yAxis[0].axisLabel.formatter=function(t,e){return t.toFixed(3)},null!=a&&(l.xAxis[0].data=a),null!=o&&(Et.data=o,l.series.push(Et),l.color.push(nt.get("volt"))),V(t,l)}function K(t,e,i,n,a,o,r,s,l,u,c){return{title:{text:t,subtext:e,x:"left"},tooltip:{trigger:"axis"},toolbox:{show:!0,feature:{mark:{},dataZoom:{},restore:{},saveAsImage:{}}},legend:{data:["温度(℃)","湿度(%)","降雨量(mm)"],left:"center",top:45},dataZoom:[{type:"slider",show:!0,realtime:!0,start:0,end:100,xAxisIndex:[0,1]}],grid:[{left:60,right:40,top:100,height:"180"},{left:60,right:40,top:"340",height:"140"}],xAxis:[{type:"category",boundaryGap:!0,axisLine:{onZero:!0,show:!0},gridIndex:0,data:i,position:"bottom",splitLine:{show:!1}},{axisLabel:{rotate:0},gridIndex:1,type:"category",boundaryGap:!0,axisLine:{onZero:!0},data:i,position:"bottom",splitLine:{show:!1}}],yAxis:[{gridIndex:0,name:"温度(℃)",type:"value",max:60,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},splitLine:{show:!1}},{gridIndex:0,name:"降雨量(mm)",nameLocation:"start",max:a+20,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},interval:5,type:"value",inverse:!0,splitLine:{show:!1}},{gridIndex:1,name:"湿度(%)",max:100,min:0,axisLabel:{formatter:function(t,e){return t=parseFloat(t).toFixed(1)}},type:"value",nameLocation:"end",splitLine:{show:!1}}],series:[]}}function J(t,e,i,n,a,o,r,s,l,u,c,h,d){Ot.data=[],Nt.data=[],zt.data=[];var p=F(t);p.series=[],p.title[0].text=e,p.title[0].subtext=i,p.color=[];var f=Math.abs(l)>=Math.abs(s)?Math.abs(l):Math.abs(s),g=Math.round(1*f)+10,m=Math.floor(s),v=Math.round(1*h)+1,y=Math.floor(c);0==o||void 0==o||null==o?o=10:(o=(parseFloat(o)*at).toFixed(1),1>o&&(o=1)),p.yAxis[1].max=o,p.yAxis[1].axisLabel.formatter=(0,et.YPrecision)(0,o),d?(p.yAxis[0].min=m,p.yAxis[0].max=g,p.yAxis[0].axisLabel.formatter=(0,et.YPrecision)(m,g),p.yAxis[2].max=100,p.yAxis[2].min=0,p.yAxis[2].axisLabel.formatter=(0,et.YPrecision)(y,v)):(p.yAxis[0].min="dataMin",p.yAxis[0].max="dataMax",p.yAxis[0].axisLabel.formatter=(0,et.YPrecisionCustom)(1),p.yAxis[2].max="dataMax",p.yAxis[2].min="dataMin",p.yAxis[2].axisLabel.formatter=(0,et.YPrecisionCustom)(1)),null!=n&&(p.xAxis[0].data=n,p.xAxis[1].data=n),null!=r&&(Ot.data=r,p.series.push(Ot),p.color.push(nt.get("t"))),null!=u&&(zt.data=u,p.series.push(zt),p.color.push(nt.get("h"))),null!=a&&(Nt.data=a,p.series.push(Nt),p.color.push(nt.get("r"))),V(t,p)}Object.defineProperty(e,"__esModule",{value:!0}),e.getFlowLineOptionWebQX=n,e.setFlowLineOptionWebQX=a,e.getLevelLineOption=o,e.setLevelLineOption=r,e.getLevelLineOptionWeb=s,e.setLevelLineOptionWeb=l,e.getFlowLineOption=u,e.setFlowLineOption=c,e.getFlowLineOptionWeb=h,e.getFlowLineOptionWeb20160022flow=d,e.getFlowLineOptionWeb20160022=p,e.getJZLineOptionWeb=f,e.setFlowLineOptionWeb=g,e.setFlowLineOptionWeb20160022=m,e.setFlowLineOptionWeb20160022flow=v,e.setJZLineOptionWeb=y,e.getFlowSoctOption=x,e.getRainOption=_,e.setRainOption=b,e.getRainOptionWeb=w,e.setRainOptionWeb=S,e.getSSOption=M,e.setSSOption=A,e.getSSOptionWebBKS=T,e.getSSOptionWeb=I,e.getDOOptionWeb=L,e.setSSOptionWebBKS=C,e.setSSOptionWeb=D,e.setDOOptionWeb=P,e.setSSOptionWeb_ReflineMode=k,e.setSSOptionWeb_NonReflineMode=E,e.getSingleOption=O,e.setSingleOption=z,e.getWeatherOption=N,e.setWeatherOption=R,e.getOption=F,e.setOption=V,e.getStatOption=B,e.setStatOption=j,e.getStatOptionWeb=G,e.setStatOptionWeb=W,e.getRainStatOptionWeb=H,e.setRainStatOptionWeb=q,e.getRainOptionIndex=U,e.setRainOptionIndex=Z,e.getVoltOptionWeb=Y,e.setVoltOptionWeb=X,e.getTHOptionWeb=K,e.setTHOptionWeb=J;var Q=i(70),tt=i(11),et=i(514),it=i(39),nt=(0,Q.ColorHs)(),at=3,ot={name:"测量液位(mm)",type:"line",data:[],z:6,symbolSize:0,smooth:!0,lineStyle:{normal:{width:2,color:nt.get("l")}}},rt={name:"降雨量(mm)",type:"bar",barWidth:20,barCategoryGap:"20%",symbolSize:0,data:[],yAxisIndex:1,z:5,lineStyle:{normal:{color:nt.get("r")}},areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:nt.get("r")},{offset:1,color:"rgba(0,0,0,0.1)"}])}}},st={name:"预警线(m)",type:"line",data:[],z:3,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:nt.get("l_r2")}}},lt={name:"报警线(m)",type:"line",data:[],z:2,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:nt.get("l_r3")}}},ut={name:"溢流线(m)",type:"line",data:[],z:1,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:nt.get("l_r4")}}},ct={name:"管顶线(m)",type:"line",data:[],z:6,symbolSize:0,smooth:!0,lineStyle:{normal:{width:1,type:"dashed",color:nt.get("l_node")}}},ht={name:"DO(mg/L)",type:"line",xAxisIndex:3,yAxisIndex:5,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{type:"solid",opacity:1,color:nt.get("do")}},nameTextStyle:{fontWeight:"bold"},data:[]},dt={name:"悬浮物(mg/L)",type:"line",xAxisIndex:2,yAxisIndex:4,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{type:"solid",opacity:1,color:nt.get("ss")}},nameTextStyle:{fontWeight:"bold"},data:[]},pt={name:"流量(L/s)",type:"line",xAxisIndex:1,yAxisIndex:2,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{color:nt.get("f")}},areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:nt.get("f")},{offset:1,color:"#FFDEAD"}])}},nameTextStyle:{fontWeight:"bold"},data:[]},ft={name:"流速(m/s)",type:"line",xAxisIndex:1,yAxisIndex:3,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{color:nt.get("v")}},data:[]},gt={name:"测量液位(m)",type:"line",xAxisIndex:0,yAxisIndex:0,data:[],z:6,symbolSize:0,smooth:!0,lineStyle:{normal:{width:2,color:nt.get("l")}}},mt={name:"流量(L/s)",type:"line",xAxisIndex:0,yAxisIndex:0,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{color:nt.get("f")}},areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:0,color:nt.get("f")},{offset:1,color:"#FFDEAD"}])}},nameTextStyle:{fontWeight:"bold"},data:[]},vt={name:"降雨量(mm)",xAxisIndex:0,yAxisIndex:1,type:"bar",barWidth:6,data:[],z:5,lineStyle:{normal:{color:nt.get("r")}}},yt={name:"预警线",xAxisIndex:0,yAxisIndex:0,type:"line",data:[],z:3,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:nt.get("l_r2")}}},xt={name:"报警线",xAxisIndex:0,yAxisIndex:0,type:"line",data:[],z:2,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:nt.get("l_r3")}}},_t={name:"溢流线",xAxisIndex:0,yAxisIndex:0,type:"line",data:[],z:1,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",opacity:.5,color:nt.get("l_r4")}}},bt={name:"管顶线",xAxisIndex:0,yAxisIndex:0,type:"line",data:[],z:6,symbolSize:0,smooth:!0,lineStyle:{normal:{width:1,color:nt.get("l_node"),type:"dashed"}}},wt={name:"流速报警线(m/s)",type:"line",data:[],z:3,xAxisIndex:1,yAxisIndex:3,symbolSize:0,lineStyle:{normal:{width:1,type:"dashed",color:nt.get("v_r")}}},St={name:"溶解氧(mg/L)",type:"line",data:[],xAxisIndex:0,yAxisIndex:0,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{type:"solid",opacity:1,color:nt.get("do")}},nameTextStyle:{fontWeight:"bold"}},Mt={name:"COD(mg/L)",type:"line",data:[],xAxisIndex:0,yAxisIndex:0,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{type:"solid",opacity:1,color:nt.get("do")}},nameTextStyle:{fontWeight:"bold"}},At={name:"NH3(mg/L)",type:"line",data:[],xAxisIndex:0,yAxisIndex:0,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{type:"solid",opacity:1,color:nt.get("l")}},nameTextStyle:{fontWeight:"bold"}},Tt={name:"TP(mg/L)",type:"line",data:[],xAxisIndex:0,yAxisIndex:0,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{type:"solid",opacity:1,color:nt.get("f")}},nameTextStyle:{fontWeight:"bold"}},It={name:"TN(mg/L)",type:"line",data:[],xAxisIndex:0,yAxisIndex:0,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{type:"solid",opacity:1,color:nt.get("v")}},nameTextStyle:{fontWeight:"bold"}},Lt={name:"SS(mg/L)",type:"line",data:[],xAxisIndex:0,yAxisIndex:0,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{type:"solid",opacity:1,color:nt.get("ss")}},nameTextStyle:{fontWeight:"bold"}},Ct={name:"悬浮物(mg/L)",type:"line",data:[],xAxisIndex:0,yAxisIndex:0,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{type:"solid",opacity:1,color:nt.get("ss")}},nameTextStyle:{fontWeight:"bold"}},Dt={name:"预警线(mg/L)",xAxisIndex:0,yAxisIndex:0,type:"line",data:[],z:3,symbolSize:0,lineStyle:{normal:{type:"dashed",opacity:.5,color:nt.get("ss_r2")}}},Pt={name:"报警线(mg/L)",xAxisIndex:0,yAxisIndex:0,type:"line",data:[],z:2,symbolSize:0,lineStyle:{normal:{type:"dashed",opacity:.5,color:nt.get("ss_r3")}}},kt={name:"降雨量(mm)",type:"bar",data:[],xAxisIndex:0,yAxisIndex:1,barWidth:6,z:5,lineStyle:{normal:{color:nt.get("r")}}},Et={name:"中继电压(v)",type:"line",data:[],xAxisIndex:0,yAxisIndex:0,hoverAnimation:!1,lineStyle:{normal:{width:2,opacity:1,color:nt.get("volt")}},smooth:!1,nameTextStyle:{fontWeight:"bold"},areaStyle:{normal:{color:new it.graphic.LinearGradient(0,0,0,1,[{offset:.5,color:nt.get("volt")},{offset:.5,color:nt.get("volt")}]),opacity:.2}}},Ot={name:"温度(℃)",type:"line",xAxisIndex:0,yAxisIndex:0,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{width:2,opacity:1,color:nt.get("t")}},nameTextStyle:{fontWeight:"bold"},data:[]},zt={name:"湿度(%)",type:"line",xAxisIndex:1,yAxisIndex:2,symbolSize:0,hoverAnimation:!1,lineStyle:{normal:{width:2,opacity:1,color:nt.get("h")}},data:[]},Nt={name:"降雨量(mm)",xAxisIndex:0,yAxisIndex:1,type:"bar",barWidth:6,data:[],z:5,lineStyle:{normal:{color:nt.get("r")}}}},function(t,e,i){"use strict";function n(){return["#03CEFF","#FFBF3C","#0ECF0E","#FF5D45","#646EF5","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"]}function a(){return["#2EA910","#FF9400","#EB370E","#EA5CEB"]}function o(){return["#0099cc","rgba(0,0,0,0.2)","#000080","rgba(0,153,204,0.5)","#ff9400","#eb370e","#ea5ceb","#829fa9"]}function r(t){return 3==t?["#0099ccs","rgba(0,0,0,0.2)","#000080","rgba(0,153,204,0.5)","#ff9400","#eb370e","#ea5ceb","#829fa9"]:2==t?["#2ea910","rgba(0,0,0,0.2)","#000080","rgba(0,153,204,0.5)","#eb370e"]:1==t?["#ff9400","rgba(0,0,0,0.2)","#000080","rgba(0,153,204,0.5)"]:void 0}function s(){return["#03CEFF","rgba(0,0,0,0.2)","#000080","rgba(0,153,204,0.5)","#ff9400","#eb370e"]}function l(){return["#000080","rgba(0,153,204,0.5)"]}function u(){var t=new c.HashMap;return t.put("l","#0099cc"),t.put("l_c","rgba(0,0,0,0.2)"),t.put("l_r2","#ff9400"),t.put("l_r3","#eb370e"),t.put("l_r4","#ea5ceb"),t.put("l_node","#829fa9"),t.put("r","#000080"),t.put("r_c","rgba(0,153,204,0.5)"),t.put("v","#2ea910"),t.put("v_c","rgba(0,0,0,0.2)"),t.put("v_r","#eb370e"),t.put("f","#ff9400"),t.put("f_c","rgba(0,0,0,0.2)"),t.put("ss","#DAA520"),t.put("ss_c","rgba(0,0,0,0.2)"),t.put("ss_r2","#ff9400"),t.put("ss_r3","#eb370e"),t.put("stat","#03CEFF"),t.put("stat_max","#FFBF3C"),t.put("stat_min","#0ECF0E"),t.put("volt","#4B0082"),t.put("t","#ff9933"),t.put("t_c","rgba(0,0,0,0.2)"),t.put("h","#0066ff"),t.put("t_c","rgba(0,0,0,0.2)"),t.put("do","#FF1493"),t.put("do_c","rgba(0,0,0,0.2)"),t.put("do_r2","#ff9400"),t.put("do_r3","#eb370e"),t}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorArray=n,e.AlarmColor=a,e.ColorArray_MapLevel=o,e.ColorArray_MapFlow=r,e.ColorArray_MapSS=s,e.ColorArray_MapRain=l,e.ColorHs=u;var c=i(151);u()},function(t,e,i){/*! * Vuex v0.6.2 * (c) 2016 Evan You * Released under the MIT License. */ !function(e,i){t.exports=i()}(this,function(){"use strict";function t(t){return t.reduce(function(t,e){return Object.keys(e).forEach(function(i){var n=t[i];n?Array.isArray(n)?n.push(e[i]):t[i]=[t[i],e[i]]:t[i]=e[i]}),t},{})}function e(t){if(Array.isArray(t))return t.map(e);if(t&&"object"===("undefined"==typeof t?"undefined":s["typeof"](t))){for(var i={},n=Object.keys(t),a=0,o=n.length;o>a;a++){var r=n[a];i[r]=e(t[r])}return i}return t}function i(t){if(!l){var e=t.$watch("__vuex__",function(t){return t});l=t._watchers[0].constructor,e()}return l}function n(t){return u||(u=t._data.__ob__.dep.constructor),u}function a(t){function e(){var t=this.$options,e=t.store,i=t.vuex;if(e?this.$store=e:t.parent&&t.parent.$store&&(this.$store=t.parent.$store),i){this.$store||console.warn("[vuex] store not injected. make sure to provide the store option in your root component.");var n=i.state,a=i.getters,r=i.actions;if(n&&!a&&(console.warn("[vuex] vuex.state option will been deprecated in 1.0. Use vuex.getters instead."),a=n),a){t.computed=t.computed||{};for(var l in a)o(this,l,a[l])}if(r){t.methods=t.methods||{};for(var u in r)t.methods[u]=s(r[u],this.$store)}}}function a(){throw new Error("vuex getter properties are read-only.")}function o(t,e,i){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:r(t.$store,i),set:a})}function r(t,e){var a=t._getterCacheId;if(e[a])return e[a];var o=t._vm,r=i(o),s=n(o),l=new r(o,function(t){return e(t)},null,{lazy:!0}),u=function(){return l.dirty&&l.evaluate(),s.target&&l.depend(),l.value};return e[a]=u,u}function s(t,e){return function(){for(var i=arguments.length,n=Array(i),a=0;i>a;a++)n[a]=arguments[a];return t.call.apply(t,[this,e].concat(n))}}var l=t.prototype._init;t.prototype._init=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];t.init=t.init?[e].concat(t.init):e,l.call(this,t)};var u=t.config.optionMergeStrategies.computed;t.config.optionMergeStrategies.vuex=function(t,e){return t?e?{getters:u(t.getters,e.getters),state:u(t.state,e.state),actions:u(t.actions,e.actions)}:t:e}}function o(t){d=t,a(d)}function r(){console.warn("[vuex] Vuex.createLogger has been deprecated.Use `import createLogger from 'vuex/logger' instead.")}var s={};s["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},s.classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},s.createClass=function(){function t(t,e){for(var i=0;in;n++)i[n]=arguments[n];m.apply(t,i)},!d)throw new Error("[vuex] must call Vue.use(Vuex) before creating a store instance.");var v=d.config.silent;d.config.silent=!0,this._vm=new d({data:a}),d.config.silent=v,this._setupModuleState(a,u),this._setupModuleMutations(u),this._setupMiddlewares(h,a),g&&this._setupMutationCheck()}return s.createClass(n,[{key:"dispatch",value:function(t){for(var i=this,n=arguments.length,a=Array(n>1?n-1:0),o=1;n>o;o++)a[o-1]=arguments[o];"object"===("undefined"==typeof t?"undefined":s["typeof"](t))&&t.type&&1===arguments.length&&(a=[t],t=t.type);var r=this._mutations[t],l=this._prevSnapshot,u=this.state,c=void 0,h=void 0;r?(this._dispatching=!0,Array.isArray(r)?r.forEach(function(t){return t.apply(void 0,[u].concat(s.toConsumableArray(a)))}):r.apply(void 0,[u].concat(s.toConsumableArray(a))),this._dispatching=!1,this._needSnapshots&&(c=this._prevSnapshot=e(u),h=e(a)),this._middlewares.forEach(function(e){e.onMutation&&(e.snapshot?e.onMutation({type:t,payload:h},c,l,i):e.onMutation({type:t,payload:a},u,i))})):console.warn("[vuex] Unknown mutation: "+t)}},{key:"watch",value:function(t,e,i){var n=this;return this._vm.$watch(function(){return"function"==typeof t?t(n.state):n._vm.$get(t)},e,i)}},{key:"hotUpdate",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.mutations,i=t.modules;this._rootMutations=this._mutations=e||this._rootMutations,this._setupModuleMutations(i||this._modules)}},{key:"_setupModuleState",value:function(t,e){var i=d.parsers.path.setPath;Object.keys(e).forEach(function(n){i(t,n,e[n].state||{})})}},{key:"_setupModuleMutations",value:function(e){var i=this._modules,n=d.parsers.path.getPath,a=[this._rootMutations];Object.keys(e).forEach(function(t){i[t]=e[t]}),Object.keys(i).forEach(function(t){var e=i[t];if(e&&e.mutations){var o={};Object.keys(e.mutations).forEach(function(i){var a=e.mutations[i];o[i]=function(e){for(var i=arguments.length,o=Array(i>1?i-1:0),r=1;i>r;r++)o[r-1]=arguments[r];a.apply(void 0,[n(e,t)].concat(o))}}),a.push(o)}}),this._mutations=t(a)}},{key:"_setupMutationCheck",value:function(){var t=this,e=i(this._vm);new e(this._vm,"$data",function(){if(!t._dispatching)throw new Error("[vuex] Do not mutate vuex store state outside mutation handlers.")},{deep:!0,sync:!0})}},{key:"_setupMiddlewares",value:function(t,i){var n=this;this._middlewares=[h].concat(t),this._needSnapshots=t.some(function(t){return t.snapshot}),this._needSnapshots&&console.log("[vuex] One or more of your middlewares are taking state snapshots for each mutation. Make sure to use them only during development.");var a=this._prevSnapshot=this._needSnapshots?e(i):null;this._middlewares.forEach(function(t){t.onInit&&t.onInit(t.snapshot?a:i,n)})}},{key:"state",get:function(){return this._vm._data},set:function(t){throw new Error("[vuex] Vuex root state is read only.")}}]),n}();"undefined"!=typeof window&&window.Vue&&o(window.Vue);var g={Store:f,install:o,createLogger:r};return g})},function(t,e,i){function n(t){this.group=new o.Group,this._symbolCtor=t||r}function a(t,e,i){var n=t.getItemLayout(e);return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(i&&i(e))&&"none"!==t.getItemVisual(e,"symbol")}var o=i(3),r=i(125),s=n.prototype;s.updateData=function(t,e){var i=this.group,n=t.hostModel,r=this._data,s=this._symbolCtor,l={itemStyle:n.getModel("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:n.getModel("itemStyle.emphasis").getItemStyle(),symbolRotate:n.get("symbolRotate"),symbolOffset:n.get("symbolOffset"),hoverAnimation:n.get("hoverAnimation"),labelModel:n.getModel("label.normal"),hoverLabelModel:n.getModel("label.emphasis")};t.diff(r).add(function(n){var o=t.getItemLayout(n);if(a(t,n,e)){var r=new s(t,n,l);r.attr("position",o),t.setItemGraphicEl(n,r),i.add(r)}}).update(function(u,c){var h=r.getItemGraphicEl(c),d=t.getItemLayout(u);return a(t,u,e)?(h?(h.updateData(t,u,l),o.updateProps(h,{position:d},n)):(h=new s(t,u),h.attr("position",d)),i.add(h),void t.setItemGraphicEl(u,h)):void i.remove(h)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)})}).execute(),this._data=t},s.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,i){var n=t.getItemLayout(i);e.attr("position",n)})},s.remove=function(t){var e=this.group,i=this._data;i&&(t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())},t.exports=n},function(t,e,i){var n=i(2),a=i(84),o=i(352),r=i(1);i(348),i(349),i(168),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!r.isArray(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=a.collect(t,e)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},function(t,e,i){var n=o(e.getComponent("axisPointer").coordSysAxesInfo,t.currTrigger,[t.x,t.y],t,t.dispatchAction||r.bind(i.dispatchAction,i),e,i,t.tooltipOption,t.highDownKey);return n})},function(t,e,i){function n(t){var e={};return h(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}function a(t,e){h([["start","startValue"],["end","endValue"]],function(i,n){var a=t._rangePropMode;null!=e[i[0]]?a[n]="percent":null!=e[i[1]]&&(a[n]="value")})}var o=i(1),r=i(16),s=i(2),l=i(8),u=i(127),c=i(370),h=o.each,d=u.eachAxisDim,p=s.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var a=n(t);this.mergeDefaultAndTheme(t,i),this.doInit(a)},mergeOption:function(t){var e=n(t);o.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;r.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),a(this,t),h([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,i,n,a){var o=this.dependentModels[e.axis][i],r=o.__dzAxisProxy||(o.__dzAxisProxy=new c(e.name,i,this,a));t[e.name+"_"+i]=r},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();d(function(e){var i=e.axisIndex;t[i]=l.normalizeToArray(t[i])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;d(function(i){null!=t[i.axisIndex]&&(e=!0)},this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var a="vertical"===e?"y":"x";n[a+"Axis"].length?(i[a+"AxisIndex"]=[0],t=!1):h(n.singleAxis,function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)})}t&&d(function(e){if(t){var n=[],a=this.dependentModels[e.axis];if(a.length&&!n.length)for(var o=0,r=a.length;r>o;o++)"category"===a[o].get("type")&&n.push(o);i[e.axisIndex]=n,n.length&&(t=!1)}},this),t&&this.ecModel.eachSeries(function(t){this._isSeriesHasAllAxesTypeOf(t,"value")&&d(function(e){var n=i[e.axisIndex],a=t.get(e.axisIndex),r=t.get(e.axisId),s=t.ecModel.queryComponents({mainType:e.axis,index:a,id:r})[0];if(__DEV__&&!s)throw new Error(e.axis+' "'+o.retrieve(a,r,0)+'" not found');a=s.componentIndex,o.indexOf(n,a)<0&&n.push(a)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(e){!t&&(t=e.name)},this),this.option.orient="y"===t?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,e){var i=!0;return d(function(n){var a=t.get(n.axisIndex),o=this.dependentModels[n.axis][a];o&&o.get("type")===e||(i=!1)},this),i},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return d(function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}},this),t},eachTargetAxis:function(t,e){var i=this.ecModel;d(function(n){h(this.get(n.axisIndex),function(a){t.call(e,n,a,this,i)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t,e){h(["start","end","startValue","endValue"],function(e){this.option[e]=t[e]},this),!e&&a(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e];for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e]},getRangePropMode:function(){return this._rangePropMode.slice()}});t.exports=p},function(t,e,i){var n=i(138);t.exports=n.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){function t(t,e,i,n){for(var a,o=0;op;p++)this._add&&this._add(h[p]);else this._add&&this._add(h)}}}},t.exports=n},function(t,e,i){var n=i(1);t.exports=function(t){for(var e=0;e=0||i&&n.indexOf(i,r)<0)){var s=this.getShallow(r);null!=s&&(a[t[o][0]]=s)}}return a}}},function(t,e,i){var n=i(1),a=i(204),o=i(10),r=function(t){t=t||{},a.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};r.prototype={constructor:r,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof r&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,a=this._children,o=n.indexOf(a,t);return 0>o?this:(a.splice(o,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof r&&t.delChildrenFromStorage(i)),e&&e.refresh(),this)},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e1&&(o=function(){for(var t in arguments)console.log(arguments[t])});var r=o;t.exports=r},function(t,e){"use strict";function i(t,e,i,n,a,o){for(var r=[],s=[],l=[],u=[],c=n-i,h=a-n,d=o-a,p=0;e>p;p++)r.push(parseFloat(i).toFixed(1)),s.push(c.toFixed(1)),l.push(h.toFixed(1)),u.push(d.toFixed(1));var f={name:"正常区间",stack:"alarm_region",type:"line",symbol:"none",yAxisIndex:t,areaStyle:{normal:{color:"#2EA910",opacity:.3}},itemStyle:{normal:{lineStyle:{color:"#2EA910",width:.3}}},data:r},g={name:"预警区间",type:"line",stack:"alarm_region",yAxisIndex:t,symbol:"none",areaStyle:{normal:{color:"#FF9400",opacity:.3}},itemStyle:{normal:{lineStyle:{color:"#FF9400",width:.3}}},data:s},m={name:"报警区间",stack:"alarm_region",type:"line",yAxisIndex:t,symbol:"none",areaStyle:{normal:{color:"#EB370E",opacity:.3}},itemStyle:{normal:{lineStyle:{color:"#EB370E",width:.3}}},data:l},v={name:"溢流区间",stack:"alarm_region",type:"line",symbol:"none",yAxisIndex:t,areaStyle:{normal:{color:"#EA5CEB",opacity:.3}},itemStyle:{normal:{lineStyle:{color:"#EA5CEB",width:.3}}},data:u};return[f,g,m,v]}function n(t,e,i,n){for(var a=[],o=[],r=i-n,s=0;e>s;s++)a.push(parseFloat(i).toFixed(1)),o.push(r.toFixed(1));var l={name:"管顶地面线",stack:"alarm_region",type:"line",symbol:"none",yAxisIndex:t,areaStyle:{normal:{color:"#CFDDEA",opacity:.5}},itemStyle:{normal:{lineStyle:{color:"#CFDDEA",width:.5}}},data:a},u={name:"",type:"line",stack:"alarm_region",yAxisIndex:t,symbol:"none",areaStyle:{normal:{color:"#FF9400",opacity:0}},itemStyle:{normal:{lineStyle:{color:"#FF9400",width:0}}},data:o};return[l,u]}function a(t){return[{id:1,name:"参考线",c:"true"},{id:0,name:"无",c:"false"}]}Object.defineProperty(e,"__esModule",{value:!0}),e.AlarmRegion=i,e.NodeTopRegion=n,e.RegionTypes=a},function(module,exports){"use strict";function ConvertLevelUnit(node_depth,bottom_height,diameter,link_offset,formula,accuracy,value){var acc=2;void 0!=accuracy&&null!=accuracy&&(acc=accuracy);var nd=node_depth,bh=bottom_height,dia=diameter,lo=link_offset,f=formula,fa=formula;if(value=parseFloat(value),void 0==f||null==f)return value.toFixed(acc);if(f.indexOf("cv")>0&&(fa=f.replace(/{cv}/g,value)),f.indexOf("bottom_height")>0&&(fa=fa.replace(/{bottom_height}/g,bh)),f.indexOf("node_depth")>0&&(fa=fa.replace(/{node_depth}/g,nd)),f.indexOf("bind_link_offset")>0&&(fa=fa.replace(/{bind_link_offset}/g,lo)),f.indexOf("bind_link_diameter")>0&&(fa=fa.replace(/{bind_link_diameter}/g,dia)),"液位充满度"==f&&diameter>0)return parseFloat(value/diameter).toFixed(acc);var after=value;return after=eval(fa),after=after.toFixed(acc),"NaN"!=after&&"Infinity"!=after||(after=0),parseFloat(after)}function ConvertLevelYMin(node_depth,bottom_height,diameter,link_offset,formula,min){var nd=node_depth,bh=bottom_height,dia=diameter,lo=link_offset,f=formula,fa=formula;if(void 0==f||null==f)return min;f.indexOf("cv")>0&&(fa=f.replace(/{cv}/g,min)),f.indexOf("bottom_height")>0&&(fa=f.replace(/{bottom_height}/g,bh)),f.indexOf("node_depth")>0&&(fa=fa.replace(/{node_depth}/g,nd)),f.indexOf("bind_link_offset")>0&&(fa=fa.replace(/{bind_link_offset}/g,lo)),f.indexOf("bind_link_diameter")>0&&(fa=fa.replace(/{bind_link_diameter}/g,dia)),f.indexOf("min")>0&&(fa=fa.replace(/{min}/g,dia));var after=eval(fa),acc=0;return after=after.toFixed(acc),parseFloat(after)}function ConvertLevelYMax(node_depth,bottom_height,diameter,link_offset,formula,max){var nd=node_depth,bh=bottom_height,dia=diameter,lo=link_offset,f=formula,fa=formula;if(void 0==f||null==f)return max;f.indexOf("cv")>0&&(fa=f.replace(/{cv}/g,max)),f.indexOf("bottom_height")>0&&(fa=f.replace(/{bottom_height}/g,bh)),f.indexOf("node_depth")>0&&(fa=fa.replace(/{node_depth}/g,nd)),f.indexOf("bind_link_offset")>0&&(fa=fa.replace(/{bind_link_offset}/g,lo)),f.indexOf("bind_link_diameter")>0&&(fa=fa.replace(/{bind_link_diameter}/g,dia)),f.indexOf("max")>0&&(fa=fa.replace(/{max}/g,dia));var after=eval(fa),acc=0;return after=after.toFixed(acc),parseFloat(after)}function ConvertFlowUnit(formula,acc,value){var f=formula,fa=formula;if(value=parseFloat(value),void 0==f||null==f)return value.toFixed(acc);f.indexOf("cv")>0&&(fa=f.replace(/{cv}/g,value));var after=value;return after=eval(fa),after=after.toFixed(acc),parseFloat(after)}function ToThousands(t){var e="",i=0;t=(t||0).toString();for(var n=t.length-1;n>=0;n--)i++,e=t.charAt(n)+e,i%3||0==n||(e=","+e);return e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConvertLevelUnit=ConvertLevelUnit,exports.ConvertLevelYMin=ConvertLevelYMin,exports.ConvertLevelYMax=ConvertLevelYMax,exports.ConvertFlowUnit=ConvertFlowUnit,exports.ToThousands=ToThousands},function(t,e,i){"use strict";function n(t){return null==t.value?t:t.value}var a=i(13),o=i(25),r=i(294),s=i(1),l={_baseAxisDim:null,getInitialData:function(t,e){var i,r,s=e.getComponent("xAxis",this.get("xAxisIndex")),l=e.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),c=l.get("type");"category"===u?(t.layout="horizontal",i=s.getCategories(),r=!0):"category"===c?(t.layout="vertical",i=l.getCategories(),r=!0):t.layout=t.layout||"horizontal",this._baseAxisDim="horizontal"===t.layout?"x":"y";var h=t.data,d=this.dimensions=["base"].concat(this.valueDimensions);o(d,h);var p=new a(d,this);return p.initData(h,i?i.slice():null,function(t,e,i,a){var o=n(t);return r?"base"===e?i:o[a-1]:o[a]}),p},coordDimToDataDim:function(t){var e=this.valueDimensions.slice(),i=["base"],n={horizontal:{x:i,y:e},vertical:{x:e,y:i}};return n[this.get("layout")][t]},dataDimToCoordDim:function(t){var e;return s.each(["x","y"],function(i,n){var a=this.coordDimToDataDim(i);s.indexOf(a,t)>=0&&(e=i)},this),e},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}},u={init:function(){var t=this._whiskerBoxDraw=new r(this.getStyleUpdater());this.group.add(t.group)},render:function(t,e,i){this._whiskerBoxDraw.updateData(t.getData())},remove:function(t){this._whiskerBoxDraw.remove()}};t.exports={seriesModelMixin:l,viewMixin:u}},function(t,e,i){function n(t,e,i){var n=e.getComponent("tooltip"),o=e.getComponent("axisPointer"),s=o.get("link",!0)||[],u=[];h(i.getCoordinateSystems(),function(i){function c(n,c,h){var d=h.model.getModel("axisPointer",o),p=d.get("show");if(p&&("auto"!==p||n||l(d))){null==c&&(c=d.get("triggerTooltip")),d=n?a(h,v,o,e,n,c):d;var m=d.get("snap"),y=f(h.model),x=c||m||"category"===h.type,_=t.axesInfo[y]={key:y,axis:h,coordSys:i,axisPointerModel:d,triggerTooltip:c,involveSeries:x,snap:m,useHandle:l(d),seriesModels:[]};g[y]=_,t.seriesInvolved|=x;var b=r(s,h);if(null!=b){var w=u[b]||(u[b]={axesInfo:{}});w.axesInfo[y]=_,w.mapper=s[b].mapper,_.linkGroup=w}}}if(i.axisPointerEnabled){var p=f(i.model),g=t.coordSysAxesInfo[p]={};t.coordSysMap[p]=i;var m=i.model,v=m.getModel("tooltip",n);if(h(i.getAxes(),d(c,!1,null)),i.getTooltipAxes&&n&&v.get("show")){var y="axis"===v.get("trigger"),x="cross"===v.get("axisPointer.type"),_=i.getTooltipAxes(v.get("axisPointer.axis"));(y||x)&&h(_.baseAxes,d(c,x?"cross":!0,y)),x&&h(_.otherAxes,d(c,"cross",!1))}}})}function a(t,e,i,n,a,o){var r=e.getModel("axisPointer"),s={};h(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=u.clone(r.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===r.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===a&&(l.show=!0,!o)){var d=s.lineStyle=r.get("crossStyle");d&&u.defaults(l.textStyle||(l.textStyle={}),d.textStyle)}return t.model.getModel("axisPointer",new c(s,i,n))}function o(t,e){e.eachSeries(function(e){var i=e.coordinateSystem,n=e.get("tooltip.trigger",!0);i&&"none"!==n&&n!==!1&&"item"!==n&&e.get("axisPointer.show",!0)!==!1&&h(t.coordSysAxesInfo[f(i.model)],function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())})},this)}function r(t,e){for(var i=e.model,n=e.dim,a=0;a=0||t===e}function l(t){return!!t.get("handle.show")}var u=i(1),c=i(12),h=u.each,d=u.curry,p={};p.collect=function(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n(i,t,e),i.seriesInvolved&&o(i,t),i},p.fixValue=function(t){var e=p.getAxisInfo(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,a=i.option,o=i.get("status"),r=i.get("value");null!=r&&(r=n.parse(r));var s=l(i);null==o&&(a.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==r||r>u[1])&&(r=u[1]),r0?1.1:1/1.1;u.call(this,t,e,t.offsetX,t.offsetY)}}function l(t){if(!p.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;u.call(this,t,e,t.pinchX,t.pinchY)}}function u(t,e,i,n){this.pointerChecker&&this.pointerChecker(t,i,n)&&(d.stop(t.event),this.trigger("zoom",e,i,n))}var c=i(49),h=i(1),d=i(35),p=i(180);h.mixin(n,c),t.exports=n},function(t,e){t.exports=function(t,e,i,n,a){function o(t,e,i){var n=e.length?e.slice():[e,e];return e[0]>e[1]&&n.reverse(),0>t&&n[0]+t0&&n[1]+t>i[1]&&(t=i[1]-n[1]),t}return t?("rigid"===n?(t=o(t,e,i),e[0]+=t,e[1]+=t):(t=o(t,e[a],i),e[a]+=t,"push"===n&&e[0]>e[1]&&(e[1-a]=e[a])),e):e}},function(t,e,i){var n=i(193),a=i(1),o=i(15),r=i(9),s=["value","category","time","log"];t.exports=function(t,e,i,l){a.each(s,function(o){e.extend({type:t+"Axis."+o,mergeDefaultAndTheme:function(e,n){var s=this.layoutMode,l=s?r.getLayoutParams(e):{},u=n.getTheme();a.merge(e,u.get(o+"Axis")),a.merge(e,this.getDefaultOption()),e.type=i(t,e),s&&r.mergeLayoutParam(e,l,s)},defaultOption:a.mergeAll([{},n[o+"Axis"],l],!0)})}),o.registerSubTypeDefaulter(t+"Axis",a.curry(i,t))}},function(t,e,i){function n(t,e){var i=t.get("boundingCoords");if(null!=i){var n=i[0],a=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(a[0])||isNaN(a[1])?__DEV__&&console.error("Invalid boundingCoords"):this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1]); }var o,s=this.getBoundingRect(),u=t.get("layoutCenter"),c=t.get("layoutSize"),h=e.getWidth(),d=e.getHeight(),p=t.get("aspectScale")||.75,f=s.width/s.height*p,g=!1;u&&c&&(u=[l.parsePercent(u[0],h),l.parsePercent(u[1],d)],c=l.parsePercent(c,Math.min(h,d)),isNaN(u[0])||isNaN(u[1])||isNaN(c)?__DEV__&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):g=!0);var m;if(g){var m={};f>1?(m.width=c,m.height=c/f):(m.height=c,m.width=c*f),m.y=u[1]-m.height/2,m.x=u[0]-m.width/2}else o=t.getBoxLayoutParams(),o.aspect=f,m=r.getLayoutRect(o,{width:h,height:d});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function a(t,e){s.each(e.get("geoCoord"),function(e,i){t.addGeoCoord(i,e)})}var o=i(438),r=i(9),s=i(1),l=i(4),u={};if(__DEV__)var c=function(t){console.error("Map "+t+" not exists. You can download map file on http://echarts.baidu.com/download-map.html")};var h={dimensions:o.prototype.dimensions,create:function(t,e){var i=[];t.eachComponent("geo",function(t,r){var s=t.get("map"),l=u[s];__DEV__&&(l||c(s));var h=new o(s+r,s,l&&l.geoJson,l&&l.specialAreas,t.get("nameMap"));h.zoomLimit=t.get("scaleLimit"),i.push(h),a(h,t),t.coordinateSystem=h,h.model=t,h.resize=n,h.resize(t,e)}),t.eachSeries(function(t){var e=t.get("coordinateSystem");if("geo"===e){var n=t.get("geoIndex")||0;t.coordinateSystem=i[n]}});var r={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}}),s.each(r,function(t,r){var l=u[r];__DEV__&&(l||c(t[0].get("map")));var h=s.map(t,function(t){return t.get("nameMap")}),d=new o(r,r,l&&l.geoJson,l&&l.specialAreas,s.mergeAll(h));d.zoomLimit=s.retrieve.apply(null,s.map(t,function(t){return t.get("scaleLimit")})),i.push(d),d.resize=n,d.resize(t[0],e),s.each(t,function(t){t.coordinateSystem=d,a(d,t)})}),i},registerMap:function(t,e,i){e.geoJson&&!e.features&&(i=e.specialAreas,e=e.geoJson),"string"==typeof e&&(e="undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),u[t]={geoJson:e,specialAreas:i}},getMap:function(t){return u[t]},getFilledRegions:function(t,e){var i=(t||[]).slice(),n=h.getMap(e),a=n&&n.geoJson;if(!a)return __DEV__&&c(e),t;for(var o={},r=a.features,s=0;se[1]&&(e[1]=t[1]),l.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){return this._interval||this.niceTicks(),r.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;ii&&(i=-i,e.reverse());var n=r.intervalScaleNiceTicks(e,t);this._intervalPrecision=n.intervalPrecision,this._interval=n.interval,this._niceExtent=n.niceTickExtent}},niceExtent:function(t,e,i){var n=this._extent;if(n[0]===n[1])if(0!==n[0]){var a=n[0];i?n[0]-=a/2:(n[1]+=a/2,n[0]-=a/2)}else n[1]=1;var o=n[1]-n[0];isFinite(o)||(n[0]=0,n[1]=1),this.niceTicks(t);var r=this._interval;e||(n[0]=s(Math.floor(n[0]/r)*r)),i||(n[1]=s(Math.ceil(n[1]/r)*r))}});l.create=function(){return new l},t.exports=l},function(t,e,i){function n(t){this._setting=t||{},this._extent=[1/0,-(1/0)],this._interval=0,this.init&&this.init.apply(this,arguments)}var a=i(34),o=n.prototype;o.parse=function(t){return t},o.getSetting=function(t){return this._setting[t]},o.contain=function(t){var e=this._extent;return t>=e[0]&&t<=e[1]},o.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},o.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},o.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},o.unionExtentFromData=function(t,e){this.unionExtent(t.getDataExtent(e,!0))},o.getExtent=function(){return this._extent.slice()},o.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},o.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;ig;g++){var v=f[g];p[v]&&p[v].applyVisual(t,l,u)}}var h={};a.each(t,function(t){var i=o.prepareVisualTypes(e[t]);h[t]=i});var d;null==s?i.each(c,!0):i.each([s],c,!0)}};t.exports=s},function(t,e){var i=1;"undefined"!=typeof window&&(i=Math.max(window.devicePixelRatio||1,1));var n=0,a=i;e.debugMode=n,e.devicePixelRatio=a},function(t,e,i){function n(t){t=t||{},r.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new o(t.style,this),this._rect=null,this.__clipPaths=[]}var a=i(1),o=i(216),r=i(204),s=i(219);n.prototype={constructor:n,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:-1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();return n.contain(i[0],i[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?r.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new o(t,this),this.dirty(!1),this}},a.inherits(n,r),a.mixin(n,s);var l=n;t.exports=l},function(t,e){var i=function(t){this.colorStops=t||[]};i.prototype={constructor:i,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}};var n=i;t.exports=n},function(t,e,i){function n(t){return a(t),M(t.rich,a),t}function a(t){if(t){t.font=L.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||P[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||k[i]?i:"top";var n=t.textPadding;n&&(t.textPadding=A(t.textPadding))}}function o(t,e,i,n,a){n.rich?s(t,e,i,n,a):r(t,e,i,n,a)}function r(t,e,i,n,a){var o=g(e,"font",n.font||L.DEFAULT_FONT),r=n.textPadding,s=t.__textCotentBlock;s&&!t.__dirty||(s=t.__textCotentBlock=L.parsePlainText(i,o,r,n.truncate));var l=s.outerHeight,c=s.lines,p=s.lineHeight,y=f(l,n,a),_=y.baseX,b=y.baseY,w=y.textAlign,S=y.textVerticalAlign;u(e,n,a,_,b);var M=L.adjustTextY(b,l,S),A=_,T=M,I=h(n);if(I||r){var C=L.getWidth(i,o),D=C;r&&(D+=r[1]+r[3]);var P=L.adjustTextX(_,D,w);I&&d(t,e,n,P,M,D,l),r&&(A=x(_,w,r),T+=r[0])}g(e,"textAlign",w||"left"),g(e,"textBaseline","middle"),g(e,"shadowBlur",n.textShadowBlur||0),g(e,"shadowColor",n.textShadowColor||"transparent"),g(e,"shadowOffsetX",n.textShadowOffsetX||0),g(e,"shadowOffsetY",n.textShadowOffsetY||0),T+=p/2;var k=n.textStrokeWidth,E=m(n.textStroke,k),O=v(n.textFill);E&&(g(e,"lineWidth",k),g(e,"strokeStyle",E)),O&&g(e,"fillStyle",O);for(var z=0;zk&&(A=I[k],!A.textAlign||"left"===A.textAlign);)c(t,e,A,n,D,w,E,"left"),P-=A.width,E+=A.width,k++;for(;z>=0&&(A=I[z],"right"===A.textAlign);)c(t,e,A,n,D,w,O,"right"),P-=A.width,O-=A.width,z--;for(E+=(o-(E-b)-(S-O)-P)/2;z>=k;)A=I[k],c(t,e,A,n,D,w,E+A.width/2,"center"),E+=A.width,k++;w+=D}}function u(t,e,i,n,a){if(i&&e.textRotation){var o=e.textOrigin;"center"===o?(n=i.width/2+i.x,a=i.height/2+i.y):o&&(n=o[0]+i.x,a=o[1]+i.y),t.translate(n,a),t.rotate(-e.textRotation),t.translate(-n,-a)}}function c(t,e,i,n,a,o,r,s){var l=n.rich[i.styleName]||{},u=i.textVerticalAlign,c=o+a/2;"top"===u?c=o+i.height/2:"bottom"===u&&(c=o+a-i.height/2),!i.isLineHolder&&h(l)&&d(t,e,l,"right"===s?r-i.width:"center"===s?r-i.width/2:r,c-i.height/2,i.width,i.height);var p=i.textPadding;p&&(r=x(r,s,p),c-=i.height/2-p[2]-i.textHeight/2),g(e,"shadowBlur",S(l.textShadowBlur,n.textShadowBlur,0)),g(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),g(e,"shadowOffsetX",S(l.textShadowOffsetX,n.textShadowOffsetX,0)),g(e,"shadowOffsetY",S(l.textShadowOffsetY,n.textShadowOffsetY,0)),g(e,"textAlign",s),g(e,"textBaseline","middle"),g(e,"font",i.font||L.DEFAULT_FONT);var f=m(l.textStroke||n.textStroke,_),y=v(l.textFill||n.textFill),_=w(l.textStrokeWidth,n.textStrokeWidth);f&&(g(e,"lineWidth",_),g(e,"strokeStyle",f),e.strokeText(i.text,r,c)),y&&(g(e,"fillStyle",y),e.fillText(i.text,r,c))}function h(t){return t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor}function d(t,e,i,n,a,o,r){var s=i.textBackgroundColor,l=i.textBorderWidth,u=i.textBorderColor,c=T(s);if(g(e,"shadowBlur",i.textBoxShadowBlur||0),g(e,"shadowColor",i.textBoxShadowColor||"transparent"),g(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),g(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),c||l&&u){e.beginPath();var h=i.textBorderRadius;h?C.buildPath(e,{x:n,y:a,width:o,height:r,r:h}):e.rect(n,a,o,r),e.closePath()}if(c)g(e,"fillStyle",s),e.fill();else if(I(s)){var d=s.image;d=D.createOrUpdateImage(d,null,t,p,s),d&&D.isImageReady(d)&&e.drawImage(d,n,a,o,r)}l&&u&&(g(e,"lineWidth",l),g(e,"strokeStyle",u),e.stroke())}function p(t,e){e.image=t}function f(t,e,i){var n=e.x||0,a=e.y||0,o=e.textAlign,r=e.textVerticalAlign;if(i){var s=e.textPosition;if(s instanceof Array)n=i.x+y(s[0],i.width),a=i.y+y(s[1],i.height);else{var l=L.adjustTextPositionOnRect(s,i,e.textDistance);n=l.x,a=l.y,o=o||l.textAlign,r=r||l.textVerticalAlign}var u=e.textOffset;u&&(n+=u[0],a+=u[1])}return{baseX:n,baseY:a,textAlign:o,textVerticalAlign:r}}function g(t,e,i){return t[e]=i,t[e]}function m(t,e){return null==t||0>=e||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function v(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function y(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function x(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function _(t,e){return null!=t&&(t||e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor||e.textPadding)}var b=i(1),w=b.retrieve2,S=b.retrieve3,M=b.each,A=b.normalizeCssArray,T=b.isString,I=b.isObject,L=i(32),C=i(218),D=i(144),P={left:1,right:1,center:1},k={top:1,bottom:1,middle:1};e.normalizeTextStyle=n,e.renderText=o,e.getStroke=m,e.getFill=v,e.needDrawText=_},function(t,e,i){"use strict";var n=i(104)["default"];e["default"]=function(t){return t&&t.constructor===n?"symbol":typeof t},e.__esModule=!0},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){var n=i(99);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,a){return t.call(e,i,n,a)}}return function(){return t.apply(e,arguments)}}},function(t,e){},function(t,e,i){function n(t){return t&&t.__esModule?t:{"default":t}}var a,o,r=i(98),s=n(r);$.fn.dropDownList=function(){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function e(){if(r.find("a").removeClass("current"),a[0].selectedOptions.length){var t=$(a[0].selectedOptions[0]).data("item");t.addClass("current"),o.text(t.data("option").text())}}function i(t){for(var n=0;n');s.text(o.text()),s.data("option",o),o.data("item",s),s.click(function(){$(this).data("option").prop("selected",!0),e(),a.change()}),r.append(s)}else if(o.is("optgroup")){var l=$("");l.text(o.attr("label")),r.append(l),i(o.children()),r.append($("
"))}}}if(!this.length)return this;var n=t()+t()+t()+t(),a=this,o=$('').insertBefore(a);o.attr("class",a.attr("class")),o.addClass("f-dropdown"),o.attr("f-panel-position",a.attr("f-panel-position")),o.click(function(){e()});var r=$('
').appendTo($("body"));a.children();r.empty(),i(a.children()),e(),a.click(function(){$(a[0].selectedOptions[0]).data("item").click()}),a.hide(),a.data("dropDownList",{refreshValue:function(){r.empty(),i(a.children()),e()}})},$(function(){function t(t){var e=$("*[f-data-tab-group='"+t+"']");e.each(function(){var t=$(this);$(t.attr("f-data-tab-content")).hide(),t.hasClass("current")&&$(t.attr("f-data-tab-content")).show()})}$(".f-panel").hide(),$("body").click(function(t){$(".f-panel").each(function(){var e=$(this);0!==e.find(t.target).length||0===$(e.data("f-toggle")).find(t.target).length&&e.data("f-toggle")!==t.target&&e.fadeOut()})}),$("body").on("click","*[f-panel-data]",function(t){$(".f-panel").fadeOut();var e=$(this),i=$(e.attr("f-panel-data"));if(i.data("f-toggle",this),!i.is(":visible")){i.click(function(t){"A"===t.target.tagName&&("false"===$(this).attr("f-panel-close")||$(this).fadeOut(100))});for(var n=(e.attr("f-panel-position")||"").split(","),a={},o=0;o-1?(t=parseFloat(t),t>1&&(t/=100),e*t):t.indexOf("px")>-1?parseInt(t,10):void 0)}Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),i=this,n=function(){},a=function(){return i.apply(this instanceof n&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return n.prototype=this.prototype,a.prototype=new n,a});for(var i=["ms","moz","webkit","o"],n=0;n0?1:-1},f.square=function(t){return f.sign(Math.sin(t*r))},f.sawtooth=function(t){return 2*(t-Math.floor(t+.5))},f.triangle=function(t){return Math.abs(f.sawtooth(t))},t.prototype.options={speed:10,rotate:0,ease:"Linear",wavesWidth:"95%"},t.prototype.setupWaveFns=function(){for(var t=-1,e=this.waves.length;++t0&&(this.ctx.translate(this.width/2,this.height/2),this.ctx.rotate(this.rotation),this.ctx.translate(-this.width/2,-this.height/2));++ea||o>n)&&(t.running=!1,t.update()),$(window).bind("scroll",function(){i=$(document).scrollTop(),n=$(document).scrollTop()+$(window).height(),a=e.offset().top+e.height(),o=e.offset().top,i>a||o>n?(t.running=!1,t.update()):(t.running=!0,t.update())})}},100)})})},function(t,e,i){t.exports={"default":i(105),__esModule:!0}},function(t,e,i){t.exports={"default":i(106),__esModule:!0}},function(t,e,i){i(120),t.exports=i(23).Object.keys},function(t,e,i){i(122),i(121),t.exports=i(23).Symbol},function(t,e,i){var n=i(113);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){var n=i(18);t.exports=function(t){var e=n.getKeys(t),i=n.getSymbols;if(i)for(var a,o=i(t),r=n.isEnum,s=0;o.length>s;)r.call(t,a=o[s++])&&e.push(a);return e}},function(t,e,i){var n=i(38),a=i(18).getNames,o={}.toString,r="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return a(t)}catch(e){return r.slice()}};t.exports.get=function(t){return r&&"[object Window]"==o.call(t)?s(t):a(n(t))}},function(t,e,i){var n=i(18),a=i(65);t.exports=i(63)?function(t,e,i){return n.setDesc(t,e,a(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(62);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,i){var n=i(62);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,i){var n=i(18),a=i(38);t.exports=function(t,e){for(var i,o=a(t),r=n.getKeys(o),s=r.length,l=0;s>l;)if(o[i=r[l++]]===e)return i}},function(t,e){t.exports=!0},function(t,e,i){var n=i(60),a=i(23),o=i(37);t.exports=function(t,e){var i=(a.Object||{})[t]||Object[t],r={};r[t]=e(i),n(n.S+n.F*o(function(){i(1)}),"Object",r)}},function(t,e,i){t.exports=i(110)},function(t,e,i){var n=i(18).setDesc,a=i(64),o=i(68)("toStringTag");t.exports=function(t,e,i){t&&!a(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,i){var n=i(59);t.exports=function(t){return Object(n(t))}},function(t,e,i){var n=i(119);i(116)("keys",function(t){return function(e){return t(n(e))}})},function(t,e){},function(t,e,i){"use strict";var n=i(18),a=i(29),o=i(64),r=i(63),s=i(60),l=i(117),u=i(37),c=i(66),h=i(118),d=i(67),p=i(68),f=i(114),g=i(109),m=i(108),v=i(112),y=i(107),x=i(38),_=i(65),b=n.getDesc,w=n.setDesc,S=n.create,M=g.get,A=a.Symbol,T=a.JSON,I=T&&T.stringify,L=!1,C=p("_hidden"),D=n.isEnum,P=c("symbol-registry"),k=c("symbols"),E="function"==typeof A,O=Object.prototype,z=r&&u(function(){return 7!=S(w({},"a",{get:function(){return w(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=b(O,e);n&&delete O[e],w(t,e,i),n&&t!==O&&w(O,e,n)}:w,N=function(t){var e=k[t]=S(A.prototype);return e._k=t,r&&L&&z(O,t,{configurable:!0,set:function(e){o(this,C)&&o(this[C],t)&&(this[C][t]=!1),z(this,t,_(1,e))}}),e},R=function(t){return"symbol"==typeof t},F=function(t,e,i){return i&&o(k,e)?(i.enumerable?(o(t,C)&&t[C][e]&&(t[C][e]=!1),i=S(i,{enumerable:_(0,!1)})):(o(t,C)||w(t,C,_(1,{})),t[C][e]=!0),z(t,e,i)):w(t,e,i)},V=function(t,e){y(t);for(var i,n=m(e=x(e)),a=0,o=n.length;o>a;)F(t,i=n[a++],e[i]);return t},B=function(t,e){return void 0===e?S(t):V(S(t),e)},j=function(t){var e=D.call(this,t);return e||!o(this,t)||!o(k,t)||o(this,C)&&this[C][t]?e:!0},G=function(t,e){var i=b(t=x(t),e);return!i||!o(k,e)||o(t,C)&&t[C][e]||(i.enumerable=!0),i},W=function(t){for(var e,i=M(x(t)),n=[],a=0;i.length>a;)o(k,e=i[a++])||e==C||n.push(e);return n},H=function(t){for(var e,i=M(x(t)),n=[],a=0;i.length>a;)o(k,e=i[a++])&&n.push(k[e]);return n},$=function(t){if(void 0!==t&&!R(t)){for(var e,i,n=[t],a=1,o=arguments;o.length>a;)n.push(o[a++]);return e=n[1],"function"==typeof e&&(i=e),!i&&v(e)||(e=function(t,e){return i&&(e=i.call(this,t,e)),R(e)?void 0:e}),n[1]=e,I.apply(T,n)}},q=u(function(){var t=A();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))});E||(A=function(){if(R(this))throw TypeError("Symbol is not a constructor");return N(d(arguments.length>0?arguments[0]:void 0))},l(A.prototype,"toString",function(){return this._k}),R=function(t){return t instanceof A},n.create=B,n.isEnum=j,n.getDesc=G,n.setDesc=F,n.setDescs=V,n.getNames=g.get=W,n.getSymbols=H,r&&!i(115)&&l(O,"propertyIsEnumerable",j,!0));var U={"for":function(t){return o(P,t+="")?P[t]:P[t]=A(t)},keyFor:function(t){return f(P,t)},useSetter:function(){L=!0},useSimple:function(){L=!1}};n.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=p(t);U[t]=E?e:N(e)}),L=!0,s(s.G+s.W,{Symbol:A}),s(s.S,"Symbol",U),s(s.S+s.F*!E,"Object",{create:B,defineProperty:F,defineProperties:V,getOwnPropertyDescriptor:G,getOwnPropertyNames:W,getOwnPropertySymbols:H}),T&&s(s.S+s.F*(!E||q),"JSON",{stringify:$}),h(A,"Symbol"),h(Math,"Math",!0),h(a.JSON,"JSON",!0)},function(t,e,i){function n(t){return"_"+t+"Type"}function a(t,e,i){var n=e.getItemVisual(i,"color"),a=e.getItemVisual(i,t),o=e.getItemVisual(i,t+"Size");if(a&&"none"!==a){p.isArray(o)||(o=[o,o]);var r=u.createSymbol(a,-o[0]/2,-o[1]/2,o[0],o[1],n);return r.name=t,r}}function o(t){var e=new h({name:"line"});return r(e.shape,t),e}function r(t,e){var i=e[0],n=e[1],a=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,a?(t.cpx1=a[0],t.cpy1=a[1]):(t.cpx1=NaN,t.cpy1=NaN)}function s(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var a=1,o=this.parent;o;)o.scale&&(a/=o.scale[0]),o=o.parent;var r=t.childOfName("line");if(this.__dirty||r.__dirty){var s=r.shape.percent,l=r.pointAt(0),u=r.pointAt(s),h=c.sub([],u,l);if(c.normalize(h,h),e){e.attr("position",l);var d=r.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(d[1],d[0])),e.attr("scale",[a*s,a*s])}if(i){i.attr("position",u);var d=r.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(d[1],d[0])),i.attr("scale",[a*s,a*s])}if(!n.ignore){n.attr("position",u);var p,f,g,m=5*a;if("end"===n.__position)p=[h[0]*m+u[0],h[1]*m+u[1]],f=h[0]>.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var v=s/2,d=r.tangentAt(v),y=[d[1],-d[0]],x=r.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]),p=[x[0]+y[0]*m,x[1]+y[1]*m],f="center",g="bottom";var _=-Math.atan2(d[1],d[0]);u[0].8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||f},position:p,scale:[a,a]})}}}}function l(t,e,i){d.Group.call(this),this._createLine(t,e,i)}var u=i(26),c=i(5),h=i(293),d=i(3),p=i(1),f=i(4),g=["fromSymbol","toSymbol"],m=l.prototype;m.beforeUpdate=s,m._createLine=function(t,e,i){var r=t.hostModel,s=t.getItemLayout(e),l=o(s);l.shape.percent=0,d.initProps(l,{shape:{ percent:1}},r,e),this.add(l);var u=new d.Text({name:"label"});this.add(u),p.each(g,function(i){var o=a(i,t,e);this.add(o),this[n(i)]=t.getItemVisual(e,i)},this),this._updateCommonStl(t,e,i)},m.updateData=function(t,e,i){var o=t.hostModel,s=this.childOfName("line"),l=t.getItemLayout(e),u={shape:{}};r(u.shape,l),d.updateProps(s,u,o,e),p.each(g,function(i){var o=t.getItemVisual(e,i),r=n(i);if(this[r]!==o){this.remove(this.childOfName(i));var s=a(i,t,e);this.add(s)}this[r]=o},this),this._updateCommonStl(t,e,i)},m._updateCommonStl=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),o=i&&i.lineStyle,r=i&&i.hoverLineStyle,s=i&&i.labelModel,l=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var u=t.getItemModel(e);o=u.getModel("lineStyle.normal").getLineStyle(),r=u.getModel("lineStyle.emphasis").getLineStyle(),s=u.getModel("label.normal"),l=u.getModel("label.emphasis")}var c=t.getItemVisual(e,"color"),h=p.retrieve(t.getItemVisual(e,"opacity"),o.opacity,1);a.useStyle(p.defaults({strokeNoScale:!0,fill:"none",stroke:c,opacity:h},o)),a.hoverStyle=r,p.each(g,function(t){var e=this.childOfName(t);e&&(e.setColor(c),e.setStyle({opacity:h}))},this);var m,v,y=s.getShallow("show"),x=l.getShallow("show"),_=this.childOfName("label");if(y||x){var b=n.getRawValue(e);v=null==b?v=t.getName(e):isFinite(b)?f.round(b):b,m=c||"#000"}if(y){var w=s.getModel("textStyle");_.setStyle({text:p.retrieve(n.getFormattedLabel(e,"normal",t.dataType),v),textFont:w.getFont(),fill:w.getTextColor()||m}),_.__textAlign=w.get("align"),_.__verticalAlign=w.get("baseline"),_.__position=s.get("position")}else _.setStyle("text","");if(x){var S=l.getModel("textStyle");_.hoverStyle={text:p.retrieve(n.getFormattedLabel(e,"emphasis",t.dataType),v),textFont:S.getFont(),fill:S.getTextColor()||m}}else _.hoverStyle={text:""};_.ignore=!y&&!x,d.setHoverStyle(this)},m.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},m.setLinePoints=function(t){var e=this.childOfName("line");r(e.shape,t),e.dirty()},p.inherits(l,d.Group),t.exports=l},function(t,e,i){function n(t){return isNaN(t[0])||isNaN(t[1])}function a(t){return!n(t[0])&&!n(t[1])}function o(t){this._ctor=t||s,this.group=new r.Group}var r=i(3),s=i(123),l=o.prototype;l.updateData=function(t){var e=this._lineData,i=this.group,n=this._ctor,o=t.hostModel,r={lineStyle:o.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:o.getModel("lineStyle.emphasis").getLineStyle(),labelModel:o.getModel("label.normal"),hoverLabelModel:o.getModel("label.emphasis")};t.diff(e).add(function(e){if(a(t.getItemLayout(e))){var o=new n(t,e,r);t.setItemGraphicEl(e,o),i.add(o)}}).update(function(o,s){var l=e.getItemGraphicEl(s);return a(t.getItemLayout(o))?(l?l.updateData(t,o,r):l=new n(t,o,r),t.setItemGraphicEl(o,l),void i.add(l)):void i.remove(l)}).remove(function(t){i.remove(e.getItemGraphicEl(t))}).execute(),this._lineData=t},l.updateLayout=function(){var t=this._lineData;t.eachItemGraphicEl(function(e,i){e.updateLayout(t,i)},this)},l.remove=function(){this.group.removeAll()},t.exports=o},function(t,e,i){function n(t,e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array?i.slice():[+i,+i]}function a(t){return[t[0]/2,t[1]/2]}function o(t,e,i){u.Group.call(this),this.updateData(t,e,i)}function r(t,e){this.parent.drift(t,e)}var s=i(1),l=i(26),u=i(3),c=i(4),h=o.prototype;h._createSymbol=function(t,e,i,n){this.removeAll();var o=e.hostModel,s=e.getItemVisual(i,"color"),c=l.createSymbol(t,-1,-1,2,2,s);c.attr({z2:100,culling:!0,scale:[0,0]}),c.drift=r,u.initProps(c,{scale:a(n)},o,i),this._symbolType=t,this.add(c)},h.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},h.getSymbolPath=function(){return this.childAt(0)},h.getScale=function(){return this.childAt(0).scale},h.highlight=function(){this.childAt(0).trigger("emphasis")},h.downplay=function(){this.childAt(0).trigger("normal")},h.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},h.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},h.updateData=function(t,e,i){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",r=t.hostModel,s=n(t,e);if(o!==this._symbolType)this._createSymbol(o,t,e,s);else{var l=this.childAt(0);l.silent=!1,u.updateProps(l,{scale:a(s)},r,e)}this._updateCommon(t,e,s,i),this._seriesModel=r};var d=["itemStyle","normal"],p=["itemStyle","emphasis"],f=["label","normal"],g=["label","emphasis"];h._updateCommon=function(t,e,i,n){var o=this.childAt(0),r=t.hostModel,l=t.getItemVisual(e,"color");"image"!==o.type&&o.useStyle({strokeNoScale:!0}),n=n||null;var h=n&&n.itemStyle,m=n&&n.hoverItemStyle,v=n&&n.symbolRotate,y=n&&n.symbolOffset,x=n&&n.labelModel,_=n&&n.hoverLabelModel,b=n&&n.hoverAnimation;if(!n||t.hasItemOption){var w=t.getItemModel(e);h=w.getModel(d).getItemStyle(["color"]),m=w.getModel(p).getItemStyle(),v=w.getShallow("symbolRotate"),y=w.getShallow("symbolOffset"),x=w.getModel(f),_=w.getModel(g),b=w.getShallow("hoverAnimation")}else m=s.extend({},m);var S=o.style;o.attr("rotation",(v||0)*Math.PI/180||0),y&&o.attr("position",[c.parsePercent(y[0],i[0]),c.parsePercent(y[1],i[1])]),o.setColor(l),o.setStyle(h);var M=t.getItemVisual(e,"opacity");null!=M&&(S.opacity=M);for(var A,T,I=t.dimensions.slice();I.length&&(A=I.pop(),T=t.getDimensionInfo(A).type,"ordinal"===T||"time"===T););null!=A&&x.getShallow("show")?(u.setText(S,x,l),S.text=s.retrieve(r.getFormattedLabel(e,"normal"),t.get(A,e))):S.text="",null!=A&&_.getShallow("show")?(u.setText(m,_,l),m.text=s.retrieve(r.getFormattedLabel(e,"emphasis"),t.get(A,e))):m.text="",o.off("mouseover").off("mouseout").off("emphasis").off("normal"),o.hoverStyle=m,u.setHoverStyle(o);var L=a(i);if(b&&r.isAnimationEnabled()){var C=function(){var t=L[1]/L[0];this.animateTo({scale:[Math.max(1.1*L[0],L[0]+3),Math.max(1.1*L[1],L[1]+3*t)]},400,"elasticOut")},D=function(){this.animateTo({scale:L},400,"elasticOut")};o.on("mouseover",C).on("mouseout",D).on("emphasis",C).on("normal",D)}},h.fadeOut=function(t){var e=this.childAt(0);this.silent=e.silent=!0,e.style.text="",u.updateProps(e,{scale:[0,0]},this._seriesModel,this.dataIndex,t)},s.inherits(o,u.Group),t.exports=o},function(t,e,i){"use strict";function n(){}function a(t,e,i,n){o(p(i).lastProp,n)||(p(i).lastProp=n,e?d.updateProps(i,n,t):(i.stopAnimation(),i.attr(n)))}function o(t,e){if(c.isObject(t)&&c.isObject(e)){var i=!0;return c.each(e,function(e,n){i&=o(t[n],e)}),!!i}return t===e}function r(t,e){t[e.get("label.show")?"show":"hide"]()}function s(t){return{position:t.position.slice(),rotation:t.rotation||0}}function l(t,e){var i=t.get("icon"),n={x:-1,y:-1,width:2,height:2},a=c.extend({style:{strokeNoScale:!0},rectHover:!0,cursor:"move",draggable:!0},e);return 0===i.indexOf("image://")?(n.image=i.slice(8),a.style=n,new d.Image(a)):d.makePath(i.replace("path://",""),a,n,"center")}function u(t,e,i){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=a&&(t.zlevel=a),t.silent=i)})}var c=i(1),h=i(34),d=i(3),p=i(8).makeGetter(),f=i(84),g=i(35),m=i(54),v=c.clone,y=c.bind;n.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var o=e.get("value"),r=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==o||this._lastStatus!==r){this._lastValue=o,this._lastStatus=r;var s=this._group,l=this._handle;if(!r||"hide"===r)return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var h={};this.makeElOption(h,o,t,e,i);var p=h.graphicKey;p!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=p;var f=this._moveAnimation=this.determineAnimation(t,e);if(s){var g=c.curry(a,e,f);this.updatePointerEl(s,h,g,e),this.updateLabelEl(s,h,g,e)}else s=this._group=new d.Group,this.createPointerEl(s,h,t,e),this.createLabelEl(s,h,t,e),i.getZr().add(s);u(s,e,!0),this._renderHandle(o)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,a="category"===n.type,o=e.get("snap");if(!o&&!a)return!1;if("auto"===i||null==i){var r=this.animationThreshold;if(a&&n.getBandWidth()>r)return!0;if(o){var s=f.getAxisInfo(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>r}return!1}return i===!0},makeElOption:function(t,e,i,n,a){},createPointerEl:function(t,e,i,n){var a=e.pointer;if(a){var o=p(t).pointerEl=new d[a.type](v(e.pointer));t.add(o)}},createLabelEl:function(t,e,i,n){if(e.label){var a=p(t).labelEl=new d.Rect(v(e.label));t.add(a),r(a,n)}},updatePointerEl:function(t,e,i){var n=p(t).pointerEl;n&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var a=p(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{shape:e.label.shape,position:e.label.position}),r(a,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||"hide"===o)return n&&i.remove(n),void(this._handle=null);var r;this._handle||(r=!0,n=this._handle=l(a,{onmousemove:function(t){g.stop(t.event)},onmousedown:y(this._onHandleDragMove,this,0,0),drift:y(this._onHandleDragMove,this),ondragend:y(this._onHandleDragEnd,this)}),i.add(n)),u(n,e,!1);var s=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];n.setStyle(a.getItemStyle(null,s));var h=a.get("size");c.isArray(h)||(h=[h,h]),n.attr("scale",[h[0]/2,h[1]/2]),m.createOrUpdate(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)}},_moveHandleToValue:function(t,e){a(this._axisPointerModel,!e&&this._moveAnimation,this._handle,s(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(s(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(s(n)),p(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var t=this._handle;if(t){var e=this._payloadInfo,i={type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,highDownKey:"axisPointerHandle"},n=this._axisModel.axis;i[n.dim+"AxisId"]=this._axisModel.id,this._api.dispatchAction(i)}},_onHandleDragEnd:function(t){this._dragging=!1;var e=this._handle;if(e){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}},n.prototype.constructor=n,h.enableClassExtend(n),t.exports=n},function(t,e,i){var n=i(7),a=i(1),o={},r=["x","y","z","radius","angle","single"],s=["cartesian2d","polar","singleAxis"];o.isCoordSupported=function(t){return a.indexOf(s,t)>=0},o.createNameEach=function(t,e){t=t.slice();var i=a.map(t,n.capitalFirst);e=(e||[]).slice();var o=a.map(e,n.capitalFirst);return function(n,r){a.each(t,function(t,a){for(var s={name:t,capital:i[a]},l=0;l=0}function o(t,n){var o=!1;return e(function(e){a.each(i(t,e)||[],function(t){n.records[e.name][t]&&(o=!0)})}),o}function r(t,n){n.nodes.push(t),e(function(e){a.each(i(t,e)||[],function(t){n.records[e.name][t]=!0})})}return function(i){function a(t){!n(t,s)&&o(t,s)&&(r(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!i)return s;r(i,s);var l;do l=!1,t(a);while(l);return s}},t.exports=o},function(t,e,i){function n(t){__DEV__&&V.assert(t),F.call(this),this._zr=t,this.group=new B.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,__DEV__&&this._mounted,this._uid="brushController_"+it++,this._handlers={},H(nt,function(t,e){this._handlers[e]=V.bind(t,this)},this)}function a(t,e){var i=t._zr;t._enableGlobalPan||j.take(i,J,t._uid),H(t._handlers,function(t,e){i.on(e,t)}),t._brushType=e.brushType,t._brushOption=V.merge(V.clone(et),e,!0)}function o(t){var e=t._zr;j.release(e,J,t._uid),H(t._handlers,function(t,i){e.off(i,t)}),t._brushType=t._brushOption=null}function r(t,e){var i=at[e.brushType].createCover(t,e);return i.__brushOption=e,u(i,e),t.group.add(i),i}function s(t,e){var i=h(e);return i.endCreating&&(i.endCreating(t,e),u(e,e.__brushOption)),e}function l(t,e){var i=e.__brushOption;h(e).updateCoverShape(t,e,i.range,i)}function u(t,e){var i=e.z;null==i&&(i=Y),t.traverse(function(t){t.z=i,t.z2=i})}function c(t,e){h(e).updateCommon(t,e),l(t,e)}function h(t){return at[t.__brushOption.brushType]}function d(t,e,i){var n=t._panels;if(!n)return!0;var a,o=t._transform;return H(n,function(t){t.isTargetByCursor(e,i,o)&&(a=t)}),a}function p(t,e){var i=t._panels;if(!i)return!0;var n=e.__brushOption.panelId;return null!=n?i[n]:!0}function f(t){var e=t._covers,i=e.length;return H(e,function(e){t.group.remove(e)},t),e.length=0,!!i}function g(t,e){var i=$(t._covers,function(t){var e=t.__brushOption,i=V.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:i}});t.trigger("brush",i,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function m(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],a=i[0]-n[0],o=i[1]-n[1],r=Z(a*a+o*o,.5);return r>X}function v(t){var e=t.length-1;return 0>e&&(e=0),[t[0],t[e]]}function y(t,e,i,n){var a=new B.Group;return a.add(new B.Rect({name:"main",style:w(i),silent:!0,draggable:!0,cursor:"move",drift:W(t,e,a,"nswe"),ondragend:W(g,e,{isEnd:!0})})),H(n,function(i){a.add(new B.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:W(t,e,a,i),ondragend:W(g,e,{isEnd:!0})}))}),a}function x(t,e,i,n){var a=n.brushStyle.lineWidth||0,o=U(a,K),r=i[0][0],s=i[1][0],l=r-a/2,u=s-a/2,c=i[0][1],h=i[1][1],d=c-o+a/2,p=h-o+a/2,f=c-r,g=h-s,m=f+a,v=g+a;b(t,e,"main",r,s,f,g),n.transformable&&(b(t,e,"w",l,u,o,v),b(t,e,"e",d,u,o,v),b(t,e,"n",l,u,m,o),b(t,e,"s",l,p,m,o),b(t,e,"nw",l,u,o,o),b(t,e,"ne",d,u,o,o),b(t,e,"sw",l,p,o,o),b(t,e,"se",d,p,o,o))}function _(t,e){var i=e.__brushOption,n=i.transformable,a=e.childAt(0);a.useStyle(w(i)),a.attr({silent:!n,cursor:n?"move":"default"}),H(["w","e","n","s","se","sw","ne","nw"],function(i){var a=e.childOfName(i),o=A(t,i);a&&a.attr({silent:!n,invisible:!n,cursor:n?tt[o]+"-resize":null})})}function b(t,e,i,n,a,o,r){var s=e.childOfName(i);s&&s.setShape(D(C(t,e,[[n,a],[n+o,a+r]])))}function w(t){return V.defaults({strokeNoScale:!0},t.brushStyle)}function S(t,e,i,n){var a=[q(t,i),q(e,n)],o=[U(t,i),U(e,n)];return[[a[0],o[0]],[a[1],o[1]]]}function M(t){return B.getTransform(t.group)}function A(t,e){if(e.length>1){e=e.split("");var i=[A(t,e[0]),A(t,e[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},i=B.transformDirection(n[e],M(t));return a[i]}function T(t,e,i,n,a,o,r,s){var l=n.__brushOption,u=t(l.range),h=L(i,o,r);H(a.split(""),function(t){var e=Q[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(S(u[0][0],u[1][0],u[0][1],u[1][1])),c(i,n),g(i,{isEnd:!1})}function I(t,e,i,n,a){var o=e.__brushOption.range,r=L(t,i,n);H(o,function(t){t[0]+=r[0],t[1]+=r[1]}),c(t,e),g(t,{isEnd:!1})}function L(t,e,i){var n=t.group,a=n.transformCoordToLocal(e,i),o=n.transformCoordToLocal(0,0);return[a[0]-o[0],a[1]-o[1]]}function C(t,e,i){var n=p(t,e);return n&&n!==!0?n.clipPath(i,t._transform):V.clone(i)}function D(t){var e=q(t[0][0],t[1][0]),i=q(t[0][1],t[1][1]),n=U(t[0][0],t[1][0]),a=U(t[0][1],t[1][1]);return{x:e,y:i,width:n-e,height:a-i}}function P(t,e,i){if(t._brushType){var n=t._zr,a=t._covers,o=d(t,e,i);if(!t._dragging)for(var r=0;r"),a&&(r+=u(a),null!=i&&(r+=" : ")),null!=i&&(r+=u(n)),r},getData:function(){return this._data},setData:function(t){this._data=t}});o.mixin(c,a.dataFormatMixin),t.exports=c},function(t,e,i){t.exports=i(2).extendComponentView({type:"marker",init:function(){this.markerGroupMap={}},render:function(t,e,i){var n=this.markerGroupMap;for(var a in n)n.hasOwnProperty(a)&&(n[a].__keep=!1);var o=this.type+"Model";e.eachSeries(function(t){var n=t[o];n&&this.renderSeries(t,n,e,i)},this);for(var a in n)n.hasOwnProperty(a)&&!n[a].__keep&&this.group.remove(n[a].group)},renderSeries:function(){}})},function(t,e,i){function n(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function a(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function o(t,e,i){var n=-1;do n=Math.max(l.getPrecision(t.get(e,i)),n),t=t.stackedOn;while(t);return n}function r(t,e,i,n,a,r){var s=[],l=m(e,n,t),u=e.indicesOfNearest(n,l,!0)[0];s[a]=e.get(i,u,!0),s[r]=e.get(n,u,!0);var c=o(e,n,u);return c>=0&&(s[r]=+s[r].toFixed(c)),s}var s=i(1),l=i(4),u=s.indexOf,c=s.curry,h={min:c(r,"min"),max:c(r,"max"),average:c(r,"average")},d=function(t,e){var i=t.getData(),n=t.coordinateSystem;if(e&&!a(e)&&!s.isArray(e.coord)&&n){var o=n.dimensions,r=p(e,i,n,t);if(e=s.clone(e),e.type&&h[e.type]&&r.baseAxis&&r.valueAxis){var l=u(o,r.baseAxis.dim),c=u(o,r.valueAxis.dim);e.coord=h[e.type](i,r.baseDataDim,r.valueDataDim,l,c),e.value=e.coord[c]}else{for(var d=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],f=0;2>f;f++)if(h[d[f]]){var g=t.coordDimToDataDim(o[f])[0];d[f]=m(i,g,d[f])}e.coord=d}}return e},p=function(t,e,i,n){var a={};return null!=t.valueIndex||null!=t.valueDim?(a.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=i.getAxis(n.dataDimToCoordDim(a.valueDataDim)),a.baseAxis=i.getOtherAxis(a.valueAxis),a.baseDataDim=n.coordDimToDataDim(a.baseAxis.dim)[0]):(a.baseAxis=n.getBaseAxis(),a.valueAxis=i.getOtherAxis(a.baseAxis),a.baseDataDim=n.coordDimToDataDim(a.baseAxis.dim)[0],a.valueDataDim=n.coordDimToDataDim(a.valueAxis.dim)[0]),a},f=function(t,e){return t&&t.containData&&e.coord&&!n(e)?t.containData(e.coord):!0},g=function(t,e,i,n){return 2>n?t.coord&&t.coord[n]:t.value},m=function(t,e,i){if("average"===i){var n=0,a=0;return t.each(e,function(t,e){isNaN(t)||(n+=t,a++)},!0),n/a}return t.getDataExtent(e,!0)["max"===i?1:0]};t.exports={dataTransform:d,dataFilter:f,dimValueGetter:g,getAxisInfo:p,numCalculate:m}},function(t,e,i){function n(t,e,i){return t.getCoordSysModel()===e}function a(t){var e,i=t.model,n=i.getFormattedLabels(),a=i.getModel("axisLabel.textStyle"),o=1,r=n.length;r>40&&(o=Math.ceil(r/40));for(var s=0;r>s;s+=o)if(!t.isLabelIgnored(s)){var l=a.getTextRect(n[s]);e?e.union(l):e=l}return e}function o(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}function r(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}function s(t,e){return h.map(y,function(e){var i=t.getReferringComponents(e)[0];if(__DEV__&&!i)throw new Error(e+' "'+h.retrieve(t.get(e+"Index"),t.get(e+"Id"),0)+'" not found');return i})}function l(t){return"cartesian2d"===t.get("coordinateSystem")}var u=i(9),c=i(20),h=i(1),d=i(435),p=i(433),f=h.each,g=c.ifAxisCrossZero,m=c.niceScaleExtent;i(436);var v=o.prototype;v.type="grid",v.axisPointerEnabled=!0,v.getRect=function(){return this._rect},v.update=function(t,e){function i(t){var e=n[t];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];if(a&&("category"===a.type||!g(a)))return!0}return!1}var n=this._axesMap;this._updateScale(t,this.model),f(n.x,function(t){m(t.scale,t.model)}),f(n.y,function(t){m(t.scale,t.model)}),f(n.x,function(t){i("y")&&(t.onZero=!1)}),f(n.y,function(t){i("x")&&(t.onZero=!1)}),this.resize(this.model,e)},v.resize=function(t,e){function i(){f(o,function(t){var e=t.isHorizontal(),i=e?[0,n.width]:[0,n.height],a=t.inverse?1:0;t.setExtent(i[a],i[1-a]),r(t,e?n.x:n.y)})}var n=u.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=n;var o=this._axesList;i(),t.get("containLabel")&&(f(o,function(t){if(!t.model.get("axisLabel.inside")){var e=a(t);if(e){var i=t.isHorizontal()?"height":"width",o=t.model.get("axisLabel.margin");n[i]-=e[i]+o,"top"===t.position?n.y+=e.height+o:"left"===t.position&&(n.x+=e.width+o)}}}),i())},v.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i){if(null==e)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[e]}},v.getAxes=function(){return this._axesList.slice()},v.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}h.isObject(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n=0&&i.push(t)}),i}t.topologicalTravel=function(t,e,a,o){function r(t){u[t].entryCount--,0===u[t].entryCount&&c.push(t)}function s(t){h[t]=!0,r(t)}if(t.length){var l=i(e),u=l.graph,c=l.noEntryList,h={};for(n.each(t,function(t){h[t]=!0});c.length;){var d=c.pop(),p=u[d],f=!!h[d];f&&(a.call(o,d,p.originalDeps.slice()),delete h[d]),n.each(p.successor,f?s:r)}n.each(h,function(){throw new Error("Circle dependency may exists")})}}},t.exports=s},function(t,e,i){var n=i(79),a=i(137),o=i(34),r=function(){this.group=new n,this.uid=a.getUID("viewComponent")};r.prototype={constructor:r,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};var s=r.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,i,n){},o.enableClassExtend(r),o.enableClassManagement(r,{registerWhenExtend:!0}),t.exports=r},function(t,e){t.exports=function(t,e){var i={};e.eachRawSeriesByType(t,function(t){var n=t.getRawData(),a={};if(!e.isSeriesFiltered(t)){var o=t.getData();o.each(function(t){var e=o.getRawIndex(t);a[e]=t}),n.each(function(e){var r=a[e],s=null!=r&&o.getItemVisual(r,"color",!0);if(s)n.setItemVisual(e,"color",s);else{var l=n.getItemModel(e),u=l.get("itemStyle.normal.color")||t.getColorFromPalette(n.getName(e),i);n.setItemVisual(e,"color",u),null!=r&&o.setItemVisual(r,"color",u)}})}})}},function(t,e,i){function n(t,e,i){if(0!==t.length){var n,a=t[0],o=a[0],r=a[0],s=a[1],l=a[1];for(n=1;np;p++){var v=g(t,i,a,r,y[p]);l[0]=c(v,l[0]),d[0]=h(v,d[0])}for(m=f(e,n,o,s,x),p=0;m>p;p++){var _=g(e,n,o,s,x[p]);l[1]=c(_,l[1]),d[1]=h(_,d[1])}l[0]=c(t,l[0]),d[0]=h(t,d[0]),l[0]=c(r,l[0]),d[0]=h(r,d[0]),l[1]=c(e,l[1]),d[1]=h(e,d[1]),l[1]=c(s,l[1]),d[1]=h(s,d[1])}function r(t,e,i,n,a,o,r,s){var l=u.quadraticExtremum,d=u.quadraticAt,p=h(c(l(t,i,a),1),0),f=h(c(l(e,n,o),1),0),g=d(t,i,a,p),m=d(e,n,o,f);r[0]=c(t,a,g),r[1]=c(e,o,m),s[0]=h(t,a,g),s[1]=h(e,o,m)}function s(t,e,i,n,a,o,r,s,u){var c=l.min,h=l.max,y=Math.abs(a-o);if(1e-4>y%f&&y>1e-4)return s[0]=t-i,s[1]=e-n,u[0]=t+i,void(u[1]=e+n);if(g[0]=p(a)*i+t,g[1]=d(a)*n+e,m[0]=p(o)*i+t,m[1]=d(o)*n+e,c(s,g,m),h(u,g,m),a%=f,0>a&&(a+=f),o%=f,0>o&&(o+=f),a>o&&!r?o+=f:o>a&&r&&(a+=f),r){var x=o;o=a,a=x}for(var _=0;o>_;_+=Math.PI/2)_>a&&(v[0]=p(_)*i+t,v[1]=d(_)*n+e,c(s,v,s),h(u,v,u))}var l=i(5),u=i(43),c=Math.min,h=Math.max,d=Math.sin,p=Math.cos,f=2*Math.PI,g=l.create(),m=l.create(),v=l.create(),y=[],x=[];e.fromPoints=n,e.fromLine=a,e.fromCubic=o,e.fromQuadratic=r,e.fromArc=s},function(t,e){function i(t){for(var e=0;t>=c;)e|=1&t,t>>=1;return t+e}function n(t,e,i,n){var o=e+1;if(o===i)return 1;if(n(t[o++],t[e])<0){for(;i>o&&n(t[o],t[o-1])<0;)o++;a(t,e,o)}else for(;i>o&&n(t[o],t[o-1])>=0;)o++;return o-e}function a(t,e,i){for(i--;i>e;){var n=t[e];t[e++]=t[i],t[i--]=n}}function o(t,e,i,n,a){for(n===e&&n++;i>n;n++){for(var o,r=t[n],s=e,l=n;l>s;)o=s+l>>>1,a(r,t[o])<0?l=o:s=o+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=r}}function r(t,e,i,n,a,o){var r=0,s=0,l=1;if(o(t,e[i+a])>0){for(s=n-a;s>l&&o(t,e[i+a+l])>0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),r+=a,l+=a}else{for(s=a+1;s>l&&o(t,e[i+a-l])<=0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=r;r=a-l,l=a-u}for(r++;l>r;){var c=r+(l-r>>>1);o(t,e[i+c])>0?r=c+1:l=c}return l}function s(t,e,i,n,a,o){var r=0,s=0,l=1;if(o(t,e[i+a])<0){for(s=a+1;s>l&&o(t,e[i+a-l])<0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=r;r=a-l,l=a-u}else{for(s=n-a;s>l&&o(t,e[i+a+l])>=0;)r=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),r+=a,l+=a}for(r++;l>r;){var c=r+(l-r>>>1);o(t,e[i+c])<0?l=c:r=c+1}return l}function l(t,e){function i(t,e){c[y]=t,p[y]=e,y+=1}function n(){for(;y>1;){var t=y-2;if(t>=1&&p[t-1]<=p[t]+p[t+1]||t>=2&&p[t-2]<=p[t]+p[t-1])p[t-1]p[t+1])break;o(t)}}function a(){for(;y>1;){var t=y-2;t>0&&p[t-1]=a?l(n,a,o,h):u(n,a,o,h)))}function l(i,n,a,o){var l=0;for(l=0;n>l;l++)x[l]=t[i+l];var u=0,c=a,d=i;if(t[d++]=t[c++],0!==--o){if(1===n){for(l=0;o>l;l++)t[d+l]=t[c+l];return void(t[d+o]=x[u])}for(var p,g,m,v=f;;){p=0,g=0,m=!1;do if(e(t[c],x[u])<0){if(t[d++]=t[c++],g++,p=0,0===--o){m=!0;break}}else if(t[d++]=x[u++],p++,g=0,1===--n){m=!0;break}while(v>(p|g));if(m)break;do{if(p=s(t[c],x,u,n,0,e),0!==p){for(l=0;p>l;l++)t[d+l]=x[u+l];if(d+=p,u+=p,n-=p,1>=n){m=!0;break}}if(t[d++]=t[c++],0===--o){m=!0;break}if(g=r(x[u],t,c,o,0,e),0!==g){for(l=0;g>l;l++)t[d+l]=t[c+l];if(d+=g,c+=g,o-=g,0===o){m=!0;break}}if(t[d++]=x[u++],1===--n){m=!0;break}v--}while(p>=h||g>=h);if(m)break;0>v&&(v=0),v+=2}if(f=v,1>f&&(f=1),1===n){for(l=0;o>l;l++)t[d+l]=t[c+l];t[d+o]=x[u]}else{if(0===n)throw new Error;for(l=0;n>l;l++)t[d+l]=x[u+l]}}else for(l=0;n>l;l++)t[d+l]=x[u+l]}function u(i,n,a,o){var l=0;for(l=0;o>l;l++)x[l]=t[a+l];var u=i+n-1,c=o-1,d=a+o-1,p=0,g=0;if(t[d--]=t[u--],0!==--n){if(1===o){for(d-=n,u-=n,g=d+1,p=u+1,l=n-1;l>=0;l--)t[g+l]=t[p+l];return void(t[d]=x[c])}for(var m=f;;){var v=0,y=0,_=!1;do if(e(x[c],t[u])<0){if(t[d--]=t[u--],v++,y=0,0===--n){_=!0;break}}else if(t[d--]=x[c--],y++,v=0,1===--o){_=!0;break}while(m>(v|y));if(_)break;do{if(v=n-s(x[c],t,i,n,n-1,e),0!==v){for(d-=v,u-=v,n-=v,g=d+1,p=u+1,l=v-1;l>=0;l--)t[g+l]=t[p+l];if(0===n){_=!0;break}}if(t[d--]=x[c--],1===--o){_=!0;break}if(y=o-r(t[u],x,0,o,o-1,e),0!==y){for(d-=y,c-=y,o-=y,g=d+1,p=c+1,l=0;y>l;l++)t[g+l]=x[p+l];if(1>=o){_=!0;break}}if(t[d--]=t[u--],0===--n){_=!0;break}m--}while(v>=h||y>=h);if(_)break;0>m&&(m=0),m+=2}if(f=m,1>f&&(f=1),1===o){for(d-=n,u-=n,g=d+1,p=u+1,l=n-1;l>=0;l--)t[g+l]=t[p+l];t[d]=x[c]}else{if(0===o)throw new Error;for(p=d-(o-1),l=0;o>l;l++)t[p+l]=x[l]}}else for(p=d-(o-1),l=0;o>l;l++)t[p+l]=x[l]}var c,p,f=h,g=0,m=d,v=0,y=0;g=t.length,2*d>g&&(m=g>>>1);var x=[];v=120>g?5:1542>g?10:119151>g?19:40,c=[],p=[],this.mergeRuns=n,this.forceMergeRuns=a,this.pushRun=i}function u(t,e,a,r){a||(a=0),r||(r=t.length);var s=r-a;if(!(2>s)){var u=0;if(c>s)return u=n(t,a,r,e),void o(t,a,r,a+u,e);var h=new l(t,e),d=i(s);do{if(u=n(t,a,r,e),d>u){var p=s;p>d&&(p=d),o(t,a,a+p,a+u,e),u=p}h.pushRun(a,u),h.mergeRuns(),s-=u,a+=u}while(0!==s);h.forceMergeRuns()}}var c=32,h=7,d=256;t.exports=u},function(t,e,i){var n=i(1),a=i(96),o=function(t,e,i,n,o,r){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=r||!1,a.call(this,o)};o.prototype={constructor:o},n.inherits(o,a);var r=o;t.exports=r},function(t,e){var i=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};i.prototype.getCanvasPattern=function(t){return t.createPattern(this.image,this.repeat||"repeat")};var n=i;t.exports=n},function(t,e,i){function n(t){if("string"==typeof t){var e=l.get(t);return e&&e.image}return t}function a(t,e,i,n,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var s=l.get(t),u={hostEl:i,cb:n,cbPayload:a};return s?(e=s.image,!r(e)&&s.pending.push(u)):(!e&&(e=new Image),e.onload=o,l.put(t,e.__cachedImgObj={image:e,pending:[u]}),e.src=e.__zrImageSrc=t),e}return t}return e}function o(){var t=this.__cachedImgObj;this.onload=this.__cachedImgObj=null;for(var e=0;es||-s>t}var a=i(21),o=i(5),r=a.identity,s=5e-5,l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return n(this.rotation)||n(this.position[0])||n(this.position[1])||n(this.scale[0]-1)||n(this.scale[1]-1)},u.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;return i||e?(n=n||a.create(),i?this.getLocalTransform(n):r(n),e&&(i?a.mul(n,t.transform,n):a.copy(n,t.transform)),this.transform=n,this.invTransform=this.invTransform||a.create(),void a.invert(this.invTransform,n)):void(n&&r(n))},u.getLocalTransform=function(t){return l.getLocalTransform(this,t)},u.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},u.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var c=[];u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(a.mul(c,t.invTransform,e),e=c);var i=e[0]*e[0]+e[1]*e[1],o=e[2]*e[2]+e[3]*e[3],r=this.position,s=this.scale;n(i-1)&&(i=Math.sqrt(i)),n(o-1)&&(o=Math.sqrt(o)),e[0]<0&&(i=-i),e[3]<0&&(o=-o),r[0]=e[4],r[1]=e[5],s[0]=i,s[1]=o,this.rotation=Math.atan2(-e[1]/o,e[0]/i)}},u.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},u.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&o.applyTransform(i,i,n),i},u.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&o.applyTransform(i,i,n),i},l.getLocalTransform=function(t,e){e=e||[],r(e);var i=t.origin,n=t.scale||[1,1],o=t.rotation||0,s=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),a.scale(e,e,n),o&&a.rotate(e,e,o),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=s[0],e[5]+=s[1],e};var h=l;t.exports=h},function(t,e){function i(t){return document.createElementNS(n,t)}var n="http://www.w3.org/2000/svg";e.createElement=i},function(t,e,i){function n(t){return S(1e4*t)/1e4}function a(t){return C>t&&t>-C}function o(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==w}function r(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==w}function s(t,e){e&&l(t,"transform","matrix("+b.call(e,",")+")")}function l(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&t.setAttribute(e,i)}function u(t,e,i){t.setAttributeNS("http://www.w3.org/1999/xlink",e,i)}function c(t,e,i){if(o(e,i)){var n=i?e.textFill:e.fill;n="transparent"===n?w:n,"none"!==t.getAttribute("clip-path")&&n===w&&(n="rgba(0, 0, 0, 0.002)"),l(t,"fill",n),l(t,"fill-opacity",e.opacity)}else l(t,"fill",w);if(r(e,i)){var a=i?e.textStroke:e.stroke;a="transparent"===a?w:a,l(t,"stroke",a);var s=i?e.textStrokeWidth:e.lineWidth,u=e.strokeNoScale?e.host.getLineScale():1;l(t,"stroke-width",s/u),l(t,"paint-order","stroke"),l(t,"stroke-opacity",e.opacity);var c=e.lineDash;c?(l(t,"stroke-dasharray",e.lineDash.join(",")),l(t,"stroke-dashoffset",S(e.lineDashOffset||0))):l(t,"stroke-dasharray",""),e.lineCap&&l(t,"stroke-linecap",e.lineCap),e.lineJoin&&l(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&l(t,"stroke-miterlimit",e.miterLimit)}else l(t,"stroke",w)}function h(t){for(var e=[],i=t.data,o=t.len(),r=0;o>r;){var s=i[r++],l="",u=0;switch(s){case _.M:l="M",u=2;break;case _.L:l="L",u=2;break;case _.Q:l="Q",u=4;break;case _.C:l="C",u=6;break;case _.A:var c=i[r++],h=i[r++],d=i[r++],p=i[r++],f=i[r++],g=i[r++],m=i[r++],v=i[r++],y=Math.abs(g),x=a(y%I)&&!a(y),b=!1;b=y>=I?!0:a(y)?!1:(g>-T&&0>g||g>T)==!!v;var w=n(c+d*A(f)),C=n(h+p*M(f));x&&(g=v?I-1e-4:-I+1e-4,b=!0,9===r&&e.push("M",w,C));var D=n(c+d*A(f+g)),P=n(h+p*M(f+g));e.push("A",n(d),n(p),S(m*L),+b,+v,D,P);break;case _.Z:l="Z";break;case _.R:var D=n(i[r++]),P=n(i[r++]),k=n(i[r++]),E=n(i[r++]);e.push("M",D,P,"L",D+k,P,"L",D+k,P+E,"L",D,P+E,"L",D,P)}l&&e.push(l);for(var O=0;u>O;O++)e.push(n(i[r++]))}return e.join(" ")}function d(t){return"middle"===t?"middle":"bottom"===t?"baseline":"hanging"}var p=i(146),f=p.createElement,g=i(56),m=i(10),v=i(32),y=i(97),x=i(58),_=g.CMD,b=Array.prototype.join,w="none",S=Math.round,M=Math.sin,A=Math.cos,T=Math.PI,I=2*Math.PI,L=180/T,C=1e-4,D={};D.brush=function(t){var e=t.style,i=t.__svgEl;i||(i=f("path"),t.__svgEl=i),t.path||t.createPathProxy();var n=t.path;if(t.__dirtyPath){n.beginPath(),t.buildPath(n,t.shape),t.__dirtyPath=!1;var a=h(n);a.indexOf("NaN")<0&&l(i,"d",a)}c(i,e),s(i,t.transform),null!=e.text&&O(t,t.getBoundingRect())};var P={};P.brush=function(t){var e=t.style,i=e.image;if(i instanceof HTMLImageElement){var n=i.src;i=n}if(i){var a=e.x||0,o=e.y||0,r=e.width,c=e.height,h=t.__svgEl;h||(h=f("image"),t.__svgEl=h),i!==t.__imageSrc&&(u(h,"href",i),t.__imageSrc=i),l(h,"width",r),l(h,"height",c),l(h,"x",a),l(h,"y",o),s(h,t.transform),null!=e.text&&O(t,t.getBoundingRect())}};var k={},E=new m,O=function(t,e,i){var n=t.style;t.__dirty&&y.normalizeTextStyle(n,!0);var a=n.text;if(null!=a){a+="";var o=t.__textSvgEl;if(o||(o=f("text"),t.__textSvgEl=o),c(o,n,!0),t instanceof x||t.style.transformText)s(o,t.transform);else if(t.transform)E.copy(e),E.applyTransform(t.transform),e=E;else{var r=t.transformCoordToGlobal(e.x,e.y);e.x=r[0],e.y=r[1]}var u,h,p=n.textPosition,g=n.textDistance,m=n.textAlign||"left";"number"==typeof n.fontSize&&(n.fontSize+="px");var _=n.font||[n.fontStyle||"",n.fontWeight||"",n.fontSize||"",n.fontFamily||""].join(" ")||v.DEFAULT_FONT,b=d(n.textVerticalAlign);i=v.getBoundingRect(a,_,m,b);var w=i.lineHeight;if(p instanceof Array)u=e.x+p[0],h=e.y+p[1];else{var S=v.adjustTextPositionOnRect(p,e,g);u=S.x,h=S.y,b=d(S.textVerticalAlign),m=S.textAlign}l(o,"alignment-baseline",b),_&&(o.style.font=_);var M=n.textPadding;l(o,"x",u),l(o,"y",h);var A=a.split("\n"),T=A.length,I=m;"left"===I?(I="start",M&&(u+=M[3])):"right"===I?(I="end",M&&(u-=M[1])):"center"===I&&(I="middle",M&&(u+=(M[3]-M[1])/2));var L=0;if("baseline"===b?(L=-i.height+w,M&&(L-=M[2])):"middle"===b?(L=(-i.height+w)/2,M&&(h+=(M[0]-M[2])/2)):M&&(L+=M[0]),t.__text!==a||t.__textFont!==_){var C=t.__tspanList||[];t.__tspanList=C;for(var D=0;T>D;D++){var P=C[D];P?P.innerHTML="":(P=C[D]=f("tspan"),o.appendChild(P),l(P,"alignment-baseline",b),l(P,"text-anchor",I)),l(P,"x",u),l(P,"y",h+D*w+L),P.appendChild(document.createTextNode(A[D]))}for(;DD;++D){var P=t.__tspanList[D];P&&(l(P,"x",u),l(P,"y",h+D*w+L))}}};k.drawRectText=O,k.brush=function(t){var e=t.style;null!=e.text&&(e.textPosition=[0,0],O(t,{x:e.x||0,y:e.y||0,width:0,height:0},t.getBoundingRect()))},e.path=D,e.image=P,e.text=k},function(t,e,i){function n(t,e){var i=new _(l(),t,e);return y[i.id]=i,i}function a(t){if(t)t.dispose();else{for(var e in y)y.hasOwnProperty(e)&&y[e].dispose();y={}}return this}function o(t){return y[t]}function r(t,e){v[t]=e}function s(t){delete y[t]}var l=i(213),u=i(16),c=i(1),h=i(481),d=i(484),p=i(483),f=i(485),g=i(493),m=!u.canvasSupported,v={canvas:p},y={},x="3.7.4",_=function(t,e,i){i=i||{},this.dom=e,this.id=t;var n=this,a=new d,o=i.renderer;if(m){if(!v.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&v[o]||(o="canvas");var r=new v[o](e,a,i);this.storage=a,this.painter=r;var s=u.node?null:new g(r.getViewportRoot());this.handler=new h(a,r,s,r.root),this.animation=new f({stage:{update:c.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=a.delFromStorage,p=a.addToStorage;a.delFromStorage=function(t){l.call(a,t),t&&t.removeSelfFromZr(n)},a.addToStorage=function(t){p.call(a,t),t.addSelfToZr(n)}};_.prototype={constructor:_,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e){return this.painter.pathToImage(t,e)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},findHover:function(t,e){return this.handler.findHover(t,e)},on:function(t,e,i){this.handler.on(t,e,i)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,s(this.id)}},e.version=x,e.init=n,e.dispose=a,e.getInstance=o,e.registerPainter=r},function(t,e){(function(e){t.exports=e}).call(e,{})},,function(t,e){"use strict";function i(t){var e="undefined"==typeof t?1.7976931348623157e308:t,i=0,n=new Object;this.put=function(t,a){i>=e?(n[t]=a,delete n[this.keys()[0]]):(this.containsKey(t)||i++,n[t]=a)},this.get=function(t){return this.containsKey(t)?n[t]:null},this.remove=function(t){this.containsKey(t)&&delete n[t]&&i--},this.containsKey=function(t){return t in n},this.containsValue=function(t){for(var e in n)if(n[e]==t)return!0;return!1},this.values=function(){var t=new Array;for(var e in n){var i=n[e];t.push(i)}return t},this.keys=function(){var t=new Array;for(var e in n)t.push(e);return t},this.keysString=function(){var t="";for(var e in n)t=t+e+" ";return t},this.size=function(){return i},this.clear=function(){i=0,n=new Object}}Object.defineProperty(e,"__esModule",{value:!0}),e.HashMap=i},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var a=i(22),o=i(19),r=n(o);i(28);var s=i(11),l=i(50),u=i(30),c=i(24);e["default"]={store:r["default"],vuex:{getters:{rootUrl:function(t){return t.rootUrl},uid:function(t){return t.user.id_token},key_user:function(t){return t.key_user}},actions:{SetKeyUser:a.SetKeyUser}},data:function(){return{pjid:(0,s.getUrlParam)("pjid"),pjicon:"../../static/assets/images/UI/logo.png",current_project:{},equip_list:[],key_id:"",login_user:"",isOKkeyInHeader:0,v1:3,v2:0,v3:0,openWindow:{},resetDiv:document.createElement("div"),uname:"",MypassKeyUserData:[]}},methods:{loadProject:function(){var t=this;$.ajax({url:t.rootUrl+"projectinfo",data:{pjid:t.pjid},cache:!1,method:"get",success:function(e){e=JSON.parse(e),t.current_project=e,null!=e.pjicon&&(t.pjicon=e.pjicon),t.v1=e.v1,t.v2=e.v2,t.v3=e.v3}})},loadProjectEquipList:function(){var t=this;t.equip_list=[],$.ajax({url:t.rootUrl+"projectequip",data:{pjid:t.pjid},cache:!1,method:"get",success:function(e){e=JSON.parse(e),t.equip_list=e}})},loadUserInfo:function(){var t=this;t.MypassKeyUserData=JSON.parse(localStorage.getItem("MyKeyUserData")),null!=t.MypassKeyUserData&&t.MypassKeyUserData.length>1&&(t.isOKkeyInHeader=t.MypassKeyUserData[0].isOKkey),$.ajax({type:"get",cache:!1,url:t.rootUrl+"puserinfo",success:function(e){""!=e&&(e=JSON.parse(e),t.login_user=e.rname,t.uname=e.uname,1==t.isOKkeyInHeader&&null!=t.MypassKeyUserData&&t.MypassKeyUserData.length>1&&(t.login_user=t.MypassKeyUserData[1].isOKRealName,t.uname=t.MypassKeyUserData[1].isOKRealName),t.loadProject(),t.loadProjectEquipList())}})},loadProjectGeneral:function(){var t=this;t.proj_general=[],$.ajax({url:t.rootUrl+"assessgeneral",type:"get",cache:!1,data:{pjid:t.pjid},success:function(e){e=JSON.parse(e),t.proj_general=e},error:function(t){}})},setSelectEquip:function(t){this.key_id=t.eid,window.location.href="data.html?pjid="+this.pjid+"&eid="+t.eid+"&pid="+t.pid},confirmLogout:function(){var t=this;$.prompt("您确定要退出系统?",{title:"确认提醒!",buttons:{"确定":!0,"取消":!1},submit:function(e,i,n,a){1==i&&$.ajax({url:t.rootUrl+"logout",type:"get",cache:!1,success:function(t){window.location.href="login.html"},error:function(t){}})}})},showReset:function(){if(this.openWindow){this.initTable()}},initTable:function(){var t=this,e=(document.documentElement.clientHeight,document.documentElement.clientWidth),i=document.createElement("div");i.style.height="220px";var n=document.createElement("table");n.style.top="50px",n.style.height="30px",n.style.width="100%",n.className="m-table",i.appendChild(n);var a=document.createElement("thead");n.appendChild(a);var o=document.createElement("tbody");o.id="tbUFEquip",n.appendChild(o);var r=document.createElement("tr"),s=document.createElement("td");s.colSpan=1,s.innerHTML="当前密码";var h=document.createElement("td");h.colSpan=2;var d=document.createElement("input");d.type="password",d.style.height="25px",d.placeholder="请输入当前密码",h.appendChild(d),r.appendChild(s),r.appendChild(h),o.appendChild(r);var p=document.createElement("tr"),f=document.createElement("td");f.colSpan=1,f.innerHTML="输入新密码";var g=document.createElement("td");g.colSpan=2;var m=document.createElement("input");m.type="password",m.style.height="25px",m.placeholder="请输入6-14位的密码",g.appendChild(m),m.id="input_new",p.appendChild(f),p.appendChild(g),o.appendChild(p);var v=document.createElement("tr"),y=document.createElement("td");y.colSpan=1,y.innerHTML="再次输入新密码";var x=document.createElement("td");x.colSpan=2;var _=document.createElement("input");_.id="input_newre",_.type="password",_.style.height="25px",_.placeholder="请输入6-14位的密码",$("#input_newre").val("111"),x.appendChild(_),v.appendChild(y),v.appendChild(x),o.appendChild(v);var b=document.createElement("tr"),w=document.createElement("td"),S=document.createElement("td"),M=document.createElement("a");M.className="f-btn f-primary",M.text="保存",M.style.top="5px",M.onclick=function(){var e=d.value,i=m.value,n=_.value;return 0==e.length&&((0,c.alertText)("请输入登录密码"),d.value=""),i!=n?(i="",n="",(0,c.alertText)("两次输入的密码不一致,请重新输入"),_.text="",d.value="",m.value="",$("#input_new").val(""),void $("#input_newre").val("")):i.length<6||i.length>14?((0,c.alertText)("请输入6-14位长度的密码"),m.value="",$("#input_new").val(""),void $("#input_newre").val("")):void $.ajax({url:t.rootUrl+"chkPas",data:{tk:window.btoa(t.uname+":"+e)},method:"get",cache:!1,success:function(e){0>=e?((0,c.alertText)("当前密码输入错误,请重试。如您忘记密码,请联系相关人员处理"),d.value="",m.value="",$("#input_new").val(""),$("#input_newre").val("")):$.ajax({url:t.rootUrl+"resetPas",data:{tk:window.btoa(t.uname+":"+i),_xsrf:(0,l.getXsrf)()},type:"post",success:function(e){e=JSON.parse(e),e.code>0&&((0,c.alertText)("修改成功"),t.OpenedWindow.fadeOut())},error:function(t){(0,c.alertText)("错误")}})},error:function(t){(0,c.alertText)("错误")}})},S.colSpan=1,S.appendChild(M);var A=document.createElement("td"),T=document.createElement("a");return T.className="f-btn",T.text="取消",T.onclick=function(){null!=t.OpenedWindow&&void 0!=t.OpenedWindow&&t.OpenedWindow.fadeOut()},T.colSpan=1,A.appendChild(T),b.appendChild(w),b.appendChild(S),b.appendChild(A),o.appendChild(b),t.resetDiv=i,t.OpenedWindow=(0,u.openWindow)(i,"修改密码",460,244,e-470,50),o}},created:function(){this.loadUserInfo()},ready:function(){var t=(0,u.getClientPoint)();this.key_user;this.MypassKeyUserData=JSON.parse(localStorage.getItem("MyKeyUserData")),null!=this.MypassKeyUserData&&this.MypassKeyUserData.length>1&&(this.isOKkeyInHeader=this.MypassKeyUserData[0].isOKkey);var e=document.getElementById("div_equiplist");e.style.height=t.h-50+"px"}}},function(t,e){},function(t,e){t.exports='
扫一扫, 关注\'智慧排水服务\'微信公众号
{{item.eid}} {{item.pname}}
'},function(t,e,i){var n,a;i(153),n=i(152),a=i(154),t.exports=n||{},t.exports.__esModule&&(t.exports=t.exports["default"]),a&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=a)},function(t,e,i){var n=i(2),a=i(1);t.exports=function(t,e){a.each(e,function(e){e.update="updateView",n.registerAction(e,function(i,n){var a={};return n.eachComponent({mainType:"series",subType:t,query:i},function(t){t[e.method]&&t[e.method](i.name);var n=t.getData();n.each(function(e){var i=n.getName(e);a[i]=t.isSelected(i)||!1})}),{name:i.name,selected:a}})})}},function(t,e,i){var n=i(1),a=i(158),o=i(2);o.registerAction({type:"geoRoam",event:"geoRoam",update:"updateLayout"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(e){var o=e.coordinateSystem;if("geo"===o.type){var r=a.updateCenterAndZoom(o,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom),"series"===i&&n.each(e.seriesGroup,function(t){t.setCenter(r.center),t.setZoom(r.zoom)})}})})},function(t,e){var i={};i.updateCenterAndZoom=function(t,e,i){var n=t.getZoom(),a=t.getCenter(),o=e.zoom,r=t.dataToPoint(a);if(null!=e.dx&&null!=e.dy){r[0]-=e.dx,r[1]-=e.dy;var a=t.pointToData(r);t.setCenter(a)}if(null!=o){if(i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(n*o,l),s)/n}t.scale[0]*=o,t.scale[1]*=o;var u=t.position,c=(e.originX-u[0])*(o-1),h=(e.originY-u[1])*(o-1);u[0]-=c,u[1]-=h,t.updateTransform();var a=t.pointToData(r);t.setCenter(a),t.setZoom(o*n)}return{center:t.getCenter(),zoom:t.getZoom()}},t.exports=i},function(t,e,i){"use strict";var n=i(17),a=i(45);t.exports=n.extend({type:"series.__base_bar__",getInitialData:function(t,e){if(__DEV__){var i=t.coordinateSystem;if("cartesian2d"!==i)throw new Error("Bar only support cartesian2d coordinateSystem")}return a(t.data,this,e)},getMarkerPosition:function(t){var e=this.coordinateSystem;if(e){var i=e.dataToPoint(t,!0),n=this.getData(),a=n.getLayout("offset"),o=n.getLayout("size"),r=e.getBaseAxis().isHorizontal()?0:1;return i[r]+=a+o/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,itemStyle:{normal:{},emphasis:{}}}})},function(t,e,i){function n(t,e,i,n,a){o.setText(t,e,i),t.text=n,"outside"===t.textPosition&&(t.textPosition=a)}var a=i(1),o=i(3),r={};r.setLabel=function(t,e,i,o,r,s,l){var u=i.getModel("label.normal"),c=i.getModel("label.emphasis");u.get("show")?n(t,u,o,a.retrieve(r.getFormattedLabel(s,"normal"),r.getRawValue(s)),l):t.text="",c.get("show")?n(e,c,o,a.retrieve(r.getFormattedLabel(s,"emphasis"),r.getRawValue(s)),l):e.text=""},t.exports=r},function(t,e,i){var n=i(5);t.exports=function(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=e.getBoundingRect(),a=t.getData(),o=a.graph,r=0,s=a.getSum("value"),l=2*Math.PI/(s||a.count()),u=i.width/2+i.x,c=i.height/2+i.y,h=Math.min(i.width,i.height)/2;o.eachNode(function(t){var e=t.getValue("value");r+=l*(s?e:1)/2,t.setLayout([h*Math.cos(r)+u,h*Math.sin(r)+c]),r+=l*(s?e:1)/2}),a.setLayout({cx:u,cy:c}),o.eachEdge(function(t){var e,i=t.getModel().get("lineStyle.normal.curveness")||0,a=n.clone(t.node1.getLayout()),o=n.clone(t.node2.getLayout()),r=(a[0]+o[0])/2,s=(a[1]+o[1])/2;+i&&(i*=3,e=[u*i+r*(1-i),c*i+s*(1-i)]),t.setLayout([a,o,e])})}}},function(t,e,i){var n=i(5);t.exports=function(t){t.eachEdge(function(t){var e=t.getModel().get("lineStyle.normal.curveness")||0,i=n.clone(t.node1.getLayout()),a=n.clone(t.node2.getLayout()),o=[i,a];+e&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*e,(i[1]+a[1])/2-(a[0]-i[0])*e]),t.setLayout(o)})}},function(t,e,i){var n=i(162);t.exports=function(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var i=t.getGraph();i.eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),n(i)}}},function(t,e,i){function n(t,e,i){a.Group.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}var a=i(3),o=i(123),r=i(1),s=i(26),l=i(5),u=i(43),c=n.prototype; c.createLine=function(t,e,i){return new o(t,e,i)},c._updateEffectSymbol=function(t,e){var i=t.getItemModel(e),n=i.getModel("effect"),a=n.get("symbolSize"),o=n.get("symbol");r.isArray(a)||(a=[a,a]);var l=n.get("color")||t.getItemVisual(e,"color"),u=this.childAt(1);this._symbolType!==o&&(this.remove(u),u=s.createSymbol(o,-.5,-.5,1,1,l),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",l),u.setStyle(n.getItemStyle(["color"])),u.attr("scale",a),u.setColor(l),u.attr("scale",a),this._symbolType=o,this._updateEffectAnimation(t,n,e))},c._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var a=this,o=t.getItemLayout(i),s=1e3*e.get("period"),l=e.get("loop"),u=e.get("constantSpeed"),c=r.retrieve(e.get("delay"),function(e){return e/t.count()*s/3}),h="function"==typeof c;if(n.ignore=!0,this.updateAnimationPoints(n,o),u>0&&(s=this.getLineLength(n)/u*1e3),s!==this._period||l!==this._loop){n.stopAnimation();var d=c;h&&(d=c(i)),n.__t>0&&(d=-s*n.__t),n.__t=0;var p=n.animate("",l).when(s,{__t:1}).delay(d).during(function(){a.updateSymbolPosition(n)});l||p.done(function(){a.remove(n)}),p.start()}this._period=s,this._loop=l}},c.getLineLength=function(t){return l.dist(t.__p1,t.__cp1)+l.dist(t.__cp1,t.__p2)},c.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},c.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},c.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,a=t.__t,o=t.position,r=u.quadraticAt,s=u.quadraticDerivativeAt;o[0]=r(e[0],n[0],i[0],a),o[1]=r(e[1],n[1],i[1],a);var l=s(e[0],n[0],i[0],a),c=s(e[1],n[1],i[1],a);t.rotation=-Math.atan2(c,l)-Math.PI/2,t.ignore=!1},c.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},r.inherits(n,a.Group),t.exports=n},function(t,e,i){function n(t,e,i){a.Group.call(this),this._createPolyline(t,e,i)}var a=i(3),o=i(1),r=n.prototype;r._createPolyline=function(t,e,i){var n=t.getItemLayout(e),o=new a.Polyline({shape:{points:n}});this.add(o),this._updateCommonStl(t,e,i)},r.updateData=function(t,e,i){var n=t.hostModel,o=this.childAt(0),r={shape:{points:t.getItemLayout(e)}};a.updateProps(o,r,n,e),this._updateCommonStl(t,e,i)},r._updateCommonStl=function(t,e,i){var n=this.childAt(0),r=t.getItemModel(e),s=t.getItemVisual(e,"color"),l=i&&i.lineStyle,u=i&&i.hoverLineStyle;i&&!t.hasItemOption||(l=r.getModel("lineStyle.normal").getLineStyle(),u=r.getModel("lineStyle.emphasis").getLineStyle()),n.useStyle(o.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),n.hoverStyle=u,a.setHoverStyle(this)},r.updateLayout=function(t,e){var i=this.childAt(0);i.setShape("points",t.getItemLayout(e))},o.inherits(n,a.Group),t.exports=n},function(t,e,i){var n=i(13),a=i(460),o=i(198),r=i(25),s=i(31),l=i(1),u=i(45);t.exports=function(t,e,i,c,h){for(var d=new a(c),p=0;p "+x)),m++)}var _,b=i.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=u(t,i,i.ecModel);else{var w=s.get(b),S=r((w&&"view"!==w.type?w.dimensions||[]:[]).concat(["value"]),t);_=new n(S,i),_.initData(t)}var M=new n(["value"],i);return M.initData(g,f),h&&h(_,M),o({mainData:_,struct:d,structAttr:"graph",datas:{node:_,edge:M},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},function(t,e,i){function n(t){return isNaN(t[0])||isNaN(t[1])}function a(t,e,i,a,o,r,g,m,v,y,x){for(var _=0,b=i,w=0;a>w;w++){var S=e[b];if(b>=o||0>b)break;if(n(S)){if(x){b+=r;continue}break}if(b===i)t[r>0?"moveTo":"lineTo"](S[0],S[1]),h(p,S);else if(v>0){var M=b+r,A=e[M];if(x)for(;A&&n(e[M]);)M+=r,A=e[M];var T=.5,I=e[_],A=e[M];if(!A||n(A))h(f,S);else{n(A)&&!x&&(A=S),s.sub(d,A,I);var L,C;if("x"===y||"y"===y){var D="x"===y?0:1;L=Math.abs(S[D]-I[D]),C=Math.abs(S[D]-A[D])}else L=s.dist(S,I),C=s.dist(S,A);T=C/(C+L),c(f,S,d,-v*(1-T))}l(p,p,m),u(p,p,g),l(f,f,m),u(f,f,g),t.bezierCurveTo(p[0],p[1],f[0],f[1],S[0],S[1]),c(p,S,d,v*T)}else t.lineTo(S[0],S[1]);_=b,b+=r}return w}function o(t,e){var i=[1/0,1/0],n=[-(1/0),-(1/0)];if(e)for(var a=0;an[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])}return{min:e?i:n,max:e?n:i}}var r=i(6),s=i(5),l=s.min,u=s.max,c=s.scaleAndAdd,h=s.copy,d=[],p=[],f=[];t.exports={Polyline:r.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,e){var i=e.points,r=0,s=i.length,l=o(i,e.smoothConstraint);if(e.connectNulls){for(;s>0&&n(i[s-1]);s--);for(;s>r&&n(i[r]);r++);}for(;s>r;)r+=a(t,i,r,s,s,1,l.min,l.max,e.smooth,e.smoothMonotone,e.connectNulls)+1}}),Polygon:r.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(t,e){var i=e.points,r=e.stackedOnPoints,s=0,l=i.length,u=e.smoothMonotone,c=o(i,e.smoothConstraint),h=o(r,e.smoothConstraint);if(e.connectNulls){for(;l>0&&n(i[l-1]);l--);for(;l>s&&n(i[s]);s++);}for(;l>s;){var d=a(t,i,s,l,l,1,c.min,c.max,e.smooth,u,e.connectNulls);a(t,r,s+d-1,d,l,-1,h.min,h.max,e.stackedOnSmooth,u,e.connectNulls),s+=d+1,t.closePath()}}})}},function(t,e,i){"use strict";function n(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}function a(t){return"x"===t.dim?0:1}var o=i(3),r=i(126),s=i(85),l=i(171),u=i(47),c=r.extend({makeElOption:function(t,e,i,a,o){var r=i.axis,u=r.grid,c=a.get("type"),d=n(u,r).getOtherAxis(r).getGlobalExtent(),p=r.toGlobalCoord(r.dataToCoord(e,!0));if(c&&"none"!==c){var f=s.buildElStyle(a),g=h[c](r,p,d,f);g.style=f,t.graphicKey=g.type,t.pointer=g}var m=l.layout(u.model,i);s.buildCartesianSingleLabelElOption(e,t,m,i,a,o)},getHandleTransform:function(t,e,i){var n=l.layout(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:s.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,a){var o=i.axis,r=o.grid,s=o.getGlobalExtent(!0),l=n(r,o).getOtherAxis(o).getGlobalExtent(),u="x"===o.dim?0:1,c=t.position;c[u]+=e[u],c[u]=Math.min(s[1],c[u]),c[u]=Math.max(s[0],c[u]);var h=(l[1]+l[0])/2,d=[h,h];d[u]=c[u];var p=[{verticalAlign:"middle"},{align:"center"}];return{position:c,rotation:t.rotation,cursorPoint:d,tooltipOption:p[u]}}}),h={line:function(t,e,i,n){var r=s.makeLineShape([e,i[0]],[e,i[1]],a(t));return o.subPixelOptimizeLine({shape:r,style:n}),{type:"Line",shape:r}},shadow:function(t,e,i,n){var o=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:s.makeRectShape([e-o/2,i[0]],[o,r],a(t))}}};u.registerAxisPointerClass("CartesianAxisPointer",c),t.exports=c},function(t,e,i){var n=i(1),a=i(8);t.exports=function(t,e){var i,o=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var s=i.getData(),l=a.queryDataIndex(s,t);if(null==l||n.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),c=i.coordinateSystem;if(i.getTooltipPosition)o=i.getTooltipPosition(l)||[];else if(c&&c.dataToPoint)o=c.dataToPoint(s.getValues(n.map(c.dimensions,function(t){return i.coordDimToDataDim(t)[0]}),l,!0))||[];else if(u){var h=u.getBoundingRect().clone();h.applyTransform(u.transform),o=[h.x+h.width/2,h.y+h.height/2]}return{point:o,el:u}}},function(t,e,i){function n(t,e){function i(i,n){t.on(i,function(i){var o=s(e);h(c(t).records,function(t){t&&n(t,i,o.dispatchAction)}),a(o.pendings,e)})}c(t).initialized||(c(t).initialized=!0,i("click",u.curry(r,"click")),i("mousemove",u.curry(r,"mousemove")),i("globalout",o))}function a(t,e){var i,n=t.showTip.length,a=t.hideTip.length;n?i=t.showTip[n-1]:a&&(i=t.hideTip[a-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function o(t,e,i){t.handler("leave",null,i)}function r(t,e,i,n){e.handler(t,i,n)}function s(t){var e={showTip:[],hideTip:[]},i=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}var l=i(16),u=i(1),c=i(8).makeGetter(),h=u.each,d={};d.register=function(t,e,i){if(!l.node){var a=e.getZr();c(a).records||(c(a).records={}),n(a,e);var o=c(a).records[t]||(c(a).records[t]={});o.handler=i}},d.unregister=function(t,e){if(!l.node){var i=e.getZr(),n=(c(i).records||{})[t];n&&(c(i).records[t]=null)}},t.exports=d},function(t,e,i){var n=i(1),a={};a.layout=function(t,e,i){function a(t,e){var i=o.getAxis(t);return i.toGlobalCoord(i.dataToCoord(0))}i=i||{};var o=t.coordinateSystem,r=e.axis,s={},l=r.position,u=r.onZero?"onZero":l,c=r.dim,h=o.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p=e.get("offset")||0,f={x:{top:d[2]-p,bottom:d[3]+p},y:{left:d[0]-p,right:d[1]+p}};f.x.onZero=Math.max(Math.min(a("y"),f.x.bottom),f.x.top),f.y.onZero=Math.max(Math.min(a("x"),f.y.right),f.y.left),s.position=["y"===c?f.y[u]:d[0],"x"===c?f.x[u]:d[3]],s.rotation=Math.PI/2*("x"===c?0:1);var g={top:-1,bottom:1,left:-1,right:1};s.labelDirection=s.tickDirection=s.nameDirection=g[l],s.labelOffset=r.onZero?f[c][l]-f[c].onZero:0,e.get("axisTick.inside")&&(s.tickDirection=-s.tickDirection),n.retrieve(i.labelInside,e.get("axisLabel.inside"))&&(s.labelDirection=-s.labelDirection);var m=e.get("axisLabel.rotate");return s.labelRotate="top"===u?-m:m,s.labelInterval=r.getLabelInterval(),s.z2=1,s},t.exports=a},function(t,e,i){var n=i(1),a={};a.layout=function(t,e){e=e||{};var i=t.coordinateSystem,a=t.axis,o={},r=a.position,s=a.orient,l=i.getRect(),u=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};o.position=["vertical"===s?c.vertical[r]:u[0],"horizontal"===s?c.horizontal[r]:u[3]];var h={horizontal:0,vertical:1};o.rotation=Math.PI/2*h[s];var d={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=d[r],t.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),n.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var p=e.rotate;return null==p&&(p=t.get("axisLabel.rotate")),o.labelRotation="top"===r?-p:p,o.labelInterval=a.getLabelInterval(),o.z2=1,o},t.exports=a},function(t,e,i){var n=i(1),a=i(127),o=i(2);o.registerAction("dataZoom",function(t,e){var i=a.createLinkedNodesFinder(n.bind(e.eachComponent,e,"dataZoom"),a.eachAxisDim,function(t,e){return t.get(e.axisIndex)}),o=[];e.eachComponent({mainType:"dataZoom",query:t},function(t,e){o.push.apply(o,i(t).nodes)}),n.each(o,function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})},function(t,e,i){function n(t,e,i){i.getAxisProxy(t.name,e).reset(i)}function a(t,e,i){i.getAxisProxy(t.name,e).filterData(i)}var o=i(2);o.registerProcessor(function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(n),t.eachTargetAxis(a)}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)})})},function(t,e,i){function n(t){var e=t[r];return e||(e=t[r]=[{}]),e}var a=i(1),o=a.each,r="\x00_ec_hist_store",s={push:function(t,e){var i=n(t);o(e,function(e,n){for(var a=i.length-1;a>=0;a--){var o=i[a];if(o[n])break}if(0>a){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var s=r.getPercentRange();i[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}}),i.push(e)},pop:function(t){var e=n(t),i=e[e.length-1];e.length>1&&e.pop();var a={};return o(i,function(t,i){for(var n=e.length-1;n>=0;n--){var t=e[n][i];if(t){a[i]=t;break}}}),a},clear:function(t){t[r]=null},count:function(t){return n(t).length}};t.exports=s},function(t,e,i){i(15).registerSubTypeDefaulter("dataZoom",function(t){return"slider"})},function(t,e,i){function n(t,e,i){var n=this._targetInfoList=[],a={},r=o(e,t);f(_,function(t,e){(!i||!i.include||g(i.include,e)>=0)&&t(r,n,a)})}function a(t){return t[0]>t[1]&&t.reverse(),t}function o(t,e){return d.parseFinder(t,e,{includeMainTypes:y})}function r(t,e,i,n){__DEV__&&c.assert("cartesian2d"===i.type,"lineX/lineY brush is available only in cartesian2d.");var o=i.getAxis(["x","y"][t]),r=a(c.map([0,1],function(t){return e?o.coordToData(o.toLocalCoord(n[t])):o.toGlobalCoord(o.dataToCoord(n[t]))})),s=[];return s[t]=r,s[1-t]=[NaN,NaN],{values:r,xyMinMax:s}}function s(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function l(t,e){var i=u(t),n=u(e),a=[i[0]/n[0],i[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function u(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var c=i(1),h=i(3),d=i(8),p=i(179),f=c.each,g=c.indexOf,m=c.curry,v=["dataToPoint","pointToData"],y=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],x=n.prototype;x.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=S[t.brushType](0,i,e);t.__rangeOffset={offset:M[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}})},x.matchOutputRanges=function(t,e,i){f(t,function(t){var n=this.findTargetInfo(t,e);n&&n!==!0&&c.each(n.coordSyses,function(n){var a=S[t.brushType](1,n,t.range);i(t,a.values,n,e)})},this)},x.setInputRanges=function(t,e){f(t,function(t){var i=this.findTargetInfo(t,e);if(__DEV__&&(c.assert(!i||i===!0||t.coordRange,"coordRange must be specified when coord index specified."),c.assert(!i||i!==!0||t.range,"range must be specified in global brush.")),t.range=t.range||[],i&&i!==!0){t.panelId=i.panelId;var n=S[t.brushType](0,i.coordSys,t.coordRange),a=t.__rangeOffset;t.range=a?M[t.brushType](n.values,a.offset,l(n.xyMinMax,a.xyMinMax)):n.values}},this)},x.makePanelOpts=function(t,e){return c.map(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e&&e(i),clipPath:p.makeRectPanelClipPath(n),isTargetByCursor:p.makeRectIsTargetByCursor(n,t,i.coordSysModel),getLinearBrushOtherExtent:p.makeLinearBrushOtherExtent(n)}})},x.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return n===!0||n&&g(n.coordSyses,e.coordinateSystem)>=0},x.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=o(e,t),a=0;a=0||g(n,t.getAxis("y").model)>=0)&&o.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:w.grid,xAxisDeclared:r[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){f(t.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:w.geo})})}},b=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&i&&(a=i.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],w={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(h.getTransform(t)),e}},S={lineX:m(r,0),lineY:m(r,1),rect:function(t,e,i){var n=e[v[t]]([i[0][0],i[1][0]]),o=e[v[t]]([i[0][1],i[1][1]]),r=[a([n[0],o[0]]),a([n[1],o[1]])];return{values:r,xyMinMax:r}},polygon:function(t,e,i){var n=[[1/0,-(1/0)],[1/0,-(1/0)]],a=c.map(i,function(i){var a=e[v[t]](i);return n[0][0]=Math.min(n[0][0],a[0]),n[1][0]=Math.min(n[1][0],a[1]),n[0][1]=Math.max(n[0][1],a[0]),n[1][1]=Math.max(n[1][1],a[1]),a});return{values:a,xyMinMax:n}}},M={lineX:m(s,0),lineY:m(s,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return c.map(t,function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]})}};t.exports=n},function(t,e,i){function n(t,e){var i=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(i.fill=n),i}function a(t,e,i,n,a){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",function(){t._mouseDownFlag=!0}),i.on("click",function(r){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var s=r.target;!s.__regions;)s=s.parent;if(s){var l={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:h.map(s.__regions,function(t){return{name:t.name,from:a.uid}})};l[e.mainType+"Id"]=e.id,n.dispatchAction(l),o(e,i)}}}))}function o(t,e){e.eachChild(function(e){h.each(e.__regions,function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")})})}function r(t,e){var i=new c.Group;this._controller=new s(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag}var s=i(86),l=i(182),u=i(129),c=i(3),h=i(1);r.prototype={constructor:r,draw:function(t,e,i,r,s){var l="geo"===t.mainType,u=t.getData&&t.getData();l&&e.eachComponent({mainType:"series",subType:"map"},function(e){u||e.getHostGeoModel()!==t||(u=e.getData())});var d=t.coordinateSystem,p=this.group,f=d.scale,g={position:d.position,scale:f};!p.childAt(0)||s?p.attr(g):c.updateProps(p,g,t),p.removeAll();var m=["itemStyle","normal"],v=["itemStyle","emphasis"],y=["label","normal"],x=["label","emphasis"],_={};h.each(d.regions,function(e){var i=_[e.name]||(_[e.name]=new c.Group),a=new c.CompoundPath({shape:{paths:[]}});i.add(a);var o,r=t.getRegionModel(e.name)||t,s=r.getModel(m),d=r.getModel(v),g=n(s,f),b=n(d,f),w=r.getModel(y),S=r.getModel(x);if(u){o=u.indexOfName(e.name);var M=u.getItemVisual(o,"color",!0);M&&(g.fill=M)}var A=w.getModel("textStyle"),T=S.getModel("textStyle");h.each(e.geometries,function(t){if("polygon"===t.type){a.shape.paths.push(new c.Polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)a.shape.paths.push(new c.Polygon({shape:{points:t.interiors[e]}}))}}),a.setStyle(g),a.style.strokeNoScale=!0,a.culling=!0;var I=w.get("show"),L=S.get("show"),C=u&&isNaN(u.get("value",o)),D=u&&u.getItemLayout(o);if(l||C&&(I||L)||D&&D.showLabel){var P=u?o:e.name,k=t.getFormattedLabel(P,"normal"),E=t.getFormattedLabel(P,"emphasis"),O=new c.Text({style:{text:I?k||e.name:"",fill:A.getTextColor(),textFont:A.getFont(),textAlign:"center",textVerticalAlign:"middle"},hoverStyle:{text:L?E||e.name:"",fill:T.getTextColor(),textFont:T.getFont()},position:e.center.slice(),scale:[1/f[0],1/f[1]],z2:10,silent:!0});i.add(O)}if(u)u.setItemGraphicEl(o,i);else{var r=t.getRegionModel(e.name);a.eventData={componentType:"geo",geoIndex:t.componentIndex,name:e.name,region:r&&r.option||{}}}var z=i.__regions||(i.__regions=[]);z.push(e),c.setHoverStyle(i,b,{hoverSilentOnTouch:!!t.get("selectedMode")}),p.add(i)}),this._updateController(t,e,i),a(this,t,p,i,r),o(t,p)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(t,e,i){function n(){var e={type:"geoRoam",componentType:s};return e[s+"Id"]=t.id,e}var a=t.coordinateSystem,o=this._controller,r=this._controllerHost;r.zoomLimit=t.get("scaleLimit"),r.zoom=a.getZoom(),o.enable(t.get("roam")||!1);var s=t.mainType;o.off("pan").on("pan",function(t,e){this._mouseDownFlag=!1,l.updateViewOnPan(r,t,e),i.dispatchAction(h.extend(n(),{dx:t,dy:e}))},this),o.off("zoom").on("zoom",function(t,e,a){if(this._mouseDownFlag=!1,l.updateViewOnZoom(r,t,e,a),i.dispatchAction(h.extend(n(),{zoom:t,originX:e,originY:a})),this._updateGroup){var o=this.group,s=o.scale;o.traverse(function(t){"text"===t.type&&t.attr("scale",[1/s[0],1/s[1]])})}},this),o.setPointerChecker(function(e,n,o){return a.getViewRectAfterRoam().contain(n,o)&&!u.onIrrelevantElement(e,i,t)})}},t.exports=r},function(t,e,i){function n(t){return r.create(t)}var a=i(1),o=i(129),r=i(10),s=Math.max,l=Math.min,u={};u.makeRectPanelClipPath=function(t){return t=n(t),function(e,i){return a.map(e,function(e){var i=e[0];i=s(i,t.x),i=l(i,t.x+t.width);var n=e[1];return n=s(n,t.y),n=l(n,t.y+t.height),[i,n]})}},u.makeLinearBrushOtherExtent=function(t,e){return t=n(t),function(i){var n=null!=e?e:i,a=n?t.width:t.height,o=n?t.x:t.y;return[o,o+(a||0)]}},u.makeRectIsTargetByCursor=function(t,e,i){return t=n(t),function(n,a,r){return t.contain(a[0],a[1])&&!o.onIrrelevantElement(n,e,i)}},t.exports=u},function(t,e,i){function n(t){return t[a]||(t[a]={})}var a="\x00_ec_interaction_mutex",o={take:function(t,e,i){var a=n(t);a[e]=i},release:function(t,e,i){var a=n(t),o=a[e];o===i&&(a[e]=null)},isTaken:function(t,e){return!!n(t)[e]}};i(2).registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),t.exports=o},function(t,e,i){function n(t,e,i){a.positionElement(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},e.get("padding"))}var a=i(9),o=i(7),r=i(3);t.exports={layout:function(t,e,i){var o=a.getLayoutRect(e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()},e.get("padding"));a.box(e.get("orient"),t,e.get("itemGap"),o.width,o.height),n(t,e,i)},addBackground:function(t,e){var i=o.normalizeCssArray(e.get("padding")),n=t.getBoundingRect(),a=e.getItemStyle(["color","opacity"]);a.fill=e.get("backgroundColor");var s=new r.Rect({shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},style:a,silent:!0,z2:-1});r.subPixelOptimizeRect(s),t.add(s)}}},function(t,e){var i={};i.updateViewOnPan=function(t,e,i){var n=t.target,a=n.position;a[0]+=e,a[1]+=i,n.dirty()},i.updateViewOnZoom=function(t,e,i,n){var a=t.target,o=t.zoomLimit,r=a.position,s=a.scale,l=t.zoom=t.zoom||1;if(l*=e,o){var u=o.min||0,c=o.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/t.zoom;t.zoom=l,r[0]-=(i-r[0])*(h-1),r[1]-=(n-r[1])*(h-1),s[0]*=h,s[1]*=h,a.dirty()},t.exports=i},function(t,e,i){function n(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}i(197),i(446),i(396);var a=i(2),o=i(1),r=i(54),s=5;a.extendComponentView({type:"parallel",render:function(t,e,i){this._model=t,this._api=i,this._handlers||(this._handlers={},o.each(l,function(t,e){i.getZr().on(e,this._handlers[e]=o.bind(t,this))},this)),r.createOrUpdate(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},dispose:function(t,e){o.each(this._handlers,function(t,i){e.getZr().off(i,t)}),this._handlers=null},_throttledDispatchExpand:function(t){this._dispatchExpand(t)},_dispatchExpand:function(t){t&&this._api.dispatchAction(o.extend({type:"parallelAxisExpand"},t))}});var l={mousedown:function(t){n(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(n(this,"click")&&e){var i=[t.offsetX,t.offsetY],a=Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2);if(a>s)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==o.behavior&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&n(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),a=i.behavior;"jump"===a&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===a?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===a?null:!1})}}};a.registerPreprocessor(i(447))},function(t,e,i){i(459),i(357),i(456),i(73),i(351);var n=i(2);n.extendComponentView({type:"single"})},function(t,e,i){var n=i(2),a=i(1),o=i(16),r=i(203),s=i(48),l=i(93),u=s.mapVisual,c=i(8),h=s.eachVisual,d=i(4),p=a.isArray,f=a.each,g=d.asc,m=d.linearMap,v=a.noop,y=["#f6efa6","#d88273","#bf444c"],x=n.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-(1/0),1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:null,min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(t,e,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,i)},optionUpdated:function(t,e){var i=this.option;o.canvasSupported||(i.realtime=!1),!e&&l.replaceVisualOption(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=a.bind(t,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,e,t),this.targetVisuals=l.createVisualMappings(this.option.target,e,t)},resetTargetSeries:function(){var t=this.option,e=null==t.seriesIndex;t.seriesIndex=e?[]:c.normalizeToArray(t.seriesIndex),e&&this.ecModel.eachSeries(function(e,i){t.seriesIndex.push(i)})},eachTargetSeries:function(t,e){a.each(this.option.seriesIndex,function(i){t.call(e,this.ecModel.getSeriesByIndex(i))},this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries(function(i){i===t&&(e=!0)}),e},formatValueText:function(t,e,i){function n(t){return t===u[0]?"min":t===u[1]?"max":(+t).toFixed(l)}var o,r,s=this.option,l=s.precision,u=this.dataBound,c=s.formatter;return i=i||["<",">"],a.isArray(t)&&(t=t.slice(),o=!0),r=e?t:o?[n(t[0]),n(t[1])]:n(t),a.isString(c)?c.replace("{value}",o?r[0]:r).replace("{value2}",o?r[1]:r):a.isFunction(c)?o?c(t[0],t[1]):c(t):o?t[0]===u[0]?i[0]+" "+r[1]:t[1]===u[1]?i[1]+" "+r[0]:r[0]+" - "+r[1]:r},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension;return null!=e?e:t.dimensions.length-1},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){p(n.color)&&!t.inRange&&(t.inRange={color:n.color.slice().reverse()}),t.inRange=t.inRange||{color:y},f(this.stateList,function(e){var i=t[e];if(a.isString(i)){var n=r.get(i,"active",d);n?(t[e]={},t[e][i]=n):delete t[e]}},this)}function e(t,e,i){var n=t[e],a=t[i];n&&!a&&(a=t[i]={},f(n,function(t,e){if(s.isValidType(e)){var i=r.get(e,"inactive",d);null!=i&&(a[e]=i,"color"!==e||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}}))}function i(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor");f(this.stateList,function(o){var r=this.itemSize,s=t[o];s||(s=t[o]={color:d?n:[n]}),null==s.symbol&&(s.symbol=e&&a.clone(e)||(d?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&a.clone(i)||(d?r[0]:[r[0],r[0]])),s.symbol=u(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var l=s.symbolSize;if(null!=l){var c=-(1/0);h(l,function(t){t>c&&(c=t)}),s.symbolSize=u(l,function(t){return m(t,[0,c],[0,r[0]],!0)})}},this)}var n=this.option,o={inRange:n.inRange,outOfRange:n.outOfRange},l=n.target||(n.target={}),c=n.controller||(n.controller={});a.merge(l,o),a.merge(c,o);var d=this.isCategory();t.call(this,l),t.call(this,c),e.call(this,l,"inRange","outOfRange"),i.call(this,c)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v});t.exports=x},function(t,e,i){var n=i(1),a=i(3),o=i(7),r=i(9),s=i(2),l=i(48);t.exports=s.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,i,n){return this.visualMapModel=t,t.get("show")===!1?void this.group.removeAll():void this.doRender.apply(this,arguments)},renderBackground:function(t){var e=this.visualMapModel,i=o.normalizeCssArray(e.get("padding")||0),n=t.getBoundingRect();t.add(new a.Rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,i){function a(t){return u[t]}function o(t,e){u[t]=e}i=i||{};var r=i.forceState,s=this.visualMapModel,u={};if("symbol"===e&&(u.symbol=s.get("itemSymbol")),"color"===e){var c=s.get("contentColor");u.color=c}var h=s.controllerVisuals[r||s.getValueState(t)],d=l.prepareVisualTypes(h);return n.each(d,function(n){var r=h[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",r=h.__alphaForOpacity),l.dependsOn(n,e)&&r&&r.applyVisual(t,a,o)}),u[e]},positionGroup:function(t){var e=this.visualMapModel,i=this.api;r.positionElement(t,e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:n.noop})},function(t,e,i){var n=i(1),a=i(9),o={getItemAlign:function(t,e,i){var n=t.option,o=n.align;if(null!=o&&"auto"!==o)return o;for(var r={width:e.getWidth(),height:e.getHeight()},s="horizontal"===n.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},d=0;3>d;d++)h[l[1-s][d]]=c[d],h[u[d]]=2===d?i[0]:n[u[d]];var p=[["x","width",3],["y","height",0]][s],f=a.getLayoutRect(h,r,n.padding);return u[(f.margin[p[2]]||0)+f[p[0]]+.5*f[p[1]]<.5*r[p[1]]?0:1]},convertDataIndex:function(t){return n.each(t||[],function(e){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null)}),t}};t.exports=o},function(t,e,i){function n(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var a=i(1),o=a.each;t.exports=function(t){var e=t&&t.visualMap;a.isArray(e)||(e=e?[e]:[]),o(e,function(t){if(t){n(t,"splitList")&&!n(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&a.isArray(e)&&o(e,function(t){a.isObject(t)&&(n(t,"start")&&!n(t,"min")&&(t.min=t.start),n(t,"end")&&!n(t,"max")&&(t.max=t.end))})}})}},function(t,e,i){i(15).registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})},function(t,e,i){function n(t,e){t.eachTargetSeries(function(e){var i=e.getData();s.applyVisual(t.stateList,t.targetVisuals,i,t.getValueState,t,t.getDataDimension(i))})}function a(t){t.eachSeries(function(e){var i=e.getData(),n=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var a=t.getVisualMeta(u.bind(o,null,e,t))||{stops:[],outerColors:[]};a.dimension=t.getDataDimension(i),n.push(a)}}),e.getData().setVisual("visualMeta",n)})}function o(t,e,i,n){function a(t){return u[t]}function o(t,e){u[t]=e}for(var r=e.targetVisuals[n],s=l.prepareVisualTypes(r),u={color:t.getData().getVisual("color")},c=0,h=s.length;h>c;c++){var d=s[c],p=r["opacity"===d?"__alphaForOpacity":d];p&&p.applyVisual(i,a,o)}return u.color}var r=i(2),s=i(93),l=i(48),u=i(1);r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,function(t){t.eachComponent("visualMap",function(e){n(e,t)}),a(t)})},function(t,e,i){var n=i(2),a={type:"selectDataRange",event:"dataRangeSelected",update:"update"};n.registerAction(a,function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})})},function(t,e,i){function n(){l.call(this)}function a(t){this.name=t,this.zoomLimit,l.call(this),this._roamTransform=new n,this._viewTransform=new n,this._center,this._zoom}function o(t,e,i,n){var a=i.seriesModel,o=a?a.coordinateSystem:null;return o===this?o[t](n):null}var r=i(5),s=i(21),l=i(145),u=i(1),c=i(10),h=r.applyTransform;u.mixin(n,l),a.prototype={constructor:a,type:"view",dimensions:["x","y"],setBoundingRect:function(t,e,i,n){return this._rect=new c(t,e,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,e,i,n){ this.transformTo(t,e,i,n),this._viewRect=new c(t,e,i,n)},transformTo:function(t,e,i,n){var a=this.getBoundingRect(),o=this._viewTransform;o.transform=a.calculateTransform(new c(t,e,i,n)),o.decomposeTransform(),this._updateTransform()},setCenter:function(t){t&&(this._center=t,this._updateCenterAndZoom())},setZoom:function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),e=t.x+t.width/2,i=t.y+t.height/2;return[e,i]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransform},_updateCenterAndZoom:function(){var t=this._viewTransform.getLocalTransform(),e=this._roamTransform,i=this.getDefaultCenter(),n=this.getCenter(),a=this.getZoom();n=r.applyTransform([],n,t),i=r.applyTransform([],i,t),e.origin=n,e.position=[i[0]-n[0],i[1]-n[1]],e.scale=[a,a],this._updateTransform()},_updateTransform:function(){var t=this._roamTransform,e=this._viewTransform;e.parent=t,t.updateTransform(),e.updateTransform(),e.transform&&s.copy(this.transform||(this.transform=[]),e.transform),this.transform?(this.invTransform=this.invTransform||[],s.invert(this.invTransform,this.transform)):this.invTransform=null,this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t){var e=this.transform;return e?h([],t,e):[t[0],t[1]]},pointToData:function(t){var e=this.invTransform;return e?h([],t,e):[t[0],t[1]]},convertToPixel:u.curry(o,"dataToPoint"),convertFromPixel:u.curry(o,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},u.mixin(a,l),t.exports=a},function(t,e,i){var n=i(1),a={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},o=n.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},a),r=n.merge({boundaryGap:[0,0],splitNumber:5},a),s=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},r),l=n.defaults({logBase:10},r);l.scale=!0,t.exports={categoryAxis:o,valueAxis:r,timeAxis:s,logAxis:l}},function(t,e,i){"use strict";function n(t,e){return e.type||(e.data?"category":"value")}var a=i(15),o=i(1),r=i(88),s=a.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});o.merge(s.prototype,i(53));var l={offset:0};r("x",s,n,l),r("y",s,n,l),t.exports=s},function(t,e,i){function n(t,e,i){if(this.name=t,this.geometries=e,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}var a=i(208),o=i(10),r=i(140),s=i(5);n.prototype={constructor:n,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,i=[e,e],n=[-e,-e],a=[],l=[],u=this.geometries,c=0;cn;n++)if("polygon"===i[n].type){var r=i[n].exterior,s=i[n].interiors;if(a.contain(r,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(a.contain(s[l]))continue t;return!0}}return!1},transformTo:function(t,e,i,n){var a=this.getBoundingRect(),r=a.width/a.height;i?n||(n=i/r):i=r*n;for(var l=new o(t,e,i,n),u=a.calculateTransform(l),c=this.geometries,h=0;h>1^-(1&s),l=l>>1^-(1&l),s+=a,l+=o,a=s,o=l,n.push([s/i,l/i])}return n}var o=i(1),r=i(195);t.exports=function(t){return n(t),o.map(o.filter(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var e=t.properties,i=t.geometry,n=i.coordinates,a=[];"Polygon"===i.type&&a.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===i.type&&o.each(n,function(t){t[0]&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var s=new r(e.name,a,e.cp);return s.properties=e,s})}},function(t,e,i){function n(t,e){var i=[];return t.eachComponent("parallel",function(n,o){var r=new a(n,t,e);r.name="parallel_"+o,r.resize(n,e),n.coordinateSystem=r,r.model=n,i.push(r)}),t.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}}),i}var a=i(444);i(31).register("parallel",{create:n})},function(t,e,i){function n(t){var e=t.mainData,i=t.datas;i||(i={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,u(e,i,t),d(i,function(i){d(e.TRANSFERABLE_METHODS,function(e){i.wrapMethod(e,h.curry(a,t))})}),e.wrapMethod("cloneShallow",h.curry(r,t)),d(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,h.curry(o,t))}),h.assert(i[e.dataType]===e)}function a(t,e){if(l(this)){var i=h.extend({},this[p]);i[this.dataType]=e,u(e,i,t)}else c(e,this.dataType,this[f],t);return e}function o(t,e){return t.struct&&t.struct.update(this),e}function r(t,e){return d(e[p],function(i,n){i!==e&&c(i.cloneShallow(),n,e,t)}),e}function s(t){var e=this[f];return null==t||null==e?e:e[p][t]}function l(t){return t[f]===t}function u(t,e,i){t[p]={},d(e,function(e,n){c(e,n,t,i)})}function c(t,e,i,n){i[p][e]=t,t[f]=i,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=s}var h=i(1),d=h.each,p="\x00__link_datas",f="\x00__link_mainData";t.exports=n},function(t,e,i){"use strict";function n(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function a(t){return t.dim+t.index}function o(t,e){var i={};s.each(t,function(t,e){var o=t.getData(),r=t.coordinateSystem,s=r.getBaseAxis(),l=s.getExtent(),c="category"===s.type?s.getBandWidth():Math.abs(l[1]-l[0])/o.count(),h=i[a(s)]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=h.stacks;i[a(s)]=h;var p=n(t);d[p]||h.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var f=u(t.get("barWidth"),c),g=u(t.get("barMaxWidth"),c),m=t.get("barGap"),v=t.get("barCategoryGap");f&&!d[p].width&&(f=Math.min(h.remainedWidth,f),d[p].width=f,h.remainedWidth-=f),g&&(d[p].maxWidth=g),null!=m&&(h.gap=m),null!=v&&(h.categoryGap=v)});var o={};return s.each(i,function(t,e){o[e]={};var i=t.stacks,n=t.bandWidth,a=u(t.categoryGap,n),r=u(t.gap,1),l=t.remainedWidth,c=t.autoWidthCount,h=(l-a)/(c+(c-1)*r);h=Math.max(h,0),s.each(i,function(t,e){var i=t.maxWidth;i&&h>i&&(i=Math.min(i,l),t.width&&(i=Math.min(i,t.width)),l-=i,t.width=i,c--)}),h=(l-a)/(c+(c-1)*r),h=Math.max(h,0);var d,p=0;s.each(i,function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+r)}),d&&(p-=d.width*r);var f=-p/2;s.each(i,function(t,i){o[e][i]=o[e][i]||{offset:f,width:t.width},f+=t.width*(1+r)})}),o}function r(t,e,i){var r=o(s.filter(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})),l={},u={};e.eachSeriesByType(t,function(t){var e=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),s=n(t),c=r[a(o)][s],h=c.offset,d=c.width,p=i.getOtherAxis(o),f=t.get("barMinHeight")||0,g=o.onZero?p.toGlobalCoord(p.dataToCoord(0)):p.getGlobalExtent()[0],m=i.dataToPoints(e,!0);l[s]=l[s]||[],u[s]=u[s]||[],e.setLayout({offset:h,size:d}),e.each(p.dim,function(t,i){if(!isNaN(t)){l[s][i]||(l[s][i]={p:g,n:g},u[s][i]={p:g,n:g});var n,a,o,r,c=t>=0?"p":"n",v=m[i],y=l[s][i][c],x=u[s][i][c];p.isHorizontal()?(n=y,a=v[1]+h,o=v[0]-x,r=d,u[s][i][c]+=o,Math.abs(o)o?-1:1)*f),l[s][i][c]+=o):(n=v[0]+h,a=y,o=d,r=v[1]-x,u[s][i][c]+=r,Math.abs(r)=r?-1:1)*f),l[s][i][c]+=r),e.setItemLayout(i,{x:n,y:a,width:o,height:r})}},!0)},this)}var s=i(1),l=i(4),u=l.parsePercent;t.exports=r},function(t,e,i){var n=i(34),a=n.set,o=n.get;t.exports={clearColorPalette:function(){a(this,"colorIdx",0),a(this,"colorNameMap",{})},getColorFromPalette:function(t,e){e=e||this;var i=o(e,"colorIdx")||0,n=o(e,"colorNameMap")||a(e,"colorNameMap",{});if(n[t])return n[t];var r=this.get("color",!0)||[];if(r.length){var s=r[i];return t&&(n[t]=s),a(e,"colorIdx",(i+1)%r.length),s}}}},function(t,e,i){function n(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}var a=i(4),o=a.round,r={};r.intervalScaleNiceTicks=function(t,e){var i={},n=t[1]-t[0],s=i.interval=a.nice(n/e,!0),l=i.intervalPrecision=a.getPrecisionSafe(s)+2,u=i.niceTickExtent=[o(Math.ceil(t[0]/s)*s,l),o(Math.floor(t[1]/s)*s,l)];return r.fixExtent(u,t),i},r.fixExtent=function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),n(t,0,e),n(t,1,e),t[0]>t[1]&&(t[0]=t[1])},r.intervalScaleGetTicks=function(t,e,i,n){var a=[];if(!t)return a;var r=1e4;e[0]r)return[];return e[1]>(a.length?a[a.length-1]:i[1])&&a.push(e[1]),a},t.exports=r},function(t,e,i){function n(){function t(e,n){if(n>=i.length)return e;for(var o=-1,r=e.length,s=i[n++],l={},u={};++o=i.length)return t;var r=[],s=n[o++];return a.each(t,function(t,i){r.push({key:i,values:e(t,o)})}),s?r.sort(function(t,e){return s(t.key,e.key)}):r}var i=[],n=[];return{key:function(t){return i.push(t),this},sortKeys:function(t){return n[i.length-1]=t,this},entries:function(i){return e(t(i,0),0)}}}var a=i(1);t.exports=n},function(t,e,i){var n=i(1),a={get:function(t,e,i){var a=n.clone((o[t]||{})[e]);return i&&n.isArray(a)?a[a.length-1]:a}},o={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};t.exports=a},function(t,e,i){var n=i(213),a=i(49),o=i(145),r=i(505),s=i(1),l=function(t){o.call(this,t),a.call(this,t),r.call(this,t),this.id=t.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i.5?e:t}function s(t,e,i,n,a){var r=t.length;if(1==a)for(var s=0;r>s;s++)n[s]=o(t[s],e[s],i);else for(var l=r&&t[0].length,s=0;r>s;s++)for(var u=0;l>u;u++)n[s][u]=o(t[s][u],e[s][u],i)}function l(t,e,i){var n=t.length,a=e.length;if(n!==a){var o=n>a;if(o)t.length=a;else for(var r=n;a>r;r++)t.push(1===i?e[r]:_.call(e[r]))}for(var s=t[0]&&t[0].length,r=0;rl;l++)isNaN(t[r][l])&&(t[r][l]=e[r][l])}function u(t,e,i){if(t===e)return!0;var n=t.length;if(n!==e.length)return!1;if(1===i){for(var a=0;n>a;a++)if(t[a]!==e[a])return!1}else for(var o=t[0].length,a=0;n>a;a++)for(var r=0;o>r;r++)if(t[a][r]!==e[a][r])return!1;return!0}function c(t,e,i,n,a,o,r,s,l){var u=t.length;if(1==l)for(var c=0;u>c;c++)s[c]=h(t[c],e[c],i[c],n[c],a,o,r);else for(var d=t[0].length,c=0;u>c;c++)for(var p=0;d>p;p++)s[c][p]=h(t[c][p],e[c][p],i[c][p],n[c][p],a,o,r)}function h(t,e,i,n,a,o,r){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*r+(-3*(e-i)-2*s-l)*o+s*a+e}function d(t){if(x(t)){var e=t.length;if(x(t[0])){for(var i=[],n=0;e>n;n++)i.push(_.call(t[n]));return i}return _.call(t)}return t}function p(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function f(t){var e=t[t.length-1].value;return x(e&&e[0])?2:1}function g(t,e,i,n,a,d){var g=t._getter,y=t._setter,_="spline"===e,b=n.length;if(b){var w,S=n[0].value,M=x(S),A=!1,T=!1,I=M?f(n):0;n.sort(function(t,e){return t.time-e.time}),w=n[b-1].time;for(var L=[],C=[],D=n[0].value,P=!0,k=0;b>k;k++){L.push(n[k].time/w);var E=n[k].value;if(M&&u(E,D,I)||!M&&E===D||(P=!1),D=E,"string"==typeof E){var O=v.parse(E);O?(E=O,A=!0):T=!0}C.push(E)}if(d||!P){for(var z=C[b-1],k=0;b-1>k;k++)M?l(C[k],z,I):!isNaN(C[k])||isNaN(z)||T||A||(C[k]=z);M&&l(g(t._target,a),z,I);var N,R,F,V,B,j,G=0,W=0;if(A)var H=[0,0,0,0];var $=function(t,e){var i;if(0>e)i=0;else if(W>e){for(N=Math.min(G+1,b-1),i=N;i>=0&&!(L[i]<=e);i--);i=Math.min(i,b-2)}else{for(i=G;b>i&&!(L[i]>e);i++);i=Math.min(i-1,b-2)}G=i,W=e;var n=L[i+1]-L[i];if(0!==n)if(R=(e-L[i])/n,_)if(V=C[i],F=C[0===i?i:i-1],B=C[i>b-2?b-1:i+1],j=C[i>b-3?b-1:i+2],M)c(F,V,B,j,R,R*R,R*R*R,g(t,a),I);else{var l;if(A)l=c(F,V,B,j,R,R*R,R*R*R,H,1),l=p(H);else{if(T)return r(V,B,R);l=h(F,V,B,j,R,R*R,R*R*R)}y(t,a,l)}else if(M)s(C[i],C[i+1],R,g(t,a),I);else{var l;if(A)s(C[i],C[i+1],R,H,1),l=p(H);else{if(T)return r(C[i],C[i+1],R);l=o(C[i],C[i+1],R)}y(t,a,l)}},q=new m({target:t._target,life:w,loop:t._loop,delay:t._delay,onframe:$,ondestroy:i});return e&&"spline"!==e&&(q.easing=e),q}}}var m=i(486),v=i(33),y=i(1),x=y.isArrayLike,_=Array.prototype.slice,b=function(t,e,i,o){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||n,this._setter=o||a,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==t&&i[n].push({time:0,value:d(a)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;ti;i++)t[i].call(this)},start:function(t,e){var i,n=this,a=0,o=function(){a--,a||n._doneCallback()};for(var r in this._tracks)if(this._tracks.hasOwnProperty(r)){var s=g(this,t,o,this._tracks[r],r,e);s&&(this._clipList.push(s),a++,this.animation&&this.animation.addClip(s),i=s)}if(i){var l=i.onframe;i.onframe=function(t,e){l(t,e);for(var i=0;ie+s&&r>n+s||e-s>r&&n-s>r||o>t+s&&o>i+s||t-s>o&&i-s>o)return!1;if(t===i)return Math.abs(o-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*o-r+u,h=c*c/(l*l+1);return s/2*s/2>=h}e.containStroke=i},function(t,e,i){function n(t,e){return Math.abs(t-e)e+c&&u>n+c&&u>r+c||e-c>u&&n-c>u&&r-c>u||l>t+c&&l>i+c&&l>a+c||t-c>l&&i-c>l&&a-c>l)return!1;var h=o(t,e,i,n,a,r,l,u,null);return c/2>=h}var a=i(43),o=a.quadraticProjectPoint;e.containStroke=n},function(t,e){function i(t){return t%=n,0>t&&(t+=n),t}var n=2*Math.PI;e.normalizeRadian=i},function(t,e){function i(t,e,i,n,a,o){if(o>e&&o>n||e>o&&n>o)return 0;if(n===e)return 0;var r=e>n?1:-1,s=(o-e)/(n-e);1!==s&&0!==s||(r=e>n?.5:-.5);var l=s*(i-t)+t;return l>a?r:0}t.exports=i},function(t,e){var i=function(){this.head=null,this.tail=null,this._len=0},n=i.prototype;n.insert=function(t){var e=new a(t);return this.insertEntry(e),e},n.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},n.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var a=function(t){this.value=t,this.next,this.prev},o=function(t){this._list=new i,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},r=o.prototype;r.put=function(t,e){var i=this._list,n=this._map,o=null;if(null==n[t]){var r=i.len(),s=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var l=i.head;i.remove(l),delete n[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new a(e),s.key=t,i.insertEntry(s),n[t]=s}return o},r.get=function(t){var e=this._map[t],i=this._list;return null!=e?(e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value):void 0},r.clear=function(){this._list.clear(),this._map={}};var s=o;t.exports=s},function(t,e){function i(){return n++}var n=2311;t.exports=i},function(t,e,i){var n=i(6),a=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,i=0;i0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||e!==!0&&(e===!1?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,a){for(var o="radial"===e.type?n:i,r=o(t,e,a),s=e.colorStops,l=0;l=2){if(r&&"spline"!==r){var s=o(n,r,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var l=n.length,u=0;(i?l:l-1)>u;u++){var c=s[2*u],h=s[2*u+1],d=n[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],d[0],d[1])}}else{"spline"===r&&(n=a(n,i)),t.moveTo(n[0][0],n[0][1]);for(var u=1,p=n.length;p>u;u++)t.lineTo(n[u][0],n[u][1])}i&&t.closePath()}}var a=i(497),o=i(496);e.buildPath=n},function(t,e){function i(t,e){var i,n,a,o,r=e.x,s=e.y,l=e.width,u=e.height,c=e.r;0>l&&(r+=l,l=-l),0>u&&(s+=u,u=-u),"number"==typeof c?i=n=a=o=c:c instanceof Array?1===c.length?i=n=a=o=c[0]:2===c.length?(i=a=c[0],n=o=c[1]):3===c.length?(i=c[0],n=o=c[1],a=c[2]):(i=c[0],n=c[1],a=c[2],o=c[3]):i=n=a=o=0;var h;i+n>l&&(h=i+n,i*=l/h,n*=l/h),a+o>l&&(h=a+o,a*=l/h,o*=l/h),n+a>u&&(h=n+a,n*=u/h,a*=u/h),i+o>u&&(h=i+o,i*=u/h,o*=u/h),t.moveTo(r+i,s),t.lineTo(r+l-n,s),0!==n&&t.quadraticCurveTo(r+l,s,r+l,s+n),t.lineTo(r+l,s+u-a),0!==a&&t.quadraticCurveTo(r+l,s+u,r+l-a,s+u),t.lineTo(r+o,s+u),0!==o&&t.quadraticCurveTo(r,s+u,r,s+u-o),t.lineTo(r,s+i),0!==i&&t.quadraticCurveTo(r,s,r+i,s)}e.buildPath=i},function(t,e,i){var n=i(97),a=i(10),o=new a,r=function(){};r.prototype={constructor:r,drawRectText:function(t,e){var i=this.style;e=i.textRect||e,this.__dirty&&n.normalizeTextStyle(i,!0);var a=i.text;if(null!=a&&(a+=""),n.needDrawText(a,i)){t.save();var r=this.transform;i.transformText?this.setTransform(t):r&&(o.copy(e),o.applyTransform(r),e=o),n.renderText(this,t,a,i,e),t.restore()}}};var s=r;t.exports=s},function(t,e,i){var n=i(6),a=n.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.cx,n=e.cy,a=Math.max(e.r,0),o=e.startAngle,r=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*a+i,u*a+n),t.arc(i,n,a,o,r,!s)}});t.exports=a},function(t,e,i){function n(t,e,i){var n=t.cpx2,a=t.cpy2;return null===n||null===a?[(i?d:c)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?d:c)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?h:u)(t.x1,t.cpx1,t.x2,e),(i?h:u)(t.y1,t.cpy1,t.y2,e)]}var a=i(6),o=i(5),r=i(43),s=r.quadraticSubdivide,l=r.cubicSubdivide,u=r.quadraticAt,c=r.cubicAt,h=r.quadraticDerivativeAt,d=r.cubicDerivativeAt,p=[],f=a.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,a=e.x2,o=e.y2,r=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,d=e.percent;0!==d&&(t.moveTo(i,n),null==c||null==h?(1>d&&(s(i,r,a,d,p),r=p[1],a=p[2],s(n,u,o,d,p),u=p[1],o=p[2]),t.quadraticCurveTo(r,u,a,o)):(1>d&&(l(i,r,c,a,d,p),r=p[1],c=p[2],a=p[3],l(n,u,h,o,d,p),u=p[1],h=p[2],o=p[3]),t.bezierCurveTo(r,u,c,h,a,o)))},pointAt:function(t){return n(this.shape,t,!1)},tangentAt:function(t){var e=n(this.shape,t,!0);return o.normalize(e,e)}});t.exports=f},function(t,e,i){var n=i(6),a=n.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,i){i&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}});t.exports=a},function(t,e,i){var n=i(6),a=n.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i=e.x1,n=e.y1,a=e.x2,o=e.y2,r=e.percent;0!==r&&(t.moveTo(i,n),1>r&&(a=i*(1-r)+a*r,o=n*(1-r)+o*r),t.lineTo(a,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}});t.exports=a},function(t,e,i){var n=i(6),a=i(217),o=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){a.buildPath(t,e,!0)}});t.exports=o},function(t,e,i){var n=i(6),a=i(217),o=n.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=o},function(t,e,i){var n=i(6),a=i(218),o=n.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,o=e.width,r=e.height;e.r?a.buildPath(t,e):t.rect(i,n,o,r),t.closePath()}});t.exports=o},function(t,e,i){var n=i(6),a=n.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,a,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,a,!0)}});t.exports=a},function(t,e,i){var n=i(6),a=i(495),o=n.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:a(n.prototype.brush),buildPath:function(t,e){var i=e.cx,n=e.cy,a=Math.max(e.r0||0,0),o=Math.max(e.r,0),r=e.startAngle,s=e.endAngle,l=e.clockwise,u=Math.cos(r),c=Math.sin(r);t.moveTo(u*a+i,c*a+n),t.lineTo(u*o+i,c*o+n),t.arc(i,n,o,r,s,!l),t.lineTo(Math.cos(s)*a+i,Math.sin(s)*a+n),0!==a&&t.arc(i,n,a,s,r,l),t.closePath()}});t.exports=o},function(t,e,i){function n(t,e,i){this._svgRoot=t,this._tagNames="string"==typeof e?[e]:e,this._markLabel=i,this.nextId=0}var a=i(146),o=a.createElement,r=i(1),s=i(6),l=i(57),u=i(58),c=i(147),h=c.path,d=c.image,p=c.text,f="0",g="1";n.prototype.createElement=o,n.prototype.getDefs=function(t){var e=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?t?(i=e.insertBefore(this.createElement("defs"),e.firstChild),i.contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;n>=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},n.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t._dom&&i.contains(t._dom))"function"==typeof e&&e();else{var n=this.add(t);n&&(t._dom=n)}}},n.prototype.addDom=function(t){var e=this.getDefs(!0);e.appendChild(t)},n.prototype.removeDom=function(t){var e=this.getDefs(!1);e.removeChild(t._dom)},n.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return r.each(this._tagNames,function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))}),e},n.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;r.each(t,function(t){t[e._markLabel]=f})},n.prototype.markUsed=function(t){t&&(t[this._markLabel]=g)},n.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;r.each(e,function(e){e[i._markLabel]!==g&&t.removeChild(e)})}},n.prototype.getSvgProxy=function(t){return t instanceof s?h:t instanceof l?d:t instanceof u?p:h},n.prototype.getTextSvgElement=function(t){return t.__textSvgEl},n.prototype.getSvgElement=function(t){return t.__svgEl};var m=n;t.exports=m},function(t,e,i){function n(t,e,i,n,a,o,r,s,l,u,c){var h=l*(m/180),d=g(h)*(t-i)/2+f(h)*(e-n)/2,v=-1*f(h)*(t-i)/2+g(h)*(e-n)/2,_=d*d/(r*r)+v*v/(s*s);_>1&&(r*=p(_),s*=p(_));var b=(a===o?-1:1)*p((r*r*(s*s)-r*r*(v*v)-s*s*(d*d))/(r*r*(v*v)+s*s*(d*d)))||0,w=b*r*v/s,S=b*-s*d/r,M=(t+i)/2+g(h)*w-f(h)*S,A=(e+n)/2+f(h)*w+g(h)*S,T=x([1,0],[(d-w)/r,(v-S)/s]),I=[(d-w)/r,(v-S)/s],L=[(-1*d-w)/r,(-1*v-S)/s],C=x(I,L);y(I,L)<=-1&&(C=m),y(I,L)>=1&&(C=0),0===o&&C>0&&(C-=2*m),1===o&&0>C&&(C+=2*m),c.addData(u,M,A,r,s,T,C,h,o)}function a(t){if(!t)return[];var e,i=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e0&&""===m[0]&&m.shift();for(var v=0;va;a++){var o=t[a];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var r=new u(e);return r.createPathProxy(),r.buildPath=function(t){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e)},r}var u=i(6),c=i(56),h=i(511),d=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],p=Math.sqrt,f=Math.sin,g=Math.cos,m=Math.PI,v=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},y=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))},x=function(t,e){return(t[0]*e[1]')}}catch(h){o=function(t){return c.createElement("<"+t+' xmlns="'+s+'" class="zrvml">')}}e.doc=c,e.createNode=n,e.initVML=a},function(t,e,i){i(513);var n=i(148),a=n.registerPainter,o=i(512);a("vml",o)},function(t,e){function i(){u=!1,r.length?l=r.concat(l):c=-1,l.length&&n()}function n(){if(!u){var t=setTimeout(i);u=!0;for(var e=l.length;e;){for(r=l,l=[];++c1)for(var i=1;i0){t.style.height="0px";var i=document.getElementById("icon_hideheight");i.style.backgroundImage="url(http://115.29.44.212/v3/icon/elbow-end-plus-nl.gif)"}else{t.style.height="360px";var i=document.getElementById("icon_hideheight");i.style.backgroundImage="url(http://115.29.44.212/v3/icon/elbow-end-minus-nl.gif)"}},gotoURLStation:function(t){var e=this.pjid,i="";1==t?(i="index.html",window.location.href=""+i+"?pjid="+e):2==t?(i="map.html",window.location.href=""+i+"?pjid="+e):3==t?(i="equip.html",window.location.href=""+i+"?pjid="+e):4==t?(i="help.html",window.location.href=""+i+"?pjid="+e):10==t?(i="data.html",window.location.href=""+i+"?pjid="+e):11==t?window.location.href="placedetail.html?ViewDetails=1&pjid="+e:12==t?window.location.href="placedetail.html?ViewDetails=2&pjid="+e:13==t?window.location.href="placedetail.html?ViewDetails=3&pjid="+e:14==t?window.location.href="placedetail.html?ViewDetails=4&pjid="+e:15==t?window.location.href="placedetail.html?ViewDetails=5&pjid="+e:16==t?window.location.href="placedetail.html?ViewDetails=6&pjid="+e:17==t?window.location.href="placedetail.html?ViewDetails=7&pjid="+e:18==t?window.location.href="placedetail.html?ViewDetails=8&pjid="+e:5==t?(i="version.html",window.location.href=""+i+"?pjid="+e):21==t?(i="compare.html",window.location.href=""+i+"?pjid="+e):22==t?(i="check.html",window.location.href=""+i+"?pjid="+e):23==t&&(i="rainchang.html",window.location.href=""+i+"?pjid="+e)}}}},function(t,e){},function(t,e){t.exports=''},function(t,e,i){var n,a;i(235),n=i(234),a=i(236),t.exports=n||{},t.exports.__esModule&&(t.exports=t.exports["default"]),a&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=a)},function(t,e){"use strict";function i(t){for(var e=t.length,i="",a=new RegExp("[a-zA-Z0-9- ]"),r=0;e>r;r++){var s=t.substr(r,1),l=n(s,o);a.test(s)?i+=s:l!==!1&&(i+=l)}for(i=i.replace(/ /g,"-");i.indexOf("--")>0;)i=i.replace("--","-");return i.toLowerCase()}function n(t,e){for(var i in o)if(-1!=o[i].indexOf(t))return a(i);return!1}function a(t){if(t.length>0){var e=t.substr(0,1).toUpperCase(),i=t.substr(1,t.length);return e+i}}Object.defineProperty(e,"__esModule",{value:!0}),e.ConvertPinyin=i,e.arraySearch=n,e.ucfirst=a;var o={a:"啊阿锕",ai:"埃挨哎唉哀皑癌蔼矮艾碍爱隘诶捱嗳嗌嫒瑷暧砹锿霭",an:"鞍氨安俺按暗岸胺案谙埯揞犴庵桉铵鹌顸黯",ang:"肮昂盎",ao:"凹敖熬翱袄傲奥懊澳坳拗嗷噢岙廒遨媪骜聱螯鏊鳌鏖",ba:"芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸茇菝萆捭岜灞杷钯粑鲅魃",bai:"白柏百摆佰败拜稗薜掰鞴",ban:"斑班搬扳般颁板版扮拌伴瓣半办绊阪坂豳钣瘢癍舨",bang:"邦帮梆榜膀绑棒磅蚌镑傍谤蒡螃",bao:"苞胞包褒雹保堡饱宝抱报暴豹鲍爆勹葆宀孢煲鸨褓趵龅",bo:"剥薄玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳亳蕃啵饽檗擘礴钹鹁簸跛",bei:"杯碑悲卑北辈背贝钡倍狈备惫焙被孛陂邶埤蓓呗怫悖碚鹎褙鐾",ben:"奔苯本笨畚坌锛",beng:"崩绷甭泵蹦迸唪嘣甏",bi:"逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛匕仳俾芘荜荸吡哔狴庳愎滗濞弼妣婢嬖璧贲畀铋秕裨筚箅篦舭襞跸髀",bian:"鞭边编贬扁便变卞辨辩辫遍匾弁苄忭汴缏煸砭碥稹窆蝙笾鳊",biao:"标彪膘表婊骠飑飙飚灬镖镳瘭裱鳔",bie:"鳖憋别瘪蹩鳘",bin:"彬斌濒滨宾摈傧浜缤玢殡膑镔髌鬓",bing:"兵冰柄丙秉饼炳病并禀邴摒绠枋槟燹",bu:"捕卜哺补埠不布步簿部怖拊卟逋瓿晡钚醭",ca:"擦嚓礤",cai:"猜裁材才财睬踩采彩菜蔡",can:"餐参蚕残惭惨灿骖璨粲黪",cang:"苍舱仓沧藏伧",cao:"操糙槽曹草艹嘈漕螬艚",ce:"厕策侧册测刂帻恻",ceng:"层蹭噌",cha:"插叉茬茶查碴搽察岔差诧猹馇汊姹杈楂槎檫钗锸镲衩",chai:"拆柴豺侪茈瘥虿龇",chan:"搀掺蝉馋谗缠铲产阐颤冁谄谶蒇廛忏潺澶孱羼婵嬗骣觇禅镡裣蟾躔",chang:"昌猖场尝常长偿肠厂敞畅唱倡伥鬯苌菖徜怅惝阊娼嫦昶氅鲳",chao:"超抄钞朝嘲潮巢吵炒怊绉晁耖",che:"车扯撤掣彻澈坼屮砗",chen:"郴臣辰尘晨忱沉陈趁衬称谌抻嗔宸琛榇肜胂碜龀",cheng:"撑城橙成呈乘程惩澄诚承逞骋秤埕嵊徵浈枨柽樘晟塍瞠铖裎蛏酲",chi:"吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽傺墀芪茌搋叱哧啻嗤彳饬沲媸敕胝眙眵鸱瘛褫蚩螭笞篪豉踅踟魑",chong:"充冲虫崇宠茺忡憧铳艟",chou:"抽酬畴踌稠愁筹仇绸瞅丑俦圳帱惆溴妯瘳雠鲋",chu:"臭初出橱厨躇锄雏滁除楚础储矗搐触处亍刍憷绌杵楮樗蜍蹰黜",chuan:"揣川穿椽传船喘串掾舛惴遄巛氚钏镩舡",chuang:"疮窗幢床闯创怆",chui:"吹炊捶锤垂陲棰槌",chun:"春椿醇唇淳纯蠢促莼沌肫朐鹑蝽",chuo:"戳绰蔟辶辍镞踔龊",ci:"疵茨磁雌辞慈瓷词此刺赐次荠呲嵯鹚螅糍趑",cong:"聪葱囱匆从丛偬苁淙骢琮璁枞",cu:"凑粗醋簇猝殂蹙",cuan:"蹿篡窜汆撺昕爨",cui:"摧崔催脆瘁粹淬翠萃悴璀榱隹",cun:"村存寸磋忖皴",cuo:"撮搓措挫错厝脞锉矬痤鹾蹉躜",da:"搭达答瘩打大耷哒嗒怛妲疸褡笪靼鞑",dai:"呆歹傣戴带殆代贷袋待逮怠埭甙呔岱迨逯骀绐玳黛",dan:"耽担丹单郸掸胆旦氮但惮淡诞弹蛋亻儋卩萏啖澹檐殚赕眈瘅聃箪",dang:"当挡党荡档谠凼菪宕砀铛裆",dao:"刀捣蹈倒岛祷导到稻悼道盗叨啁忉洮氘焘忑纛",de:"德得的锝",deng:"蹬灯登等瞪凳邓噔嶝戥磴镫簦",di:"堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔氐籴诋谛邸坻莜荻嘀娣柢棣觌砥碲睇镝羝骶",dian:"颠掂滇碘点典靛垫电佃甸店惦奠淀殿丶阽坫埝巅玷癜癫簟踮",diao:"碉叼雕凋刁掉吊钓调轺铞蜩粜貂",die:"跌爹碟蝶迭谍叠佚垤堞揲喋渫轶牒瓞褶耋蹀鲽鳎",ding:"丁盯叮钉顶鼎锭定订丢仃啶玎腚碇町铤疔耵酊",dong:"东冬董懂动栋侗恫冻洞垌咚岽峒夂氡胨胴硐鸫",dou:"兜抖斗陡豆逗痘蔸钭窦窬蚪篼酡",du:"都督毒犊独读堵睹赌杜镀肚度渡妒芏嘟渎椟橐牍蠹笃髑黩",duan:"端短锻段断缎彖椴煅簖",dui:"堆兑队对怼憝碓",dun:"墩吨蹲敦顿囤钝盾遁炖砘礅盹镦趸",duo:"掇哆多夺垛躲朵跺舵剁惰堕咄哚缍柁铎裰踱",e:"蛾峨鹅俄额讹娥恶厄扼遏鄂饿噩谔垩垭苊莪萼呃愕屙婀轭曷腭硪锇锷鹗颚鳄",en:"恩蒽摁唔嗯",er:"而儿耳尔饵洱二贰迩珥铒鸸鲕",fa:"发罚筏伐乏阀法珐垡砝",fan:"藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛蘩幡犭梵攵燔畈蹯",fang:"坊芳方肪房防妨仿访纺放匚邡彷钫舫鲂",fei:"菲非啡飞肥匪诽吠肺废沸费芾狒悱淝妃绋绯榧腓斐扉祓砩镄痱蜚篚翡霏鲱",fen:"芬酚吩氛分纷坟焚汾粉奋份忿愤粪偾瀵棼愍鲼鼢",feng:"丰封枫蜂峰锋风疯烽逢冯缝讽奉凤俸酆葑沣砜",fu:"佛否夫敷肤孵扶拂辐幅氟符伏俘服浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐匐凫郛芙苻茯莩菔呋幞滏艴孚驸绂桴赙黻黼罘稃馥虍蚨蜉蝠蝮麸趺跗鳆",ga:"噶嘎蛤尬呷尕尜旮钆",gai:"该改概钙盖溉丐陔垓戤赅胲",gan:"干甘杆柑竿肝赶感秆敢赣坩苷尴擀泔淦澉绀橄旰矸疳酐",gang:"冈刚钢缸肛纲岗港戆罡颃筻",gong:"杠工攻功恭龚供躬公宫弓巩汞拱贡共蕻廾咣珙肱蚣蛩觥",gao:"篙皋高膏羔糕搞镐稿告睾诰郜蒿藁缟槔槁杲锆",ge:"哥歌搁戈鸽胳疙割革葛格阁隔铬个各鬲仡哿塥嗝纥搿膈硌铪镉袼颌虼舸骼髂",gei:"给",gen:"根跟亘茛哏艮",geng:"耕更庚羹埂耿梗哽赓鲠",gou:"钩勾沟苟狗垢构购够佝诟岣遘媾缑觏彀鸲笱篝鞲",gu:"辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇嘏诂菰哌崮汩梏轱牯牿胍臌毂瞽罟钴锢瓠鸪鹄痼蛄酤觚鲴骰鹘",gua:"刮瓜剐寡挂褂卦诖呱栝鸹",guai:"乖拐怪哙",guan:"棺关官冠观管馆罐惯灌贯倌莞掼涫盥鹳鳏",guang:"光广逛犷桄胱疒",gui:"瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽匦刿庋宄妫桧炅晷皈簋鲑鳜",gun:"辊滚棍丨衮绲磙鲧",guo:"锅郭国果裹过馘蠃埚掴呙囗帼崞猓椁虢锞聒蜮蜾蝈",ha:"哈",hai:"骸孩海氦亥害骇咴嗨颏醢",han:"酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉邗菡撖阚瀚晗焓颔蚶鼾",hen:"夯痕很狠恨",hang:"杭航沆绗珩桁",hao:"壕嚎豪毫郝好耗号浩薅嗥嚆濠灏昊皓颢蚝",he:"呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺诃劾壑藿嗑嗬阖盍蚵翮",hei:"嘿黑",heng:"哼亨横衡恒訇蘅",hong:"轰哄烘虹鸿洪宏弘红黉讧荭薨闳泓",hou:"喉侯猴吼厚候后堠後逅瘊篌糇鲎骺",hu:"呼乎忽瑚壶葫胡蝴狐糊湖弧虎唬护互沪户冱唿囫岵猢怙惚浒滹琥槲轷觳烀煳戽扈祜鹕鹱笏醐斛",hua:"花哗华猾滑画划化话劐浍骅桦铧稞",huai:"槐徊怀淮坏还踝",huan:"欢环桓缓换患唤痪豢焕涣宦幻郇奂垸擐圜洹浣漶寰逭缳锾鲩鬟",huang:"荒慌黄磺蝗簧皇凰惶煌晃幌恍谎隍徨湟潢遑璜肓癀蟥篁鳇",hui:"灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘诙茴荟蕙哕喙隳洄彗缋珲晖恚虺蟪麾",hun:"荤昏婚魂浑混诨馄阍溷缗",huo:"豁活伙火获或惑霍货祸攉嚯夥钬锪镬耠蠖",ji:"击圾基机畸稽积箕肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪居丌乩剞佶佴脔墼芨芰萁蒺蕺掎叽咭哜唧岌嵴洎彐屐骥畿玑楫殛戟戢赍觊犄齑矶羁嵇稷瘠瘵虮笈笄暨跻跽霁鲚鲫髻麂",jia:"嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁伽郏拮岬浃迦珈戛胛恝铗镓痂蛱笳袈跏",jian:"歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件健舰剑饯渐溅涧建僭谏谫菅蒹搛囝湔蹇謇缣枧柙楗戋戬牮犍毽腱睑锏鹣裥笕箴翦趼踺鲣鞯",jiang:"僵姜将浆江疆蒋桨奖讲匠酱降茳洚绛缰犟礓耩糨豇",jiao:"蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫佼僬茭挢噍峤徼姣纟敫皎鹪蛟醮跤鲛",jie:"窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届偈讦诘喈嗟獬婕孑桀獒碣锴疖袷颉蚧羯鲒骱髫",jin:"巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸尽卺荩堇噤馑廑妗缙瑾槿赆觐钅锓衿矜",jing:"劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净刭儆阱菁獍憬泾迳弪婧肼胫腈旌",jiong:"炯窘冂迥扃",jiu:"揪究纠玖韭久灸九酒厩救旧臼舅咎就疚僦啾阄柩桕鹫赳鬏",ju:"鞠拘狙疽驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧倨讵苣苴莒掬遽屦琚枸椐榘榉橘犋飓钜锔窭裾趄醵踽龃雎鞫",juan:"捐鹃娟倦眷卷绢鄄狷涓桊蠲锩镌隽",jue:"撅攫抉掘倔爵觉决诀绝厥劂谲矍蕨噘崛獗孓珏桷橛爝镢蹶觖",jun:"均菌钧军君峻俊竣浚郡骏捃狻皲筠麇",ka:"喀咖卡佧咔胩",ke:"咯坷苛柯棵磕颗科壳咳可渴克刻客课岢恪溘骒缂珂轲氪瞌钶疴窠蝌髁",kai:"开揩楷凯慨剀垲蒈忾恺铠锎",kan:"刊堪勘坎砍看侃凵莰莶戡龛瞰",kang:"康慷糠扛抗亢炕坑伉闶钪",kao:"考拷烤靠尻栲犒铐",ken:"肯啃垦恳垠裉颀",keng:"吭忐铿",kong:"空恐孔控倥崆箜",kou:"抠口扣寇芤蔻叩眍筘",ku:"枯哭窟苦酷库裤刳堀喾绔骷",kua:"夸垮挎跨胯侉",kuai:"块筷侩快蒯郐蒉狯脍",kuan:"宽款髋",kuang:"匡筐狂框矿眶旷况诓诳邝圹夼哐纩贶",kui:"亏盔岿窥葵奎魁傀馈愧溃馗匮夔隗揆喹喟悝愦阕逵暌睽聩蝰篑臾跬",kun:"坤昆捆困悃阃琨锟醌鲲髡",kuo:"括扩廓阔蛞",la:"垃拉喇蜡腊辣啦剌摺邋旯砬瘌",lai:"莱来赖崃徕涞濑赉睐铼癞籁",lan:"蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥啉岚懔漤榄斓罱镧褴",lang:"琅榔狼廊郎朗浪莨蒗啷阆锒稂螂",lao:"捞劳牢老佬姥酪烙涝唠崂栳铑铹痨醪",le:"勒乐肋仂叻嘞泐鳓",lei:"雷镭蕾磊累儡垒擂类泪羸诔荽咧漯嫘缧檑耒酹",ling:"棱冷拎玲菱零龄铃伶羚凌灵陵岭领另令酃塄苓呤囹泠绫柃棂瓴聆蛉翎鲮",leng:"楞愣",li:"厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐痢立粒沥隶力璃哩俪俚郦坜苈莅蓠藜捩呖唳喱猁溧澧逦娌嫠骊缡珞枥栎轹戾砺詈罹锂鹂疠疬蛎蜊蠡笠篥粝醴跞雳鲡鳢黧",lian:"俩联莲连镰廉怜涟帘敛脸链恋炼练挛蔹奁潋濂娈琏楝殓臁膦裢蠊鲢",liang:"粮凉梁粱良两辆量晾亮谅墚椋踉靓魉",liao:"撩聊僚疗燎寥辽潦了撂镣廖料蓼尥嘹獠寮缭钌鹩耢",lie:"列裂烈劣猎冽埒洌趔躐鬣",lin:"琳林磷霖临邻鳞淋凛赁吝蔺嶙廪遴檩辚瞵粼躏麟",liu:"溜琉榴硫馏留刘瘤流柳六抡偻蒌泖浏遛骝绺旒熘锍镏鹨鎏","long":"龙聋咙笼窿隆垄拢陇弄垅茏泷珑栊胧砻癃",lou:"楼娄搂篓漏陋喽嵝镂瘘耧蝼髅",lu:"芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮垆摅撸噜泸渌漉璐栌橹轳辂辘氇胪镥鸬鹭簏舻鲈",lv:"驴吕铝侣旅履屡缕虑氯律率滤绿捋闾榈膂稆褛",luan:"峦孪滦卵乱栾鸾銮",lue:"掠略锊",lun:"轮伦仑沦纶论囵",luo:"萝螺罗逻锣箩骡裸落洛骆络倮荦摞猡泺椤脶镙瘰雒",ma:"妈麻玛码蚂马骂嘛吗唛犸嬷杩麽",mai:"埋买麦卖迈脉劢荬咪霾",man:"瞒馒蛮满蔓曼慢漫谩墁幔缦熳镘颟螨鳗鞔",mang:"芒茫盲忙莽邙漭朦硭蟒",meng:"氓萌蒙檬盟锰猛梦孟勐甍瞢懵礞虻蜢蠓艋艨黾",miao:"猫苗描瞄藐秒渺庙妙喵邈缈缪杪淼眇鹋蜱",mao:"茅锚毛矛铆卯茂冒帽貌贸侔袤勖茆峁瑁昴牦耄旄懋瞀蛑蝥蟊髦",me:"么",mei:"玫枚梅酶霉煤没眉媒镁每美昧寐妹媚坶莓嵋猸浼湄楣镅鹛袂魅",men:"门闷们扪玟焖懑钔",mi:"眯醚靡糜迷谜弥米秘觅泌蜜密幂芈冖谧蘼嘧猕獯汨宓弭脒敉糸縻麋",mian:"棉眠绵冕免勉娩缅面沔湎腼眄",mie:"蔑灭咩蠛篾",min:"民抿皿敏悯闽苠岷闵泯珉",ming:"明螟鸣铭名命冥茗溟暝瞑酩",miu:"谬",mo:"摸摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谟茉蓦馍嫫镆秣瘼耱蟆貊貘",mou:"谋牟某厶哞婺眸鍪",mu:"拇牡亩姆母墓暮幕募慕木目睦牧穆仫苜呒沐毪钼",na:"拿哪呐钠那娜纳内捺肭镎衲箬",nai:"氖乃奶耐奈鼐艿萘柰",nan:"南男难囊喃囡楠腩蝻赧",nao:"挠脑恼闹孬垴猱瑙硇铙蛲",ne:"淖呢讷",nei:"馁",nen:"嫩能枘恁",ni:"妮霓倪泥尼拟你匿腻逆溺伲坭猊怩滠昵旎祢慝睨铌鲵",nian:"蔫拈年碾撵捻念廿辇黏鲇鲶",niang:"娘酿",niao:"鸟尿茑嬲脲袅",nie:"捏聂孽啮镊镍涅乜陧蘖嗫肀颞臬蹑",nin:"您柠",ning:"狞凝宁拧泞佞蓥咛甯聍",niu:"牛扭钮纽狃忸妞蚴",nong:"脓浓农侬",nu:"奴努怒呶帑弩胬孥驽",nv:"女恧钕衄",nuan:"暖",nuenue:"虐",nue:"疟谑",nuo:"挪懦糯诺傩搦喏锘",ou:"哦欧鸥殴藕呕偶沤怄瓯耦",pa:"啪趴爬帕怕琶葩筢",pai:"拍排牌徘湃派俳蒎",pan:"攀潘盘磐盼畔判叛爿泮袢襻蟠蹒",pang:"乓庞旁耪胖滂逄",pao:"抛咆刨炮袍跑泡匏狍庖脬疱",pei:"呸胚培裴赔陪配佩沛掊辔帔淠旆锫醅霈",pen:"喷盆湓",peng:"砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯堋嘭怦蟛",pi:"砒霹批披劈琵毗啤脾疲皮匹痞僻屁譬丕陴邳郫圮鼙擗噼庀媲纰枇甓睥罴铍痦癖疋蚍貔",pian:"篇偏片骗谝骈犏胼褊翩蹁",piao:"飘漂瓢票剽嘌嫖缥殍瞟螵",pie:"撇瞥丿苤氕",pin:"拼频贫品聘拚姘嫔榀牝颦",ping:"乒坪苹萍平凭瓶评屏俜娉枰鲆",po:"坡泼颇婆破魄迫粕叵鄱溥珀钋钷皤笸",pou:"剖裒踣",pu:"扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑匍噗濮璞氆镤镨蹼",qi:"期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫亟亓圻芑萋葺嘁屺岐汔淇骐绮琪琦杞桤槭欹祺憩碛蛴蜞綦綮趿蹊鳍麒",qia:"掐恰洽葜",qian:"牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉佥阡芊芡荨掮岍悭慊骞搴褰缱椠肷愆钤虔箝",qiang:"枪呛腔羌墙蔷强抢嫱樯戗炝锖锵镪襁蜣羟跫跄",qiao:"橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍劁诮谯荞愀憔缲樵毳硗跷鞒",qie:"切茄且怯窃郄唼惬妾挈锲箧",qin:"钦侵亲秦琴勤芹擒禽寝沁芩蓁蕲揿吣嗪噙溱檎螓衾",qing:"青轻氢倾卿清擎晴氰情顷请庆倩苘圊檠磬蜻罄箐謦鲭黥",qiong:"琼穷邛茕穹筇銎",qiu:"秋丘邱球求囚酋泅俅氽巯艽犰湫逑遒楸赇鸠虬蚯蝤裘糗鳅鼽",qu:"趋区蛆曲躯屈驱渠取娶龋趣去诎劬蕖蘧岖衢阒璩觑氍祛磲癯蛐蠼麴瞿黢",quan:"圈颧权醛泉全痊拳犬券劝诠荃獾悛绻辁畎铨蜷筌鬈",que:"缺炔瘸却鹊榷确雀阙悫",qun:"裙群逡",ran:"然燃冉染苒髯",rang:"瓤壤攘嚷让禳穰",rao:"饶扰绕荛娆桡",ruo:"惹若弱",re:"热偌",ren:"壬仁人忍韧任认刃妊纫仞荏葚饪轫稔衽",reng:"扔仍",ri:"日",rong:"戎茸蓉荣融熔溶容绒冗嵘狨缛榕蝾",rou:"揉柔肉糅蹂鞣",ru:"茹蠕儒孺如辱乳汝入褥蓐薷嚅洳溽濡铷襦颥",ruan:"软阮朊",rui:"蕊瑞锐芮蕤睿蚋",run:"闰润",sa:"撒洒萨卅仨挲飒",sai:"腮鳃塞赛噻",san:"三叁伞散彡馓氵毵糁霰",sang:"桑嗓丧搡磉颡",sao:"搔骚扫嫂埽臊瘙鳋",se:"瑟色涩啬铩铯穑",sen:"森",seng:"僧",sha:"莎砂杀刹沙纱傻啥煞脎歃痧裟霎鲨",shai:"筛晒酾",shan:"珊苫杉山删煽衫闪陕擅赡膳善汕扇缮剡讪鄯埏芟潸姗骟膻钐疝蟮舢跚鳝",shang:"墒伤商赏晌上尚裳垧绱殇熵觞",shao:"梢捎稍烧芍勺韶少哨邵绍劭苕潲蛸笤筲艄",she:"奢赊蛇舌舍赦摄射慑涉社设厍佘猞畲麝",shen:"砷申呻伸身深娠绅神沈审婶甚肾慎渗诜谂吲哂渖椹矧蜃",sheng:"声生甥牲升绳省盛剩胜圣丞渑媵眚笙",shi:"师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试谥埘莳蓍弑唑饣轼耆贳炻礻铈铊螫舐筮豕鲥鲺",shou:"收手首守寿授售受瘦兽扌狩绶艏",shu:"蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱恕倏塾菽忄沭涑澍姝纾毹腧殳镯秫鹬",shua:"刷耍唰涮",shuai:"摔衰甩帅蟀",shuan:"栓拴闩",shuang:"霜双爽孀",shui:"谁水睡税",shun:"吮瞬顺舜恂",shuo:"说硕朔烁蒴搠嗍濯妁槊铄",si:"斯撕嘶思私司丝死肆寺嗣四伺似饲巳厮俟兕菥咝汜泗澌姒驷缌祀祠锶鸶耜蛳笥",song:"松耸怂颂送宋讼诵凇菘崧嵩忪悚淞竦",sou:"搜艘擞嗽叟嗖嗾馊溲飕瞍锼螋",su:"苏酥俗素速粟僳塑溯宿诉肃夙谡蔌嗉愫簌觫稣",suan:"酸蒜算",sui:"虽隋随绥髓碎岁穗遂隧祟蓑冫谇濉邃燧眭睢",sun:"孙损笋荪狲飧榫跣隼",suo:"梭唆缩琐索锁所唢嗦娑桫睃羧",ta:"塌他它她塔獭挞蹋踏闼溻遢榻沓",tai:"胎苔抬台泰酞太态汰邰薹肽炱钛跆鲐",tan:"坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭郯蕈昙钽锬覃",tang:"汤塘搪堂棠膛唐糖傥饧溏瑭铴镗耥螗螳羰醣",thang:"倘躺淌",theng:"趟烫",tao:"掏涛滔绦萄桃逃淘陶讨套挑鼗啕韬饕",te:"特",teng:"藤腾疼誊滕",ti:"梯剔踢锑提题蹄啼体替嚏惕涕剃屉荑悌逖绨缇鹈裼醍",tian:"天添填田甜恬舔腆掭忝阗殄畋钿蚺",tiao:"条迢眺跳佻祧铫窕龆鲦",tie:"贴铁帖萜餮",ting:"厅听烃汀廷停亭庭挺艇莛葶婷梃蜓霆",tong:"通桐酮瞳同铜彤童桶捅筒统痛佟僮仝茼嗵恸潼砼",tou:"偷投头透亠",tu:"凸秃突图徒途涂屠土吐兔堍荼菟钍酴",tuan:"湍团疃",tui:"推颓腿蜕褪退忒煺",tun:"吞屯臀饨暾豚窀",tuo:"拖托脱鸵陀驮驼椭妥拓唾乇佗坨庹沱柝砣箨舄跎鼍",wa:"挖哇蛙洼娃瓦袜佤娲腽",wai:"歪外",wan:"豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕剜芄苋菀纨绾琬脘畹蜿箢",wang:"汪王亡枉网往旺望忘妄罔尢惘辋魍",wei:"威巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫倭偎诿隈葳薇帏帷崴嵬猥猬闱沩洧涠逶娓玮韪軎炜煨熨痿艉鲔",wen:"瘟温蚊文闻纹吻稳紊问刎愠阌汶璺韫殁雯",weng:"嗡翁瓮蓊蕹",wo:"挝蜗涡窝我斡卧握沃莴幄渥杌肟龌",wu:"巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误兀仵阢邬圬芴庑怃忤浯寤迕妩骛牾焐鹉鹜蜈鋈鼯",xi:"昔熙析西硒矽晰嘻吸锡牺稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细僖兮隰郗茜葸蓰奚唏徙饩阋浠淅屣嬉玺樨曦觋欷熹禊禧钸皙穸蜥蟋舾羲粞翕醯鼷",xia:"瞎虾匣霞辖暇峡侠狭下厦夏吓掀葭嗄狎遐瑕硖瘕罅黠",xian:"锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线冼藓岘猃暹娴氙祆鹇痫蚬筅籼酰跹",xiang:"相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象芗葙饷庠骧缃蟓鲞飨",xiao:"萧硝霄削哮嚣销消宵淆晓小孝校肖啸笑效哓咻崤潇逍骁绡枭枵筱箫魈",xie:"楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑偕亵勰燮薤撷廨瀣邂绁缬榭榍歙躞",xin:"薪芯锌欣辛新忻心信衅囟馨莘歆铽鑫",xing:"星腥猩惺兴刑型形邢行醒幸杏性姓陉荇荥擤悻硎",xiong:"兄凶胸匈汹雄熊芎",xiu:"休修羞朽嗅锈秀袖绣莠岫馐庥鸺貅髹",xu:"墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续讴诩圩蓿怵洫溆顼栩煦砉盱胥糈醑",xuan:"轩喧宣悬旋玄选癣眩绚儇谖萱揎馔泫洵渲漩璇楦暄炫煊碹铉镟痃",xue:"靴薛学穴雪血噱泶鳕",xun:"勋熏循旬询寻驯巡殉汛训讯逊迅巽埙荀薰峋徇浔曛窨醺鲟",ya:"压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶伢揠吖岈迓娅琊桠氩砑睚痖",yan:"焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验厣靥赝俨偃兖讠谳郾鄢芫菸崦恹闫阏洇湮滟妍嫣琰晏胭腌焱罨筵酽魇餍鼹",yang:"殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾徉怏泱炀烊恙蛘鞅",yao:"邀腰妖瑶摇尧遥窑谣姚咬舀药要耀夭爻吆崾徭瀹幺珧杳曜肴鹞窈繇鳐",ye:"椰噎耶爷野冶也页掖业叶曳腋夜液谒邺揶馀晔烨铘",yi:"一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎刈劓佾诒圪圯埸懿苡薏弈奕挹弋呓咦咿噫峄嶷猗饴怿怡悒漪迤驿缢殪贻旖熠钇镒镱痍瘗癔翊衤蜴舣羿翳酏黟",yin:"茵荫因殷音阴姻吟银淫寅饮尹引隐印胤鄞堙茚喑狺夤氤铟瘾蚓霪龈",ying:"英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映嬴郢茔莺萦撄嘤膺滢潆瀛瑛璎楹鹦瘿颍罂",yo:"哟唷",yong:"拥佣臃痈庸雍踊蛹咏泳涌永恿勇用俑壅墉慵邕镛甬鳙饔",you:"幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼卣攸侑莸呦囿宥柚猷牖铕疣蝣鱿黝鼬",yu:"迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉浴寓裕预豫驭禺毓伛俣谀谕萸蓣揄喁圄圉嵛狳饫庾阈妪妤纡瑜昱觎腴欤於煜燠聿钰鹆瘐瘀窳蝓竽舁雩龉",yuan:"鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院塬沅媛瑗橼爰眢鸢螈鼋",yue:"曰约越跃钥岳粤月悦阅龠樾刖钺",yun:"耘云郧匀陨允运蕴酝晕韵孕郓芸狁恽纭殒昀氲",za:"匝砸杂拶咂",zai:"栽哉灾宰载再在咱崽甾",zan:"攒暂赞瓒昝簪糌趱錾",zang:"赃脏葬奘戕臧",zao:"遭糟凿藻枣早澡蚤躁噪造皂灶燥唣缫",ze:"责择则泽仄赜啧迮昃笮箦舴",zei:"贼",zen:"怎谮",zeng:"增憎曾赠缯甑罾锃",zha:"扎喳渣札轧铡闸眨栅榨咋乍炸诈揸吒咤哳怍砟痄蚱齄",zhai:"摘斋宅窄债寨砦",zhan:"瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽谵搌旃",zhang:"樟章彰漳张掌涨杖丈帐账仗胀瘴障仉鄣幛嶂獐嫜璋蟑",zhao:"招昭找沼赵照罩兆肇召爪诏棹钊笊",zhe:"遮折哲蛰辙者锗蔗这浙谪陬柘辄磔鹧褚蜇赭",zhen:"珍斟真甄砧臻贞针侦枕疹诊震振镇阵缜桢榛轸赈胗朕祯畛鸩",zheng:"蒸挣睁征狰争怔整拯正政帧症郑证诤峥钲铮筝",zhi:"芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒卮陟郅埴芷摭帙忮彘咫骘栉枳栀桎轵轾攴贽膣祉祗黹雉鸷痣蛭絷酯跖踬踯豸觯",zhong:"中盅忠钟衷终种肿重仲众冢锺螽舂舯踵",zhou:"舟周州洲诌粥轴肘帚咒皱宙昼骤啄着倜诹荮鬻纣胄碡籀舳酎鲷",zhu:"珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑住注祝驻伫侏邾苎茱洙渚潴驺杼槠橥炷铢疰瘃蚰竺箸翥躅麈",zhua:"抓",zhuai:"拽",zhuan:"专砖转撰赚篆抟啭颛",zhuang:"桩庄装妆撞壮状丬",zhui:"椎锥追赘坠缀萑骓缒",zhun:"谆准",zhuo:"捉拙卓桌琢茁酌灼浊倬诼廴蕞擢啜浞涿杓焯禚斫",zi:"兹咨资姿滋淄孜紫仔籽滓子自渍字谘嵫姊孳缁梓辎赀恣眦锱秭耔笫粢觜訾鲻髭",zong:"鬃棕踪宗综总纵腙粽",zou:"邹走奏揍鄹鲰",zu:"租足卒族祖诅阻组俎菹啐徂驵蹴",zuan:"钻纂攥缵",zui:"嘴醉最罪",zun:"尊遵撙樽鳟",zuo:"昨左佐柞做作坐座阝阼胙祚酢",cou:"薮楱辏腠",nang:"攮哝囔馕曩",o:"喔",dia:"嗲",chuai:"嘬膪踹",cen:"岑涔",diu:"铥",nou:"耨",fou:"缶",bia:"髟"}},,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var a=i(515),o=n(a);e["default"]=function(t,e,i){return e in t?(0,o["default"])(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},,,function(t,e,i){"use strict";function n(t){a.each(o,function(e){this[e]=a.bind(t[e],t)},this)}var a=i(1),o=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];t.exports=n},function(t,e,i){var n=i(1);i(134),i(245),i(246);var a=i(199),o=i(2);o.registerLayout(n.curry(a,"bar")),o.registerVisual(function(t){t.eachSeriesByType("bar",function(t){var e=t.getData();e.setVisual("legendSymbol","roundRect")})}),i(76)},function(t,e,i){t.exports=i(159).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect"})},function(t,e,i){"use strict";function n(t,e,i,n,a,o,r){var s=new u.Rect({shape:l.extend({},n)});if(o){var c=s.shape,h=a?"height":"width",d={};c[h]=0,d[h]=n[h],u[r?"updateProps":"initProps"](s,{shape:d},o,e)}return s}function a(t,e,i){i.style.text="",u.updateProps(i,{shape:{width:0}},e,t,function(){i.parent&&i.parent.remove(i)})}function o(t,e,i){var n=t.getItemLayout(e),a=s(i,n),o=n.width>0?1:-1,r=n.height>0?1:-1;return{x:n.x+o*a/2,y:n.y+r*a/2,width:n.width-o*a,height:n.height-r*a}}function r(t,e,i,n,a,o,r){var s=e.getItemVisual(i,"color"),h=e.getItemVisual(i,"opacity"),d=n.getModel("itemStyle.normal"),p=n.getModel("itemStyle.emphasis").getBarItemStyle();t.setShape("r",d.get("barBorderRadius")||0),t.useStyle(l.defaults({fill:s,opacity:h},d.getBarItemStyle()));var f=r?a.height>0?"bottom":"top":a.width>0?"left":"right";c.setLabel(t.style,p,n,s,o,i,f),u.setHoverStyle(t,p)}function s(t,e){var i=t.get(h)||0;return Math.min(i,Math.abs(e.width),Math.abs(e.height))}var l=i(1),u=i(3),c=i(160),h=["itemStyle","normal","barBorderWidth"];l.extend(i(12).prototype,i(249));var d=i(2).extendChartView({type:"bar",render:function(t,e,i){var n=t.get("coordinateSystem");return"cartesian2d"===n&&this._renderOnCartesian(t,e,i),this.group},dispose:l.noop,_renderOnCartesian:function(t,e,i){var s=this.group,l=t.getData(),c=this._data,h=t.coordinateSystem,d=h.getBaseAxis(),p=d.isHorizontal(),f=t.isAnimationEnabled()?t:null;l.diff(c).add(function(e){if(l.hasValue(e)){var i=l.getItemModel(e),a=o(l,e,i),u=n(l,e,i,a,p,f);l.setItemGraphicEl(e,u),s.add(u),r(u,l,e,i,a,t,p)}}).update(function(e,i){var a=c.getItemGraphicEl(i);if(!l.hasValue(e))return void s.remove(a);var h=l.getItemModel(e),d=o(l,e,h);a?u.updateProps(a,{shape:d},f,e):a=n(l,e,h,d,p,f,!0),l.setItemGraphicEl(e,a),s.add(a),r(a,l,e,h,d,t,p)}).remove(function(t){var e=c.getItemGraphicEl(t);e&&a(t,f,e)}).execute(),this._data=l},remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(e){a(e.dataIndex,t,e)}):i.removeAll()}});t.exports=d},function(t,e,i){var n=i(159).extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,n.superApply(this,"getInitialData",arguments)}});t.exports=n},function(t,e,i){function n(t,e,i,n){var l=t.getItemLayout(e),u=i.get("symbolRepeat"),c=i.get("symbolClip"),h=i.get("symbolPosition")||"start",d=i.get("symbolRotate"),p=(d||0)*Math.PI/180||0,f=i.get("symbolPatternSize")||2,g=i.isAnimationEnabled(),m={dataIndex:e,layout:l,itemModel:i,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:c,symbolRepeat:u,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:p,animationModel:g?i:null,hoverAnimation:g&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};a(i,u,l,n,m),o(t,e,l,u,c,m.boundingLength,m.pxSign,f,n,m),r(i,m.symbolScale,p,n,m);var v=m.symbolSize,y=i.get("symbolOffset");return A.isArray(y)&&(y=[D(y[0],v[0]),D(y[1],v[1])]),s(i,v,l,u,c,y,h,m.valueLineWidth,m.boundingLength,m.repeatCutLength,n,m),m}function a(t,e,i,n,a){var o=n.valueDim,r=t.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=a.boundingLength=null!=r?s.toGlobalCoord(s.dataToCoord(s.scale.parse(r)))-l:e?n.coordSysExtent[o.index][1-+(i[o.wh]<=0)]-l:i[o.wh];e&&(a.repeatCutLength=i[o.wh]),a.pxSign=u>0?1:0>u?-1:0}function o(t,e,i,n,a,o,r,s,l,u){var c=l.valueDim,h=l.categoryDim,d=Math.abs(i[h.wh]),p=t.getItemVisual(e,"symbolSize");A.isArray(p)?p=p.slice():(null==p&&(p="100%"),p=[p,p]),p[h.index]=D(p[h.index],d),p[c.index]=D(p[c.index],n?d:Math.abs(o)),u.symbolSize=p;var f=u.symbolScale=[p[0]/s,p[1]/s];f[c.index]*=(l.isHorizontal?-1:1)*r}function r(t,e,i,n,a){var o=t.get(P)||0;o&&(E.attr({scale:e.slice(),rotation:i}),E.updateTransform(),o/=E.getLineScale(),o*=e[n.valueDim.index]),a.valueLineWidth=o}function s(t,e,i,n,a,o,r,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(e[p.index]+s,0),m=g;if(n){var v=Math.abs(l),y=A.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=D(y,e[p.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=L.isNumeric(n),S=w?n:M((v+b)/_),T=v-S*g;y=T/2/(x?S:S-1),_=g+2*y,b=x?0:2*y,w||"fixed"===n||(S=u?M((Math.abs(u)+b)/_):0),m=S*_-b,h.repeatTimes=S,h.symbolMargin=y}var I=f*(m/2),C=h.pathPosition=[];C[d.index]=i[d.wh]/2,C[p.index]="start"===r?I:"end"===r?l-I:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var P=h.bundlePosition=[];P[d.index]=i[d.xy],P[p.index]=i[p.xy];var k=h.barRectShape=A.extend({},i);k[p.wh]=f*Math.max(Math.abs(i[p.wh]),Math.abs(C[p.index]+I)),k[d.wh]=i[d.wh];var E=h.clipShape={};E[d.xy]=-i[d.xy],E[d.wh]=c.ecSize[d.wh],E[p.xy]=0,E[p.wh]=i[p.wh]}function l(t){var e=t.symbolPatternSize,i=I.createSymbol(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function u(t,e,i,n){function a(t){var e=h.slice(),n=i.pxSign,a=t;return("start"===i.symbolRepeatDirection?n>0:0>n)&&(a=p-1-t),e[d.index]=g*(a-p/2+.5)+h[d.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}function o(){b(t,function(t){t.trigger("emphasis")})}function r(){b(t,function(t){t.trigger("normal")})}var s=t.__pictorialBundle,u=i.symbolSize,c=i.valueLineWidth,h=i.pathPosition,d=e.valueDim,p=i.repeatTimes||0,f=0,g=u[e.valueDim.index]+c+2*i.symbolMargin;for(b(t,function(t){t.__pictorialAnimationIndex=f,t.__pictorialRepeatTimes=p,p>f?w(t,null,a(f),i,n):w(t,null,{scale:[0,0]},i,n,function(){s.remove(t)}),m(t,i),f++});p>f;f++){var v=l(i);v.__pictorialAnimationIndex=f,v.__pictorialRepeatTimes=p,s.add(v);var y=a(f,!0);w(v,{position:y.position,scale:[0,0]},{scale:y.scale,rotation:y.rotation},i,n),v.on("mouseover",o).on("mouseout",r),m(v,i)}}function c(t,e,i,n){function a(){this.trigger("emphasis")}function o(){this.trigger("normal")}var r=t.__pictorialBundle,s=t.__pictorialMainPath;s?w(s,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(s=t.__pictorialMainPath=l(i),r.add(s),w(s,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),s.on("mouseover",a).on("mouseout",o)),m(s,i)}function h(t,e,i){var n=A.extend({},e.barRectShape),a=t.__pictorialBarRect; a?w(a,null,{shape:n},e,i):(a=t.__pictorialBarRect=new T.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function d(t,e,i,n){if(i.symbolClip){var a=t.__pictorialClipPath,o=A.extend({},i.clipShape),r=e.valueDim,s=i.animationModel,l=i.dataIndex;if(a)T.updateProps(a,{shape:o},s,l);else{o[r.wh]=0,a=new T.Rect({shape:o}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var u={};u[r.wh]=i.clipShape[r.wh],T[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function p(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=f,i.isAnimationEnabled=g,i}function f(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function g(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function m(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:i.slice()},400,"elasticOut")})}function v(t,e,i,n){var a=new T.Group,o=new T.Group;return a.add(o),a.__pictorialBundle=o,o.attr("position",i.bundlePosition.slice()),i.symbolRepeat?u(a,e,i):c(a,e,i),h(a,i,n),d(a,e,i,n),a.__pictorialShapeStr=_(t,i),a.__pictorialSymbolMeta=i,a}function y(t,e,i){var n=i.animationModel,a=i.dataIndex,o=t.__pictorialBundle;T.updateProps(o,{position:i.bundlePosition.slice()},n,a),i.symbolRepeat?u(t,e,i,!0):c(t,e,i,!0),h(t,i,!0),d(t,e,i,!0)}function x(t,e,i,n){var a=n.__pictorialBarRect;a&&(a.style.text="");var o=[];b(n,function(t){o.push(t)}),n.__pictorialMainPath&&o.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),A.each(o,function(t){T.updateProps(t,{scale:[0,0]},i,e,function(){n.parent&&n.parent.remove(n)})}),t.setItemGraphicEl(e,null)}function _(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function b(t,e,i){A.each(t.__pictorialBundle.children(),function(n){n!==t.__pictorialBarRect&&e.call(i,n)})}function w(t,e,i,n,a,o){e&&t.attr(e),n.symbolClip&&!a?i&&t.attr(i):i&&T[a?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,o)}function S(t,e,i){var n=i.color,a=i.dataIndex,o=i.itemModel,r=o.getModel("itemStyle.normal").getItemStyle(["color"]),s=o.getModel("itemStyle.emphasis").getItemStyle();b(t,function(t){t.setColor(n),t.setStyle(A.defaults({fill:n,opacity:i.opacity},r)),T.setHoverStyle(t,s),t.z2=i.z2});var l={},u=e.valueDim.posDesc[+(i.boundingLength>0)],c=t.__pictorialBarRect;C.setLabel(c.style,l,o,n,e.seriesModel,a,u),T.setHoverStyle(c,l)}function M(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var A=i(1),T=i(3),I=i(26),L=i(4),C=i(160),D=L.parsePercent,P=["itemStyle","normal","borderWidth"],k=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],E=new T.Circle,O=i(2).extendChartView({type:"pictorialBar",render:function(t,e,i){var a=this.group,o=t.getData(),r=this._data,s=t.coordinateSystem,l=s.getBaseAxis(),u=!!l.isHorizontal(),c=s.grid.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:u,valueDim:k[+u],categoryDim:k[1-u]};return o.diff(r).add(function(t){if(o.hasValue(t)){var e=p(o,t),i=n(o,t,e,h),r=v(o,h,i);o.setItemGraphicEl(t,r),a.add(r),S(r,h,i)}}).update(function(t,e){var i=r.getItemGraphicEl(e);if(!o.hasValue(t))return void a.remove(i);var s=p(o,t),l=n(o,t,s,h),u=_(o,l);i&&u!==i.__pictorialShapeStr&&(a.remove(i),o.setItemGraphicEl(t,null),i=null),i?y(i,h,l):i=v(o,h,l,!0),o.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=l,a.add(i),S(i,h,l)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&x(r,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=o,this.group},dispose:A.noop,remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(e){x(n,e.dataIndex,t,e)}):i.removeAll()}});t.exports=O},function(t,e,i){var n=i(78)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getBarItemStyle:function(t){var e=n.call(this,t);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(e.lineDash=i)}return e}}},function(t,e,i){var n=i(2);i(251),i(252),n.registerVisual(i(254)),n.registerLayout(i(253))},function(t,e,i){"use strict";var n=i(1),a=i(17),o=i(83),r=a.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],valueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});n.mixin(r,o.seriesModelMixin,!0),t.exports=r},function(t,e,i){"use strict";function n(t,e,i){var n=e.getItemModel(i),a=n.getModel(u),o=e.getItemVisual(i,"color"),s=a.getItemStyle(["borderColor"]),l=t.childAt(t.whiskerIndex);l.style.set(s),l.style.stroke=o,l.dirty();var h=t.childAt(t.bodyIndex);h.style.set(s),h.style.stroke=o,h.dirty();var d=n.getModel(c).getItemStyle();r.setHoverStyle(t,d)}var a=i(1),o=i(42),r=i(3),s=i(83),l=o.extend({type:"boxplot",getStyleUpdater:function(){return n},dispose:a.noop});a.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];t.exports=l},function(t,e,i){function n(t){var e=[],i=[];return t.eachSeriesByType("boxplot",function(t){var n=t.getBaseAxis(),a=r.indexOf(i,n);0>a&&(a=i.length,i[a]=n,e[a]={axis:n,seriesModels:[]}),e[a].seriesModels.push(t)}),e}function a(t){var e,i,n=t.axis,a=t.seriesModels,o=a.length,s=t.boxWidthList=[],c=t.boxOffsetList=[],h=[];if("category"===n.type)i=n.getBandWidth();else{var d=0;u(a,function(t){d=Math.max(d,t.getData().count())}),e=n.getExtent(),Math.abs(e[1]-e[0])/d}u(a,function(t){var e=t.get("boxWidth");r.isArray(e)||(e=[e,e]),h.push([l(e[0],i)||0,l(e[1],i)||0])});var p=.8*i-2,f=p/o*.3,g=(p-f*(o-1))/o,m=g/2-p/2;u(a,function(t,e){c.push(m),m+=f+g,s.push(Math.min(Math.max(g,h[e][0]),h[e][1]))})}function o(t,e,i){var n=t.coordinateSystem,a=t.getData(),o=t.dimensions,r=t.get("layout"),s=i/2;a.each(o,function(){function t(t){var i=[];i[p]=h,i[f]=t;var a;return isNaN(h)||isNaN(t)?a=[NaN,NaN]:(a=n.dataToPoint(i),a[p]+=e),a}function i(t,e){var i=t.slice(),n=t.slice();i[p]+=s,n[p]-=s,e?x.push(i,n):x.push(n,i)}function l(t){var e=[t.slice(),t.slice()];e[0][p]-=s,e[1][p]+=s,y.push(e)}var u=arguments,c=o.length,h=u[0],d=u[c],p="horizontal"===r?0:1,f=1-p,g=t(u[3]),m=t(u[1]),v=t(u[5]),y=[[m,t(u[2])],[v,t(u[4])]];l(m),l(v),l(g);var x=[];i(y[0][1],0),i(y[1][1],1),a.setItemLayout(d,{chartLayout:r,initBaseline:g[f],median:g,bodyEnds:x,whiskerEnds:y})})}var r=i(1),s=i(4),l=s.parsePercent,u=r.each;t.exports=function(t){var e=n(t);u(e,function(t){var e=t.seriesModels;e.length&&(a(t),u(e,function(e,i){o(e,t.boxOffsetList[i],t.boxWidthList[i])}))})}},function(t,e){var i=["itemStyle","normal","borderColor"];t.exports=function(t,e){var n=t.get("color");t.eachRawSeriesByType("boxplot",function(e){var a=n[e.seriesIndex%n.length],o=e.getData();o.setVisual({legendSymbol:"roundRect",color:e.get(i)||a}),t.isSeriesFiltered(e)||o.each(function(t){var e=o.getItemModel(t);o.setItemVisual(t,{color:e.get(i,!0)})})})}},function(t,e,i){var n=i(2);i(256),i(257),n.registerPreprocessor(i(260)),n.registerVisual(i(259)),n.registerLayout(i(258))},function(t,e,i){"use strict";var n=i(1),a=i(17),o=i(83),r=i(7),s=r.encodeHTML,l=r.addCommas,u=a.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],valueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},formatTooltip:function(t,e){var i=n.map(this.valueDimensions,function(e){return s(e+": "+l(this.getData().get(e,t)))},this).join("
"),a=[];return null!=this.name&&a.push(s(this.name)),null!=i&&a.push(i),a.join("
")},brushSelector:function(t,e,i){var n=e.getItemLayout(t);return i.rect(n.brushRect)}});n.mixin(u,o.seriesModelMixin,!0),t.exports=u},function(t,e,i){"use strict";function n(t,e,i){var n=e.getItemModel(i),a=n.getModel(u),o=e.getItemVisual(i,"color"),s=e.getItemVisual(i,"borderColor")||o,l=a.getItemStyle(["color","color0","borderColor","borderColor0"]),h=t.childAt(t.whiskerIndex);h.useStyle(l),h.style.stroke=s;var d=t.childAt(t.bodyIndex);d.useStyle(l),d.style.fill=o,d.style.stroke=s;var p=n.getModel(c).getItemStyle();r.setHoverStyle(t,p)}var a=i(1),o=i(42),r=i(3),s=i(83),l=o.extend({type:"candlestick",getStyleUpdater:function(){return n},dispose:a.noop});a.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];t.exports=l},function(t,e,i){function n(t,e){var i,n=t.getBaseAxis(),r="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),s=o(a(t.get("barMaxWidth"),r),r),l=o(a(t.get("barMinWidth"),1),r),u=t.get("barWidth");return null!=u?o(u,r):Math.max(Math.min(r/2,s),l)}var a=i(1).retrieve,o=i(4).parsePercent;t.exports=function(t){t.eachSeriesByType("candlestick",function(t){var e=t.coordinateSystem,i=t.getData(),a=t.dimensions,o=t.get("layout"),r=n(t,i);i.each(a,function(){function t(t){var i=[];return i[d]=c,i[p]=t,isNaN(c)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function n(t,e){var i=t.slice(),n=t.slice();i[d]+=r/2,n[d]-=r/2,e?A.push(i,n):A.push(n,i)}function s(){var e=t(Math.min(f,g,m,v)),i=t(Math.max(f,g,m,v));return e[d]-=r/2,i[d]-=r/2,{x:e[0],y:e[1],width:p?r:i[0]-e[0],height:p?i[1]-e[1]:r}}var l=arguments,u=a.length,c=l[0],h=l[u],d="horizontal"===o?0:1,p=1-d,f=l[1],g=l[2],m=l[3],v=l[4],y=Math.min(f,g),x=Math.max(f,g),_=t(y),b=t(x),w=t(m),S=t(v),M=[[S,b],[w,_]],A=[];n(b,0),n(_,1),i.setItemLayout(h,{chartLayout:o,sign:f>g?-1:g>f?1:0,initBaseline:f>g?b[p]:_[p],bodyEnds:A,whiskerEnds:M,brushRect:s()})},!0)})}},function(t,e){var i=["itemStyle","normal","borderColor"],n=["itemStyle","normal","borderColor0"],a=["itemStyle","normal","color"],o=["itemStyle","normal","color0"];t.exports=function(t,e){t.eachRawSeriesByType("candlestick",function(e){var r=e.getData();r.setVisual({legendSymbol:"roundRect"}),t.isSeriesFiltered(e)||r.each(function(t){var e=r.getItemModel(t),s=r.getItemLayout(t).sign;r.setItemVisual(t,{color:e.get(s>0?a:o),borderColor:e.get(s>0?i:n)})})})}},function(t,e,i){var n=i(1);t.exports=function(t){t&&n.isArray(t.series)&&n.each(t.series,function(t){n.isObject(t)&&"k"===t.type&&(t.type="candlestick")})}},function(t,e,i){var n=i(1),a=i(2);i(262),i(263),a.registerVisual(n.curry(i(55),"effectScatter","circle",null)),a.registerLayout(n.curry(i(136),"effectScatter"))},function(t,e,i){"use strict";var n=i(45),a=i(17);t.exports=a.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){var i=n(t.data,this,e);return i},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}})},function(t,e,i){var n=i(72),a=i(290);i(2).extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new n(a)},render:function(t,e,i){var n=t.getData(),a=this._symbolDraw;a.updateData(n),this.group.add(a.group)},updateLayout:function(){this._symbolDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}})},function(t,e,i){var n=i(1),a=i(2);i(265),i(266),a.registerVisual(n.curry(i(139),"funnel")),a.registerLayout(i(267)),a.registerProcessor(n.curry(i(90),"funnel"))},function(t,e,i){"use strict";var n=i(13),a=i(8),o=i(25),r=i(2).extendSeriesModel({type:"series.funnel",init:function(t){r.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){var i=o(["value"],t.data),a=new n(i,this);return a.initData(t.data),a},_defaultLabelLine:function(t){a.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,i=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,i.show=i.show&&t.label.emphasis.show},getDataParams:function(t){var e=this.getData(),i=r.superCall(this,"getDataParams",t),n=e.getSum("value");return i.percent=n?+(e.get("value",t)/n*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}});t.exports=r},function(t,e,i){function n(t,e){function i(){r.ignore=r.hoverIgnore,s.ignore=s.hoverIgnore}function n(){r.ignore=r.normalIgnore,s.ignore=s.normalIgnore}o.Group.call(this);var a=new o.Polygon,r=new o.Polyline,s=new o.Text;this.add(a),this.add(r),this.add(s),this.updateData(t,e,!0),this.on("emphasis",i).on("normal",n).on("mouseover",i).on("mouseout",n)}function a(t,e,i,n){var a=n.getModel("textStyle"),o=n.get("position"),s="inside"===o||"inner"===o||"center"===o;return{fill:a.getTextColor()||(s?"#fff":t.getItemVisual(e,"color")),textFont:a.getFont(),text:r.retrieve(t.hostModel.getFormattedLabel(e,i),t.getName(e))}}var o=i(3),r=i(1),s=n.prototype,l=["itemStyle","normal","opacity"];s.updateData=function(t,e,i){var n=this.childAt(0),a=t.hostModel,s=t.getItemModel(e),u=t.getItemLayout(e),c=t.getItemModel(e).get(l);c=null==c?1:c,n.useStyle({}),i?(n.setShape({points:u.points}),n.setStyle({opacity:0}),o.initProps(n,{style:{opacity:c}},a,e)):o.updateProps(n,{style:{opacity:c},shape:{points:u.points}},a,e);var h=s.getModel("itemStyle"),d=t.getItemVisual(e,"color");n.setStyle(r.defaults({lineJoin:"round",fill:d},h.getModel("normal").getItemStyle(["opacity"]))),n.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),o.setHoverStyle(this)},s._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),r=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),u=l.label,c=t.getItemVisual(e,"color");o.updateProps(i,{shape:{points:u.linePoints||u.linePoints}},r,e),o.updateProps(n,{style:{x:u.x,y:u.y}},r,e),n.attr({style:{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var h=s.getModel("label.normal"),d=s.getModel("label.emphasis"),p=s.getModel("labelLine.normal"),f=s.getModel("labelLine.emphasis");n.setStyle(a(t,e,"normal",h)),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!d.get("show"),i.ignore=i.normalIgnore=!p.get("show"),i.hoverIgnore=!f.get("show"),i.setStyle({stroke:c}),i.setStyle(p.getModel("lineStyle").getLineStyle()),n.hoverStyle=a(t,e,"emphasis",d),i.hoverStyle=f.getModel("lineStyle").getLineStyle()},r.inherits(n,o.Group);var u=i(42).extend({type:"funnel",render:function(t,e,i){var a=t.getData(),o=this._data,r=this.group;a.diff(o).add(function(t){var e=new n(a,t);a.setItemGraphicEl(t,e),r.add(e)}).update(function(t,e){var i=o.getItemGraphicEl(e);i.updateData(a,t),r.add(i),a.setItemGraphicEl(t,i)}).remove(function(t){var e=o.getItemGraphicEl(t);r.remove(e)}).execute(),this._data=a},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=u},function(t,e,i){function n(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function a(t,e){for(var i=t.mapArray("value",function(t){return t}),n=[],a="ascending"===e,o=0,r=t.count();r>o;o++)n[o]=o;return"function"==typeof e?n.sort(e):"none"!==e&&n.sort(function(t,e){return a?i[t]-i[e]:i[e]-i[t]}),n}function o(t){t.each(function(e){var i,n,a,o,r=t.getItemModel(e),s=r.getModel("label.normal"),l=s.get("position"),u=r.getModel("labelLine.normal"),c=t.getItemLayout(e),h=c.points,d="inner"===l||"inside"===l||"center"===l;if(d)n=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,a=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,i="center",o=[[n,a],[n,a]];else{var p,f,g,m=u.get("length");"left"===l?(p=(h[3][0]+h[0][0])/2,f=(h[3][1]+h[0][1])/2,g=p-m,n=g-5,i="right"):(p=(h[1][0]+h[2][0])/2,f=(h[1][1]+h[2][1])/2,g=p+m,n=g+5,i="left");var v=f;o=[[p,f],[g,v]],a=v}c.label={linePoints:o,x:n,y:a,verticalAlign:"middle",textAlign:i,inside:d}})}var r=i(9),s=i(4),l=s.parsePercent;t.exports=function(t,e,i){t.eachSeriesByType("funnel",function(t){var i=t.getData(),r=t.get("sort"),u=n(t,e),c=a(i,r),h=[l(t.get("minSize"),u.width),l(t.get("maxSize"),u.width)],d=i.getDataExtent("value"),p=t.get("min"),f=t.get("max");null==p&&(p=Math.min(d[0],0)),null==f&&(f=d[1]);var g=t.get("funnelAlign"),m=t.get("gap"),v=(u.height-m*(i.count()-1))/i.count(),y=u.y,x=function(t,e){var n,a=i.get("value",t)||0,o=s.linearMap(a,[p,f],h,!0);switch(g){case"left":n=u.x;break;case"center":n=u.x+(u.width-o)/2;break;case"right":n=u.x+u.width-o}return[[n,e],[n+o,e]]};"ascending"===r&&(v=-v,m=-m,y+=u.height,c=c.reverse());for(var _=0;_=t)return n[0][1];for(var e=0;e=t&&(0===e?0:n[e-1][0])=P;P++){var k=Math.cos(A),E=Math.sin(A);if(y.get("show")){var O=new r.Line({shape:{x1:k*g+p,y1:E*g+f,x2:k*(g-S)+p,y2:E*(g-S)+f},style:L,silent:!0});"auto"===L.stroke&&O.setStyle({stroke:n(P/b)}),d.add(O)}if(_.get("show")){var z=a(s.round(P/b*(v-m)+m),_.get("formatter")),N=_.get("distance"),R=new r.Text({style:{text:z,x:k*(g-S-N)+p,y:E*(g-S-N)+f,fill:D.getTextColor(),textFont:D.getFont(),textVerticalAlign:-.4>E?"top":E>.4?"bottom":"middle",textAlign:-.4>k?"left":k>.4?"right":"center"},silent:!0});"auto"===R.style.fill&&R.setStyle({fill:n(P/b)}),d.add(R)}if(x.get("show")&&P!==b){for(var F=0;w>=F;F++){var k=Math.cos(A),E=Math.sin(A),V=new r.Line({shape:{x1:k*g+p,y1:E*g+f,x2:k*(g-M)+p,y2:E*(g-M)+f},silent:!0,style:C});"auto"===C.stroke&&V.setStyle({stroke:n((P+F/w)/b)}),d.add(V),A+=I}A-=I}else A+=T}},_renderPointer:function(t,e,i,n,a,u,c,h){var d=this.group,p=this._data;if(!t.get("pointer.show"))return void(p&&p.eachItemGraphicEl(function(t){d.remove(t)}));var f=[+t.get("min"),+t.get("max")],g=[u,c],m=t.getData();m.diff(p).add(function(e){var i=new o({shape:{angle:u}});r.initProps(i,{shape:{angle:s.linearMap(m.get("value",e),f,g,!0)}},t),d.add(i),m.setItemGraphicEl(e,i)}).update(function(e,i){var n=p.getItemGraphicEl(i);r.updateProps(n,{shape:{angle:s.linearMap(m.get("value",e),f,g,!0)}},t),d.add(n),m.setItemGraphicEl(e,n)}).remove(function(t){var e=p.getItemGraphicEl(t);d.remove(e)}).execute(),m.eachItemGraphicEl(function(t,e){var i=m.getItemModel(e),o=i.getModel("pointer");t.setShape({x:a.cx,y:a.cy,width:l(o.get("width"),a.r),r:l(o.get("length"),a.r)}),t.useStyle(i.getModel("itemStyle.normal").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(s.linearMap(m.get("value",e),f,[0,1],!0))),r.setHoverStyle(t,i.getModel("itemStyle.emphasis").getItemStyle())}),this._data=m},_renderTitle:function(t,e,i,n,a){var o=t.getModel("title");if(o.get("show")){var u=o.getModel("textStyle"),c=o.get("offsetCenter"),h=a.cx+l(c[0],a.r),d=a.cy+l(c[1],a.r),p=new r.Text({style:{x:h,y:d,text:t.getData().getName(0),fill:u.getTextColor(),textFont:u.getFont(),textAlign:"center",textVerticalAlign:"middle"}});if("auto"===p.style.fill){var f=+t.get("min"),g=+t.get("max"),m=t.getData().get("value",0);p.setStyle("fill",n(s.linearMap(m,[f,g],[0,1],!0)))}this.group.add(p)}},_renderDetail:function(t,e,i,n,o){var u=t.getModel("detail"),c=+t.get("min"),h=+t.get("max");if(u.get("show")){var d=u.getModel("textStyle"),p=u.get("offsetCenter"),f=o.cx+l(p[0],o.r),g=o.cy+l(p[1],o.r),m=l(u.get("width"),o.r),v=l(u.get("height"),o.r),y=t.getData().get("value",0),x=new r.Rect({shape:{x:f-m/2,y:g-v/2,width:m,height:v},style:{text:a(y,u.get("formatter")),fill:u.get("backgroundColor"),textFill:d.getTextColor(),textFont:d.getFont()}});"auto"===x.style.textFill&&x.setStyle("textFill",n(s.linearMap(y,[c,h],[0,1],!0))),x.setStyle(u.getItemStyle(["color"])),this.group.add(x)}}});t.exports=c},function(t,e,i){t.exports=i(6).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var i=Math.cos,n=Math.sin,a=e.r,o=e.width,r=e.angle,s=e.x-i(r)*o*(o>=a/3?1:2),l=e.y-n(r)*o*(o>=a/3?1:2);r=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(r)*o,e.y+n(r)*o),t.lineTo(e.x+i(e.angle)*a,e.y+n(e.angle)*a),t.lineTo(e.x-i(r)*o,e.y-n(r)*o),t.lineTo(s,l)}})},function(t,e,i){var n=i(2),a=i(1);i(273),i(274),i(283),n.registerProcessor(i(276)),n.registerVisual(a.curry(i(55),"graph","circle",null)),n.registerVisual(i(277)),n.registerVisual(i(280)),n.registerLayout(i(284)),n.registerLayout(i(278)),n.registerLayout(i(282)),n.registerCoordinateSystem("graphView",{create:i(279)})},function(t,e,i){"use strict";var n=i(13),a=i(1),o=i(8),r=i(12),s=i(7),l=i(166),u=i(2).extendSeriesModel({type:"series.graph",init:function(t){u.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){u.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){u.superApply(this,"mergeDefaultAndTheme",arguments),o.defaultEmphasis(t.edgeLabel,o.LABEL_OPTIONS)},getInitialData:function(t,e){function i(t,i){function n(t){return t=this.parsePath(t),t&&"label"===t[0]?s:this.parentModel}t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels,i=t.getShallow("category"),n=e[i];return n&&(n.parentModel=t.parentModel,t.parentModel=n),t});var a=o.getModel("edgeLabel"),s=new r({label:a.option},a.parentModel,e);i.wrapMethod("getItemModel",function(t){return t.customizeGetParent(n),t})}var n=t.edges||t.links||[],a=t.data||t.nodes||[],o=this;return a&&n?l(a,n,this,!0,i).data:void 0},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),a=this.getDataParams(t,i),o=n.graph.getEdgeByIndex(t),r=n.getName(o.node1.dataIndex),l=n.getName(o.node2.dataIndex),c=[];return null!=r&&c.push(r),null!=l&&c.push(l),c=s.encodeHTML(c.join(" > ")),a.value&&(c+=" : "+s.encodeHTML(a.value)),c}return u.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=a.map(this.option.categories||[],function(t){return null!=t.value?t:a.extend({value:0},t)}),e=new n(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return u.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{normal:{position:"middle"},emphasis:{}},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{normal:{show:!1,formatter:"{b}"},emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}});t.exports=u},function(t,e,i){function n(t,e){return t.getVisual("opacity")||t.getModel().get(e)}var a=i(72),o=i(124),r=i(86),s=i(182),l=i(129),u=i(3),c=i(275),h=i(1),d=["itemStyle","normal","opacity"],p=["lineStyle","normal","opacity"];i(2).extendChartView({type:"graph",init:function(t,e){var i=new a,n=new o,s=this.group;this._controller=new r(e.getZr()),this._controllerHost={target:s},s.add(i.group),s.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(t,e,i){var n=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var a=this._symbolDraw,o=this._lineDraw,r=this.group;if("view"===n.type){var s={position:n.position,scale:n.scale};this._firstRender?r.attr(s):u.updateProps(r,s,t)}c(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();a.updateData(l);var h=t.getEdgeData();o.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get("force.layoutAnimation");d&&this._startForceLayoutIteration(d,p),l.eachItemGraphicEl(function(e,n){var a=l.getItemModel(n);e.off("drag").off("dragend");var o=l.getItemModel(n).get("draggable");o&&e.on("drag",function(){d&&(d.warmUp(),!this._layouting&&this._startForceLayoutIteration(d,p),d.setFixed(n),l.setItemLayout(n,e.position))},this).on("dragend",function(){d&&d.setUnfixed(n)},this),e.setDraggable(o&&d),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))},this);var f="circular"===t.get("layout")&&t.get("circular.rotateLabel"),g=l.getLayout("cx"),m=l.getLayout("cy");l.eachItemGraphicEl(function(t,e){var i=t.getSymbolPath();if(f){var n=l.getItemLayout(e),a=Math.atan2(n[1]-m,n[0]-g);0>a&&(a=2*Math.PI+a);var o=n[0]=m;m+=.1){r[0]=u(a[0],o[0],d[0],m),r[1]=u(a[1],o[1],d[1],m);var v=h(c(r,e)-f);p>v&&(p=v,n=m)}for(var y=0;32>y;y++){var x=n+g;s[0]=u(a[0],o[0],d[0],n),s[1]=u(a[1],o[1],d[1],n),l[0]=u(a[0],o[0],d[0],x),l[1]=u(a[1],o[1],d[1],x);var v=c(s,e)-f;if(h(v)<.01)break;var _=c(l,e)-f;g/=2,0>v?_>=0?n+=g:n-=g:_>=0?n-=g:n+=g}return n}var a=i(43),o=i(5),r=[],s=[],l=[],u=a.quadraticAt,c=o.distSquare,h=Math.abs; t.exports=function(t,e){function i(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}var r=[],s=a.quadraticSubdivide,l=[[],[],[]],u=[[],[]],c=[];e/=2,t.eachEdge(function(t,a){var h=t.getLayout(),d=t.getVisual("fromSymbol"),p=t.getVisual("toSymbol");h.__original||(h.__original=[o.clone(h[0]),o.clone(h[1])],h[2]&&h.__original.push(o.clone(h[2])));var f=h.__original;if(null!=h[2]){if(o.copy(l[0],f[0]),o.copy(l[1],f[2]),o.copy(l[2],f[1]),d&&"none"!=d){var g=i(t.node1),m=n(l,f[0],g*e);s(l[0][0],l[1][0],l[2][0],m,r),l[0][0]=r[3],l[1][0]=r[4],s(l[0][1],l[1][1],l[2][1],m,r),l[0][1]=r[3],l[1][1]=r[4]}if(p&&"none"!=p){var g=i(t.node2),m=n(l,f[1],g*e);s(l[0][0],l[1][0],l[2][0],m,r),l[1][0]=r[1],l[2][0]=r[2],s(l[0][1],l[1][1],l[2][1],m,r),l[1][1]=r[1],l[2][1]=r[2]}o.copy(h[0],l[0]),o.copy(h[1],l[2]),o.copy(h[2],l[1])}else{if(o.copy(u[0],f[0]),o.copy(u[1],f[1]),o.sub(c,u[1],u[0]),o.normalize(c,c),d&&"none"!=d){var g=i(t.node1);o.scaleAndAdd(u[0],u[0],c,g*e)}if(p&&"none"!=p){var g=i(t.node2);o.scaleAndAdd(u[1],u[1],c,-g*e)}o.copy(h[0],u[0]),o.copy(h[1],u[1])}})}},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),n=t.getGraph(),a=n.data,o=i.mapArray(i.getName);a.filterSelf(function(t){var i=a.getItemModel(t),n=i.getShallow("category");if(null!=n){"number"==typeof n&&(n=o[n]);for(var r=0;rs;s++){var m=t[s];m.fixed||(n.sub(o,l,m.p),n.scaleAndAdd(m.p,m.p,o,u*d))}for(var s=0;r>s;s++)for(var h=t[s],v=s+1;r>v;v++){var p=t[v];n.sub(o,p.p,h.p);var f=n.len(o);0===f&&(n.set(o,Math.random()-.5,Math.random()-.5),f=1);var y=(h.rep+p.rep)/f/f;!h.fixed&&a(h.pp,h.pp,o,y),!p.fixed&&a(p.pp,p.pp,o,-y)}for(var x=[],s=0;r>s;s++){var m=t[s];m.fixed||(n.sub(x,m.p,m.pp),n.scaleAndAdd(m.p,m.p,x,d),n.copy(m.pp,m.p))}d=.992*d,i&&i(t,e,.01>d)}}}},function(t,e,i){var n=i(281),a=i(4),o=i(163),r=i(161),s=i(5),l=i(1);t.exports=function(t){t.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var i=t.preservedPoints||{},u=t.getGraph(),c=u.data,h=u.edgeData,d=t.getModel("force"),p=d.get("initLayout");t.preservedPoints?c.each(function(t){var e=c.getId(t);c.setItemLayout(t,i[e]||[NaN,NaN])}):p&&"none"!==p?"circular"===p&&r(t):o(t);var f=c.getDataExtent("value"),g=h.getDataExtent("value"),m=d.get("repulsion"),v=d.get("edgeLength");l.isArray(m)||(m=[m,m]),l.isArray(v)||(v=[v,v]),v=[v[1],v[0]];var y=c.mapArray("value",function(t,e){var i=c.getItemLayout(e),n=a.linearMap(t,f,m);return isNaN(n)&&(n=(m[0]+m[1])/2),{w:n,rep:n,p:!i||isNaN(i[0])||isNaN(i[1])?null:i}}),x=h.mapArray("value",function(t,e){var i=u.getEdgeByIndex(e),n=a.linearMap(t,g,v);return isNaN(n)&&(n=(v[0]+v[1])/2),{n1:y[i.node1.dataIndex],n2:y[i.node2.dataIndex],d:n,curveness:i.getModel().get("lineStyle.normal.curveness")||0}}),e=t.coordinateSystem,_=e.getBoundingRect(),b=n(y,x,{rect:_,gravity:d.get("gravity")}),w=b.step;b.step=function(t){for(var e=0,n=y.length;n>e;e++)y[e].fixed&&s.copy(y[e].p,u.getNodeByIndex(e).getLayout());w(function(e,n,a){for(var o=0,r=e.length;r>o;o++)e[o].fixed||u.getNodeByIndex(o).setLayout(e[o].p),i[c.getId(o)]=e[o].p;for(var o=0,r=n.length;r>o;o++){var l=n[o],h=u.getEdgeByIndex(o),d=l.n1.p,p=l.n2.p,f=h.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],s.copy(f[0],d),s.copy(f[1],p),+l.curveness&&(f[2]=[(d[0]+p[0])/2-(d[1]-p[1])*l.curveness,(d[1]+p[1])/2-(p[0]-d[0])*l.curveness]),h.setLayout(f)}t&&t(a)})},t.forceLayout=b,t.preservedPoints=i,b.step()}else t.forceLayout=null})}},function(t,e,i){var n=i(2),a=i(158),o={type:"graphRoam",event:"graphRoam",update:"none"};n.registerAction(o,function(t,e){e.eachComponent({mainType:"series",query:t},function(e){var i=e.coordinateSystem,n=a.updateCenterAndZoom(i,t);e.setCenter&&e.setCenter(n.center),e.setZoom&&e.setZoom(n.zoom)})}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series.graph:focusNodeAdjacency"},function(){}),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series.graph:unfocusNodeAdjacency"},function(){})},function(t,e,i){var n=i(163),a=i(162);t.exports=function(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),i=t.coordinateSystem;if(i&&"view"!==i.type){var o=t.getData(),r=i.dimensions;o.each(r,function(){for(var t,e=arguments,n=[],a=0;af;++f){var g=t[f],m=g[0],v=g[1],y=g[2],x=n(y);d.globalAlpha=x,d.drawImage(s,m-c,v-c)}for(var _=d.getImageData(0,0,h.width,h.height),b=_.data,w=0,S=b.length,M=this.minOpacity,A=this.maxOpacity,T=A-M;S>w;){var x=b[w+3]/256,I=4*Math.floor(x*(a-1));if(x>0){var L=r(x)?l:u;x>0&&(x=x*T+M),b[w++]=L[I],b[w++]=L[I+1],b[w++]=L[I+2],b[w++]=L[I+3]*x*256}else w+=4}return d.putImageData(_,0,0),h},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=o.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,a=n[i]||(n[i]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,s=0;256>s;s++)e[i](s/255,!0,o),a[r++]=o[0],a[r++]=o[1],a[r++]=o[2],a[r++]=o[3];return a}},t.exports=n},function(t,e,i){var n=i(17),a=i(45);t.exports=n.extend({type:"series.heatmap",getInitialData:function(t,e){return a(t.data,this,e)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}})},function(t,e,i){function n(t,e,i){var n=t[1]-t[0];e=l.map(e,function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}});var a=e.length,o=0;return function(t){for(var n=o;a>n;n++){var r=e[n].interval;if(r[0]<=t&&t<=r[1]){o=n;break}}if(n===a)for(var n=o-1;n>=0;n--){var r=e[n].interval;if(r[0]<=t&&t<=r[1]){o=n;break}}return n>=0&&a>n&&i[n]}}function a(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}function o(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var r=i(3),s=i(286),l=i(1);t.exports=i(2).extendChartView({type:"heatmap",render:function(t,e,i){var n;if(e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(i){i===t&&(n=e)})}),__DEV__&&!n)throw new Error("Heatmap must use with visualMap");this.group.removeAll();var a=t.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(a,t,i):o(a)&&this._renderOnGeo(a,t,n,i)},dispose:function(){},_renderOnCartesianAndCalendar:function(t,e,i){if("cartesian2d"===t.type){var n=t.getAxis("x"),a=t.getAxis("y");if(__DEV__){if("category"!==n.type||"category"!==a.type)throw new Error("Heatmap on cartesian must have two category axes");if(!n.onBand||!a.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}var o=n.getBandWidth(),s=a.getBandWidth()}var u=this.group,c=e.getData(),h="itemStyle.normal",d="itemStyle.emphasis",p="label.normal",f="label.emphasis",g=e.getModel(h).getItemStyle(["color"]),m=e.getModel(d).getItemStyle(),v=e.getModel("label.normal"),y=e.getModel("label.emphasis");c.each("cartesian2d"===t.type?["x","y","z"]:["time","value"],function(i,n,a,x){var _;if("cartesian2d"===t.type){if(isNaN(a))return;var b=t.dataToPoint([i,n]);_=new r.Rect({shape:{x:b[0]-o/2,y:b[1]-s/2,width:o,height:s},style:{fill:c.getItemVisual(x,"color"),opacity:c.getItemVisual(x,"opacity")}})}else{if(isNaN(n))return;x=a,_=new r.Rect({z2:1,shape:t.dataToRect([i,n]).contentShape,style:{fill:c.getItemVisual(x,"color"),opacity:c.getItemVisual(x,"opacity")}})}var w=c.getItemModel(x);c.hasItemOption&&(g=w.getModel(h).getItemStyle(["color"]),m=w.getModel(d).getItemStyle(),v=w.getModel(p),y=w.getModel(f));var S=e.getRawValue(x),M="-";S&&null!=S[2]&&(M=S[2]),v.getShallow("show")&&(r.setText(g,v),g.text=e.getFormattedLabel(x,"normal")||M),y.getShallow("show")&&(r.setText(m,y),m.text=e.getFormattedLabel(x,"emphasis")||M),_.setStyle(g),r.setHoverStyle(_,c.hasItemOption?m:l.extend({},m)),u.add(_),c.setItemGraphicEl(x,_)})},_renderOnGeo:function(t,e,i,o){var l=i.targetVisuals.inRange,u=i.targetVisuals.outOfRange,c=e.getData(),h=this._hmLayer||this._hmLayer||new s;h.blurSize=e.get("blurSize"),h.pointSize=e.get("pointSize"),h.minOpacity=e.get("minOpacity"),h.maxOpacity=e.get("maxOpacity");var d=t.getViewRect().clone(),p=t.getRoamTransform().transform;d.applyTransform(p);var f=Math.max(d.x,0),g=Math.max(d.y,0),m=Math.min(d.width+d.x,o.getWidth()),v=Math.min(d.height+d.y,o.getHeight()),y=m-f,x=v-g,_=c.mapArray(["lng","lat","value"],function(e,i,n){var a=t.dataToPoint([e,i]);return a[0]-=f,a[1]-=g,a.push(n),a}),b=i.getExtent(),w="visualMap.continuous"===i.type?a(b,i.option.range):n(b,i.getPieceList(),i.option.selected);h.update(_,y,x,l.color.getNormalizer(),{inRange:l.color.getColorMapper(),outOfRange:u.color.getColorMapper()},w);var S=new r.Image({style:{width:y,height:x,x:f,y:g,image:h.canvas},silent:!0});this.group.add(S)}})},function(t,e,i){function n(t,e,i){r.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}var a=i(165),o=i(1),r=i(164),s=i(5),l=n.prototype;l.createLine=function(t,e,i){return new a(t,e,i)},l.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,a=1;a=0&&!(n[o]<=e);o--);o=Math.min(o,a-2)}else{for(var o=r;a>o&&!(n[o]>e);o++);o=Math.min(o-1,a-2)}s.lerp(t.position,i[o],i[o+1],(e-n[o])/(n[o+1]-n[o]));var u=i[o+1][0]-i[o][0],c=i[o+1][1]-i[o][1];t.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},o.inherits(n,r),t.exports=n},function(t,e,i){function n(t){return r.isArray(t)||(t=[+t,+t]),t}function a(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function o(t,e){h.call(this);var i=new c(t,e),n=new h;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var r=i(1),s=i(26),l=i(3),u=i(4),c=i(125),h=l.Group,d=3,p=o.prototype;p.stopEffectAnimation=function(){this.childAt(1).removeAll()},p.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),o=0;d>o;o++){var r=s.createSymbol(e,-1,-1,2,2,i);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var l=-o/d*t.period+t.effectOffset;r.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(l).start(),r.animateStyle(!0).when(t.period,{opacity:0}).delay(l).start(),n.add(r)}a(n,t)},p.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],o=0;n>o;o++){var r=n[o];if(e[r]!==t[r])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}a(i,t)},p.highlight=function(){this.trigger("emphasis")},p.downplay=function(){this.trigger("normal")},p.updateData=function(t,e){var i=t.hostModel;this.childAt(0).updateData(t,e);var a=this.childAt(1),o=t.getItemModel(e),r=t.getItemVisual(e,"symbol"),s=n(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"color");a.attr("scale",s),a.traverse(function(t){t.attr({fill:l})});var c=o.getShallow("symbolOffset");if(c){var h=a.position;h[0]=u.parsePercent(c[0],s[0]),h[1]=u.parsePercent(c[1],s[1])}a.rotation=(o.getShallow("symbolRotate")||0)*Math.PI/180||0;var d={};if(d.showEffectOn=i.get("showEffectOn"),d.rippleScale=o.get("rippleEffect.scale"),d.brushType=o.get("rippleEffect.brushType"),d.period=1e3*o.get("rippleEffect.period"),d.effectOffset=e/t.count(),d.z=o.getShallow("z")||0,d.zlevel=o.getShallow("zlevel")||0,d.symbolType=r,d.color=l,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===d.showEffectOn)this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d;else{this._effectCfg=null,this.stopEffectAnimation();var p=this.childAt(0),f=function(){p.trigger("emphasis"),"render"!==d.showEffectOn&&this.startEffectAnimation(d)},g=function(){p.trigger("normal"),"render"!==d.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",f,this).on("mouseout",g,this).on("emphasis",f,this).on("normal",g,this)}this._effectCfg=d},p.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},r.inherits(o,h),t.exports=o},function(t,e,i){function n(){this.group=new a.Group,this._lineEl=new s}var a=i(3),o=i(209),r=i(207),s=a.extendShape({shape:{polyline:!1,segs:[]},buildPath:function(t,e){for(var i=e.segs,n=e.polyline,a=0;a2?t.quadraticCurveTo(o[2][0],o[2][1],o[1][0],o[1][1]):t.lineTo(o[1][0],o[1][1])}},findDataIndex:function(t,e){for(var i=this.shape,n=i.segs,a=i.polyline,s=Math.max(this.style.lineWidth,1),l=0;l2){if(o.containStroke(u[0][0],u[0][1],u[2][0],u[2][1],u[1][0],u[1][1],s,t,e))return l}else if(r.containStroke(u[0][0],u[0][1],u[1][0],u[1][1],s,t,e))return l}return-1}}),l=n.prototype;l.updateData=function(t){this.group.removeAll();var e=this._lineEl,i=t.hostModel;e.setShape({segs:t.mapArray(t.getItemLayout),polyline:i.get("polyline")}),e.useStyle(i.getModel("lineStyle.normal").getLineStyle());var n=t.getVisual("color");n&&e.setStyle("stroke",n),e.setStyle("fill"),e.seriesIndex=i.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>0&&(e.dataIndex=i)}),this.group.add(e)},l.updateLayout=function(t){var e=t.getData();this._lineEl.setShape({segs:e.mapArray(e.getItemLayout)})},l.remove=function(){this.group.removeAll()},t.exports=n},function(t,e,i){function n(){this.group=new a.Group,this._symbolEl=new r({})}var a=i(3),o=i(26),r=a.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(t,e){for(var i=e.points,n=e.sizes,a=this.symbolProxy,o=a.shape,r=0;r=0;o--){var r=n[o],s=a[o],l=r[0]-s[0]/2,u=r[1]-s[1]/2;if(t>=l&&e>=u&&t<=l+s[0]&&e<=u+s[1])return o}return-1}}),s=n.prototype;s.updateData=function(t){this.group.removeAll();var e=this._symbolEl,i=t.hostModel;e.setShape({points:t.mapArray(t.getItemLayout),sizes:t.mapArray(function(e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array||(i=[i,i]),i})}),e.symbolProxy=o.createSymbol(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor,e.useStyle(i.getModel("itemStyle.normal").getItemStyle(["color"]));var n=t.getVisual("color");n&&e.setColor(n),e.seriesIndex=i.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>0&&(e.dataIndex=i)}),this.group.add(e)},s.updateLayout=function(t){var e=t.getData();this._symbolEl.setShape({points:e.mapArray(e.getItemLayout)})},s.remove=function(){this.group.removeAll()},t.exports=n},function(t,e,i){function n(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var a=i(3),o=i(5),r=a.Line.prototype,s=a.BezierCurve.prototype;t.exports=a.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(n(e)?r:s).buildPath(t,e)},pointAt:function(t){return n(this.shape)?r.pointAt.call(this,t):s.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,i=n(e)?[e.x2-e.x1,e.y2-e.y1]:s.tangentAt.call(this,t);return o.normalize(i,i)}})},function(t,e,i){function n(t,e,i,n){l.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=i,this._createContent(t,e,n),this.updateData(t,e,n),this._seriesModel}function a(t,e,i){return s.map(t,function(t){return t=t.slice(),t[e]=i.initBaseline,t})}function o(t){var e={};return s.each(t,function(t,i){e["ends"+i]=t}),e}function r(t){this.group=new l.Group,this.styleUpdater=t}var s=i(1),l=i(3),u=i(6),c=u.extend({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var i in e)if(e.hasOwnProperty(i)&&0===i.indexOf("ends")){var n=e[i];t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1])}}}),h=n.prototype;h._createContent=function(t,e,i){var n=t.getItemLayout(e),r="horizontal"===n.chartLayout?1:0,u=0;this.add(new l.Polygon({shape:{points:i?a(n.bodyEnds,r,n):n.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=u++;var h=s.map(n.whiskerEnds,function(t){return i?a(t,r,n):t});this.add(new c({shape:o(h),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=u++},h.updateData=function(t,e,i){var n=this._seriesModel=t.hostModel,a=t.getItemLayout(e),r=l[i?"initProps":"updateProps"];r(this.childAt(this.bodyIndex),{shape:{points:a.bodyEnds}},n,e),r(this.childAt(this.whiskerIndex),{shape:o(a.whiskerEnds)},n,e),this.styleUpdater.call(null,this,t,e)},s.inherits(n,l.Group);var d=r.prototype;d.updateData=function(t){var e=this.group,i=this._data,a=this.styleUpdater;t.diff(i).add(function(i){if(t.hasValue(i)){var o=new n(t,i,a,!0);t.setItemGraphicEl(i,o),e.add(o)}}).update(function(o,r){var s=i.getItemGraphicEl(r);return t.hasValue(o)?(s?s.updateData(t,o):s=new n(t,o,a),e.add(s),void t.setItemGraphicEl(o,s)):void e.remove(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&e.remove(n)}).execute(),this._data=t},d.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.exports=r},function(t,e,i){var n=i(1),a=i(2),o=a.PRIORITY;i(296),i(297),a.registerVisual(n.curry(i(55),"line","circle","line")),a.registerLayout(n.curry(i(136),"line")),a.registerProcessor(o.PROCESSOR.STATISTIC,n.curry(i(474),"line")),i(76)},function(t,e,i){"use strict";var n=i(45),a=i(17);t.exports=a.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){if(__DEV__){var i=t.coordinateSystem;if("polar"!==i&&"cartesian2d"!==i)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return n(t.data,this,e)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})},function(t,e,i){"use strict";function n(t,e){if(t.length===e.length){for(var i=0;ie[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function r(t){return t>=0?1:-1}function s(t,e){var i=t.getBaseAxis(),n=t.getOtherAxis(i),a=i.onZero?0:n.scale.getExtent()[0],o=n.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],function(n,l){for(var u,c=e.stackedOn;c&&r(c.get(o,l))===r(n);){u=c;break}var h=[];return h[s]=e.get(i.dim,l),h[1-s]=u?u.get(o,l,!0):a,t.dataToPoint(h)},!0)}function l(t,e,i){var n=o(t.getAxis("x")),a=o(t.getAxis("y")),r=t.getBaseAxis().isHorizontal(),s=Math.min(n[0],n[1]),l=Math.min(a[0],a[1]),u=Math.max(n[0],n[1])-s,c=Math.max(a[0],a[1])-l,h=i.get("lineStyle.normal.width")||2,d=i.get("clipOverflow")?h/2:Math.max(u,c);r?(l-=d,c+=2*d):(s-=d,u+=2*d);var p=new v.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(p.shape[r?"width":"height"]=0,v.initProps(p,{shape:{width:u,height:c}},i)),p}function u(t,e,i){var n=t.getAngleAxis(),a=t.getRadiusAxis(),o=a.getExtent(),r=n.getExtent(),s=Math.PI/180,l=new v.Sector({shape:{cx:t.cx,cy:t.cy,r0:o[0],r:o[1],startAngle:-r[0]*s,endAngle:-r[1]*s,clockwise:n.inverse}});return e&&(l.shape.endAngle=-r[0]*s,v.initProps(l,{shape:{endAngle:-r[1]*s}},i)),l}function c(t,e,i){return"polar"===t.type?u(t,e,i):l(t,e,i)}function h(t,e,i){for(var n=e.getBaseAxis(),a="x"===n.dim||"radius"===n.dim?0:1,o=[],r=0;r=0;a--)if(i[a].dimension<2){n=i[a];break}if(!n||"cartesian2d"!==e.type)return void(__DEV__&&console.warn("Visual map on line style only support x or y dimension."));var o=n.dimension,r=t.dimensions[o],s=e.getAxis(r),l=p.map(n.stops,function(t){return{coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}}),u=l.length,c=n.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=10,d=l[0].coord-h,f=l[u-1].coord+h,g=f-d;if(.001>g)return"transparent";p.each(l,function(t){t.offset=(t.coord-d)/g}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var m=new v.LinearGradient(0,0,0,0,l,!0);return m[r]=d,m[r+"2"]=f,m}}var p=i(1),f=i(72),g=i(125),m=i(298),v=i(3),y=i(8),x=i(167),_=i(42);t.exports=_.extend({type:"line",init:function(){var t=new v.Group,e=new f;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,i){var o=t.coordinateSystem,r=this.group,l=t.getData(),u=t.getModel("lineStyle.normal"),f=t.getModel("areaStyle.normal"),g=l.mapArray(l.getItemLayout,!0),m="polar"===o.type,v=this._coordSys,y=this._symbolDraw,x=this._polyline,_=this._polygon,b=this._lineGroup,w=t.get("animation"),S=!f.isEmpty(),M=s(o,l),A=t.get("showSymbol"),T=A&&!m&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,o),I=this._data;I&&I.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),I.setItemGraphicEl(e,null))}),A||y.remove(),r.add(b);var L=!m&&t.get("step");x&&v.type===o.type&&L===this._step?(S&&!_?_=this._newPolygon(g,M,o,w):_&&!S&&(b.remove(_),_=this._polygon=null),b.setClipPath(c(o,!1,t)),A&&y.updateData(l,T),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),n(this._stackedOnPoints,M)&&n(this._points,g)||(w?this._updateAnimation(l,M,o,i,L):(L&&(g=h(g,o,L),M=h(M,o,L)),x.setShape({points:g}),_&&_.setShape({points:g,stackedOnPoints:M})))):(A&&y.updateData(l,T),L&&(g=h(g,o,L),M=h(M,o,L)),x=this._newPolyline(g,o,w),S&&(_=this._newPolygon(g,M,o,w)),b.setClipPath(c(o,!0,t)));var C=d(l,o)||l.getVisual("color");x.useStyle(p.defaults(u.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"}));var D=t.get("smooth");if(D=a(t.get("smooth")),x.setShape({smooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),_){var P=l.stackedOn,k=0;if(_.useStyle(p.defaults(f.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel"})),P){var E=P.hostModel;k=a(E.get("smooth"))}_.setShape({smooth:D,stackedOnSmooth:k,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=o,this._stackedOnPoints=M,this._points=g,this._step=L},dispose:function(){},highlight:function(t,e,i,n){var a=t.getData(),o=y.queryDataIndex(a,n);if(!(o instanceof Array)&&null!=o&&o>=0){var r=a.getItemGraphicEl(o);if(!r){var s=a.getItemLayout(o);if(!s)return;r=new g(a,o),r.position=s,r.setZ(t.get("zlevel"),t.get("z")),r.ignore=isNaN(s[0])||isNaN(s[1]),r.__temp=!0,a.setItemGraphicEl(o,r),r.stopSymbolAnimation(!0),this.group.add(r)}r.highlight()}else _.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var a=t.getData(),o=y.queryDataIndex(a,n);if(null!=o&&o>=0){var r=a.getItemGraphicEl(o);r&&(r.__temp?(a.setItemGraphicEl(o,null),this.group.remove(r)):r.downplay())}else _.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new x.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new x.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale("ordinal")[0];return i&&i.isLabelIgnored?p.bind(i.isLabelIgnored,i):void 0},_updateAnimation:function(t,e,i,n,a){var o=this._polyline,r=this._polygon,s=t.hostModel,l=m(this._data,t,this._stackedOnPoints,e,this._coordSys,i),u=l.current,c=l.stackedOnCurrent,d=l.next,p=l.stackedOnNext;a&&(u=h(l.current,i,a),c=h(l.stackedOnCurrent,i,a),d=h(l.next,i,a),p=h(l.stackedOnNext,i,a)),o.shape.__points=l.current,o.shape.points=u,v.updateProps(o,{shape:{points:d}},s),r&&(r.setShape({points:u,stackedOnPoints:c}),v.updateProps(r,{shape:{points:d,stackedOnPoints:p}},s));for(var f=[],g=l.status,y=0;y=0?1:-1}function n(t,e,n){for(var a,o=t.getBaseAxis(),r=t.getOtherAxis(o),s=o.onZero?0:r.scale.getExtent()[0],l=r.dim,u="x"===l||"radius"===l?1:0,c=e.stackedOn,h=e.get(l,n);c&&i(c.get(l,n))===i(h);){a=c;break}var d=[];return d[u]=e.get(o.dim,n),d[1-u]=a?a.get(l,n,!0):s,t.dataToPoint(d)}function a(t,e){var i=[];return e.diff(t).add(function(t){i.push({cmd:"+",idx:t})}).update(function(t,e){i.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){i.push({cmd:"-",idx:t})}).execute(),i}t.exports=function(t,e,i,o,r,s){for(var l=a(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],m=s.dimensions,v=0;v "))},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}})},function(t,e,i){var n=i(124),a=i(164),o=i(123),r=i(165),s=i(289),l=i(291);i(2).extendChartView({type:"lines",init:function(){},render:function(t,e,i){var u=t.getData(),c=this._lineDraw,h=t.get("effect.show"),d=t.get("polyline"),p=t.get("large")&&u.count()>=t.get("largeThreshold");__DEV__&&h&&p&&console.warn("Large lines not support effect"),h===this._hasEffet&&d===this._isPolyline&&p===this._isLarge||(c&&c.remove(),c=this._lineDraw=p?new l:new n(d?h?s:r:h?a:o),this._hasEffet=h,this._isPolyline=d,this._isLarge=p);var f=t.get("zlevel"),g=t.get("effect.trailLength"),m=i.getZr();if(m.painter.getLayer(f).clear(!0),null!=this._lastZlevel&&m.configLayer(this._lastZlevel,{motionBlur:!1}),h&&g){if(__DEV__){var v=!1;e.eachSeries(function(e){e!==t&&e.get("zlevel")===f&&(v=!0)}),v&&console.warn("Lines with trail effect should have an individual zlevel")}m.configLayer(f,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(g/10+.9,1),0)})}this.group.add(c.group),c.updateData(u),this._lastZlevel=f},updateLayout:function(t,e,i){this._lineDraw.updateLayout(t);var n=i.getZr();n.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(e,!0)},dispose:function(){}})},function(t,e){t.exports=function(t){t.eachSeriesByType("lines",function(t){var e=t.coordinateSystem,i=t.getData();i.each(function(n){var a=i.getItemModel(n),o=a.option instanceof Array?a.option:a.get("coords");if(__DEV__&&!(o instanceof Array&&o.length>0&&o[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(o)+". Lines must have 2d coords array in data item.");var r=[];if(t.get("polyline"))for(var s=0;s"+l(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215,0,0.8)"}}}});o.mixin(d,c),t.exports=d},function(t,e,i){var n=i(3),a=i(178);i(2).extendChartView({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id){var r=this._mapDraw;r&&o.add(r.group)}else if(t.needsDrawMap){var r=this._mapDraw||new a(i,!0);o.add(r.group),r.draw(t,e,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,i){var a=t.originalData,o=this.group;a.each("value",function(e,i){if(!isNaN(e)){var r=a.getItemLayout(i);if(r&&r.point){var s=r.point,l=r.offset,u=new n.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:10});if(!l){var c=t.mainSeries.getData(),h=a.getName(i),d=h,p=c.indexOfName(h),f=a.getItemModel(i),g=f.getModel("label.normal"),m=f.getModel("label.emphasis"),v=g.getModel("textStyle"),y=m.getModel("textStyle"),x=c.getItemGraphicEl(p);u.setStyle({textPosition:"bottom"});var _=function(){u.setStyle({text:m.get("show")?d:"",textFill:y.getTextColor(),textFont:y.getFont()})},b=function(){u.setStyle({text:g.get("show")?d:"",textFill:v.getTextColor(),textFont:v.getFont()})};x.on("mouseover",_).on("mouseout",b).on("emphasis",_).on("normal",b),b()}o.add(u)}}})}})},function(t,e,i){var n=i(1);t.exports=function(t){var e=[];n.each(t.series,function(t){"map"===t.type&&e.push(t)}),n.each(e,function(t){t.map=t.map||t.mapType,n.defaults(t,t.mapLocation)})}},function(t,e,i){function n(t,e){var i={},n=["value"];return a.each(t,function(t){t.each(n,function(e,n){var a=t.getName(n);i[a]=i[a]||[],isNaN(e)||i[a].push(e)})}),t[0].map(n,function(n,a){for(var o=t[0].getName(a),r=0,s=1/0,l=-(1/0),u=i[o].length,c=0;u>c;c++)s=Math.min(s,i[o][c]),l=Math.max(l,i[o][c]),r+=i[o][c];var h;return h="min"===e?s:"max"===e?l:"average"===e?r/u:r,0===u?NaN:h})}var a=i(1);t.exports=function(t){var e={};t.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),a.each(e,function(t,e){for(var i=n(a.map(t,function(t){return t.getData()}),t[0].get("mapValueCalculation")),o=0;o=0?e:NaN}})}function a(t){return+t.replace("dim","")}function o(t,e){var i=0;s.each(t,function(t){var e=a(t);e>i&&(i=e)});var n=e[0];n&&n.length-1>i&&(i=n.length-1);for(var o=[],r=0;i>=r;r++)o.push("dim"+r);return o}var r=i(13),s=i(1),l=i(17),u=i(25);t.exports=l.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.normal.color",getInitialData:function(t,e){var i=e.getComponent("parallel",this.get("parallelIndex")),a=i.parallelAxisIndex,l=t.data,c=i.dimensions,h=o(c,l),d=s.map(h,function(t,i){var o=s.indexOf(c,t),r=o>=0&&e.getComponent("parallelAxis",a[o]);return r&&"category"===r.get("type")?(n(r,t,l),{name:t,type:"ordinal"}):0>o&&u.guessOrdinal(l,i)?{name:t,type:"ordinal"}:t}),p=new r(d,this);return p.initData(l),this.option.progressive&&(this.option.animation=!1),p},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,function(e,a){t===e&&n.push(i.getRawIndex(a))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}})},function(t,e,i){function n(t,e,i){var n=t.model,a=t.getRect(),o=new l.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),r="horizontal"===n.get("layout")?"width":"height";return o.setShape(r,0),l.initProps(o,{shape:{width:a.width,height:a.height}},e,i),o}function a(t,e,i,n){for(var a=[],o=0;o0&&"scale"!==d){var g=r.getItemLayout(0),m=Math.max(i.getWidth(),i.getHeight())/2,v=l.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(g.cx,g.cy,m,g.startAngle,g.clockwise,v,t))}this._data=r}},dispose:function(){},_createClipPath:function(t,e,i,n,a,o,r){var l=new s.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:a}});return s.initProps(l,{shape:{endAngle:n+(a?1:-1)*Math.PI*2}},r,o),l},containPoint:function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var a=t[0]-n.cx,o=t[1]-n.cy,r=Math.sqrt(a*a+o*o);return r<=n.r&&r>=n.r0}}});t.exports=c},function(t,e,i){"use strict";function n(t,e,i,n,a,o,r){function s(e,i,n,a){for(var o=e;i>o;o++)if(t[o].y+=n,o>e&&i>o+1&&t[o+1].y>t[o].y+t[o].height)return void l(o,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function u(t,e,i,n,a,o){for(var r=o>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t.length;l>s;s++)if("center"!==t[s].position){var u=Math.abs(t[s].y-n),c=t[s].len,h=t[s].len2,d=a+c>u?Math.sqrt((a+c+h)*(a+c+h)-u*u):Math.abs(t[s].x-i);e&&d>=r&&(d=r-10),!e&&r>=d&&(d=r+10),t[s].x=i+d*o,r=d}}t.sort(function(t,e){return t.y-e.y});for(var c,h=0,d=t.length,p=[],f=[],g=0;d>g;g++)c=t[g].y-h,0>c&&s(g,d,-c,a),h=t[g].y+t[g].height;0>r-h&&l(d-1,h-r);for(var g=0;d>g;g++)t[g].y>=i?f.push(t[g]):p.push(t[g]);u(p,!1,e,i,n,a),u(f,!0,e,i,n,a)}function a(t,e,i,a,o,r){for(var s=[],l=[],u=0;ub?-1:1)*x,C=I;n=L+(0>b?-5:5),a=C,h=[[M,A],[T,I],[L,C]]}d=S?"center":b>0?"left":"right"}var D=g.getModel("textStyle").getFont(),P=g.get("rotate")?0>b?-_+Math.PI:-_:0,k=t.getFormattedLabel(i,"normal")||l.getName(i),E=o.getBoundingRect(k,D,d,"top");c=!!P,p.label={x:n,y:a,position:m,height:E.height,len:y,len2:x,linePoints:h,textAlign:d,verticalAlign:"middle",font:D,rotation:P},S||u.push(p.label)}),!c&&t.get("avoidLabelOverlap")&&a(u,r,s,e,i,n)}},function(t,e,i){var n=i(4),a=n.parsePercent,o=i(319),r=i(1),s=2*Math.PI,l=Math.PI/180;t.exports=function(t,e,i,u){e.eachSeriesByType(t,function(t){var e=t.get("center"),u=t.get("radius");r.isArray(u)||(u=[0,u]),r.isArray(e)||(e=[e,e]);var c=i.getWidth(),h=i.getHeight(),d=Math.min(c,h),p=a(e[0],c),f=a(e[1],h),g=a(u[0],d/2),m=a(u[1],d/2),v=t.getData(),y=-t.get("startAngle")*l,x=t.get("minAngle")*l,_=v.getSum("value"),b=Math.PI/(_||v.count())*2,w=t.get("clockwise"),S=t.get("roseType"),M=t.get("stillShowZeroSum"),A=v.getDataExtent("value");A[0]=0;var T=s,I=0,L=y,C=w?1:-1;if(v.each("value",function(t,e){var i;if(isNaN(t))return void v.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:p,cy:f,r0:g,r:S?NaN:m});i="area"!==S?0===_&&M?b:t*b:s/(v.count()||1),x>i?(i=x,T-=x):I+=t;var a=L+C*i;v.setItemLayout(e,{angle:i,startAngle:L,endAngle:a,clockwise:w,cx:p,cy:f,r0:g,r:S?n.linearMap(t,A,[g,m]):m}),L=a},!0),s>T)if(.001>=T){var D=s/v.count();v.each(function(t){var e=v.getItemLayout(t);e.startAngle=y+C*t*D,e.endAngle=y+C*(t+1)*D})}else b=T/I,L=y,v.each("value",function(t,e){var i=v.getItemLayout(e),n=i.angle===x?x:t*b;i.startAngle=L,i.endAngle=L+C*n,L+=C*n});o(t,m,c,h)})}},function(t,e,i){var n=i(1),a=i(2);i(398),i(322),i(323),a.registerVisual(n.curry(i(139),"radar")),a.registerVisual(n.curry(i(55),"radar","circle",null)),a.registerLayout(i(325)),a.registerProcessor(n.curry(i(90),"radar")),a.registerPreprocessor(i(324))},function(t,e,i){"use strict";var n=i(17),a=i(13),o=i(25),r=i(1),s=i(7).encodeHTML,l=n.extend({type:"series.radar",dependencies:["radar"],init:function(t){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(t,e){var i=t.data||[],n=o([],i,{extraPrefix:"indicator_"}),r=new a(n,this);return r.initData(i),r},formatTooltip:function(t){var e=this.getRawValue(t),i=this.coordinateSystem,n=i.getIndicatorAxes(),a=this.getData().getName(t);return s(""===a?this.name:a)+"
"+r.map(n,function(t,i){return s(t.name+" : "+e[i])}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptyCircle",symbolSize:4}});t.exports=l},function(t,e,i){function n(t){return o.isArray(t)||(t=[+t,+t]),t}var a=i(3),o=i(1),r=i(26);t.exports=i(2).extendChartView({type:"radar",render:function(t,e,i){function s(t,e){var i=t.getItemVisual(e,"symbol")||"circle",a=t.getItemVisual(e,"color");if("none"!==i){var o=r.createSymbol(i,-.5,-.5,1,1,a);return o.attr({style:{strokeNoScale:!0},z2:100,scale:n(t.getItemVisual(e,"symbolSize"))}),o}}function l(e,i,n,o,r,l){n.removeAll();for(var u=0;uu;u++){var h=n[u];h.setLayout({x:o},!0),h.setLayout({dx:e},!0);for(var d=0,p=h.outEdges.length;p>d;d++)a.push(h.outEdges[d].node2)}n=a,++o}s(t,o),r=(i-e)/(o-1),l(t,r)}function s(t,e){T.each(t,function(t){t.outEdges.length||t.setLayout({x:e-1},!0)})}function l(t,e){T.each(t,function(t){var i=t.getLayout().x*e;t.setLayout({x:i},!0)})}function u(t,e,i,n,a){var o=A().key(function(t){return t.getLayout().x}).sortKeys(w).entries(t).map(function(t){return t.values});c(t,o,e,i,n),h(o,n,i);for(var r=1;a>0;a--)r*=.99,d(o,r),h(o,n,i),f(o,r),h(o,n,i)}function c(t,e,i,n,a){var o=[];T.each(e,function(t){var e=t.length,i=0;T.each(t,function(t){i+=t.getLayout().value});var r=(n-(e-1)*a)/i;o.push(r)}),o.sort(function(t,e){return t-e});var r=o[0];T.each(e,function(t){T.each(t,function(t,e){t.setLayout({y:e},!0);var i=t.getLayout().value*r;t.setLayout({dy:i},!0)})}),T.each(i,function(t){var e=+t.getValue()*r;t.setLayout({dy:e},!0)})}function h(t,e,i){T.each(t,function(t){var n,a,o,r=0,s=t.length;for(t.sort(b), o=0;s>o;o++){if(n=t[o],a=r-n.getLayout().y,a>0){var l=n.getLayout().y+a;n.setLayout({y:l},!0)}r=n.getLayout().y+n.getLayout().dy+e}if(a=r-e-i,a>0){var l=n.getLayout().y-a;for(n.setLayout({y:l},!0),r=n.getLayout().y,o=s-2;o>=0;--o)n=t[o],a=n.getLayout().y+n.getLayout().dy+e-r,a>0&&(l=n.getLayout().y-a,n.setLayout({y:l},!0)),r=n.getLayout().y}})}function d(t,e){T.each(t.slice().reverse(),function(t){T.each(t,function(t){if(t.outEdges.length){var i=x(t.outEdges,p)/x(t.outEdges,S),n=t.getLayout().y+(i-_(t))*e;t.setLayout({y:n},!0)}})})}function p(t){return _(t.node2)*t.getValue()}function f(t,e){T.each(t,function(t){T.each(t,function(t){if(t.inEdges.length){var i=x(t.inEdges,g)/x(t.inEdges,S),n=t.getLayout().y+(i-_(t))*e;t.setLayout({y:n},!0)}})})}function g(t){return _(t.node1)*t.getValue()}function m(t){T.each(t,function(t){t.outEdges.sort(v),t.inEdges.sort(y)}),T.each(t,function(t){var e=0,i=0;T.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),T.each(t.inEdges,function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy})})}function v(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}function y(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}function x(t,e){for(var i=0,n=t.length,a=-1;++at?-1:t>e?1:t===e?0:NaN}function S(t){return t.getValue()}var M=i(9),A=i(202),T=i(1);t.exports=function(t,e,i){t.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),r=t.get("nodeGap"),s=n(t,e);t.layoutInfo=s;var l=s.width,u=s.height,c=t.getGraph(),h=c.nodes,d=c.edges;o(h);var p=T.filter(h,function(t){return 0===t.getLayout().value}),f=0!==p.length?0:t.get("layoutIterations");a(h,d,i,r,l,u,f)})}},function(t,e,i){var n=i(48),a=i(1);t.exports=function(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),i=e.nodes;i.sort(function(t,e){return t.getLayout().value-e.getLayout().value});var o=i[0].getLayout().value,r=i[i.length-1].getLayout().value;a.each(i,function(e){var i=new n({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:t.get("color")}),a=i.mapValueToVisual(e.getLayout().value);e.setVisual("color",a);var s=e.getModel(),l=s.get("itemStyle.normal.color");null!=l&&e.setVisual("color",l)})})}},function(t,e,i){var n=i(1),a=i(2);i(332),i(333),a.registerVisual(n.curry(i(55),"scatter","circle",null)),a.registerLayout(n.curry(i(136),"scatter")),i(76)},function(t,e,i){"use strict";var n=i(45),a=i(17);t.exports=a.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis"],getInitialData:function(t,e){var i=n(t.data,this,e);return i},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})},function(t,e,i){var n=i(72),a=i(292);i(2).extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new n,this._largeSymbolDraw=new a},render:function(t,e,i){var n=t.getData(),a=this._largeSymbolDraw,o=this._normalSymbolDraw,r=this.group,s=t.get("large")&&n.count()>t.get("largeThreshold")?a:o;this._symbolDraw=s,s.updateData(n),r.add(s.group),r.remove(s===a?o.group:a.group)},updateLayout:function(t){this._symbolDraw.updateLayout(t)},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e,!0)},dispose:function(){}})},function(t,e,i){var n=i(2),a=i(1);i(184),i(335),i(336),n.registerLayout(i(337)),n.registerVisual(i(338)),n.registerProcessor(a.curry(i(90),"themeRiver"))},function(t,e,i){"use strict";var n=i(25),a=i(17),o=i(13),r=i(1),s=i(7),l=s.encodeHTML,u=i(202),c=2,h=a.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){h.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,i=u().key(function(t){return t[2]}).entries(t),n=r.map(i,function(t){return{name:t.key,dataList:t.values}}),a=n.length,o=-1,s=-1,l=0;a>l;++l){var c=n[l].dataList.length;c>o&&(o=c,s=l)}for(var h=0;a>h;++h)if(h!==s)for(var d=n[h].name,p=0;o>p;++p){for(var f=n[s].dataList[p][0],g=n[h].dataList.length,m=-1,v=0;g>v;++v){var y=n[h].dataList[v][0];if(y===f){m=v;break}}-1===m&&(t[e]=[],t[e][0]=f,t[e][1]=0,t[e][2]=d,e++)}return t},getInitialData:function(t,e){var i=[],a=e.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],s=a.get("type");i=[{name:"time",type:"category"===s?"ordinal":"time"===s?"time":"float"},{name:"value",type:"float"},{name:"name",type:"ordinal"}];for(var l=r.filter(t.data,function(t){return void 0!==t[2]}),u=this.fixData(l||[]),h=[],d=this.nameMap={},p=0,f=0;fa;++a)n[a]=a;for(var o=u().key(function(t){return e.get("name",t)}).entries(n),s=r.map(o,function(t){return{name:t.key,indices:t.values}}),l=0;lu;++u){for(var c=Number.MAX_VALUE,h=-1,d=o[u].indices.length,p=0;d>p;++p){var f=a.get(t[0],o[u].indices[p]),g=Math.abs(f-e);c>=g&&(n=f,c=g,h=o[u].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:n}},formatTooltip:function(t){var e=this.getData(),i=e.get("name",t),n=e.get("value",t);return(isNaN(n)||null==n)&&(n="-"),l(i+" : "+n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{normal:{margin:4,textAlign:"right",show:!0,position:"left",textStyle:{color:"#000",fontSize:11}},emphasis:{show:!0}}}});t.exports=h},function(t,e,i){(function(e){function n(t,e,i){var n=new o.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return o.initProps(n,{shape:{width:t.width+20,height:t.height+20}},e,i),n}var a=i(167),o=i(3),r=i(1),s=i(77);t.exports=i(2).extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,i){function l(t){return t.name}function u(e,i,s){var l=this._layers;if("remove"===e)return void d.remove(l[i]);for(var u,f=[],g=[],m=p[i].indices,v=0;vf;++f){n=c[f]*h,t.setItemLayout(s[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:n,y:l[0][f][1]*h});for(var g=1;d>g;++g)n+=l[g-1][f][1]*h,t.setItemLayout(s[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:n,y:l[g][f][1]*h})}}function a(t){for(var e,i=t.length,n=t[0].length,a=[],o=[],r=0,s={},l=0;n>l;++l){for(var u=0,e=0;i>u;++u)e+=t[u][l][1];e>r&&(r=e),a.push(e)}for(var c=0;n>c;++c)o[c]=(r-a[c])/2;r=0;for(var h=0;n>h;++h){var d=a[h]+o[h];d>r&&(r=d)}return s.y0=o,s.max=r,s}var o=i(1),r=i(4);t.exports=function(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),i=t.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=t.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,"horizontal"===l.orient){s[0]=r.parsePercent(s[0],o.height),s[1]=r.parsePercent(s[1],o.height);var u=o.height-s[0]-s[1];n(e,t,u)}else{s[0]=r.parsePercent(s[0],o.width),s[1]=r.parsePercent(s[1],o.width);var c=o.width-s[0]-s[1];n(e,t,c)}e.setLayout("layoutInfo",a)})}},function(t,e){t.exports=function(t){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),i=t.getRawData(),n=t.get("color");e.each(function(a){var o=e.getName(a),r=n[(t.nameMap[o]-1)%n.length];i.setItemVisual(a,"color",r)})})}},function(t,e,i){var n=i(2);i(341),i(342),i(343),n.registerVisual(i(345)),n.registerLayout(i(344))},function(t,e,i){function n(t){this.group=new r.Group,t.add(this.group)}function a(t,e,i,n,a,o){var r=[[a?t:t-d,e],[t+i,e],[t+i,e+n],[a?t:t-d,e+n]];return!o&&r.splice(2,0,[t+i+d,e+n/2]),!a&&r.push([t,e+n/2]),r}function o(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&u.wrapTreePathInfo(i,e)}}var r=i(3),s=i(9),l=i(1),u=i(52),c=8,h=8,d=5;n.prototype={constructor:n,render:function(t,e,i,n){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),a.get("show")&&i){var r=a.getModel("itemStyle.normal"),l=r.getModel("textStyle"),u={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,u,l),this._renderContent(t,u,r,l,n),s.positionElement(o,u.pos,u.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var a=n.getModel().get("name"),o=i.getTextRect(a),r=Math.max(o.width+2*c,e.emptyItemWidth);e.totalWidth+=r+h,e.renderList.push({node:n,text:a,width:r})}},_renderContent:function(t,e,i,n,u){for(var c=0,d=e.emptyItemWidth,p=t.get("breadcrumb.height"),f=s.getAvailableSize(e.pos,e.box),g=e.totalWidth,m=e.renderList,v=m.length-1;v>=0;v--){var y=m[v],x=y.node,_=y.width,b=y.text;g>f.width&&(g-=_-d,_=d,b="");var w=new r.Polygon({shape:{points:a(c,0,_,p,v===m.length-1,0===v)},style:l.defaults(i.getItemStyle(),{lineJoin:"bevel",text:b,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:l.curry(u,x)});this.group.add(w),o(w,t,x),c+=_+h}},remove:function(){this.group.removeAll()}},t.exports=n},function(t,e,i){function n(t){var e=0;s.each(t.children,function(t){n(t);var i=t.value;s.isArray(i)&&(i=i[0]),e+=i});var i=t.value;s.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),0>i&&(i=0),s.isArray(t.value)?t.value[0]=i:t.value=i}function a(t,e){var i=e.get("color");if(i){t=t||[];var n;if(s.each(t,function(t){var e=new l(t),i=e.get("color");(e.get("itemStyle.normal.color")||i&&"none"!==i)&&(n=!0)}),!n){var a=t[0]||(t[0]={});a.color=i.slice()}return t}}var o=i(17),r=i(461),s=i(1),l=i(12),u=i(7),c=i(52),h=u.encodeHTML,d=u.addCommas;t.exports=o.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,position:"inside",textStyle:{color:"#fff",ellipsis:!0}}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var i=t.name;null==i&&(i=t.name);var o={name:i,children:t.data};n(o);var s=t.levels||[];return s=t.levels=a(s,e),r.createTree(o,this,s).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=d(s.isArray(i)?i[0]:i),a=e.getName(t);return h(a+": "+n)},getDataParams:function(t){var e=o.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=c.wrapTreePathInfo(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},s.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap={},this._idIndexMapCount=0);var i=e[t];return null==i&&(e[t]=i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}})},function(t,e,i){function n(){return{nodeGroup:[],background:[],content:[]}}function a(t,e,i,n,a,l,u,c,h,d){function p(e){z.dataIndex=u.dataIndex,z.seriesIndex=t.seriesIndex;var i=T.borderWidth,n=Math.max(I-2*i,0),a=Math.max(L-2*i,0);z.culling=!0,z.setShape({x:i,y:i,width:n,height:a});var o=u.getVisual("color",!0);f(z,function(){var t={fill:o},e=u.getModel("itemStyle.emphasis").getItemStyle();g(t,e,o,n,a),z.setStyle(t),s.setHoverStyle(z,e)}),e.add(z)}function f(t,e){C?!t.invisible&&l.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function g(e,i,n,a,o){var r=u.getModel(),s=r.get("name");if(T.isLeafRoot){var l=t.get("drillDownIcon",!0);s=l?l+" "+s:s}y(s,e,r,_,n,a,o),y(s,i,r,b,n,a,o)}function y(t,e,i,n,a,o,r){var l=i.getModel(n),u=l.getModel("textStyle");s.setText(e,l,a),e.textAlign=u.get("align"),e.textVerticalAlign=u.get("baseline");var c=u.getTextRect(t);!l.getShallow("show")||c.height>r?e.text="":c.width>o?e.text=u.get("ellipsis")?u.truncateText(t,o,null,{minChar:2}):"":e.text=t}function x(t,n,r,s){var l=null!=P&&i[t][P],u=a[t];return l?(i[t][P]=null,w(u,l,t)):C||(l=new n({z:o(r,s)}),l.__tmDepth=r,l.__tmStorageName=t,A(u,l,t)),e[t][D]=l}function w(t,e,i){var n=t[D]={};n.old="nodeGroup"===i?e.position.slice():r.extend({},e.shape)}function A(t,e,i){var o=t[D]={},r=u.parentNode;if(r&&(!n||"drillDown"===n.direction)){var s=0,l=0,c=a.background[r.getRawIndex()];!n&&c&&c.old&&(s=c.old.width,l=c.old.height),o.old="nodeGroup"===i?[0,l]:{x:s,y:l,width:0,height:0}}o.fadein="nodeGroup"!==i}if(u){var T=u.getLayout();if(T&&T.isInView){var I=T.width,L=T.height,C=T.invisible,D=u.getRawIndex(),P=c&&c.getRawIndex(),k=x("nodeGroup",m);if(k){if(h.add(k),k.attr("position",[T.x||0,T.y||0]),k.__tmNodeWidth=I,k.__tmNodeHeight=L,T.isAboveViewRoot)return k;var E=x("background",v,d,S);E&&(E.setShape({x:0,y:0,width:I,height:L}),f(E,function(){E.setStyle("fill",u.getVisual("borderColor",!0))}),k.add(E));var O=u.viewChildren;if(!O||!O.length){var z=x("content",v,d,M);z&&p(k)}return k}}}}function o(t,e){var i=t*w+e;return(i-1)/i}var r=i(1),s=i(3),l=i(77),u=i(52),c=i(340),h=i(86),d=i(10),p=i(21),f=i(478),g=r.bind,m=s.Group,v=s.Rect,y=r.each,x=3,_=["label","normal"],b=["label","emphasis"],w=10,S=1,M=2;t.exports=i(2).extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage=n(),this._oldTree,this._breadcrumb,this._controller,this._state="ready",this._mayClick},render:function(t,e,i,n){var a=e.findComponents({mainType:"series",subType:"treemap",query:n});if(!(r.indexOf(a,t)<0)){this.seriesModel=t,this.api=i,this.ecModel=e;var o=u.retrieveTargetInfo(n,t),s=n&&n.type,l=t.layoutInfo,c=!this._oldTree,h=this._storage,d="treemapRootToNode"===s&&o&&h?{rootNodeGroup:h.nodeGroup[o.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(l),f=this._doRender(p,t,d);c||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(p,f,t,d),this._resetController(i),this._renderBreadcrumb(t,i,o)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new m,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,i){function o(t,e,i,n,a){function s(t){return t.getId()}function u(r,s){var l=null!=r?t[r]:null,u=null!=s?e[s]:null,c=m(l,u,i,a);c&&o(l&&l.viewChildren||[],u&&u.viewChildren||[],c,n,a+1)}n?(e=t,y(t,function(t,e){!t.isRemoved()&&u(e,e)})):new l(e,t,s,s).add(u).update(u).remove(r.curry(u,null)).execute()}function s(t){var e=n();return t&&y(t,function(t,i){var n=e[i];y(t,function(t){t&&(n.push(t),t.__tmWillDelete=1)})}),e}function u(){y(v,function(t){y(t,function(t){t.parent&&t.parent.remove(t)})}),y(g,function(t){t.invisible=!0,t.dirty()})}var c=e.getData().tree,h=this._oldTree,d=n(),p=n(),f=this._storage,g=[],m=r.curry(a,e,p,f,i,d,g);o(c.root?[c.root]:[],h&&h.root?[h.root]:[],t,c===h||!h,0);var v=s(f);return this._oldTree=c,this._storage=p,{lastsForAnimation:d,willDeleteEls:v,renderFinally:u}},_doAnimation:function(t,e,i,n){if(i.get("animation")){var a=i.get("animationDurationUpdate"),o=i.get("animationEasing"),s=f.createWrap();y(e.willDeleteEls,function(t,e){y(t,function(t,i){if(!t.invisible){var r,l=t.parent;if(n&&"drillDown"===n.direction)r=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),r="nodeGroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}r&&s.add(t,r,a,o)}})}),y(this._storage,function(t,i){y(t,function(t,n){var l=e.lastsForAnimation[i][n],u={};l&&("nodeGroup"===i?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=r.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,a,o))})},this),this._state="animating",s.done(g(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){var e=this._controller;e||(e=this._controller=new h(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",g(this._onPan,this)),e.on("zoom",g(this._onZoom,this)));var i=new d(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t,e){if(this._mayClick=!1,"animating"!==this._state&&(Math.abs(t)>x||Math.abs(e)>x)){var i=this.seriesModel.getData().tree.root;if(!i)return;var n=i.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t,y:n.y+e,width:n.width,height:n.height}})}},_onZoom:function(t,e,i){if(this._mayClick=!1,"animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var o=new d(a.x,a.y,a.width,a.height),r=this.seriesModel.layoutInfo;e-=r.x,i-=r.y;var s=p.create();p.translate(s,s,[-e,-i]),p.scale(s,s,[t,t]),p.translate(s,s,[e,i]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){function e(t){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var a=n.hostTree.data.getItemModel(n.dataIndex),o=a.get("link",!0),r=a.get("target",!0)||"blank";o&&window.open(o,r)}}}}t.on("mousedown",function(t){"ready"===this._state&&(this._mayClick=!0)},this),t.on("mouseup",function(t){this._mayClick&&(this._mayClick=!1,"ready"===this._state&&e.call(this,t))},this)},_renderBreadcrumb:function(t,e,i){function n(e){"animating"!==this._state&&(u.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new c(this.group))).render(t,e,i.node,g(n,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=n(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(n){var a=this._storage.background[n.getRawIndex()];if(a){var o=a.transformCoordToLocal(t,e),r=a.shape;if(!(r.x<=o[0]&&o[0]<=r.x+r.width&&r.y<=o[1]&&o[1]<=r.y+r.height))return!1;i={node:n,offsetX:o[0],offsetY:o[1]}}},this),i}})},function(t,e,i){for(var n=i(2),a=i(52),o=function(){},r=["treemapZoomToNode","treemapRender","treemapMove"],s=0;sM;){var T=v[M];S.push(T),S.area+=T.getLayout().area;var I=u(S,b,e.squareRatio);w>=I?(M++,w=I):(S.area-=S.pop().getLayout().area,c(S,b,y,p,!1),b=_(y.width,y.height),S.length=S.area=0,w=1/0)}if(S.length&&c(S,b,y,p,!0),!i){var L=g.get("childrenVisibleMin");null!=L&&L>m&&(i=!0)}for(var M=0,A=v.length;A>M;M++)a(v[M],e,i,n+1)}}}function o(t,e,i,n,a,o){var u=t.children||[],c=n.sort;"asc"!==c&&"desc"!==c&&(c=null);var h=null!=n.leafDepth&&n.leafDepth<=o;if(a&&!h)return t.viewChildren=[];u=f.filter(u,function(t){return!t.isRemoved()}),s(u,c);var d=l(e,u,c);if(0===d.sum)return t.viewChildren=[];if(d.sum=r(e,i,d.sum,c,u),0===d.sum)return t.viewChildren=[];for(var p=0,g=u.length;g>p;p++){var m=u[p].getValue()/d.sum*i;u[p].setLayout({area:m})}return h&&(u.length&&t.setLayout({isLeafRoot:!0},!0),u.length=0),t.viewChildren=u,t.setLayout({dataExtent:d.dataExtent},!0),u}function r(t,e,i,n,a){if(!n)return i;for(var o=t.get("visibleMin"),r=a.length,s=r,l=r-1;l>=0;l--){var u=a["asc"===n?r-l-1:l].getValue();o>u/i*e&&(s=l,i-=u)}return"asc"===n?a.splice(0,r-s):a.splice(s,r-s),i}function s(t,e){return e&&t.sort(function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n}),t}function l(t,e,i){for(var n=0,a=0,o=e.length;o>a;a++)n+=e[a].getValue();var r,s=t.get("visualDimension");if(e&&e.length)if("value"===s&&i)r=[e[e.length-1].getValue(),e[0].getValue()],"asc"===i&&r.reverse();else{var r=[1/0,-(1/0)];S(e,function(t){var e=t.getValue(s);er[1]&&(r[1]=e)})}else r=[NaN,NaN];return{sum:n,dataExtent:r}}function u(t,e,i){for(var n,a=0,o=1/0,r=0,s=t.length;s>r;r++)n=t[r].getLayout().area,n&&(o>n&&(o=n),n>a&&(a=n));var l=t.area*t.area,u=e*e*i;return l?x(u*a/l,l/(u*o)):1/0}function c(t,e,i,n,a){var o=e===i.width?0:1,r=1-o,s=["x","y"],l=["width","height"],u=i[s[o]],c=e?t.area/e:0;(a||c>i[l[r]])&&(c=i[l[r]]);for(var h=0,d=t.length;d>h;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,m=f[l[r]]=x(c-2*n,0),v=i[s[o]]+i[l[o]]-u,y=h===d-1||g>v?v:g,b=f[l[o]]=x(y-2*n,0);f[s[r]]=i[s[r]]+_(n,m/2),f[s[o]]=u+_(n,b/2),u+=y,p.setLayout(f,!0)}i[s[r]]+=c,i[l[r]]-=c}function h(t,e,i,n,a){var o=(e||{}).node,r=[n,a];if(!o||o===i)return r;for(var s,l=n*a,u=l*t.option.zoomToNodeRatio;s=o.parentNode;){for(var c=0,h=s.children,d=0,p=h.length;p>d;d++)c+=h[d].getValue();var f=o.getValue();if(0===f)return r;u*=c/f;var m=s.getModel("itemStyle.normal").get("borderWidth");isFinite(m)&&(u+=4*m*m+4*m*Math.pow(u,.5)),u>g.MAX_SAFE_INTEGER&&(u=g.MAX_SAFE_INTEGER),o=s}l>u&&(u=l);var v=Math.pow(u/l,.5);return[n*v,a*v]}function d(t,e,i){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!i)return n;var a=i.node,o=a.getLayout();if(!o)return n;for(var r=[o.width/2,o.height/2],s=a;s;){var l=s.getLayout();r[0]+=l.x,r[1]+=l.y,s=s.parentNode}return{x:t.width/2-r[0],y:t.height/2-r[1]}}function p(t,e,i,n,a){var o=t.getLayout(),r=i[a],s=r&&r===t;if(!(r&&!s||a===i.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new y(e.x-o.x,e.y-o.y,e.width,e.height);S(t.viewChildren||[],function(t){p(t,l,i,n,a+1)})}}var f=i(1),g=i(4),m=i(9),v=i(52),y=i(10),v=i(52),x=Math.max,_=Math.min,b=g.parsePercent,w=f.retrieve,S=f.each;t.exports=n},function(t,e,i){function n(t,e,i,s,u,h){var d=t.getModel(),f=t.getLayout();if(f&&!f.invisible&&f.isInView){var m,v=t.getModel(g),y=i[t.depth],x=a(v,e,y,s),_=v.get("borderColor"),b=v.get("borderColorSaturation");null!=b&&(m=o(x,t),_=r(b,m)),t.setVisual("borderColor",_);var w=t.viewChildren;if(w&&w.length){var S=l(t,d,f,v,x,w);p.each(w,function(t,e){if(t.depth>=u.length||t===u[t.depth]){var a=c(d,x,t,e,S,h);n(t,a,i,s,u,h)}})}else m=o(x,t),t.setVisual("color",m)}}function a(t,e,i,n){var a=p.extend({},e);return p.each(["color","colorAlpha","colorSaturation"],function(o){var r=t.get(o,!0);null==r&&i&&(r=i[o]),null==r&&(r=e[o]),null==r&&(r=n.get(o)),null!=r&&(a[o]=r)}),a}function o(t){var e=s(t,"color");if(e){var i=s(t,"colorAlpha"),n=s(t,"colorSaturation");return n&&(e=d.modifyHSL(e,null,null,n)),i&&(e=d.modifyAlpha(e,i)),e}}function r(t,e){return null!=e?d.modifyHSL(e,null,null,t):null}function s(t,e){var i=t[e];return null!=i&&"none"!==i?i:void 0}function l(t,e,i,n,a,o){if(o&&o.length){var r=u(e,"color")||null!=a.color&&"none"!==a.color&&(u(e,"colorAlpha")||u(e,"colorSaturation"));if(r){var s=e.get("visualMin"),l=e.get("visualMax"),c=i.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var d=e.get("colorMappingBy"),p={type:r.name,dataExtent:c,visual:r.range};"color"!==p.type||"index"!==d&&"id"!==d?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var f=new h(p);return f.__drColorMappingBy=d,f}}}function u(t,e){var i=t.get(e);return f(i)&&i.length?{name:e,range:i}:null}function c(t,e,i,n,a,o){var r=p.extend({},e);if(a){var s=a.type,l="color"===s&&a.__drColorMappingBy,u="index"===l?n:"id"===l?o.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));r[s]=a.mapValueToVisual(u)}return r}var h=i(48),d=i(33),p=i(1),f=p.isArray,g="itemStyle.normal";t.exports=function(t,e,i){var a={mainType:"series",subType:"treemap",query:i};t.eachComponent(a,function(t){var e=t.getData().tree,i=e.root,a=t.getModel(g);if(!i.isRemoved()){var o=p.map(e.levelModels,function(t){return t?t.get(g):null});n(i,{},o,a,t.getViewRoot().getAncestors(),t)}})}},function(t,e,i){"use strict";i(135),i(353)},function(t,e,i){"use strict";i(194),i(354)},function(t,e,i){var n=i(2),a=n.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,textStyle:{color:"#fff"},padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});t.exports=a},function(t,e,i){var n=i(170),a=i(2).extendComponentView({type:"axisPointer",render:function(t,e,i){var a=e.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";n.register("axisPointer",i,function(t,e,i){"none"!==o&&("leave"===t||o.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},remove:function(t,e){n.disopse(e.getZr(),"axisPointer"),a.superApply(this._model,"remove",arguments)},dispose:function(t,e){n.unregister("axisPointer",e),a.superApply(this._model,"dispose",arguments)}})},function(t,e,i){"use strict";function n(t,e,i,n,a){var o=e.axis,s=o.dataToCoord(t),c=n.getAngleAxis().getExtent()[0];c=c/180*Math.PI;var h,d,p,f=n.getRadiusAxis().getExtent();if("radius"===o.dim){var g=l.create();l.rotate(g,g,c),l.translate(g,g,[n.cx,n.cy]),h=r.applyTransform([s,-a],g);var m=e.getModel("axisLabel").get("rotate")||0,v=u.innerTextLayout(c,m*Math.PI/180,-1);d=v.textAlign,p=v.textVerticalAlign}else{var y=f[1];h=n.coordToPoint([y+a,s]);var x=n.cx,_=n.cy;d=Math.abs(h[0]-x)/y<.3?"center":h[0]>x?"left":"right",p=Math.abs(h[1]-_)/y<.3?"middle":h[1]>_?"top":"bottom"}return{position:h,align:d,verticalAlign:p}}var a=i(7),o=i(126),r=i(3),s=i(85),l=i(21),u=i(46),c=i(47),h=o.extend({makeElOption:function(t,e,i,o,r){var l=i.axis;"angle"===l.dim&&(this.animationThreshold=Math.PI/18);var u,c=l.polar,h=c.getOtherAxis(l),p=h.getExtent();u=l["dataTo"+a.capitalFirst(l.dim)](e);var f=o.get("type");if(f&&"none"!==f){var g=s.buildElStyle(o),m=d[f](l,c,u,p,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=o.get("label.margin"),y=n(e,i,o,c,v);s.buildLabelElOption(t,i,o,r,y)}}),d={line:function(t,e,i,n,a){return"angle"===t.dim?{type:"Line",shape:s.makeLineShape(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,a){ var o=t.getBandWidth(),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:s.makeSectorShape(e.cx,e.cy,n[0],n[1],(-i-o/2)*r,(-i+o/2)*r)}:{type:"Sector",shape:s.makeSectorShape(e.cx,e.cy,i-o/2,i+o/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",h),t.exports=h},function(t,e,i){"use strict";function n(t){return t.isHorizontal()?0:1}function a(t,e){var i=t.getRect();return[i[c[e]],i[c[e]]+i[h[e]]]}var o=i(3),r=i(126),s=i(85),l=i(172),u=i(47),c=["x","y"],h=["width","height"],d=r.extend({makeElOption:function(t,e,i,o,r){var u=i.axis,c=u.coordinateSystem,h=a(c,1-n(u)),d=c.dataToPoint(e)[0],f=o.get("type");if(f&&"none"!==f){var g=s.buildElStyle(o),m=p[f](u,d,h,g);m.style=g,t.graphicKey=m.type,t.pointer=m}var v=l.layout(i);s.buildCartesianSingleLabelElOption(e,t,v,i,o,r)},getHandleTransform:function(t,e,i){var n=l.layout(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:s.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,o){var r=i.axis,s=r.coordinateSystem,l=n(r),u=a(s,l),c=t.position;c[l]+=e[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=a(s,1-l),d=(h[1]+h[0])/2,p=[d,d];return p[l]=c[l],{position:c,rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}}}),p={line:function(t,e,i,a){var r=s.makeLineShape([e,i[0]],[e,i[1]],n(t));return o.subPixelOptimizeLine({shape:r,style:a}),{type:"Line",shape:r}},shadow:function(t,e,i,a){var o=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:s.makeRectShape([e-o/2,i[0]],[o,r],n(t))}}};u.registerAxisPointerClass("SingleAxisPointer",d),t.exports=d},function(t,e,i){function n(t,e,i,n,o,g,m,v,b){n=n||{},i&&null!=i[0]&&null!=i[1]||(i=y({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},g).point);var w=t.axesInfo,S="leave"===e||f(i),M={},A={},T={list:[],map:{}},I=[],L={showPointer:_(r,A),showTooltip:_(s,T),highlight:_(l,I)};x(t.coordSysMap,function(e,o){var r=e.containPoint(i);x(t.coordSysAxesInfo[o],function(t,e){var o=t.axis;S||!r||d(n,o)||a(t,o.pointToData(i),L,!1,M)})});var C={};return x(w,function(t,e){var i=t.linkGroup;i&&!A[e]&&x(i.axesInfo,function(e,n){var a=A[n];if(e!==t&&a){var o=a.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,p(e),p(t)))),C[t.key]=o}})}),x(C,function(t,e){a(w[e],t,L,!0,M)}),u(A,w),c(T,i,v,o),h(I,o,m,b),M}function a(t,e,i,n,a){var r=t.axis;if(!r.scale.isBlank()&&r.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var s=o(e,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&null==a.seriesIndex&&g.extend(a,l[0]),!n&&t.snap&&r.containData(u)&&null!=u&&(e=u),i.highlight("highlight",l),i.showPointer(t,e,l),i.showTooltip(t,s,u)}}function o(t,e){var i=e.axis,n=i.dim,a=t,o=[],r=Number.MAX_VALUE,s=-1;return x(e.seriesModels,function(e,l){var u,c,h=e.coordDimToDataDim(n);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,i);c=d.dataIndices,u=d.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,!1,"category"===i.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);r>=f&&((r>f||p>=0&&0>s)&&(r=f,s=p,a=u,o.length=0),x(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:a}}function r(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function s(t,e,i,n){var a=i.payloadBatch,o=e.axis,r=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&a.length){var l=e.coordSys.model,u=v.makeKey(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:r.componentIndex,axisType:r.type,axisId:r.id,value:n,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:a.slice()})}}function l(t,e,i){t.push.apply(t,i)}function u(t,e){x(e,function(e,i){var n=e.axisPointerModel.option,a=t[i];a?(!e.useHandle&&(n.status="show"),n.value=a.value,n.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(n.status="hide")})}function c(t,e,i,n){if(f(e)||!t.list.length)return void n({type:"hideTip"});var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function h(t,e,i,n){var a=i.getZr();n="lastHighlights"+(n||"");var o=b(a)[n]||{},r=b(a)[n]={};g.each(t,function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t});var s=[],l=[];g.each(o,function(t,e){!r[e]&&l.push(t)}),g.each(r,function(t,e){!o[e]&&s.push(t)}),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}function d(t,e){var i=1;return x(t,function(t,e){i&=!/^.+(AxisId|AxisName|AxisIndex)$/.test(e)}),!i&&x([["AxisId","id"],["AxisIndex","componentIndex"],["AxisName","name"]],function(n){var a=m.normalizeToArray(t[e.dim+n[0]]);i|=g.indexOf(a,e.model[n[1]])>=0}),!i}function p(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function f(t){return null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}var g=i(1),m=i(8),v=i(84),y=i(169),x=g.each,_=g.curry,b=m.makeGetter();t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){var a=t.coordToPoint([e,n]),o=t.coordToPoint([i,n]);return{x1:a[0],y1:a[1],x2:o[0],y2:o[1]}}var a=i(1),o=i(3),r=i(12),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];i(47).extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,n=i.polar,o=n.getRadiusAxis().getExtent(),r=i.getTicksCoords();"category"!==i.type&&r.pop(),a.each(s,function(e){!t.get(e+".show")||i.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,n,r,o)},this)}},_axisLine:function(t,e,i,n){var a=t.getModel("axisLine.lineStyle"),r=new o.Circle({shape:{cx:e.cx,cy:e.cy,r:n[1]},style:a.getLineStyle(),z2:1,silent:!0});r.style.fill=null,this.group.add(r)},_axisTick:function(t,e,i,r){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),u=a.map(i,function(t){return new o.Line({shape:n(e,r[1],r[1]+l,t)})});this.group.add(o.mergePath(u,{style:a.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,i,n){for(var a=t.axis,s=t.get("data"),l=t.getModel("axisLabel"),u=l.getModel("textStyle"),c=t.getFormattedLabels(),h=l.get("margin"),d=a.getLabelsCoords(),p=0;pm?"left":"right",x=Math.abs(g[1]-v)/f<.3?"middle":g[1]>v?"top":"bottom",_=u;s&&s[p]&&s[p].textStyle&&(_=new r(s[p].textStyle,u)),this.group.add(new o.Text({style:{x:g[0],y:g[1],fill:_.getTextColor()||t.get("axisLine.lineStyle.color"),text:c[p],textAlign:y,textVerticalAlign:x,textFont:_.getFont()},silent:!0}))}},_splitLine:function(t,e,i,r){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],d=0;dh||h>1)return!1;var d=l(i-t,a-t,n-e,o-e)/c;return!(0>d||d>1)}function s(t){return 1e-6>=t&&t>=-1e-6}function l(t,e,i,n){return t*n-e*i}var u=i(208).contain,c=i(10),h={lineX:n(0),lineY:n(1),rect:{point:function(t,e,i){return i.boundingRect.contain(t[0],t[1])},rect:function(t,e,i){return i.boundingRect.intersect(t)}},polygon:{point:function(t,e,i){return i.boundingRect.contain(t[0],t[1])&&u(i.range,t[0],t[1])},rect:function(t,e,i){var n=i.range;if(n.length<=1)return!1;var a=t.x,r=t.y,s=t.width,l=t.height,h=n[0];return u(n,a,r)||u(n,a+s,r)||u(n,a,r+l)||u(n,a+s,r+l)||c.create(t).contain(h[0],h[1])||o(a,r,a+s,r,n)||o(a,r,a,r+l,n)||o(a+s,r,a+s,r+l,n)||o(a,r+l,a+s,r+l,n)?!0:void 0}}};t.exports=h},function(t,e,i){function n(t,e,i,n,o){if(o){var r=t.getZr();if(!r[x]){r[y]||(r[y]=a);var s=g.createOrUpdate(r,y,i,e);s(t,n)}}}function a(t,e){if(!t.isDisposed()){var i=t.getZr();i[x]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[x]=!1}}function o(t,e,i,n){for(var a=0,o=e.length;o>a;a++){var r=e[a];if(t[r.brushType](n,i,r.selectors,r))return!0}}function r(t){var e=t.brushSelector;if(d.isString(e)){var i=[];return d.each(f,function(t,n){i[n]=function(i,n,a,o){var r=n.getItemLayout(i);return t[e](r,a,o)}}),i}if(d.isFunction(e)){var n={};return d.each(f,function(t,i){n[i]=e}),n}return e}function s(t,e){var i=t.option.seriesIndex;return null!=i&&"all"!==i&&(d.isArray(i)?d.indexOf(i,e)<0:e!==i)}function l(t){var e=t.selectors={};return d.each(f[t.brushType],function(i,n){e[n]=function(n){return i(n,e,t)}}),t}function u(t){return new p(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var c=i(2),h=i(93),d=i(1),p=i(10),f=i(364),g=i(54),m=i(177),v=["inBrush","outOfBrush"],y="__ecBrushSelect",x="__ecInBrushSelectEvent",_=c.PRIORITY.VISUAL.BRUSH;c.registerLayout(_,function(t,e,i){t.eachComponent({mainType:"brush"},function(e){i&&"takeGlobalCursor"===i.type&&e.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1});var n=e.brushTargetManager=new m(e.option,t);n.setInputRanges(e.areas,t)})}),c.registerVisual(_,function(t,e,i){var a,u,c=[];t.eachComponent({mainType:"brush"},function(e,i){function n(t){return"all"===x||_[t]}function p(t){return!!t.length}function f(t,e){var i=t.coordinateSystem;M|=i.hasAxisBrushed(),n(e)&&i.eachActiveState(t.getData(),function(t,e){"active"===t&&(w[e]=1)})}function g(i,a,l){var u=r(i);if(u&&!s(e,a)&&(d.each(A,function(n){u[n.brushType]&&e.brushTargetManager.controlSeries(n,i,t)&&l.push(n),M|=p(l)}),n(a)&&p(l))){var c=i.getData();c.each(function(t){o(u,l,c,t)&&(w[t]=1)})}}var m={brushId:e.id,brushIndex:i,brushName:e.name,areas:d.clone(e.areas),selected:[]};c.push(m);var y=e.option,x=y.brushLink,_=[],w=[],S=[],M=0;i||(a=y.throttleType,u=y.throttleDelay);var A=d.map(e.areas,function(t){return l(d.defaults({boundingRect:b[t.brushType](t)},t))}),T=h.createVisualMappings(e.option,v,function(t){t.mappingMethod="fixed"});d.isArray(x)&&d.each(x,function(t){_[t]=1}),t.eachSeries(function(t,e){var i=S[e]=[];"parallel"===t.subType?f(t,e,i):g(t,e,i)}),t.eachSeries(function(t,e){var i={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};m.selected.push(i);var a=r(t),s=S[e],l=t.getData(),u=n(e)?function(t){return w[t]?(i.dataIndex.push(l.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return o(a,s,l,t)?(i.dataIndex.push(l.getRawIndex(t)),"inBrush"):"outOfBrush"};(n(e)?M:p(s))&&h.applyVisual(v,T,l,u)})}),n(e,a,u,c,i)});var b={lineX:d.noop,lineY:d.noop,rect:function(t){return u(t.range)},polygon:function(t){for(var e,i=t.range,n=0,a=i.length;a>n;n++){e=e||[[1/0,-(1/0)],[1/0,-(1/0)]];var o=i[n];o[0]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&u(e)}}},function(t,e,i){"use strict";i(431),i(432),i(367)},function(t,e,i){"use strict";var n=i(1),a=i(3),o=i(7),r=i(4),s={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},l={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};t.exports=i(2).extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var a=t.coordinateSystem,o=a.getHandledRangeInfo(),r=a.getOrient();this._renderDayRect(t,o,n),this._renderLines(t,o,r,n),this._renderYearText(t,o,r,n),this._renderMonthText(t,r,n),this._renderWeekText(t,o,r,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,o=t.getModel("itemStyle.normal").getItemStyle(),r=n.getCellWidth(),s=n.getCellHeight(),l=e.start.time;l<=e.end.time;l=n.getNextNDay(l,1).time){var u=n.dataToRect([l],!0).tl,c=new a.Rect({shape:{x:u[0],y:u[1],width:r,height:s},style:o});i.add(c)}},_renderLines:function(t,e,i,n){function a(e){o._firstDayOfMonth.push(r.getDateInfo(e)),o._firstDayPoints.push(r.dataToRect([e],!0).tl);var a=o._getLinePointsOfOneWeek(t,e,i);o._tlpoints.push(a[0]),o._blpoints.push(a[a.length-1]),l&&o._drawSplitline(a,s,n)}var o=this,r=t.coordinateSystem,s=t.getModel("splitLine.lineStyle").getLineStyle(),l=t.get("splitLine.show"),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,h=0;c.time<=e.end.time;h++){a(c.formatedDate),0===h&&(c=r.getDateInfo(e.start.y+"-"+e.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=r.getDateInfo(d)}a(r.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,u,i),s,n),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,u,i),s,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],a="horizontal"===i?0:1;return n[0][a]=n[0][a]-e/2,n[1][a]=n[1][a]+e/2,n},_drawSplitline:function(t,e,i){var n=new a.Polyline({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var a=[],o=0;7>o;o++){var r=n.getNextNDay(e.time,o),s=n.dataToRect([r.time],!0);a[2*r.day]=s.tl,a[2*r.day+1]=s["horizontal"===i?"bl":"tr"]}return a},_formatterLabel:function(t,e){return"string"==typeof t&&t?o.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n){t=t.slice();var a=["center","bottom"];"top"===i&&(t[1]-=n),"bottom"===i&&(t[1]+=n,a=["center","top"]),"left"===i&&(t[0]-=n),"right"===i&&(t[0]+=n,a=["center","top"]);var o=0;return"left"!==i&&"right"!==i||(o=Math.PI/2),{rotation:o,origin:t,style:{x:t[0],y:t[1],textAlign:a[0],textVerticalAlign:a[1]}}},_renderYearText:function(t,e,i,o){var r=t.getModel("yearLabel");if(r.get("show")){var s=t.getModel("yearLabel.textStyle"),l=r.get("margin"),u=r.get("position");u||(u="horizontal"!==i?"top":"left");var c=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(c[0][0]+c[1][0])/2,d=(c[0][1]+c[1][1])/2,p="horizontal"===i?0:1,f={top:[h,c[p][1]],bottom:[h,c[1-p][1]],left:[c[1-p][0],d],right:[c[p][0],d]},g=e.start.y;+e.end.y>+e.start.y&&(g=g+"-"+e.end.y);var m=r.get("formatter"),v={start:e.start.y,end:e.end.y,nameMap:g},y=this._formatterLabel(m,v),x=new a.Text(n.merge({z2:30,style:{text:y,font:s.getFont(),fill:s.getTextColor()}},this._yearTextPositionControl(f[u],i,u,l)));o.add(x)}},_monthTextPositionControl:function(t,e,i,n,a){var o="left",r="top",s=t[0],l=t[1];return"horizontal"===i?(l+=a,e&&(o="center"),"start"===n&&(r="bottom")):(s+=a,e&&(r="middle"),"start"===n&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:r}},_renderMonthText:function(t,e,i){var o=t.getModel("monthLabel");if(o.get("show")){var r=t.getModel("monthLabel.textStyle"),l=o.get("nameMap"),u=o.get("margin"),c=o.get("position"),h=o.get("align"),d=[this._tlpoints,this._blpoints];n.isString(l)&&(l=s[l.toUpperCase()]||[]);var p="start"===c?0:1,f="horizontal"===e?0:1;u="start"===c?-u:u;for(var g="center"===h,m=0;mv;v++){var y=u.getNextNDay(g,v),x=u.dataToRect([y.time],!0).center,_=v;_=Math.abs((v+f)%7);var b=new a.Text({z2:30,style:n.extend({text:d[_],font:c.getFont(),fill:c.getTextColor()},this._weekTextPositionControl(x,i,h,p,m))});o.add(b)}}}})},function(t,e,i){i(176),i(74),i(75),i(375),i(376),i(371),i(372),i(174),i(173)},function(t,e,i){i(176),i(74),i(75),i(373),i(374),i(174),i(173)},function(t,e,i){function n(t,e,i){var n=[1/0,-(1/0)];return u(i,function(t){var i=t.getData();i&&u(t.coordDimToDataDim(e),function(t){var e=i.getDataExtent(t);e[0]n[1]&&(n[1]=e[1])})}),n[1]0?0:NaN);var r=i.getMax(!0);return null!=r&&"dataMax"!==r?e[1]=r:a&&(e[1]=o>0?o-1:NaN),i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function o(t,e){var i=t.getAxisModel(),n=t._percentWindow,a=t._valueWindow;if(n){var o=s.getPixelPrecision(a,[0,500]),r=e||0===n[0]&&100===n[1];i.setRange(r?null:+a[0].toFixed(o),r?null:+a[1].toFixed(o))}}var r=i(1),s=i(4),l=i(127),u=r.each,c=s.asc,h=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this.ecModel=n,this._dataZoomModel=i};h.prototype={constructor:h,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(i){if(l.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,a=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(a&&a.componentIndex)&&t.push(i)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i=this._dimName,n=this.ecModel,a=this.getAxisModel(),o="x"===i||"y"===i;o?(e="gridIndex",t="x"===i?"y":"x"):(e="polarIndex",t="angle"===i?"radius":"angle");var r;return n.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(a.get(e)||0)&&(r=t)}),r},calculateDataWindow:function(t){var e=this._dataExtent,i=this.getAxisModel(),n=i.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],r=[t.start,t.end],l=[];return u(["startValue","endValue"],function(e){l.push(null!=t[e]?n.parse(t[e]):null)}),u([0,1],function(t){var i=l[t],u=r[t];"percent"===a[t]?(null==u&&(u=o[t]),i=n.parse(s.linearMap(u,o,e,!0))):u=s.linearMap(i,e,o,!0),l[t]=i,r[t]=u}),{valueWindow:c(l),percentWindow:c(r)}},reset:function(t){if(t===this._dataZoomModel){this._dataExtent=n(this,this._dimName,this.getTargetSeriesModels());var e=this.calculateDataWindow(t.option);this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,o(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,o(this,!0))},filterData:function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow,r=this.getOtherAxisModel();t.get("$fromToolbox")&&r&&"category"===r.get("type")&&(a="empty"),u(n,function(t){var n=t.getData();n&&u(t.coordDimToDataDim(i),function(i){"empty"===a?t.setData(n.map(i,function(t){return e(t)?t:NaN})):n.filterSelf(i,e)})})}}},t.exports=h},function(t,e,i){t.exports=i(74).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1}})},function(t,e,i){function n(t){var e=[0,100];return!(t[0]<=e[1])&&(t[0]=e[1]),!(t[1]<=e[1])&&(t[1]=e[1]),!(t[0]>=e[0])&&(t[0]=e[0]),!(t[1]>=e[0])&&(t[1]=e[0]),t}var a=i(75),o=i(1),r=i(87),s=i(377),l=o.bind,u=a.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,i,n){u.superApply(this,"render",arguments),s.shouldRecordRange(n,t.id)&&(this._range=t.getPercentRange()),o.each(this.getTargetCoordInfo(),function(e,n){var a=o.map(e,function(t){return s.generateCoordId(t.model)});o.each(e,function(e){var o=e.model;s.register(i,{coordId:s.generateCoordId(o),allCoordIds:a,containsPoint:function(t,e,i){return o.coordinateSystem.containPoint([e,i])},dataZoomId:t.id,throttleRate:t.get("throttle",!0),panGetRange:l(this._onPan,this,e,n),zoomGetRange:l(this._onZoom,this,e,n)})},this)},this)},dispose:function(){s.unregister(this.api,this.dataZoomModel.id), u.superApply(this,"dispose",arguments),this._range=null},_onPan:function(t,e,i,n,a,o,s,l,u){if(this.dataZoomModel.option.disabled)return this._range;var h=this._range.slice(),d=t.axisModels[0];if(d){var p=c[e]([o,s],[l,u],d,i,t),f=p.signal*(h[1]-h[0])*p.pixel/p.pixelLength;return r(f,h,[0,100],"rigid"),this._range=h}},_onZoom:function(t,e,i,a,o,r){var s=this.dataZoomModel.option;if(s.disabled||s.zoomLock)return this._range;var l=this._range.slice(),u=t.axisModels[0];if(u){var h=c[e](null,[o,r],u,i,t),d=(h.pixel-h.pixelStart)/h.pixelLength*(l[1]-l[0])+l[0];return a=Math.max(1/a,0),l[0]=(l[0]-d)*a+d,l[1]=(l[1]-d)*a+d,this._range=n(l)}}}),c={grid:function(t,e,i,n,a){var o=i.axis,r={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(r.pixel=e[0]-t[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=o.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=o.inverse?-1:1),r},polar:function(t,e,i,n,a){var o=i.axis,r={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(r.pixel=e[0]-t[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=o.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=u[1]-u[0],r.pixelStart=u[0],r.signal=o.inverse?-1:1),r},singleAxis:function(t,e,i,n,a){var o=i.axis,r=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=o.inverse?-1:1),s}};t.exports=u},function(t,e,i){var n=i(74);t.exports=n.extend({type:"dataZoom.select"})},function(t,e,i){t.exports=i(75).extend({type:"dataZoom.select"})},function(t,e,i){var n=i(74),a=n.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});t.exports=a},function(t,e,i){function n(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}var a=i(1),o=i(3),r=i(54),s=i(75),l=o.Rect,u=i(4),c=u.linearMap,h=i(9),d=i(87),p=i(35),f=u.asc,g=a.bind,m=a.each,v=7,y=1,x=30,_="horizontal",b="vertical",w=5,S=["line","bar","candlestick","scatter"],M=s.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,i,n){return M.superApply(this,"render",arguments),r.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.get("orient"),this.dataZoomModel.get("show")===!1?void this.group.removeAll():(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),void this._updateView())},remove:function(){M.superApply(this,"remove",arguments),r.clear(this,"_dispatchZoomAction")},dispose:function(){M.superApply(this,"dispose",arguments),r.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new o.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,i=this._findCoordRect(),n={width:e.getWidth(),height:e.getHeight()},o=this._orient===_?{right:n.width-i.x-i.width,top:n.height-x-v,width:i.width,height:x}:{right:v,top:i.y,width:x,height:i.height},r=h.getLayoutParams(t.option);a.each(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=o[t])});var s=h.getLayoutRect(r,n,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===b&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),a=n&&n.get("inverse"),o=this._displayables.barGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(i!==_||a?i===_&&a?{scale:r?[-1,1]:[-1,-1]}:i!==b||a?{scale:r?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:r?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:r?[1,1]:[1,-1]});var s=t.getBoundingRect([o]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size;this._displayables.barGroup.add(new l({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,i=t.series,n=i.getRawData(),r=i.getShadowDim?i.getShadowDim():t.otherDim;if(null!=r){var s=n.getDataExtent(r),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,h=[0,e[1]],d=[0,e[0]],p=[[e[0],0],[0,0]],f=[],g=d[1]/(n.count()-1),m=0,v=Math.round(n.count()/e[0]);n.each([r],function(t,e){if(v>0&&e%v)return void(m+=g);var i=null==t||isNaN(t)||""===t,n=i?0:c(t,s,h,!0);i&&!u&&e?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!i&&u&&(p.push([m,0]),f.push([m,0])),p.push([m,n]),f.push([m,n]),m+=g,u=i});var y=this.dataZoomModel;this._displayables.barGroup.add(new o.Polygon({shape:{points:p},style:a.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new o.Polyline({shape:{points:f},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(e!==!1){var i,o=this.ecModel;return t.eachTargetAxis(function(r,s){var l=t.getAxisProxy(r.name,s).getTargetSeriesModels();a.each(l,function(t){if(!(i||e!==!0&&a.indexOf(S,t.get("type"))<0)){var l,u=o.getComponent(r.axis,s).axis,c=n(r.name),h=t.coordinateSystem;null!=c&&h.getOtherAxis&&(l=h.getOtherAxis(u).inverse),i={thisAxis:u,series:t,thisDim:r.name,otherDim:c,otherAxisInverse:l}}},this)},this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,a=this._size,r=this.dataZoomModel;n.add(t.filler=new l({draggable:!0,cursor:"move",drift:g(this._onDragMove,this,"all"),onmousemove:function(t){p.stop(t.event)},ondragstart:g(this._showDataInfo,this,!0),ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1),style:{fill:r.get("fillerColor"),textPosition:"inside"}})),n.add(new l(o.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:y,fill:"rgba(0,0,0,0)"}})));var s=r.get("handleIcon");m([0,1],function(t){var a=o.makePath(s,{style:{strokeNoScale:!0},rectHover:!0,cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:g(this._onDragMove,this,t),onmousemove:function(t){p.stop(t.event)},ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1)},{x:-.5,y:0,width:1,height:1},"center"),l=a.getBoundingRect();this._handleHeight=u.parsePercent(r.get("handleSize"),this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,a.setStyle(r.getModel("handleStyle").getItemStyle());var c=r.get("handleColor");null!=c&&(a.style.fill=c),n.add(e[t]=a);var h=r.textStyleModel;this.group.add(i[t]=new o.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",fill:h.getTextColor(),textFont:h.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[c(t[0],[0,100],e,!0),c(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this._handleEnds,n=this._getViewExtent();d(e,i,n,"all"===t||this.dataZoomModel.get("zoomLock")?"rigid":"cross",t),this._range=f([c(i[0],n,[0,100],!0),c(i[1],n,[0,100],!0)])},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=f(i.slice()),a=this._size;m([0,1],function(t){var n=e.handles[t],o=this._handleHeight;n.attr({scale:[o,o],position:[i[t],a[1]/2-o/2]})},this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=o.getTransform(n.handles[t].parent,this.group),i=o.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+w,u=o.applyTransform([d[t]+(0===t?-l:l),this._size[1]/2],e);a[t].setStyle({x:u[0],y:u[1],textVerticalAlign:r===_?"middle":i,textAlign:r===_?i:"center",text:s[t]})}var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,r=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var d=f(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),o=i.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var r=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(o,20));return a.isFunction(n)?n(t,r):a.isString(n)?n.replace("{value}",r):r},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._applyBarTransform([e,i],!0);this._updateInterval(t,n[0]);var a=this.dataZoomModel.get("realtime");this._updateView(!a),a&&a&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_applyBarTransform:function(t,e){var i=this._displayables.barGroup.getLocalTransform();return o.applyTransform(t,i,e)},_findCoordRect:function(){var t;if(m(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}}),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});t.exports=M},function(t,e,i){function n(t){var e=t.getZr();return e[f]||(e[f]={})}function a(t,e,i){var n=new h(t.getZr());return n.enable(),n.on("pan",p(r,i)),n.on("zoom",p(s,i)),n}function o(t){c.each(t,function(e,i){e.count||(e.controller.dispose(),delete t[i])})}function r(t,e,i,n,a,o,r){l(t,function(s){return s.panGetRange(t.controller,e,i,n,a,o,r)})}function s(t,e,i,n){l(t,function(a){return a.zoomGetRange(t.controller,e,i,n)})}function l(t,e){var i=[];c.each(t.dataZoomInfos,function(t){var n=e(t);n&&i.push({dataZoomId:t.dataZoomId,start:n[0],end:n[1]})}),t.dispatchAction(i)}function u(t,e){t.dispatchAction({type:"dataZoom",batch:e})}var c=i(1),h=i(86),d=i(54),p=c.curry,f="\x00_ec_dataZoom_roams",g={register:function(t,e){var i=n(t),r=e.dataZoomId,s=e.coordId;c.each(i,function(t,i){var n=t.dataZoomInfos;n[r]&&c.indexOf(e.allCoordIds,s)<0&&(delete n[r],t.count--)}),o(i);var l=i[s];l||(l=i[s]={coordId:s,dataZoomInfos:{},count:0},l.controller=a(t,e,l),l.dispatchAction=c.curry(u,t)),l.controller.setPointerChecker(e.containsPoint),d.createOrUpdate(l,"dispatchAction",e.throttleRate,"fixRate"),!l.dataZoomInfos[r]&&l.count++,l.dataZoomInfos[r]=e},unregister:function(t,e){var i=n(t);c.each(i,function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)}),o(i)},shouldRecordRange:function(t,e){if(t&&"dataZoom"===t.type&&t.batch)for(var i=0,n=t.batch.length;n>i;i++)if(t.batch[i].dataZoomId===e)return!1;return!0},generateCoordId:function(t){return t.type+"\x00_"+t.id}};t.exports=g},function(t,e,i){function n(t,e){e.update="updateView",a.registerAction(e,function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},function(i){i[t](e.name);var a=i.coordinateSystem;o.each(a.regions,function(t){n[t.name]=i.isSelected(t.name)||!1})}),{selected:n,name:e.name}})}i(439),i(89),i(379),i(157);var a=i(2),o=i(1);n("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),n("select",{type:"geoSelect",event:"geoselected"}),n("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(t,e,i){"use strict";var n=i(178);t.exports=i(2).extendComponentView({type:"geo",init:function(t,e){var i=new n(e,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var a=this._mapDraw;t.get("show")?a.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}})},function(t,e,i){function n(t,e,i,n){var a=i.type;__DEV__&&h.assert(a,"graphic type MUST be set");var o=p[a.charAt(0).toUpperCase()+a.slice(1)];__DEV__&&h.assert(o,"graphic type can not be found");var r=new o(i);e.add(r),n[t]=r,r.__ecGraphicId=t}function a(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse(function(t){a(t,e)}),delete e[t.__ecGraphicId],i.remove(t))}function o(t){return t=h.extend({},t),h.each(["id","parentId","$action","hv","bounding"].concat(f.LOCATION_PARAMS),function(e){delete t[e]}),t}function r(t,e){var i;return h.each(e,function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)}),i}function s(t,e){var i=t.exist;if(e.id=t.keyInfo.id,!e.type&&i&&(e.type=i.type),null==e.parentId){var n=e.parentOption;n?e.parentId=n.id:i&&(e.parentId=i.parentId)}e.parentOption=null}function l(t,e,i){var n=h.extend({},i),a=t[e],o=i.$action||"merge";if("merge"===o)if(a){if(__DEV__){var r=i.type;h.assert(!r||a.type===r,'Please set $action: "replace" to change `type`')}h.merge(a,n,!0),f.mergeLayoutParam(a,n,{ignoreSize:!0}),f.copyLayoutParams(i,a)}else t[e]=n;else"replace"===o?t[e]=n:"remove"===o&&a&&(t[e]=null)}function u(t,e){t&&(t.hv=e.hv=[r(e,["left","right"]),r(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0)))}var c=i(2),h=i(1),d=i(8),p=i(3),f=i(9);c.registerPreprocessor(function(t){var e=t.graphic;h.isArray(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])});var g=c.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,g.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var i=this.option,n=(e?i:t).elements,a=i.elements=e?[]:i.elements,o=[];this._flatten(n,o);var r=d.mappingToExists(a,o);d.makeIdAndName(r);var c=this._elOptionsToUpdate=[];h.each(r,function(t,e){var i=t.option;__DEV__&&h.assert(h.isObject(i)||t.exist,"Empty graphic option definition"),i&&(c.push(i),s(t,i),l(a,e,i),u(a[e],i))},this);for(var p=a.length-1;p>=0;p--)null==a[p]?a.splice(p,1):delete a[p].$action},_flatten:function(t,e,i){h.each(t,function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});c.extendComponentView({type:"graphic",init:function(t,e){this._elMap={},this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t,i),this._relocate(t,i)},_updateElements:function(t,e){var i=t.useElOptionsToUpdate();if(i){var r=this._elMap,s=this.group;h.each(i,function(t){var e=t.$action,i=t.id,l=r[i],u=t.parentId,c=null!=u?r[u]:s;t.hv&&t.hv[1]&&"text"===t.type&&(t.style=h.defaults({textBaseline:"middle"},t.style),t.style.textVerticalAlign=null);var d=o(t);__DEV__&&l&&h.assert(c===l.parent,"Changing parent is not supported."),e&&"merge"!==e?"replace"===e?(a(l,r),n(i,c,d,r)):"remove"===e&&a(l,r):l?l.attr(d):n(i,c,d,r),r[i]&&(r[i].__ecGraphicWidth=t.width,r[i].__ecGraphicHeight=t.height)})}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,a=this._elMap,o=i.length-1;o>=0;o--){var r=i[o],s=a[r.id];if(s){var l=s.parent,u=l===n?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};f.positionElement(s,r,u,null,{hv:r.hv,boundingMode:r.bounding})}}},_clear:function(){var t=this._elMap;h.each(t,function(e){a(e,t)}),this._elMap={}},dispose:function(){this._clear()}})},function(t,e,i){i(76),i(168),i(73)},function(t,e,i){i(383),i(385),i(384);var n=i(2);n.registerProcessor(i(386))},function(t,e,i){"use strict";var n=i(1),a=i(12),o=i(2).extendComponentModel({type:"legend",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){o.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});t.exports=o},function(t,e,i){function n(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function a(t,e,i){var n=i.getZr().storage.getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function o(t,e,i){var n=i.getZr().storage.getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var r=i(1),s=i(26),l=i(3),u=i(181),c=r.curry;t.exports=i(2).extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,e,i){var s=this.group;if(s.removeAll(),t.get("show")){var h=t.get("selectedMode"),d=t.get("align");"auto"===d&&(d="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var p={};r.each(t.getData(),function(r){var u=r.get("name");if(""===u||"\n"===u)return void s.add(new l.Group({newline:!0}));var f=e.getSeriesByName(u)[0];if(!p[u]){if(f){var g=f.getData(),m=g.getVisual("color");"function"==typeof m&&(m=m(f.getDataParams(0)));var v=g.getVisual("legendSymbol")||"roundRect",y=g.getVisual("symbol"),x=this._createItem(u,r,t,v,y,d,m,h);x.on("click",c(n,u,i)).on("mouseover",c(a,f,null,i)).on("mouseout",c(o,f,null,i)),p[u]=!0}else e.eachRawSeries(function(e){if(!p[u]&&e.legendDataProvider){var s=e.legendDataProvider(),l=s.indexOfName(u);if(0>l)return;var f=s.getItemVisual(l,"color"),g="roundRect",m=this._createItem(u,r,t,g,null,d,f,h);m.on("click",c(n,u,i)).on("mouseover",c(a,e,u,i)).on("mouseout",c(o,e,u,i)),p[u]=!0}},this);__DEV__&&(p[u]||console.warn(u+" series not exists. Legend data should be same with series name or data name."))}},this),u.layout(s,t,i),u.addBackground(s,t)}},_createItem:function(t,e,i,n,a,o,u,c){var h=i.get("itemWidth"),d=i.get("itemHeight"),p=i.get("inactiveColor"),f=i.isSelected(t),g=new l.Group,m=e.getModel("textStyle"),v=e.get("icon"),y=e.getModel("tooltip"),x=y.parentModel;if(n=v||n,g.add(s.createSymbol(n,0,0,h,d,f?u:p)),!v&&a&&(a!==n||"none"==a)){var _=.8*d;"none"===a&&(a="circle"),g.add(s.createSymbol(a,(h-_)/2,(d-_)/2,_,_,f?u:p))}var b="left"===o?h+5:-5,w=o,S=i.get("formatter"),M=t;"string"==typeof S&&S?M=S.replace("{name}",null!=t?t:""):"function"==typeof S&&(M=S(t));var A=new l.Text({style:{text:M,x:b,y:d/2,fill:f?m.getTextColor():p,textFont:m.getFont(),textAlign:w,textVerticalAlign:"middle"}});g.add(A);var T=new l.Rect({shape:g.getBoundingRect(),invisible:!0,tooltip:y.get("show")?r.extend({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]}},y.option):null});return g.add(T),g.eachChild(function(t){t.silent=!0}),T.silent=!c,this.group.add(g),l.setHoverStyle(g),g}})},function(t,e,i){function n(t,e,i){var n,a={},r="toggleSelected"===t;return i.eachComponent("legend",function(i){r&&null!=n?i[n?"select":"unSelect"](e.name):(i[t](e.name),n=i.isSelected(e.name));var s=i.getData();o.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);e in a?a[e]=a[e]&&n:a[e]=n}})}),{name:e.name,selected:a}}var a=i(2),o=i(1);a.registerAction("legendToggleSelect","legendselectchanged",o.curry(n,"toggleSelected")),a.registerAction("legendSelect","legendselected",o.curry(n,"select")),a.registerAction("legendUnSelect","legendunselected",o.curry(n,"unSelect"))},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var i=0;i=0&&"number"==typeof u&&(u=+u.toFixed(m)),f.coord[d]=g.coord[d]=u,n=[f,g,{type:o,valueIndex:n.valueIndex,value:u}]}return n=[h.dataTransform(t,n[0]),h.dataTransform(t,n[1]),l.extend({},n[2])],n[2].type=n[2].type||"",l.merge(n[2],n[0]),l.merge(n[2],n[1]),n};i(132).extend({type:"markLine",updateLayout:function(t,e,i){e.eachSeries(function(t){var e=t.markLineModel;if(e){var n=e.getData(),a=e.__from,o=e.__to;a.each(function(e){r(a,e,!0,t,i),r(o,e,!1,t,i)}),n.each(function(t){n.setItemLayout(t,[a.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap[t.name].updateLayout()}},this)},renderSeries:function(t,e,i,n){function a(e,i,a){var o=e.getItemModel(i);r(e,i,a,t,n),e.setItemVisual(i,{symbolSize:o.get("symbolSize")||x[a?0:1],symbol:o.get("symbol",!0)||y[a?0:1],color:o.get("itemStyle.normal.color")||c.getVisual("color")})}var o=t.coordinateSystem,u=t.name,c=t.getData(),h=this.markerGroupMap,p=h[u];p||(p=h[u]=new d),this.group.add(p.group);var f=s(o,t,e),g=f.from,m=f.to,v=f.line;e.__from=g,e.__to=m,e.setData(v);var y=e.get("symbol"),x=e.get("symbolSize");l.isArray(y)||(y=[y,y]),"number"==typeof x&&(x=[x,x]),f.from.each(function(t){a(g,t,!0),a(m,t,!1)}),v.each(function(t){var e=v.getItemModel(t).get("lineStyle.normal.color");v.setItemVisual(t,{color:e||g.getItemVisual(t,"color")}),v.setItemLayout(t,[g.getItemLayout(t),m.getItemLayout(t)]),v.setItemVisual(t,{fromSymbolSize:g.getItemVisual(t,"symbolSize"),fromSymbol:g.getItemVisual(t,"symbol"),toSymbolSize:m.getItemVisual(t,"symbolSize"),toSymbol:m.getItemVisual(t,"symbol")})}),p.updateData(v),f.line.eachItemGraphicEl(function(t,i){t.traverse(function(t){t.dataModel=e})}),p.__keep=!0,p.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,i){t.exports=i(131).extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2}}}})},function(t,e,i){function n(t,e,i){var n=e.coordinateSystem;t.each(function(a){var o,r=t.getItemModel(a),l=s.parsePercent(r.get("x"),i.getWidth()),u=s.parsePercent(r.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(n){var c=t.get(n.dimensions[0],a),h=t.get(n.dimensions[1],a);o=n.dataToPoint([c,h])}}else o=[l,u];isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u),t.setItemLayout(a,o)})}function a(t,e,i){var n;n=t?r.map(t&&t.dimensions,function(t){var i=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return i.name=t,i}):[{name:"value",type:"float"}];var a=new l(n,i),o=r.map(i.get("data"),r.curry(u.dataTransform,e));return t&&(o=r.filter(o,r.curry(u.dataFilter,t))),a.initData(o,null,t?u.dimValueGetter:function(t){return t.value}),a}var o=i(72),r=i(1),s=i(4),l=i(13),u=i(133);i(132).extend({type:"markPoint",updateLayout:function(t,e,i){e.eachSeries(function(t){var e=t.markPointModel;e&&(n(e.getData(),t,i),this.markerGroupMap[t.name].updateLayout(e))},this)},renderSeries:function(t,e,i,r){var s=t.coordinateSystem,l=t.name,u=t.getData(),c=this.markerGroupMap,h=c[l];h||(h=c[l]=new o);var d=a(s,t,e);e.setData(d),n(e.getData(),t,r),d.each(function(t){var i=d.getItemModel(t),n=i.getShallow("symbolSize");"function"==typeof n&&(n=n(e.getRawValue(t),e.getDataParams(t))),d.setItemVisual(t,{symbolSize:n,color:i.get("itemStyle.normal.color")||u.getVisual("color"),symbol:i.getShallow("symbol") })}),h.updateData(d),this.group.add(h.group),d.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),h.__keep=!0,h.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,i){i(197),i(358),i(355)},function(t,e,i){"use strict";i(135),i(346),i(400),i(73),i(350),i(2).extendComponentView({type:"polar"})},function(t,e,i){i(454),i(455),i(399)},function(t,e,i){var n=i(46),a=i(1),o=i(3),r=["axisLine","axisLabel","axisTick","axisName"];t.exports=i(2).extendComponentView({type:"radar",render:function(t,e,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),o=a.map(i,function(t){var i=new n(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i});a.each(o,function(t){a.each(r,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,i){var n=i%e.length;return t[n]=t[n]||[],n}var i=t.coordinateSystem,n=i.getIndicatorAxes();if(n.length){var r=t.get("shape"),s=t.getModel("splitLine"),l=t.getModel("splitArea"),u=s.getModel("lineStyle"),c=l.getModel("areaStyle"),h=s.get("show"),d=l.get("show"),p=u.get("color"),f=c.get("color");p=a.isArray(p)?p:[p],f=a.isArray(f)?f:[f];var g=[],m=[];if("circle"===r)for(var v=n[0].getTicksCoords(),y=i.cx,x=i.cy,_=0;_=_;_++){for(var A=[],T=0;T=0||"+"===i?"left":"right"},s={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},l={horizontal:0,vertical:b/2},u="vertical"===a?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show"),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,f=d+p,g=t.get("label.normal.rotate")||0;g=g*b/180;var m,v,y,x,_=c.get("position",!0),h=c.get("show",!0),w=h&&c.get("showPlayBtn",!0),S=h&&c.get("showPrevBtn",!0),M=h&&c.get("showNextBtn",!0),A=0,T=u;return"left"===_||"bottom"===_?(w&&(m=[0,0],A+=f),S&&(v=[A,0],A+=f),M&&(y=[T-d,0],T-=f)):(w&&(m=[T-d,0],T-=f),S&&(v=[0,0],A+=f),M&&(y=[T-d,0],T-=f)),x=[A,T],t.get("inverse")&&x.reverse(),{viewRect:o,mainLength:u,orient:a,rotation:l[a],labelRotation:g,labelPosOpt:i,labelAlign:r[a],labelBaseline:s[a],playPosition:m,prevBtnPosition:v,nextBtnPosition:y,axisExtent:x,controlSize:d,controlGap:p}},_position:function(t,e){function i(t){var e=t.position;t.origin=[h[0][0]-e[0],h[1][0]-e[1]]}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function a(t,e,i,n,a){t[n]+=i[n][a]-e[n][a]}var o=this._mainGroup,r=this._labelGroup,s=t.viewRect;if("vertical"===t.orient){var l=g.create(),u=s.x,c=s.y+s.height;g.translate(l,l,[-u,-c]),g.rotate(l,l,-b/2),g.translate(l,l,[u,c]),s=s.clone(),s.applyTransform(l)}var h=n(s),d=n(o.getBoundingRect()),p=n(r.getBoundingRect()),f=o.position,m=r.position;m[0]=f[0]=h[0][0];var v=t.labelPosOpt;if(isNaN(v)){var y="+"===v?0:1;a(f,d,h,1,y),a(m,p,h,1,1-y)}else{var y=v>=0?0:1;a(f,d,h,1,y),m[1]=f[1]+v}o.attr("position",f),r.attr("position",m),o.rotation=r.rotation=t.rotation,i(o),i(r)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),a=p.createScaleByModel(e,n),o=i.getDataExtent("value");a.setExtent(o[0],o[1]),this._customizeScale(a,i),a.niceTicks();var r=new h("value",a,t.axisExtent,n);return r.model=e,r},_customizeScale:function(t,e){t.getTicks=function(){return e.mapArray(["value"],function(t){return t})},t.getTicksLabels=function(){return s.map(this.getTicks(),t.getLabel,t)}},_createGroup:function(t){var e=this["_"+t]=new l.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var a=i.getExtent();n.get("lineStyle.show")&&e.add(new l.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:s.extend({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var a=n.getData(),r=i.scale.getTicks();_(r,function(t,r){var s=i.dataToCoord(t),u=a.getItemModel(r),c=u.getModel("itemStyle.normal"),h=u.getModel("itemStyle.emphasis"),d={position:[s,0],onclick:x(this._changeTimeline,this,r)},p=o(u,c,e,d);l.setHoverStyle(p,h.getItemStyle()),u.get("tooltip")?(p.dataIndex=r,p.dataModel=n):p.dataIndex=p.dataModel=null},this)},_renderAxisLabel:function(t,e,i,n){var a=n.getModel("label.normal");if(a.get("show")){var o=n.getData(),r=i.scale.getTicks(),s=p.getFormattedLabels(i,a.get("formatter")),u=i.getLabelInterval();_(r,function(n,a){if(!i.isLabelIgnored(a,u)){var r=o.getItemModel(a),c=r.getModel("label.normal.textStyle"),h=r.getModel("label.emphasis.textStyle"),d=i.dataToCoord(n),p=new l.Text({style:{text:s[a],textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline,textFont:c.getFont(),fill:c.getTextColor()},position:[d,0],rotation:t.labelRotation-t.rotation,onclick:x(this._changeTimeline,this,a),silent:!1});e.add(p),l.setHoverStyle(p,h.getItemStyle())}},this)}},_renderControl:function(t,e,i,n){function o(t,i,o,d){if(t){var p={position:t,origin:[r/2,0],rotation:d?-s:0,rectHover:!0,style:u,onclick:o},f=a(n,i,h,p);e.add(f),l.setHoverStyle(f,c)}}var r=t.controlSize,s=t.rotation,u=n.getModel("controlStyle.normal").getItemStyle(),c=n.getModel("controlStyle.emphasis").getItemStyle(),h=[0,-r/2,r,r],d=n.getPlayState(),p=n.get("inverse",!0);o(t.nextBtnPosition,"controlStyle.nextIcon",x(this._changeTimeline,this,p?"-":"+")),o(t.prevBtnPosition,"controlStyle.prevIcon",x(this._changeTimeline,this,p?"+":"-")),o(t.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),x(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(t,e,i,n){var a=n.getData(),s=n.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(t){t.draggable=!0,t.drift=x(u._handlePointerDrag,u),t.ondragend=x(u._handlePointerDragend,u),r(t,s,i,n,!0)},onUpdate:function(t){r(t,s,i,n)}};this._currentPointer=o(l,l,this._mainGroup,{},this._currentPointer,c)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,a=m.asc(n.getExtent().slice());i>a[1]&&(i=a[1]),is&&(n=s,e=o)}),e},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})}})},function(t,e,i){var n=i(1),a=i(41),o=i(20),r=function(t,e,i,n){a.call(this,t,e,i),this.type=n||"value",this._autoLabelInterval,this.model=null};r.prototype={constructor:r,getLabelInterval:function(){var t=this.model,e=t.getModel("label.normal"),i=e.get("interval");if(null!=i&&"auto"!=i)return i;var i=this._autoLabelInterval;return i||(i=this._autoLabelInterval=o.getAxisLabelInterval(n.map(this.scale.getTicks(),this.dataToCoord,this),o.getFormattedLabels(this,e.get("formatter")),e.getModel("textStyle").getFont(),"horizontal"===t.get("orient"))),i},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}}},n.inherits(r,a),t.exports=r},function(t,e,i){var n=i(15),a=i(13),o=i(1),r=i(8),s=n.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{textStyle:{color:"#000"}},emphasis:{}},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),0>t&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,n=this._names=[];if("category"===i){var s=[];o.each(e,function(t,e){var i,a=r.getDataItemValue(t);o.isObject(t)?(i=o.clone(t),i.value=e):i=e,s.push(i),o.isString(a)||null!=a&&!isNaN(a)||(a=""),n.push(a+"")}),e=s}var l={category:"ordinal",time:"time"}[i]||"number",u=this._data=new a([{name:"value",type:l}],this);u.initData(e,n)},getData:function(){return this._data},getCategories:function(){return"category"===this.get("axisType")?this._names.slice():void 0}});t.exports=s},function(t,e,i){var n=i(138);t.exports=n.extend({type:"timeline"})},function(t,e,i){function n(t){var e=t.type,i={number:"value",time:"time"};if(i[e]&&(t.axisType=i[e],delete t.type),a(t),o(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});o(n,"position")||(n.position=t.controlPosition),"none"!==n.position||o(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}r.each(t.data||[],function(t){r.isObject(t)&&!r.isArray(t)&&(!o(t,"value")&&o(t,"name")&&(t.value=t.name),a(t))})}function a(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},a=n.normal||(n.normal={}),s={normal:1,emphasis:1};r.each(n,function(t,e){s[e]||o(a,e)||(a[e]=t)}),i.label&&!o(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function o(t,e){return t.hasOwnProperty(e)}var r=i(1);t.exports=function(t){var e=t&&t.timeline;r.isArray(e)||(e=e?[e]:[]),r.each(e,function(t){t&&n(t)})}},function(t,e,i){var n=i(2),a=i(1);n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),a.defaults({currentIndex:i.option.currentIndex},t)}),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)})},function(t,e,i){i(15).registerSubTypeDefaulter("timeline",function(){return"slider"})},function(t,e,i){"use strict";var n=i(2),a=i(3),o=i(9);n.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),n.extendComponentView({type:"title",render:function(t,e,i){if(this.group.removeAll(),t.get("show")){var n=this.group,r=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=t.get("textBaseline"),c=new a.Text({style:{text:t.get("text"),textFont:r.getFont(),fill:r.getTextColor()},z2:10}),h=c.getBoundingRect(),d=t.get("subtext"),p=new a.Text({style:{text:d,textFont:s.getFont(),fill:s.getTextColor(),y:h.height+t.get("itemGap"),textBaseline:"top"},z2:10}),f=t.get("link"),g=t.get("sublink");c.silent=!f,p.silent=!g,f&&c.on("click",function(){window.open(f,"_"+t.get("target"))}),g&&p.on("click",function(){window.open(g,"_"+t.get("subtarget"))}),n.add(c),d&&n.add(p);var m=n.getBoundingRect(),v=t.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=o.getLayoutRect(v,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),"middle"===l&&(l="center"),"right"===l?y.x+=y.width:"center"===l&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get("bottom"),"center"===u&&(u="middle"),"bottom"===u?y.y+=y.height:"middle"===u&&(y.y+=y.height/2),u=u||"top"),n.attr("position",[y.x,y.y]);var x={textAlign:l,textVerticalAlign:u};c.setStyle(x),p.setStyle(x),m=n.getBoundingRect();var _=y.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new a.Rect({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2]},style:b,silent:!0});a.subPixelOptimizeRect(w),n.add(w)}}})},function(t,e,i){i(412),i(413),i(419),i(417),i(415),i(416),i(418)},function(t,e,i){var n=i(40),a=i(1),o=i(2).extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(t){o.superApply(this,"mergeDefaultAndTheme",arguments),a.each(this.option.feature,function(t,e){var i=n.get(e);i&&a.merge(t,i.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}});t.exports=o},function(t,e,i){(function(e){function n(t){return 0===t.indexOf("my")}var a=i(40),o=i(1),r=i(3),s=i(12),l=i(77),u=i(181),c=i(32);t.exports=i(2).extendComponentView({type:"toolbox",render:function(t,e,i,h){function d(o,r){var l,u=y[o],c=y[r],d=m[u],f=new s(d,t,t.ecModel);if(u&&!c){if(n(u))l={model:f,onclick:f.option.onclick,featureName:u};else{var g=a.get(u);if(!g)return;l=new g(f,e,i)}v[u]=l}else{if(l=v[c],!l)return;l.model=f,l.ecModel=e,l.api=i}return!u&&c?void(l.dispose&&l.dispose(e,i)):!f.get("show")||l.unusable?void(l.remove&&l.remove(e,i)):(p(f,l,u),f.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},void(l.render&&l.render(f,e,i,h)))}function p(n,a,s){var l=n.getModel("iconStyle"),u=a.getIcons?a.getIcons():n.get("icon"),c=n.get("title")||{};if("string"==typeof u){var h=u,d=c;u={},c={},u[s]=h,c[s]=d}var p=n.iconPaths={};o.each(u,function(s,u){var h=l.getModel("normal").getItemStyle(),d=l.getModel("emphasis").getItemStyle(),m={x:-g/2,y:-g/2,width:g,height:g},v=0===s.indexOf("image://")?(m.image=s.slice(8),new r.Image({style:m})):r.makePath(s.replace("path://",""),{style:h,hoverStyle:d,rectHover:!0},m,"center");r.setHoverStyle(v),t.get("showTitle")&&(v.__title=c[u],v.on("mouseover",function(){var t=l.getModel("emphasis").getItemStyle();v.setStyle({text:c[u],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})}).on("mouseout",function(){v.setStyle({textFill:null})})),v.trigger(n.get("iconStatus."+u)||"normal"),f.add(v),v.on("click",o.bind(a.onclick,a,e,i,u)),p[u]=v})}var f=this.group;if(f.removeAll(),t.get("show")){var g=+t.get("itemSize"),m=t.get("feature")||{},v=this._features||(this._features={}),y=[];o.each(m,function(t,e){y.push(e)}),new l(this._featureNames||[],y).add(d).update(d).remove(o.curry(d,null)).execute(),this._featureNames=y,u.layout(f,t,i),u.addBackground(f,t),f.eachChild(function(t){var e=t.__title,n=t.hoverStyle;if(n&&e){var a=c.getBoundingRect(e,n.font),o=t.position[0]+f.position[0],r=t.position[1]+f.position[1]+g,s=!1;r+a.height>i.getHeight()&&(n.textPosition="top",s=!0);var l=s?-5-a.height:g+8;o+a.width/2>i.getWidth()?(n.textPosition=["100%",l],n.textAlign="right"):o-a.width/2<0&&(n.textPosition=[0,l],n.textAlign="left")}})}},updateView:function(t,e,i,n){o.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,i,n)})},updateLayout:function(t,e,i,n){o.each(this._features,function(t){t.updateLayout&&t.updateLayout(t.model,e,i,n)})},remove:function(t,e){o.each(this._features,function(i){i.remove&&i.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){o.each(this._features,function(i){i.dispose&&i.dispose(t,e)})}})}).call(e,i(233))},function(t,e,i){"use strict";function n(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}var a=i(40),o=i(1);n.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:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}};var r=n.prototype;r.render=r.updateView=r.updateLayout=function(t,e,i){var n,a,r;e.eachComponent({mainType:"brush"},function(t){n=t.brushType,a=t.brushOption.brushMode||"single",r|=t.areas.length}),this._brushType=n,this._brushMode=a,o.each(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===a:"clear"===e?r:e===n)?"emphasis":"normal")})},r.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return o.each(t.get("type",!0),function(t){e[t]&&(i[t]=e[t])}),i},r.onclick=function(t,e,i){var e=this.api,n=this._brushType,a=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n===i?!1:i,brushMode:"keep"===i?"multiple"===a?"single":"multiple":a}})},a.register("brush",n),t.exports=n},function(t,e,i){function n(t){var e={},i=[],n=[];return t.eachRawSeries(function(t){var a=t.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)i.push(t);else{var o=a.getBaseAxis();if("category"===o.type){var r=o.dim+"_"+o.index;e[r]||(e[r]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[r].series.push(t)}else i.push(t)}}),{seriesGroupByCategoryAxis:e,other:i,meta:n}}function a(t){var e=[];return f.each(t,function(t,i){var n=t.categoryAxis,a=t.valueAxis,o=a.dim,r=[" "].concat(f.map(t.series,function(t){return t.name})),s=[n.model.getCategories()];f.each(t.series,function(t){s.push(t.getRawData().mapArray(o,function(t){return t}))});for(var l=[r.join(v)],u=0;ur;r++)n[r]=arguments[r];i.push((o?o+v:"")+n.join(v))}),i.join("\n")}).join("\n\n"+m+"\n\n")}function r(t){var e=n(t);return{value:f.filter([a(e.seriesGroupByCategoryAxis),o(e.other)],function(t){return t.replace(/[\n\t\s]/g,"")}).join("\n\n"+m+"\n\n"),meta:e.meta}}function s(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(t){var e=t.slice(0,t.indexOf("\n"));return e.indexOf(v)>=0?!0:void 0}function u(t){for(var e=t.split(/\n+/g),i=s(e.shift()).split(y),n=[],a=f.map(i,function(t){return{name:t,data:[]}}),o=0;o1?"emphasis":"normal")}function r(t,e,i,n,o){var r=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(r="dataZoomSelect"===n.key?n.dataZoomSelectActive:!1),i._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var s=new u(a(t.option),e,{include:["grid"]});i._brushController.setPanels(s.makePanelOpts(o,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"})).enableBrush(r?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}var s=i(1),l=i(128),u=i(177),c=i(175),h=s.each;i(369);var d="\x00_ec_\x00toolbox-dataZoom_";n.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var p=n.prototype;p.render=function(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,r(t,e,this,n,i),o(t,e)},p.onclick=function(t,e,i){f[i].call(this)},p.remove=function(t,e){this._brushController.unmount()},p.dispose=function(t,e){this._brushController.dispose()};var f={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor", key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(c.pop(this.ecModel))}};p._onBrush=function(t,e){function i(t,e,i){var a=n(t,e.getAxis(t).model,r);a&&(o[a.id]={dataZoomId:a.id,startValue:i[0],endValue:i[1]})}function n(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},function(i){var a=i.getAxisModel(t,e.componentIndex);a&&(n=i)}),n}if(e.isEnd&&t.length){var o={},r=this.ecModel;this._brushController.updateCovers([]);var s=new u(a(this.model.option),r,{include:["grid"]});s.matchOutputRanges(t,r,function(t,e,n){if("cartesian2d"===n.type){var a=t.brushType;"rect"===a?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[a],n,e)}}),c.push(r,o),this._dispatchZoomAction(o)}},p._dispatchZoomAction=function(t){var e=[];h(t,function(t,i){e.push(s.clone(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},i(40).register("dataZoom",n),i(2).registerPreprocessor(function(t){function e(t,e){if(e){var a=t+"Index",o=e[a];null==o||"all"==o||s.isArray(o)||(o=o===!1||"none"===o?[]:[o]),i(t,function(e,i){if(null==o||"all"==o||-1!==s.indexOf(o,i)){var r={type:"select",$fromToolbox:!0,id:d+t+i};r[a]=i,n.push(r)}})}}function i(e,i){var n=t[e];s.isArray(n)||(n=n?[n]:[]),h(n,i)}if(t){var n=t.dataZoom||(t.dataZoom=[]);s.isArray(n)||(t.dataZoom=n=[n]);var a=t.toolbox;if(a&&(s.isArray(a)&&(a=a[0]),a&&a.feature)){var o=a.feature.dataZoom;e("xAxis",o),e("yAxis",o)}}}),t.exports=n},function(t,e,i){"use strict";function n(t){this.model=t}var a=i(1);n.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:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var o=n.prototype;o.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return a.each(t.get("type"),function(t){e[t]&&(i[t]=e[t])}),i};var r={line:function(t,e,i,n){return"bar"===t?a.merge({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0):void 0},bar:function(t,e,i,n){return"line"===t?a.merge({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0):void 0},stack:function(t,e,i,n){return"line"===t||"bar"===t?a.merge({id:e,stack:"__ec_magicType_stack__"},n.get("option.stack")||{},!0):void 0},tiled:function(t,e,i,n){return"line"===t||"bar"===t?a.merge({id:e,stack:""},n.get("option.tiled")||{},!0):void 0}},s=[["line","bar"],["stack","tiled"]];o.onclick=function(t,e,i){var n=this.model,o=n.get("seriesIndex."+i);if(r[i]){var l={series:[]},u=function(e){var o=e.subType,s=e.id,u=r[i](o,s,e,n);u&&(a.defaults(u,e.option),l.series.push(u));var c=e.coordinateSystem;if(c&&"cartesian2d"===c.type&&("line"===i||"bar"===i)){var h=c.getAxesByScale("ordinal")[0];if(h){var d=h.dim,p=d+"Axis",f=t.queryComponents({mainType:p,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],g=f.componentIndex;l[p]=l[p]||[];for(var m=0;g>=m;m++)l[p][g]=l[p][g]||{};l[p][g].boundaryGap="bar"===i}}};a.each(s,function(t){a.indexOf(t,i)>=0&&a.each(t,function(t){n.setIconStatus(t,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},u),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:l})}};var l=i(2);l.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),i(40).register("magicType",n),t.exports=n},function(t,e,i){"use strict";function n(t){this.model=t}var a=i(175);n.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var o=n.prototype;o.onclick=function(t,e,i){a.clear(t),e.dispatchAction({type:"restore",from:this.uid})},i(40).register("restore",n),i(2).registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),t.exports=n},function(t,e,i){function n(t){this.model=t}var a=i(16);n.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["右键另存为图片"]},n.prototype.unusable=!a.canvasSupported;var o=n.prototype;o.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o=document.createElement("a"),r=i.get("type",!0)||"png";o.download=n+"."+r,o.target="_blank";var s=e.getConnectedDataURL({type:r,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(o.href=s,"function"!=typeof MouseEvent||a.browser.ie||a.browser.edge){var l=i.get("lang"),u='',c=window.open();c.document.write(u)}else{var h=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});o.dispatchEvent(h)}},i(40).register("saveAsImage",n),t.exports=n},function(t,e,i){i(73),i(422),i(423),i(2).registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),i(2).registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},function(t,e,i){function n(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+t+"s "+e+",top "+t+"s "+e;return s.map(f,function(t){return t+"transition:"+i}).join(";")}function a(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),h(["decoration","align"],function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)}),e.join(";")}function o(t){var e=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),r=t.getModel("textStyle"),s=t.get("padding");return i&&e.push(n(i)),o&&(p.canvasSupported?e.push("background-Color:"+o):(e.push("background-Color:#"+l.toHex(o)),e.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],function(i){var n="border-"+i,a=d(n),o=t.get(a);null!=o&&e.push(n+":"+o+("color"===i?"":"px"))}),e.push(a(r)),null!=s&&e.push("padding:"+c.normalizeCssArray(s).join("px ")+"px"),e.join(";")+";"}function r(t,e){var i=document.createElement("div"),n=this._zr=e.getZr();this.el=i,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var i=n.handler;u.normalizeEvent(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}}var s=i(1),l=i(33),u=i(35),c=i(7),h=s.each,d=c.toCamelCase,p=i(16),f=["","-webkit-","-moz-","-o-"],g="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";r.prototype={constructor:r,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText=g+o(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getViewportRoot())&&(t+=i.offsetLeft||0,e+=i.offsetTop||0);var a=this.el.style;a.left=t+"px",a.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},t.exports=r},function(t,e,i){i(2).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}})},function(t,e,i){function n(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(i instanceof v&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new v(i,e,e.ecModel))}return e}function a(t,e){return t.dispatchAction||c.bind(e.dispatchAction,e)}function o(t,e,i,n,a,o,r){var s=i.clientWidth,l=i.clientHeight;return null!=o&&(t+s+o>n?t-=s+o:t+=o),null!=r&&(e+l+r>a?e-=l+r:e+=r),[t,e]}function r(t,e,i,n,a){var o=i.clientWidth,r=i.clientHeight;return t=Math.min(t+o,n)-o,e=Math.min(e+r,a)-r,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function s(t,e,i){var n=i[0],a=i[1],o=5,r=0,s=0,l=e.width,u=e.height;switch(t){case"inside":r=e.x+l/2-n/2,s=e.y+u/2-a/2;break;case"top":r=e.x+l/2-n/2,s=e.y-a-o;break;case"bottom":r=e.x+l/2-n/2,s=e.y+u+o;break;case"left":r=e.x-n-o,s=e.y+u/2-a/2;break;case"right":r=e.x+l+o,s=e.y+u/2-a/2}return[r,s]}function l(t){return"center"===t||"middle"===t}var u=i(421),c=i(1),h=i(7),d=i(4),p=i(3),f=i(169),g=i(9),m=i(16),v=i(12),y=i(170),x=i(20),_=i(85),b=c.bind,w=c.each,S=d.parsePercent,M=new p.Rect({shape:{x:-1,y:-1,width:2,height:2}});i(2).extendComponentView({type:"tooltip",init:function(t,e){if(!m.node){var i=new u(e.getDom(),e);this._tooltipContent=i}},render:function(t,e,i){if(!m.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel,e=t.get("triggerOn");y.register("itemTooltip",this._api,b(function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))},this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})})}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!m.node){var o=a(n,i);this._ticket="";var r=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var s=M;s.position=[n.x,n.y],s.update(),s.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:s},o)}else if(r)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},o);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var l=f(n,e),u=l.point[0],c=l.point[1];null!=u&&null!=c&&this._tryShow({offsetX:u,offsetY:c,position:n.position,target:l.el,event:{}},o)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},o))}},manuallyHideTip:function(t,e,i,n){var o=this._tooltipContent;this._alwaysShowContent||o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(a(n,i))},_manuallyAxisShowTip:function(t,e,i,a){var o=a.seriesIndex,r=a.dataIndex,s=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=s){var l=e.getSeriesByIndex(o);if(l){var u=l.getData(),t=n([u.getItemModel(r),l,(l.coordinateSystem||{}).model,t]);if("axis"===t.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r}),!0}}},_tryShow:function(t,e){var i=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var a=t.dataByCoordSys;a&&a.length?this._showAxisTooltip(a,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=c.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,a=this._tooltipModel,o=[e.offsetX,e.offsetY],r=[],s=[],l=n([e.tooltipOption,a]);w(t,function(t){w(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,a=[];if(e&&null!=n){var o=_.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);c.each(t.seriesDataIndices,function(r){var l=i.getSeriesByIndex(r.seriesIndex),u=r.dataIndexInside,c=l&&l.getDataParams(u);c.axisDim=t.axisDim,c.axisIndex=t.axisIndex,c.axisType=t.axisType,c.axisId=t.axisId,c.axisValue=x.getAxisRawValue(e.axis,n),c.axisValueLabel=o,c&&(s.push(c),a.push(l.formatTooltip(u,!0)))});var l=o;r.push((l?h.encodeHTML(l)+"
":"")+a.join("
"))}})},this),r.reverse(),r=r.join("

");var u=e.position;this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(l,u,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(l,r,s,Math.random(),o[0],o[1],u)})},_showSeriesItemTooltip:function(t,e,i){var a=this._ecModel,o=e.seriesIndex,r=a.getSeriesByIndex(o),s=e.dataModel||r,l=e.dataIndex,u=e.dataType,c=s.getData(),h=n([c.getItemModel(l),s,r&&(r.coordinateSystem||{}).model,this._tooltipModel]),d=h.get("trigger");if(null==d||"item"===d){var p=s.getDataParams(l,u),f=s.formatTooltip(l,!1,u),g="item_"+s.name+"_"+l;this._showOrMove(h,function(){this._showTooltipContent(h,f,p,g,t.offsetX,t.offsetY,t.position,t.target)}),i({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){var a=n;n={content:a,formatter:a}}var o=new v(n,this._tooltipModel,this._ecModel),r=o.get("content"),s=Math.random();this._showOrMove(o,function(){this._showTooltipContent(o,r,o.get("formatterParams")||{},s,t.offsetX,t.offsetY,t.position,e)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,a,o,r,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,u=t.get("formatter");r=r||t.get("position");var c=e;if(u&&"string"==typeof u)c=h.formatTpl(u,i,!0);else if("function"==typeof u){var d=b(function(e,n){e===this._ticket&&(l.setContent(n),this._updatePosition(t,r,a,o,l,i,s))},this);this._ticket=n,c=u(i,n,d)}l.setContent(c),l.show(t),this._updatePosition(t,r,a,o,l,i,s)}},_updatePosition:function(t,e,i,n,a,u,h){var d=this._api.getWidth(),p=this._api.getHeight();e=e||t.get("position");var f=a.getSize(),m=t.get("align"),v=t.get("verticalAlign"),y=h&&h.getBoundingRect().clone();if(h&&y.applyTransform(h.transform),"function"==typeof e&&(e=e([i,n],u,a.el,y,{viewSize:[d,p],contentSize:f.slice()})),c.isArray(e))i=S(e[0],d),n=S(e[1],p);else if(c.isObject(e)){e.width=f[0],e.height=f[1];var x=g.getLayoutRect(e,{width:d,height:p});i=x.x,n=x.y,m=null,v=null}else if("string"==typeof e&&h){var _=s(e,y,f);i=_[0],n=_[1]}else{var _=o(i,n,a.el,d,p,m?null:20,v?null:20);i=_[0],n=_[1]}if(m&&(i-=l(m)?f[0]/2:"right"===m?f[0]:0),v&&(n-=l(v)?f[1]/2:"bottom"===v?f[1]:0),t.get("confine")){var _=r(i,n,a.el,d,p);i=_[0],n=_[1]}a.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return w(e,function(e,n){var a=e.dataByAxis||{},o=t[n]||{},r=o.dataByAxis||[];i&=a.length===r.length,w(a,function(t,e){var n=r[e]||{},a=t.seriesDataIndices||[],o=n.seriesDataIndices||[];i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&a.length===o.length,w(a,function(t,e){var n=o[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})})}),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){m.node||(this._tooltipContent.hide(),y.unregister("itemTooltip",e))}})},function(t,e,i){i(425),i(426)},function(t,e,i){i(2).registerPreprocessor(i(188)),i(189),i(190),i(427),i(428),i(191)},function(t,e,i){i(2).registerPreprocessor(i(188)),i(189),i(190),i(429),i(430),i(191)},function(t,e,i){function n(t,e,i){if(i[0]===i[1])return i.slice();for(var n=200,a=(i[1]-i[0])/n,o=i[0],r=[],s=0;n>=s&&oe[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){a.prototype.completeVisualOption.apply(this,arguments),o.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=r.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)},!0,this),e.push({seriesId:i.id,dataIndex:n})},this),e},getVisualMeta:function(t){function e(e,i){o.push({value:e,color:t(e,i)})}for(var i=n(this,"outOfRange",this.getExtent()),a=n(this,"inRange",this.option.range.slice()),o=[],r=0,s=0,l=a.length,u=i.length;u>s&&(!a.length||i[s]<=a[0]);s++)i[s]r;r++,c=0)c&&o.length&&e(a[r],"outOfRange"),e(a[r],"inRange");for(var c=1;u>s;s++)(!a.length||a[a.length-1]o;o++){var r=t[0]+a*o;if(r>t[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:o/i})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new u.Group("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,o=i.handleLabels;y([0,1],function(r){var s=a[r];s.setStyle("fill",e.handlesColor[r]),s.position[1]=t[r];var l=u.applyTransform(i.handleLabelPoints[r],u.getTransform(s,this.group));o[r].setStyle({x:l[0],y:l[1],text:n.formatValueText(this._dataInterval[r]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===r?"bottom":"top":"left",i.barGroup)})},this)}},_showIndicator:function(t,e,i,n){var a=this.visualMapModel,r=a.getExtent(),s=a.itemSize,l=[0,s[1]],c=v(t,r,l,!0),h=this._shapes,d=h.indicator;if(d){d.position[1]=c,d.attr("invisible",!1),d.setShape("points",o(!!i,n,c,s[1]));var p={convertOpacityToAlpha:!0},f=this.getControllerVisual(t,"color",p);d.setStyle("fill",f);var g=u.applyTransform(h.indicatorLabelPoint,u.getTransform(d,this.group)),m=h.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",h.barGroup),x=this._orient;m.setStyle({text:(i?i:"")+a.formatValueText(e),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=x(_(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var a=[0,n[1]],o=i.getExtent();t=x(_(a[0],t),a[1]);var l=r(i,o,a),u=[t-l,t+l],c=v(t,a,o,!0),h=[v(u[0],a,o,!0),v(u[1],a,o,!0)];u[0]a[1]&&(h[1]=1/0),e&&(h[0]===-(1/0)?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,p=[];(e||s(i))&&(p=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var m=g.compressBatches(d,p);this._dispatchHighDown("downplay",f.convertDataIndex(m[0])),this._dispatchHighDown("highlight",f.convertDataIndex(m[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var a=n.getData(e.dataType),o=a.getDimension(i.getDataDimension(a)),r=a.get(o,e.dataIndex,!0);isNaN(r)||this._showIndicator(r,r)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",f.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,n){var a=u.getTransform(e,n?null:this.group);return u[c.isArray(t)?"applyTransform":"transformDirection"](t,a,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});t.exports=S},function(t,e,i){function n(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var a=i(185),o=i(1),r=i(48),s=i(203),l=i(4).reformIntervals,u=a.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){u.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetTargetSeries(),this.resetExtent();var i=this._mode=this._determineMode();c[this._mode].call(this),this._resetSelected(t,e);var n=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=o.clone(n)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=o.map(this._pieceList,function(t){var t=o.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){function t(t,e,i){return t&&t[e]&&(o.isObject(t[e])?t[e].hasOwnProperty(i):t[e]===i)}var e=this.option,i={},n=r.listVisualTypes(),l=this.isCategory();o.each(e.pieces,function(t){o.each(n,function(e){t.hasOwnProperty(e)&&(i[e]=1)})}),o.each(i,function(i,n){var a=0;o.each(this.stateList,function(i){a|=t(e,i,n)||t(e.target,i,n)},this),!a&&o.each(this.stateList,function(t){(e[t]||(e[t]={}))[n]=s.get(n,"inRange"===t?"active":"inactive",l)})},this),a.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,a=(e?i:t).selected||{};if(i.selected=a,o.each(n,function(t,e){var i=this.getSelectedMapKey(t);a.hasOwnProperty(i)||(a[i]=!0)},this),"single"===i.selectedMode){var r=!1;o.each(n,function(t,e){var i=this.getSelectedMapKey(t);a[i]&&(r?a[i]=!1:r=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=o.clone(t)},getValueState:function(t){var e=r.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),function(e,i){var a=r.findPieceIndex(e,this._pieceList);a===t&&n.push(i)},!0,this),e.push({seriesId:i.id,dataIndex:n})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-(1/0)&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){function e(e,o){var r=a.getRepresentValue({interval:e});o||(o=a.getValueState(r));var s=t(r,o);e[0]===-(1/0)?n[0]=s:e[1]===1/0?n[1]=s:i.push({ value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var i=[],n=[],a=this,r=this._pieceList.slice();if(r.length){var s=r[0].interval[0];s!==-(1/0)&&r.unshift({interval:[-(1/0),s]}),s=r[r.length-1].interval[1],s!==1/0&&r.push({interval:[s,1/0]})}else r.push({interval:[-(1/0),1/0]});var l=-(1/0);return o.each(r,function(t){var i=t.interval;i&&(i[0]>l&&e([l,i[0]],"outOfRange"),e(i.slice()),l=i[1])},this),{stops:i,outerColors:n}}}}),c={splitNumber:function(){var t=this.option,e=this._pieceList,i=t.precision,n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var r=(n[1]-n[0])/a;+r.toFixed(i)!==r&&5>i;)i++;t.precision=i,r=+r.toFixed(i);var s=0;t.minOpen&&e.push({index:s++,interval:[-(1/0),n[0]],close:[0,0]});for(var u=n[0],c=s+a;c>s;u+=r){var h=s===a-1?n[1]:u+r;e.push({index:s++,interval:[u,h],close:[1,1]})}t.maxOpen&&e.push({index:s++,interval:[n[1],1/0],close:[0,0]}),l(e),o.each(e,function(t){t.text=this.formatValueText(t.interval)},this)},categories:function(){var t=this.option;o.each(t.categories,function(t){this._pieceList.push({text:this.formatValueText(t,!0),value:t})},this),n(t,this._pieceList)},pieces:function(){var t=this.option,e=this._pieceList;o.each(t.pieces,function(t,i){o.isObject(t)||(t={value:t});var n={text:"",index:i};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){var a=n.value=t.value;n.interval=[a,a],n.close=[1,1]}else{for(var s=n.interval=[],l=n.close=[0,0],u=[1,0,1],c=[-(1/0),1/0],h=[],d=0;2>d;d++){for(var p=[["gte","gt","min"],["lte","lt","max"]][d],f=0;3>f&&null==s[d];f++)s[d]=t[p[f]],l[d]=u[f],h[d]=2===f;null==s[d]&&(s[d]=c[d])}h[0]&&s[1]===1/0&&(l[0]=0),h[1]&&s[0]===-(1/0)&&(l[1]=0),__DEV__&&s[0]>s[1]&&console.warn("Piece "+i+"is illegal: "+s+" lower bound should not greater then uppper bound."),s[0]===s[1]&&l[0]&&l[1]&&(n.value=s[0])}n.visual=r.retrieveVisuals(t),e.push(n)},this),n(t,e),l(e),o.each(e,function(t){var e=t.close,i=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)},this)}};t.exports=u},function(t,e,i){var n=i(186),a=i(1),o=i(3),r=i(26),s=i(9),l=i(187),u=n.extend({type:"visualMap.piecewise",doRender:function(){function t(t){var r=t.piece,s=new o.Group;s.onclick=a.bind(this._onItemClick,this,r),this._enableHoverLink(s,t.indexInModelPieceList);var d=i.getRepresentValue(r);if(this._createItemSymbol(s,d,[0,0,h[0],h[1]]),f){var p=this.visualMapModel.getValueState(d);s.add(new o.Text({style:{x:"right"===c?-n:h[0]+n,y:h[1]/2,text:r.text,textVerticalAlign:"middle",textAlign:c,textFont:l,fill:u,opacity:"outOfRange"===p?.5:1}}))}e.add(s)}var e=this.group;e.removeAll();var i=this.visualMapModel,n=i.get("textGap"),r=i.textStyleModel,l=r.getFont(),u=r.getTextColor(),c=this._getItemAlign(),h=i.itemSize,d=this._getViewData(),p=d.endsText,f=a.retrieve(i.get("showLabel",!0),!p);p&&this._renderEndsText(e,p[0],h,f,c),a.each(d.viewPieceList,t,this),p&&this._renderEndsText(e,p[1],h,f,c),s.box(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:l.convertDataIndex(i.findTargetDataIndices(e))})}t.on("mouseover",a.bind(i,this,"highlight")).on("mouseout",a.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return l.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,a){if(e){var r=new o.Group,s=this.visualMapModel.textStyleModel;r.add(new o.Text({style:{x:n?"right"===a?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?a:"center",text:e,textFont:s.getFont(),fill:s.getTextColor()}})),t.add(r)}},_getViewData:function(){var t=this.visualMapModel,e=a.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return("horizontal"===n?o:!o)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(r.createSymbol(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,n=a.clone(i.selected),o=e.getSelectedMapKey(t);"single"===i.selectedMode?(n[o]=!0,a.each(n,function(t,e){n[e]=e===o})):n[o]=!n[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})}});t.exports=u},function(t,e,i){"use strict";function n(t,e,i){this._model=t}function a(t,e,i,n){var a=i.calendarModel,o=i.seriesModel,r=a?a.coordinateSystem:o?o.coordinateSystem:null;return r===this?r[t](n):null}var o=i(9),r=i(4),s=i(1),l=864e5;n.prototype={constructor:n,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"}]},getHandledRangeInfo: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){t=r.parseDate(t);var e=t.getFullYear(),i=t.getMonth()+1;i=10>i?"0"+i:i;var n=t.getDate();n=10>n?"0"+n:n;var a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e,m:i,d:n,day:a,time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){if(e=e||0,0===e)return this.getDateInfo(t);var i=this.getDateInfo(t).time;return this.getDateInfo(i+l*e)},update:function(t,e){function i(t,e){return null!=t[e]&&"auto"!==t[e]}this._firstDayOfWeek=this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle.normal").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],r=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),u="horizontal"===this._orient?[n,7]:[7,n];s.each([0,1],function(t){i(r,t)&&(l[a[t]]=r[t]*u[t])});var c={width:e.getWidth(),height:e.getHeight()},h=this._rect=o.getLayoutRect(l,c);s.each([0,1],function(t){i(r,t)||(r[t]=h[a[t]]/u[t])}),this._sw=r[0],this._sh=r[1]},dataToPoint:function(t,e){var i=this.getDateInfo(t[0]),n=this._rangeInfo,a=i.formatedDate;if(!(e||i.time>=n.start.time&&i.time<=n.end.time))return[NaN,NaN];var o=i.day,r=this._getRangeInfo([n.start.time,a]).weeks;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+(r-1)*this._sh+this._sh/2]:[this._rect.x+(r-1)*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 i=this.dataToPoint(t,e);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,e-1,n):this._getDateByWeeksAndDay(e,i-1,n)},convertToPixel:s.curry(a,"dataToPoint"),convertFromPixel:s.curry(a,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(s.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 i=this.getDateInfo(e),n=i.date;n.setMonth(n.getMonth()+1);var a=this.getNextNDay(n,-1);t=[i.formatedDate,a.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=this.getDateInfo(t[0]),i=this.getDateInfo(t[1]),n=Math.floor(i.time/l)-Math.floor(e.time/l)+1,a=Math.floor((n+e.day+6)/7);return{range:[e.formatedDate,i.formatedDate],start:e,end:i,allDay:n,weeks:a,fweek:e.day,lweek:i.day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var a=7*(t-1)-n.fweek+e,o=n.start.time+a*l;return this.getDateInfo(o)}},n.dimensions=n.prototype.dimensions,n.getDimensionsInfo=n.prototype.getDimensionsInfo,n.create=function(t,e){var i=[];return t.eachComponent("calendar",function(a){var o=new n(a,t,e);i.push(o),a.coordinateSystem=o}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},i(31).register("calendar",n),t.exports=n},function(t,e,i){"use strict";function n(t,e){var i=t.cellSize;o.isArray(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var n=o.map([0,1],function(t){return r.sizeCalculable(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]});r.mergeLayoutParam(t,e,{type:"box",ignoreSize:n})}var a=i(15),o=i(1),r=i(9),s=a.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{normal:{color:"#fff",borderWidth:1,borderColor:"#ccc"}},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",textStyle:{color:"#000"}},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,textStyle:{color:"#000"}},yearLabel:{show:!0,position:null,margin:30,formatter:null,textStyle:{color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}}},init:function(t,e,i,a){var o=r.getLayoutParams(t);s.superApply(this,"init",arguments),n(t,o)},mergeOption:function(t,e){s.superApply(this,"mergeOption",arguments),n(this.option,t)}});t.exports=s},function(t,e,i){var n=i(1),a=i(41),o=i(437),r=function(t,e,i,n,o){a.call(this,t,e,i),this.type=n||"value",this.position=o||"bottom"};r.prototype={constructor:r,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=o(this)),t},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},n.inherits(r,a),t.exports=r},function(t,e,i){"use strict";function n(t){return this._axes[t]}var a=i(1),o=function(t){this._axes={},this._dimList=[],this.name=t||""};o.prototype={constructor:o,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return a.map(this._dimList,n,this)},getAxesByScale:function(t){return t=t.toLowerCase(),a.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},a=0;a=0;i--)l.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t)return"inactive";for(var i=0,n=e.length;n>i;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"}}),c={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};o.merge(u.prototype,i(53)),s("parallel",u,n,c),t.exports=u},function(t,e,i){function n(t,e,i){this._axesMap={},this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function a(t,e){return m(v(t,e[0]),e[1])}function o(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function r(t,e){var i,n,a=e.layoutLength,o=e.axisExpandWidth,r=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t=i&&o<=i+e.axisLength&&r>=n&&r<=n+e.layoutLength},_updateAxesFromSeries:function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var n=i.getData();g(this.dimensions,function(t){var e=this._axesMap[t];e.scale.unionExtentFromData(n,t),l.niceScaleExtent(e.scale,e.model)},this)}},this)},resize:function(t,e){this._rect=s.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],o=["width","height"],r=e.get("layout"),s="horizontal"===r?0:1,l=i[o[s]],u=[0,l],c=this.dimensions.length,h=a(e.get("axisExpandWidth"),u),d=a(e.get("axisExpandCount")||0,[0,c]),p=e.get("axisExpandable")&&c>3&&c>d&&d>1&&h>0&&l>0,f=e.get("axisExpandWindow");if(f)t=a(f[1]-f[0],u),f[1]=f[0]+t;else{t=a(h*(d-1),u);var g=e.get("axisExpandCenter")||y(c/2);f=[h*g-t/2],f[1]=f[0]+t}var m=(l-t)/(c-d);3>m&&(m=0);var v=[y(_(f[0]/h,1))+1,x(_(f[1]/h,1))-1],b=m/h*f[0];return{layout:r,pixelDimIndex:s,layoutBase:i[n[s]],layoutLength:l,axisBase:i[n[1-s]],axisLength:i[o[1-s]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:v,axisExpandWindow0Pos:b}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),a=n.layout;g(e,function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])}),g(i,function(e,i){var s=(n.axisExpandable?r:o)(i,n),l={horizontal:{x:s.position,y:n.axisLength},vertical:{x:0,y:s.position}},u={horizontal:b/2,vertical:0},c=[l[a].x+t.x,l[a].y+t.y],h=u[a],p=d.create();d.rotate(p,p,h),d.translate(p,p,c),this._axesLayout[e]={position:c,rotation:h,transform:p,axisNameAvailableWidth:s.axisNameAvailableWidth,axisLabelShow:s.axisLabelShow,nameTruncateMaxWidth:s.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(t){return this._axesMap[t]},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap[e].dataToCoord(t),e)},eachActiveState:function(t,e,i){for(var n=this.dimensions,a=this._axesMap,o=this.hasAxisBrushed(),r=0,s=t.count();s>r;r++){var l,u=t.getValues(n,r);if(o){l="active";for(var c=0,h=n.length;h>c;c++){var d=n[c],p=a[d].model.getActiveState(u[c],c);if("inactive"===p){l="inactive";break}}}else l="normal";e.call(i,l,r)}},hasAxisBrushed:function(){for(var t=this.dimensions,e=this._axesMap,i=!1,n=0,a=t.length;a>n;n++)"normal"!==e[t[n]].model.getActiveState()&&(i=!0);return i},axisCoordToPoint:function(t,e){var i=this._axesLayout[e];return h.applyTransform([t,0],i.transform)},getAxisLayout:function(t){return u.clone(this._axesLayout[t])},getSlidedAxisExpandWindow:function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,n=e.axisExpandWindow.slice(),a=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var r,s=t[i]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&sa*(1-c[0])?(l="jump",r=s-a*(1-c[2])):(r=s-a*c[1])>=0&&(r=s-a*(1-c[1]))<=0&&(r=0),r*=e.axisExpandWidth/u,r?f(r,n,o,"rigid"):l="none";else{var a=n[1]-n[0],d=o[1]*s/a;n=[v(0,d-a/2)],n[1]=m(o[1],n[0]+a),n[0]=n[1]-a}return{axisExpandWindow:n,behavior:l}}},t.exports=n},function(t,e,i){var n=i(1),a=i(41),o=function(t,e,i,n,o){a.call(this,t,e,i),this.type=n||"value",this.axisIndex=o};o.prototype={constructor:o,model:null},n.inherits(o,a),t.exports=o},function(t,e,i){var n=i(1),a=i(15);i(443),a.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(t){var e=this.option;t&&n.merge(e,t,!0),this._initDimensions()},contains:function(t,e){var i=t.get("parallelIndex");return null!=i&&e.getComponent("parallel",i)===this},setAxisExpand:function(t){n.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},_initDimensions:function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],i=n.filter(this.dependentModels.parallelAxis,function(t){return t.get("parallelIndex")===this.componentIndex});n.each(i,function(i){t.push("dim"+i.get("dim")),e.push(i.componentIndex)})}})},function(t,e,i){function n(t){if(!t.parallel){var e=!1;o.each(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}}function a(t){var e=r.normalizeToArray(t.parallelAxis);o.each(e,function(e){if(o.isObject(e)){var i=e.parallelIndex||0,n=r.normalizeToArray(t.parallel)[i];n&&n.parallelAxisDefault&&o.merge(e,n.parallelAxisDefault,!1)}})}var o=i(1),r=i(8);t.exports=function(t){n(t),a(t)}},function(t,e,i){"use strict";function n(t,e){e=e||[0,360],o.call(this,"angle",t,e),this.type="category"}var a=i(1),o=i(41);n.prototype={constructor:n,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:o.prototype.dataToCoord,angleToData:o.prototype.coordToData},a.inherits(n,o),t.exports=n},function(t,e,i){"use strict";function n(t,e){return e.type||(e.data?"category":"value")}var a=i(1),o=i(15),r=i(88),s=o.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});a.merge(s.prototype,i(53));var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};r("angle",s,n,l.angle),r("radius",s,n,l.radius)},function(t,e,i){"use strict";var n=i(452),a=i(448),o=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new n,this._angleAxis=new a,this._radiusAxis.polar=this._angleAxis.polar=this};o.prototype={type:"polar",axisPointerEnabled:!0,constructor:o,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=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),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)]}},dataToPoints:function(t){return t.mapArray(this.dimensions,function(t,e){return this.dataToPoint([t,e])},this)},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),a=n.getExtent(),o=Math.min(a[0],a[1]),r=Math.max(a[0],a[1]);n.inverse?o=r-360:r=o+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,u=o>l?1:-1;o>l||l>r;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,a=-Math.sin(i)*e+this.cy;return[n,a]}},t.exports=o},function(t,e,i){"use strict";i(449),i(2).extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,i=this.ecModel;return i.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})},function(t,e,i){"use strict";function n(t,e){o.call(this,"radius",t,e),this.type="category"}var a=i(1),o=i(41);n.prototype={constructor:n,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:o.prototype.dataToCoord,radiusToData:o.prototype.coordToData},a.inherits(n,o),t.exports=n},function(t,e,i){function n(t,e,i){o.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}var a=i(1),o=i(41);a.inherits(n,o),t.exports=n},function(t,e,i){function n(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=a.map(t.getIndicatorModels(),function(t,e){var i="indicator_"+e,n=new o(i,new r);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n},this),this.resize(t,i),this.cx,this.cy,this.r,this.startAngle}var a=i(1),o=i(453),r=i(91),s=i(4),l=i(20);n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},n.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e],n=i.angle,a=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[a,o]},n.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var a,o=Math.atan2(-i,e),r=1/0,s=-1,l=0;lc&&(a=u,s=l,r=c)}return[s,+(a&&a.coodToData(n))]},n.prototype.resize=function(t,e){var i=t.get("center"),n=e.getWidth(),o=e.getHeight(),r=Math.min(n,o)/2;this.cx=s.parsePercent(i[0],n),this.cy=s.parsePercent(i[1],o),this.startAngle=t.get("startAngle")*Math.PI/180,this.r=s.parsePercent(t.get("radius"),r),a.each(this._indicatorAxes,function(t,e){t.setExtent(0,this.r);var i=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),t.angle=i},this)},n.prototype.update=function(t,e){function i(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),i=t/e;return 2===i?i=5:i*=2,i*e}var n=this._indicatorAxes,o=this._model;a.each(n,function(t){t.scale.setExtent(1/0,-(1/0))}),t.eachSeriesByType("radar",function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===o){var r=e.getData();a.each(n,function(t){t.scale.unionExtentFromData(r,t.dim)})}},this);var r=o.get("splitNumber");a.each(n,function(t,e){var n=l.getScaleExtent(t.scale,t.model);l.niceScaleExtent(t.scale,t.model);var a=t.model,o=t.scale,u=a.getMin(),c=a.getMax(),h=o.getInterval();if(null!=u&&null!=c)o.setInterval((c-u)/r);else if(null!=u){var d;do d=u+h*r,o.setExtent(+u,d),o.setInterval(h),h=i(h);while(dn[0]&&isFinite(p)&&isFinite(n[0]))}else{var f=o.getTicks().length-1;f>r&&(h=i(h));var g=Math.round((n[0]+n[1])/2/h)*h,m=Math.round(r/2);o.setExtent(s.round(g-m*h),s.round(g+(r-m)*h)),o.setInterval(h)}})},n.dimensions=[],n.create=function(t,e){var i=[];return t.eachComponent("radar",function(a){var o=new n(a,t,e);i.push(o),a.coordinateSystem=o}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},i(31).register("radar",n),t.exports=n},function(t,e,i){function n(t,e){return s.defaults({show:e},t)}var a=i(193),o=a.valueAxis,r=i(12),s=i(1),l=i(53),u=i(2).extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),a=this.get("axisTick"),o=this.get("axisLabel"),u=this.get("name.textStyle"),c=this.get("name.show"),h=this.get("name.formatter"),d=this.get("nameGap"),p=this.get("triggerEvent"),f=s.map(this.get("indicator")||[],function(f){ if(null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0),f=s.merge(s.clone(f),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:a,axisLabel:o,name:f.text,nameLocation:"end",nameGap:d,nameTextStyle:u,triggerEvent:p},!1),c||(f.name=""),"string"==typeof h){var g=f.name;f.name=h.replace("{value}",null!=g?g:"")}else"function"==typeof h&&(f.name=h(f.name,f));var m=s.extend(new r(f,null,this.ecModel),l);return m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this.getIndicatorModels=function(){return f}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:s.merge({lineStyle:{color:"#bbb"}},o.axisLine),axisLabel:n(o.axisLabel,!1),axisTick:n(o.axisTick,!1),splitLine:n(o.splitLine,!0),splitArea:n(o.splitArea,!0),indicator:[]}});t.exports=u},function(t,e,i){function n(t,e){return e.type||(e.data?"category":"value")}var a=i(15),o=i(88),r=i(1),s=a.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};r.merge(s.prototype,i(53)),o("single",s,n,l),t.exports=s},function(t,e,i){function n(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}var a=i(458),o=i(20),r=i(9);n.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:n,_init:function(t,e,i){var n=this.dimension,r=new a(n,o.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===r.type;r.onBand=s&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData(),i=this.dimension;this._axis.scale.unionExtentFromData(e,t.coordDimToDataDim(i)),o.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(t,e){this._rect=r.getLayoutRect({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],a=e.reverse?1:0;e.setExtent(n[a],n[1-a]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],a=t.isHorizontal();t.toGlobalCoord=a?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=a?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis(),n=i.orient;return"horizontal"===n?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}},t.exports=n},function(t,e,i){var n=i(1),a=i(41),o=i(20),r=function(t,e,i,n,o){a.call(this,t,e,i),this.type=n||"value",this.position=o||"bottom",this.orient=null,this._labelInterval=null};r.prototype={constructor:r,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getLabelInterval:function(){var t=this._labelInterval;if(!t){var e=this.model,i=e.getModel("axisLabel"),a=i.get("interval");if("category"!==this.type||"auto"!==a)return t=this._labelInterval="auto"===a?0:a;t=this._labelInterval=o.getAxisLabelInterval(n.map(this.scale.getTicks(),this.dataToCoord,this),e.getFormattedLabels(),i.getModel("textStyle").getFont(),this.isHorizontal())}return t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},n.inherits(r,a),t.exports=r},function(t,e,i){function n(t,e){var i=[];return t.eachComponent("singleAxis",function(n,o){var r=new a(n,t,e);r.name="single_"+o,r.resize(n,e),n.coordinateSystem=r,i.push(r)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}}),i}var a=i(457);i(31).register("single",{create:n,dimensions:a.prototype.dimensions})},function(t,e,i){"use strict";function n(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function a(t,e,i){this.node1=t,this.node2=e,this.dataIndex=null==i?-1:i}var o=i(1),r=function(t){this._directed=t||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},s=r.prototype;s.type="graph",s.isDirected=function(){return this._directed},s.addNode=function(t,e){t=t||""+e;var i=this._nodesMap;if(!i[t]){var a=new n(t,e);return a.hostGraph=this,this.nodes.push(a),i[t]=a,a}},s.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},s.getNodeById=function(t){return this._nodesMap[t]},s.addEdge=function(t,e,i){var o=this._nodesMap,r=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),t instanceof n||(t=o[t]),e instanceof n||(e=o[e]),t&&e){var s=t.id+"-"+e.id;if(!r[s]){var l=new a(t,e,i);return l.hostGraph=this,this._directed&&(t.outEdges.push(l),e.inEdges.push(l)),t.edges.push(l),t!==e&&e.edges.push(l),this.edges.push(l),r[s]=l,l}}},s.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},s.getEdge=function(t,e){t instanceof n&&(t=t.id),e instanceof n&&(e=e.id);var i=this._edgesMap;return this._directed?i[t+"-"+e]:i[t+"-"+e]||i[e+"-"+t]},s.eachNode=function(t,e){for(var i=this.nodes,n=i.length,a=0;n>a;a++)i[a].dataIndex>=0&&t.call(e,i[a],a)},s.eachEdge=function(t,e){for(var i=this.edges,n=i.length,a=0;n>a;a++)i[a].dataIndex>=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&t.call(e,i[a],a)},s.breadthFirstTraverse=function(t,e,i,a){if(e instanceof n||(e=this._nodesMap[e]),e){for(var o="out"===i?"outEdges":"in"===i?"inEdges":"edges",r=0;ra;a++)i[a].dataIndex=-1;for(var a=0,o=t.count();o>a;a++)i[t.getRawIndex(a)].dataIndex=a;e.filterSelf(function(t){var i=n[e.getRawIndex(t)];return i.node1.dataIndex>=0&&i.node2.dataIndex>=0});for(var a=0,o=n.length;o>a;a++)n[a].dataIndex=-1;for(var a=0,o=e.count();o>a;a++)n[e.getRawIndex(a)].dataIndex=a},s.clone=function(){for(var t=new r(this._directed),e=this.nodes,i=this.edges,n=0;n=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};o.mixin(n,l("hostGraph","data")),o.mixin(a,l("hostGraph","edgeData")),r.Node=n,r.Edge=a,t.exports=r},function(t,e,i){function n(t,e){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=o.map(e||[],function(e){return new r(e,t,t.ecModel)})}function a(t,e){var i=e.children;t.parentNode!==e&&(i.push(t),t.parentNode=e)}var o=i(1),r=i(12),s=i(13),l=i(198),u=i(25),c=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};c.prototype={constructor:c,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,i){"function"==typeof t&&(i=e,e=t,t=null),t=t||{},o.isString(t)&&(t={order:t});var n,a=t.order||"preorder",r=this[t.attr||"children"];"preorder"===a&&(n=e.call(i,this));for(var s=0;!n&&se&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;n>e;e++){var a=i[e].getNodeById(t);if(a)return a}},contains:function(t){if(t===this)return!0;for(var e=0,i=this.children,n=i.length;n>e;e++){var a=i[e].contains(t);if(a)return a}},getAncestors:function(t){for(var e=[],i=t?this:this.parentNode;i;)e.push(i),i=i.parentNode;return e.reverse(),e},getValue:function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},setLayout:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree,i=e.data.getItemModel(this.dataIndex),n=this.getLevelModel();return i.getModel(t,(n||e.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)}},n.prototype={constructor:n,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;n>i;i++)e[i].dataIndex=-1;for(var i=0,n=t.count();n>i;i++)e[t.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},n.createTree=function(t,e,i){function r(t,e){var i=t.value;p=Math.max(p,o.isArray(i)?i.length:1),d.push(t);var n=new c(t.name,h);e?a(n,e):h.root=n,h._nodes.push(n);var s=t.children;if(s)for(var l=0;l=0;n--)h.isIdInner(e[n])&&e.splice(n,1);t[i]=e}}),delete t[b],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap[t];return i?i[e||0]:void 0},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i=t.index,n=t.id,a=t.name,o=this._componentsMap[e];if(!o||!o.length)return[];var r;if(null!=i)m(i)||(i=[i]),r=f(g(i,function(t){return o[t]}),function(t){return!!t});else if(null!=n){var s=m(n);r=f(o,function(t){return s&&v(n,t.id)>=0||!s&&t.id===n})}else if(null!=a){var u=m(a);r=f(o,function(t){return u&&v(a,t.name)>=0||!u&&t.name===a})}else r=o.slice();return l(r,t)},findComponents:function(t){function e(t){var e=a+"Index",i=a+"Id",n=a+"Name";return!t||null==t[e]&&null==t[i]&&null==t[n]?null:{mainType:a,index:t[e],id:t[i],name:t[n]}}function i(e){return t.filter?f(e,t.filter):e}var n=t.query,a=t.mainType,o=e(n),r=o?this.queryComponents(o):this._componentsMap[a];return i(l(r,t))},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,p(n,function(t,n){p(t,function(t,a){e.call(i,n,t,a)})});else if(c.isString(t))p(n[t],e,i);else if(y(t)){var a=this.findComponents(t);p(a,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.series;return f(e,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){var e=this._componentsMap.series;return f(e,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){u(this),p(this._seriesIndices,function(i){var n=this._componentsMap.series[i];t.call(e,n,i)},this)},eachRawSeries:function(t,e){p(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,i){u(this),p(this._seriesIndices,function(n){var a=this._componentsMap.series[n];a.subType===t&&e.call(i,a,n)},this)},eachRawSeriesByType:function(t,e,i){return p(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return u(this),c.indexOf(this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){u(this);var i=f(this._componentsMap.series,t,e);this._seriesIndices=s(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=s(t.series);var e=[];p(t,function(t,i){e.push(i)}),x.topologicalTravel(e,x.getAllClassMainTypes(),function(e,i){p(t[e],function(t){t.restoreData()})})}});c.mixin(w,i(200)),t.exports=w},function(t,e,i){function n(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function a(t,e,i){var n,a,o=[],r=[],s=t.timeline;if(t.baseOption&&(a=t.baseOption),(s||t.options)&&(a=a||{},o=(t.options||[]).slice()),t.media){a=a||{};var l=t.media;d(l,function(t){t&&t.option&&(t.query?r.push(t):n||(n=t))})}return a||(a=t),a.timeline||(a.timeline=s),d([a].concat(o).concat(u.map(r,function(t){return t.option})),function(t){d(e,function(e){e(t,i)})}),{baseOption:a,timelineOptions:o,mediaDefault:n,mediaList:r}}function o(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return u.each(t,function(t,e){var i=e.match(m);if(i&&i[1]&&i[2]){var o=i[1],s=i[2].toLowerCase();r(n[s],t,o)||(a=!1)}}),a}function r(t,e,i){return"min"===i?t>=e:"max"===i?e>=t:t===e}function s(t,e){return t.join(",")===e.join(",")}function l(t,e){e=e||{},d(e,function(e,i){if(null!=e){var n=t[i];if(h.hasClass(i)){e=c.normalizeToArray(e),n=c.normalizeToArray(n);var a=c.mappingToExists(n,e);t[i]=f(a,function(t){return t.option&&t.exist?g(t.exist,t.option,!0):t.exist||t.option})}else t[i]=g(n,e,!0)}})}var u=i(1),c=i(8),h=i(15),d=u.each,p=u.clone,f=u.map,g=u.merge,m=/^(min|max)?(.+)$/;n.prototype={constructor:n,setOption:function(t,e){t=p(t,!0);var i=this._optionBackup,n=a.call(this,t,e,!i);this._newBaseOption=n.baseOption,i?(l(i.baseOption,n.baseOption),n.timelineOptions.length&&(i.timelineOptions=n.timelineOptions),n.mediaList.length&&(i.mediaList=n.mediaList),n.mediaDefault&&(i.mediaDefault=n.mediaDefault)):this._optionBackup=n},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=f(e.timelineOptions,p),this._mediaList=f(e.mediaList,p),this._mediaDefault=p(e.mediaDefault),this._currentMediaIndices=[],p(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=p(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,r=[],l=[];if(!n.length&&!a)return l;for(var u=0,c=n.length;c>u;u++)o(n[u].query,e,i)&&r.push(u);return!r.length&&a&&(r=[-1]),r.length&&!s(r,this._currentMediaIndices)&&(l=f(r,function(t){return p(-1===t?a.option:n[t].option)})),this._currentMediaIndices=r,l}},t.exports=n},function(t,e){var i="";"undefined"!=typeof navigator&&(i=navigator.platform||""),t.exports={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:i.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1}},function(t,e,i){t.exports={getAreaStyle:i(78)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}},function(t,e){t.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},function(t,e,i){var n=i(78)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]);t.exports={getItemStyle:function(t,e){var i=n.call(this,t,e),a=this.getBorderLineDash();return a&&(i.lineDash=a),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}}},function(t,e,i){var n=i(78)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getLineStyle:function(t){var e=n.call(this,t),i=this.getLineDash(e.lineWidth);return i&&(e.lineDash=i),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}}},function(t,e,i){function n(t,e){return t&&t.getShallow(e)}var a=i(32);t.exports={getTextColor:function(){var t=this.ecModel;return this.getShallow("color")||t&&t.get("textStyle.color")},getFont:function(){var t=this.ecModel,e=t&&t.getModel("textStyle");return[this.getShallow("fontStyle")||n(e,"fontStyle"),this.getShallow("fontWeight")||n(e,"fontWeight"),(this.getShallow("fontSize")||n(e,"fontSize")||12)+"px",this.getShallow("fontFamily")||n(e,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(t){return a.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("baseline"))},truncateText:function(t,e,i,n){return a.truncateText(t,e,this.getFont(),i,n)}}},function(t,e,i){function n(t,e){e=e.split(",");for(var i=t,n=0;ne&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i1){var h;"string"==typeof a?h=i[a]:"function"==typeof a&&(h=a),h&&(e=e.downSample(s.dim,1/c,h,n),t.setData(e))}}},this)}},function(t,e,i){function n(t,e){return h(t,c(e))}var a=i(1),o=i(92),r=i(4),s=i(91),l=o.prototype,u=s.prototype,c=r.getPrecisionSafe,h=r.round,d=Math.floor,p=Math.ceil,f=Math.pow,g=Math.log,m=o.extend({type:"log",base:10,$constructor:function(){o.apply(this,arguments),this._originalScale=new s},getTicks:function(){var t=this._originalScale,e=this._extent,i=t.getExtent();return a.map(u.getTicks.call(this),function(a){var o=r.round(f(this.base,a));return o=a===e[0]&&t.__fixMin?n(o,i[0]):o,o=a===e[1]&&t.__fixMax?n(o,i[1]):o},this)},getLabel:u.getLabel,scale:function(t){return t=l.scale.call(this,t),f(this.base,t)},setExtent:function(t,e){var i=this.base;t=g(t)/g(i),e=g(e)/g(i),u.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=l.getExtent.call(this);e[0]=f(t,e[0]),e[1]=f(t,e[1]);var i=this._originalScale,a=i.getExtent();return i.__fixMin&&(e[0]=n(e[0],a[0])),i.__fixMax&&(e[1]=n(e[1],a[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=g(t[0])/g(e),t[1]=g(t[1])/g(e),l.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getDataExtent(e,!0,function(t){return t>0}))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||0>=i)){var n=r.quantity(i),a=t/i*n;for(.5>=a&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var o=[r.round(p(e[0]/n)*n),r.round(d(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(t,e,i){u.niceExtent.call(this,t,e,i);var n=this._originalScale;n.__fixMin=e,n.__fixMax=i}});a.each(["contain","normalize"],function(t){m.prototype[t]=function(e){return e=g(e)/g(this.base),l[t].call(this,e)}}),m.create=function(){return new m},t.exports=m},function(t,e,i){var n=i(1),a=i(92),o=a.prototype,r=a.extend({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t.length-1]},parse:function(t){return"string"==typeof t?n.indexOf(this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._data[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,i=e[0];i<=e[1];)t.push(i),i++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getDataExtent(e,!1))},niceTicks:n.noop,niceExtent:n.noop});r.create=function(){return new r},t.exports=r},function(t,e,i){var n=i(1),a=i(4),o=i(7),r=i(201),s=i(91),l=s.prototype,u=Math.ceil,c=Math.floor,h=1e3,d=60*h,p=60*d,f=24*p,g=function(t,e,i,n){for(;n>i;){var a=i+n>>>1;t[a][2]o;o++){var s=e[o];s.el.animateTo(s.target,s.time,s.delay,s.easing,n)}return this}}}var a=i(1);t.exports={createWrap:n}},function(t,e,i){var n=i(96);t.exports=function(t){function e(e){var i=(e.visualColorAccessPath||"itemStyle.normal.color").split("."),a=e.getData(),o=e.get(i)||e.getColorFromPalette(e.get("name"));a.setVisual("color",o),t.isSeriesFiltered(e)||("function"!=typeof o||o instanceof n||a.each(function(t){a.setItemVisual(t,"color",o(e.getDataParams(t)))}),a.each(function(t){var e=a.getItemModel(t),n=e.get(i,!0);null!=n&&a.setItemVisual(t,"color",n)}))}t.eachRawSeries(e)}},function(t,e,i){var n=i(148);!function(){for(var t in n){if(null==n||!n.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=n[t]}}();var a=i(494);!function(){for(var t in a){if(null==a||!a.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=a[t]}}(),i(510),i(232)},function(t,e,i){function n(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which}}function a(){}function o(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n,a=t;a;){if(a.clipPath&&!a.clipPath.contain(e,i))return!1;a.silent&&(n=!0),a=a.parent}return n?c:!0}return!1}var r=i(1),s=i(5),l=i(506),u=i(49),c="silent";a.prototype.dispose=function(){};var h=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],d=function(t,e,i,n){u.call(this),this.storage=t,this.painter=e,this.painterRoot=n,i=i||new a,this.proxy=i,i.handler=this,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY, l.call(this),r.each(h,function(t){i.on&&i.on(t,this[t],this)},this)};d.prototype={constructor:d,mousemove:function(t){var e=t.zrX,i=t.zrY,n=this._hovered,a=n.target;a&&!a.__zr&&(n=this.findHover(n.x,n.y),a=n.target);var o=this._hovered=this.findHover(e,i),r=o.target,s=this.proxy;s.setCursor&&s.setCursor(r?r.cursor:"default"),a&&r!==a&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(o,"mousemove",t),r&&r!==a&&this.dispatchToElement(o,"mouseover",t)},mouseout:function(t){this.dispatchToElement(this._hovered,"mouseout",t);var e,i=t.toElement||t.relatedTarget;do i=i&&i.parentNode;while(i&&9!=i.nodeType&&!(e=i===this.painterRoot));!e&&this.trigger("globalout",{event:t})},resize:function(t){this._hovered={}},dispatch:function(t,e){var i=this[t];i&&i.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,i){t=t||{};var a=t.target;if(!a||!a.silent){for(var o="on"+e,r=n(e,t,i);a&&(a[o]&&(r.cancelBubble=a[o].call(a,r)),a.trigger(e,r),a=a.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},findHover:function(t,e,i){for(var n=this.storage.getDisplayList(),a={x:t,y:e},r=n.length-1;r>=0;r--){var s;if(n[r]!==i&&!n[r].ignore&&(s=o(n[r],t,e))&&(!a.topTarget&&(a.topTarget=n[r]),s!==c)){a.target=n[r];break}}return a}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){d.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mosueup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||s.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}),r.mixin(d,u),r.mixin(d,l);var p=d;t.exports=p},function(t,e,i){function n(){return!1}function a(t,e,i){var n=o.createCanvas(),a=e.getWidth(),r=e.getHeight(),s=n.style;return s.position="absolute",s.left=0,s.top=0,s.width=a+"px",s.height=r+"px",n.width=a*i,n.height=r*i,n.setAttribute("data-zr-dom-id",t),n}var o=i(1),r=i(94),s=r.devicePixelRatio,l=i(216),u=i(143),c=function(t,e,i){var r;i=i||s,"string"==typeof t?r=a(t,e,i):o.isObject(t)&&(r=t,t=r.id),this.id=t,this.dom=r;var l=r.style;l&&(r.onselectstart=n,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};c.prototype={constructor:c,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.__currentValues={},this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=a("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),this.ctxBack.__currentValues={},1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var i=this.dpr,n=this.dom,a=n.style,o=this.domBack;a.width=t+"px",a.height=e+"px",n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!=i&&this.ctxBack.scale(i,i))},clear:function(t){var e=this.dom,i=this.ctx,n=e.width,a=e.height,o=this.clearColor,r=this.motionBlur&&!t,s=this.lastFrameAlpha,c=this.dpr;if(r&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,n/c,a/c)),i.clearRect(0,0,n,a),o){var h;o.colorStops?(h=o.__canvasGradient||l.getGradient(i,o,{x:0,y:0,width:n,height:a}),o.__canvasGradient=h):o.image&&(h=u.prototype.getCanvasPattern.call(o,i)),i.save(),i.fillStyle=h||o,i.fillRect(0,0,n,a),i.restore()}if(r){var d=this.domBack;i.save(),i.globalAlpha=s,i.drawImage(d,0,0,n,a),i.restore()}}};var h=c;t.exports=h},function(t,e,i){function n(t){return parseInt(t,10)}function a(t){return t?t.__builtin__?!0:"function"==typeof t.resize&&"function"==typeof t.refresh:!1}function o(t){t.__unusedCount++}function r(t){1==t.__unusedCount&&t.clear()}function s(t,e,i){return b.copy(t.getBoundingRect()),t.transform&&b.applyTransform(t.transform),w.width=e,w.height=i,!b.intersect(w)}function l(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;ia;){var o=t[a],r=o.__from;r&&r.__zr?(a++,r.invisible||(o.transform=r.transform,o.invTransform=r.invTransform,o.__clipPaths=r.__clipPaths,this._doPaintEl(o,i,!0,n))):(t.splice(a,1),r.__hoverMir=null,e--)}i.ctx.restore()}},_startProgessive:function(){function t(){i===e._progressiveToken&&e.storage&&(e._doPaintList(e.storage.getDisplayList()),e._furtherProgressive?(e._progress++,y(t)):e._progressiveToken=-1)}var e=this;if(e._furtherProgressive){var i=e._progressiveToken=+new Date;e._progress++,y(t)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,p.each(this._progressiveLayers,function(t){t.__dirty&&t.clear()})},_paintList:function(t,e){null==e&&(e=!1),this._updateLayerStatus(t),this._clearProgressive(),this.eachBuiltinLayer(o),this._doPaintList(t,e),this.eachBuiltinLayer(r)},_doPaintList:function(t,e){function i(t){var e=o.dpr||1;o.save(),o.globalAlpha=1,o.shadowBlur=0,n.__dirty=!0,o.setTransform(1,0,0,1,0,0),o.drawImage(t.dom,0,0,c*e,h*e),o.restore()}for(var n,a,o,r,s,l,u=0,c=this._width,h=this._height,d=this._progress,g=0,m=t.length;m>g;g++){var v=t[g],y=this._singleCanvas?0:v.zlevel,x=v.__frame;if(0>x&&s&&(i(s),s=null),a!==y&&(o&&o.restore(),r={},a=y,n=this.getLayer(a),n.__builtin__||f("ZLevel "+a+" has been used by unkown layer "+n.id),o=n.ctx,o.save(),n.__unusedCount=0,(n.__dirty||e)&&n.clear()),n.__dirty||e){if(x>=0){if(!s){if(s=this._progressiveLayers[Math.min(u++,_-1)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){g=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(d=l),s.__progress=d+1}x===d&&this._doPaintEl(v,s,!0,s.renderScope)}else this._doPaintEl(v,n,e,r);v.__dirty=!1}}s&&i(s),o&&o.restore(),this._furtherProgressive=!1,p.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,i,n){var a=e.ctx,o=t.transform;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&(!o||o[0]||o[3])&&(!t.culling||!s(t,this._width,this._height))){var r=t.__clipPaths;(n.prevClipLayer!==e||l(r,n.prevElClipPaths))&&(n.prevElClipPaths&&(n.prevClipLayer.ctx.restore(),n.prevClipLayer=n.prevElClipPaths=null,n.prevEl=null),r&&(a.save(),u(r,a),n.prevClipLayer=e,n.prevElClipPaths=r)),t.beforeBrush&&t.beforeBrush(a),t.brush(a,n.prevEl||null),n.prevEl=t,t.afterBrush&&t.afterBrush(a)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new v("zr_"+t,this,this.dpr),e.__builtin__=!0,this._layerConfig[t]&&p.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var i=this._layers,n=this._zlevelList,o=n.length,r=null,s=-1,l=this._domRoot;if(i[t])return void f("ZLevel "+t+" has been used already");if(!a(e))return void f("Layer of zlevel "+t+" is not valid");if(o>0&&t>n[0]){for(s=0;o-1>s&&!(n[s]t);s++);r=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(r){var u=r.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom)},eachLayer:function(t,e){var i,n,a=this._zlevelList;for(n=0;nu;u++){var h=t[u],d=this._singleCanvas?0:h.zlevel,f=e[d],g=h.progressive;if(f&&(f.elCount++,f.__dirty=f.__dirty||h.__dirty),g>=0){r!==g&&(r=g,l++);var m=h.__frame=l-1;if(!o){var y=Math.min(s,_-1);o=i[y],o||(o=i[y]=new v("progressive",this,this.dpr),o.initContext()),o.__maxProgress=0}o.__dirty=o.__dirty||h.__dirty,o.elCount++,o.__maxProgress=Math.max(o.__maxProgress,m),o.__maxProgress>=o.__progress&&(f.__dirty=!0)}else h.__frame=-1,o&&(o.__nextIdxNotProg=u,s++,o=null)}o&&(s++,o.__nextIdxNotProg=u),this.eachBuiltinLayer(function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)}),i.length=Math.min(s,_),p.each(i,function(t,e){a[e]!==t.elCount&&(h.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?p.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&p.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(p.indexOf(i,t),1))},resize:function(t,e){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!=t||e!=this._height){i.style.width=t+"px",i.style.height=e+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);p.each(this._progressiveLayers,function(i){i.resize(t,e)}),this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){function e(t,e){var n=r._zlevelList;null==t&&(t=-(1/0));for(var a,o=0;ot&&e>s){a=l;break}}a&&a.renderToCanvas&&(i.ctx.save(),a.renderToCanvas(i.ctx),i.ctx.restore())}if(t=t||{},this._singleCanvas)return this._layers[0].dom;var i=new v("image",this,t.pixelRatio||this.dpr);i.initContext(),i.clearColor=t.backgroundColor,i.clear();for(var n,a=this.storage.getDisplayList(!0),o={},r=this,s=0;sa;a++)this._updateAndAddDisplayable(e[a],null,t);i.length=this._displayListLen,o.canvasSupported&&s(i,n)},_updateAndAddDisplayable:function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.__dirty&&t.update(),t.afterUpdate();var n=t.clipPath;if(n){e=e?e.slice():[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.clipPath}if(t.isGroup){for(var r=t._children,s=0;se;e++)this.delRoot(t[e]);else{var o=a.indexOf(this._roots,t);o>=0&&(this.delFromStorage(t),this._roots.splice(o,1),t instanceof r&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t.__storage=this,t.dirty(!1),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:n};var u=l;t.exports=u},function(t,e,i){var n=i(1),a=i(35),o=a.Dispatcher,r=i(206),s=i(205),l=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,o.call(this)};l.prototype={constructor:l,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;ir;r++){var s=i[r],l=s.step(t,e);l&&(a.push(l),o.push(s))}for(var r=0;n>r;)i[r]._needsRemove?(i[r]=i[n-1],i.pop(),n--):r++;n=a.length;for(var r=0;n>r;r++)o[r].fire(a[r]);this._time=t,this.onframe(e),this.trigger("frame",e),this.stage.update&&this.stage.update()},_startLoop:function(){function t(){e._running&&(r(t),!e._paused&&e._update())}var e=this;this._running=!0,r(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},animate:function(t,e){e=e||{};var i=new s(t,e.loop,e.getter,e.setter);return this.addAnimator(i),i}},n.mixin(l,o);var u=l;t.exports=u},function(t,e,i){function n(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null==t.loop?!1:t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}var a=i(487);n.prototype={constructor:n,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)return void(this._pausedTime+=e);var i=(t-this._startTime-this._pausedTime)/this._life;if(!(0>i)){i=Math.min(i,1);var n=this.easing,o="string"==typeof n?a[n]:n,r="function"==typeof o?o(i):i;return this.fire("frame",r),1==i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var o=n;t.exports=o},function(t,e){var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||1>i?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}},n=i;t.exports=n},function(t,e,i){function n(t,e,i,n,a,s,l,u,c){if(0===l)return!1;var h=l;u-=t,c-=e;var d=Math.sqrt(u*u+c*c);if(d-h>i||i>d+h)return!1;if(Math.abs(n-a)%r<1e-4)return!0;if(s){var p=n;n=o(a),a=o(p)}else n=o(n),a=o(a);n>a&&(a+=r);var f=Math.atan2(c,u);return 0>f&&(f+=r),f>=n&&a>=f||f+r>=n&&a>=f+r}var a=i(210),o=a.normalizeRadian,r=2*Math.PI;e.containStroke=n},function(t,e,i){function n(t,e,i,n,o,r,s,l,u,c,h){if(0===u)return!1;var d=u;if(h>e+d&&h>n+d&&h>r+d&&h>l+d||e-d>h&&n-d>h&&r-d>h&&l-d>h||c>t+d&&c>i+d&&c>o+d&&c>s+d||t-d>c&&i-d>c&&o-d>c&&s-d>c)return!1;var p=a.cubicProjectPoint(t,e,i,n,o,r,s,l,c,h,null);return d/2>=p}var a=i(43);e.containStroke=n},function(t,e,i){function n(t,e){return Math.abs(t-e)e&&c>n&&c>r&&c>l||e>c&&n>c&&r>c&&l>c)return 0;var h=y.cubicRootAt(e,n,r,l,c,S);if(0===h)return 0;for(var d,p,f=0,g=-1,m=0;h>m;m++){var v=S[m],x=0===v||1===v?.5:1,_=y.cubicAt(t,i,o,s,v);u>_||(0>g&&(g=y.cubicExtrema(e,n,r,l,M),M[1]1&&a(),d=y.cubicAt(e,n,r,l,M[0]),g>1&&(p=y.cubicAt(e,n,r,l,M[1]))),f+=2==g?vd?x:-x:vp?x:-x:p>l?x:-x:vd?x:-x:d>l?x:-x)}return f}function r(t,e,i,n,a,o,r,s){if(s>e&&s>n&&s>o||e>s&&n>s&&o>s)return 0;var l=y.quadraticRootAt(e,n,o,s,S);if(0===l)return 0;var u=y.quadraticExtremum(e,n,o);if(u>=0&&1>=u){for(var c=0,h=y.quadraticAt(e,n,o,u),d=0;l>d;d++){var p=0===S[d]||1===S[d]?.5:1,f=y.quadraticAt(t,i,a,S[d]);r>f||(c+=S[d]h?p:-p:h>o?p:-p)}return c}var p=0===S[0]||1===S[0]?.5:1,f=y.quadraticAt(t,i,a,S[0]);return r>f?0:e>o?p:-p}function s(t,e,i,n,a,o,r,s){if(s-=e,s>i||-i>s)return 0;var l=Math.sqrt(i*i-s*s);S[0]=-l,S[1]=l;var u=Math.abs(n-a);if(1e-4>u)return 0;if(1e-4>u%b){n=0,a=b;var c=o?1:-1;return r>=S[0]+t&&r<=S[1]+t?c:0}if(o){var l=n;n=v(a),a=v(l)}else n=v(n),a=v(a);n>a&&(a+=b);for(var h=0,d=0;2>d;d++){var p=S[d];if(p+t>r){var f=Math.atan2(s,p),c=o?1:-1;0>f&&(f=b+f),(f>=n&&a>=f||f+b>=n&&a>=f+b)&&(f>Math.PI/2&&f<1.5*Math.PI&&(c=-c),h+=c)}}return h}function l(t,e,i,a,l){for(var u=0,c=0,h=0,m=0,v=0,y=0;y1&&(i||(u+=x(c,h,m,v,a,l))),1==y&&(c=t[y],h=t[y+1],m=c,v=h),b){case _.M:m=t[y++],v=t[y++],c=m,h=v;break;case _.L:if(i){if(d.containStroke(c,h,t[y],t[y+1],e,a,l))return!0}else u+=x(c,h,t[y],t[y+1],a,l)||0;c=t[y++],h=t[y++];break;case _.C:if(i){if(p.containStroke(c,h,t[y++],t[y++],t[y++],t[y++],t[y],t[y+1],e,a,l))return!0}else u+=o(c,h,t[y++],t[y++],t[y++],t[y++],t[y],t[y+1],a,l)||0;c=t[y++],h=t[y++];break;case _.Q:if(i){if(f.containStroke(c,h,t[y++],t[y++],t[y],t[y+1],e,a,l))return!0}else u+=r(c,h,t[y++],t[y++],t[y],t[y+1],a,l)||0;c=t[y++],h=t[y++];break;case _.A:var w=t[y++],S=t[y++],M=t[y++],A=t[y++],T=t[y++],I=t[y++],L=(t[y++],1-t[y++]),C=Math.cos(T)*M+w,D=Math.sin(T)*A+S;y>1?u+=x(c,h,C,D,a,l):(m=C,v=D);var P=(a-w)*A/M+w;if(i){if(g.containStroke(w,S,A,T,T+I,L,e,P,l))return!0}else u+=s(w,S,A,T,T+I,L,P,l);c=Math.cos(T+I)*M+w,h=Math.sin(T+I)*A+S;break;case _.R:m=c=t[y++],v=h=t[y++];var k=t[y++],E=t[y++],C=m+k,D=v+E;if(i){if(d.containStroke(m,v,C,v,e,a,l)||d.containStroke(C,v,C,D,e,a,l)||d.containStroke(C,D,m,D,e,a,l)||d.containStroke(m,D,m,v,e,a,l))return!0}else u+=x(C,v,C,D,a,l),u+=x(m,D,m,v,a,l);break;case _.Z:if(i){if(d.containStroke(c,h,m,v,e,a,l))return!0}else u+=x(c,h,m,v,a,l);c=m,h=v}}return i||n(h,v)||(u+=x(c,h,m,v,a,l)||0),0!==u}function u(t,e,i){return l(t,0,!1,e,i)}function c(t,e,i,n){return l(t,e,!0,i,n)}var h=i(56),d=i(207),p=i(489),f=i(209),g=i(488),m=i(210),v=m.normalizeRadian,y=i(43),x=i(211),_=h.CMD,b=2*Math.PI,w=1e-4,S=[-1,-1,-1],M=[-1,-1];e.contain=u,e.containStroke=c},function(t,e,i){function n(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function a(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var o=i(35),r=function(){this._track=[]};r.prototype={constructor:r,recognize:function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},r=0,s=n.length;s>r;r++){var l=n[r],u=o.clientToLocal(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},_recognize:function(t){for(var e in s)if(s.hasOwnProperty(e)){var i=s[e](this._track,t);if(i)return i}}};var s={pinch:function(t,e){var i=t.length;if(i){var o=(t[i-1]||{}).points,r=(t[i-2]||{}).points||o;if(r&&r.length>1&&o&&o.length>1){var s=n(o)/n(r);!isFinite(s)&&(s=1),e.pinchScale=s;var l=a(o);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}},l=r;t.exports=l},function(t,e){function i(){}function n(t,e,i,n){for(var a=0,o=e.length,r=0,s=0;o>a;a++){var l=e[a];if(l.removed){for(var u=[],c=s;c=i;i+=2){var o,c=h[i-1],d=h[i+1],p=(d?d.newPos:0)-i;c&&(h[i-1]=void 0);var f=c&&c.newPos+1=0&&l>p;if(f||g){if(!f||g&&c.newPos=s&&p+1>=l)return n(r,o.components,e,t);h[i]=o}else h[i]=void 0}u++}i||(i=function(t,e){return t===e}),this.equals=i;var r=this;t=t.slice(),e=e.slice();var s=e.length,l=t.length,u=1,c=s+l,h=[{newPos:-1,components:[]}],d=this.extractCommon(h[0],e,t,0);if(h[0].newPos+1>=s&&d+1>=l){for(var p=[],f=0;f=u;){var g=o();if(g)return g}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){for(var a=e.length,o=i.length,r=t.newPos,s=r-n,l=0;a>r+1&&o>s+1&&this.equals(e[r+1],i[s+1]);)r++,s++,l++;return l&&t.components.push({count:l}),t.newPos=r,s},tokenize:function(t){return t.slice()},join:function(t){return t.slice()}};var r=new i;t.exports=o},function(t,e,i){function n(t){return"mousewheel"===t&&g.browser.firefox?"DOMMouseScroll":t}function a(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var a=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===i&&n.clear(),a){var o=a.type;e.gestureEvent=o,t.handler.dispatchToElement({target:a.target},o,a.event)}}function o(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function r(t){var e=t.pointerType;return"pen"===e||"touch"===e}function s(t){function e(t,e){return function(){return e._touching?void 0:t.apply(e,arguments)}}p.each(x,function(e){t._handlers[e]=p.bind(w[e],t)}),p.each(b,function(e){t._handlers[e]=p.bind(w[e],t)}),p.each(y,function(i){t._handlers[i]=e(w[i],t)})}function l(t){function e(e,i){p.each(e,function(e){c(t,n(e),i._handlers[e])},i)}f.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new m,this._handlers={},s(this),g.pointerEventsSupported?e(b,this):(g.touchEventsSupported&&e(x,this),e(y,this))}var u=i(35),c=u.addEventListener,h=u.removeEventListener,d=u.normalizeEvent,p=i(1),f=i(49),g=i(16),m=i(491),v=300,y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x=["touchstart","touchend","touchmove"],_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},b=p.map(y,function(t){var e=t.replace("mouse","pointer");return _[e]?e:t}),w={mousemove:function(t){t=d(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=d(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=d(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,a(this,t,"start"),w.mousemove.call(this,t),w.mousedown.call(this,t),o(this)},touchmove:function(t){t=d(this.dom,t),t.zrByTouch=!0,a(this,t,"change"),w.mousemove.call(this,t),o(this)},touchend:function(t){t=d(this.dom,t),t.zrByTouch=!0,a(this,t,"end"),w.mouseup.call(this,t),+new Date-this._lastTouchMoment=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var a=0;ax;x++)o(p,p,t[x]),r(f,f,t[x]);o(p,p,n[0]),r(f,f,n[1])}for(var x=0,_=t.length;_>x;x++){var b=t[x];if(i)a=t[x?x-1:_-1],d=t[(x+1)%_];else{if(0===x||x===_-1){g.push(c(t[x]));continue}a=t[x-1],d=t[x+1]}h(m,d,a),s(m,m,e);var w=l(b,a),S=l(b,d),M=w+S;0!==M&&(w/=M,S/=M),s(v,m,-w),s(y,m,S);var A=u([],b,v),T=u([],b,y);n&&(r(A,A,p),o(A,A,f),r(T,T,p),o(T,T,f)),g.push(A),g.push(T)}return i&&g.push(g.shift()),g}var a=i(5),o=a.min,r=a.max,s=a.scale,l=a.distance,u=a.add,c=a.clone,h=a.sub;t.exports=n},function(t,e,i){function n(t,e,i,n,a,o,r){var s=.5*(i-t),l=.5*(n-e);return(2*(e-i)+s+l)*r+(-3*(e-i)-2*s-l)*o+s*a+e}function a(t,e){for(var i=t.length,a=[],o=0,s=1;i>s;s++)o+=r(t[s-1],t[s]); var l=o/2;l=i>l?i:l;for(var s=0;l>s;s++){var u,c,h,d=s/(l-1)*(e?i:i-1),p=Math.floor(d),f=d-p,g=t[p%i];e?(u=t[(p-1+i)%i],c=t[(p+1)%i],h=t[(p+2)%i]):(u=t[0===p?p:p-1],c=t[p>i-2?i-1:p+1],h=t[p>i-3?i-1:p+2]);var m=f*f,v=f*m;a.push([n(u[0],g[0],c[0],h[0],f,m,v),n(u[1],g[1],c[1],h[1],f,m,v)])}return a}var o=i(5),r=o.distance;t.exports=a},function(t,e,i){var n=i(6),a=n.extend({type:"droplet",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width,o=e.height;t.moveTo(i,n+a),t.bezierCurveTo(i+a,n+a,i+3*a/2,n-a/3,i,n-o),t.bezierCurveTo(i-3*a/2,n-a/3,i-a,n+a,i,n+a),t.closePath()}});t.exports=a},function(t,e,i){var n=i(6),a=n.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(t,e){var i=.5522848,n=e.cx,a=e.cy,o=e.rx,r=e.ry,s=o*i,l=r*i;t.moveTo(n-o,a),t.bezierCurveTo(n-o,a-l,n-s,a-r,n,a-r),t.bezierCurveTo(n+s,a-r,n+o,a-l,n+o,a),t.bezierCurveTo(n+o,a+l,n+s,a+r,n,a+r),t.bezierCurveTo(n-s,a+r,n-o,a+l,n-o,a),t.closePath()}});t.exports=a},function(t,e,i){var n=i(6),a=n.extend({type:"heart",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width,o=e.height;t.moveTo(i,n),t.bezierCurveTo(i+a/2,n-2*o/3,i+2*a,n+o/3,i,n+o),t.bezierCurveTo(i-2*a,n+o/3,i-a/2,n-2*o/3,i,n)}});t.exports=a},function(t,e,i){var n=i(6),a=Math.PI,o=Math.sin,r=Math.cos,s=n.extend({type:"isogon",shape:{x:0,y:0,r:0,n:0},buildPath:function(t,e){var i=e.n;if(i&&!(2>i)){var n=e.x,s=e.y,l=e.r,u=2*a/i,c=-a/2;t.moveTo(n+l*r(c),s+l*o(c));for(var h=0,d=i-1;d>h;h++)c+=u,t.lineTo(n+l*r(c),s+l*o(c));t.closePath()}}});t.exports=s},function(t,e,i){var n=i(6),a=Math.sin,o=Math.cos,r=Math.PI/180,s=n.extend({type:"rose",shape:{cx:0,cy:0,r:[],k:0,n:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i,n,s,l=e.r,u=e.k,c=e.n,h=e.cx,d=e.cy;t.moveTo(h,d);for(var p=0,f=l.length;f>p;p++){s=l[p];for(var g=0;360*c>=g;g++)i=s*a(u/c*g%360*r)*o(g*r)+h,n=s*a(u/c*g%360*r)*a(g*r)+d,t.lineTo(i,n)}}});t.exports=s},function(t,e,i){var n=i(6),a=Math.PI,o=Math.cos,r=Math.sin,s=n.extend({type:"star",shape:{cx:0,cy:0,n:3,r0:null,r:0},buildPath:function(t,e){var i=e.n;if(i&&!(2>i)){var n=e.cx,s=e.cy,l=e.r,u=e.r0;null==u&&(u=i>4?l*o(2*a/i)/o(a/i):l/3);var c=a/i,h=-a/2,d=n+l*o(h),p=s+l*r(h);h+=c,t.moveTo(d,p);for(var f,g=0,m=2*i-1;m>g;g++)f=g%2===0?u:l,t.lineTo(n+f*o(h),s+f*r(h)),h+=c;t.closePath()}}});t.exports=s},function(t,e,i){var n=i(6),a=Math.cos,o=Math.sin,r=n.extend({type:"trochoid",shape:{cx:0,cy:0,r:0,r0:0,d:0,location:"out"},style:{stroke:"#000",fill:null},buildPath:function(t,e){var i,n,r,s,l=e.r,u=e.r0,c=e.d,h=e.cx,d=e.cy,p="out"==e.location?1:-1;if(!(e.location&&u>=l)){var f,g=0,m=1;i=(l+p*u)*a(0)-p*c*a(0)+h,n=(l+p*u)*o(0)-c*o(0)+d,t.moveTo(i,n);do g++;while(u*g%(l+p*u)!==0);do f=Math.PI/180*m,r=(l+p*u)*a(f)-p*c*a((l/u+p)*f)+h,s=(l+p*u)*o(f)-c*o((l/u+p)*f)+d,t.lineTo(r,s),m++;while(u*g/(l+p*u)*360>=m)}}});t.exports=r},function(t,e,i){var n=i(205),a=i(80),o=i(1),r=o.isString,s=o.isFunction,l=o.isObject,u=o.isArrayLike,c=o.indexOf,h=function(){this.animators=[]};h.prototype={constructor:h,animate:function(t,e){var i,o=!1,r=this,s=this.__zr;if(t){var l=t.split("."),u=r;o="shape"===l[0];for(var h=0,d=l.length;d>h;h++)u&&(u=u[l[h]]);u&&(i=u)}else i=r;if(!i)return void a('Property "'+t+'" is not existed in element '+r.id);var p=r.animators,f=new n(i,e);return f.during(function(t){r.dirty(o)}).done(function(){p.splice(c(p,f),1)}),p.push(f),s&&s.animation.addAnimator(f),f},stopAnimation:function(t){for(var e=this.animators,i=e.length,n=0;i>n;n++)e[n].stop(t);return e.length=0,this},animateTo:function(t,e,i,n,a,o){function l(){c--,c||a&&a()}r(i)?(a=n,n=i,i=0):s(n)?(a=n,n="linear",i=0):s(i)?(a=i,i=0):s(e)?(a=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,i);var u=this.animators.slice(),c=u.length;c||a&&a();for(var h=0;h0&&this.animate(t,!1).when(null==n?500:n,o).delay(a||0),this}};var d=h;t.exports=d},function(t,e){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function n(t,e){return{target:t,topTarget:e&&e.topTarget}}i.prototype={constructor:i,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(n(e,t),"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,a=t.offsetY,o=i-this._x,r=a-this._y;this._x=i,this._y=a,e.drift(o,r,t),this.dispatchToElement(n(e,t),"drag",t.event);var s=this.findHover(i,a,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.dispatchToElement(n(l,t),"dragleave",t.event),s&&s!==l&&this.dispatchToElement(n(s,t),"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(n(e,t),"dragend",t.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null}};var a=i;t.exports=a},function(t,e,i){function n(t){return parseInt(t,10)}function a(t){return t instanceof v?M:t instanceof y?A:t instanceof x?T:M}function o(t,e){return e&&t&&e.parentNode!==t}function r(t,e,i){if(o(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function s(t,e){if(o(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function l(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function u(t){return t.__textSvgEl}function c(t){return t.__svgEl}function h(t){return function(){m('In SVG mode painter not support method "'+t+'"')}}var d=i(146),p=d.createElement,f=i(1),g=f.each,m=i(80),v=i(6),y=i(57),x=i(58),_=i(492),b=i(509),w=i(508),S=i(147),M=S.path,A=S.image,T=S.text,I=function(t,e,i){this.root=t,this.storage=e,this._opts=i=f.extend({},i||{});var n=p("svg");n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("version","1.1"),n.setAttribute("baseProfile","full"),n.style["user-select"]="none",n.style.cssText="position:absolute;left:0;top:0;",this.gradientManager=new b(n),this.clipPathManager=new w(n);var a=document.createElement("div");a.style.cssText="overflow:hidden;position:relative",this._svgRoot=n,this._viewport=a,t.appendChild(a),a.appendChild(n),this.resize(i.width,i.height),this._visibleList=[]};I.prototype={constructor:I,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused();var e,i=this._svgRoot,n=this._visibleList,o=t.length,h=[];for(e=0;o>e;e++){var d=t[e],p=a(d);d.invisible||(d.__dirty&&(p&&p.brush(d),this.clipPathManager.update(d),d.style&&(this.gradientManager.update(d.style.fill),this.gradientManager.update(d.style.stroke)),d.__dirty=!1),h.push(d))}var f,g=_(n,h);for(e=0;e=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return i[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t&&this._height!==e){this._width=t,this._height=e;var a=i.style;a.width=t+"px",a.height=e+"px";var o=this._svgRoot;o.setAttribute("width",t),o.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],a=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var s=this.root,l=document.defaultView.getComputedStyle(s);return(s[a]||n(l[i])||n(s.style[i]))-(n(l[o])||0)-(n(l[r])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToSvg:function(){this.refresh();var t=this._svgRoot.outerHTML;return"data:img/svg+xml;utf-8,"+unescape(t)}},g(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(t){I.prototype[t]=h(t)});var L=I;t.exports=L},function(t,e,i){function n(t){a.call(this,t,"clipPath","__clippath_in_use__")}var a=i(229),o=i(1),r=i(21);o.inherits(n,a),n.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1);var i=this.getTextSvgElement(t);i&&this.updateDom(i,t.__clipPaths,!0),this.markUsed(t)},n.prototype.updateDom=function(t,e,i){if(e&&e.length>0){var n,a,o=this.getDefs(!0),s=e[0],l=i?"_textDom":"_dom";s[l]?(a=s[l].getAttribute("id"),n=s[l],o.contains(n)||o.appendChild(n)):(a="zr-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",a),o.appendChild(n),s[l]=n);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var c=Array.prototype.slice.call(s.transform);r.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=c}else u.brush(s);var h=this.getSvgElement(s);n.appendChild(h.cloneNode()),t.setAttribute("clip-path","url(#"+a+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},n.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&o.each(t.__clipPaths,function(t){t._dom&&a.prototype.markUsed.call(e,t._dom),t._textDom&&a.prototype.markUsed.call(e,t._textDom)})};var s=n;t.exports=s},function(t,e,i){function n(t){a.call(this,t,["linearGradient","radialGradient"],"__gradient_in_use__")}var a=i(229),o=i(1),r=i(80);o.inherits(n,a),n.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;o.each(["fill","stroke"],function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var a,o=e.style[n],r=i.getDefs(!0);o._dom?(a=o._dom,r.contains(o._dom)||i.addDom(a)):a=i.add(o),i.markUsed(e);var s=a.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}})}},n.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return r("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},n.prototype.update=function(t){var e=this;a.prototype.update.call(this,t,function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))})},n.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void r("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,a=i.length;a>n;++n){var o=this.createElement("stop");o.setAttribute("offset",100*i[n].offset+"%"),o.setAttribute("stop-color",i[n].color),e.appendChild(o)}t._dom=e},n.prototype.markUsed=function(t){if(t.style){var e=t.style.fill;e&&e._dom&&a.prototype.markUsed.call(this,e._dom),e=t.style.stroke,e&&e._dom&&a.prototype.markUsed.call(this,e._dom)}};var s=n;t.exports=s},function(t,e,i){i(147);var n=i(148),a=n.registerPainter,o=i(507);a("svg",o)},function(t,e,i){function n(t,e){var i,n,a,o,h,d,p=t.data,f=s.M,g=s.C,m=s.L,v=s.R,y=s.A,x=s.Q;for(a=0,o=0;ah;h++){var d=l[h];d[0]=p[a++],d[1]=p[a++],r(d,d,e),p[o++]=d[0],p[o++]=d[1]}}}var a=i(56),o=i(5),r=o.applyTransform,s=a.CMD,l=[[],[],[]],u=Math.sqrt,c=Math.atan2;t.exports=n},function(t,e,i){function n(t){return parseInt(t,10)}function a(t,e){s.initVML(),this.root=t,this.storage=e;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",t.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var a=e.delFromStorage,o=e.addToStorage;e.delFromStorage=function(t){a.call(e,t),t&&t.onRemove&&t.onRemove(n)},e.addToStorage=function(t){t.onAdd&&t.onAdd(n),o.call(e,t)},this._firstPaint=!0}function o(t){return function(){r('In IE8.0 VML mode painter not support method "'+t+'"')}}var r=i(80),s=i(231),l=i(1),u=l.each;a.prototype={constructor:a,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var t=this.getViewportRoot();return t?{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}:void 0},refresh:function(){var t=this.storage.getDisplayList(!0,!0);this._paintList(t)},_paintList:function(t){for(var e=this._vmlRoot,i=0;i=0?parseFloat(t)/100*e:parseFloat(t):t},F=function(t,e,i){var n=s.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=E(n[0],n[1],n[2]),t.opacity=i*n[3])},V=function(t){var e=s.parse(t);return[E(e[0],e[1],e[2]),e[3]]},B=function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof m){var a,r=0,s=[0,0],l=0,u=1,c=i.getBoundingRect(),h=c.width,d=c.height;if("linear"===n.type){a="gradient";var p=i.transform,f=[n.x*h,n.y*d],g=[n.x2*h,n.y2*d];p&&(o(f,f,p),o(g,g,p));var v=g[0]-f[0],y=g[1]-f[1];r=180*Math.atan2(v,y)/Math.PI,0>r&&(r+=360),1e-6>r&&(r=0)}else{a="gradientradial";var f=[n.x*h,n.y*d],p=i.transform,x=i.scale,_=h,b=d;s=[(f[0]-c.x)/_,(f[1]-c.y)/b],p&&o(f,f,p),_/=x[0]*I,b/=x[1]*I;var w=M(_,b);l=0/w,u=2*n.r/w-l}var S=n.colorStops.slice();S.sort(function(t,e){return t.offset-e.offset});for(var A=S.length,T=[],L=[],C=0;A>C;C++){var D=S[C],P=V(D.color);L.push(D.offset*u+l+" "+P[0]),0!==C&&C!==A-1||T.push(P)}if(A>=2){var k=T[0][0],E=T[1][0],O=T[0][1]*e.opacity,z=T[1][1]*e.opacity;t.type=a,t.method="none",t.focus="100%",t.angle=r,t.color=k,t.color2=E,t.colors=L.join(","),t.opacity=z,t.opacity2=O}"radial"===a&&(t.focusposition=s.join(","))}else F(t,n,e.opacity)},j=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof m||F(t,e.stroke,e.opacity)},G=function(t,e,i,n){var a="fill"==e,o=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(a||!a&&i.lineWidth)?(t[a?"filled":"stroked"]="true",i[e]instanceof m&&z(t,o),o||(o=v.createNode(e)),a?B(o,i,n):j(o,i),O(t,o)):(t[a?"filled":"stroked"]="false",z(t,o))},W=[[],[],[]],H=function(t,e){var i,n,a,r,s,l,u=y.M,c=y.C,h=y.L,d=y.A,p=y.Q,f=[],g=t.data,m=t.len();for(r=0;m>r;){switch(a=g[r++],n="",i=0,a){case u:n=" m ",i=1,s=g[r++],l=g[r++],W[0][0]=s,W[0][1]=l;break;case h:n=" l ",i=1,s=g[r++],l=g[r++],W[0][0]=s,W[0][1]=l;break;case p:case c:n=" c ",i=3;var v,b,M=g[r++],T=g[r++],C=g[r++],D=g[r++];a===p?(v=C,b=D,C=(C+2*M)/3,D=(D+2*T)/3,M=(s+2*M)/3,T=(l+2*T)/3):(v=g[r++],b=g[r++]),W[0][0]=M,W[0][1]=T,W[1][0]=C,W[1][1]=D,W[2][0]=v,W[2][1]=b,s=v,l=b;break;case d:var P=0,k=0,E=1,O=1,z=0;e&&(P=e[4],k=e[5],E=_(e[0]*e[0]+e[1]*e[1]),O=_(e[2]*e[2]+e[3]*e[3]),z=Math.atan2(-e[1]/O,e[0]/E));var N=g[r++],R=g[r++],F=g[r++],V=g[r++],B=g[r++]+z,j=g[r++]+B+z;r++;var G=g[r++],H=N+w(B)*F,$=R+S(B)*V,M=N+w(j)*F,T=R+S(j)*V,q=G?" wa ":" at ";Math.abs(H-M)<1e-4&&(Math.abs(j-B)>.01?G&&(H+=270/I):Math.abs($-R)<1e-4?G&&N>H||!G&&H>N?T-=270/I:T+=270/I:G&&R>$||!G&&$>R?M+=270/I:M-=270/I),f.push(q,x(((N-F)*E+P)*I-L),A,x(((R-V)*O+k)*I-L),A,x(((N+F)*E+P)*I-L),A,x(((R+V)*O+k)*I-L),A,x((H*E+P)*I-L),A,x(($*O+k)*I-L),A,x((M*E+P)*I-L),A,x((T*O+k)*I-L)),s=M,l=T;break;case y.R:var U=W[0],Z=W[1];U[0]=g[r++],U[1]=g[r++],Z[0]=U[0]+g[r++],Z[1]=U[1]+g[r++],e&&(o(U,U,e),o(Z,Z,e)),U[0]=x(U[0]*I-L),Z[0]=x(Z[0]*I-L),U[1]=x(U[1]*I-L),Z[1]=x(Z[1]*I-L),f.push(" m ",U[0],A,U[1]," l ",Z[0],A,U[1]," l ",Z[0],A,Z[1]," l ",U[0],A,Z[1]);break;case y.Z:f.push(" x ")}if(i>0){f.push(n);for(var Y=0;i>Y;Y++){var X=W[Y];e&&o(X,X,e),f.push(x(X[0]*I-L),A,x(X[1]*I-L),i-1>Y?A:"")}}}return f.join("")};f.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=v.createNode("shape"),P(i),this._vmlEl=i),G(i,"fill",e,this),G(i,"stroke",e,this);var n=this.transform,a=null!=n,o=i.getElementsByTagName("stroke")[0];if(o){var r=e.lineWidth;if(a&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];r*=_(b(s))}o.weight=r+"px"}var l=this.path||(this.path=new g);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=H(l,this.transform),i.style.zIndex=N(this.zlevel,this.z,this.z2),O(t,i),null!=e.text?this.drawRectText(t,this.getBoundingRect()):this.removeRectText(t)},f.prototype.onRemove=function(t){z(t,this._vmlEl),this.removeRectText(t)},f.prototype.onAdd=function(t){O(t,this._vmlEl),this.appendRectText(t)};var $=function(t){return"object"==typeof t&&t.tagName&&"IMG"===t.tagName.toUpperCase()};d.prototype.brushVML=function(t){var e,i,n=this.style,a=n.image;if($(a)){var r=a.src;if(r===this._imageSrc)e=this._imageWidth,i=this._imageHeight;else{var s=a.runtimeStyle,l=s.width,u=s.height;s.width="auto",s.height="auto",e=a.width,i=a.height,s.width=l,s.height=u,this._imageSrc=r,this._imageWidth=e,this._imageHeight=i}a=r}else a===this._imageSrc&&(e=this._imageWidth,i=this._imageHeight);if(a){var c=n.x||0,h=n.y||0,d=n.width,p=n.height,f=n.sWidth,g=n.sHeight,m=n.sx||0,y=n.sy||0,b=f&&g,w=this._vmlEl;w||(w=v.doc.createElement("div"),P(w),this._vmlEl=w);var S,I=w.style,L=!1,C=1,D=1;if(this.transform&&(S=this.transform,C=_(S[0]*S[0]+S[1]*S[1]),D=_(S[2]*S[2]+S[3]*S[3]),L=S[1]||S[2]),L){var k=[c,h],E=[c+d,h],z=[c,h+p],R=[c+d,h+p];o(k,k,S),o(E,E,S),o(z,z,S),o(R,R,S);var F=M(k[0],E[0],z[0],R[0]),V=M(k[1],E[1],z[1],R[1]),B=[];B.push("M11=",S[0]/C,A,"M12=",S[2]/D,A,"M21=",S[1]/C,A,"M22=",S[3]/D,A,"Dx=",x(c*C+S[4]),A,"Dy=",x(h*D+S[5])),I.padding="0 "+x(F)+"px "+x(V)+"px 0",I.filter=T+".Matrix("+B.join("")+", SizingMethod=clip)"}else S&&(c=c*C+S[4],h=h*D+S[5]),I.filter="",I.left=x(c)+"px",I.top=x(h)+"px";var j=this._imageEl,G=this._cropEl;j||(j=v.doc.createElement("div"),this._imageEl=j);var W=j.style;if(b){if(e&&i)W.width=x(C*e*d/f)+"px",W.height=x(D*i*p/g)+"px";else{var H=new Image,q=this;H.onload=function(){H.onload=null,e=H.width,i=H.height,W.width=x(C*e*d/f)+"px",W.height=x(D*i*p/g)+"px",q._imageWidth=e,q._imageHeight=i,q._imageSrc=a},H.src=a}G||(G=v.doc.createElement("div"),G.style.overflow="hidden",this._cropEl=G);var U=G.style;U.width=x((d+m*d/f)*C),U.height=x((p+y*p/g)*D),U.filter=T+".Matrix(Dx="+-m*d/f*C+",Dy="+-y*p/g*D+")",G.parentNode||w.appendChild(G),j.parentNode!=G&&G.appendChild(j)}else W.width=x(C*d)+"px",W.height=x(D*p)+"px",w.appendChild(j),G&&G.parentNode&&(w.removeChild(G),this._cropEl=null);var Z="",Y=n.opacity;1>Y&&(Z+=".Alpha(opacity="+x(100*Y)+") "),Z+=T+".AlphaImageLoader(src="+a+", SizingMethod=scale)",W.filter=Z,w.style.zIndex=N(this.zlevel,this.z,this.z2),O(t,w),null!=n.text&&this.drawRectText(t,this.getBoundingRect())}},d.prototype.onRemove=function(t){z(t,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(t)},d.prototype.onAdd=function(t){O(t,this._vmlEl),this.appendRectText(t)};var q,U="normal",Z={},Y=0,X=100,K=document.createElement("div"),J=function(t){var e=Z[t];if(!e){Y>X&&(Y=0,Z={});var i,n=K.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(a){}e={style:n.fontStyle||U,variant:n.fontVariant||U,weight:n.fontWeight||U,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},Z[t]=e,Y++}return e};l.$override("measureText",function(t,e){var i=v.doc;q||(q=i.createElement("div"),q.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(q));try{q.style.font=e}catch(n){}return q.innerHTML="",q.appendChild(i.createTextNode(t)),{width:q.offsetWidth}});for(var Q=new r,tt=function(t,e,i,n){var a=this.style;this.__dirty&&u.normalizeTextStyle(a,!0);var r=a.text;if(null!=r&&(r+=""),r){if(a.rich){var s=l.parseRichText(r,a);r=[];for(var c=0;c=i?function(t,e){return t.toFixed(3)}:1>=i?function(t,e){return t.toFixed(2)}:i>100?function(t,e){return t.toFixed(0)}:function(t,e){return t.toFixed(1)}}function n(t){return null==t||void 0==t||0>t?(t=1,function(e,i){return e.toFixed(t)}):function(e,i){return e.toFixed(t)}}Object.defineProperty(e,"__esModule",{value:!0}),e.YPrecision=i,e.YPrecisionCustom=n},function(t,e,i){t.exports={"default":i(516),__esModule:!0}},function(t,e,i){var n=i(18);t.exports=function(t,e,i){return n.setDesc(t,e,i)}},function(t,e){"use strict";function i(t){for(var e in t)return!1;return!0}function n(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}Object.defineProperty(e,"__esModule",{value:!0}),e.IsEmpty=i,e.IsOwnEmpty=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var a=i(240),o=n(a),r=i(44),s=i(27),l=i(11),u=i(69),c=i(82),h=i(50);i(28);var d=i(24),p=i(22),f=i(39),g=i(14);e["default"]={vuex:{getters:{rootUrl:function(t){return t.rootUrl},uid:function(t){return t.user.id_token},search_date:function(t){return t.search_date}},actions:{SetSearchDate:p.SetSearchDate}},props:{equipModel:{Object:Object,required:!0}},data:function(){return{pjid:(0,l.getUrlParam)("pjid"),display_tag:{},tag_id:0,tag_unit:"",tag_ext_id:"",tag_acc:2,data_list:[],equip_chart:{},latest_time:"",select_data_format:1,equipInfo:{}}},computed:{widgetStyle:{get:function(){var t;return g((t={device:1,warn:2==this.equipModel.ls},(0,o["default"])(t,"warn",3==this.equipModel.ls),(0,o["default"])(t,"danger",4==this.equipModel.ls),t))}},batteryStyle:{get:function(){return{battery:1,"battery-1":this.equipModel.p<20,"battery-2":this.equipModel.p>=20&&this.equipModel.p<40,"battery-3":this.equipModel.p>=40&&this.equipModel.p<60,"battery-4":this.equipModel.p>=60&&this.equipModel.p<80,"battery-5":this.equipModel.p>=80,"battery-low":this.equipModel.p<60}}},timeSpan:{get:function(){return(0,s.FormatDateSpan)(this.equipModel.ts)}}},methods:{getEType:function(){var t=this,e=t.equipModel.et;return 1==e||8==e?1:2==e||7==e?2:4==e?4:3==e||6==e||9==e?3:void 0},getEquipTypeName:function(t){return(0,r.GetEquipTypeName)(t)},loadEquipData:function(){var t=this;t.tag_id<=0||($("#equipWidget_"+t.equipModel.eid).hideLoading(),$("#equipWidget_"+t.equipModel.eid).showLoading(),$.ajax({url:t.rootUrl+"assessequipdata",type:"get",cache:!1,data:{pid:t.equipModel.pid,c:t.tag_id,a:t.tag_acc,searchDate:t.search_date.st},success:function(e){if(void 0==e)return void $("#equipWidget_"+t.equipModel.eid).hideLoading();e=JSON.parse(e);var i=e;t.formatData(i),$("#equipWidget_"+t.equipModel.eid).hideLoading()},error:function(e){$("#equipWidget_"+t.equipModel.eid).hideLoading()}}))},onDisplayFormatChange:function(t,e){var i=this,n=$("#ddlDisplayFormat_"+i.equipModel.eid).val();i.equipModel.data_tag.forEach(function(t){t.ext.forEach(function(t){n==t.ext_id&&(i.display_tag=t,i.tag_id=t.tag_id,i.tag_unit=t.tag_unit,i.tag_ext_id=t.ext_id)})}),i.loadEquipData()},formatData:function(t){if(void 0!=t){var e=this,i=[],n=[],a=999,o=0;$.each(t,function(t,r){i.push(r.st);var s=r.c;10==e.tag_id&&(s=(0,c.ConvertLevelUnit)(e.equipInfo.info.node_depth,e.equipInfo.info.bottom_height,e.equipInfo.info.diameter/1e3,e.equipInfo.info.link_offset,e.display_tag.formula,e.display_tag.accuracy,s)),7==e.tag_id&&(s=(0,c.ConvertFlowUnit)(e.display_tag.formula,e.display_tag.accuracy,s)),s=parseFloat(s),n.push(s.toFixed(e.tag_acc)),a>s&&(a=s),s>o&&(o=s)}),e.data_list=t;var r=(0,u.getSingleOption)("",e.display_tag.name+"("+e.display_tag.unit+")",[],[],0,0);r.legend={},r.dataZoom=[],r.toolbox={},(0,u.setOption)(e.equip_chart,r),(0,u.setSingleOption)(e.equip_chart,i,n,a,o,e.display_tag.name+"("+e.display_tag.unit+")")}},loadEquipInfo:function(){var t=this;$.ajax({url:t.rootUrl+"equipinfo",type:"get",cache:!1,data:{eid:t.equipModel.eid},success:function(e){e=JSON.parse(e),t.equipInfo=e,t.equipInfo.data_tag.length>0&&(0==t.equipInfo.data_tag[0].ext?(t.display_tag=t.equipInfo.data_tag[0],t.tag_id=t.display_tag.id,t.tag_acc=t.display_tag.accuracy):(t.display_tag=t.equipInfo.data_tag[0].ext[t.equipInfo.data_tag[0].select_ext],t.tag_id=t.display_tag.tag_id,t.tag_acc=t.display_tag.accuracy)),setTimeout(t.loadEquipData(),function(){return Math.floor(500*Math.random())+0})},error:function(t){}})},removeFavorite:function(){var t=this;$.prompt("您确定取消关注监测点:"+t.equipInfo.n+"?",{title:"确认提醒!",buttons:{"确定":!0,"取消":!1},submit:function(e,i,n,a){if(1==i){var o=0-t.equipModel.fa;$.ajax({url:t.rootUrl+"pfavorite",data:{pjid:t.pjid,pid:t.equipModel.pid,ch:-1,_xsrf:(0,h.getXsrf)()},cache:!1,type:"post",success:function(e){return 0==e?void(0,d.alertText)("登陆超时,请重新登陆后操作"):1==e?(t.$dispatch("removeFavorite",t.equipModel),(0,d.alertText)("取消成功!"),t.equipModel.fa=-1,t.$dispatch("onRefreshFavourite",null),void t.$broadcast("onRefreshFavourite",null)):-1==e?((0,d.alertText)("操作失败"),t.$dispatch("onRefreshFavourite",null),this.$broadcast("onRefreshFavourite",null),void(t.equipModel.fa=o)):void 0},error:function(t){(0,d.alertText)("出错啦,错误信息:"+t)}})}}})}},ready:function(){var t=this;t.$on("onTimeChanged_Index",function(t){}),$("#ddlDisplayFormat_"+t.equipModel.eid).dropDownList(),$("#ddlDisplayFormat_"+t.equipModel.eid).change(t.onDisplayFormatChange),t.loadEquipInfo()},attached:function(){var t=document.getElementById("dv_equip_chart_"+this.equipModel.eid);this.equip_chart=f.init(t);var e={};e=(0,u.getSingleOption)("",this.display_tag.name,[],[],0,0),e.legend={},e.dataZoom=[],e.toolbox={},(0,u.setOption)(this.equip_chart,e)}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var a=i(27),o=(i(11),i(44),i(69)),r=i(19),s=n(r),l=(i(14),i(39));e["default"]={store:s["default"],vuex:{getters:{rootUrl:function(t){return t.rootUrl}}},props:{pjid:{Number:Number,required:!0}},data:function(){return{searchDate:(0,a.FormatDate)(new Date,"yyyy-MM-dd"),rain_chart:{},rain_option:{},rain_range:8,rain_eid:9,rain_list:[],rain_pid:0,rain_et:9,total_rain:0,span_list:[{ value:8,title:"8小时",style:"selected"},{value:24,title:"24小时",style:""},{value:48,title:"48小时",style:""}]}},methods:{changeRainSpan:function(t){var e=this;this.span_list.forEach(function(i){i.value==t?(i.style="selected",e.rain_range=i.value):i.style=""}),this.refreshRain()},loadRainList:function(){var t=this,e={};$.ajax({url:t.rootUrl+"projectrainequip",methods:"get",data:{pjid:t.pjid},success:function(i){i=JSON.parse(i),t.rain_list=i,t.rain_list.length>0&&(t.rain_list.forEach(function(i){3==i.et&&(t.rain_pid=i.pid,t.rain_et=i.et,e=i.pid)}),0==t.rain_pid&&(t.rain_pid=t.rain_list[0].pid,t.rain_et=t.rain_list[0].et,e=t.rain_list[0].pid),setTimeout(function(){$("#ddlRain").dropDownList(),$("#ddlRain").get(0).value=t.rain_pid,$("#ddlRain").change(t.rainChange),$("#ddlRain").val(t.rain_pid).click()},100))},error:function(t){}})},rainChange:function(){var t=this,e=$("#ddlRain").val();void 0!=e&&(t.rain_pid=e,t.refreshRain())},refreshRain:function(){var t=this;t.total_rain=0,$.ajax({url:t.rootUrl+"assessraindata",methods:"get",data:{pjid:t.pjid,sp:t.rain_range,pid:t.rain_pid,searchDate:t.searchDate},success:function(e){e=JSON.parse(e);var i=[],n=[],a=0;e.length>0&&e.forEach(function(e){var o=e.tm.substr(5,11);n.push(o);var r=0;void 0!=e.r&&null!=e.r&&(r=parseFloat(e.r).toFixed(2)),i.push(r),t.total_rain+=e.r,a0){var a=[],r=[],s=[];t.day_weather.forEach(function(t){a.push(t.date),r.push(t.pop),s.push(t.tmp_max)}),(0,o.setWeatherOption)(t.equip_chart,a,r,s)}}},error:function(t){}})}},ready:function(){var t=this;t.loadProjectInfo(),t.$on("onTimeChanged_Index",function(e){t.searchDate=e});var e=document.getElementById("equip_chart");this.equip_chart=l.init(e);var i={};i=(0,o.getWeatherOption)([],[],[]),i.legend={},i.dataZoom=[],i.toolbox={},(0,o.setOption)(this.equip_chart,i)}}},,,function(t,e){},function(t,e){},,function(t,e){},function(t,e){t.exports='
电池: {{equipModel.p}}% {{getEquipTypeName(equipModel.et)}} {{equipModel.eid}} ({{timeSpan}})
类别:
'},function(t,e){t.exports='
{{today}}日(今天) {{now_weather.tmp}}℃
'},,function(t,e){t.exports='
累计降雨量{{total_rain}}mm,   雨量计: 
'},function(t,e,i){var n,a;i(644),n=i(639),a=i(648),t.exports=n||{},t.exports.__esModule&&(t.exports=t.exports["default"]),a&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=a)},function(t,e,i){var n,a;i(647),n=i(640),a=i(651),t.exports=n||{},t.exports.__esModule&&(t.exports=t.exports["default"]),a&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=a)},function(t,e,i){var n,a;i(645),n=i(641),a=i(649),t.exports=n||{},t.exports.__esModule&&(t.exports=t.exports["default"]),a&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=a)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),i(61),i(101),i(102);var a=i(155),o=n(a),r=i(237),s=n(r),l=i(654),u=n(l),c=i(653),h=n(c),d=i(652),p=n(d),f=i(22),g=i(27),m=i(238),v=(i(81),i(69),i(11)),y=i(44),x=i(30),_=i(517),b=i(50);i(28);var w=i(24),S=i(19),M=n(S);i(14);e["default"]={store:M["default"],vuex:{getters:{rootUrl:function(t){return t.rootUrl},uid:function(t){return t.user.id_token},search_date:function(t){return t.search_date}},actions:{SetSearchDate:f.SetSearchDate}},ready:function(){var t=this;$(".list-toggle").click(function(){"none"==$(".section1").css("display")?($(".section1").css("display","block"),$("#showtitle").html("收缩")):($(".section1").css("display","none"),$("#showtitle").html("展开"))}),jeDate({dateCell:"#datetime",skinCell:"jedateblue",format:"YYYY-MM-DD",isinitVal:!0,isClear:!1,isToday:!1,isTime:!1,minDate:"2015-01-01",okfun:function(e){var i=document.getElementById("datetime");t.searchDate=i.value,t.$broadcast("onTimeChanged_Index",document.getElementById("datetime").value),t.SetSearchDate({st:t.searchDate}),alert(document.getElementById("datetime").value),t.loadProjectGeneral(),t.loadProjectFavoriteEquips()},choosefun:function(e){var i=document.getElementById("datetime");t.searchDate=i.value,t.$broadcast("onTimeChanged_Index",document.getElementById("datetime").value),t.SetSearchDate({st:t.searchDate}),t.loadProjectGeneral(),t.loadProjectFavoriteEquips()},clearfun:function(t){},success:function(t){}}),null!=t.pjid&&""!=t.pjid||((0,w.alertText)("url错误:当前未选择项目,将跳转到项目列表页面..."),setTimeout(function(){window.location.href="project.html"},2e3)),t.listenEvent(),t.current_sort=t.SortTypeList[0],t.current_equip_type=t.EquipTypeList[0].code,t.EquipTypeList.forEach(function(e){t.current_equip_type+=e.code+","}),t.checkPageAuth();var e=(0,x.getClientPoint)(),i=document.getElementById("div_whole");i.style.height=e.h-50+"px"},data:function(){return{searchDate:new Date,hackReset:!0,pjid:(0,v.getUrlParam)("pjid"),la:(0,v.getUrlParam)("la"),va:(0,v.getUrlParam)("va"),key_id:"",proj_general:{},equip_list:[],EquipTypeList:(0,y.EquipType)(),current_equip_type:"",SortTypeList:(0,y.SortType)(),current_sort:{},alarm_type_level:1==this.la,alarm_type_volt:1==this.va,level_count:0,battery:0,flow_count:0,rain_count:0,ss_count:0,sort_type:1,isEmpty:!1,isLoading:!0,equip_list_div:document.createElement("div"),tbody:document.createElement("tbody"),openWindow:{},userAuth:[],un_equip_ls:[]}},methods:{showDataList2Filter:function(t){if(1==t){if(this.battery<=0)return;window.location.href="data.html?pjid="+(0,v.getUrlParam)("pjid")+"&filterType=1"}else{if(this.proj_general.tea<=0)return;window.location.href="data.html?pjid="+(0,v.getUrlParam)("pjid")+"&filterType=2"}},onchangeTime:function(){alert("aa")},initial:function(){var t=this;t.loadProjectGeneral(),t.loadProjectFavoriteEquips(),t.$on("onRefreshFavourite",function(){t.loadProjectFavoriteEquips()})},pageCheckResult:function(){var t=this;0==t.userAuth.length?$.prompt("很抱歉,您没有访问当前项目权限,请重新选择项目...",{title:"提醒",buttons:{"知道了":!0},submit:function(t,e,i,n){window.location.href="project.html"}}):(-1==t.userAuth[0].pvid&&$.prompt("很抱歉,您当前未登录,请重新登录...",{title:"提醒",buttons:{"知道了":!0},submit:function(t,e,i,n){window.location.href="login.html?next="+window.location.href}}),-65536!=t.userAuth[0].pvid&&-2!=t.userAuth[0].pvid||$.prompt("很抱歉,该项目不存在,请重新选择...",{title:"提醒",buttons:{"知道了":!0},submit:function(t,e,i,n){window.location.href="project.html"}}))},checkPageAuth:function(){var t=this;t.userAuth=[],$.ajax({url:t.rootUrl+"authproject",type:"get",cache:!1,data:{pjid:t.pjid},success:function(e){t.userAuth=JSON.parse(e),t.pageCheckResult(),t.initial()},error:function(t){}})},checkAuth:function(){item.asc=1==item.asc?2:1,item.asc_value=1==item.asc?1:-1,this.current_sort=item},sortPlaceList:function(t){t.asc=1==t.asc?2:1,t.asc_value=1==t.asc?-1:1,this.current_sort=t},setFilterEquip:function(){var t=this;t.current_equip_type="",t.EquipTypeList.forEach(function(e){1==e.c&&e.count>0&&(t.current_equip_type+=e.id+",")})},equipTypeFilter:function(t){return this.current_equip_type.search((0,y.GetTypeByCode)(t.et))>=0},alarmLevelFilter:function(t){return 1==this.alarm_type_level?t.ls>1:!0},alarmVoltFilter:function(t){return 1==this.alarm_type_volt?t.p<50:!0},loadProjectGeneral:function(){var t=this;t.proj_general=[],t.battery=0,$.ajax({url:t.rootUrl+"equiplist",type:"get",data:{pjid:t.pjid},success:function(e){var e=JSON.parse(e);$.each(e,function(e,i){i.p<10&&(t.battery+=1)})},error:function(t){}}),$.ajax({url:t.rootUrl+"assessgeneral",type:"get",cache:!1,data:{pjid:t.pjid,searchDate:t.searchDate},success:function(e){e=JSON.parse(e),t.proj_general=e},error:function(t){}})},loadProjectFavoriteEquips:function(){var t=this;t.hackReset=!1,t.equip_list=[],t.isLoading=!0,$.ajax({url:t.rootUrl+"assessfavoequip",type:"get",cache:!1,data:{pjid:t.pjid,searchDate:t.searchDate},success:function(e){return t.isLoading=!1,e=JSON.parse(e),0==e.length?void(t.isEmpty=!0):(e.forEach(function(e){0!=e.pid&&t.equip_list.push(e)}),t.statEquipCount(t.equip_list),t.equip_list.length<=0?t.isEmpty=!0:t.isEmpty=!1,void(t.hackReset=!0))},error:function(e){t.isLoading=!1}})},statEquipCount:function(t){var e=0,i=0,n=0,a=0,e=0,i=0,n=0,a=0,o=0,r=0,s=0;(0,_.IsEmpty)(t)||t.forEach(function(t){1!=t.et&&8!=t.et&&14!=t.et&&21!=t.et||(e+=1),2!=t.et&&7!=t.et&&10!=t.et&&13!=t.et||(i+=1),4!=t.et&&16!=t.et||(a+=1),3!=t.et&&6!=t.et&&9!=t.et&&15!=t.et||(n+=1),11!=t.et&&19!=t.et||(o+=1),12==t.et&&(r+=1),5!=t.et&&17!=t.et||(s+=1)}),this.EquipTypeList.forEach(function(t){1==t.id&&(t.count=e),2==t.id&&(t.count=i),3==t.id&&(t.count=n),4==t.id&&(t.count=a),11==t.id&&(t.count=o),12==t.id&&(t.count=r),5==t.id&&(t.count=s)})},listenEvent:function(){this.$on("removeFavorite",function(t){var e=this;if(null!=t&&void 0!=t){var i=-1;e.equip_list.forEach(function(e,i){e.pid==t.pid&&(i=i)}),-1!=i&&e.equip_list.splice(i,1)}})},showUnFavorite:function(){this.openWindow&&(null==document.getElementById("search_input")||document.getElementById("search_input").parentNode.removeChild(document.getElementById("search_input"))),this.initTable(),this.loadUnProjectFavoriteEquips()},loadUnProjectFavoriteEquips:function(){var t=this;t.un_equip_ls=[],$.ajax({url:t.rootUrl+"unassessfavoequip",type:"get",cache:!1,data:{pjid:t.pjid},success:function(e){e=JSON.parse(e),t.un_equip_ls=e,t.init_un_favorite_equips(t.un_equip_ls)},error:function(t){}})},initTable:function(){function t(){var t=[],i=document.getElementById("search_input").value;$.each(e.un_equip_ls,function(e,n){var a=n.eid.toString(),o="",r="";null==n.pname?(o="",r=""):(o=(0,m.ConvertPinyin)(n.pname.toString()),r=n.pname),(a.indexOf(i)>-1||r.indexOf(i)>-1||o.indexOf(i)>-1)&&t.push(n)}),e.init_un_favorite_equips(t)}var e=this,i=document.documentElement.clientHeight,n=document.documentElement.clientWidth,a=document.createElement("div");a.style.height="340px",a.style["overflow-y"]="scroll",a.className="f-side-list";var o=document.createElement("div");o.style.height="50px",o.style.width="100%",o.style.paddingLeft="10px",o.style.paddingTop="10px",o.style.paddingRight="10px",o.className="f-search";var r=document.createElement("input");r.id="search_input",r.style.top="10px",r.style.height="30px",r.style.width="100%",r.type="text",r.placeholder="输入设备编号、名称 筛选",r.onkeyup=t,o.appendChild(r),a.appendChild(o);var s=document.createElement("table");s.style.top="50px",s.style.height="50px",s.style.width="100%",s.className="m-table",a.appendChild(s);var l=document.createElement("thead");s.appendChild(l),e.tbody.id="tbUFEquip",s.appendChild(e.tbody);var u=document.createElement("tr"),c=document.createElement("td");c.colSpan=3,c.innerHTML="正在读取未关注监测点列表",u.appendChild(c),e.tbody.appendChild(u),e.equip_list_div=a,e.OpenedWindow=(0,x.openWindow)(a,"未关注监测点列表",480,380,n/2-240,i/2-190)},init_un_favorite_equips:function(t){var e=this;e.tbody.innerHTML="";var i=document.createElement("tr"),n=document.createElement("td");n.colSpan=3,n.innerHTML="无未关注监测点数据",i.appendChild(n),t.length<=0&&e.tbody.appendChild(i);for(var a=0;anew Date)){var t=(0,g.FormatDate)(e,"yyyy-MM-dd")+","+(0,g.FormatDate)(i,"yyyy-MM-dd");$("#dtDate").val(t).click()}}},components:{CompHeader:o["default"],CompNavi:s["default"],CompWeather:u["default"],CompRain:h["default"],CompEquipWidget:p["default"]}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports='
每日评估 收缩
设备总数 {{proj_general.te}}
电量报警总数 {{battery}}
液位报警总数 {{proj_general.tea}}

已关注点

设备
警报
排序
没有关注点,请先添加关注点
正在读取关注点信息,请稍候.
'},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){var n,a;i(773),n=i(723),a=i(853),t.exports=n||{},t.exports.__esModule&&(t.exports=t.exports["default"]),a&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=a)}]); //# sourceMappingURL=index.ff9d41ba56bc315aeb2a.js.map