define(["gpui-style-inject","react","mobx"],(function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(e),o=i(t),s=r(t);
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */
function l(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function u(e,t,n,i){return new(n||(n=Promise))((function(r,a){function o(e){try{l(i.next(e))}catch(e){a(e)}}function s(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))}a.default("html, body, #root {\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  padding: 0;\n  overflow: hidden; }\n\n.g__index {\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  height: 100%; }\n");var c="index-module_main__yH-Un",h="index-module_chart__2lZaX";if(a.default(".index-module_main__yH-Un {\n  position: relative;\n  width: 100%;\n  height: 100%; }\n  .index-module_main__yH-Un .index-module_chart__2lZaX {\n    width: 100%;\n    height: 100%; }\n"),!t.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!n.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},d.apply(this,arguments)}function f(){var e=t.useState(0)[1];return t.useCallback((function(){e((function(e){return e+1}))}),[])}function p(e){return n.getDependencyTree(e)}var g,m=1e4,v=1e4,y=new Set;function _(){void 0===g&&(g=setTimeout(x,v))}function x(){g=void 0;var e=Date.now();y.forEach((function(t){var n=t.current;n&&e>=n.cleanAt&&(n.reaction.dispose(),t.current=null,y.delete(t))})),y.size>0&&_()}var b={};function w(e){return"observer"+e}function T(e,t,i){void 0===t&&(t="observed"),void 0===i&&(i=b);var r,a=(i.useForceUpdate||f)(),s=o.default.useRef(null);if(!s.current){var l=new n.Reaction(w(t),(function(){u.mounted?a():(l.dispose(),s.current=null)})),u=function(e){return{cleanAt:Date.now()+m,reaction:e}}(l);s.current=u,r=s,y.add(r),_()}var c,h,d=s.current.reaction;if(o.default.useDebugValue(d,p),o.default.useEffect((function(){var e;return e=s,y.delete(e),s.current?s.current.mounted=!0:(s.current={reaction:new n.Reaction(w(t),(function(){a()})),cleanAt:1/0},a()),function(){s.current.reaction.dispose(),s.current=null}}),[]),d.track((function(){try{c=e()}catch(e){h=e}})),h)throw h;return c}function S(e,n){var i,r=d({forwardRef:!1},n),a=e.displayName||e.name,o=function(t,n){return T((function(){return e(t,n)}),a)};return o.displayName=a,i=r.forwardRef?t.memo(t.forwardRef(o)):t.memo(o),function(e,t){Object.keys(e).forEach((function(n){O[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}(e,i),i.displayName=a,i}var O={$$typeof:!0,render:!0,compare:!0,type:!0};function M(e){var t=e.children,n=e.render,i=t||n;return"function"!=typeof i?null:T(i)}function D(e,t,n,i,r){var a="children"===t?"render":"children",o="function"==typeof e[t],s="function"==typeof e[a];return o&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):o||s?null:new Error("Invalid prop `"+r+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}M.propTypes={children:D,render:D},M.displayName="Observer";var A=0;var k={};function I(e){return k[e]||(k[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+A+")";return A++,t}(e)),k[e]}function C(e,t){if(E(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++)if(!Object.hasOwnProperty.call(t,n[r])||!E(e[n[r]],t[n[r]]))return!1;return!0}function E(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function N(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var R=I("patchMixins"),L=I("patchedDefinition");function P(e,t){for(var n=this,i=arguments.length,r=new Array(i>2?i-2:0),a=2;a<i;a++)r[a-2]=arguments[a];t.locks++;try{var o;return null!=e&&(o=e.apply(this,r)),o}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,r)}))}}function z(e,t){return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];P.call.apply(P,[this,e,t].concat(i))}}function Y(e,t,n){var i=function(e,t){var n=e[R]=e[R]||{},i=n[t]=n[t]||{};return i.locks=i.locks||0,i.methods=i.methods||[],i}(e,t);i.methods.indexOf(n)<0&&i.methods.push(n);var r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r[L]){var a=e[t],o=H(e,t,r?r.enumerable:void 0,i,a);Object.defineProperty(e,t,o)}}function H(e,t,n,i,r){var a,o=z(r,i);return(a={})[L]=!0,a.get=function(){return o},a.set=function(r){if(this===e)o=z(r,i);else{var a=H(this,t,n,i,r);Object.defineProperty(this,t,a)}},a.configurable=!0,a.enumerable=n,a}var F=n.$mobx||"$mobx",B=I("isUnmounted"),j=I("skipRender"),U=I("isForcingUpdate");function W(e){var n=e.prototype;if(n.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==t.PureComponent)if(n.shouldComponentUpdate){if(n.shouldComponentUpdate!==V)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else n.shouldComponentUpdate=V;q(n,"props"),q(n,"state");var i=n.render;return n.render=function(){return G.call(this,i)},Y(n,"componentWillUnmount",(function(){this.render[F]&&this.render[F].dispose(),this[B]=!0})),e}function G(e){var i=this;N(this,j,!1),N(this,U,!1);var r,a=(r=this).displayName||r.name||r.constructor&&(r.constructor.displayName||r.constructor.name)||"<component>",o=e.bind(this),s=!1,l=new n.Reaction(a+".render()",(function(){if(!s&&(s=!0,!0!==i[B])){var e=!0;try{N(i,U,!0),i[j]||t.Component.prototype.forceUpdate.call(i),e=!1}finally{N(i,U,!1),e&&l.dispose()}}}));function u(){s=!1;var e=void 0,t=void 0;if(l.track((function(){try{t=n._allowStateChanges(!1,o)}catch(t){e=t}})),e)throw e;return t}return l.reactComponent=this,u[F]=l,this.render=u,u.call(this)}function V(e,t){return this.state!==t||!C(this.props,e)}function q(e,t){var i=I("reactProp_"+t+"_valueHolder"),r=I("reactProp_"+t+"_atomHolder");function a(){return this[r]||N(this,r,n.createAtom("reactive "+t)),this[r]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return n._allowStateReadsStart&&n._allowStateReadsEnd&&(e=n._allowStateReadsStart(!0)),a.call(this).reportObserved(),n._allowStateReadsStart&&n._allowStateReadsEnd&&n._allowStateReadsEnd(e),this[i]},set:function(e){this[U]||C(this[i],e)?N(this,i,e):(N(this,i,e),N(this,j,!0),a.call(this).reportChanged(),N(this,j,!1))}})}var Z="function"==typeof Symbol&&Symbol.for,X=Z?Symbol.for("react.forward_ref"):"function"==typeof t.forwardRef&&t.forwardRef((function(e){return null})).$$typeof,K=Z?Symbol.for("react.memo"):"function"==typeof t.memo&&t.memo((function(e){return null})).$$typeof;if(!t.Component)throw new Error("mobx-react requires React to be available");if(!n.observable)throw new Error("mobx-react requires mobx to be available");var $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Q(e){var t={exports:{}};return e(t,t.exports),t.exports}function J(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}"undefined"!=typeof window||void 0!==$&&$.__DEV__;var ee=2311;var te=function(){return ee++};var ne="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:function(e){var t={},n={},i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);a&&(n.edge=!0,n.version=a[1]);o&&(n.weChat=!0);return{browser:n,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!=typeof document}}(navigator.userAgent),ie={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},re={"[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},ae=Object.prototype.toString,oe=Array.prototype,se=oe.forEach,le=oe.filter,ue=oe.slice,ce=oe.map,he=oe.reduce,de={};function fe(e){if(null==e||"object"!=typeof e)return e;var t=e,n=ae.call(e);if("[object Array]"===n){if(!Oe(e)){t=[];for(var i=0,r=e.length;i<r;i++)t[i]=fe(e[i])}}else if(re[n]){if(!Oe(e)){var a=e.constructor;if(e.constructor.from)t=a.from(e);else{t=new a(e.length);for(i=0,r=e.length;i<r;i++)t[i]=fe(e[i])}}}else if(!ie[n]&&!Oe(e)&&!Te(e))for(var o in t={},e)e.hasOwnProperty(o)&&(t[o]=fe(e[o]));return t}function pe(e,t,n){if(!be(t)||!be(e))return n?fe(t):e;for(var i in t)if(t.hasOwnProperty(i)){var r=e[i],a=t[i];!be(a)||!be(r)||xe(a)||xe(r)||Te(a)||Te(r)||we(a)||we(r)||Oe(a)||Oe(r)?!n&&i in e||(e[i]=fe(t[i])):pe(r,a,n)}return e}function ge(e,t,n){for(var i in t)t.hasOwnProperty(i)&&(n?null!=t[i]:null==e[i])&&(e[i]=t[i]);return e}var me,ve=function(){return de.createCanvas()};function ye(e,t,n){if(e&&t)if(e.forEach&&e.forEach===se)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function _e(e,t){var n=ue.call(arguments,2);return function(){return e.apply(t,n.concat(ue.call(arguments)))}}function xe(e){return"[object Array]"===ae.call(e)}function be(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function we(e){return!!ie[ae.call(e)]}function Te(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}de.createCanvas=function(){return document.createElement("canvas")};var Se="__ec_primitive__";function Oe(e){return e[Se]}function Me(e){var t=xe(e);this.data={};var n=this;function i(e,i){t?n.set(e,i):n.set(i,e)}e instanceof Me?e.each(i):e&&ye(e,i)}Me.prototype={constructor:Me,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){for(var n in void 0!==t&&(e=_e(e,t)),this.data)this.data.hasOwnProperty(n)&&e(this.data[n],n)},removeKey:function(e){delete this.data[e]}};var De=function(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=pe(n,e[i],t);return n},Ae=function(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1},ke=function(e,t){var n=e.prototype;function i(){}for(var r in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t},Ie=function(e,t,n){if(e&&t){if(e.map&&e.map===ce)return e.map(t,n);for(var i=[],r=0,a=e.length;r<a;r++)i.push(t.call(n,e[r],r,e));return i}},Ce=function(e,t,n,i){if(e&&t){if(e.reduce&&e.reduce===he)return e.reduce(t,n,i);for(var r=0,a=e.length;r<a;r++)n=t.call(i,n,e[r],r,e);return n}},Ee=function(e,t,n){if(e&&t){if(e.filter&&e.filter===le)return e.filter(t,n);for(var i=[],r=0,a=e.length;r<a;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}},Ne=function(e,t,n){if(e&&t)for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]},Re=function(e){var t=ue.call(arguments,1);return function(){return e.apply(this,t.concat(ue.call(arguments)))}},Le=function(e){for(var t=0,n=arguments.length;t<n;t++)if(null!=arguments[t])return arguments[t]},Pe=function(){return Function.call.apply(ue,arguments)},ze=function(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e},Ye=function(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var r=e.length;for(i=0;i<t.length;i++)n[i+r]=t[i];return n},He={$override:function(e,t){"createCanvas"===e&&(me=null),de[e]=t},clone:fe,merge:pe,mergeAll:De,extend:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},defaults:ge,createCanvas:ve,getContext:function(){return me||(me=ve().getContext("2d")),me},indexOf:Ae,inherits:ke,mixin:function(e,t,n){ge(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,n)},isArrayLike:function(e){if(e)return"string"!=typeof e&&"number"==typeof e.length},each:ye,map:Ie,reduce:Ce,filter:Ee,find:Ne,bind:_e,curry:Re,isArray:xe,isFunction:function(e){return"function"==typeof e},isString:function(e){return"[object String]"===ae.call(e)},isObject:be,isBuiltInObject:we,isTypedArray:function(e){return!!re[ae.call(e)]},isDom:Te,eqNaN:function(e){return e!=e},retrieve:Le,retrieve2:function(e,t){return null!=e?e:t},retrieve3:function(e,t,n){return null!=e?e:null!=t?t:n},slice:Pe,normalizeCssArray:ze,assert:function(e,t){if(!e)throw new Error(t)},trim:function(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},setAsPrimitive:function(e){e[Se]=!0},isPrimitive:Oe,createHashMap:function(e){return new Me(e)},concatArray:Ye,noop:function(){}},Fe="undefined"==typeof Float32Array?Array:Float32Array;function Be(e){return Math.sqrt(je(e))}function je(e){return e[0]*e[0]+e[1]*e[1]}function Ue(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function We(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ge=function(e,t){var n=new Fe(2);return null==e&&(e=0),null==t&&(t=0),n[0]=e,n[1]=t,n},Ve=function(e,t){return e[0]=t[0],e[1]=t[1],e},qe=function(e){var t=new Fe(2);return t[0]=e[0],t[1]=e[1],t},Ze=function(e,t,n){return e[0]=t,e[1]=n,e},Xe=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e},Ke=function(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e},$e=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e},Qe=function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e},Je=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e},et=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e},tt=function(e,t){var n=Be(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e},nt=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},it=function(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e},rt=function(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e},at=function(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e},ot=function(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e},st={create:Ge,copy:Ve,clone:qe,set:Ze,add:Xe,scaleAndAdd:Ke,sub:$e,len:Be,length:Be,lenSquare:je,lengthSquare:je,mul:Qe,div:Je,dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},scale:et,normalize:tt,distance:Ue,dist:Ue,distanceSquare:We,distSquare:We,negate:nt,lerp:it,applyTransform:rt,min:at,max:ot};function lt(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function ut(e,t){return{target:e,topTarget:t&&t.topTarget}}lt.prototype={constructor:lt,_dragStart:function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(ut(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,a=i-this._y;this._x=n,this._y=i,t.drift(r,a,e),this.dispatchToElement(ut(t,e),"drag",e.event);var o=this.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.dispatchToElement(ut(s,e),"dragleave",e.event),o&&o!==s&&this.dispatchToElement(ut(o,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(ut(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(ut(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}};var ct=lt,ht=Array.prototype.slice,dt=function(e){this._$handlers={},this._$eventProcessor=e};function ft(e,t,n,i,r,a){var o=e._$handlers;if("function"==typeof n&&(r=i,i=n,n=null),!i||!t)return e;n=function(e,t){var n=e._$eventProcessor;return null!=t&&n&&n.normalizeQuery&&(t=n.normalizeQuery(t)),t}(e,n),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===i)return e;var l={h:i,one:a,query:n,ctx:r||e,callAtLast:i.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),e}dt.prototype={constructor:dt,one:function(e,t,n,i){return ft(this,e,t,n,i,!0)},on:function(e,t,n,i){return ft(this,e,t,n,i,!1)},isSilent:function(e){var t=this._$handlers;return!t[e]||!t[e].length},off:function(e,t){var n=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,a=n[e].length;r<a;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},trigger:function(e){var t=this._$handlers[e],n=this._$eventProcessor;if(t){var i=arguments,r=i.length;r>3&&(i=ht.call(i,1));for(var a=t.length,o=0;o<a;){var s=t[o];if(n&&n.filter&&null!=s.query&&!n.filter(e,s.query))o++;else{switch(r){case 1:s.h.call(s.ctx);break;case 2:s.h.call(s.ctx,i[1]);break;case 3:s.h.call(s.ctx,i[1],i[2]);break;default:s.h.apply(s.ctx,i)}s.one?(t.splice(o,1),a--):o++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this},triggerWithContext:function(e){var t=this._$handlers[e],n=this._$eventProcessor;if(t){var i=arguments,r=i.length;r>4&&(i=ht.call(i,1,i.length-1));for(var a=i[i.length-1],o=t.length,s=0;s<o;){var l=t[s];if(n&&n.filter&&null!=l.query&&!n.filter(e,l.query))s++;else{switch(r){case 1:l.h.call(a);break;case 2:l.h.call(a,i[1]);break;case 3:l.h.call(a,i[1],i[2]);break;default:l.h.apply(a,i)}l.one?(t.splice(s,1),o--):s++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this}};var pt=dt,gt=Math.log(2);function mt(e,t,n,i,r,a){var o=i+"-"+r,s=e.length;if(a.hasOwnProperty(o))return a[o];if(1===t){var l=Math.round(Math.log((1<<s)-1&~r)/gt);return e[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&r||(h+=(f%2?-1:1)*e[n][d]*mt(e,t-1,c,u,r|p,a),f++)}return a[o]=h,h}var vt=function(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},r=mt(n,8,0,0,0,i);if(0!==r){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==a[s]&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*mt(n,7,0===o?1:0,1<<o,1<<s,i)/r*t[o];return function(e,t,n){var i=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/i,e[1]=(t*a[3]+n*a[4]+a[5])/i}}},yt={buildTransformer:vt}.buildTransformer,_t="___zrEVENTSAVED",xt=[];function bt(e,t,n,i,r){if(t.getBoundingClientRect&&ne.domSupported&&!wt(t)){var a=t[_t]||(t[_t]={}),o=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=a%2,l=(a>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}(t,a),s=function(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],a=t.srcCoords,o=!0,s=[],l=[],u=0;u<4;u++){var c=e[u].getBoundingClientRect(),h=2*u,d=c.left,f=c.top;s.push(d,f),o=o&&a&&d===a[h]&&f===a[h+1],l.push(e[u].offsetLeft,e[u].offsetTop)}return o&&r?r:(t.srcCoords=s,t[i]=n?yt(l,s):yt(s,l))}(o,a,r);if(s)return s(e,n,i),!0}return!1}function wt(e){return"CANVAS"===e.nodeName.toUpperCase()}var Tt=function(e,t,n,i,r){return bt(xt,t,i,r,!0)&&bt(e,n,xt[0],xt[1])},St={transformLocalCoord:Tt,transformCoordWithViewport:bt,isCanvasEl:wt},Ot=pt,Mt=St.isCanvasEl,Dt=St.transformCoordWithViewport,At="undefined"!=typeof window&&!!window.addEventListener,kt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,It=[];function Ct(e,t,n,i){return n=n||{},i||!ne.canvasSupported?Et(e,t,n):ne.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):Et(e,t,n),n}function Et(e,t,n){if(ne.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(Mt(e)){var a=e.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=r-a.top)}if(Dt(It,e,i,r))return n.zrX=It[0],void(n.zrY=It[1])}n.zrX=n.zrY=0}function Nt(e){return e||window.event}var Rt={Dispatcher:Ot,clientToLocal:Ct,getNativeEvent:Nt,normalizeEvent:function(e,t,n){if(null!=(t=Nt(t)).zrX)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];r&&Ct(e,r,t,n)}else Ct(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var a=t.button;return null==t.which&&void 0!==a&&kt.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t},addEventListener:function(e,t,n,i){At?e.addEventListener(t,n,i):e.attachEvent("on"+t,n)},removeEventListener:function(e,t,n,i){At?e.removeEventListener(t,n,i):e.detachEvent("on"+t,n)},stop:At?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0},isMiddleOrRightButtonOnMouseUpDown:function(e){return 2===e.which||3===e.which},notLeftMouse:function(e){return e.which>1}},Lt=function(){this._track=[]};function Pt(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}Lt.prototype={constructor:Lt,recognize:function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},a=0,o=i.length;a<o;a++){var s=i[a],l=Rt.clientToLocal(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},_recognize:function(e){for(var t in zt)if(zt.hasOwnProperty(t)){var n=zt[t](this._track,e);if(n)return n}}};var zt={pinch:function(e,t){var n=e.length;if(n){var i,r=(e[n-1]||{}).points,a=(e[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var o=Pt(r)/Pt(a);!isFinite(o)&&(o=1),t.pinchScale=o;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},Yt=Lt,Ht="silent";function Ft(){Rt.stop(this.event)}function Bt(){}Bt.prototype.dispose=function(){};var jt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ut=function(e,t,n,i){pt.call(this),this.storage=e,this.painter=t,this.painterRoot=i,n=n||new Bt,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,ct.call(this),this.setHandlerProxy(n)};function Wt(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i,r=e;r;){if(r.clipPath&&!r.clipPath.contain(t,n))return!1;r.silent&&(i=!0),r=r.parent}return!i||Ht}return!1}function Gt(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}Ut.prototype={constructor:Ut,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(He.each(jt,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,n=e.zrY,i=Gt(this,t,n),r=this._hovered,a=r.target;a&&!a.__zr&&(a=(r=this.findHover(r.x,r.y)).target);var o=this._hovered=i?{x:t,y:n}:this.findHover(t,n),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==a&&this.dispatchToElement(o,"mouseover",e)},mouseout:function(e){var t=e.zrEventControl,n=e.zrIsToLocalDOM;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&!n&&this.trigger("globalout",{type:"globalout",event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var n=this[e];n&&n.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,n){var i=(e=e||{}).target;if(!i||!i.silent){for(var r="on"+t,a=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ft}}(t,e,n);i&&(i[r]&&(a.cancelBubble=i[r].call(i,a)),i.trigger(t,a),i=i.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer((function(e){"function"==typeof e[r]&&e[r].call(e,a),e.trigger&&e.trigger(t,a)})))}},findHover:function(e,t,n){for(var i=this.storage.getDisplayList(),r={x:e,y:t},a=i.length-1;a>=0;a--){var o;if(i[a]!==n&&!i[a].ignore&&(o=Wt(i[a],e,t))&&(!r.topTarget&&(r.topTarget=i[a]),o!==Ht)){r.target=i[a];break}}return r},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new Yt);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r,this.dispatchToElement({target:i.target},r,i.event)}}},He.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Ut.prototype[e]=function(t){var n,i,r=t.zrX,a=t.zrY,o=Gt(this,r,a);if("mouseup"===e&&o||(i=(n=this.findHover(r,a)).target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||st.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}})),He.mixin(Ut,pt),He.mixin(Ut,ct);var Vt=Ut,qt="undefined"==typeof Float32Array?Array:Float32Array;function Zt(){var e=new qt(6);return Xt(e),e}function Xt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Kt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}var $t=function(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e},Qt=function(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e},Jt=function(e,t,n){var i=t[0],r=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=i*c+o*u,e[1]=-i*u+o*c,e[2]=r*c+s*u,e[3]=-r*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e},en=function(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e},tn=function(e,t){var n=t[0],i=t[2],r=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*i;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-o*r)*l,e[5]=(a*r-n*s)*l,e):null},nn={create:Zt,identity:Xt,copy:Kt,mul:$t,translate:Qt,rotate:Jt,scale:en,invert:tn,clone:function(e){var t=Zt();return Kt(t,e),t}},rn=nn.identity,an=5e-5;function on(e){return e>an||e<-5e-5}var sn=function(e){(e=e||{}).position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},ln=sn.prototype;ln.transform=null,ln.needLocalTransform=function(){return on(this.rotation)||on(this.position[0])||on(this.position[1])||on(this.scale[0]-1)||on(this.scale[1]-1)};var un=[];ln.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),i=this.transform;if(n||t){i=i||nn.create(),n?this.getLocalTransform(i):rn(i),t&&(n?nn.mul(i,e.transform,i):nn.copy(i,e.transform)),this.transform=i;var r=this.globalScaleRatio;if(null!=r&&1!==r){this.getGlobalScale(un);var a=un[0]<0?-1:1,o=un[1]<0?-1:1,s=((un[0]-a)*r+a)/un[0]||0,l=((un[1]-o)*r+o)/un[1]||0;i[0]*=s,i[1]*=s,i[2]*=l,i[3]*=l}this.invTransform=this.invTransform||nn.create(),nn.invert(this.invTransform,i)}else i&&rn(i)},ln.getLocalTransform=function(e){return sn.getLocalTransform(this,e)},ln.setTransform=function(e){var t=this.transform,n=e.dpr||1;t?e.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):e.setTransform(n,0,0,n,0,0)},ln.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var cn=[],hn=nn.create();ln.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=this.position,r=this.scale;on(t-1)&&(t=Math.sqrt(t)),on(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),i[0]=e[4],i[1]=e[5],r[0]=t,r[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/t)}},ln.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(nn.mul(cn,e.invTransform,t),t=cn);var n=this.origin;n&&(n[0]||n[1])&&(hn[4]=n[0],hn[5]=n[1],nn.mul(cn,t,hn),cn[4]-=n[0],cn[5]-=n[1],t=cn),this.setLocalTransform(t)}},ln.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},ln.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&st.applyTransform(n,n,i),n},ln.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&st.applyTransform(n,n,i),n},sn.getLocalTransform=function(e,t){rn(t=t||[]);var n=e.origin,i=e.scale||[1,1],r=e.rotation||0,a=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),nn.scale(t,t,i),r&&nn.rotate(t,t,r),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=a[0],t[5]+=a[1],t};var dn=sn,fn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-fn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*fn.bounceIn(2*e):.5*fn.bounceOut(2*e-1)+.5}},pn=fn;function gn(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}gn.prototype={constructor:gn,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)this._pausedTime+=t;else{var n=(e-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var i=this.easing,r="string"==typeof i?pn[i]:i,a="function"==typeof r?r(n):n;return this.fire("frame",a),1===n?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){this[e="on"+e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var mn=gn,vn=function(){this.head=null,this.tail=null,this._len=0},yn=vn.prototype;yn.insert=function(e){var t=new _n(e);return this.insertEntry(t),t},yn.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},yn.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},yn.len=function(){return this._len},yn.clear=function(){this.head=this.tail=null,this._len=0};var _n=function(e){this.value=e,this.next,this.prev},xn=function(e){this._list=new vn,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},bn=xn.prototype;bn.put=function(e,t){var n=this._list,i=this._map,r=null;if(null==i[e]){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new _n(t),o.key=e,n.insertEntry(o),i[e]=o}return r},bn.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},bn.clear=function(){this._list.clear(),this._map={}};var wn=xn,Tn={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]};function Sn(e){return(e=Math.round(e))<0?0:e>255?255:e}function On(e){return e<0?0:e>1?1:e}function Mn(e){return e.length&&"%"===e.charAt(e.length-1)?Sn(parseFloat(e)/100*255):Sn(parseInt(e,10))}function Dn(e){return e.length&&"%"===e.charAt(e.length-1)?On(parseFloat(e)/100):On(parseFloat(e))}function An(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function kn(e,t,n){return e+(t-e)*n}function In(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function Cn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var En=new wn(20),Nn=null;function Rn(e,t){Nn&&Cn(Nn,t),Nn=En.put(e,Nn||t.slice())}function Ln(e,t){if(e){t=t||[];var n=En.get(e);if(n)return Cn(t,n);var i,r=(e+="").replace(/ /g,"").toLowerCase();if(r in Tn)return Cn(t,Tn[r]),Rn(e,t),t;if("#"===r.charAt(0))return 4===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=4095?(In(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),Rn(e,t),t):void In(t,0,0,0,1):7===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=16777215?(In(t,(16711680&i)>>16,(65280&i)>>8,255&i,1),Rn(e,t),t):void In(t,0,0,0,1):void 0;var a=r.indexOf("("),o=r.indexOf(")");if(-1!==a&&o+1===r.length){var s=r.substr(0,a),l=r.substr(a+1,o-(a+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return void In(t,0,0,0,1);u=Dn(l.pop());case"rgb":return 3!==l.length?void In(t,0,0,0,1):(In(t,Mn(l[0]),Mn(l[1]),Mn(l[2]),u),Rn(e,t),t);case"hsla":return 4!==l.length?void In(t,0,0,0,1):(l[3]=Dn(l[3]),Pn(l,t),Rn(e,t),t);case"hsl":return 3!==l.length?void In(t,0,0,0,1):(Pn(l,t),Rn(e,t),t);default:return}}In(t,0,0,0,1)}}function Pn(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=Dn(e[1]),r=Dn(e[2]),a=r<=.5?r*(i+1):r+i-r*i,o=2*r-a;return In(t=t||[],Sn(255*An(o,a,n+1/3)),Sn(255*An(o,a,n)),Sn(255*An(o,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function zn(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),o=t[r],s=t[a],l=i-r;return n[0]=Sn(kn(o[0],s[0],l)),n[1]=Sn(kn(o[1],s[1],l)),n[2]=Sn(kn(o[2],s[2],l)),n[3]=On(kn(o[3],s[3],l)),n}}function Yn(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),o=Ln(t[r]),s=Ln(t[a]),l=i-r,u=Hn([Sn(kn(o[0],s[0],l)),Sn(kn(o[1],s[1],l)),Sn(kn(o[2],s[2],l)),On(kn(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:a,value:i}:u}}function Hn(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}var Fn=function(e,t){var n=Ln(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:e[i]<0&&(n[i]=0);return Hn(n,4===n.length?"rgba":"rgb")}},Bn=function(e){var t=Ln(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},jn=function(e,t,n,i){if(e=Ln(e))return e=function(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?t=d-h:r===s?t=1/3+c-d:a===s&&(t=2/3+h-c),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,u];return null!=e[3]&&f.push(e[3]),f}}(e),null!=t&&(e[0]=function(e){return(e=Math.round(e))<0?0:e>360?360:e}(t)),null!=n&&(e[1]=Dn(n)),null!=i&&(e[2]=Dn(i)),Hn(Pn(e),"rgba")},Un=function(e,t){if((e=Ln(e))&&null!=t)return e[3]=On(t),Hn(e,"rgba")},Wn={parse:Ln,lift:Fn,toHex:Bn,fastLerp:zn,fastMapToColor:zn,lerp:Yn,mapToColor:Yn,modifyHSL:jn,modifyAlpha:Un,stringify:Hn},Gn=He.isArrayLike,Vn=Array.prototype.slice;function qn(e,t){return e[t]}function Zn(e,t,n){e[t]=n}function Xn(e,t,n){return(t-e)*n+e}function Kn(e,t,n){return n>.5?t:e}function $n(e,t,n,i,r){var a=e.length;if(1===r)for(var o=0;o<a;o++)i[o]=Xn(e[o],t[o],n);else{var s=a&&e[0].length;for(o=0;o<a;o++)for(var l=0;l<s;l++)i[o][l]=Xn(e[o][l],t[o][l],n)}}function Qn(e,t,n){var i=e.length,r=t.length;if(i!==r)if(i>r)e.length=r;else for(var a=i;a<r;a++)e.push(1===n?t[a]:Vn.call(t[a]));var o=e[0]&&e[0].length;for(a=0;a<e.length;a++)if(1===n)isNaN(e[a])&&(e[a]=t[a]);else for(var s=0;s<o;s++)isNaN(e[a][s])&&(e[a][s]=t[a][s])}function Jn(e,t,n){if(e===t)return!0;var i=e.length;if(i!==t.length)return!1;if(1===n){for(var r=0;r<i;r++)if(e[r]!==t[r])return!1}else{var a=e[0].length;for(r=0;r<i;r++)for(var o=0;o<a;o++)if(e[r][o]!==t[r][o])return!1}return!0}function ei(e,t,n,i,r,a,o,s,l){var u=e.length;if(1===l)for(var c=0;c<u;c++)s[c]=ti(e[c],t[c],n[c],i[c],r,a,o);else{var h=e[0].length;for(c=0;c<u;c++)for(var d=0;d<h;d++)s[c][d]=ti(e[c][d],t[c][d],n[c][d],i[c][d],r,a,o)}}function ti(e,t,n,i,r,a,o){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*a+s*r+t}function ni(e){if(Gn(e)){var t=e.length;if(Gn(e[0])){for(var n=[],i=0;i<t;i++)n.push(Vn.call(e[i]));return n}return Vn.call(e)}return e}function ii(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function ri(e,t,n,i,r,a){var o=e._getter,s=e._setter,l="spline"===t,u=i.length;if(u){var c,h=i[0].value,d=Gn(h),f=!1,p=!1,g=d?function(e){var t=e[e.length-1].value;return Gn(t&&t[0])?2:1}(i):0;i.sort((function(e,t){return e.time-t.time})),c=i[u-1].time;for(var m=[],v=[],y=i[0].value,_=!0,x=0;x<u;x++){m.push(i[x].time/c);var b=i[x].value;if(d&&Jn(b,y,g)||!d&&b===y||(_=!1),y=b,"string"==typeof b){var w=Wn.parse(b);w?(b=w,f=!0):p=!0}v.push(b)}if(a||!_){var T=v[u-1];for(x=0;x<u-1;x++)d?Qn(v[x],T,g):!isNaN(v[x])||isNaN(T)||p||f||(v[x]=T);d&&Qn(o(e._target,r),T,g);var S,O,M,D,A,k=0,I=0;if(f)var C=[0,0,0,0];var E=new mn({target:e._target,life:c,loop:e._loop,delay:e._delay,onframe:function(e,t){var n;if(t<0)n=0;else if(t<I){for(n=Math.min(k+1,u-1);n>=0&&!(m[n]<=t);n--);n=Math.min(n,u-2)}else{for(n=k;n<u&&!(m[n]>t);n++);n=Math.min(n-1,u-2)}k=n,I=t;var i=m[n+1]-m[n];if(0!==i)if(S=(t-m[n])/i,l)if(M=v[n],O=v[0===n?n:n-1],D=v[n>u-2?u-1:n+1],A=v[n>u-3?u-1:n+2],d)ei(O,M,D,A,S,S*S,S*S*S,o(e,r),g);else{if(f)a=ei(O,M,D,A,S,S*S,S*S*S,C,1),a=ii(C);else{if(p)return Kn(M,D,S);a=ti(O,M,D,A,S,S*S,S*S*S)}s(e,r,a)}else if(d)$n(v[n],v[n+1],S,o(e,r),g);else{var a;if(f)$n(v[n],v[n+1],S,C,1),a=ii(C);else{if(p)return Kn(v[n],v[n+1],S);a=Xn(v[n],v[n+1],S)}s(e,r,a)}},ondestroy:n});return t&&"spline"!==t&&(E.easing=t),E}}}var ai=function(e,t,n,i){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||qn,this._setter=i||Zn,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};ai.prototype={when:function(e,t){var n=this._tracks;for(var i in t)if(t.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==e&&n[i].push({time:0,value:ni(r)})}n[i].push({time:e,value:t[i]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,n=0;n<t;n++)e[n].call(this)},start:function(e,t){var n,i=this,r=0,a=function(){--r||i._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=ri(this,e,a,this._tracks[o],o,t);s&&(this._clipList.push(s),r++,this.animation&&this.animation.addClip(s),n=s)}if(n){var l=n.onframe;n.onframe=function(e,t){l(e,t);for(var n=0;n<i._onframeList.length;n++)i._onframeList[n](e,t)}}return r||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,n=this.animation,i=0;i<t.length;i++){var r=t[i];e&&r.onframe(this._target,1),n&&n.removeClip(r)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}};var oi=ai,si=1;"undefined"!=typeof window&&(si=Math.max(window.devicePixelRatio||1,1));var li={debugMode:0,devicePixelRatio:si},ui=function(){},ci=He.isString,hi=He.isFunction,di=He.isObject,fi=He.isArrayLike,pi=He.indexOf,gi=function(){this.animators=[]};function mi(e,t,n,i,r,a,o,s){ci(i)?(a=r,r=i,i=0):hi(r)?(a=r,r="linear",i=0):hi(i)?(a=i,i=0):hi(n)?(a=n,n=500):n||(n=500),e.stopAnimation(),vi(e,"",e,t,n,i,s);var l=e.animators.slice(),u=l.length;function c(){--u||a&&a()}u||a&&a();for(var h=0;h<l.length;h++)l[h].done(c).start(r,o)}function vi(e,t,n,i,r,a,o){var s={},l=0;for(var u in i)i.hasOwnProperty(u)&&(null!=n[u]?di(i[u])&&!fi(i[u])?vi(e,t?t+"."+u:u,n[u],i[u],r,a,o):(o?(s[u]=n[u],yi(e,t,u,i[u])):s[u]=i[u],l++):null==i[u]||o||yi(e,t,u,i[u]));l>0&&e.animate(t,!1).when(null==r?500:r,s).delay(a||0)}function yi(e,t,n,i){if(t){var r={};r[t]={},r[t][n]=i,e.attr(r)}else e.attr(n,i)}gi.prototype={constructor:gi,animate:function(e,t){var n,i=!1,r=this,a=this.__zr;if(e){var o=e.split("."),s=r;i="shape"===o[0];for(var l=0,u=o.length;l<u;l++)s&&(s=s[o[l]]);s&&(n=s)}else n=r;if(n){var c=r.animators,h=new oi(n,t);return h.during((function(e){r.dirty(i)})).done((function(){c.splice(pi(c,h),1)})),c.push(h),a&&a.animation.addAnimator(h),h}ui('Property "'+e+'" is not existed in element '+r.id)},stopAnimation:function(e){for(var t=this.animators,n=t.length,i=0;i<n;i++)t[i].stop(e);return t.length=0,this},animateTo:function(e,t,n,i,r,a){mi(this,e,t,n,i,r,a)},animateFrom:function(e,t,n,i,r,a){mi(this,e,t,n,i,r,a,!0)}};var _i=gi,xi=function(e){dn.call(this,e),pt.call(this,e),_i.call(this,e),this.id=e.id||te()};xi.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var n=this[e];n||(n=this[e]=[]),n[0]=t[0],n[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(He.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},He.mixin(xi,_i),He.mixin(xi,dn),He.mixin(xi,pt);var bi,wi,Ti,Si,Oi=xi,Mi=st.applyTransform,Di=Math.min,Ai=Math.max;function ki(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}ki.prototype={constructor:ki,union:function(e){var t=Di(e.x,this.x),n=Di(e.y,this.y);this.width=Ai(e.x+e.width,this.x+this.width)-t,this.height=Ai(e.y+e.height,this.y+this.height)-n,this.x=t,this.y=n},applyTransform:(bi=[],wi=[],Ti=[],Si=[],function(e){if(e){bi[0]=Ti[0]=this.x,bi[1]=Si[1]=this.y,wi[0]=Si[0]=this.x+this.width,wi[1]=Ti[1]=this.y+this.height,Mi(bi,bi,e),Mi(wi,wi,e),Mi(Ti,Ti,e),Mi(Si,Si,e),this.x=Di(bi[0],wi[0],Ti[0],Si[0]),this.y=Di(bi[1],wi[1],Ti[1],Si[1]);var t=Ai(bi[0],wi[0],Ti[0],Si[0]),n=Ai(bi[1],wi[1],Ti[1],Si[1]);this.width=t-this.x,this.height=n-this.y}}),calculateTransform:function(e){var t=this,n=e.width/t.width,i=e.height/t.height,r=nn.create();return nn.translate(r,r,[-t.x,-t.y]),nn.scale(r,r,[n,i]),nn.translate(r,r,[e.x,e.y]),r},intersect:function(e){if(!e)return!1;e instanceof ki||(e=ki.create(e));var t=this,n=t.x,i=t.x+t.width,r=t.y,a=t.y+t.height,o=e.x,s=e.x+e.width,l=e.y,u=e.y+e.height;return!(i<o||s<n||a<l||u<r)},contain:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},clone:function(){return new ki(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},ki.create=function(e){return new ki(e.x,e.y,e.width,e.height)};var Ii=ki,Ci=function(e){for(var t in e=e||{},Oi.call(this,e),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};Ci.prototype={constructor:Ci,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,n=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof Ci&&e.addChildrenToStorage(t)),n&&n.refresh()},remove:function(e){var t=this.__zr,n=this.__storage,i=this._children,r=He.indexOf(i,e);return r<0||(i.splice(r,1),e.parent=null,n&&(n.delFromStorage(e),e instanceof Ci&&e.delChildrenFromStorage(n)),t&&t.refresh()),this},removeAll:function(){var e,t,n=this._children,i=this.__storage;for(t=0;t<n.length;t++)e=n[t],i&&(i.delFromStorage(e),e instanceof Ci&&e.delChildrenFromStorage(i)),e.parent=null;return n.length=0,this},eachChild:function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},traverse:function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n];e.call(t,i),"group"===i.type&&i.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.addToStorage(n),n instanceof Ci&&n.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.delFromStorage(n),n instanceof Ci&&n.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,n=new Ii(0,0,0,0),i=e||this._children,r=[],a=0;a<i.length;a++){var o=i[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),l=o.getLocalTransform(r);l?(n.copy(s),n.applyTransform(l),(t=t||n.clone()).union(n)):(t=t||s.clone()).union(s)}}return t||n}},He.inherits(Ci,Oi);var Ei=Ci,Ni=32,Ri=7;function Li(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){for(;r<n&&i(e[r],e[r-1])<0;)r++;!function(e,t,n){n--;for(;t<n;){var i=e[t];e[t++]=e[n],e[n--]=i}}(e,t,r)}else for(;r<n&&i(e[r],e[r-1])>=0;)r++;return r-t}function Pi(e,t,n,i,r){for(i===t&&i++;i<n;i++){for(var a,o=e[i],s=t,l=i;s<l;)r(o,e[a=s+l>>>1])<0?l=a:s=a+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=o}}function zi(e,t,n,i,r,a){var o=0,s=0,l=1;if(a(e,t[n+r])>0){for(s=i-r;l<s&&a(e,t[n+r+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}else{for(s=r+1;l<s&&a(e,t[n+r-l])<=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[n+c])>0?o=c+1:l=c}return l}function Yi(e,t,n,i,r,a){var o=0,s=0,l=1;if(a(e,t[n+r])<0){for(s=r+1;l<s&&a(e,t[n+r-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=r-l,l=r-u}else{for(s=i-r;l<s&&a(e,t[n+r+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=r,l+=r}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[n+c])<0?l=c:o=c+1}return l}function Hi(e,t){var n,i,r=Ri,a=0;e.length;var o=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===a-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),a--;var d=Yi(e[c],e,l,u,0,t);l+=d,0!==(u-=d)&&0!==(h=zi(e[l+u-1],e,c,h,h-1,t))&&(u<=h?function(n,i,a,s){var l=0;for(l=0;l<i;l++)o[l]=e[n+l];var u=0,c=a,h=n;if(e[h++]=e[c++],0==--s){for(l=0;l<i;l++)e[h+l]=o[u+l];return}if(1===i){for(l=0;l<s;l++)e[h+l]=e[c+l];return void(e[h+s]=o[u])}var d,f,p,g=r;for(;;){d=0,f=0,p=!1;do{if(t(e[c],o[u])<0){if(e[h++]=e[c++],f++,d=0,0==--s){p=!0;break}}else if(e[h++]=o[u++],d++,f=0,1==--i){p=!0;break}}while((d|f)<g);if(p)break;do{if(0!==(d=Yi(e[c],o,u,i,0,t))){for(l=0;l<d;l++)e[h+l]=o[u+l];if(h+=d,u+=d,(i-=d)<=1){p=!0;break}}if(e[h++]=e[c++],0==--s){p=!0;break}if(0!==(f=zi(o[u],e,c,s,0,t))){for(l=0;l<f;l++)e[h+l]=e[c+l];if(h+=f,c+=f,0===(s-=f)){p=!0;break}}if(e[h++]=o[u++],1==--i){p=!0;break}g--}while(d>=Ri||f>=Ri);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)e[h+l]=e[c+l];e[h+s]=o[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)e[h+l]=o[u+l]}}(l,u,c,h):function(n,i,a,s){var l=0;for(l=0;l<s;l++)o[l]=e[a+l];var u=n+i-1,c=s-1,h=a+s-1,d=0,f=0;if(e[h--]=e[u--],0==--i){for(d=h-(s-1),l=0;l<s;l++)e[d+l]=o[l];return}if(1===s){for(f=(h-=i)+1,d=(u-=i)+1,l=i-1;l>=0;l--)e[f+l]=e[d+l];return void(e[h]=o[c])}var p=r;for(;;){var g=0,m=0,v=!1;do{if(t(o[c],e[u])<0){if(e[h--]=e[u--],g++,m=0,0==--i){v=!0;break}}else if(e[h--]=o[c--],m++,g=0,1==--s){v=!0;break}}while((g|m)<p);if(v)break;do{if(0!==(g=i-Yi(o[c],e,n,i,i-1,t))){for(i-=g,f=(h-=g)+1,d=(u-=g)+1,l=g-1;l>=0;l--)e[f+l]=e[d+l];if(0===i){v=!0;break}}if(e[h--]=o[c--],1==--s){v=!0;break}if(0!==(m=s-zi(e[u],o,0,s,s-1,t))){for(s-=m,f=(h-=m)+1,d=(c-=m)+1,l=0;l<m;l++)e[f+l]=o[d+l];if(s<=1){v=!0;break}}if(e[h--]=e[u--],0==--i){v=!0;break}p--}while(g>=Ri||m>=Ri);if(v)break;p<0&&(p=0),p+=2}(r=p)<1&&(r=1);if(1===s){for(f=(h-=i)+1,d=(u-=i)+1,l=i-1;l>=0;l--)e[f+l]=e[d+l];e[h]=o[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l<s;l++)e[d+l]=o[l]}}(l,u,c,h))}n=[],i=[],this.mergeRuns=function(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;s(e)}},this.forceMergeRuns=function(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,s(e)}},this.pushRun=function(e,t){n[a]=e,i[a]=t,a+=1}}var Fi=function(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(r<2)){var a=0;if(r<Ni)Pi(e,n,i,n+(a=Li(e,n,i,t)),t);else{var o=new Hi(e,t),s=function(e){for(var t=0;e>=Ni;)t|=1&e,e>>=1;return e+t}(r);do{if((a=Li(e,n,i,t))<s){var l=r;l>s&&(l=s),Pi(e,n,n+l,n+a,t),a=l}o.pushRun(n,a),o.mergeRuns(),r-=a,n+=a}while(0!==r);o.forceMergeRuns()}}};function Bi(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ji=function(){this._roots=[],this._displayList=[],this._displayListLen=0};ji.prototype={constructor:ji,traverse:function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,ne.canvasSupported&&Fi(n,Bi)},_updateAndAddDisplayable:function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var i=e.clipPath;if(i){t=t?t.slice():[];for(var r=i,a=e;r;)r.parent=a,r.updateTransform(),t.push(r),a=r,r=r.clipPath}if(e.isGroup){for(var o=e._children,s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,t,n)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof Ei&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(null==e){for(var t=0;t<this._roots.length;t++){var n=this._roots[t];n instanceof Ei&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array){t=0;for(var i=e.length;t<i;t++)this.delRoot(e[t])}else{var r=He.indexOf(this._roots,e);r>=0&&(this.delFromStorage(e),this._roots.splice(r,1),e instanceof Ei&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:Bi};var Ui=ji,Wi={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};var Gi=function(e,t,n){return Wi.hasOwnProperty(t)?n*e.dpr:n},Vi={ContextCachedBy:{NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},WILL_BE_RESTORED:9},qi=Vi.ContextCachedBy,Zi=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],Xi=function(e){this.extendFrom(e,!1)};function Ki(e,t,n){var i=null==t.x?0:t.x,r=null==t.x2?1:t.x2,a=null==t.y?0:t.y,o=null==t.y2?0:t.y2;return t.global||(i=i*n.width+n.x,r=r*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),i=isNaN(i)?0:i,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o,e.createLinearGradient(i,a,r,o)}function $i(e,t,n){var i=n.width,r=n.height,a=Math.min(i,r),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(o=o*i+n.x,s=s*r+n.y,l*=a),e.createRadialGradient(o,s,0,o,s,l)}Xi.prototype={constructor:Xi,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,n){var i=this,r=n&&n.style,a=!r||e.__attrCachedBy!==qi.STYLE_BIND;e.__attrCachedBy=qi.STYLE_BIND;for(var o=0;o<Zi.length;o++){var s=Zi[o],l=s[0];(a||i[l]!==r[l])&&(e[l]=Gi(e,l,i[l]||s[1]))}if((a||i.fill!==r.fill)&&(e.fillStyle=i.fill),(a||i.stroke!==r.stroke)&&(e.strokeStyle=i.stroke),(a||i.opacity!==r.opacity)&&(e.globalAlpha=null==i.opacity?1:i.opacity),(a||i.blend!==r.blend)&&(e.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var u=i.lineWidth;e.lineWidth=u/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1)}},hasFill:function(){var e=this.fill;return null!=e&&"none"!==e},hasStroke:function(){var e=this.stroke;return null!=e&&"none"!==e&&this.lineWidth>0},extendFrom:function(e,t){if(e)for(var n in e)!e.hasOwnProperty(n)||!0!==t&&(!1===t?this.hasOwnProperty(n):null==e[n])||(this[n]=e[n])},set:function(e,t){"string"==typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,n){for(var i=("radial"===t.type?$i:Ki)(e,t,n),r=t.colorStops,a=0;a<r.length;a++)i.addColorStop(r[a].offset,r[a].color);return i}};for(var Qi=Xi.prototype,Ji=0;Ji<Zi.length;Ji++){var er=Zi[Ji];er[0]in Qi||(Qi[er[0]]=er[1])}Xi.getGradient=Qi.getGradient;var tr=Xi,nr=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};nr.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var ir=nr,rr=li.devicePixelRatio;function ar(){return!1}function or(e,t,n){var i=He.createCanvas(),r=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left=0,o.top=0,o.width=r+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=a*n,i}var sr=function(e,t,n){var i;n=n||rr,"string"==typeof e?i=or(e,t,n):He.isObject(e)&&(e=(i=e).id),this.id=e,this.dom=i;var r=i.style;r&&(i.onselectstart=ar,r["-webkit-user-select"]="none",r["user-select"]="none",r["-webkit-touch-callout"]="none",r["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",r.padding=0,r.margin=0,r["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};sr.prototype={constructor:sr,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=or("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,a&&(a.width=e*n,a.height=t*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(e,t){var n,i=this.dom,r=this.ctx,a=i.width,o=i.height,s=(t=t||this.clearColor,this.motionBlur&&!e),l=this.lastFrameAlpha,u=this.dpr;(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/u,o/u)),r.clearRect(0,0,a,o),t&&"transparent"!==t)&&(t.colorStops?(n=t.__canvasGradient||tr.getGradient(r,t,{x:0,y:0,width:a,height:o}),t.__canvasGradient=n):t.image&&(n=ir.prototype.getCanvasPattern.call(t,r)),r.save(),r.fillStyle=n||t,r.fillRect(0,0,a,o),r.restore());if(s){var c=this.domBack;r.save(),r.globalAlpha=l,r.drawImage(c,0,0,a,o),r.restore()}}};var lr=sr,ur="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)},cr=new wn(50);function hr(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function dr(e){return e&&e.width&&e.height}var fr=function(e,t,n,i,r){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=cr.get(e),o={hostEl:n,cb:i,cbPayload:r};return a?!dr(t=a.image)&&a.pending.push(o):((t=new Image).onload=t.onerror=hr,cr.put(e,t.__cachedImgObj={image:t,pending:[o]}),t.src=t.__zrImageSrc=e),t}return e}return t},pr={findExistImage:function(e){if("string"==typeof e){var t=cr.get(e);return t&&t.image}return e},createOrUpdateImage:fr,isImageReady:dr},gr=He.getContext,mr=He.extend,vr=He.retrieve2,yr=He.retrieve3,_r=He.trim,xr={},br=0,wr=5e3,Tr=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Sr="12px sans-serif",Or={};function Mr(e,t){var n=e+":"+(t=t||Sr);if(xr[n])return xr[n];for(var i=(e+"").split("\n"),r=0,a=0,o=i.length;a<o;a++)r=Math.max(Lr(i[a],t).width,r);return br>wr&&(br=0,xr={}),br++,xr[n]=r,r}function Dr(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Ar(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function kr(e,t,n){var i=t.textPosition,r=t.textDistance,a=n.x,o=n.y;r=r||0;var s=n.height,l=n.width,u=s/2,c="left",h="top";switch(i){case"left":a-=r,o+=u,c="right",h="middle";break;case"right":a+=r+l,o+=u,h="middle";break;case"top":a+=l/2,o-=r,c="center",h="bottom";break;case"bottom":a+=l/2,o+=s+r,c="center";break;case"inside":a+=l/2,o+=u,c="center",h="middle";break;case"insideLeft":a+=r,o+=u,h="middle";break;case"insideRight":a+=l-r,o+=u,c="right",h="middle";break;case"insideTop":a+=l/2,o+=r,c="center";break;case"insideBottom":a+=l/2,o+=s-r,c="center",h="bottom";break;case"insideTopLeft":a+=r,o+=r;break;case"insideTopRight":a+=l-r,o+=r,c="right";break;case"insideBottomLeft":a+=r,o+=s-r,h="bottom";break;case"insideBottomRight":a+=l-r,o+=s-r,c="right",h="bottom"}return(e=e||{}).x=a,e.y=o,e.textAlign=c,e.textVerticalAlign=h,e}function Ir(e,t,n,i,r){if(!t)return"";var a=(e+"").split("\n");r=Cr(t,n,i,r);for(var o=0,s=a.length;o<s;o++)a[o]=Er(a[o],r);return a.join("\n")}function Cr(e,t,n,i){(i=mr({},i)).font=t;n=vr(n,"...");i.maxIterations=vr(i.maxIterations,2);var r=i.minChar=vr(i.minChar,0);i.cnCharWidth=Mr("国",t);var a=i.ascCharWidth=Mr("a",t);i.placeholder=vr(i.placeholder,"");for(var o=e=Math.max(0,e-1),s=0;s<r&&o>=a;s++)o-=a;var l=Mr(n,t);return l>o&&(n="",l=0),o=e-l,i.ellipsis=n,i.ellipsisWidth=l,i.contentWidth=o,i.containerWidth=e,i}function Er(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var a=Mr(e,i);if(a<=n)return e;for(var o=0;;o++){if(a<=r||o>=t.maxIterations){e+=t.ellipsis;break}var s=0===o?Nr(e,r,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*r/a):0;a=Mr(e=e.substr(0,s),i)}return""===e&&(e=t.placeholder),e}function Nr(e,t,n,i){for(var r=0,a=0,o=e.length;a<o&&r<t;a++){var s=e.charCodeAt(a);r+=0<=s&&s<=127?n:i}return a}function Rr(e){return Mr("国",e)}function Lr(e,t){return Or.measureText(e,t)}function Pr(e,t,n,i,r){null!=e&&(e+="");var a=vr(i,Rr(t)),o=e?e.split("\n"):[],s=o.length*a,l=s,u=!0;if(n&&(l+=n[0]+n[2]),e&&r){u=!1;var c=r.outerHeight,h=r.outerWidth;if(null!=c&&l>c)e="",o=[];else if(null!=h)for(var d=Cr(h-(n?n[1]+n[3]:0),t,r.ellipsis,{minChar:r.minChar,placeholder:r.placeholder}),f=0,p=o.length;f<p;f++)o[f]=Er(o[f],d)}return{lines:o,height:s,outerHeight:l,lineHeight:a,canCacheByTextString:u}}function zr(e,t){var n={lines:[],width:0,height:0};if(null!=e&&(e+=""),!e)return n;for(var i,r=Tr.lastIndex=0;null!=(i=Tr.exec(e));){var a=i.index;a>r&&Yr(n,e.substring(r,a)),Yr(n,i[2],i[1]),r=Tr.lastIndex}r<e.length&&Yr(n,e.substring(r,e.length));var o=n.lines,s=0,l=0,u=[],c=t.textPadding,h=t.truncate,d=h&&h.outerWidth,f=h&&h.outerHeight;c&&(null!=d&&(d-=c[1]+c[3]),null!=f&&(f-=c[0]+c[2]));for(var p=0;p<o.length;p++){for(var g=o[p],m=0,v=0,y=0;y<g.tokens.length;y++){var _=(k=g.tokens[y]).styleName&&t.rich[k.styleName]||{},x=k.textPadding=_.textPadding,b=k.font=_.font||t.font,w=k.textHeight=vr(_.textHeight,Rr(b));if(x&&(w+=x[0]+x[2]),k.height=w,k.lineHeight=yr(_.textLineHeight,t.textLineHeight,w),k.textAlign=_&&_.textAlign||t.textAlign,k.textVerticalAlign=_&&_.textVerticalAlign||"middle",null!=f&&s+k.lineHeight>f)return{lines:[],width:0,height:0};k.textWidth=Mr(k.text,b);var T=_.textWidth,S=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))k.percentWidth=T,u.push(k),T=0;else{if(S){T=k.textWidth;var O=_.textBackgroundColor,M=O&&O.image;M&&(M=pr.findExistImage(M),pr.isImageReady(M)&&(T=Math.max(T,M.width*w/M.height)))}var D=x?x[1]+x[3]:0;T+=D;var A=null!=d?d-v:null;null!=A&&A<T&&(!S||A<D?(k.text="",k.textWidth=T=0):(k.text=Ir(k.text,A-D,b,h.ellipsis,{minChar:h.minChar}),k.textWidth=Mr(k.text,b),T=k.textWidth+D))}v+=k.width=T,_&&(m=Math.max(m,k.lineHeight))}g.width=v,g.lineHeight=m,s+=m,l=Math.max(l,v)}n.outerWidth=n.width=vr(t.textWidth,l),n.outerHeight=n.height=vr(t.textHeight,s),c&&(n.outerWidth+=c[1]+c[3],n.outerHeight+=c[0]+c[2]);for(p=0;p<u.length;p++){var k,I=(k=u[p]).percentWidth;k.width=parseInt(I,10)/100*l}return n}function Yr(e,t,n){for(var i=""===t,r=t.split("\n"),a=e.lines,o=0;o<r.length;o++){var s=r[o],l={styleName:n,text:s,isLineHolder:!s&&!i};if(o)a.push({tokens:[l]});else{var u=(a[a.length-1]||(a[0]={tokens:[]})).tokens,c=u.length;1===c&&u[0].isLineHolder?u[0]=l:(s||!c||i)&&u.push(l)}}}Or.measureText=function(e,t){var n=gr();return n.font=t||Sr,n.measureText(e)};var Hr=function(e,t,n,i,r,a,o,s){return o?function(e,t,n,i,r,a,o,s){var l=zr(e,{rich:o,truncate:s,font:t,textAlign:n,textPadding:r,textLineHeight:a}),u=l.outerWidth,c=l.outerHeight,h=Dr(0,u,n),d=Ar(0,c,i);return new Ii(h,d,u,c)}(e,t,n,i,r,a,o,s):function(e,t,n,i,r,a,o){var s=Pr(e,t,r,a,o),l=Mr(e,t);r&&(l+=r[1]+r[3]);var u=s.outerHeight,c=Dr(0,l,n),h=Ar(0,u,i),d=new Ii(c,h,l,u);return d.lineHeight=s.lineHeight,d}(e,t,n,i,r,a,s)},Fr=function(e,t,n){return kr({},{textPosition:e,textDistance:n},t)},Br=function(e){var t=(e.fontSize||e.fontFamily)&&[e.fontStyle,e.fontWeight,(e.fontSize||12)+"px",e.fontFamily||"sans-serif"].join(" ");return t&&_r(t)||e.textFont||e.font},jr={DEFAULT_FONT:Sr,$override:function(e,t){Or[e]=t},getWidth:Mr,getBoundingRect:Hr,adjustTextX:Dr,adjustTextY:Ar,calculateTextPosition:kr,adjustTextPositionOnRect:Fr,truncateText:Ir,getLineHeight:Rr,measureText:Lr,parsePlainText:Pr,parseRichText:zr,makeFont:Br};var Ur={buildPath:function(e,t){var n,i,r,a,o,s=t.x,l=t.y,u=t.width,c=t.height,h=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=a=h:h instanceof Array?1===h.length?n=i=r=a=h[0]:2===h.length?(n=r=h[0],i=a=h[1]):3===h.length?(n=h[0],i=a=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],a=h[3]):n=i=r=a=0,n+i>u&&(n*=u/(o=n+i),i*=u/o),r+a>u&&(r*=u/(o=r+a),a*=u/o),i+r>c&&(i*=c/(o=i+r),r*=c/o),n+a>c&&(n*=c/(o=n+a),a*=c/o),e.moveTo(s+n,l),e.lineTo(s+u-i,l),0!==i&&e.arc(s+u-i,l+i,i,-Math.PI/2,0),e.lineTo(s+u,l+c-r),0!==r&&e.arc(s+u-r,l+c-r,r,0,Math.PI/2),e.lineTo(s+a,l+c),0!==a&&e.arc(s+a,l+c-a,a,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}},Wr=He.retrieve2,Gr=He.retrieve3,Vr=He.each,qr=He.normalizeCssArray,Zr=He.isString,Xr=He.isObject,Kr=Vi.ContextCachedBy,$r=Vi.WILL_BE_RESTORED,Qr=jr.DEFAULT_FONT,Jr={left:1,right:1,center:1},ea={top:1,bottom:1,middle:1},ta=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],na={},ia={};function ra(e){if(e){e.font=jr.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||Jr[t]?t:"left";var n=e.textVerticalAlign||e.textBaseline;"center"===n&&(n="middle"),e.textVerticalAlign=null==n||ea[n]?n:"top",e.textPadding&&(e.textPadding=qr(e.textPadding))}}function aa(e,t,n,i,r){if(n&&t.textRotation){var a=t.textOrigin;"center"===a?(i=n.width/2+n.x,r=n.height/2+n.y):a&&(i=a[0]+n.x,r=a[1]+n.y),e.translate(i,r),e.rotate(-t.textRotation),e.translate(-i,-r)}}function oa(e,t,n,i,r,a,o,s){var l=i.rich[n.styleName]||{};l.text=n.text;var u=n.textVerticalAlign,c=a+r/2;"top"===u?c=a+n.height/2:"bottom"===u&&(c=a+r-n.height/2),!n.isLineHolder&&sa(l)&&la(e,t,l,"right"===s?o-n.width:"center"===s?o-n.width/2:o,c-n.height/2,n.width,n.height);var h=n.textPadding;h&&(o=ga(o,s,h),c-=n.height/2-h[2]-n.textHeight/2),ha(t,"shadowBlur",Gr(l.textShadowBlur,i.textShadowBlur,0)),ha(t,"shadowColor",l.textShadowColor||i.textShadowColor||"transparent"),ha(t,"shadowOffsetX",Gr(l.textShadowOffsetX,i.textShadowOffsetX,0)),ha(t,"shadowOffsetY",Gr(l.textShadowOffsetY,i.textShadowOffsetY,0)),ha(t,"textAlign",s),ha(t,"textBaseline","middle"),ha(t,"font",n.font||Qr);var d=da(l.textStroke||i.textStroke,p),f=fa(l.textFill||i.textFill),p=Wr(l.textStrokeWidth,i.textStrokeWidth);d&&(ha(t,"lineWidth",p),ha(t,"strokeStyle",d),t.strokeText(n.text,o,c)),f&&(ha(t,"fillStyle",f),t.fillText(n.text,o,c))}function sa(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function la(e,t,n,i,r,a,o){var s=n.textBackgroundColor,l=n.textBorderWidth,u=n.textBorderColor,c=Zr(s);if(ha(t,"shadowBlur",n.textBoxShadowBlur||0),ha(t,"shadowColor",n.textBoxShadowColor||"transparent"),ha(t,"shadowOffsetX",n.textBoxShadowOffsetX||0),ha(t,"shadowOffsetY",n.textBoxShadowOffsetY||0),c||l&&u){t.beginPath();var h=n.textBorderRadius;h?Ur.buildPath(t,{x:i,y:r,width:a,height:o,r:h}):t.rect(i,r,a,o),t.closePath()}if(c)if(ha(t,"fillStyle",s),null!=n.fillOpacity){var d=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,t.fill(),t.globalAlpha=d}else t.fill();else if(Xr(s)){var f=s.image;(f=pr.createOrUpdateImage(f,null,e,ua,s))&&pr.isImageReady(f)&&t.drawImage(f,i,r,a,o)}if(l&&u)if(ha(t,"lineWidth",l),ha(t,"strokeStyle",u),null!=n.strokeOpacity){d=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,t.stroke(),t.globalAlpha=d}else t.stroke()}function ua(e,t){t.image=e}function ca(e,t,n,i){var r=n.x||0,a=n.y||0,o=n.textAlign,s=n.textVerticalAlign;if(i){var l=n.textPosition;if(l instanceof Array)r=i.x+pa(l[0],i.width),a=i.y+pa(l[1],i.height);else{var u=t&&t.calculateTextPosition?t.calculateTextPosition(na,n,i):jr.calculateTextPosition(na,n,i);r=u.x,a=u.y,o=o||u.textAlign,s=s||u.textVerticalAlign}var c=n.textOffset;c&&(r+=c[0],a+=c[1])}return(e=e||{}).baseX=r,e.baseY=a,e.textAlign=o,e.textVerticalAlign=s,e}function ha(e,t,n){return e[t]=Gi(e,t,n),e[t]}function da(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function fa(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function pa(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ga(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}var ma=function(e){return ra(e),Vr(e.rich,ra),e},va=function(e,t,n,i,r,a){i.rich?function(e,t,n,i,r,a){a!==$r&&(t.__attrCachedBy=Kr.NONE);var o=e.__textCotentBlock;o&&!e.__dirtyText||(o=e.__textCotentBlock=jr.parseRichText(n,i));!function(e,t,n,i,r){var a=n.width,o=n.outerWidth,s=n.outerHeight,l=i.textPadding,u=ca(ia,e,i,r),c=u.baseX,h=u.baseY,d=u.textAlign,f=u.textVerticalAlign;aa(t,i,r,c,h);var p=jr.adjustTextX(c,o,d),g=jr.adjustTextY(h,s,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+a;sa(i)&&la(e,t,i,p,g,o,s);for(var _=0;_<n.lines.length;_++){for(var x,b=n.lines[_],w=b.tokens,T=w.length,S=b.lineHeight,O=b.width,M=0,D=m,A=y,k=T-1;M<T&&(!(x=w[M]).textAlign||"left"===x.textAlign);)oa(e,t,x,i,S,v,D,"left"),O-=x.width,D+=x.width,M++;for(;k>=0&&"right"===(x=w[k]).textAlign;)oa(e,t,x,i,S,v,A,"right"),O-=x.width,A-=x.width,k--;for(D+=(a-(D-m)-(y-A)-O)/2;M<=k;)oa(e,t,x=w[M],i,S,v,D+x.width/2,"center"),D+=x.width,M++;v+=S}}(e,t,o,i,r)}(e,t,n,i,r,a):function(e,t,n,i,r,a){var o,s=sa(i),l=!1,u=t.__attrCachedBy===Kr.PLAIN_TEXT;a!==$r?(a&&(o=a.style,l=!s&&u&&o),t.__attrCachedBy=s?Kr.NONE:Kr.PLAIN_TEXT):u&&(t.__attrCachedBy=Kr.NONE);var c=i.font||Qr;l&&c===(o.font||Qr)||(t.font=c);var h=e.__computedFont;e.__styleFont!==c&&(e.__styleFont=c,h=e.__computedFont=t.font);var d=i.textPadding,f=i.textLineHeight,p=e.__textCotentBlock;p&&!e.__dirtyText||(p=e.__textCotentBlock=jr.parsePlainText(n,h,d,f,i.truncate));var g=p.outerHeight,m=p.lines,v=p.lineHeight,y=ca(ia,e,i,r),_=y.baseX,x=y.baseY,b=y.textAlign||"left",w=y.textVerticalAlign;aa(t,i,r,_,x);var T=jr.adjustTextY(x,g,w),S=_,O=T;if(s||d){var M=jr.getWidth(n,h);d&&(M+=d[1]+d[3]);var D=jr.adjustTextX(_,M,b);s&&la(e,t,i,D,T,M,g),d&&(S=ga(_,b,d),O+=d[0])}t.textAlign=b,t.textBaseline="middle",t.globalAlpha=i.opacity||1;for(var A=0;A<ta.length;A++){var k=ta[A],I=k[0],C=k[1],E=i[I];l&&E===o[I]||(t[C]=Gi(t,C,E||k[2]))}O+=v/2;var N=i.textStrokeWidth,R=l?o.textStrokeWidth:null,L=!l||N!==R,P=!l||L||i.textStroke!==o.textStroke,z=da(i.textStroke,N),Y=fa(i.textFill);z&&(L&&(t.lineWidth=N),P&&(t.strokeStyle=z));Y&&(l&&i.textFill===o.textFill||(t.fillStyle=Y));if(1===m.length)z&&t.strokeText(m[0],S,O),Y&&t.fillText(m[0],S,O);else for(A=0;A<m.length;A++)z&&t.strokeText(m[A],S,O),Y&&t.fillText(m[A],S,O),O+=v}(e,t,n,i,r,a)},ya=function(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)},_a={normalizeTextStyle:ma,renderText:va,getBoxPosition:ca,getStroke:da,getFill:fa,parsePercent:pa,needDrawText:ya},xa=Vi.WILL_BE_RESTORED,ba=new Ii,wa=function(){};wa.prototype={constructor:wa,drawRectText:function(e,t){var n=this.style;t=n.textRect||t,this.__dirty&&_a.normalizeTextStyle(n,!0);var i=n.text;if(null!=i&&(i+=""),_a.needDrawText(i,n)){e.save();var r=this.transform;n.transformText?this.setTransform(e):r&&(ba.copy(t),ba.applyTransform(r),t=ba),_a.renderText(this,e,i,n,t,xa),e.restore()}}};var Ta=wa;function Sa(e){for(var t in e=e||{},Oi.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new tr(e.style),this._rect=null,this.__clipPaths=null}Sa.prototype={constructor:Sa,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,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?Oi.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new tr(e),this.dirty(!1),this},calculateTextPosition:null},He.inherits(Sa,Oi),He.mixin(Sa,Ta);var Oa=Sa;function Ma(e){Oa.call(this,e)}Ma.prototype={constructor:Ma,type:"image",brush:function(e,t){var n=this.style,i=n.image;n.bind(e,this,t);var r=this._image=pr.createOrUpdateImage(i,this._image,this,this.onload);if(r&&pr.isImageReady(r)){var a=n.x||0,o=n.y||0,s=n.width,l=n.height,u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),this.setTransform(e),n.sWidth&&n.sHeight){var c=n.sx||0,h=n.sy||0;e.drawImage(r,c,h,n.sWidth,n.sHeight,a,o,s,l)}else if(n.sx&&n.sy){var d=s-(c=n.sx),f=l-(h=n.sy);e.drawImage(r,c,h,d,f,a,o,s,l)}else e.drawImage(r,a,o,s,l);null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new Ii(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},He.inherits(Ma,Oa);var Da=Ma,Aa=li.devicePixelRatio,ka=1e5,Ia=314159,Ca=.01;function Ea(e){return parseInt(e,10)}var Na=new Ii(0,0,0,0),Ra=new Ii(0,0,0,0);var La=function(e,t,n){this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=He.extend({},n||{}),this.dpr=n.devicePixelRatio||Aa,this._singleCanvas=i,this.root=e;var r=e.style;r&&(r["-webkit-tap-highlight-color"]="transparent",r["-webkit-user-select"]=r["user-select"]=r["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var a=this._zlevelList=[],o=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,i){var s=e.width,l=e.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,e.width=s*this.dpr,e.height=l*this.dpr,this._width=s,this._height=l;var u=new lr(e,this,this.dpr);u.__builtin__=!0,u.initContext(),o[314159]=u,u.zlevel=Ia,a.push(Ia),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var c=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(c)}this._hoverlayer=null,this._hoverElements=[]};La.prototype={constructor:La,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(e){var t=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,e,this._redrawId);for(var i=0;i<n.length;i++){var r=n[i],a=this._layers[r];if(!a.__builtin__&&a.refresh){var o=0===i?this._backgroundColor:null;a.refresh(o)}}return this.refreshHover(),this},addHover:function(e,t){if(!e.__hoverMir){var n=new e.constructor({style:e.style,shape:e.shape,z:e.z,z2:e.z2,silent:e.silent});return n.__from=e,e.__hoverMir=n,t&&n.setStyle(t),this._hoverElements.push(n),n}},removeHover:function(e){var t=e.__hoverMir,n=this._hoverElements,i=He.indexOf(n,t);i>=0&&n.splice(i,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,n=0;n<t.length;n++){var i=t[n].__from;i&&(i.__hoverMir=null)}t.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){Fi(e,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(ka));var i={};n.ctx.save();for(var r=0;r<t;){var a=e[r],o=a.__from;o&&o.__zr?(r++,o.invisible||(a.transform=o.transform,a.invTransform=o.invTransform,a.__clipPaths=o.__clipPaths,this._doPaintEl(a,n,!0,i))):(e.splice(r,1),o.__hoverMir=null,t--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(ka)},_paintList:function(e,t,n){if(this._redrawId===n){t=t||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!i){var r=this;ur((function(){r._paintList(e,t,n)}))}}},_compositeManually:function(){var e=this.getLayer(Ia).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},_doPaintList:function(e,t){for(var n=[],i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];(s=this._layers[r]).__builtin__&&s!==this._hoverlayer&&(s.__dirty||t)&&n.push(s)}for(var a=!0,o=0;o<n.length;o++){var s,l=(s=n[o]).ctx,u={};l.save();var c=t?s.__startIndex:s.__drawIndex,h=!t&&s.incremental&&Date.now,d=h&&Date.now(),f=s.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,f);else if(c===s.__startIndex){var p=e[c];p.incremental&&p.notClear&&!t||s.clear(!1,f)}-1===c&&(console.error("For some unknown reason. drawIndex is -1"),c=s.__startIndex);for(var g=c;g<s.__endIndex;g++){var m=e[g];if(this._doPaintEl(m,s,t,u),m.__dirty=m.__dirtyText=!1,h)if(Date.now()-d>15)break}s.__drawIndex=g,s.__drawIndex<s.__endIndex&&(a=!1),u.prevElClipPaths&&l.restore(),l.restore()}return ne.wxa&&He.each(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),a},_doPaintEl:function(e,t,n,i){var r=t.ctx,a=e.transform;if((t.__dirty||n)&&!e.invisible&&0!==e.style.opacity&&(!a||a[0]||a[3])&&(!e.culling||!function(e,t,n){return Na.copy(e.getBoundingRect()),e.transform&&Na.applyTransform(e.transform),Ra.width=t,Ra.height=n,!Na.intersect(Ra)}(e,this._width,this._height))){var o=e.__clipPaths,s=i.prevElClipPaths;s&&!function(e,t){if(e===t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(o,s)||(s&&(r.restore(),i.prevElClipPaths=null,i.prevEl=null),o&&(r.save(),function(e,t){for(var n=0;n<e.length;n++){var i=e[n];i.setTransform(t),t.beginPath(),i.buildPath(t,i.shape),t.clip(),i.restoreTransform(t)}}(o,r),i.prevElClipPaths=o)),e.beforeBrush&&e.beforeBrush(r),e.brush(r,i.prevEl||null),i.prevEl=e,e.afterBrush&&e.afterBrush(r)}},getLayer:function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Ia);var n=this._layers[e];return n||((n=new lr("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?He.merge(n,this._layerConfig[e],!0):this._layerConfig[e-Ca]&&He.merge(n,this._layerConfig[e-Ca],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},insertLayer:function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,a=null,o=-1,s=this._domRoot;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(r>0&&e>i[0]){for(o=0;o<r-1&&!(i[o]<e&&i[o+1]>e);o++);a=n[i[o]]}if(i.splice(o+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?s.insertBefore(t.dom,l.nextSibling):s.appendChild(t.dom)}else s.firstChild?s.insertBefore(t.dom,s.firstChild):s.appendChild(t.dom)}},eachLayer:function(e,t){var n,i,r=this._zlevelList;for(i=0;i<r.length;i++)n=r[i],e.call(t,this._layers[n],n)},eachBuiltinLayer:function(e,t){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],(n=this._layers[i]).__builtin__&&e.call(t,n,i)},eachOtherLayer:function(e,t){var n,i,r,a=this._zlevelList;for(r=0;r<a.length;r++)i=a[r],(n=this._layers[i]).__builtin__||e.call(t,n,i)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){function t(e){r&&(r.__endIndex!==e&&(r.__dirty=!0),r.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((o=e[n]).zlevel!==e[n-1].zlevel||o.incremental){this._needsManuallyCompositing=!0;break}}var i,r=null,a=0;for(n=0;n<e.length;n++){var o,s,l=(o=e[n]).zlevel;i!==l&&(i=l,a=0),o.incremental?((s=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):s=this.getLayer(l+(a>0?Ca:0),this._needsManuallyCompositing),s.__builtin__||ui("ZLevel "+l+" has been used by unkown layer "+s.id),s!==r&&(s.__used=!0,s.__startIndex!==n&&(s.__dirty=!0),s.__startIndex=n,s.incremental?s.__drawIndex=-1:s.__drawIndex=n,t(n),r=s),o.__dirty&&(s.__dirty=!0,s.incremental&&s.__drawIndex<0&&(s.__drawIndex=n))}t(n),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var n=this._layerConfig;n[e]?He.merge(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===e||r===e+Ca){var a=this._layers[r];He.merge(a,n[e],!0)}}}},delLayer:function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(He.indexOf(n,e),1))},resize:function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||t!==this._height){for(var r in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(e,t);He.each(this._progressiveLayers,(function(n){n.resize(e,t)})),this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(Ia).resize(e,t)}return this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new lr("image",this,e.pixelRatio||this.dpr);if(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height,r=t.ctx;this.eachLayer((function(e){e.__builtin__?r.drawImage(e.dom,0,0,n,i):e.renderToCanvas&&(t.ctx.save(),e.renderToCanvas(t.ctx),t.ctx.restore())}))}else for(var a={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var l=o[s];this._doPaintEl(l,t,!0,a)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],i=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[i]||Ea(s[n])||Ea(o.style[n]))-(Ea(s[r])||0)-(Ea(s[a])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),r=e.getBoundingRect(),a=e.style,o=a.shadowBlur*t,s=a.shadowOffsetX*t,l=a.shadowOffsetY*t,u=a.hasStroke()?a.lineWidth:0,c=Math.max(u/2,-s+o),h=Math.max(u/2,s+o),d=Math.max(u/2,-l+o),f=Math.max(u/2,l+o),p=r.width+c+h,g=r.height+d+f;n.width=p*t,n.height=g*t,i.scale(t,t),i.clearRect(0,0,p,g),i.dpr=t;var m={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[c-r.x,d-r.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(i);var v=new Da({style:{x:0,y:0,image:n}});return null!=m.position&&(v.position=e.position=m.position),null!=m.rotation&&(v.rotation=e.rotation=m.rotation),null!=m.scale&&(v.scale=e.scale=m.scale),v}};var Pa=La,za=Rt.Dispatcher,Ya=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,za.call(this)};Ya.prototype={constructor:Ya,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),n=0;n<t.length;n++)this.addClip(t[n])},removeClip:function(e){var t=He.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n<t.length;n++)this.removeClip(t[n]);e.animation=null},_update:function(){for(var e=(new Date).getTime()-this._pausedTime,t=e-this._time,n=this._clips,i=n.length,r=[],a=[],o=0;o<i;o++){var s=n[o],l=s.step(e,t);l&&(r.push(l),a.push(s))}for(o=0;o<i;)n[o]._needsRemove?(n[o]=n[i-1],n.pop(),i--):o++;i=r.length;for(o=0;o<i;o++)a[o].fire(r[o]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var e=this;this._running=!0,ur((function t(){e._running&&(ur(t),!e._paused&&e._update())}))},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=[]},isFinished:function(){return!this._clips.length},animate:function(e,t){var n=new oi(e,(t=t||{}).loop,t.getter,t.setter);return this.addAnimator(n),n}},He.mixin(Ya,za);var Ha,Fa,Ba=Ya,ja=Rt.addEventListener,Ua=Rt.removeEventListener,Wa=Rt.normalizeEvent,Ga=Rt.getNativeEvent,Va=ne.domSupported,qa=(Fa={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ha=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:He.map(Ha,(function(e){var t=e.replace("mouse","pointer");return Fa.hasOwnProperty(t)?t:e}))}),Za={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function Xa(e){return"mousewheel"===e&&ne.browser.firefox?"DOMMouseScroll":e}function Ka(e){var t=e.pointerType;return"pen"===t||"touch"===t}function $a(e){e&&(e.zrByTouch=!0)}function Qa(e,t){for(var n=t,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}function Ja(e,t){this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}var eo=Ja.prototype;eo.stopPropagation=eo.stopImmediatePropagation=eo.preventDefault=He.noop;var to={mousedown:function(e){e=Wa(this.dom,e),this._mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Wa(this.dom,e);var t=this._mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||so(this,!0),this.trigger("mousemove",e)},mouseup:function(e){e=Wa(this.dom,e),so(this,!1),this.trigger("mouseup",e)},mouseout:function(e){e=Wa(this.dom,e),this._pointerCapturing&&(e.zrEventControl="no_globalout");var t=e.toElement||e.relatedTarget;e.zrIsToLocalDOM=Qa(this,t),this.trigger("mouseout",e)},touchstart:function(e){$a(e=Wa(this.dom,e)),this._lastTouchMoment=new Date,this.handler.processGesture(e,"start"),to.mousemove.call(this,e),to.mousedown.call(this,e)},touchmove:function(e){$a(e=Wa(this.dom,e)),this.handler.processGesture(e,"change"),to.mousemove.call(this,e)},touchend:function(e){$a(e=Wa(this.dom,e)),this.handler.processGesture(e,"end"),to.mouseup.call(this,e),+new Date-this._lastTouchMoment<300&&to.click.call(this,e)},pointerdown:function(e){to.mousedown.call(this,e)},pointermove:function(e){Ka(e)||to.mousemove.call(this,e)},pointerup:function(e){to.mouseup.call(this,e)},pointerout:function(e){Ka(e)||to.mouseout.call(this,e)}};He.each(["click","mousewheel","dblclick","contextmenu"],(function(e){to[e]=function(t){t=Wa(this.dom,t),this.trigger(e,t)}}));var no={pointermove:function(e){Ka(e)||no.mousemove.call(this,e)},pointerup:function(e){no.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this._pointerCapturing;so(this,!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function io(e,t){var n=t.domHandlers;ne.pointerEventsSupported?He.each(qa.pointer,(function(i){ao(t,i,(function(t){n[i].call(e,t)}))})):(ne.touchEventsSupported&&He.each(qa.touch,(function(i){ao(t,i,(function(r){n[i].call(e,r),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),He.each(qa.mouse,(function(i){ao(t,i,(function(r){r=Ga(r),t.touching||n[i].call(e,r)}))})))}function ro(e,t){function n(n){ao(t,n,(function(i){i=Ga(i),Qa(e,i.target)||(i=function(e,t){return Wa(e.dom,new Ja(e,t),!0)}(e,i),t.domHandlers[n].call(e,i))}),{capture:!0})}ne.pointerEventsSupported?He.each(Za.pointer,n):ne.touchEventsSupported||He.each(Za.mouse,n)}function ao(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,ja(e.domTarget,Xa(t),n,i)}function oo(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Ua(e.domTarget,Xa(n),t[n],e.listenerOpts[n]);e.mounted={}}function so(e,t){if(e._mayPointerCapture=null,Va&&e._pointerCapturing^t){e._pointerCapturing=t;var n=e._globalHandlerScope;t?ro(e,n):oo(n)}}function lo(e,t){this.domTarget=e,this.domHandlers=t,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function uo(e,t){pt.call(this),this.dom=e,this.painterRoot=t,this._localHandlerScope=new lo(e,to),Va&&(this._globalHandlerScope=new lo(document,no)),this._pointerCapturing=!1,this._mayPointerCapture=null,io(this,this._localHandlerScope)}var co=uo.prototype;co.dispose=function(){oo(this._localHandlerScope),Va&&oo(this._globalHandlerScope)},co.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},He.mixin(uo,pt);var ho=uo,fo=!ne.canvasSupported,po={canvas:Pa},go={};var mo=function(e,t,n){n=n||{},this.dom=t,this.id=e;var i=this,r=new Ui,a=n.renderer;if(fo){if(!po.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");a="vml"}else a&&po[a]||(a="canvas");var o=new po[a](t,r,n,e);this.storage=r,this.painter=o;var s=ne.node||ne.worker?null:new ho(o.getViewportRoot(),o.root);this.handler=new Vt(r,o,s,o.root),this.animation=new Ba({stage:{update:He.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var l=r.delFromStorage,u=r.addToStorage;r.delFromStorage=function(e){l.call(r,e),e&&e.removeSelfFromZr(i)},r.addToStorage=function(e){u.call(r,e),e.addSelfToZr(i)}};mo.prototype={constructor:mo,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this._needsRefresh=!0},setBackgroundColor:function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var e;this._needsRefresh&&(e=!0,this.refreshImmediately()),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e&&this.trigger("rendered")},addHover:function(e,t){if(this.painter.addHover){var n=this.painter.addHover(e,t);return this.refreshHover(),n}},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),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(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,n){this.handler.on(e,t,n)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e=this.id,delete go[e]}};var vo=function(e,t){var n=new mo(te(),e,t);return go[n.id]=n,n},yo={version:"4.3.1",init:vo,dispose:function(e){if(e)e.dispose();else{for(var t in go)go.hasOwnProperty(t)&&go[t].dispose();go={}}return this},getInstance:function(e){return go[e]},registerPainter:function(e,t){po[e]=t}},_o=He.each,xo=He.isObject,bo=He.isArray,wo="series\0";function To(e){return e instanceof Array?e:null==e?[]:[e]}function So(e){return xo(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}var Oo=0;function Mo(e,t){return e&&e.hasOwnProperty(t)}var Do=function(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var a=n[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}},Ao=function(e,t){t=(t||[]).slice();var n=He.map(e||[],(function(e,t){return{exist:e}}));return _o(t,(function(e,i){if(xo(e)){for(var r=0;r<n.length;r++)if(!n[r].option&&null!=e.id&&n[r].exist.id===e.id+"")return n[r].option=e,void(t[i]=null);for(r=0;r<n.length;r++){var a=n[r].exist;if(!(n[r].option||null!=a.id&&null!=e.id||null==e.name||So(e)||So(a)||a.name!==e.name+""))return n[r].option=e,void(t[i]=null)}}})),_o(t,(function(e,t){if(xo(e)){for(var i=0;i<n.length;i++){var r=n[i].exist;if(!n[i].option&&!So(r)&&null==e.id){n[i].option=e;break}}i>=n.length&&n.push({option:e})}})),n},ko=function(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[a(n),a(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++)for(var a=e[i].seriesId,o=To(e[i].dataIndex),s=n&&n[a],l=0,u=o.length;l<u;l++){var c=o[l];s&&s[c]?s[c]=null:(t[a]||(t[a]={}))[c]=1}}function a(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=a(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}},Io=function(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n},Co=function(e,t){return e.getAttribute?e.getAttribute(t):e[t]},Eo={normalizeToArray:To,defaultEmphasis:Do,TEXT_STYLE_OPTIONS:["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],getDataItemValue:function(e){return!xo(e)||bo(e)||e instanceof Date?e:e.value},isDataItemOption:function(e){return xo(e)&&!(e instanceof Array)},mappingToExists:Ao,makeIdAndName:function(e){var t=He.createHashMap();_o(e,(function(e,n){var i=e.exist;i&&t.set(i.id,e)})),_o(e,(function(e,n){var i=e.option;He.assert(!i||null==i.id||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})})),_o(e,(function(e,n){var i=e.exist,r=e.option,a=e.keyInfo;if(xo(r)){if(a.name=null!=r.name?r.name+"":i?i.name:wo+n,i)a.id=i.id;else if(null!=r.id)a.id=r.id+"";else{var o=0;do{a.id="\0"+a.name+"\0"+o++}while(t.get(a.id))}t.set(a.id,e)}}))},isNameSpecified:function(e){var t=e.name;return!(!t||!t.indexOf(wo))},isIdInner:So,compressBatches:ko,queryDataIndex:function(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?He.isArray(t.dataIndex)?He.map(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?He.isArray(t.name)?He.map(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0},makeInner:function(){var e="__\0ec_inner_"+Oo+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}},parseFinder:function(e,t,n){if(He.isString(t)){var i={};i[t+"Index"]=0,t=i}var r=n&&n.defaultMainType;!r||Mo(t,r+"Index")||Mo(t,r+"Id")||Mo(t,r+"Name")||(t[r+"Index"]=0);var a={};return _o(t,(function(i,r){i=t[r];if("dataIndex"!==r&&"dataIndexInside"!==r){var o=r.match(/^(\w+)(Index|Id|Name)$/)||[],s=o[1],l=(o[2]||"").toLowerCase();if(!(!s||!l||null==i||"index"===l&&"none"===i||n&&n.includeMainTypes&&He.indexOf(n.includeMainTypes,s)<0)){var u={mainType:s};"index"===l&&"all"===i||(u[l]=i);var c=e.queryComponents(u);a[s+"Models"]=c,a[s+"Model"]=c[0]}}else a[r]=i})),a},setAttribute:Io,getAttribute:Co,getTooltipRenderMode:function(e){return"auto"===e?ne.domSupported?"html":"richText":e||"html"},groupData:function(e,t){var n=He.createHashMap(),i=[];return He.each(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}},No=".",Ro="___EC__COMPONENT__CONTAINER___";function Lo(e){var t={main:"",sub:""};return e&&(e=e.split(No),t.main=e[0]||"",t.sub=e[1]||""),t}var Po=0;function zo(e,t){var n=He.slice(arguments,2);return this.superClass.prototype[t].apply(e,n)}function Yo(e,t,n){return this.superClass.prototype[t].apply(e,n)}var Ho=function(e,t){e.$constructor=e,e.extend=function(e){var t=this,n=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return He.extend(n.prototype,e),n.extend=this.extend,n.superCall=zo,n.superApply=Yo,He.inherits(n,this),n.superClass=t,n}},Fo=function(e,t){t=t||{};var n={};if(e.registerClass=function(e,t){if(t)if(function(e){He.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}(t),(t=Lo(t)).sub){if(t.sub!==Ro){var i=function(e){var t=n[e.main];t&&t[Ro]||((t=n[e.main]={})[Ro]=!0);return t}(t);i[t.sub]=e}}else n[t.main]=e;return e},e.getClass=function(e,t,i){var r=n[e];if(r&&r[Ro]&&(r=t?r[t]:null),i&&!r)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){e=Lo(e);var t=[],i=n[e.main];return i&&i[Ro]?He.each(i,(function(e,n){n!==Ro&&t.push(e)})):t.push(i),t},e.hasClass=function(e){return e=Lo(e),!!n[e.main]},e.getAllClassMainTypes=function(){var e=[];return He.each(n,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){e=Lo(e);var t=n[e.main];return t&&t[Ro]},e.parseClassType=Lo,t.registerWhenExtend){var i=e.extend;i&&(e.extend=function(t){var n=i.call(this,t);return e.registerClass(n,t.type)})}return e},Bo={parseClassType:Lo,enableClassExtend:Ho,enableClassCheck:function(e){var t=["__\0is_clz",Po++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}},enableClassManagement:Fo,setReadOnly:function(e,t){}};var jo=function(e){for(var t=0;t<e.length;t++)e[t][1]||(e[t][1]=e[t][0]);return function(t,n,i){for(var r={},a=0;a<e.length;a++){var o=e[a][1];if(!(n&&He.indexOf(n,o)>=0||i&&He.indexOf(i,o)<0)){var s=t.getShallow(o);null!=s&&(r[e[a][0]]=s)}}return r}},Uo=jo([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Wo={getLineStyle:function(e){var t=Uo(this,e);return t.lineDash=this.getLineDash(t.lineWidth),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),n=Math.max(e,2),i=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[i,i]:[n,n])}},Go=Wo,Vo=jo([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),qo={getAreaStyle:function(e,t){return Vo(this,e,t)}},Zo=st.create,Xo=st.distSquare,Ko=Math.pow,$o=Math.sqrt,Qo=1e-8,Jo=1e-4,es=$o(3),ts=1/3,ns=Zo(),is=Zo(),rs=Zo();function as(e){return e>-Qo&&e<Qo}function os(e){return e>Qo||e<-Qo}function ss(e,t,n,i,r){var a=1-r;return a*a*(a*e+3*r*t)+r*r*(r*i+3*a*n)}function ls(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}var us=function(e,t,n,i,r,a){var o=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-r,c=s*s-3*o*l,h=s*l-9*o*u,d=l*l-3*s*u,f=0;if(as(c)&&as(h)){if(as(s))a[0]=0;else(S=-l/s)>=0&&S<=1&&(a[f++]=S)}else{var p=h*h-4*c*d;if(as(p)){var g=h/c,m=-g/2;(S=-s/o+g)>=0&&S<=1&&(a[f++]=S),m>=0&&m<=1&&(a[f++]=m)}else if(p>0){var v=$o(p),y=c*s+1.5*o*(-h+v),_=c*s+1.5*o*(-h-v);(S=(-s-((y=y<0?-Ko(-y,ts):Ko(y,ts))+(_=_<0?-Ko(-_,ts):Ko(_,ts))))/(3*o))>=0&&S<=1&&(a[f++]=S)}else{var x=(2*c*s-3*o*h)/(2*$o(c*c*c)),b=Math.acos(x)/3,w=$o(c),T=Math.cos(b),S=(-s-2*w*T)/(3*o),O=(m=(-s+w*(T+es*Math.sin(b)))/(3*o),(-s+w*(T-es*Math.sin(b)))/(3*o));S>=0&&S<=1&&(a[f++]=S),m>=0&&m<=1&&(a[f++]=m),O>=0&&O<=1&&(a[f++]=O)}}return f},cs=function(e,t,n,i,r){var a=6*n-12*t+6*e,o=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(as(o)){if(os(a))(c=-s/a)>=0&&c<=1&&(r[l++]=c)}else{var u=a*a-4*o*s;if(as(u))r[0]=-a/(2*o);else if(u>0){var c,h=$o(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l},hs=function(e,t,n,i,r,a){var o=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-o)*r+o,c=(l-s)*r+s,h=(c-u)*r+u;a[0]=e,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=c,a[6]=l,a[7]=i},ds=function(e,t,n,i,r,a,o,s,l,u,c){var h,d,f,p,g,m=.005,v=1/0;ns[0]=l,ns[1]=u;for(var y=0;y<1;y+=.05)is[0]=ss(e,n,r,o,y),is[1]=ss(t,i,a,s,y),(p=Xo(ns,is))<v&&(h=y,v=p);v=1/0;for(var _=0;_<32&&!(m<Jo);_++)d=h-m,f=h+m,is[0]=ss(e,n,r,o,d),is[1]=ss(t,i,a,s,d),p=Xo(is,ns),d>=0&&p<v?(h=d,v=p):(rs[0]=ss(e,n,r,o,f),rs[1]=ss(t,i,a,s,f),g=Xo(rs,ns),f<=1&&g<v?(h=f,v=g):m*=.5);return c&&(c[0]=ss(e,n,r,o,h),c[1]=ss(t,i,a,s,h)),$o(v)},fs=function(e,t,n,i,r){var a=e-2*t+n,o=2*(t-e),s=e-i,l=0;if(as(a)){if(os(o))(c=-s/o)>=0&&c<=1&&(r[l++]=c)}else{var u=o*o-4*a*s;if(as(u))(c=-o/(2*a))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=$o(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l},ps=function(e,t,n,i,r){var a=(t-e)*i+e,o=(n-t)*i+t,s=(o-a)*i+a;r[0]=e,r[1]=a,r[2]=s,r[3]=s,r[4]=o,r[5]=n},gs=function(e,t,n,i,r,a,o,s,l){var u,c=.005,h=1/0;ns[0]=o,ns[1]=s;for(var d=0;d<1;d+=.05){is[0]=ls(e,n,r,d),is[1]=ls(t,i,a,d),(m=Xo(ns,is))<h&&(u=d,h=m)}h=1/0;for(var f=0;f<32&&!(c<Jo);f++){var p=u-c,g=u+c;is[0]=ls(e,n,r,p),is[1]=ls(t,i,a,p);var m=Xo(is,ns);if(p>=0&&m<h)u=p,h=m;else{rs[0]=ls(e,n,r,g),rs[1]=ls(t,i,a,g);var v=Xo(rs,ns);g<=1&&v<h?(u=g,h=v):c*=.5}}return l&&(l[0]=ls(e,n,r,u),l[1]=ls(t,i,a,u)),$o(h)},ms={cubicAt:ss,cubicDerivativeAt:function(e,t,n,i,r){var a=1-r;return 3*(((t-e)*a+2*(n-t)*r)*a+(i-n)*r*r)},cubicRootAt:us,cubicExtrema:cs,cubicSubdivide:hs,cubicProjectPoint:ds,quadraticAt:ls,quadraticDerivativeAt:function(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))},quadraticRootAt:fs,quadraticExtremum:function(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i},quadraticSubdivide:ps,quadraticProjectPoint:gs},vs=Math.min,ys=Math.max,_s=Math.sin,xs=Math.cos,bs=2*Math.PI,ws=st.create(),Ts=st.create(),Ss=st.create();var Os=[],Ms=[];var Ds=function(e,t,n){if(0!==e.length){var i,r=e[0],a=r[0],o=r[0],s=r[1],l=r[1];for(i=1;i<e.length;i++)r=e[i],a=vs(a,r[0]),o=ys(o,r[0]),s=vs(s,r[1]),l=ys(l,r[1]);t[0]=a,t[1]=s,n[0]=o,n[1]=l}},As=function(e,t,n,i,r,a){r[0]=vs(e,n),r[1]=vs(t,i),a[0]=ys(e,n),a[1]=ys(t,i)},ks=function(e,t,n,i,r,a,o,s,l,u){var c,h=ms.cubicExtrema,d=ms.cubicAt,f=h(e,n,r,o,Os);for(l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0,c=0;c<f;c++){var p=d(e,n,r,o,Os[c]);l[0]=vs(p,l[0]),u[0]=ys(p,u[0])}for(f=h(t,i,a,s,Ms),c=0;c<f;c++){var g=d(t,i,a,s,Ms[c]);l[1]=vs(g,l[1]),u[1]=ys(g,u[1])}l[0]=vs(e,l[0]),u[0]=ys(e,u[0]),l[0]=vs(o,l[0]),u[0]=ys(o,u[0]),l[1]=vs(t,l[1]),u[1]=ys(t,u[1]),l[1]=vs(s,l[1]),u[1]=ys(s,u[1])},Is=function(e,t,n,i,r,a,o,s){var l=ms.quadraticExtremum,u=ms.quadraticAt,c=ys(vs(l(e,n,r),1),0),h=ys(vs(l(t,i,a),1),0),d=u(e,n,r,c),f=u(t,i,a,h);o[0]=vs(e,r,d),o[1]=vs(t,a,f),s[0]=ys(e,r,d),s[1]=ys(t,a,f)},Cs=function(e,t,n,i,r,a,o,s,l){var u=st.min,c=st.max,h=Math.abs(r-a);if(h%bs<1e-4&&h>1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(ws[0]=xs(r)*n+e,ws[1]=_s(r)*i+t,Ts[0]=xs(a)*n+e,Ts[1]=_s(a)*i+t,u(s,ws,Ts),c(l,ws,Ts),(r%=bs)<0&&(r+=bs),(a%=bs)<0&&(a+=bs),r>a&&!o?a+=bs:r<a&&o&&(r+=bs),o){var d=a;a=r,r=d}for(var f=0;f<a;f+=Math.PI/2)f>r&&(Ss[0]=xs(f)*n+e,Ss[1]=_s(f)*i+t,u(s,Ss,s),c(l,Ss,l))},Es={fromPoints:Ds,fromLine:As,fromCubic:ks,fromQuadratic:Is,fromArc:Cs},Ns=li.devicePixelRatio,Rs={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ls=[],Ps=[],zs=[],Ys=[],Hs=Math.min,Fs=Math.max,Bs=Math.cos,js=Math.sin,Us=Math.sqrt,Ws=Math.abs,Gs="undefined"!=typeof Float32Array,Vs=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};Vs.prototype={constructor:Vs,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t,n){n=n||0,this._ux=Ws(n/Ns/e)||0,this._uy=Ws(n/Ns/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(Rs.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var n=Ws(e-this._xi)>this._ux||Ws(t-this._yi)>this._uy||this._len<5;return this.addData(Rs.L,e,t),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,n,i,r,a){return this.addData(Rs.C,e,t,n,i,r,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,n,i,r,a):this._ctx.bezierCurveTo(e,t,n,i,r,a)),this._xi=r,this._yi=a,this},quadraticCurveTo:function(e,t,n,i){return this.addData(Rs.Q,e,t,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,n,i):this._ctx.quadraticCurveTo(e,t,n,i)),this._xi=n,this._yi=i,this},arc:function(e,t,n,i,r,a){return this.addData(Rs.A,e,t,n,n,i,r-i,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,a),this._xi=Bs(r)*n+e,this._yi=js(r)*n+t,this},arcTo:function(e,t,n,i,r){return this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},rect:function(e,t,n,i){return this._ctx&&this._ctx.rect(e,t,n,i),this.addData(Rs.R,e,t,n,i),this},closePath:function(){this.addData(Rs.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;n<e.length;n++)t+=e[n];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;this.data&&this.data.length===t||!Gs||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();Gs&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<t;r++)for(var a=e[r].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var n=0;n<arguments.length;n++)t[this._len++]=arguments[n];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var n,i,r=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,u=this._yi,c=e-l,h=t-u,d=Us(c*c+h*h),f=l,p=u,g=o.length;for(a<0&&(a=r+a),f-=(a%=r)*(c/=d),p-=a*(h/=d);c>0&&f<=e||c<0&&f>=e||0===c&&(h>0&&p<=t||h<0&&p>=t);)f+=c*(n=o[i=this._dashIdx]),p+=h*n,this._dashIdx=(i+1)%g,c>0&&f<l||c<0&&f>l||h>0&&p<u||h<0&&p>u||s[i%2?"moveTo":"lineTo"](c>=0?Hs(f,e):Fs(f,e),h>=0?Hs(p,t):Fs(p,t));c=f-e,h=p-t,this._dashOffset=-Us(c*c+h*h)},_dashedBezierTo:function(e,t,n,i,r,a){var o,s,l,u,c,h=this._dashSum,d=this._dashOffset,f=this._lineDash,p=this._ctx,g=this._xi,m=this._yi,v=ms.cubicAt,y=0,_=this._dashIdx,x=f.length,b=0;for(d<0&&(d=h+d),d%=h,o=0;o<1;o+=.1)s=v(g,e,n,r,o+.1)-v(g,e,n,r,o),l=v(m,t,i,a,o+.1)-v(m,t,i,a,o),y+=Us(s*s+l*l);for(;_<x&&!((b+=f[_])>d);_++);for(o=(b-d)/y;o<=1;)u=v(g,e,n,r,o),c=v(m,t,i,a,o),_%2?p.moveTo(u,c):p.lineTo(u,c),o+=f[_]/y,_=(_+1)%x;_%2!=0&&p.lineTo(r,a),s=r-u,l=a-c,this._dashOffset=-Us(s*s+l*l)},_dashedQuadraticTo:function(e,t,n,i){var r=n,a=i;n=(n+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,i,r,a)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,Gs&&(this.data=new Float32Array(e)))},getBoundingRect:function(){Ls[0]=Ls[1]=zs[0]=zs[1]=Number.MAX_VALUE,Ps[0]=Ps[1]=Ys[0]=Ys[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,i=0,r=0,a=0;a<e.length;){var o=e[a++];switch(1===a&&(i=t=e[a],r=n=e[a+1]),o){case Rs.M:t=i=e[a++],n=r=e[a++],zs[0]=i,zs[1]=r,Ys[0]=i,Ys[1]=r;break;case Rs.L:Es.fromLine(t,n,e[a],e[a+1],zs,Ys),t=e[a++],n=e[a++];break;case Rs.C:Es.fromCubic(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],zs,Ys),t=e[a++],n=e[a++];break;case Rs.Q:Es.fromQuadratic(t,n,e[a++],e[a++],e[a],e[a+1],zs,Ys),t=e[a++],n=e[a++];break;case Rs.A:var s=e[a++],l=e[a++],u=e[a++],c=e[a++],h=e[a++],d=e[a++]+h;a+=1;var f=1-e[a++];1===a&&(i=Bs(h)*u+s,r=js(h)*c+l),Es.fromArc(s,l,u,c,h,d,f,zs,Ys),t=Bs(d)*u+s,n=js(d)*c+l;break;case Rs.R:i=t=e[a++],r=n=e[a++];var p=e[a++],g=e[a++];Es.fromLine(i,r,i+p,r+g,zs,Ys);break;case Rs.Z:t=i,n=r}st.min(Ls,Ls,zs),st.max(Ps,Ps,Ys)}return 0===a&&(Ls[0]=Ls[1]=Ps[0]=Ps[1]=0),new Ii(Ls[0],Ls[1],Ps[0]-Ls[0],Ps[1]-Ls[1])},rebuildPath:function(e){for(var t,n,i,r,a,o,s=this.data,l=this._ux,u=this._uy,c=this._len,h=0;h<c;){var d=s[h++];switch(1===h&&(t=i=s[h],n=r=s[h+1]),d){case Rs.M:t=i=s[h++],n=r=s[h++],e.moveTo(i,r);break;case Rs.L:a=s[h++],o=s[h++],(Ws(a-i)>l||Ws(o-r)>u||h===c-1)&&(e.lineTo(a,o),i=a,r=o);break;case Rs.C:e.bezierCurveTo(s[h++],s[h++],s[h++],s[h++],s[h++],s[h++]),i=s[h-2],r=s[h-1];break;case Rs.Q:e.quadraticCurveTo(s[h++],s[h++],s[h++],s[h++]),i=s[h-2],r=s[h-1];break;case Rs.A:var f=s[h++],p=s[h++],g=s[h++],m=s[h++],v=s[h++],y=s[h++],_=s[h++],x=s[h++],b=g>m?g:m,w=g>m?1:g/m,T=g>m?m/g:1,S=v+y;Math.abs(g-m)>.001?(e.translate(f,p),e.rotate(_),e.scale(w,T),e.arc(0,0,b,v,S,1-x),e.scale(1/w,1/T),e.rotate(-_),e.translate(-f,-p)):e.arc(f,p,b,v,S,1-x),1===h&&(t=Bs(v)*g+f,n=js(v)*m+p),i=Bs(S)*g+f,r=js(S)*m+p;break;case Rs.R:t=i=s[h],n=r=s[h+1],e.rect(s[h++],s[h++],s[h++],s[h++]);break;case Rs.Z:e.closePath(),i=t,r=n}}}},Vs.CMD=Rs;var qs=Vs;var Zs={containStroke:function(e,t,n,i,r,a,o){if(0===r)return!1;var s=r,l=0;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e===n)return Math.abs(a-e)<=s/2;var u=(l=(t-i)/(e-n))*a-o+(e*i-n*t)/(e-n);return u*u/(l*l+1)<=s/2*s/2}};var Xs={containStroke:function(e,t,n,i,r,a,o,s,l,u,c){if(0===l)return!1;var h=l;return!(c>t+h&&c>i+h&&c>a+h&&c>s+h||c<t-h&&c<i-h&&c<a-h&&c<s-h||u>e+h&&u>n+h&&u>r+h&&u>o+h||u<e-h&&u<n-h&&u<r-h&&u<o-h)&&ms.cubicProjectPoint(e,t,n,i,r,a,o,s,u,c,null)<=h/2}},Ks=ms.quadraticProjectPoint;var $s={containStroke:function(e,t,n,i,r,a,o,s,l){if(0===o)return!1;var u=o;return!(l>t+u&&l>i+u&&l>a+u||l<t-u&&l<i-u&&l<a-u||s>e+u&&s>n+u&&s>r+u||s<e-u&&s<n-u&&s<r-u)&&Ks(e,t,n,i,r,a,s,l,null)<=u/2}},Qs=2*Math.PI;var Js={normalizeRadian:function(e){return(e%=Qs)<0&&(e+=Qs),e}},el=Js.normalizeRadian,tl=2*Math.PI;var nl={containStroke:function(e,t,n,i,r,a,o,s,l){if(0===o)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%tl<1e-4)return!0;if(a){var h=i;i=el(r),r=el(h)}else i=el(i),r=el(r);i>r&&(r+=tl);var d=Math.atan2(l,s);return d<0&&(d+=tl),d>=i&&d<=r||d+tl>=i&&d+tl<=r}};var il=function(e,t,n,i,r,a){if(a>t&&a>i||a<t&&a<i)return 0;if(i===t)return 0;var o=i<t?1:-1,s=(a-t)/(i-t);1!==s&&0!==s||(o=i<t?.5:-.5);var l=s*(n-e)+e;return l===r?1/0:l>r?o:0},rl=Js.normalizeRadian,al=qs.CMD,ol=2*Math.PI,sl=1e-4;var ll=[-1,-1,-1],ul=[-1,-1];function cl(e,t,n,i,r,a,o,s,l,u){if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var c,h=ms.cubicRootAt(t,i,a,s,u,ll);if(0===h)return 0;for(var d,f,p=0,g=-1,m=0;m<h;m++){var v=ll[m],y=0===v||1===v?.5:1;ms.cubicAt(e,n,r,o,v)<l||(g<0&&(g=ms.cubicExtrema(t,i,a,s,ul),ul[1]<ul[0]&&g>1&&(c=void 0,c=ul[0],ul[0]=ul[1],ul[1]=c),d=ms.cubicAt(t,i,a,s,ul[0]),g>1&&(f=ms.cubicAt(t,i,a,s,ul[1]))),2===g?v<ul[0]?p+=d<t?y:-y:v<ul[1]?p+=f<d?y:-y:p+=s<f?y:-y:v<ul[0]?p+=d<t?y:-y:p+=s<d?y:-y)}return p}function hl(e,t,n,i,r,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=ms.quadraticRootAt(t,i,a,s,ll);if(0===l)return 0;var u=ms.quadraticExtremum(t,i,a);if(u>=0&&u<=1){for(var c=0,h=ms.quadraticAt(t,i,a,u),d=0;d<l;d++){var f=0===ll[d]||1===ll[d]?.5:1;ms.quadraticAt(e,n,r,ll[d])<o||(ll[d]<u?c+=h<t?f:-f:c+=a<h?f:-f)}return c}f=0===ll[0]||1===ll[0]?.5:1;return ms.quadraticAt(e,n,r,ll[0])<o?0:a<t?f:-f}function dl(e,t,n,i,r,a,o,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ll[0]=-l,ll[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%ol<1e-4){i=0,r=ol;var c=a?1:-1;return o>=ll[0]+e&&o<=ll[1]+e?c:0}if(a){l=i;i=rl(r),r=rl(l)}else i=rl(i),r=rl(r);i>r&&(r+=ol);for(var h=0,d=0;d<2;d++){var f=ll[d];if(f+e>o){var p=Math.atan2(s,f);c=a?1:-1;p<0&&(p=ol+p),(p>=i&&p<=r||p+ol>=i&&p+ol<=r)&&(p>Math.PI/2&&p<1.5*Math.PI&&(c=-c),h+=c)}}return h}function fl(e,t,n,i,r){for(var a,o,s=0,l=0,u=0,c=0,h=0,d=0;d<e.length;){var f=e[d++];switch(f===al.M&&d>1&&(n||(s+=il(l,u,c,h,i,r))),1===d&&(c=l=e[d],h=u=e[d+1]),f){case al.M:l=c=e[d++],u=h=e[d++];break;case al.L:if(n){if(Zs.containStroke(l,u,e[d],e[d+1],t,i,r))return!0}else s+=il(l,u,e[d],e[d+1],i,r)||0;l=e[d++],u=e[d++];break;case al.C:if(n){if(Xs.containStroke(l,u,e[d++],e[d++],e[d++],e[d++],e[d],e[d+1],t,i,r))return!0}else s+=cl(l,u,e[d++],e[d++],e[d++],e[d++],e[d],e[d+1],i,r)||0;l=e[d++],u=e[d++];break;case al.Q:if(n){if($s.containStroke(l,u,e[d++],e[d++],e[d],e[d+1],t,i,r))return!0}else s+=hl(l,u,e[d++],e[d++],e[d],e[d+1],i,r)||0;l=e[d++],u=e[d++];break;case al.A:var p=e[d++],g=e[d++],m=e[d++],v=e[d++],y=e[d++],_=e[d++];d+=1;var x=1-e[d++],b=Math.cos(y)*m+p,w=Math.sin(y)*v+g;d>1?s+=il(l,u,b,w,i,r):(c=b,h=w);var T=(i-p)*v/m+p;if(n){if(nl.containStroke(p,g,v,y,y+_,x,t,T,r))return!0}else s+=dl(p,g,v,y,y+_,x,T,r);l=Math.cos(y+_)*m+p,u=Math.sin(y+_)*v+g;break;case al.R:c=l=e[d++],h=u=e[d++];b=c+e[d++],w=h+e[d++];if(n){if(Zs.containStroke(c,h,b,h,t,i,r)||Zs.containStroke(b,h,b,w,t,i,r)||Zs.containStroke(b,w,c,w,t,i,r)||Zs.containStroke(c,w,c,h,t,i,r))return!0}else s+=il(b,h,b,w,i,r),s+=il(c,w,c,h,i,r);break;case al.Z:if(n){if(Zs.containStroke(l,u,c,h,t,i,r))return!0}else s+=il(l,u,c,h,i,r);l=c,u=h}}return n||(a=u,o=h,Math.abs(a-o)<sl)||(s+=il(l,u,c,h,i,r)||0),0!==s}var pl={contain:function(e,t,n){return fl(e,0,!1,t,n)},containStroke:function(e,t,n,i){return fl(e,t,!0,n,i)}},gl=ir.prototype.getCanvasPattern,ml=Math.abs,vl=new qs(!0);function yl(e){Oa.call(this,e),this.path=null}yl.prototype={constructor:yl,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(e,t){var n,i=this.style,r=this.path||vl,a=i.hasStroke(),o=i.hasFill(),s=i.fill,l=i.stroke,u=o&&!!s.colorStops,c=a&&!!l.colorStops,h=o&&!!s.image,d=a&&!!l.image;(i.bind(e,this,t),this.setTransform(e),this.__dirty)&&(u&&(n=n||this.getBoundingRect(),this._fillGradient=i.getGradient(e,s,n)),c&&(n=n||this.getBoundingRect(),this._strokeGradient=i.getGradient(e,l,n)));u?e.fillStyle=this._fillGradient:h&&(e.fillStyle=gl.call(s,e)),c?e.strokeStyle=this._strokeGradient:d&&(e.strokeStyle=gl.call(l,e));var f=i.lineDash,p=i.lineDashOffset,g=!!e.setLineDash,m=this.getGlobalScale();if(r.setScale(m[0],m[1],this.segmentIgnoreThreshold),this.__dirtyPath||f&&!g&&a?(r.beginPath(e),f&&!g&&(r.setLineDash(f),r.setLineDashOffset(p)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),o)if(null!=i.fillOpacity){var v=e.globalAlpha;e.globalAlpha=i.fillOpacity*i.opacity,r.fill(e),e.globalAlpha=v}else r.fill(e);if(f&&g&&(e.setLineDash(f),e.lineDashOffset=p),a)if(null!=i.strokeOpacity){v=e.globalAlpha;e.globalAlpha=i.strokeOpacity*i.opacity,r.stroke(e),e.globalAlpha=v}else r.stroke(e);f&&g&&e.setLineDash([]),null!=i.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(e,t,n){},createPathProxy:function(){this.path=new qs},getBoundingRect:function(){var e=this._rect,t=this.style,n=!e;if(n){var i=this.path;i||(i=this.path=new qs),this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),e=i.getBoundingRect()}if(this._rect=e,t.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||n){r.copy(e);var a=t.lineWidth,o=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),o>1e-10&&(r.width+=a/o,r.height+=a/o,r.x-=a/o/2,r.y-=a/o/2)}return r}return e},contain:function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var a=this.path.data;if(r.hasStroke()){var o=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(r.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),pl.containStroke(a,o/s,e,t)))return!0}if(r.hasFill())return pl.contain(a,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):Oa.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var n=this.shape;if(n){if(He.isObject(e))for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);else n[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&ml(e[0]-1)>1e-10&&ml(e[3]-1)>1e-10?Math.sqrt(ml(e[0]*e[3]-e[2]*e[1])):1}},yl.extend=function(e){var t=function(t){yl.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var n=e.shape;if(n){this.shape=this.shape||{};var i=this.shape;for(var r in n)!i.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(i[r]=n[r])}e.init&&e.init.call(this,t)};for(var n in He.inherits(t,yl),e)"style"!==n&&"shape"!==n&&(t.prototype[n]=e[n]);return t},He.inherits(yl,Oa);var _l=yl,xl=st.applyTransform,bl=qs.CMD,wl=[[],[],[]],Tl=Math.sqrt,Sl=Math.atan2;var Ol=function(e,t){var n,i,r,a,o,s=e.data,l=bl.M,u=bl.C,c=bl.L,h=bl.R,d=bl.A,f=bl.Q;for(r=0,a=0;r<s.length;){switch(n=s[r++],a=r,i=0,n){case l:case c:i=1;break;case u:i=3;break;case f:i=2;break;case d:var p=t[4],g=t[5],m=Tl(t[0]*t[0]+t[1]*t[1]),v=Tl(t[2]*t[2]+t[3]*t[3]),y=Sl(-t[1]/v,t[0]/m);s[r]*=m,s[r++]+=p,s[r]*=v,s[r++]+=g,s[r++]*=m,s[r++]*=v,s[r++]+=y,s[r++]+=y,a=r+=2;break;case h:_[0]=s[r++],_[1]=s[r++],xl(_,_,t),s[a++]=_[0],s[a++]=_[1],_[0]+=s[r++],_[1]+=s[r++],xl(_,_,t),s[a++]=_[0],s[a++]=_[1]}for(o=0;o<i;o++){var _;(_=wl[o])[0]=s[r++],_[1]=s[r++],xl(_,_,t),s[a++]=_[0],s[a++]=_[1]}}},Ml=Math.sqrt,Dl=Math.sin,Al=Math.cos,kl=Math.PI,Il=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},Cl=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(Il(e)*Il(t))},El=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Cl(e,t))};function Nl(e,t,n,i,r,a,o,s,l,u,c){var h=l*(kl/180),d=Al(h)*(e-n)/2+Dl(h)*(t-i)/2,f=-1*Dl(h)*(e-n)/2+Al(h)*(t-i)/2,p=d*d/(o*o)+f*f/(s*s);p>1&&(o*=Ml(p),s*=Ml(p));var g=(r===a?-1:1)*Ml((o*o*(s*s)-o*o*(f*f)-s*s*(d*d))/(o*o*(f*f)+s*s*(d*d)))||0,m=g*o*f/s,v=g*-s*d/o,y=(e+n)/2+Al(h)*m-Dl(h)*v,_=(t+i)/2+Dl(h)*m+Al(h)*v,x=El([1,0],[(d-m)/o,(f-v)/s]),b=[(d-m)/o,(f-v)/s],w=[(-1*d-m)/o,(-1*f-v)/s],T=El(b,w);Cl(b,w)<=-1&&(T=kl),Cl(b,w)>=1&&(T=0),0===a&&T>0&&(T-=2*kl),1===a&&T<0&&(T+=2*kl),c.addData(u,y,_,o,s,x,T,h,a)}var Rl=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ll=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Pl(e,t){var n=function(e){if(!e)return new qs;for(var t,n=0,i=0,r=n,a=i,o=new qs,s=qs.CMD,l=e.match(Rl),u=0;u<l.length;u++){for(var c,h=l[u],d=h.charAt(0),f=h.match(Ll)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);for(var m=0;m<p;){var v,y,_,x,b,w,T,S=n,O=i;switch(d){case"l":n+=f[m++],i+=f[m++],c=s.L,o.addData(c,n,i);break;case"L":n=f[m++],i=f[m++],c=s.L,o.addData(c,n,i);break;case"m":n+=f[m++],i+=f[m++],c=s.M,o.addData(c,n,i),r=n,a=i,d="l";break;case"M":n=f[m++],i=f[m++],c=s.M,o.addData(c,n,i),r=n,a=i,d="L";break;case"h":n+=f[m++],c=s.L,o.addData(c,n,i);break;case"H":n=f[m++],c=s.L,o.addData(c,n,i);break;case"v":i+=f[m++],c=s.L,o.addData(c,n,i);break;case"V":i=f[m++],c=s.L,o.addData(c,n,i);break;case"C":c=s.C,o.addData(c,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),n=f[m-2],i=f[m-1];break;case"c":c=s.C,o.addData(c,f[m++]+n,f[m++]+i,f[m++]+n,f[m++]+i,f[m++]+n,f[m++]+i),n+=f[m-2],i+=f[m-1];break;case"S":v=n,y=i;var M=o.len(),D=o.data;t===s.C&&(v+=n-D[M-4],y+=i-D[M-3]),c=s.C,S=f[m++],O=f[m++],n=f[m++],i=f[m++],o.addData(c,v,y,S,O,n,i);break;case"s":v=n,y=i,M=o.len(),D=o.data,t===s.C&&(v+=n-D[M-4],y+=i-D[M-3]),c=s.C,S=n+f[m++],O=i+f[m++],n+=f[m++],i+=f[m++],o.addData(c,v,y,S,O,n,i);break;case"Q":S=f[m++],O=f[m++],n=f[m++],i=f[m++],c=s.Q,o.addData(c,S,O,n,i);break;case"q":S=f[m++]+n,O=f[m++]+i,n+=f[m++],i+=f[m++],c=s.Q,o.addData(c,S,O,n,i);break;case"T":v=n,y=i,M=o.len(),D=o.data,t===s.Q&&(v+=n-D[M-4],y+=i-D[M-3]),n=f[m++],i=f[m++],c=s.Q,o.addData(c,v,y,n,i);break;case"t":v=n,y=i,M=o.len(),D=o.data,t===s.Q&&(v+=n-D[M-4],y+=i-D[M-3]),n+=f[m++],i+=f[m++],c=s.Q,o.addData(c,v,y,n,i);break;case"A":_=f[m++],x=f[m++],b=f[m++],w=f[m++],T=f[m++],Nl(S=n,O=i,n=f[m++],i=f[m++],w,T,_,x,b,c=s.A,o);break;case"a":_=f[m++],x=f[m++],b=f[m++],w=f[m++],T=f[m++],Nl(S=n,O=i,n+=f[m++],i+=f[m++],w,T,_,x,b,c=s.A,o)}}"z"!==d&&"Z"!==d||(c=s.Z,o.addData(c),n=r,i=a),t=c}return o.toStatic(),o}(e);return(t=t||{}).buildPath=function(e){if(e.setData){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t)}else{var t=e;n.rebuildPath(t)}},t.applyTransform=function(e){Ol(n,e),this.dirty(!0)},t}var zl=function(e,t){for(var n=[],i=e.length,r=0;r<i;r++){var a=e[r];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),n.push(a.path)}var o=new _l(t);return o.createPathProxy(),o.buildPath=function(e){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t)},o},Yl={createFromString:function(e,t){return new _l(Pl(e,t))},extendFromString:function(e,t){return _l.extend(Pl(e,t))},mergePath:zl},Hl=Vi.ContextCachedBy,Fl=function(e){Oa.call(this,e)};Fl.prototype={constructor:Fl,type:"text",brush:function(e,t){var n=this.style;this.__dirty&&_a.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var i=n.text;null!=i&&(i+=""),_a.needDrawText(i,n)?(this.setTransform(e),_a.renderText(this,e,i,n,null,t),this.restoreTransform(e)):e.__attrCachedBy=Hl.NONE},getBoundingRect:function(){var e=this.style;if(this.__dirty&&_a.normalizeTextStyle(e,!0),!this._rect){e.text;var t=jr.getBoundingRect(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich);if(t.x+=e.x||0,t.y+=e.y||0,_a.getStroke(e.textStroke,e.textStrokeWidth)){var n=e.textStrokeWidth;t.x-=n/2,t.y-=n/2,t.width+=n,t.height+=n}this._rect=t}return this._rect}},He.inherits(Fl,Oa);var Bl=Fl,jl=_l.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}}),Ul=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];var Wl=function(e){return ne.browser.ie&&ne.browser.version>=11?function(){var t,n=this.__clipPaths,i=this.style;if(n)for(var r=0;r<n.length;r++){var a=n[r],o=a&&a.shape,s=a&&a.type;if(o&&("sector"===s&&o.startAngle===o.endAngle||"rect"===s&&(!o.width||!o.height))){for(var l=0;l<Ul.length;l++)Ul[l][2]=i[Ul[l][0]],i[Ul[l][0]]=Ul[l][1];t=!0;break}}if(e.apply(this,arguments),t)for(l=0;l<Ul.length;l++)i[Ul[l][0]]=Ul[l][2]}:e},Gl=_l.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:Wl(_l.prototype.brush),buildPath:function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=t.startAngle,s=t.endAngle,l=t.clockwise,u=Math.cos(o),c=Math.sin(o);e.moveTo(u*r+n,c*r+i),e.lineTo(u*a+n,c*a+i),e.arc(n,i,a,o,s,!l),e.lineTo(Math.cos(s)*r+n,Math.sin(s)*r+i),0!==r&&e.arc(n,i,r,s,o,l),e.closePath()}}),Vl=_l.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)}}),ql=Vl,Zl=st.distance;function Xl(e,t,n,i,r,a,o){var s=.5*(n-e),l=.5*(i-t);return(2*(t-n)+s+l)*o+(-3*(t-n)-2*s-l)*a+s*r+t}var Kl=function(e,t){for(var n=e.length,i=[],r=0,a=1;a<n;a++)r+=Zl(e[a-1],e[a]);var o=r/2;for(o=o<n?n:o,a=0;a<o;a++){var s,l,u,c=a/(o-1)*(t?n:n-1),h=Math.floor(c),d=c-h,f=e[h%n];t?(s=e[(h-1+n)%n],l=e[(h+1)%n],u=e[(h+2)%n]):(s=e[0===h?h:h-1],l=e[h>n-2?n-1:h+1],u=e[h>n-3?n-1:h+2]);var p=d*d,g=d*p;i.push([Xl(s[0],f[0],l[0],u[0],d,p,g),Xl(s[1],f[1],l[1],u[1],d,p,g)])}return i},$l=st.min,Ql=st.max,Jl=st.scale,eu=st.distance,tu=st.add,nu=st.clone,iu=st.sub;var ru=function(e,t,n,i){var r,a,o,s,l=[],u=[],c=[],h=[];if(i){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=e.length;d<f;d++)$l(o,o,e[d]),Ql(s,s,e[d]);$l(o,o,i[0]),Ql(s,s,i[1])}for(d=0,f=e.length;d<f;d++){var p=e[d];if(n)r=e[d?d-1:f-1],a=e[(d+1)%f];else{if(0===d||d===f-1){l.push(nu(e[d]));continue}r=e[d-1],a=e[d+1]}iu(u,a,r),Jl(u,u,t);var g=eu(p,r),m=eu(p,a),v=g+m;0!==v&&(g/=v,m/=v),Jl(c,u,-g),Jl(h,u,m);var y=tu([],p,c),_=tu([],p,h);i&&(Ql(y,y,o),$l(y,y,s),Ql(_,_,o),$l(_,_,s)),l.push(y),l.push(_)}return n&&l.push(l.shift()),l};var au=function(e,t,n){var i=t.points,r=t.smooth;if(i&&i.length>=2){if(r&&"spline"!==r){var a=ru(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var l=a[2*s],u=a[2*s+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{"spline"===r&&(i=Kl(i,n)),e.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}},ou={buildPath:au},su=_l.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){ou.buildPath(e,t,!0)}}),lu=_l.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){ou.buildPath(e,t,!1)}}),uu=Math.round;function cu(e,t,n){if(!t)return e;var i=uu(2*e);return(i+uu(t))%2==0?i/2:(i+(n?1:-1))/2}var hu=function(e,t,n){if(t){var i=t.x1,r=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=r,e.y1=a,e.y2=o;var s=n&&n.lineWidth;s&&(uu(2*i)===uu(2*r)&&(e.x1=e.x2=cu(i,s,!0)),uu(2*a)===uu(2*o)&&(e.y1=e.y2=cu(a,s,!0)))}},du=function(e,t,n){if(t){var i=t.x,r=t.y,a=t.width,o=t.height;e.x=i,e.y=r,e.width=a,e.height=o;var s=n&&n.lineWidth;s&&(e.x=cu(i,s,!0),e.y=cu(r,s,!0),e.width=Math.max(cu(i+a,s,!1)-e.x,0===a?0:1),e.height=Math.max(cu(r+o,s,!1)-e.y,0===o?0:1))}},fu={subPixelOptimizeLine:hu,subPixelOptimizeRect:du,subPixelOptimize:cu},pu=fu.subPixelOptimizeRect,gu={},mu=_l.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var n,i,r,a;this.subPixelOptimize?(pu(gu,t,this.style),n=gu.x,i=gu.y,r=gu.width,a=gu.height,gu.r=t.r,t=gu):(n=t.x,i=t.y,r=t.width,a=t.height),t.r?Ur.buildPath(e,t):e.rect(n,i,r,a),e.closePath()}}),vu=fu.subPixelOptimizeLine,yu={},_u=_l.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n,i,r,a;this.subPixelOptimize?(vu(yu,t,this.style),n=yu.x1,i=yu.y1,r=yu.x2,a=yu.y2):(n=t.x1,i=t.y1,r=t.x2,a=t.y2);var o=t.percent;0!==o&&(e.moveTo(n,i),o<1&&(r=n*(1-o)+r*o,a=i*(1-o)+a*o),e.lineTo(r,a))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}}),xu=ms.quadraticSubdivide,bu=ms.cubicSubdivide,wu=ms.quadraticAt,Tu=ms.cubicAt,Su=ms.quadraticDerivativeAt,Ou=ms.cubicDerivativeAt,Mu=[];function Du(e,t,n){var i=e.cpx2,r=e.cpy2;return null===i||null===r?[(n?Ou:Tu)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Ou:Tu)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Su:wu)(e.x1,e.cpx1,e.x2,t),(n?Su:wu)(e.y1,e.cpy1,e.y2,t)]}var Au=_l.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(e,t){var n=t.x1,i=t.y1,r=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,i),null==l||null==u?(c<1&&(xu(n,o,r,c,Mu),o=Mu[1],r=Mu[2],xu(i,s,a,c,Mu),s=Mu[1],a=Mu[2]),e.quadraticCurveTo(o,s,r,a)):(c<1&&(bu(n,o,l,r,c,Mu),o=Mu[1],l=Mu[2],r=Mu[3],bu(i,s,u,a,c,Mu),s=Mu[1],u=Mu[2],a=Mu[3]),e.bezierCurveTo(o,s,l,u,r,a)))},pointAt:function(e){return Du(this.shape,e,!1)},tangentAt:function(e){var t=Du(this.shape,e,!0);return st.normalize(t,t)}}),ku=_l.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(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(a),u=Math.sin(a);e.moveTo(l*r+n,u*r+i),e.arc(n,i,r,a,o,!s)}}),Iu=_l.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,n=0;n<t.length;n++)e=e||t[n].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},buildPath:function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),_l.prototype.getBoundingRect.call(this)}}),Cu=Iu,Eu=function(e){this.colorStops=e||[]};Eu.prototype={constructor:Eu,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var Nu=Eu,Ru=function(e,t,n,i,r,a){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,Nu.call(this,r)};Ru.prototype={constructor:Ru},He.inherits(Ru,Nu);var Lu=Ru,Pu=function(e,t,n,i,r){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==n?.5:n,this.type="radial",this.global=r||!1,Nu.call(this,i)};Pu.prototype={constructor:Pu},He.inherits(Pu,Nu);var zu=Pu,Yu=He.inherits;function Hu(e){Oa.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}Hu.prototype.incremental=!0,Hu.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},Hu.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},Hu.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},Hu.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},Hu.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},Hu.prototype.brush=function(e,t){for(var n=this._cursor;n<this._displayables.length;n++){(i=this._displayables[n]).beforeBrush&&i.beforeBrush(e),i.brush(e,n===this._cursor?null:this._displayables[n-1]),i.afterBrush&&i.afterBrush(e)}this._cursor=n;for(n=0;n<this._temporaryDisplayables.length;n++){var i;(i=this._temporaryDisplayables[n]).beforeBrush&&i.beforeBrush(e),i.brush(e,0===n?null:this._temporaryDisplayables[n-1]),i.afterBrush&&i.afterBrush(e)}this._temporaryDisplayables=[],this.notClear=!0};var Fu=[];Hu.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Ii(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Fu)),e.union(i)}this._rect=e}return this._rect},Hu.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(e,t))return!0}return!1},Yu(Hu,Oa);var Bu=Da,ju=Ei,Uu=Bl,Wu=jl,Gu=Gl,Vu=ql,qu=su,Zu=lu,Xu=mu,Ku=_u,$u=Au,Qu=ku,Ju=Cu,ec=Lu,tc=zu,nc=Ii,ic=Hu,rc=Math.max,ac=Math.min,oc={},sc=1,lc="emphasis",uc="normal",cc=1,hc={},dc={};function fc(e,t){dc[e]=t}function pc(e,t,n,i){var r=Yl.createFromString(e,t);return n&&("center"===i&&(n=gc(n,r.getBoundingRect())),vc(r,n)),r}function gc(e,t){var n,i=t.width/t.height,r=e.height*i;return n=r<=e.width?e.height:(r=e.width)/i,{x:e.x+e.width/2-r/2,y:e.y+e.height/2-n/2,width:r,height:n}}var mc=Yl.mergePath;function vc(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}var yc=fu.subPixelOptimize;function _c(e){return null!=e&&"none"!==e}var xc=He.createHashMap(),bc=0;function wc(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var n=e.__zr,i=e.useHoverLayer&&n&&"canvas"===n.painter.type;if(e.__highlighted=i?"layer":"plain",!(e.isGroup||!n&&e.useHoverLayer)){var r=e,a=e.style;i&&(a=(r=n.addHover(e)).style),Yc(a),i||function(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var n=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var i=e.style;for(var r in t)null!=t[r]&&(n[r]=i[r]);n.fill=i.fill,n.stroke=i.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}(r),a.extendFrom(t),Tc(a,t,"fill"),Tc(a,t,"stroke"),zc(a),i||(e.dirty(!1),e.z2+=sc)}}}function Tc(e,t,n){!_c(t[n])&&_c(e[n])&&(e[n]=function(e){if("string"!=typeof e)return e;var t=xc.get(e);return t||(t=Wn.lift(e,-.1),bc<1e4&&(xc.set(e,t),bc++)),t}(e[n]))}function Sc(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var n=e.style,i=e.__cachedNormalStl;i&&(Yc(n),e.setStyle(i),zc(n));var r=e.__cachedNormalZ2;null!=r&&e.z2-r===sc&&(e.z2=r)}}function Oc(e,t,n){var i,r=uc,a=uc;e.__highlighted&&(r=lc,i=!0),t(e,n),e.__highlighted&&(a=lc,i=!0),e.isGroup&&e.traverse((function(e){!e.isGroup&&t(e,n)})),i&&e.__highDownOnUpdate&&e.__highDownOnUpdate(r,a)}function Mc(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,Sc(e),wc(e))}function Dc(e){!Cc(this,e)&&!this.__highByOuter&&Oc(this,wc)}function Ac(e){!Cc(this,e)&&!this.__highByOuter&&Oc(this,Sc)}function kc(e){this.__highByOuter|=1<<(e||0),Oc(this,wc)}function Ic(e){!(this.__highByOuter&=~(1<<(e||0)))&&Oc(this,Sc)}function Cc(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Ec(e,t){var n=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!n||e.__highDownDispatcher){var i=n?"off":"on";e[i]("mouseover",Dc)[i]("mouseout",Ac),e[i]("emphasis",kc)[i]("normal",Ic),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n}}function Nc(e,t,n,i,r){return Rc(e,t,i,r),n&&He.extend(e,n),e}function Rc(e,t,n,i){if((n=n||oc).isRectText){var r;n.getTextPosition?r=n.getTextPosition(t,i):"outside"===(r=t.getShallow("position")||(i?null:"inside"))&&(r="top"),e.textPosition=r,e.textOffset=t.getShallow("offset");var a=t.getShallow("rotate");null!=a&&(a*=Math.PI/180),e.textRotation=a,e.textDistance=He.retrieve2(t.getShallow("distance"),i?null:5)}var o,s=t.ecModel,l=s&&s.option.textStyle,u=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||oc).rich;if(n)for(var i in t=t||{},n)n.hasOwnProperty(i)&&(t[i]=1);e=e.parentModel}return t}(t);if(u)for(var c in o={},u)if(u.hasOwnProperty(c)){var h=t.getModel(["rich",c]);Lc(o[c]={},h,l,n,i)}return e.rich=o,Lc(e,t,l,n,i,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),e}function Lc(e,t,n,i,r,a){n=!r&&n||oc,e.textFill=Pc(t.getShallow("color"),i)||n.color,e.textStroke=Pc(t.getShallow("textBorderColor"),i)||n.textBorderColor,e.textStrokeWidth=He.retrieve2(t.getShallow("textBorderWidth"),n.textBorderWidth),r||(a&&(e.insideRollbackOpt=i,zc(e)),null==e.textFill&&(e.textFill=i.autoColor)),e.fontStyle=t.getShallow("fontStyle")||n.fontStyle,e.fontWeight=t.getShallow("fontWeight")||n.fontWeight,e.fontSize=t.getShallow("fontSize")||n.fontSize,e.fontFamily=t.getShallow("fontFamily")||n.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),a&&i.disableBox||(e.textBackgroundColor=Pc(t.getShallow("backgroundColor"),i),e.textPadding=t.getShallow("padding"),e.textBorderColor=Pc(t.getShallow("borderColor"),i),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||n.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||n.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||n.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function Pc(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function zc(e){var t,n=e.textPosition,i=e.insideRollbackOpt;if(i&&null==e.textFill){var r=i.autoColor,a=i.isRectText,o=i.useInsideStyle,s=!1!==o&&(!0===o||a&&n&&"string"==typeof n&&n.indexOf("inside")>=0),l=!s&&null!=r;(s||l)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),s&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=r,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),l&&(e.textFill=r)}e.insideRollback=t}function Yc(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function Hc(e,t,n,i,r,a){if("function"==typeof r&&(a=r,r=null),i&&i.isAnimationEnabled()){var o=e?"Update":"",s=i.getShallow("animationDuration"+o),l=i.getShallow("animationEasing"+o),u=i.getShallow("animationDelay"+o);"function"==typeof u&&(u=u(r,i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null)),"function"==typeof s&&(s=s(r)),s>0?t.animateTo(n,s,u||0,l,a,!!a):(t.stopAnimation(),t.attr(n),a&&a())}else t.stopAnimation(),t.attr(n),a&&a()}function Fc(e,t,n,i,r){Hc(!0,e,t,n,i,r)}function Bc(e,t,n){return t&&!He.isArrayLike(t)&&(t=dn.getLocalTransform(t)),n&&(t=nn.invert([],t)),st.applyTransform([],e,t)}function jc(e,t,n,i,r,a,o,s){var l,u=n-e,c=i-t,h=o-r,d=s-a,f=Uc(h,d,u,c);if((l=f)<=1e-6&&l>=-1e-6)return!1;var p=e-r,g=t-a,m=Uc(p,g,u,c)/f;if(m<0||m>1)return!1;var v=Uc(p,g,h,d)/f;return!(v<0||v>1)}function Uc(e,t,n,i){return e*i-n*t}fc("circle",jl),fc("sector",Gl),fc("ring",ql),fc("polygon",su),fc("polyline",lu),fc("rect",mu),fc("line",_u),fc("bezierCurve",Au),fc("arc",ku);var Wc=function(e,t,n){var i=new Da({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(gc(t,r))}}});return i},Gc=function(e){return fu.subPixelOptimizeLine(e.shape,e.shape,e.style),e},Vc=function(e){return fu.subPixelOptimizeRect(e.shape,e.shape,e.style),e},qc=function(e,t,n){var i,r={isRectText:!0};!1===n?i=!0:r.autoColor=n,Rc(e,t,r,i)},Zc=function(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),a=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return a=Bc(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},Xc=function(e,t){return He.map(e,(function(e){var n=e[0];n=rc(n,t.x),n=ac(n,t.x+t.width);var i=e[1];return i=rc(i,t.y),[n,i=ac(i,t.y+t.height)]}))},Kc=function(e,t,n){var i=(t=He.extend({rectHover:!0},t)).style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),He.defaults(i,n),new Da(t)):pc(e.replace("path://",""),t,n,"center")},$c=function(e,t,n,i,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(jc(e,t,n,i,s[0],s[1],o[0],o[1]))return!0;o=s}},Qc={Image:Bu,Group:ju,Text:Uu,Circle:Wu,Sector:Gu,Ring:Vu,Polygon:qu,Polyline:Zu,Rect:Xu,Line:Ku,BezierCurve:$u,Arc:Qu,CompoundPath:Ju,LinearGradient:ec,RadialGradient:tc,BoundingRect:nc,IncrementalDisplayable:ic,Z2_EMPHASIS_LIFT:sc,CACHED_LABEL_STYLE_PROPERTIES:{color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},extendShape:function(e){return _l.extend(e)},extendPath:function(e,t){return Yl.extendFromString(e,t)},registerShape:fc,getShapeClass:function(e){if(dc.hasOwnProperty(e))return dc[e]},makePath:pc,makeImage:Wc,mergePath:mc,resizePath:vc,subPixelOptimizeLine:Gc,subPixelOptimizeRect:Vc,subPixelOptimize:yc,setElementHoverStyle:Mc,setHoverStyle:function(e,t){Ec(e,!0),Oc(e,Mc,t)},setAsHighDownDispatcher:Ec,isHighDownDispatcher:function(e){return!(!e||!e.__highDownDispatcher)},getHighlightDigit:function(e){var t=hc[e];return null==t&&cc<=32&&(t=hc[e]=cc++),t},setLabelStyle:function(e,t,n,i,r,a,o){var s,l=(r=r||oc).labelFetcher,u=r.labelDataIndex,c=r.labelDimIndex,h=r.labelProp,d=n.getShallow("show"),f=i.getShallow("show");(d||f)&&(l&&(s=l.getFormattedLabel(u,"normal",null,c,h)),null==s&&(s=He.isFunction(r.defaultText)?r.defaultText(u,r):r.defaultText));var p=d?s:null,g=f?He.retrieve2(l?l.getFormattedLabel(u,"emphasis",null,c,h):null,s):null;null==p&&null==g||(Nc(e,n,a,r),Nc(t,i,o,r,!0)),e.text=p,t.text=g},modifyLabelStyle:function(e,t,n){var i=e.style;t&&(Yc(i),e.setStyle(t),zc(i)),i=e.__hoverStl,n&&i&&(Yc(i),He.extend(i,n),zc(i))},setTextStyle:Nc,setText:qc,getFont:function(e,t){var n=t&&t.getModel("textStyle");return He.trim([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))},updateProps:Fc,initProps:function(e,t,n,i,r){Hc(!1,e,t,n,i,r)},getTransform:function(e,t){for(var n=nn.identity([]);e&&e!==t;)nn.mul(n,e.getLocalTransform(),n),e=e.parent;return n},applyTransform:Bc,transformDirection:Zc,groupTransition:function(e,t,n,i){if(e&&t){var r,a=(r={},e.traverse((function(e){!e.isGroup&&e.anid&&(r[e.anid]=e)})),r);t.traverse((function(e){if(!e.isGroup&&e.anid){var t=a[e.anid];if(t){var i=o(e);e.attr(o(t)),Fc(e,i,n,e.dataIndex)}}}))}function o(e){var t={position:st.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=He.extend({},e.shape)),t}},clipPointsByRect:Xc,clipRectByRect:function(e,t){var n=rc(e.x,t.x),i=ac(e.x+e.width,t.x+t.width),r=rc(e.y,t.y),a=ac(e.y+e.height,t.y+t.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}},createIcon:Kc,linePolygonIntersect:$c,lineLineIntersect:jc},Jc=["textStyle","color"],eh={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Jc):null)},getFont:function(){return Qc.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return jr.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}},th=eh,nh=jo([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),ih={getItemStyle:function(e,t){var n=nh(this,e,t),i=this.getBorderLineDash();return i&&(n.lineDash=i),n},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}},rh=ih,ah=Eo.makeInner,oh=Bo.enableClassExtend,sh=Bo.enableClassCheck,lh=He.mixin,uh=ah();function ch(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function hh(e,t,n){for(var i=0;i<t.length&&(!t[i]||null!=(e=e&&"object"==typeof e?e[t[i]]:null));i++);return null==e&&n&&(e=n.get(t)),e}function dh(e,t){var n=uh(e).getParent;return n?n.call(e,t):e.parentModel}ch.prototype={constructor:ch,init:null,mergeOption:function(e){He.merge(this.option,e,!0)},get:function(e,t){return null==e?this.option:hh(this.option,this.parsePath(e),!t&&dh(this,e))},getShallow:function(e,t){var n=this.option,i=null==n?n:n[e],r=!t&&dh(this,e);return null==i&&r&&(i=r.getShallow(e)),i},getModel:function(e,t){var n;return new ch(null==e?this.option:hh(this.option,e=this.parsePath(e)),t=t||(n=dh(this,e))&&n.getModel(e),this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new(0,this.constructor)(He.clone(this.option))},setReadOnly:function(e){},parsePath:function(e){return"string"==typeof e&&(e=e.split(".")),e},customizeGetParent:function(e){uh(this).getParent=e},isAnimationEnabled:function(){if(!ne.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},oh(ch),sh(ch),lh(ch,Go),lh(ch,qo),lh(ch,th),lh(ch,rh);var fh=ch,ph=Bo.parseClassType,gh=0;var mh={getUID:function(e){return[e||"",gh++,Math.random().toFixed(5)].join("_")},enableSubTypeDefaulter:function(e){var t={};return e.registerSubTypeDefaulter=function(e,n){e=ph(e),t[e.main]=n},e.determineSubType=function(n,i){var r=i.type;if(!r){var a=ph(n).main;e.hasSubTypes(n)&&t[a]&&(r=t[a](i))}return r},e},enableTopologicalTravel:function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,i,r,a){if(e.length){var o=function(e){var i={},r=[];return He.each(e,(function(a){var o=n(i,a),s=function(e,t){var n=[];return He.each(e,(function(e){He.indexOf(t,e)>=0&&n.push(e)})),n}(o.originalDeps=t(a),e);o.entryCount=s.length,0===o.entryCount&&r.push(a),He.each(s,(function(e){He.indexOf(o.predecessor,e)<0&&o.predecessor.push(e);var t=n(i,e);He.indexOf(t.successor,e)<0&&t.successor.push(a)}))})),{graph:i,noEntryList:r}}(i),s=o.graph,l=o.noEntryList,u={};for(He.each(e,(function(e){u[e]=!0}));l.length;){var c=l.pop(),h=s[c],d=!!u[c];d&&(r.call(a,c,h.originalDeps.slice()),delete u[c]),He.each(h.successor,d?p:f)}He.each(u,(function(){throw new Error("Circle dependency may exists")}))}function f(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function p(e){u[e]=!0,f(e)}}}},vh=1e-4;var yh=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function _h(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}var xh=function(e,t,n,i){var r=t[1]-t[0],a=n[1]-n[0];if(0===r)return 0===a?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/r*a+n[0]},bh=function(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),a=Math.round(n(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-r+a,0),20);return isFinite(o)?o:20},wh=function(e,t,n){if(!e[t])return 0;var i=He.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;for(var r=Math.pow(10,n),a=He.map(e,(function(e){return(isNaN(e)?0:e)/i*r*100})),o=100*r,s=He.map(a,(function(e){return Math.floor(e)})),l=He.reduce(s,(function(e,t){return e+t}),0),u=He.map(a,(function(e,t){return e-s[t]}));l<o;){for(var c=Number.NEGATIVE_INFINITY,h=null,d=0,f=u.length;d<f;++d)u[d]>c&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[t]/r},Th=function(e,t){var n=_h(e),i=Math.pow(10,n),r=e/i;return e=(t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+e.toFixed(n<0?-n:0):e},Sh=function(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],a=n-i;return a?r+a*(e[i]-r):r},Oh=function(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,a=e[i].close,o=0;o<2;o++)r[o]<=t&&(r[o]=t,a[o]=o?1:1-n),t=r[o],n=a[o];r[0]===r[1]&&a[0]*a[1]!=1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]==(n?-1:1)||!n&&s(e,t,1))}},Mh=function(e){return e-parseFloat(e)>=0},Dh={linearMap:xh,parsePercent:function(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n},round:function(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e},asc:function(e){return e.sort((function(e,t){return e-t})),e},getPrecision:function(e){if(e=+e,isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n},getPrecisionSafe:function(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var i=+t.slice(n+1);return i<0?-i:0}var r=t.indexOf(".");return r<0?0:t.length-1-r},getPixelPrecision:bh,getPercentWithPrecision:wh,MAX_SAFE_INTEGER:9007199254740991,remRadian:function(e){var t=2*Math.PI;return(e%t+t)%t},isRadianAroundZero:function(e){return e>-1e-4&&e<vh},parseDate:function(e){if(e instanceof Date)return e;if("string"==typeof e){var t=yh.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))},quantity:function(e){return Math.pow(10,_h(e))},quantityExponent:_h,nice:Th,quantile:Sh,reformIntervals:Oh,isNumeric:Mh};var Ah=He.normalizeCssArray,kh=/([&<>"'])/g,Ih={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ch(e){return null==e?"":(e+"").replace(kh,(function(e,t){return Ih[t]}))}var Eh=["a","b","c","d","e","f","g"],Nh=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Rh(e,t){return"0000".substr(0,t-(e+="").length)+e}var Lh=function(e,t,n){He.isArray(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],a=0;a<r.length;a++){var o=Eh[a];e=e.replace(Nh(o),Nh(o,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];e=e.replace(Nh(Eh[l],s),n?Ch(u):u)}return e},Ph=function(e,t,n){return He.each(t,(function(t,i){e=e.replace("{"+i+"}",n?Ch(t):t)})),e},zh=function(e,t){var n=(e=He.isString(e)?{color:e,extraCssText:t}:e||{}).color,i=e.type,r=(t=e.extraCssText,e.renderMode||"html"),a=e.markerId||"X";return n?"html"===r?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ch(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+Ch(n)+";"+(t||"")+'"></span>':{renderMode:r,content:"{marker"+a+"|}  ",style:{color:n}}:""},Yh=function(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=Dh.parseDate(t),r=n?"UTC":"",a=i["get"+r+"FullYear"](),o=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),c=i["get"+r+"Seconds"](),h=i["get"+r+"Milliseconds"]();return e=e.replace("MM",Rh(o,2)).replace("M",o).replace("yyyy",a).replace("yy",a%100).replace("dd",Rh(s,2)).replace("d",s).replace("hh",Rh(l,2)).replace("h",l).replace("mm",Rh(u,2)).replace("m",u).replace("ss",Rh(c,2)).replace("s",c).replace("SSS",Rh(h,3))},Hh=function(e,t,n,i,r,a,o,s){return jr.getBoundingRect(e,t,n,i,r,s,a,o)},Fh={addCommas:function(e){return isNaN(e)?"-":(e=(e+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")},toCamelCase:function(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e},normalizeCssArray:Ah,encodeHTML:Ch,formatTpl:Lh,formatTplSimple:Ph,getTooltipMarker:zh,formatTime:Yh,capitalFirst:function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},truncateText:jr.truncateText,getTextBoundingRect:function(e){return jr.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)},getTextRect:Hh,windowOpen:function(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location=e}else window.open(e,t)}},Bh=Dh.parsePercent,jh=He.each,Uh=["left","right","top","bottom","width","height"],Wh=[["width","left","right"],["height","top","bottom"]];function Gh(e,t,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,u){var c,h,d=l.position,f=l.getBoundingRect(),p=t.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===e){var m=f.width+(g?-g.x+f.x:0);(c=a+m)>i||l.newline?(a=0,c=m,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);(h=o+v)>r||l.newline?(a+=s+n,o=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=a,d[1]=o,"horizontal"===e?a=c+n:o=h+n)}))}var Vh=Gh,qh=He.curry(Gh,"vertical"),Zh=He.curry(Gh,"horizontal");function Xh(e,t,n){n=Fh.normalizeCssArray(n||0);var i=t.width,r=t.height,a=Bh(e.left,i),o=Bh(e.top,r),s=Bh(e.right,i),l=Bh(e.bottom,r),u=Bh(e.width,i),c=Bh(e.height,r),h=n[2]+n[0],d=n[1]+n[3],f=e.aspect;switch(isNaN(u)&&(u=i-s-d-a),isNaN(c)&&(c=r-l-h-o),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(a)&&(a=i-s-u-d),isNaN(o)&&(o=r-l-c-h),e.left||e.right){case"center":a=i/2-u/2-n[3];break;case"right":a=i-u-d}switch(e.top||e.bottom){case"middle":case"center":o=r/2-c/2-n[0];break;case"bottom":o=r-c-h}a=a||0,o=o||0,isNaN(u)&&(u=i-d-a-(s||0)),isNaN(c)&&(c=r-h-o-(l||0));var p=new Ii(a+n[3],o+n[0],u,c);return p.margin=n,p}function Kh(e,t){return t&&e&&jh(Uh,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var $h=function(e,t,n,i,r){var a=!r||!r.hv||r.hv[0],o=!r||!r.hv||r.hv[1],s=r&&r.boundingMode||"all";if(a||o){var l;if("raw"===s)l="group"===e.type?new Ii(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();(l=l.clone()).applyTransform(u)}t=Xh(He.defaults({width:l.width,height:l.height},t),n,i);var c=e.position,h=a?t.x-l.x:0,d=o?t.y-l.y:0;e.attr("position","raw"===s?[h,d]:[c[0]+h,c[1]+d])}},Qh=function(e,t,n){!He.isObject(n)&&(n={});var i=n.ignoreSize;!He.isArray(i)&&(i=[i,i]);var r=o(Wh[0],0),a=o(Wh[1],1);function o(n,r){var a={},o=0,u={},c=0;if(jh(n,(function(t){u[t]=e[t]})),jh(n,(function(e){s(t,e)&&(a[e]=u[e]=t[e]),l(a,e)&&o++,l(u,e)&&c++})),i[r])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2!==c&&o){if(o>=2)return a;for(var h=0;h<n.length;h++){var d=n[h];if(!s(a,d)&&s(e,d)){a[d]=e[d];break}}return a}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){jh(e,(function(e){t[e]=n[e]}))}u(Wh[0],e,r),u(Wh[1],e,a)},Jh={LOCATION_PARAMS:Uh,HV_NAMES:Wh,box:Vh,vbox:qh,hbox:Zh,getAvailableSize:function(e,t,n){var i=t.width,r=t.height,a=Bh(e.x,i),o=Bh(e.y,r),s=Bh(e.x2,i),l=Bh(e.y2,r);return(isNaN(a)||isNaN(parseFloat(e.x)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.x2)))&&(s=i),(isNaN(o)||isNaN(parseFloat(e.y)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.y2)))&&(l=r),n=Fh.normalizeCssArray(n||0),{width:Math.max(s-a-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}},getLayoutRect:Xh,positionElement:$h,sizeCalculable:function(e,t){return null!=e[Wh[t][0]]||null!=e[Wh[t][1]]&&null!=e[Wh[t][2]]},mergeLayoutParam:Qh,getLayoutParams:function(e){return Kh({},e)},copyLayoutParams:Kh},ed={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")}}},td=Bo.enableClassManagement,nd=Bo.parseClassType,id=(0,Eo.makeInner)(),rd=fh.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,n,i){fh.call(this,e,t,n,i),this.uid=mh.getUID("ec_cpt_model")},init:function(e,t,n,i){this.mergeDefaultAndTheme(e,n)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?Jh.getLayoutParams(e):{},r=t.getTheme();He.merge(e,r.get(this.mainType)),He.merge(e,this.getDefaultOption()),n&&Jh.mergeLayoutParam(e,i,n)},mergeOption:function(e,t){He.merge(this.option,e,!0);var n=this.layoutMode;n&&Jh.mergeLayoutParam(this.option,e,n)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=id(this);if(!e.defaultOption){for(var t=[],n=this.constructor;n;){var i=n.prototype.defaultOption;i&&t.push(i),n=n.superClass}for(var r={},a=t.length-1;a>=0;a--)r=He.merge(r,t[a],!0);e.defaultOption=r}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});td(rd,{registerWhenExtend:!0}),mh.enableSubTypeDefaulter(rd),mh.enableTopologicalTravel(rd,(function(e){var t=[];He.each(rd.getClassesByMainType(e),(function(e){t=t.concat(e.prototype.dependencies||[])})),t=He.map(t,(function(e){return nd(e).main})),"dataset"!==e&&He.indexOf(t,"dataset")<=0&&t.unshift("dataset");return t})),He.mixin(rd,ed);var ad=rd,od="";"undefined"!=typeof navigator&&(od=navigator.platform||"");var sd={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:od.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},ld=Eo.makeInner,ud=Eo.normalizeToArray,cd=ld();var hd={clearColorPalette:function(){cd(this).colorIdx=0,cd(this).colorNameMap={}},getColorFromPalette:function(e,t,n){var i=cd(t=t||this),r=i.colorIdx||0,a=i.colorNameMap=i.colorNameMap||{};if(a.hasOwnProperty(e))return a[e];var o=ud(this.get("color",!0)),s=this.get("colorLayer",!0),l=null!=n&&s?function(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}(s,n):o;if((l=l||o)&&l.length){var u=l[r];return e&&(a[e]=u),i.colorIdx=(r+1)%l.length,u}}},dd=hd,fd={SOURCE_FORMAT_ORIGINAL:"original",SOURCE_FORMAT_ARRAY_ROWS:"arrayRows",SOURCE_FORMAT_OBJECT_ROWS:"objectRows",SOURCE_FORMAT_KEYED_COLUMNS:"keyedColumns",SOURCE_FORMAT_UNKNOWN:"unknown",SOURCE_FORMAT_TYPED_ARRAY:"typedArray",SERIES_LAYOUT_BY_COLUMN:"column",SERIES_LAYOUT_BY_ROW:"row"},pd=He.createHashMap,gd=He.isTypedArray,md=Bo.enableClassCheck,vd=fd.SOURCE_FORMAT_ORIGINAL,yd=fd.SERIES_LAYOUT_BY_COLUMN,_d=fd.SOURCE_FORMAT_UNKNOWN,xd=fd.SOURCE_FORMAT_TYPED_ARRAY,bd=fd.SOURCE_FORMAT_KEYED_COLUMNS;function wd(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===bd?{}:[]),this.sourceFormat=e.sourceFormat||_d,this.seriesLayoutBy=e.seriesLayoutBy||yd,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&pd(e.encodeDefine),this.startIndex=e.startIndex||0,this.dimensionsDetectCount=e.dimensionsDetectCount}wd.seriesDataToSource=function(e){return new wd({data:e,sourceFormat:gd(e)?xd:vd,fromDataset:!1})},md(wd);var Td=wd,Sd=Eo.makeInner,Od=Eo.getDataItemValue,Md=He.createHashMap,Dd=He.each,Ad=He.map,kd=He.isArray,Id=He.isString,Cd=He.isObject,Ed=He.isTypedArray,Nd=He.isArrayLike,Rd=He.extend,Ld=fd.SOURCE_FORMAT_ORIGINAL,Pd=fd.SOURCE_FORMAT_ARRAY_ROWS,zd=fd.SOURCE_FORMAT_OBJECT_ROWS,Yd=fd.SOURCE_FORMAT_KEYED_COLUMNS,Hd=fd.SOURCE_FORMAT_UNKNOWN,Fd=fd.SOURCE_FORMAT_TYPED_ARRAY,Bd=fd.SERIES_LAYOUT_BY_ROW,jd={Must:1,Might:2,Not:3},Ud=Sd();function Wd(e){if(e){var t=Md();return Ad(e,(function(e,n){if(null==(e=Rd({},Cd(e)?e:{name:e})).name)return e;e.name+="",null==e.displayName&&(e.displayName=e.name);var i=t.get(e.name);return i?e.name+="-"+i.count++:t.set(e.name,{count:1}),e}))}}function Gd(e,t,n,i){if(null==i&&(i=1/0),t===Bd)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else{var a=n[0]||[];for(r=0;r<a.length&&r<i;r++)e(a[r],r)}}function Vd(e){var t=e.option;if(!t.data)return e.ecModel.getComponent("dataset",t.datasetIndex||0)}function qd(e,t,n,i,r,a){var o,s,l;if(Ed(e))return jd.Not;if(i){var u=i[a];Cd(u)?(s=u.name,l=u.type):Id(u)&&(s=u)}if(null!=l)return"ordinal"===l?jd.Must:jd.Not;if(t===Pd)if(n===Bd){for(var c=e[a],h=0;h<(c||[]).length&&h<5;h++)if(null!=(o=g(c[r+h])))return o}else for(h=0;h<e.length&&h<5;h++){var d=e[r+h];if(d&&null!=(o=g(d[a])))return o}else if(t===zd){if(!s)return jd.Not;for(h=0;h<e.length&&h<5;h++){if((f=e[h])&&null!=(o=g(f[s])))return o}}else if(t===Yd){if(!s)return jd.Not;if(!(c=e[s])||Ed(c))return jd.Not;for(h=0;h<c.length&&h<5;h++)if(null!=(o=g(c[h])))return o}else if(t===Ld)for(h=0;h<e.length&&h<5;h++){var f=e[h],p=Od(f);if(!kd(p))return jd.Not;if(null!=(o=g(p[a])))return o}function g(e){var t=Id(e);return null!=e&&isFinite(e)&&""!==e?t?jd.Might:jd.Not:t&&"-"!==e?jd.Must:void 0}return jd.Not}var Zd=function(e){var t=e.option.source,n=Hd;if(Ed(t))n=Fd;else if(kd(t)){0===t.length&&(n=Pd);for(var i=0,r=t.length;i<r;i++){var a=t[i];if(null!=a){if(kd(a)){n=Pd;break}if(Cd(a)){n=zd;break}}}}else if(Cd(t)){for(var o in t)if(t.hasOwnProperty(o)&&Nd(t[o])){n=Yd;break}}else if(null!=t)throw new Error("Invalid data");Ud(e).sourceFormat=n},Xd=function(e,t,n){var i={},r=Vd(t);if(!r||!e)return i;var a,o,s=[],l=[],u=t.ecModel,c=Ud(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;e=e.slice(),Dd(e,(function(t,n){!Cd(t)&&(e[n]={name:t}),"ordinal"===t.type&&null==a&&(a=n,o=p(e[n])),i[t.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:o,valueWayDim:0});function f(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function p(e){var t=e.dimsDef;return t?t.length:1}return Dd(e,(function(e,t){var n=e.name,r=p(e);if(null==a){var o=d.valueWayDim;f(i[n],o,r),f(l,o,r),d.valueWayDim+=r}else if(a===t)f(i[n],0,r),f(s,0,r);else{o=d.categoryWayDim;f(i[n],o,r),f(l,o,r),d.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i},Kd=function(e,t,n){var i={};if(!Vd(e))return i;var r,a=t.sourceFormat,o=t.dimensionsDefine;a!==zd&&a!==Yd||Dd(o,(function(e,t){"name"===(Cd(e)?e.name:e)&&(r=t)}));var s=function(){for(var e={},i={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=qd(t.data,a,t.seriesLayoutBy,o,t.startIndex,l);s.push(c);var h=c===jd.Not;if(h&&null==e.v&&l!==r&&(e.v=l),(null==e.n||e.n===e.v||!h&&s[e.n]===jd.Not)&&(e.n=l),d(e)&&s[e.n]!==jd.Not)return e;h||(c===jd.Might&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(i)?i:null}();if(s){i.value=s.v;var l=null!=r?r:s.n;i.itemName=[l],i.seriesName=[l]}return i},$d={BE_ORDINAL:jd,detectSourceFormat:Zd,getSource:function(e){return Ud(e).source},resetSourceDefaulter:function(e){Ud(e).datasetMap=Md()},prepareSource:function(e){var t=e.option,n=t.data,i=Ed(n)?Fd:Ld,r=!1,a=t.seriesLayoutBy,o=t.sourceHeader,s=t.dimensions,l=Vd(e);if(l){var u=l.option;n=u.source,i=Ud(l).sourceFormat,r=!0,a=a||u.seriesLayoutBy,null==o&&(o=u.sourceHeader),s=s||u.dimensions}var c=function(e,t,n,i,r){if(!e)return{dimensionsDefine:Wd(r)};var a,o;if(t===Pd)"auto"===i||null==i?Gd((function(e){null!=e&&"-"!==e&&(Id(e)?null==o&&(o=1):o=0)}),n,e,10):o=i?1:0,r||1!==o||(r=[],Gd((function(e,t){r[t]=null!=e?e:""}),n,e)),a=r?r.length:n===Bd?e.length:e[0]?e[0].length:null;else if(t===zd)r||(r=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t){var i=[];return Dd(t,(function(e,t){i.push(t)})),i}}(e));else if(t===Yd)r||(r=[],Dd(e,(function(e,t){r.push(t)})));else if(t===Ld){var s=Od(e[0]);a=kd(s)&&s.length||1}return{startIndex:o,dimensionsDefine:Wd(r),dimensionsDetectCount:a}}(n,i,a,o,s);Ud(e).source=new Td({data:n,fromDataset:r,seriesLayoutBy:a,sourceFormat:i,dimensionsDefine:c.dimensionsDefine,startIndex:c.startIndex,dimensionsDetectCount:c.dimensionsDetectCount,encodeDefine:t.encode})},makeSeriesEncodeForAxisCoordSys:Xd,makeSeriesEncodeForNameBased:Kd,guessOrdinal:function(e,t){return qd(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}},Qd=He.each,Jd=He.filter,ef=He.map,tf=He.isArray,nf=He.indexOf,rf=He.isObject,af=He.isString,of=He.createHashMap,sf=He.assert,lf=He.clone,uf=He.merge,cf=He.extend,hf=He.mixin,df=$d.resetSourceDefaulter,ff="\0_ec_inner",pf=fh.extend({init:function(e,t,n,i){n=n||{},this.option=null,this._theme=new fh(n),this._optionManager=i},setOption:function(e,t){sf(!(ff in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,n=this._optionManager;if(!e||"recreate"===e){var i=n.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(i)):gf.call(this,i),t=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var r=n.getTimelineOption(this);r&&(this.mergeOption(r),t=!0)}if(!e||"recreate"===e||"media"===e){var a=n.getMediaOption(this,this._api);a.length&&Qd(a,(function(e){this.mergeOption(e,t=!0)}),this)}return t},mergeOption:function(e){var t=this.option,n=this._componentsMap,i=[];df(this),Qd(e,(function(e,n){null!=e&&(ad.hasClass(n)?n&&i.push(n):t[n]=null==t[n]?lf(e):uf(t[n],e,!0))})),ad.topologicalTravel(i,ad.getAllClassMainTypes(),(function(i,r){var a=Eo.normalizeToArray(e[i]),o=Eo.mappingToExists(n.get(i),a);Eo.makeIdAndName(o),Qd(o,(function(e,t){var n=e.option;rf(n)&&(e.keyInfo.mainType=i,e.keyInfo.subType=function(e,t,n){var i=t.type?t.type:n?n.subType:ad.determineSubType(e,t);return i}(i,n,e.exist))}));var s=function(e,t){tf(t)||(t=t?[t]:[]);var n={};return Qd(t,(function(t){n[t]=(e.get(t)||[]).slice()})),n}(n,r);t[i]=[],n.set(i,[]),Qd(o,(function(e,r){var a=e.exist,o=e.option;if(sf(rf(o)||a,"Empty component definition"),o){var l=ad.getClass(i,e.keyInfo.subType,!0);if(a&&a.constructor===l)a.name=e.keyInfo.name,a.mergeOption(o,this),a.optionUpdated(o,!1);else{var u=cf({dependentModels:s,componentIndex:r},e.keyInfo);a=new l(o,this,this,u),cf(a,u),a.init(o,this,this,u),a.optionUpdated(null,!0)}}else a.mergeOption({},this),a.optionUpdated({},!1);n.get(i)[r]=a,t[i][r]=a.option}),this),"series"===i&&mf(this,n.get("series"))}),this),this._seriesIndicesMap=of(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=lf(this.option);return Qd(e,(function(t,n){if(ad.hasClass(n)){for(var i=(t=Eo.normalizeToArray(t)).length-1;i>=0;i--)Eo.isIdInner(t[i])&&t.splice(i,1);e[n]=t}})),delete e[ff],e},getTheme:function(){return this._theme},getComponent:function(e,t){var n=this._componentsMap.get(e);if(n)return n[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,a=e.name,o=this._componentsMap.get(t);if(!o||!o.length)return[];if(null!=i)tf(i)||(i=[i]),n=Jd(ef(i,(function(e){return o[e]})),(function(e){return!!e}));else if(null!=r){var s=tf(r);n=Jd(o,(function(e){return s&&nf(r,e.id)>=0||!s&&e.id===r}))}else if(null!=a){var l=tf(a);n=Jd(o,(function(e){return l&&nf(a,e.name)>=0||!l&&e.name===a}))}else n=o.slice();return vf(n,e)},findComponents:function(e){var t,n,i,r,a,o=e.query,s=e.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(t=o)||null==t[n]&&null==t[i]&&null==t[r]?null:{mainType:s,index:t[n],id:t[i],name:t[r]}),u=l?this.queryComponents(l):this._componentsMap.get(s);return a=vf(u,e),e.filter?Jd(a,e.filter):a},eachComponent:function(e,t,n){var i=this._componentsMap;if("function"==typeof e)n=t,t=e,i.each((function(e,i){Qd(e,(function(e,r){t.call(n,i,e,r)}))}));else if(af(e))Qd(i.get(e),t,n);else if(rf(e)){var r=this.findComponents(e);Qd(r,t,n)}},getSeriesByName:function(e){var t=this._componentsMap.get("series");return Jd(t,(function(t){return t.name===e}))},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return Jd(t,(function(t){return t.subType===e}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){Qd(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},eachRawSeries:function(e,t){Qd(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,n){Qd(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)}),this)},eachRawSeriesByType:function(e,t,n){return Qd(this.getSeriesByType(e),t,n)},isSeriesFiltered:function(e){return null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){mf(this,Jd(this._componentsMap.get("series"),e,t))},restoreData:function(e){var t=this._componentsMap;mf(this,t.get("series"));var n=[];t.each((function(e,t){n.push(t)})),ad.topologicalTravel(n,ad.getAllClassMainTypes(),(function(n,i){Qd(t.get(n),(function(t){("series"!==n||!function(e,t){if(t){var n=t.seiresIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}(t,e))&&t.restoreData()}))}))}});function gf(e){this.option={},this.option[ff]=1,this._componentsMap=of({series:[]}),this._seriesIndices,this._seriesIndicesMap,function(e,t){var n=e.color&&!e.colorLayer;Qd(t,(function(t,i){"colorLayer"===i&&n||ad.hasClass(i)||("object"==typeof t?e[i]=e[i]?uf(e[i],t,!1):lf(t):null==e[i]&&(e[i]=t))}))}(e,this._theme.option),uf(e,sd,!1),this.mergeOption(e)}function mf(e,t){e._seriesIndicesMap=of(e._seriesIndices=ef(t,(function(e){return e.componentIndex}))||[])}function vf(e,t){return t.hasOwnProperty("subType")?Jd(e,(function(e){return e.subType===t.subType})):e}hf(pf,dd);var yf=pf,_f=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];var xf=function(e){He.each(_f,(function(t){this[t]=He.bind(e[t],e)}),this)},bf={};function wf(){this._coordinateSystems=[]}wf.prototype={constructor:wf,create:function(e,t){var n=[];He.each(bf,(function(i,r){var a=i.create(e,t);n=n.concat(a||[])})),this._coordinateSystems=n},update:function(e,t){He.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},wf.register=function(e,t){bf[e]=t},wf.get=function(e){return bf[e]};var Tf=wf,Sf=He.each,Of=He.clone,Mf=He.map,Df=He.merge,Af=/^(min|max)?(.+)$/;function kf(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function If(e,t,n){var i,r,a=[],o=[],s=e.timeline;if(e.baseOption&&(r=e.baseOption),(s||e.options)&&(r=r||{},a=(e.options||[]).slice()),e.media){r=r||{};var l=e.media;Sf(l,(function(e){e&&e.option&&(e.query?o.push(e):i||(i=e))}))}return r||(r=e),r.timeline||(r.timeline=s),Sf([r].concat(a).concat(He.map(o,(function(e){return e.option}))),(function(e){Sf(t,(function(t){t(e,n)}))})),{baseOption:r,timelineOptions:a,mediaDefault:i,mediaList:o}}function Cf(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return He.each(e,(function(e,t){var n=t.match(Af);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(i[o],e,a)||(r=!1)}})),r}kf.prototype={constructor:kf,setOption:function(e,t){e&&He.each(Eo.normalizeToArray(e.series),(function(e){e&&e.data&&He.isTypedArray(e.data)&&He.setAsPrimitive(e.data)})),e=Of(e);var n,i,r=this._optionBackup,a=If.call(this,e,t,!r);this._newBaseOption=a.baseOption,r?(n=r.baseOption,i=a.baseOption,Sf(i=i||{},(function(e,t){if(null!=e){var i=n[t];if(ad.hasClass(t)){e=Eo.normalizeToArray(e),i=Eo.normalizeToArray(i);var r=Eo.mappingToExists(i,e);n[t]=Mf(r,(function(e){return e.option&&e.exist?Df(e.exist,e.option,!0):e.exist||e.option}))}else n[t]=Df(i,e,!0)}})),a.timelineOptions.length&&(r.timelineOptions=a.timelineOptions),a.mediaList.length&&(r.mediaList=a.mediaList),a.mediaDefault&&(r.mediaDefault=a.mediaDefault)):this._optionBackup=a},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=Mf(t.timelineOptions,Of),this._mediaList=Mf(t.mediaList,Of),this._mediaDefault=Of(t.mediaDefault),this._currentMediaIndices=[],Of(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=Of(n[i.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t,n,i=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var u=0,c=a.length;u<c;u++)Cf(a[u].query,i,r)&&s.push(u);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=Mf(s,(function(e){return Of(-1===e?o.option:a[e].option)}))),this._currentMediaIndices=s,l}};var Ef=kf,Nf=He.each,Rf=He.isObject,Lf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Pf(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=Lf.length;n<i;n++){var r=Lf[n],a=t.normal,o=t.emphasis;a&&a[r]&&(e[r]=e[r]||{},e[r].normal?He.merge(e[r].normal,a[r]):e[r].normal=a[r],a[r]=null),o&&o[r]&&(e[r]=e[r]||{},e[r].emphasis?He.merge(e[r].emphasis,o[r]):e[r].emphasis=o[r],o[r]=null)}}function zf(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,He.defaults(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r)}}function Yf(e){zf(e,"itemStyle"),zf(e,"lineStyle"),zf(e,"areaStyle"),zf(e,"label"),zf(e,"labelLine"),zf(e,"upperLabel"),zf(e,"edgeLabel")}function Hf(e,t){var n=Rf(e)&&e[t],i=Rf(n)&&n.textStyle;if(i)for(var r=0,a=Eo.TEXT_STYLE_OPTIONS.length;r<a;r++){t=Eo.TEXT_STYLE_OPTIONS[r];i.hasOwnProperty(t)&&(n[t]=i[t])}}function Ff(e){e&&(Yf(e),Hf(e,"label"),e.emphasis&&Hf(e.emphasis,"label"))}function Bf(e){return He.isArray(e)?e:e?[e]:[]}function jf(e){return(He.isArray(e)?e[0]:e)||{}}var Uf=function(e,t){Nf(Bf(e.series),(function(e){Rf(e)&&function(e){if(Rf(e)){Pf(e),Yf(e),Hf(e,"label"),Hf(e,"upperLabel"),Hf(e,"edgeLabel"),e.emphasis&&(Hf(e.emphasis,"label"),Hf(e.emphasis,"upperLabel"),Hf(e.emphasis,"edgeLabel")),(n=e.markPoint)&&(Pf(n),Ff(n)),(i=e.markLine)&&(Pf(i),Ff(i));var t=e.markArea;t&&Ff(t);var n,i,r=e.data;if("graph"===e.type){r=r||e.nodes;var a=e.links||e.edges;if(a&&!He.isTypedArray(a))for(var o=0;o<a.length;o++)Ff(a[o]);He.each(e.categories,(function(e){Yf(e)}))}if(r&&!He.isTypedArray(r))for(o=0;o<r.length;o++)Ff(r[o]);if((n=e.markPoint)&&n.data){var s=n.data;for(o=0;o<s.length;o++)Ff(s[o])}if((i=e.markLine)&&i.data){var l=i.data;for(o=0;o<l.length;o++)He.isArray(l[o])?(Ff(l[o][0]),Ff(l[o][1])):Ff(l[o])}"gauge"===e.type?(Hf(e,"axisLabel"),Hf(e,"title"),Hf(e,"detail")):"treemap"===e.type?(zf(e.breadcrumb,"itemStyle"),He.each(e.levels,(function(e){Yf(e)}))):"tree"===e.type&&Yf(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Nf(n,(function(t){Nf(Bf(e[t]),(function(e){e&&(Hf(e,"axisLabel"),Hf(e.axisPointer,"label"))}))})),Nf(Bf(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;Hf(t,"axisLabel"),Hf(t&&t.axisPointer,"label")})),Nf(Bf(e.calendar),(function(e){zf(e,"itemStyle"),Hf(e,"dayLabel"),Hf(e,"monthLabel"),Hf(e,"yearLabel")})),Nf(Bf(e.radar),(function(e){Hf(e,"name")})),Nf(Bf(e.geo),(function(e){Rf(e)&&(Ff(e),Nf(Bf(e.regions),(function(e){Ff(e)})))})),Nf(Bf(e.timeline),(function(e){Ff(e),zf(e,"label"),zf(e,"itemStyle"),zf(e,"controlStyle",!0);var t=e.data;He.isArray(t)&&He.each(t,(function(e){He.isObject(e)&&(zf(e,"label"),zf(e,"itemStyle"))}))})),Nf(Bf(e.toolbox),(function(e){zf(e,"iconStyle"),Nf(e.feature,(function(e){zf(e,"iconStyle")}))})),Hf(jf(e.axisPointer),"label"),Hf(jf(e.tooltip).axisPointer,"label")},Wf=He.each,Gf=He.isArray,Vf=He.isObject,qf=Eo.normalizeToArray;function Zf(e){Wf(Xf,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var Xf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Kf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];var $f=function(e,t){Uf(e,t),e.series=qf(e.series),Wf(e.series,(function(e){if(Vf(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t)null!=e.clockWise&&(e.clockwise=e.clockWise);else if("gauge"===t){var n=function(e,t){t=t.split(",");for(var n=e,i=0;i<t.length&&null!=(n=n&&n[t[i]]);i++);return n}(e,"pointer.color");null!=n&&function(e,t,n,i){t=t.split(",");for(var r,a=e,o=0;o<t.length-1;o++)null==a[r=t[o]]&&(a[r]={}),a=a[r];(i||null==a[t[o]])&&(a[t[o]]=n)}(e,"itemStyle.color",n)}Zf(e)}})),e.dataRange&&(e.visualMap=e.dataRange),Wf(Kf,(function(t){var n=e[t];n&&(Gf(n)||(n=[n]),Wf(n,(function(e){Zf(e)})))}))},Qf=He.createHashMap,Jf=He.each;function ep(e){Jf(e,(function(t,n){var i=[],r=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=o.map(a,(function(a,l,u){var c,h,d=o.get(t.stackedDimension,u);if(isNaN(d))return r;s?h=o.getRawIndex(u):c=o.get(t.stackedByDimension,u);for(var f=NaN,p=n-1;p>=0;p--){var g=e[p];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d+=m,f=m;break}}}return i[0]=d,i[1]=f,i}));o.hostModel.setData(l),t.data=l}))}var tp=function(e){var t=Qf();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}})),t.each(ep)},np=He.extend,ip=He.each,rp=He.isObject,ap=Eo.getDataItemValue,op=Eo.isDataItemOption,sp=Dh.parseDate,lp=fd.SOURCE_FORMAT_TYPED_ARRAY,up=fd.SOURCE_FORMAT_ARRAY_ROWS,cp=fd.SOURCE_FORMAT_ORIGINAL,hp=fd.SOURCE_FORMAT_OBJECT_ROWS;function dp(e,t){Td.isInstance(e)||(e=Td.seriesDataToSource(e)),this._source=e;var n=this._data=e.data,i=e.sourceFormat;i===lp&&(this._offset=0,this._dimSize=t,this._data=n);var r=pp[i===up?i+"_"+e.seriesLayoutBy:i];np(this,r)}var fp=dp.prototype;fp.pure=!1,fp.persistent=!0,fp.getSource=function(){return this._source};var pp={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:vp},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var t=[],n=this._data,i=0;i<n.length;i++){var r=n[i];t.push(r?r[e]:null)}return t},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:gp,getItem:mp,appendData:vp},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,t=this._data[e];return t?t.length:0},getItem:function(e){for(var t=[],n=this._source.dimensionsDefine,i=0;i<n.length;i++){var r=this._data[n[i].name];t.push(r?r[e]:null)}return t},appendData:function(e){var t=this._data;ip(e,(function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])}))}},original:{count:gp,getItem:mp,appendData:vp},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,t){e-=this._offset,t=t||[];for(var n=this._dimSize*e,i=0;i<this._dimSize;i++)t[i]=this._data[n+i];return t},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}};function gp(){return this._data.length}function mp(e){return this._data[e]}function vp(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}var yp={arrayRows:_p,objectRows:function(e,t,n,i){return null!=n?e[i]:e},keyedColumns:_p,original:function(e,t,n,i){var r=ap(e);return null!=n&&r instanceof Array?r[n]:r},typedArray:_p};function _p(e,t,n,i){return null!=n?e[n]:e}function xp(e,t,n,i){return bp(e[i],this._dimensionInfos[t])}function bp(e,t){var n=t&&t.type;if("ordinal"===n){var i=t&&t.ordinalMeta;return i?i.parseAndCollect(e):e}return"time"===n&&"number"!=typeof e&&null!=e&&"-"!==e&&(e=+sp(e)),null==e||""===e?NaN:+e}var wp={DefaultDataProvider:dp,defaultDimValueGetters:{arrayRows:xp,objectRows:function(e,t,n,i){return bp(e[t],this._dimensionInfos[t])},keyedColumns:xp,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return!this._rawData.pure&&op(e)&&(this.hasItemOption=!0),bp(r instanceof Array?r[i]:r,this._dimensionInfos[t])},typedArray:function(e,t,n,i){return e[i]}},retrieveRawValue:function(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r,a,o=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(n);return s&&(r=s.name,a=s.index),yp[o](i,t,a,r)}}},retrieveRawAttr:function(e,t,n){if(e){var i=e.getProvider().getSource().sourceFormat;if(i===cp||i===hp){var r=e.getRawDataItem(t);return i!==cp||rp(r)||(r=null),r?r[n]:void 0}}}},Tp=wp.retrieveRawValue,Sp=Fh.getTooltipMarker,Op=Fh.formatTpl,Mp=Eo.getTooltipRenderMode,Dp=/\{@(.+?)\}/g,Ap={getDataParams:function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"color"),l=n.getItemVisual(e,"borderColor"),u=this.ecModel.getComponent("tooltip"),c=u&&u.get("renderMode"),h=Mp(c),d=this.mainType,f="series"===d,p=n.userOutput;return{componentType:d,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:a,dataIndex:r,data:o,dataType:t,value:i,color:s,borderColor:l,dimensionNames:p?p.dimensionNames:null,encode:p?p.encode:null,marker:Sp({color:s,renderMode:h}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,n,i,r){t=t||"normal";var a=this.getData(n),o=a.getItemModel(e),s=this.getDataParams(e,n);null!=i&&s.value instanceof Array&&(s.value=s.value[i]);var l=o.get("normal"===t?[r||"label","formatter"]:[t,r||"label","formatter"]);return"function"==typeof l?(s.status=t,s.dimensionIndex=i,l(s)):"string"==typeof l?Op(l,s).replace(Dp,(function(t,n){var i=n.length;return"["===n.charAt(0)&&"]"===n.charAt(i-1)&&(n=+n.slice(1,i-1)),Tp(a,e,n)})):void 0},getRawValue:function(e,t){return Tp(this.getData(t),e)},formatTooltip:function(){}},kp=Ap,Ip=He.isArray;function Cp(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0,this.context}var Ep=Cp.prototype;Ep.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var a,o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}o===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=function(e,t){var n,i;e._dueIndex=e._outputDueEnd=e._dueEnd=0,e._settedOutputEnd=null,!t&&e._reset&&((n=e._reset(e.context))&&n.progress&&(i=n.forceFirstProgress,n=n.progress),Ip(n)&&!n.length&&(n=null));e._progress=n,e._modBy=e._modDataCount=null;var r=e._downstream;return r&&r.dirty(),i}(this,i)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(a||d<f)){var p=this._progress;if(Ip(p))for(var g=0;g<p.length;g++)Rp(this,p[g],d,f,l,u);else Rp(this,p,d,f,l,u)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var Np=function(){var e,t,n,i,r,a={reset:function(l,u,c,h){t=l,e=u,n=c,i=h,r=Math.ceil(i/n),a.next=n>1&&i>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%r*n+Math.ceil(t/r),o=t>=e?null:a<i?a:t;return t++,o}}();function Rp(e,t,n,i,r,a){Np.reset(n,i,r,a),e._callingProgress=t,e._callingProgress({start:n,end:i,count:i-n,next:Np.next},e.context)}Ep.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},Ep.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},Ep.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},Ep.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},Ep.getUpstream=function(){return this._upstream},Ep.getDownstream=function(){return this._downstream},Ep.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e};var Lp={createTask:function(e){return new Cp(e)}},Pp=Fh.formatTime,zp=Fh.encodeHTML,Yp=Fh.addCommas,Hp=Fh.getTooltipMarker,Fp=Jh.getLayoutParams,Bp=Jh.mergeLayoutParam,jp=Lp.createTask,Up=$d.prepareSource,Wp=$d.getSource,Gp=wp.retrieveRawValue,Vp=Eo.makeInner(),qp=ad.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=jp({count:Xp,reset:Kp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),Up(this);var r=this.getInitialData(e,n);Qp(r,this),this.dataTask.context.data=r,Vp(this).dataBeforeProcessed=r,Zp(this)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?Fp(e):{},r=this.subType;ad.hasClass(r)&&(r+="Series"),He.merge(e,t.getTheme().get(this.subType)),He.merge(e,this.getDefaultOption()),Eo.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Bp(e,i,n)},mergeOption:function(e,t){e=He.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;n&&Bp(this.option,e,n),Up(this);var i=this.getInitialData(e,t);Qp(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Vp(this).dataBeforeProcessed=i,Zp(this)},fillDataTextStyle:function(e){if(e&&!He.isTypedArray(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Eo.defaultEmphasis(e[n],"label",t)},getInitialData:function(){},appendData:function(e){this.getRawData().appendData(e.data)},getData:function(e){var t=eg(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return Vp(this).data},setData:function(e){var t=eg(this);if(t){var n=t.context;n.data!==e&&t.modifyOutputEnd&&t.setOutputEnd(e.count()),n.outputData=e,t!==this.dataTask&&(n.data=e)}Vp(this).data=e},getSource:function(){return Wp(this)},getRawData:function(){return Vp(this).dataBeforeProcessed},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(e,t,n,i){var r=this,a="html"===(i=i||"html")?"<br/>":"\n",o="richText"===i,s={},l=0;function u(e){return{renderMode:i,content:zp(Yp(e)),style:s}}var c=this.getData(),h=c.mapDimension("defaultedTooltip",!0),d=h.length,f=this.getRawValue(e),p=He.isArray(f),g=c.getItemVisual(e,"color");He.isObject(g)&&g.colorStops&&(g=(g.colorStops[0]||{}).color),g=g||"transparent";var m=d>1||p&&!d?function(n){var a=He.reduce(n,(function(e,t,n){var i=c.getDimensionInfo(n);return e|(i&&!1!==i.tooltip&&null!=i.displayName)}),0),u=[];function d(e,n){var h=c.getDimensionInfo(n);if(h&&!1!==h.otherDims.tooltip){var d=h.type,f="sub"+r.seriesIndex+"at"+l,p=Hp({color:g,type:"subItem",renderMode:i,markerId:f}),m="string"==typeof p?p:p.content,v=(a?m+zp(h.displayName||"-")+": ":"")+zp("ordinal"===d?e+"":"time"===d?t?"":Pp("yyyy/MM/dd hh:mm:ss",e):Yp(e));v&&u.push(v),o&&(s[f]=g,++l)}}h.length?He.each(h,(function(t){d(Gp(c,e,t),t)})):He.each(n,d);var f=a?o?"\n":"<br/>":"",p=f+u.join(f||", ");return{renderMode:i,content:p,style:s}}(f):u(d?Gp(c,e,h[0]):p?f[0]:f),v=m.content,y=r.seriesIndex+"at"+l,_=Hp({color:g,type:"item",renderMode:i,markerId:y});s[y]=g,++l;var x=c.getName(e),b=this.name;Eo.isNameSpecified(this)||(b=""),b=b?zp(b)+(t?": ":a):"";var w="string"==typeof _?_:_.content;return{html:t?w+b+v:b+w+(x?zp(x)+": "+v:v),markers:s}},isAnimationEnabled:function(){if(ne.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,n){var i=this.ecModel,r=dd.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function Zp(e){var t=e.name;Eo.isNameSpecified(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimension("seriesName",!0),i=[];return He.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}(e)||t)}function Xp(e){return e.model.getRawData().count()}function Kp(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),$p}function $p(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Qp(e,t){He.each(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,He.curry(Jp,t))}))}function Jp(e){var t=eg(e);t&&t.setOutputEnd(this.count())}function eg(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}He.mixin(qp,kp),He.mixin(qp,dd);var tg=qp,ng=function(){this.group=new Ei,this.uid=mh.getUID("viewComponent")},ig=ng.prototype={constructor:ng,init:function(e,t){},render:function(e,t,n,i){},dispose:function(){},filterForExposedEvent:null};ig.updateView=ig.updateLayout=ig.updateVisual=function(e,t,n,i){},Bo.enableClassExtend(ng),Bo.enableClassManagement(ng,{registerWhenExtend:!0});var rg=ng,ag=Eo.makeInner;var og=function(){var e=ag();return function(t){var n=e(t),i=t.pipelineContext,r=n.large,a=n.progressiveRender,o=n.large=i&&i.large,s=n.progressiveRender=i&&i.progressiveRender;return!!(r^o||a^s)&&"reset"}},sg=He.each,lg=Lp.createTask,ug=Eo.makeInner(),cg=og();function hg(){this.group=new Ei,this.uid=mh.getUID("viewChart"),this.renderTask=lg({plan:gg,reset:mg}),this.renderTask.context={view:this}}hg.prototype={type:"chart",init:function(e,t){},render:function(e,t,n,i){},highlight:function(e,t,n,i){pg(e.getData(),i,"emphasis")},downplay:function(e,t,n,i){pg(e.getData(),i,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var dg=hg.prototype;function fg(e,t,n){if(e&&(e.trigger(t,n),e.isGroup&&!Qc.isHighDownDispatcher(e)))for(var i=0,r=e.childCount();i<r;i++)fg(e.childAt(i),t,n)}function pg(e,t,n){var i=Eo.queryDataIndex(e,t),r=t&&null!=t.highlightKey?Qc.getHighlightDigit(t.highlightKey):null;null!=i?sg(Eo.normalizeToArray(i),(function(t){fg(e.getItemGraphicEl(t),n,r)})):e.eachItemGraphicEl((function(e){fg(e,n,r)}))}function gg(e){return cg(e.model)}function mg(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=r&&ug(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,i,r),vg[l]}dg.updateView=dg.updateLayout=dg.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},Bo.enableClassExtend(hg,["dispose"]),Bo.enableClassManagement(hg,{registerWhenExtend:!0}),hg.markUpdateMethod=function(e,t){ug(e).updateMethod=t};var vg={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},yg=hg,_g="\0__throttleOriginMethod",xg="\0__throttleRate",bg="\0__throttleType";function wg(e,t,n){var i,r,a,o,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,e.apply(a,o||[])}t=t||0;var d=function(){i=(new Date).getTime(),a=this,o=arguments;var e=s||t,d=s||n;s=null,r=i-(d?l:u)-e,clearTimeout(c),d?c=setTimeout(h,e):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}var Tg={throttle:wg,createOrUpdate:function(e,t,n,i){var r=e[t];if(r){var a=r[_g]||r,o=r[bg];if(r[xg]!==n||o!==i){if(null==n||!i)return e[t]=a;(r=e[t]=wg(a,n,"debounce"===i))[_g]=a,r[bg]=i,r[xg]=n}return r}},clear:function(e,t){var n=e[t];n&&n[_g]&&(e[t]=n[_g])}},Sg=He.isFunction,Og={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=(e.visualColorAccessPath||"itemStyle.color").split("."),r=e.get(i),a=!Sg(r)||r instanceof Nu?null:r;r&&!a||(r=e.getColorFromPalette(e.name,null,t.getSeriesCount())),n.setVisual("color",r);var o=(e.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),s=e.get(o);if(n.setVisual("borderColor",s),!t.isSeriesFiltered(e)){a&&n.each((function(t){n.setItemVisual(t,"color",a(e.getDataParams(t)))}));return{dataEach:n.hasItemOption?function(e,t){var n=e.getItemModel(t),r=n.get(i,!0),a=n.get(o,!0);null!=r&&e.setItemVisual(t,"color",r),null!=a&&e.setItemVisual(t,"borderColor",a)}:null}}}},Mg=Og,Dg={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}},Ag=wp.retrieveRawValue;var kg=function(e,t){var n=t.getModel("aria");if(n.get("show"))if(n.get("description"))e.setAttribute("aria-label",n.get("description"));else{var i=0;t.eachSeries((function(e,t){++i}),this);var r,a=n.get("data.maxCount")||10,o=n.get("series.maxCount")||10,s=Math.min(i,o);if(!(i<1)){var l=function(){var e=t.getModel("title").option;e&&e.length&&(e=e[0]);return e&&e.text}();r=l?c(h("general.withTitle"),{title:l}):h("general.withoutTitle");var u=[];r+=c(h(i>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:i}),t.eachSeries((function(e,t){if(t<s){var n,r=e.get("name"),o="series."+(i>1?"multiple":"single")+".";n=c(n=h(r?o+"withName":o+"withoutName"),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(m=e.subType,Dg.series.typeNames[m]||"自定义图")});var l=e.getData();window.data=l,l.count()>a?n+=c(h("data.partialData"),{displayCnt:a}):n+=h("data.allData");for(var d=[],f=0;f<l.count();f++)if(f<a){var p=l.getName(f),g=Ag(l,f);d.push(c(h(p?"data.withName":"data.withoutName"),{name:p,value:g}))}n+=d.join(h("data.separator.middle"))+h("data.separator.end"),u.push(n)}var m})),r+=u.join(h("series.multiple.separator.middle"))+h("series.multiple.separator.end"),e.setAttribute("aria-label",r)}}function c(e,t){if("string"!=typeof e)return e;var n=e;return He.each(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function h(e){var t=n.get(e);if(null==t){for(var i=e.split("."),r=Dg.aria,a=0;a<i.length;++a)r=r[i[a]];return r}return t}},Ig=Math.PI;var Cg=function(e,t){t=t||{},He.defaults(t,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Qc.Group,i=new Qc.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r=t.fontSize+" sans-serif",a=new Qc.Rect({style:{fill:"none",text:t.text,font:r,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});if(n.add(a),t.showSpinner){var o=new Qc.Arc({shape:{startAngle:-Ig/2,endAngle:-Ig/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001});o.animateShape(!0).when(1e3,{endAngle:3*Ig/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*Ig/2}).delay(300).start("circularInOut"),n.add(o)}return n.resize=function(){var n=jr.getWidth(t.text,r),s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner?0:n/2),u=e.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n},Eg=He.each,Ng=He.map,Rg=He.isFunction,Lg=He.createHashMap,Pg=He.noop,zg=Lp.createTask,Yg=mh.getUID,Hg=Eo.normalizeToArray;function Fg(e,t,n,i){this.ecInstance=e,this.api=t,this.unfinished;n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice();this._allHandlers=n.concat(i),this._stageTaskMap=Lg()}var Bg=Fg.prototype;function jg(e,t,n,i,r){var a;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}r=r||{},Eg(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=e._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(e){o(r,e)&&(e.dirty(),h=!0)})),h&&c.dirty(),Ug(c,i);var f=e.getPerformArgs(c,r.block);d.each((function(e){e.perform(f)})),a|=c.perform(f)}else u&&u.each((function(s,l){o(r,s)&&s.dirty();var u=e.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&n.isSeriesFiltered(s.context.model),Ug(s,i),a|=s.perform(u)}))}})),e.unfinished|=a}Bg.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},Bg.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=i&&i.modDataCount;return{step:r,modBy:null!=a?Math.ceil(a/r):null,modDataCount:a}}},Bg.getPipeline=function(e){return this._pipelineMap.get(e)},Bg.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData().count(),r=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,a=e.get("large")&&i>=e.get("largeThreshold"),o="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:r,modDataCount:o,large:a}},Bg.restorePipelines=function(e){var t=this,n=t._pipelineMap=Lg();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),Jg(t,e,e.dataTask)}))},Bg.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),n=this.api;Eg(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,[]);i.reset&&function(e,t,n,i,r){var a=n.seriesTaskMap||(n.seriesTaskMap=Lg()),o=t.seriesType,s=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(l):o?i.eachRawSeriesByType(o,l):s&&s(i,r).each(l);function l(n){var o=n.uid,s=a.get(o)||a.set(o,zg({plan:Zg,reset:Xg,count:Qg}));s.context={model:n,ecModel:i,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},Jg(e,n,s)}var u=e._pipelineMap;a.each((function(e,t){u.get(t)||(e.dispose(),a.removeKey(t))}))}(this,i,r,t,n),i.overallReset&&function(e,t,n,i,r){var a=n.overallTask=n.overallTask||zg({reset:Wg});a.context={ecModel:i,api:r,overallReset:t.overallReset,scheduler:e};var o=a.agentStubMap=a.agentStubMap||Lg(),s=t.seriesType,l=t.getTargetSeries,u=!0,c=t.modifyOutputEnd;s?i.eachRawSeriesByType(s,h):l?l(i,r).each(h):(u=!1,Eg(i.getSeries(),h));function h(t){var n=t.uid,i=o.get(n);i||(i=o.set(n,zg({reset:Gg,onDirty:qg})),a.dirty()),i.context={model:t,overallProgress:u,modifyOutputEnd:c},i.agent=a,i.__block=u,Jg(e,t,i)}var d=e._pipelineMap;o.each((function(e,t){d.get(t)||(e.dispose(),a.dirty(),o.removeKey(t))}))}(this,i,r,t,n)}),this)},Bg.prepareView=function(e,t,n,i){var r=e.renderTask,a=r.context;a.model=t,a.ecModel=n,a.api=i,r.__block=!e.incrementalPrepareRender,Jg(this,t,r)},Bg.performDataProcessorTasks=function(e,t){jg(this,this._dataProcessorHandlers,e,t,{block:!0})},Bg.performVisualTasks=function(e,t,n){jg(this,this._visualHandlers,e,t,n)},Bg.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t|=e.dataTask.perform()})),this.unfinished|=t},Bg.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))};var Ug=Bg.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function Wg(e){e.overallReset(e.ecModel,e.api,e.payload)}function Gg(e,t){return e.overallProgress&&Vg}function Vg(){this.agent.dirty(),this.getDownstream().dirty()}function qg(){this.agent&&this.agent.dirty()}function Zg(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function Xg(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Hg(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Ng(t,(function(e,t){return $g(t)})):Kg}var Kg=$g(0);function $g(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var a=t.start;a<t.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(t,i)}}function Qg(e){return e.data.count()}function Jg(e,t,n){var i=t.uid,r=e._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r}function em(e){tm=null;try{e(nm,im)}catch(e){}return tm}Fg.wrapStageHandler=function(e,t){return Rg(e)&&(e={overallReset:e,seriesType:em(e)}),e.uid=Yg("stageHandler"),t&&(e.visualType=t),e};var tm,nm={},im={};function rm(e,t){for(var n in t.prototype)e[n]=Pg}rm(nm,yf),rm(im,xf),nm.eachSeriesByType=nm.eachRawSeriesByType=function(e){tm=e},nm.eachComponent=function(e){"series"===e.mainType&&e.subType&&(tm=e.subType)};var am=Fg,om=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],sm={color:om,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],om]},lm="#eee",um=function(){return{axisLine:{lineStyle:{color:lm}},axisTick:{lineStyle:{color:lm}},axisLabel:{textStyle:{color:lm}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:lm}}}},cm=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],hm={color:cm,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:lm},crossStyle:{color:lm},label:{color:"#000"}}},legend:{textStyle:{color:lm}},textStyle:{color:lm},title:{textStyle:{color:lm}},toolbox:{iconStyle:{normal:{borderColor:lm}}},dataZoom:{textStyle:{color:lm}},visualMap:{textStyle:{color:lm}},timeline:{lineStyle:{color:lm},itemStyle:{normal:{color:cm[1]}},label:{normal:{textStyle:{color:lm}}},controlStyle:{normal:{color:lm,borderColor:lm}}},timeAxis:um(),logAxis:um(),valueAxis:um(),categoryAxis:um(),line:{symbol:"circle"},graph:{color:cm},gauge:{title:{textStyle:{color:lm}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};hm.categoryAxis.splitLine.show=!1;var dm=hm,fm=$d.detectSourceFormat,pm=fd.SERIES_LAYOUT_BY_COLUMN;ad.extend({type:"dataset",defaultOption:{seriesLayoutBy:pm,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){fm(this)}}),rg.extend({type:"dataset"});var gm=_l.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,t){var n=.5522848,i=t.cx,r=t.cy,a=t.rx,o=t.ry,s=a*n,l=o*n;e.moveTo(i-a,r),e.bezierCurveTo(i-a,r-l,i-s,r-o,i,r-o),e.bezierCurveTo(i+s,r-o,i+a,r-l,i+a,r),e.bezierCurveTo(i+a,r+l,i+s,r+o,i,r+o),e.bezierCurveTo(i-s,r+o,i-a,r+l,i-a,r),e.closePath()}}),mm=Yl.createFromString,vm=He.isString,ym=He.extend,_m=He.defaults,xm=He.trim,bm=He.each,wm=/[\s,]+/;function Tm(e){vm(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}function Sm(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}Sm.prototype.parse=function(e,t){t=t||{};var n=Tm(e);if(!n)throw new Error("Illegal svg");var i=new Ei;this._root=i;var r=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),o=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(o)&&(o=null),Im(n,i,null,!0);for(var s,l,u=n.firstChild;u;)this._parseNode(u,i),u=u.nextSibling;if(r){var c=xm(r).split(wm);c.length>=4&&(s={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(s&&null!=a&&null!=o&&(l=Lm(s,a,o),!t.ignoreViewBox)){var h=i;(i=new Ei).add(h),h.scale=l.scale.slice(),h.position=l.position.slice()}return t.ignoreRootClip||null==a||null==o||i.setClipPath(new mu({shape:{x:0,y:0,width:a,height:o}})),{root:i,width:a,height:o,viewBoxRect:s,viewBoxTransform:l}},Sm.prototype._parseNode=function(e,t){var n,i,r=e.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){if(i=Mm[r]){var a=i.call(this,e),o=e.getAttribute("id");o&&(this._defs[o]=a)}}else(i=Om[r])&&(n=i.call(this,e,t),t.add(n));for(var s=e.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},Sm.prototype._parseText=function(e,t){if(1===e.nodeType){var n=e.getAttribute("dx")||0,i=e.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(i)}var r=new Bl({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});Dm(t,r),Im(e,r,this._defs);var a=r.style.fontSize;a&&a<9&&(r.style.fontSize=9,r.scale=r.scale||[1,1],r.scale[0]*=a/9,r.scale[1]*=a/9);var o=r.getBoundingRect();return this._textX+=o.width,t.add(r),r};var Om={g:function(e,t){var n=new Ei;return Dm(t,n),Im(e,n,this._defs),n},rect:function(e,t){var n=new mu;return Dm(t,n),Im(e,n,this._defs),n.setShape({x:parseFloat(e.getAttribute("x")||0),y:parseFloat(e.getAttribute("y")||0),width:parseFloat(e.getAttribute("width")||0),height:parseFloat(e.getAttribute("height")||0)}),n},circle:function(e,t){var n=new jl;return Dm(t,n),Im(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),n},line:function(e,t){var n=new _u;return Dm(t,n),Im(e,n,this._defs),n.setShape({x1:parseFloat(e.getAttribute("x1")||0),y1:parseFloat(e.getAttribute("y1")||0),x2:parseFloat(e.getAttribute("x2")||0),y2:parseFloat(e.getAttribute("y2")||0)}),n},ellipse:function(e,t){var n=new gm;return Dm(t,n),Im(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),rx:parseFloat(e.getAttribute("rx")||0),ry:parseFloat(e.getAttribute("ry")||0)}),n},polygon:function(e,t){var n=e.getAttribute("points");n&&(n=Am(n));var i=new su({shape:{points:n||[]}});return Dm(t,i),Im(e,i,this._defs),i},polyline:function(e,t){var n=new _l;Dm(t,n),Im(e,n,this._defs);var i=e.getAttribute("points");return i&&(i=Am(i)),new lu({shape:{points:i||[]}})},image:function(e,t){var n=new Da;return Dm(t,n),Im(e,n,this._defs),n.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),n},text:function(e,t){var n=e.getAttribute("x")||0,i=e.getAttribute("y")||0,r=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(a);var o=new Ei;return Dm(t,o),Im(e,o,this._defs),o},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,o=new Ei;return Dm(t,o),Im(e,o,this._defs),this._textX+=r,this._textY+=a,o},path:function(e,t){var n=e.getAttribute("d")||"",i=mm(n);return Dm(t,i),Im(e,i,this._defs),i}},Mm={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),n=parseInt(e.getAttribute("y1")||0,10),i=parseInt(e.getAttribute("x2")||10,10),r=parseInt(e.getAttribute("y2")||0,10),a=new Lu(t,n,i,r);return function(e,t){var n=e.firstChild;for(;n;){if(1===n.nodeType){var i=n.getAttribute("offset");i=i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r=n.getAttribute("stop-color")||"#000000";t.addColorStop(i,r)}n=n.nextSibling}}(e,a),a},radialgradient:function(e){}};function Dm(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),_m(t.__inheritedStyle,e.__inheritedStyle))}function Am(e){for(var t=xm(e).split(wm),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),a=parseFloat(t[i+1]);n.push([r,a])}return n}var km={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function Im(e,t,n,i){var r=t.__inheritedStyle||{},a="text"===t.type;if(1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=null,r=[];n.replace(Nm,(function(e,t,n){r.push(t,n)}));for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1];switch(i=i||nn.create(),s){case"translate":o=xm(o).split(wm),nn.translate(i,i,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=xm(o).split(wm),nn.scale(i,i,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=xm(o).split(wm),nn.rotate(i,i,parseFloat(o[0]));break;case"skew":o=xm(o).split(wm),console.warn("Skew transform is not supported yet");break;case"matrix":o=xm(o).split(wm);i[0]=parseFloat(o[0]),i[1]=parseFloat(o[1]),i[2]=parseFloat(o[2]),i[3]=parseFloat(o[3]),i[4]=parseFloat(o[4]),i[5]=parseFloat(o[5])}}t.setLocalTransform(i)}}(e,t),ym(r,function(e){var t=e.getAttribute("style"),n={};if(!t)return n;var i,r={};Rm.lastIndex=0;for(;null!=(i=Rm.exec(t));)r[i[1]]=i[2];for(var a in km)km.hasOwnProperty(a)&&null!=r[a]&&(n[km[a]]=r[a]);return n}(e)),!i))for(var o in km)if(km.hasOwnProperty(o)){var s=e.getAttribute(o);null!=s&&(r[km[o]]=s)}var l=a?"textFill":"fill",u=a?"textStroke":"stroke";t.style=t.style||new tr;var c=t.style;null!=r.fill&&c.set(l,Em(r.fill,n)),null!=r.stroke&&c.set(u,Em(r.stroke,n)),bm(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){var t="lineWidth"===e&&a?"textStrokeWidth":e;null!=r[e]&&c.set(t,parseFloat(r[e]))})),r.textBaseline&&"auto"!==r.textBaseline||(r.textBaseline="alphabetic"),"alphabetic"===r.textBaseline&&(r.textBaseline="bottom"),"start"===r.textAlign&&(r.textAlign="left"),"end"===r.textAlign&&(r.textAlign="right"),bm(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(e){null!=r[e]&&c.set(e,r[e])})),r.lineDash&&(t.style.lineDash=xm(r.lineDash).split(wm)),c[u]&&"none"!==c[u]&&(t[u]=!0),t.__inheritedStyle=r}var Cm=/url\(\s*#(.*?)\)/;function Em(e,t){var n=t&&e&&e.match(Cm);return n?t[xm(n[1])]:e}var Nm=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var Rm=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Lm(e,t,n){var i=t/e.width,r=n/e.height,a=Math.min(i,r);return{scale:[a,a],position:[-(e.x+e.width/2)*a+t/2,-(e.y+e.height/2)*a+n/2]}}var Pm={parseXML:Tm,makeViewBoxTransform:Lm,parseSVG:function(e,t){return(new Sm).parse(e,t)}},zm=He.createHashMap,Ym=He.isString,Hm=He.isArray,Fm=He.each,Bm=Pm.parseXML,jm=zm(),Um={registerMap:function(e,t,n){var i;return Hm(t)?i=t:t.svg?i=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(n=t.specialAreas,t=t.geoJson),i=[{type:"geoJSON",source:t,specialAreas:n}]),Fm(i,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON"),(0,Wm[t])(e)})),jm.set(e,i)},retrieveMap:function(e){return jm.get(e)}},Wm={geoJSON:function(e){var t=e.source;e.geoJSON=Ym(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=Bm(e.source)}},Gm=Um;function Vm(e){return e}function qm(e,t,n,i,r){this._old=e,this._new=t,this._oldKeyGetter=n||Vm,this._newKeyGetter=i||Vm,this.context=r}function Zm(e,t,n,i,r){for(var a=0;a<e.length;a++){var o="_ec_"+r[i](e[a],a),s=t[o];null==s?(n.push(o),t[o]=a):(s.length||(t[o]=s=[s]),s.push(a))}}qm.prototype={constructor:qm,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e=this._old,t=this._new,n={},i=[],r=[];for(Zm(e,{},i,"_oldKeyGetter",this),Zm(t,n,r,"_newKeyGetter",this),a=0;a<e.length;a++){if(null!=(s=n[o=i[a]]))(u=s.length)?(1===u&&(n[o]=null),s=s.shift()):n[o]=null,this._update&&this._update(s,a);else this._remove&&this._remove(a)}for(var a=0;a<r.length;a++){var o=r[a];if(n.hasOwnProperty(o)){var s;if(null==(s=n[o]))continue;if(s.length)for(var l=0,u=s.length;l<u;l++)this._add&&this._add(s[l]);else this._add&&this._add(s)}}}};var Xm=qm,Km=He.each,$m=He.createHashMap,Qm=$m(["tooltip","label","itemName","itemId","seriesName"]);function Jm(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}var ev={OTHER_DIMENSIONS:Qm,summarizeDimensions:function(e){var t={},n=t.encode={},i=$m(),r=[],a=[],o=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};Km(e.dimensions,(function(t){var s,l=e.getDimensionInfo(t),u=l.coordDim;if(u){var c=l.coordDimIndex;Jm(n,u)[c]=t,l.isExtraCoord||(i.set(u,1),"ordinal"!==(s=l.type)&&"time"!==s&&(r[0]=t),Jm(o.encode,u)[c]=l.index),l.defaultTooltip&&a.push(t)}Qm.each((function(e,t){var i=Jm(n,t),r=l.otherDims[t];null!=r&&!1!==r&&(i[r]=l.name)}))}));var s=[],l={};i.each((function(e,t){var i=n[t];l[t]=i[0],s=s.concat(i)})),t.dataDimsOnCoord=s,t.encodeFirstDimNotExtra=l;var u=n.label;u&&u.length&&(r=u.slice());var c=n.tooltip;return c&&c.length?a=c.slice():a.length||(a=r.slice()),n.defaultedLabel=r,n.defaultedTooltip=a,t},getDimensionTypeByAxis:function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}};var tv=function(e){null!=e&&He.extend(this,e),this.otherDims={}},nv=wp.defaultDimValueGetters,iv=wp.DefaultDataProvider,rv=ev.summarizeDimensions,av=He.isObject,ov="undefined",sv={float:typeof Float64Array===ov?Array:Float64Array,int:typeof Int32Array===ov?Array:Int32Array,ordinal:Array,number:Array,time:Array},lv=typeof Uint32Array===ov?Array:Uint32Array,uv=typeof Int32Array===ov?Array:Int32Array,cv=typeof Uint16Array===ov?Array:Uint16Array;function hv(e){return e._rawCount>65535?lv:cv}var dv=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],fv=["_extent","_approximateExtent","_rawExtent"];function pv(e,t){He.each(dv.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,He.each(fv,(function(n){e[n]=He.clone(t[n])})),e._calculationInfo=He.extend(t._calculationInfo)}var gv=function(e,t){e=e||["x","y"];for(var n={},i=[],r={},a=0;a<e.length;a++){var o=e[a];He.isString(o)?o=new tv({name:o}):o instanceof tv||(o=new tv(o));var s=o.name;o.type=o.type||"float",o.coordDim||(o.coordDim=s,o.coordDimIndex=0),o.otherDims=o.otherDims||{},i.push(s),n[s]=o,o.index=a,o.createInvertedIndices&&(r[s]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=t,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=rv(this),this._invertedIndicesMap=r,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},mv=gv.prototype;function vv(e,t,n,i,r){var a=sv[t.type],o=i-1,s=t.name,l=e[s][o];if(l&&l.length<n){for(var u=new a(Math.min(r-o*n,n)),c=0;c<l.length;c++)u[c]=l[c];e[s][o]=u}for(var h=i*n;h<r;h+=n)e[s].push(new a(Math.min(r-h,n)))}function yv(e){var t=e._invertedIndicesMap;He.each(t,(function(n,i){var r=e._dimensionInfos[i].ordinalMeta;if(r){n=t[i]=new uv(r.categories.length);for(var a=0;a<n.length;a++)n[a]=-1;for(a=0;a<e._count;a++)n[e.get(i,a)]=a}}))}function _v(e,t,n){var i;if(null!=t){var r=e._chunkSize,a=Math.floor(n/r),o=n%r,s=e.dimensions[t],l=e._storage[s][a];if(l){i=l[o];var u=e._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(i=u.categories[i])}}return i}function xv(e){return e}function bv(e){return e<this._count&&e>=0?this._indices[e]:-1}function wv(e,t){var n=e._idList[t];return null==n&&(n=_v(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n}function Tv(e){return He.isArray(e)||(e=[e]),e}function Sv(e,t){var n=e.dimensions,i=new gv(He.map(n,e.getDimensionInfo,e),e.hostModel);pv(i,e);for(var r=i._storage={},a=e._storage,o=0;o<n.length;o++){var s=n[o];a[s]&&(He.indexOf(t,s)>=0?(r[s]=Ov(a[s]),i._rawExtent[s]=Mv(),i._extent[s]=null):r[s]=a[s])}return i}function Ov(e){for(var t,n,i=new Array(e.length),r=0;r<e.length;r++)i[r]=(t=e[r],n=void 0,(n=t.constructor)===Array?t.slice():new n(t));return i}function Mv(){return[1/0,-1/0]}mv.type="list",mv.hasItemOption=!0,mv.getDimension=function(e){return"number"!=typeof e&&(isNaN(e)||this._dimensionInfos.hasOwnProperty(e))||(e=this.dimensions[e]),e},mv.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},mv.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},mv.mapDimension=function(e,t){var n=this._dimensionsSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return!0===t?(i||[]).slice():i&&i[t]},mv.initData=function(e,t,n){(Td.isInstance(e)||He.isArrayLike(e))&&(e=new iv(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=nv[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=nv.arrayRows,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},mv.getProvider=function(){return this._rawData},mv.appendData=function(e){var t=this._rawData,n=this.count();t.appendData(e);var i=t.count();t.persistent||(i+=n),this._initDataFromProvider(n,i)},mv.appendValues=function(e,t){for(var n=this._chunkSize,i=this._storage,r=this.dimensions,a=r.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t?t.length:0),u=this._chunkCount,c=0;c<a;c++){o[v=r[c]]||(o[v]=Mv()),i[v]||(i[v]=[]),vv(i,this._dimensionInfos[v],n,u,l),this._chunkCount=i[v].length}for(var h=new Array(a),d=s;d<l;d++){for(var f=d-s,p=Math.floor(d/n),g=d%n,m=0;m<a;m++){var v=r[m],y=this._dimValueGetterArrayRows(e[f]||h,v,f,m);i[v][p][g]=y;var _=o[v];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}t&&(this._nameList[d]=t[f])}this._rawCount=this._count=l,this._extent={},yv(this)},mv._initDataFromProvider=function(e,t){if(!(e>=t)){for(var n,i=this._chunkSize,r=this._rawData,a=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,c=this._idList,h=this._rawExtent,d=this._nameRepeatCount={},f=this._chunkCount,p=0;p<s;p++){h[b=o[p]]||(h[b]=Mv());var g=l[b];0===g.otherDims.itemName&&(n=this._nameDimIdx=p),0===g.otherDims.itemId&&(this._idDimIdx=p),a[b]||(a[b]=[]),vv(a,g,i,f,t),this._chunkCount=a[b].length}for(var m=new Array(s),v=e;v<t;v++){m=r.getItem(v,m);for(var y=Math.floor(v/i),_=v%i,x=0;x<s;x++){var b,w=a[b=o[x]][y],T=this._dimValueGetter(m,b,v,x);w[_]=T;var S=h[b];T<S[0]&&(S[0]=T),T>S[1]&&(S[1]=T)}if(!r.pure){var O=u[v];if(m&&null==O)if(null!=m.name)u[v]=O=m.name;else if(null!=n){var M=o[n],D=a[M][y];if(D){O=D[_];var A=l[M].ordinalMeta;A&&A.categories.length&&(O=A.categories[O])}}var k=null==m?null:m.id;null==k&&null!=O&&(d[O]=d[O]||0,k=O,d[O]>0&&(k+="__ec__"+d[O]),d[O]++),null!=k&&(c[v]=k)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent={},yv(this)}},mv.count=function(){return this._count},mv.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,n=this._count;if(t===Array){r=new t(n);for(var i=0;i<n;i++)r[i]=e[i]}else r=new t(e.buffer,0,n)}else{var r=new(t=hv(this))(this.count());for(i=0;i<r.length;i++)r[i]=i}return r},mv.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storage;if(!n[e])return NaN;t=this.getRawIndex(t);var i=Math.floor(t/this._chunkSize),r=t%this._chunkSize;return n[e][i][r]},mv.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._storage[e];if(!n)return NaN;var i=Math.floor(t/this._chunkSize),r=t%this._chunkSize;return n[i][r]},mv._getFast=function(e,t){var n=Math.floor(t/this._chunkSize),i=t%this._chunkSize;return this._storage[e][n][i]},mv.getValues=function(e,t){var n=[];He.isArray(e)||(t=e,e=this.dimensions);for(var i=0,r=e.length;i<r;i++)n.push(this.get(e[i],t));return n},mv.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this.get(t[n],e)))return!1;return!0},mv.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],n=Mv();if(!t)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[e].slice();if(i=this._extent[e])return i.slice();for(var a=(i=n)[0],o=i[1],s=0;s<r;s++){var l=this._getFast(e,this.getRawIndex(s));l<a&&(a=l),l>o&&(o=l)}return i=[a,o],this._extent[e]=i,i},mv.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},mv.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},mv.getCalculationInfo=function(e){return this._calculationInfo[e]},mv.setCalculationInfo=function(e,t){av(e)?He.extend(this._calculationInfo,e):this._calculationInfo[e]=t},mv.getSum=function(e){var t=0;if(this._storage[e])for(var n=0,i=this.count();n<i;n++){var r=this.get(e,n);isNaN(r)||(t+=r)}return t},mv.getMedian=function(e){var t=[];this.each(e,(function(e,n){isNaN(e)||t.push(e)}));var n=[].concat(t).sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},mv.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},mv.indexOfName=function(e){for(var t=0,n=this.count();t<n;t++)if(this.getName(t)===e)return t;return-1},mv.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var i=0,r=this._count-1;i<=r;){var a=(i+r)/2|0;if(t[a]<e)i=a+1;else{if(!(t[a]>e))return a;r=a-1}}return-1},mv.indicesOfNearest=function(e,t,n){var i=[];if(!this._storage[e])return i;null==n&&(n=1/0);for(var r=1/0,a=-1,o=0,s=0,l=this.count();s<l;s++){var u=t-this.get(e,s),c=Math.abs(u);c<=n&&((c<r||c===r&&u>=0&&a<0)&&(r=c,a=u,o=0),u===a&&(i[o++]=s))}return i.length=o,i},mv.getRawIndex=xv,mv.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];t.push(this.get(i,e))}return t},mv.getName=function(e){var t=this.getRawIndex(e);return this._nameList[t]||_v(this,this._nameDimIdx,t)||""},mv.getId=function(e){return wv(this,this.getRawIndex(e))},mv.each=function(e,t,n,i){if(this._count){"function"==typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this;for(var r=(e=He.map(Tv(e),this.getDimension,this)).length,a=0;a<this.count();a++)switch(r){case 0:t.call(n,a);break;case 1:t.call(n,this.get(e[0],a),a);break;case 2:t.call(n,this.get(e[0],a),this.get(e[1],a),a);break;default:for(var o=0,s=[];o<r;o++)s[o]=this.get(e[o],a);s[o]=a,t.apply(n,s)}}},mv.filterSelf=function(e,t,n,i){if(this._count){"function"==typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this,e=He.map(Tv(e),this.getDimension,this);for(var r=this.count(),a=new(hv(this))(r),o=[],s=e.length,l=0,u=e[0],c=0;c<r;c++){var h,d=this.getRawIndex(c);if(0===s)h=t.call(n,c);else if(1===s){var f=this._getFast(u,d);h=t.call(n,f,c)}else{for(var p=0;p<s;p++)o[p]=this._getFast(u,d);o[p]=c,h=t.apply(n,o)}h&&(a[l++]=d)}return l<r&&(this._indices=a),this._count=l,this._extent={},this.getRawIndex=this._indices?bv:xv,this}},mv.selectRange=function(e){if(this._count){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var i=t.length;if(i){var r=this.count(),a=new(hv(this))(r),o=0,s=t[0],l=e[s][0],u=e[s][1],c=!1;if(!this._indices){var h=0;if(1===i){for(var d=this._storage[t[0]],f=0;f<this._chunkCount;f++)for(var p=d[f],g=Math.min(this._count-f*this._chunkSize,this._chunkSize),m=0;m<g;m++){((b=p[m])>=l&&b<=u||isNaN(b))&&(a[o++]=h),h++}c=!0}else if(2===i){d=this._storage[s];var v=this._storage[t[1]],y=e[t[1]][0],_=e[t[1]][1];for(f=0;f<this._chunkCount;f++){p=d[f];var x=v[f];for(g=Math.min(this._count-f*this._chunkSize,this._chunkSize),m=0;m<g;m++){var b=p[m],w=x[m];(b>=l&&b<=u||isNaN(b))&&(w>=y&&w<=_||isNaN(w))&&(a[o++]=h),h++}}c=!0}}if(!c)if(1===i)for(m=0;m<r;m++){var T=this.getRawIndex(m);((b=this._getFast(s,T))>=l&&b<=u||isNaN(b))&&(a[o++]=T)}else for(m=0;m<r;m++){var S=!0;for(T=this.getRawIndex(m),f=0;f<i;f++){var O=t[f];((b=this._getFast(n,T))<e[O][0]||b>e[O][1])&&(S=!1)}S&&(a[o++]=this.getRawIndex(m))}return o<r&&(this._indices=a),this._count=o,this._extent={},this.getRawIndex=this._indices?bv:xv,this}}},mv.mapArray=function(e,t,n,i){"function"==typeof e&&(i=n,n=t,t=e,e=[]),n=n||i||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},mv.map=function(e,t,n,i){n=n||i||this;var r=Sv(this,e=He.map(Tv(e),this.getDimension,this));r._indices=this._indices,r.getRawIndex=r._indices?bv:xv;for(var a=r._storage,o=[],s=this._chunkSize,l=e.length,u=this.count(),c=[],h=r._rawExtent,d=0;d<u;d++){for(var f=0;f<l;f++)c[f]=this.get(e[f],d);c[l]=d;var p=t&&t.apply(n,c);if(null!=p){"object"!=typeof p&&(o[0]=p,p=o);for(var g=this.getRawIndex(d),m=Math.floor(g/s),v=g%s,y=0;y<p.length;y++){var _=e[y],x=p[y],b=h[_],w=a[_];w&&(w[m][v]=x),x<b[0]&&(b[0]=x),x>b[1]&&(b[1]=x)}}}return r},mv.downSample=function(e,t,n,i){for(var r=Sv(this,[e]),a=r._storage,o=[],s=Math.floor(1/t),l=a[e],u=this.count(),c=this._chunkSize,h=r._rawExtent[e],d=new(hv(this))(u),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,o.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(p+g),v=Math.floor(m/c),y=m%c;o[g]=l[v][y]}var _=n(o),x=this.getRawIndex(Math.min(p+i(o,_)||0,u-1)),b=x%c;l[Math.floor(x/c)][b]=_,_<h[0]&&(h[0]=_),_>h[1]&&(h[1]=_),d[f++]=x}return r._count=f,r._indices=d,r.getRawIndex=bv,r},mv.getItemModel=function(e){var t=this.hostModel;return new fh(this.getRawDataItem(e),t,t&&t.ecModel)},mv.diff=function(e){var t=this;return new Xm(e?e.getIndices():[],this.getIndices(),(function(t){return wv(e,t)}),(function(e){return wv(t,e)}))},mv.getVisual=function(e){var t=this._visual;return t&&t[e]},mv.setVisual=function(e,t){if(av(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},mv.setLayout=function(e,t){if(av(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},mv.getLayout=function(e){return this._layout[e]},mv.getItemLayout=function(e){return this._itemLayouts[e]},mv.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?He.extend(this._itemLayouts[e]||{},t):t},mv.clearItemLayouts=function(){this._itemLayouts.length=0},mv.getItemVisual=function(e,t,n){var i=this._itemVisuals[e],r=i&&i[t];return null!=r||n?r:this.getVisual(t)},mv.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{},r=this.hasItemVisual;if(this._itemVisuals[e]=i,av(t))for(var a in t)t.hasOwnProperty(a)&&(i[a]=t[a],r[a]=!0);else i[t]=n,r[t]=!0},mv.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var Dv=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};mv.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(Dv,t)),this._graphicEls[e]=t},mv.getItemGraphicEl=function(e){return this._graphicEls[e]},mv.eachItemGraphicEl=function(e,t){He.each(this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},mv.cloneShallow=function(e){if(!e){var t=He.map(this.dimensions,this.getDimensionInfo,this);e=new gv(t,this.hostModel)}if(e._storage=this._storage,pv(e,this),this._indices){var n=this._indices.constructor;e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?bv:xv,e},mv.wrapMethod=function(e,t){var n=this[e];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(He.slice(arguments)))})},mv.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],mv.CHANGABLE_METHODS=["filterSelf","selectRange"];var Av=gv,kv=He.createHashMap,Iv=He.each,Cv=He.isString,Ev=He.defaults,Nv=He.extend,Rv=He.isObject,Lv=He.clone,Pv=Eo.normalizeToArray,zv=$d.guessOrdinal,Yv=$d.BE_ORDINAL,Hv=ev.OTHER_DIMENSIONS;function Fv(e,t,n){if(n||null!=t.get(e)){for(var i=0;null!=t.get(e+i);)i++;e+=i}return t.set(e,!0),e}var Bv=function(e,t,n){Td.isInstance(t)||(t=Td.seriesDataToSource(t)),n=n||{},e=(e||[]).slice();for(var i=(n.dimsDef||[]).slice(),r=kv(),a=kv(),o=[],s=function(e,t,n,i){var r=Math.max(e.dimensionsDetectCount||1,t.length,n.length,i||0);return Iv(t,(function(e){var t=e.dimsDef;t&&(r=Math.max(r,t.length))})),r}(t,e,i,n.dimCount),l=0;l<s;l++){var u=i[l]=Nv({},Rv(i[l])?i[l]:{name:i[l]}),c=u.name,h=o[l]=new tv;null!=c&&null==r.get(c)&&(h.name=h.displayName=c,r.set(c,l)),null!=u.type&&(h.type=u.type),null!=u.displayName&&(h.displayName=u.displayName)}var d=n.encodeDef;!d&&n.encodeDefaulter&&(d=n.encodeDefaulter(t,s)),(d=kv(d)).each((function(e,t){if(1===(e=Pv(e).slice()).length&&!Cv(e[0])&&e[0]<0)d.set(t,!1);else{var n=d.set(t,[]);Iv(e,(function(e,i){Cv(e)&&(e=r.get(e)),null!=e&&e<s&&(n[i]=e,p(o[e],t,i))}))}}));var f=0;function p(e,t,n){null!=Hv.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,a.set(t,!0))}Iv(e,(function(e,t){var n,i,r;if(Cv(e))n=e,e={};else{n=e.name;var a=e.ordinalMeta;e.ordinalMeta=null,(e=Lv(e)).ordinalMeta=a,i=e.dimsDef,r=e.otherDims,e.name=e.coordDim=e.coordDimIndex=e.dimsDef=e.otherDims=null}if(!1!==(s=d.get(n))){var s;if(!(s=Pv(s)).length)for(var l=0;l<(i&&i.length||1);l++){for(;f<o.length&&null!=o[f].coordDim;)f++;f<o.length&&s.push(f++)}Iv(s,(function(t,a){var s=o[t];if(p(Ev(s,e),n,a),null==s.name&&i){var l=i[a];!Rv(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}r&&Ev(s.otherDims,r)}))}}));var g=n.generateCoord,m=n.generateCoordCount,v=null!=m;m=g?m||1:0;for(var y=g||"value",_=0;_<s;_++){null==(h=o[_]=o[_]||new tv).coordDim&&(h.coordDim=Fv(y,a,v),h.coordDimIndex=0,(!g||m<=0)&&(h.isExtraCoord=!0),m--),null==h.name&&(h.name=Fv(h.coordDim,r)),null!=h.type||zv(t,_,h.name)!==Yv.Must&&(!h.isExtraCoord||null==h.otherDims.itemName&&null==h.otherDims.seriesName)||(h.type="ordinal")}return o},jv=Bv;var Uv=function(e,t){return jv((t=t||{}).coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})},Wv=He.createHashMap,Gv=He.each;function Vv(e){this.coordSysName=e,this.coordSysDims=[],this.axisMap=Wv(),this.categoryAxisMap=Wv(),this.firstCategoryDimIndex=null}var qv={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis")[0],a=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),Zv(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),Zv(a)&&(i.set("y",a),t.firstCategoryDimIndex,t.firstCategoryDimIndex=1)},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],n.set("single",r),Zv(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar")[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),Zv(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Zv(o)&&(i.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,a=r.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();Gv(a.parallelAxisIndex,(function(e,a){var s=r.getComponent("parallelAxis",e),l=o[a];n.set(l,s),Zv(s)&&null==t.firstCategoryDimIndex&&(i.set(l,s),t.firstCategoryDimIndex=a)}))}};function Zv(e){return"category"===e.get("type")}var Xv={getCoordSysInfoBySeries:function(e){var t=e.get("coordinateSystem"),n=new Vv(t),i=qv[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}},Kv=He.each,$v=He.isString;function Qv(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}var Jv={enableDataStack:function(e,t,n){var i,r,a,o,s=(n=n||{}).byIndex,l=n.stackedCoordDimension,u=!(!e||!e.get("stack"));if(Kv(t,(function(e,n){$v(e)&&(t[n]=e={name:e}),u&&!e.isExtraCoord&&(s||i||!e.ordinalMeta||(i=e),r||"ordinal"===e.type||"time"===e.type||l&&l!==e.coordDim||(r=e))})),!r||s||i||(s=!0),r){a="__\0ecstackresult",o="__\0ecstackedover",i&&(i.createInvertedIndices=!0);var c=r.coordDim,h=r.type,d=0;Kv(t,(function(e){e.coordDim===c&&d++})),t.push({name:a,coordDim:c,coordDimIndex:d,type:h,isExtraCoord:!0,isCalculationCoord:!0}),d++,t.push({name:o,coordDim:o,coordDimIndex:d,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:r&&r.name,stackedByDimension:i&&i.name,isStackedByIndex:s,stackedOverDimension:o,stackResultDimension:a}},isDimensionStacked:Qv,getStackedDimension:function(e,t){return Qv(e,t)?e.getCalculationInfo("stackResultDimension"):t}},ey=fd.SOURCE_FORMAT_ORIGINAL,ty=ev.getDimensionTypeByAxis,ny=Eo.getDataItemValue,iy=Xv.getCoordSysInfoBySeries,ry=Jv.enableDataStack,ay=$d.makeSeriesEncodeForAxisCoordSys;var oy=function(e,t,n){n=n||{},Td.isInstance(e)||(e=Td.seriesDataToSource(e));var i,r=t.get("coordinateSystem"),a=Tf.get(r),o=iy(t);o&&(i=He.map(o.coordSysDims,(function(e){var t={name:e},n=o.axisMap.get(e);if(n){var i=n.get("type");t.type=ty(i)}return t}))),i||(i=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]);var s,l,u=Uv(e,{coordDimensions:i,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?He.curry(ay,i,t):null});o&&He.each(u,(function(e,t){var n=e.coordDim,i=o.categoryAxisMap.get(n);i&&(null==s&&(s=t),e.ordinalMeta=i.getOrdinalMeta()),null!=e.otherDims.itemName&&(l=!0)})),l||null==s||(u[s].otherDims.itemName=0);var c=ry(t,u),h=new Av(u,t);h.setCalculationInfo(c);var d=null!=s&&function(e){if(e.sourceFormat===ey){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return null!=t&&!He.isArray(ny(t))}}(e)?function(e,t,n,i){return i===s?n:this.defaultDimValueGetter(e,t,n,i)}:null;return h.hasItemOption=!1,h.initData(e,null,d),h},sy=oy;function ly(e){this._setting=e||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}ly.prototype.parse=function(e){return e},ly.prototype.getSetting=function(e){return this._setting[e]},ly.prototype.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},ly.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},ly.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},ly.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},ly.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},ly.prototype.getExtent=function(){return this._extent.slice()},ly.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},ly.prototype.isBlank=function(){return this._isBlank},ly.prototype.setBlank=function(e){this._isBlank=e},ly.prototype.getLabel=null,Bo.enableClassExtend(ly),Bo.enableClassManagement(ly,{registerWhenExtend:!0});var uy=ly,cy=He.createHashMap,hy=He.isObject,dy=He.map;function fy(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}fy.createByAxisModel=function(e){var t=e.option,n=t.data,i=n&&dy(n,my);return new fy({categories:i,needCollect:!i,deduplication:!1!==t.dedplication})};var py=fy.prototype;function gy(e){return e._map||(e._map=cy(e.categories))}function my(e){return hy(e)&&null!=e.value?e.value:e+""}py.getOrdinal=function(e){return gy(this).get(e)},py.parseAndCollect=function(e){var t,n=this._needCollect;if("string"!=typeof e&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=gy(this);return null==(t=i.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t};var vy=fy,yy=uy.prototype,_y=uy.extend({type:"ordinal",init:function(e,t){e&&!He.isArray(e)||(e=new vy({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return"string"==typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),yy.contain.call(this,e)&&null!=this._ordinalMeta.categories[e]},normalize:function(e){return yy.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(yy.scale.call(this,e))},getTicks:function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push(n),n++;return e},getLabel:function(e){if(!this.isBlank())return this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:He.noop,niceExtent:He.noop});_y.create=function(){return new _y};var xy=_y,by=Dh.round;function wy(e){return Dh.getPrecisionSafe(e)+2}function Ty(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Sy(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Ty(e,0,t),Ty(e,1,t),e[0]>e[1]&&(e[0]=e[1])}var Oy={intervalScaleNiceTicks:function(e,t,n,i){var r={},a=e[1]-e[0],o=r.interval=Dh.nice(a/t,!0);null!=n&&o<n&&(o=r.interval=n),null!=i&&o>i&&(o=r.interval=i);var s=r.intervalPrecision=wy(o);return Sy(r.niceTickExtent=[by(Math.ceil(e[0]/o)*o,s),by(Math.floor(e[1]/o)*o,s)],e),r},getIntervalPrecision:wy,fixExtent:Sy},My=Dh.round,Dy=uy.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),Dy.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Oy.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,a=[];if(!t)return a;n[0]<i[0]&&(e?a.push(My(i[0]-t,r)):a.push(n[0]));for(var o=i[0];o<=i[1]&&(a.push(o),(o=My(o+t,r))!==a[a.length-1]);)if(a.length>1e4)return[];var s=a.length?a[a.length-1]:i[1];return n[1]>s&&(e?a.push(My(s+t,r)):a.push(n[1])),a},getMinorTicks:function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){for(var a=t[r],o=t[r-1],s=0,l=[],u=(a-o)/e;s<e-1;){var c=Dh.round(o+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},getLabel:function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=Dh.getPrecisionSafe(e)||0:"auto"===n&&(n=this._intervalPrecision),e=My(e,n,!0),Fh.addCommas(e)},niceTicks:function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var a=Oy.intervalScaleNiceTicks(i,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=My(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=My(Math.ceil(t[1]/r)*r))}});Dy.create=function(){return new Dy};var Ay=Dy,ky=Dh.parsePercent,Iy=Jv.isDimensionStacked,Cy="__ec_stack_",Ey="undefined"!=typeof Float32Array?Float32Array:Array;function Ny(e){return e.get("stack")||Cy+e.seriesIndex}function Ry(e){return e.dim+e.index}function Ly(e,t){var n=[];return t.eachSeriesByType(e,(function(e){Fy(e)&&!By(e)&&n.push(e)})),n}function Py(e){var t=function(e){var t={};He.each(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=e.getData(),r=n.dim+"_"+n.index,a=i.mapDimension(n.dim),o=0,s=i.count();o<s;++o){var l=i.get(a,o);t[r]?t[r].push(l):t[r]=[l]}}));var n=[];for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(r){r.sort((function(e,t){return e-t}));for(var a=null,o=1;o<r.length;++o){var s=r[o]-r[o-1];s>0&&(a=null===a?s:Math.min(a,s))}n[i]=a}}return n}(e),n=[];return He.each(e,(function(e){var i,r=e.coordinateSystem.getBaseAxis(),a=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var o=r.dim+"_"+r.index,s=t[o],l=Math.abs(a[1]-a[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=e.getData();i=Math.abs(a[1]-a[0])/h.count()}var d=ky(e.get("barWidth"),i),f=ky(e.get("barMaxWidth"),i),p=ky(e.get("barMinWidth")||1,i),g=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:g,barCategoryGap:m,axisKey:Ry(r),stackId:Ny(e)})})),zy(n)}function zy(e){var t={};He.each(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,a=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=a.stacks;t[i]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=e.barMaxWidth;u&&(o[s].maxWidth=u);var c=e.barMinWidth;c&&(o[s].minWidth=c);var h=e.barGap;null!=h&&(a.gap=h);var d=e.barCategoryGap;null!=d&&(a.categoryGap=d)}));var n={};return He.each(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,a=ky(e.categoryGap,r),o=ky(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-a)/(l+(l-1)*o);u=Math.max(u,0),He.each(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,s-=i+o*i,l--}else{var i=u;t&&t<i&&(i=Math.min(t,s)),n&&n>i&&(i=n),i!==u&&(e.width=i,s-=i+o*i,l--)}})),u=(s-a)/(l+(l-1)*o),u=Math.max(u,0);var c,h=0;He.each(i,(function(e,t){e.width||(e.width=u),c=e,h+=e.width*(1+o)})),c&&(h-=c.width*o);var d=-h/2;He.each(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:d,width:e.width},d+=e.width*(1+o)}))})),n}function Yy(e,t,n){if(e&&t){var i=e[Ry(t)];return null!=i&&null!=n&&(i=i[Ny(n)]),i}}var Hy={seriesType:"bar",plan:og(),reset:function(e){if(Fy(e)&&By(e)){var t=e.getData(),n=e.coordinateSystem,i=n.grid.getRect(),r=n.getBaseAxis(),a=n.getOtherAxis(r),o=t.mapDimension(a.dim),s=t.mapDimension(r.dim),l=a.isHorizontal(),u=l?0:1,c=Yy(Py([e]),r,e).width;return c>.5||(c=.5),{progress:function(e,t){var h,d=e.count,f=new Ey(2*d),p=new Ey(2*d),g=new Ey(d),m=[],v=[],y=0,_=0;for(;null!=(h=e.next());)v[u]=t.get(o,h),v[1-u]=t.get(s,h),m=n.dataToPoint(v,null,m),p[y]=l?i.x+i.width:m[0],f[y++]=m[0],p[y]=l?m[1]:i.y+i.height,f[y++]=m[1],g[_++]=h;t.setLayout({largePoints:f,largeDataIndices:g,largeBackgroundPoints:p,barWidth:c,valueAxisStart:jy(r,a),backgroundStart:l?i.x:i.y,valueAxisHorizontal:l})}}}}};function Fy(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function By(e){return e.pipelineContext&&e.pipelineContext.large}function jy(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}var Uy=function(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),a=0;a<e.count;a++)t.push(He.defaults({bandWidth:r,axisKey:i,stackId:Cy+a},e));var o=zy(t),s=[];for(a=0;a<e.count;a++){var l=o[i][Cy+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}},Wy=function(e,t){var n=Ly(e,t),i=Py(n),r={};He.each(n,(function(e){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=Ny(e),s=i[Ry(a)][o],l=s.offset,u=s.width,c=n.getOtherAxis(a),h=e.get("barMinHeight")||0;r[o]=r[o]||[],t.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=t.mapDimension(c.dim),f=t.mapDimension(a.dim),p=Iy(t,d),g=c.isHorizontal(),m=jy(a,c),v=0,y=t.count();v<y;v++){var _,x,b,w,T,S=t.get(d,v),O=t.get(f,v),M=S>=0?"p":"n",D=m;if(p&&(r[o][O]||(r[o][O]={p:m,n:m}),D=r[o][O][M]),g)_=D,x=(T=n.dataToPoint([S,O]))[1]+l,b=T[0]-m,w=u,Math.abs(b)<h&&(b=(b<0?-1:1)*h),isNaN(b)||p&&(r[o][O][M]+=b);else _=(T=n.dataToPoint([O,S]))[0]+l,x=D,b=u,w=T[1]-m,Math.abs(w)<h&&(w=(w<=0?-1:1)*h),isNaN(w)||p&&(r[o][O][M]+=w);t.setItemLayout(v,{x:_,y:x,width:b,height:w})}}),this)},Gy={getLayoutOnAxis:Uy,prepareLayoutBarSeries:Ly,makeColumnLayout:Py,retrieveColumnLayout:Yy,layout:Wy,largeLayout:Hy},Vy=Ay.prototype,qy=Math.ceil,Zy=Math.floor,Xy=1e3,Ky=6e4,$y=36e5,Qy=864e5,Jy=Ay.extend({type:"time",getLabel:function(e){var t=this._stepLvl,n=new Date(e);return Fh.formatTime(t[0],n,this.getSetting("useUTC"))},niceExtent:function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=Qy,t[1]+=Qy),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Qy}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=Dh.round(Zy(t[0]/i)*i)),e.fixMax||(t[1]=Dh.round(qy(t[1]/i)*i))},niceTicks:function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0],a=r/e;null!=t&&a<t&&(a=t),null!=n&&a>n&&(a=n);var o=e_.length,s=function(e,t,n,i){for(;n<i;){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n}(e_,a,0,o),l=e_[Math.min(s,o-1)],u=l[1];if("year"===l[0]){var c=r/u;u*=Dh.nice(c/e,!0)}var h=this.getSetting("useUTC")?0:60*new Date(+i[0]||+i[1]).getTimezoneOffset()*1e3,d=[Math.round(qy((i[0]-h)/u)*u+h),Math.round(Zy((i[1]-h)/u)*u+h)];Oy.fixExtent(d,i),this._stepLvl=l,this._interval=u,this._niceExtent=d},parse:function(e){return+Dh.parseDate(e)}});He.each(["contain","normalize"],(function(e){Jy.prototype[e]=function(t){return Vy[e].call(this,this.parse(t))}}));var e_=[["hh:mm:ss",Xy],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",Ky],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",$y],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",Qy],["MM-dd\nyyyy",1728e5],["MM-dd\nyyyy",2592e5],["MM-dd\nyyyy",3456e5],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",5184e5],["week",6048e5],["MM-dd\nyyyy",864e6],["week",12096e5],["week",18144e5],["month",26784e5],["week",36288e5],["month",53568e5],["week",6048e6],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];Jy.create=function(e){return new Jy({useUTC:e.ecModel.get("useUTC")})};var t_=uy.prototype,n_=Ay.prototype,i_=Dh.getPrecisionSafe,r_=Dh.round,a_=Math.floor,o_=Math.ceil,s_=Math.pow,l_=Math.log,u_=uy.extend({type:"log",base:10,$constructor:function(){uy.apply(this,arguments),this._originalScale=new Ay},getTicks:function(e){var t=this._originalScale,n=this._extent,i=t.getExtent();return He.map(n_.getTicks.call(this,e),(function(e){var r=Dh.round(s_(this.base,e));return r=e===n[0]&&t.__fixMin?c_(r,i[0]):r,r=e===n[1]&&t.__fixMax?c_(r,i[1]):r}),this)},getMinorTicks:n_.getMinorTicks,getLabel:n_.getLabel,scale:function(e){return e=t_.scale.call(this,e),s_(this.base,e)},setExtent:function(e,t){var n=this.base;e=l_(e)/l_(n),t=l_(t)/l_(n),n_.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=t_.getExtent.call(this);t[0]=s_(e,t[0]),t[1]=s_(e,t[1]);var n=this._originalScale,i=n.getExtent();return n.__fixMin&&(t[0]=c_(t[0],i[0])),n.__fixMax&&(t[1]=c_(t[1],i[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=l_(e[0])/l_(t),e[1]=l_(e[1])/l_(t),t_.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=Dh.quantity(n);for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[Dh.round(o_(t[0]/i)*i),Dh.round(a_(t[1]/i)*i)];this._interval=i,this._niceExtent=r}},niceExtent:function(e){n_.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});function c_(e,t){return r_(e,i_(t))}He.each(["contain","normalize"],(function(e){u_.prototype[e]=function(t){return t=l_(t)/l_(this.base),t_[e].call(this,t)}})),u_.create=function(){return new u_};var h_=Gy.prepareLayoutBarSeries,d_=Gy.makeColumnLayout,f_=Gy.retrieveColumnLayout;function p_(e,t){var n,i,r,a=e.type,o=t.getMin(),s=t.getMax(),l=e.getExtent();"ordinal"===a?n=t.getCategories().length:(i=t.get("boundaryGap"),He.isArray(i)||(i=[i||0,i||0]),"boolean"==typeof i[0]&&(i=[0,0]),i[0]=Dh.parsePercent(i[0],1),i[1]=Dh.parsePercent(i[1],1),r=l[1]-l[0]||Math.abs(l[0])),"dataMin"===o?o=l[0]:"function"==typeof o&&(o=o({min:l[0],max:l[1]})),"dataMax"===s?s=l[1]:"function"==typeof s&&(s=s({min:l[0],max:l[1]}));var u=null!=o,c=null!=s;null==o&&(o="ordinal"===a?n?0:NaN:l[0]-i[0]*r),null==s&&(s="ordinal"===a?n?n-1:NaN:l[1]+i[1]*r),(null==o||!isFinite(o))&&(o=NaN),(null==s||!isFinite(s))&&(s=NaN),e.setBlank(He.eqNaN(o)||He.eqNaN(s)||"ordinal"===a&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(o>0&&s>0&&!u&&(o=0),o<0&&s<0&&!c&&(s=0));var h=t.ecModel;if(h&&"time"===a){var d,f=h_("bar",h);if(He.each(f,(function(e){d|=e.getBaseAxis()===t.axis})),d){var p=d_(f),g=function(e,t,n,i){var r=n.axis.getExtent(),a=r[1]-r[0],o=f_(i,n.axis);if(void 0===o)return{min:e,max:t};var s=1/0;He.each(o,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;He.each(o,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,h=c/(1-(s+l)/a)-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}(o,s,t,p);o=g.min,s=g.max}}return{extent:[o,s],fixMin:u,fixMax:c}}function g_(e){var t,n=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"string"==typeof n?(t=n,n=function(n){return n=e.scale.getLabel(n),t.replace("{value}",null!=n?n:"")}):"function"==typeof n?function(t,r){return null!=i&&(r=t-i),n(m_(e,t),r)}:function(t){return e.scale.getLabel(t)}}function m_(e,t){return"category"===e.type?e.scale.getLabel(t):t}function v_(e,t){var n=t*Math.PI/180,i=e.plain(),r=i.width,a=i.height,o=r*Math.cos(n)+a*Math.sin(n),s=r*Math.sin(n)+a*Math.cos(n);return new Ii(i.x,i.y,o,s)}function y_(e){var t=e.get("interval");return null==t?"auto":t}var __=function(e,t){var n=p_(e,t),i=n.extent,r=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var a=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===a||"time"===a?t.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?t.get("maxInterval"):null});var o=t.get("interval");null!=o&&e.setInterval&&e.setInterval(o)},x_=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new xy(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new Ay;default:return(uy.getClass(t)||Ay).create(e)}},b_=function(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)},w_=function(e){var t=e.model,n=e.scale;if(t.get("axisLabel.show")&&!n.isBlank()){var i,r,a="category"===e.type,o=n.getExtent();r=a?n.count():(i=n.getTicks()).length;var s,l=e.getLabelModel(),u=g_(e),c=1;r>40&&(c=Math.ceil(r/40));for(var h=0;h<r;h+=c){var d=u(i?i[h]:o[0]+h),f=v_(l.getTextRect(d),l.get("rotate")||0);s?s.union(f):s=f}return s}},T_={getScaleExtent:p_,niceScaleExtent:__,createScaleByModel:x_,ifAxisCrossZero:b_,makeLabelFormatter:g_,getAxisRawValue:m_,estimateLabelUnionRect:w_,getOptionCategoryInterval:y_,shouldShowAllLabels:function(e){return"category"===e.type&&0===y_(e.getLabelModel())}},S_={getMin:function(e){var t=this.option,n=e||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!=typeof n&&!He.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(e){var t=this.option,n=e||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!=typeof n&&!He.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:He.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},O_=S_,M_=jr.calculateTextPosition,D_=Qc.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i+a),e.lineTo(n-r,i+a),e.closePath()}}),A_=Qc.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,a=t.height/2;e.moveTo(n,i-a),e.lineTo(n+r,i),e.lineTo(n,i+a),e.lineTo(n-r,i),e.closePath()}}),k_=Qc.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,a=Math.max(r,t.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),f=.6*o,p=.7*o;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-h*f,l+s+d*f,n,i-p,n,i),e.bezierCurveTo(n,i-p,n-c+h*f,l+s+d*f,n-c,l+s),e.closePath()}}),I_=Qc.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,a=t.y,o=i/3*2;e.moveTo(r,a),e.lineTo(r+o,a+n),e.lineTo(r,a+n/4*3),e.lineTo(r-o,a+n),e.lineTo(r,a),e.closePath()}}),C_={line:Qc.Line,rect:Qc.Rect,roundRect:Qc.Rect,square:Qc.Rect,circle:Qc.Circle,diamond:A_,pin:k_,arrow:I_,triangle:D_},E_={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var a=Math.min(n,i);r.x=e,r.y=t,r.width=a,r.height=a},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},N_={};He.each(C_,(function(e,t){N_[t]=new e}));var R_=Qc.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=M_(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.textPosition&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=N_[i];r||(r=N_[i="rect"]),E_[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function L_(e,t){if("image"!==this.type){var n=this.style,i=this.shape;i&&"line"===i.symbolType?n.stroke=e:this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff"):(n.fill&&(n.fill=e),n.stroke&&(n.stroke=e)),this.dirty(!1)}}var P_=function(e,t,n,i,r,a,o){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?Qc.makeImage(e.slice(8),new Ii(t,n,i,r),o?"center":"cover"):0===e.indexOf("path://")?Qc.makePath(e.slice(7),{},new Ii(t,n,i,r),o?"center":"cover"):new R_({shape:{symbolType:e,x:t,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=L_,s.setColor(a),s},z_={createSymbol:P_};var Y_=function(e,t){var n=t;fh.isInstance(t)||(n=new fh(t),He.mixin(n,O_));var i=T_.createScaleByModel(n);return i.setExtent(e[0],e[1]),T_.niceScaleExtent(i,n),i},H_=function(e){He.mixin(e,O_)},F_={getLayoutRect:Jh.getLayoutRect,completeDimensions:jv,createDimensions:Uv,createSymbol:z_.createSymbol,createList:function(e){return sy(e.getSource(),e)},dataStack:{isDimensionStacked:Jv.isDimensionStacked,enableDataStack:Jv.enableDataStack,getStackedDimension:Jv.getStackedDimension},createScale:Y_,mixinAxisModelCommonMethods:H_},B_=1e-8;function j_(e,t){return Math.abs(e-t)<B_}var U_=function(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var a=1;a<e.length;a++){var o=e[a];i+=il(r[0],r[1],o[0],o[1],t,n),r=o}var s=e[0];return j_(r[0],s[0])&&j_(r[1],s[1])||(i+=il(r[0],r[1],s[0],s[1],t,n)),0!==i},W_={contain:U_};function G_(e,t,n){if(this.name=e,this.geometries=t,n)n=[n[0],n[1]];else{var i=this.getBoundingRect();n=[i.x+i.width/2,i.y+i.height/2]}this.center=n}G_.prototype={constructor:G_,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],i=[-t,-t],r=[],a=[],o=this.geometries,s=0;s<o.length;s++)if("polygon"===o[s].type){var l=o[s].exterior;Es.fromPoints(l,r,a),st.min(n,n,r),st.max(i,i,a)}return 0===s&&(n[0]=n[1]=i[0]=i[1]=0),this._rect=new Ii(n[0],n[1],i[0]-n[0],i[1]-n[1])},contain:function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++)if("polygon"===n[i].type){var a=n[i].exterior,o=n[i].interiors;if(W_.contain(a,e[0],e[1])){for(var s=0;s<(o?o.length:0);s++)if(W_.contain(o[s]))continue e;return!0}}return!1},transformTo:function(e,t,n,i){var r=this.getBoundingRect(),a=r.width/r.height;n?i||(i=n/a):n=a*i;for(var o=new Ii(e,t,n,i),s=r.calculateTransform(o),l=this.geometries,u=0;u<l.length;u++)if("polygon"===l[u].type){for(var c=l[u].exterior,h=l[u].interiors,d=0;d<c.length;d++)st.applyTransform(c[d],c[d],s);for(var f=0;f<(h?h.length:0);f++)for(d=0;d<h[f].length;d++)st.applyTransform(h[f][d],h[f][d],s)}(r=this._rect).copy(o),this.center=[r.x+r.width/2,r.y+r.height/2]},cloneShallow:function(e){null==e&&(e=this.name);var t=new G_(e,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t}};var V_=G_;function q_(e,t,n){for(var i=[],r=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,a=l+=a,i.push([s/n,l/n])}return i}var Z_=function(e,t){return function(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);for(var n=e.features,i=0;i<n.length;i++)for(var r=n[i].geometry,a=r.coordinates,o=r.encodeOffsets,s=0;s<a.length;s++){var l=a[s];if("Polygon"===r.type)a[s]=q_(l,o[s],t);else if("MultiPolygon"===r.type)for(var u=0;u<l.length;u++){var c=l[u];l[u]=q_(c,o[s][u],t)}}e.UTF8Encoding=!1}(e),He.map(He.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=i.coordinates,a=[];"Polygon"===i.type&&a.push({type:"polygon",exterior:r[0],interiors:r.slice(1)}),"MultiPolygon"===i.type&&He.each(r,(function(e){e[0]&&a.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}));var o=new V_(n[t||"name"],a,n.cp);return o.properties=n,o}))},X_=Eo.makeInner,K_=T_.makeLabelFormatter,$_=T_.getOptionCategoryInterval,Q_=T_.shouldShowAllLabels,J_=X_();function ex(e,t){var n,i,r=tx(e,"labels"),a=$_(t),o=nx(r,a);return o||(He.isFunction(a)?n=ax(e,a):(i="auto"===a?function(e){var t=J_(e).autoInterval;return null!=t?t:J_(e).autoInterval=e.calculateCategoryInterval()}(e):a,n=rx(e,i)),ix(r,a,{labels:n,labelCategoryInterval:i}))}function tx(e,t){return J_(e)[t]||(J_(e)[t]=[])}function nx(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function ix(e,t,n){return e.push({key:t,value:n}),n}function rx(e,t,n){var i=K_(e),r=e.scale,a=r.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Q_(e),d=o.get("showMinLabel")||h,f=o.get("showMaxLabel")||h;d&&u!==a[0]&&g(a[0]);for(var p=u;p<=a[1];p+=l)g(p);function g(e){s.push(n?e:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:e})}return f&&p-l!==a[1]&&g(a[1]),s}function ax(e,t,n){var i=e.scale,r=K_(e),a=[];return He.each(i.getTicks(),(function(e){var o=i.getLabel(e);t(e,o)&&a.push(n?e:{formattedLabel:r(e),rawLabel:o,tickValue:e})})),a}var ox={createAxisLabels:function(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=ex(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=K_(e);return{labels:He.map(t,(function(t,i){return{formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t}}))}}(e)},createAxisTicks:function(e,t){return"category"===e.type?function(e,t){var n,i,r=tx(e,"ticks"),a=$_(t),o=nx(r,a);if(o)return o;t.get("show")&&!e.scale.isBlank()||(n=[]);if(He.isFunction(a))n=ax(e,a,!0);else if("auto"===a){var s=ex(e,e.getLabelModel());i=s.labelCategoryInterval,n=He.map(s.labels,(function(e){return e.tickValue}))}else n=rx(e,i=a,!0);return ix(r,a,{ticks:n,tickCategoryInterval:i})}(e,t):{ticks:e.scale.getTicks()}},calculateCategoryInterval:function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=K_(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,a=r.getExtent(),o=r.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,f=0;l<=a[1];l+=s){var p,g,m=jr.getBoundingRect(n(l),t.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/c,y=f/h;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(v,y))),x=J_(e.model),b=e.getExtent(),w=x.lastAutoInterval,T=x.lastTickCount;return null!=w&&null!=T&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&x.axisExtend0===b[0]&&x.axisExtend1===b[1]?_=w:(x.lastTickCount=o,x.lastAutoInterval=_,x.axisExtend0=b[0],x.axisExtend1=b[1]),_}},sx=He.each,lx=He.map,ux=Dh.linearMap,cx=Dh.getPixelPrecision,hx=Dh.round,dx=ox.createAxisTicks,fx=ox.createAxisLabels,px=ox.calculateCategoryInterval,gx=[0,1],mx=function(e,t,n){this.dim=e,this.scale=t,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function vx(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}mx.prototype={constructor:mx,contain:function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},containData:function(e){return this.scale.contain(e)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return cx(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var n=this._extent;n[0]=e,n[1]=t},dataToCoord:function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&vx(n=n.slice(),i.count()),ux(e,gx,n,t)},coordToData:function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&vx(n=n.slice(),i.count());var r=ux(e,n,gx,t);return this.scale.scale(r)},pointToData:function(e,t){},getTicksCoords:function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=dx(this,t).ticks,i=lx(n,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this);return function(e,t,n,i){var r=t.length;if(!e.onBand||n||!r)return;var a,o,s=e.getExtent();if(1===r)t[0].coord=s[0],a=t[1]={coord:s[0]};else{var l=t[r-1].tickValue-t[0].tickValue,u=(t[r-1].coord-t[0].coord)/l;sx(t,(function(e){e.coord-=u/2})),o=1+e.scale.getExtent()[1]-t[r-1].tickValue,a={coord:t[r-1].coord+u*o},t.push(a)}var c=s[0]>s[1];h(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift());i&&h(s[0],t[0].coord)&&t.unshift({coord:s[0]});h(s[1],a.coord)&&(i?a.coord=s[1]:t.pop());i&&h(a.coord,s[1])&&t.push({coord:s[1]});function h(e,t){return e=hx(e),t=hx(t),c?e>t:e<t}}(this,i,t.get("alignWithLabel"),e.clamp),i},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");e>0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return lx(t,(function(e){return lx(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},getViewLabels:function(){return fx(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return px(this)}};var yx=mx,_x=yo,xx=nn,bx=st,Tx=Wn,Sx=Dh,Ox=Fh,Mx=Tg.throttle,Dx=F_,Ax=Z_,kx=Av,Ix=fh,Cx=yx,Ex=ne,Nx=Z_,Rx={};He.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(e){Rx[e]=He[e]}));var Lx={};He.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(e){Lx[e]=Qc[e]}));var Px={zrender:_x,matrix:xx,vector:bx,color:Tx,number:Sx,format:Ox,throttle:Mx,helper:Dx,parseGeoJSON:Ax,List:kx,Model:Ix,Axis:Cx,env:Ex,parseGeoJson:Nx,util:Rx,graphic:Lx},zx=Q((function(e,t){var n=Tg.throttle,i=He.assert,r=He.each,a=He.isFunction,o=He.isObject,s=ad.parseClassType,l={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:3500,COMPONENT:4e3,BRUSH:5e3}},u="__flagInMainProcess",c="__optionUpdated",h=/^[a-zA-Z0-9_]+$/;function d(e,t){return function(n,i,r){t||!this._disposed?(n=n&&n.toLowerCase(),pt.prototype[e].call(this,n,i,r)):this.id}}function f(){pt.call(this)}function p(e,t,i){i=i||{},"string"==typeof t&&(t=Y[t]),this.id,this.group,this._dom=e;var r=this._zr=yo.init(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=n(He.bind(r.flush,r),17),(t=He.clone(t))&&$f(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new Tf;var a,o,s=this._api=(o=(a=this)._coordSysMgr,He.extend(new xf(a),{getCoordinateSystems:He.bind(o.getCoordinateSystems,o),getComponentByElement:function(e){for(;e;){var t=e.__ecComponentInfo;if(null!=t)return a._model.getComponent(t.mainType,t.index);e=e.parent}}}));function l(e,t){return e.__prio-t.__prio}Fi(z,l),Fi(R,l),this._scheduler=new am(this,s,R,z),pt.call(this,this._ecEventProcessor=new C),this._messageCenter=new f,this._initEvents(),this.resize=He.bind(this.resize,this),this._pendingActions=[],r.animation.on("frame",this._onframe,this),function(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t[c]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}(r,this),He.setAsPrimitive(this)}f.prototype.on=d("on",!0),f.prototype.off=d("off",!0),f.prototype.one=d("one",!0),He.mixin(f,pt);var g=p.prototype;function m(e,t,n){if(this._disposed)this.id;else{var i,r=this._model,a=this._coordSysMgr.getCoordinateSystems();t=Eo.parseFinder(r,t);for(var o=0;o<a.length;o++){var s=a[o];if(s[e]&&null!=(i=s[e](r,t,n)))return i}}}g._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this[c]){var t=this[c].silent;this[u]=!0,y(this),v.update.call(this),this[u]=!1,this[c]=!1,w.call(this,t),T.call(this,t)}else if(e.unfinished){var n=1,i=this._model,r=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),x(this,i),e.performVisualTasks(i),D(this,this._model,r,"remain"),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},g.getDom=function(){return this._dom},g.getZr=function(){return this._zr},g.setOption=function(e,t,n){if(this._disposed)this.id;else{var i;if(o(t)&&(n=t.lazyUpdate,i=t.silent,t=t.notMerge),this[u]=!0,!this._model||t){var r=new Ef(this._api),a=this._theme,s=this._model=new yf;s.scheduler=this._scheduler,s.init(null,null,a,r)}this._model.setOption(e,L),n?(this[c]={silent:i},this[u]=!1):(y(this),v.update.call(this),this._zr.flush(),this[c]=!1,this[u]=!1,w.call(this,i),T.call(this,i))}},g.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},g.getModel=function(){return this._model},g.getOption=function(){return this._model&&this._model.getOption()},g.getWidth=function(){return this._zr.getWidth()},g.getHeight=function(){return this._zr.getHeight()},g.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},g.getRenderedCanvas=function(e){if(ne.canvasSupported)return(e=e||{}).pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(e)},g.getSvgDataURL=function(){if(ne.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return He.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},g.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,i=[],a=this;r(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=a._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return r(i,(function(e){e.group.ignore=!1})),o}this.id},g.getConnectedDataURL=function(e){if(this._disposed)this.id;else if(ne.canvasSupported){var t="svg"===e.type,n=this.group,i=Math.min,a=Math.max,o=1/0;if(B[n]){var s=o,l=o,u=-1/0,c=-1/0,h=[],d=e&&e.pixelRatio||1;He.each(F,(function(r,o){if(r.group===n){var d=t?r.getZr().painter.getSvgDom().innerHTML:r.getRenderedCanvas(He.clone(e)),f=r.getDom().getBoundingClientRect();s=i(f.left,s),l=i(f.top,l),u=a(f.right,u),c=a(f.bottom,c),h.push({dom:d,left:f.left,top:f.top})}}));var f=(u*=d)-(s*=d),p=(c*=d)-(l*=d),g=He.createCanvas(),m=yo.init(g,{renderer:t?"svg":"canvas"});if(m.resize({width:f,height:p}),t){var v="";return r(h,(function(e){var t=e.left-s,n=e.top-l;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),m.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new Qc.Rect({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),r(h,(function(e){var t=new Qc.Image({style:{x:e.left*d-s,y:e.top*d-l,image:e.dom}});m.add(t)})),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},g.convertToPixel=He.curry(m,"convertToPixel"),g.convertFromPixel=He.curry(m,"convertFromPixel"),g.containPixel=function(e,t){if(!this._disposed){var n,i=this._model;return e=Eo.parseFinder(i,e),He.each(e,(function(e,i){i.indexOf("Models")>=0&&He.each(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(t);else if("seriesModels"===i){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n|=a.containPoint(t,e))}}),this)}),this),!!n}this.id},g.getVisual=function(e,t){var n=this._model,i=(e=Eo.parseFinder(n,e,{defaultMainType:"series"})).seriesModel.getData(),r=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?i.indexOfRawIndex(e.dataIndex):null;return null!=r?i.getItemVisual(r,t):i.getVisual(t)},g.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},g.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var v={prepareAndUpdate:function(e){y(this),v.update.call(this,e)},update:function(e){var t=this._model,n=this._api,i=this._zr,r=this._coordSysMgr,a=this._scheduler;if(t){a.restoreData(t,e),a.performSeriesTasks(t),r.create(t,n),a.performDataProcessorTasks(t,e),x(this,t),r.update(t,n),O(t),a.performVisualTasks(t,e),M(this,t,n,e);var o=t.get("backgroundColor")||"transparent";if(ne.canvasSupported)i.setBackgroundColor(o);else{var s=Wn.parse(o);o=Wn.stringify(s,"rgb"),0===s[3]&&(o="transparent")}A(t,n)}},updateTransform:function(e){var t=this._model,n=this,i=this._api;if(t){var r=[];t.eachComponent((function(a,o){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,t,i,e);l&&l.update&&r.push(s)}else r.push(s)}));var a=He.createHashMap();t.eachSeries((function(r){var o=n._chartsMap[r.__viewId];if(o.updateTransform){var s=o.updateTransform(r,t,i,e);s&&s.update&&a.set(r.uid,1)}else a.set(r.uid,1)})),O(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:a}),D(n,t,i,e,a),A(t,this._api)}},updateView:function(e){var t=this._model;t&&(yg.markUpdateMethod(e,"updateView"),O(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),M(this,this._model,this._api,e),A(t,this._api))},updateVisual:function(e){v.update.call(this,e)},updateLayout:function(e){v.update.call(this,e)}};function y(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),S(e,"component",t,n),S(e,"chart",t,n),n.plan()}function _(e,t,n,i,a){var o=e._model;if(i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};a&&(l.subType=a);var u=n.excludeSeriesId;null!=u&&(u=He.createHashMap(Eo.normalizeToArray(u))),o&&o.eachComponent(l,(function(t){u&&null!=u.get(t.id)||c(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else r(e._componentsViews.concat(e._chartsViews),c);function c(i){i&&i.__alive&&i[t]&&i[t](i.__model,o,e._api,n)}}function x(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))}function b(e,t){var n=e.type,i=e.escapeConnect,a=E[n],o=a.actionInfo,l=(o.update||"update").split(":"),h=l.pop();l=null!=l[0]&&s(l[0]),this[u]=!0;var d=[e],f=!1;e.batch&&(f=!0,d=He.map(e.batch,(function(t){return(t=He.defaults(He.extend({},t),e)).batch=null,t})));var p,g=[],m="highlight"===n||"downplay"===n;r(d,(function(e){(p=(p=a.action(e,this._model,this._api))||He.extend({},e)).type=o.event||p.type,g.push(p),m?_(this,h,e,"series"):l&&_(this,h,e,l.main,l.sub)}),this),"none"===h||m||l||(this[c]?(y(this),v.update.call(this,e),this[c]=!1):v[h].call(this,e)),p=f?{type:o.event||n,escapeConnect:i,batch:g}:g[0],this[u]=!1,!t&&this._messageCenter.trigger(p.type,p)}function w(e){for(var t=this._pendingActions;t.length;){var n=t.shift();b.call(this,n,e)}}function T(e){!e&&this.trigger("updated")}function S(e,t,n,i){for(var r="component"===t,a=r?e._componentsViews:e._chartsViews,o=r?e._componentsMap:e._chartsMap,l=e._zr,u=e._api,c=0;c<a.length;c++)a[c].__alive=!1;function h(e){var t="_ec_"+e.id+"_"+e.type,c=o[t];if(!c){var h=s(e.type);(c=new(r?rg.getClass(h.main,h.sub):yg.getClass(h.sub))).init(n,u),o[t]=c,a.push(c),l.add(c.group)}e.__viewId=c.__id=t,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!r&&i.prepareView(c,e,n,u)}r?n.eachComponent((function(e,t){"series"!==e&&h(t)})):n.eachSeries(h);for(c=0;c<a.length;){var d=a[c];d.__alive?c++:(!r&&d.renderTask.dispose(),l.remove(d.group),d.dispose(n,u),a.splice(c,1),delete o[d.__id],d.__id=d.group.__ecComponentInfo=null)}}function O(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function M(e,t,n,i){!function(e,t,n,i,a){r(a||e._componentsViews,(function(e){var r=e.__model;e.render(r,t,n,i),I(r,e)}))}(e,t,n,i),r(e._chartsViews,(function(e){e.__alive=!1})),D(e,t,n,i),r(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))}function D(e,t,n,i,r){var a,o=e._scheduler;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var s=n.renderTask;o.updatePayload(s,i),r&&r.get(t.uid)&&s.dirty(),a|=s.perform(o.getPerformArgs(s)),n.group.silent=!!t.get("silent"),I(t,n),function(e,t){var n=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==n&&e.setStyle("blend",n),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",n)}))}))}(t,n)})),o.unfinished|=a,function(e,t){var n=e._zr,i=n.storage,r=0;i.traverse((function(e){r++})),r>t.get("hoverLayerThreshold")&&!ne.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.useHoverLayer=!0}))}}))}(e,t),kg(e._zr.dom,t)}function A(e,t){r(P,(function(n){n(e,t)}))}g.resize=function(e){if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[u]=!0,n&&y(this),v.update.call(this),this[u]=!1,w.call(this,i),T.call(this,i)}}},g.showLoading=function(e,t){if(this._disposed)this.id;else if(o(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),H[e]){var n=H[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},g.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},g.makeActionFromEvent=function(e){var t=He.extend({},e);return t.type=N[e.type],t},g.dispatchAction=function(e,t){this._disposed?this.id:(o(t)||(t={silent:!!t}),E[e.type]&&this._model&&(this[u]?this._pendingActions.push(e):(b.call(this,e,t.silent),t.flush?this._zr.flush(!0):!1!==t.flush&&ne.browser.weChat&&this._throttledZrFlush(),w.call(this,t.silent),T.call(this,t.silent))))},g.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0}},g.on=d("on",!1),g.off=d("off",!1),g.one=d("one",!1);var k=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function I(e,t){var n=e.get("z"),i=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=i&&(e.zlevel=i))}))}function C(){this.eventInfo}g._initEvents=function(){r(k,(function(e){var t=function(t){var n,i=this.getModel(),r=t.target;if("globalout"===e)n={};else if(r&&null!=r.dataIndex){var a=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=a&&a.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(n=He.extend({},r.eventData));if(n){var o=n.componentType,s=n.componentIndex;"markLine"!==o&&"markPoint"!==o&&"markArea"!==o||(o="series",s=n.seriesIndex);var l=o&&null!=s&&i.getComponent(o,s),u=l&&this["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:n,model:l,view:u},this.trigger(e,n)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),r(N,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},g.isDisposed=function(){return this._disposed},g.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},g.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,Eo.setAttribute(this.getDom(),W,"");var e=this._api,t=this._model;r(this._componentsViews,(function(n){n.dispose(t,e)})),r(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete F[this.id]}},He.mixin(p,pt),C.prototype={constructor:C,normalizeQuery:function(e){var t={},n={},i={};if(He.isString(e)){var r=s(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};He.each(e,(function(e,r){for(var s=!1,l=0;l<a.length;l++){var u=a[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(t.mainType=h,t[u.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},filter:function(e,t,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,r,a));function c(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},afterTrigger:function(){this.eventInfo=null}};var E={},N={},R=[],L=[],P=[],z=[],Y={},H={},F={},B={},j=new Date-0,U=new Date-0,W="_echarts_instance_";function G(e){B[e]=!1}var V=G;function q(e){return F[Eo.getAttribute(e,W)]}function Z(e,t){Y[e]=t}function X(e){L.push(e)}function K(e,t){J(R,e,t,1e3)}function $(e,t,n){"function"==typeof t&&(n=t,t="");var r=o(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,i(h.test(r)&&h.test(t)),E[r]||(E[r]={action:n,actionInfo:e}),N[t]=r}function Q(e,t){J(z,e,t,3e3,"visual")}function J(e,t,n,i,r){(a(t)||o(t))&&(n=t,t=i);var s=am.wrapStageHandler(n,r);return s.__prio=t,s.__raw=n,e.push(s),s}function ee(e,t){H[e]=t}Q(2e3,Mg),X($f),K(900,tp),ee("default",Cg),$({type:"highlight",event:"highlight",update:"highlight"},He.noop),$({type:"downplay",event:"downplay",update:"downplay"},He.noop),Z("light",sm),Z("dark",dm);t.version="4.8.0",t.dependencies={zrender:"4.3.1"},t.PRIORITY=l,t.init=function(e,t,n){var i=q(e);if(i)return i;var a=new p(e,t,n);return a.id="ec_"+j++,F[a.id]=a,Eo.setAttribute(e,W,a.id),function(e){var t="__connectUpdateStatus";function n(e,n){for(var i=0;i<e.length;i++)e[i][t]=n}r(N,(function(i,a){e._messageCenter.on(a,(function(i){if(B[e.group]&&0!==e[t]){if(i&&i.escapeConnect)return;var a=e.makeActionFromEvent(i),o=[];r(F,(function(t){t!==e&&t.group===e.group&&o.push(t)})),n(o,0),r(o,(function(e){1!==e[t]&&e.dispatchAction(a)})),n(o,2)}}))}))}(a),a},t.connect=function(e){if(He.isArray(e)){var t=e;e=null,r(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+U++,r(t,(function(t){t.group=e}))}return B[e]=!0,e},t.disConnect=G,t.disconnect=V,t.dispose=function(e){"string"==typeof e?e=F[e]:e instanceof p||(e=q(e)),e instanceof p&&!e.isDisposed()&&e.dispose()},t.getInstanceByDom=q,t.getInstanceById=function(e){return F[e]},t.registerTheme=Z,t.registerPreprocessor=X,t.registerProcessor=K,t.registerPostUpdate=function(e){P.push(e)},t.registerAction=$,t.registerCoordinateSystem=function(e,t){Tf.register(e,t)},t.getCoordinateSystemDimensions=function(e){var t=Tf.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.registerLayout=function(e,t){J(z,e,t,1e3,"layout")},t.registerVisual=Q,t.registerLoading=ee,t.extendComponentModel=function(e){return ad.extend(e)},t.extendComponentView=function(e){return rg.extend(e)},t.extendSeriesModel=function(e){return tg.extend(e)},t.extendChartView=function(e){return yg.extend(e)},t.setCanvasCreator=function(e){He.$override("createCanvas",e)},t.registerMap=function(e,t,n){Gm.registerMap(e,t,n)},t.getMap=function(e){var t=Gm.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}},t.dataTool={},function(){for(var e in Px)Px.hasOwnProperty(e)&&(t[e]=Px[e])}()}));tg.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return sy(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});var Yx=wp.retrieveRawValue;var Hx=function(e,t){var n=e.mapDimension("defaultedLabel",!0),i=n.length;if(1===i)return Yx(e,t,n[0]);if(i){for(var r=[],a=0;a<n.length;a++){var o=Yx(e,t,n[a]);r.push(o)}return r.join(" ")}},Fx={getDefaultLabel:Hx},Bx=z_.createSymbol,jx=Dh.parsePercent,Ux=Fx.getDefaultLabel;function Wx(e,t,n){Qc.Group.call(this),this.updateData(e,t,n)}var Gx=Wx.prototype,Vx=Wx.getSymbolSize=function(e,t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function qx(e){return[e[0]/2,e[1]/2]}function Zx(e,t){this.parent.drift(e,t)}Gx._createSymbol=function(e,t,n,i,r){this.removeAll();var a=t.getItemVisual(n,"color"),o=Bx(e,-1,-1,2,2,a,r);o.attr({z2:100,culling:!0,scale:qx(i)}),o.drift=Zx,this._symbolType=e,this.add(o)},Gx.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},Gx.getSymbolPath=function(){return this.childAt(0)},Gx.getScale=function(){return this.childAt(0).scale},Gx.highlight=function(){this.childAt(0).trigger("emphasis")},Gx.downplay=function(){this.childAt(0).trigger("normal")},Gx.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},Gx.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},Gx.updateData=function(e,t,n){this.silent=!1;var i=e.getItemVisual(t,"symbol")||"circle",r=e.hostModel,a=Vx(e,t),o=i!==this._symbolType;if(o){var s=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(i,e,t,a,s)}else{(l=this.childAt(0)).silent=!1,Qc.updateProps(l,{scale:qx(a)},r,t)}if(this._updateCommon(e,t,a,n),o){var l=this.childAt(0),u=n&&n.fadeIn,c={scale:l.scale.slice()};u&&(c.style={opacity:l.style.opacity}),l.scale=[0,0],u&&(l.style.opacity=0),Qc.initProps(l,c,r,t)}this._seriesModel=r};var Xx=["itemStyle"],Kx=["emphasis","itemStyle"],$x=["label"],Qx=["emphasis","label"];function Jx(e,t){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===t){var n=this.__symbolOriginalScale,i=n[1]/n[0],r={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*i)]};this.animateTo(r,400,"elasticOut")}else"normal"===t&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}Gx._updateCommon=function(e,t,n,i){var r=this.childAt(0),a=e.hostModel,o=e.getItemVisual(t,"color");"image"!==r.type?r.useStyle({strokeNoScale:!0}):r.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var s=i&&i.itemStyle,l=i&&i.hoverItemStyle,u=i&&i.symbolOffset,c=i&&i.labelModel,h=i&&i.hoverLabelModel,d=i&&i.hoverAnimation,f=i&&i.cursorStyle;if(!i||e.hasItemOption){var p=i&&i.itemModel?i.itemModel:e.getItemModel(t);s=p.getModel(Xx).getItemStyle(["color"]),l=p.getModel(Kx).getItemStyle(),u=p.getShallow("symbolOffset"),c=p.getModel($x),h=p.getModel(Qx),d=p.getShallow("hoverAnimation"),f=p.getShallow("cursor")}else l=He.extend({},l);var g=r.style,m=e.getItemVisual(t,"symbolRotate");r.attr("rotation",(m||0)*Math.PI/180||0),u&&r.attr("position",[jx(u[0],n[0]),jx(u[1],n[1])]),f&&r.attr("cursor",f),r.setColor(o,i&&i.symbolInnerColor),r.setStyle(s);var v=e.getItemVisual(t,"opacity");null!=v&&(g.opacity=v);var y=e.getItemVisual(t,"liftZ"),_=r.__z2Origin;null!=y?null==_&&(r.__z2Origin=r.z2,r.z2+=y):null!=_&&(r.z2=_,r.__z2Origin=null);var x=i&&i.useNameLabel;Qc.setLabelStyle(g,l,c,h,{labelFetcher:a,labelDataIndex:t,defaultText:function(t,n){return x?e.getName(t):Ux(e,t)},isRectText:!0,autoColor:o}),r.__symbolOriginalScale=qx(n),r.hoverStyle=l,r.highDownOnUpdate=d&&a.isAnimationEnabled()?Jx:null,Qc.setHoverStyle(r)},Gx.fadeOut=function(e,t){var n=this.childAt(0);this.silent=n.silent=!0,(!t||!t.keepLabel)&&(n.style.text=null),Qc.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},He.inherits(Wx,Qc.Group);var eb=Wx,tb=He.isObject;function nb(e){this.group=new Qc.Group,this._symbolCtor=e||eb}var ib=nb.prototype;function rb(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function ab(e){return null==e||tb(e)||(e={isIgnore:e}),e||{}}function ob(e){var t=e.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}ib.updateData=function(e,t){t=ab(t);var n=this.group,i=e.hostModel,r=this._data,a=this._symbolCtor,o=ob(e);r||n.removeAll(),e.diff(r).add((function(i){var r=e.getItemLayout(i);if(rb(e,r,i,t)){var s=new a(e,i,o);s.attr("position",r),e.setItemGraphicEl(i,s),n.add(s)}})).update((function(s,l){var u=r.getItemGraphicEl(l),c=e.getItemLayout(s);rb(e,c,s,t)?(u?(u.updateData(e,s,o),Qc.updateProps(u,{position:c},i)):(u=new a(e,s)).attr("position",c),n.add(u),e.setItemGraphicEl(s,u)):n.remove(u)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}))})).execute(),this._data=e},ib.isPersistent=function(){return!0},ib.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl((function(t,n){var i=e.getItemLayout(n);t.attr("position",i)}))},ib.incrementalPrepareUpdate=function(e){this._seriesScope=ob(e),this._data=null,this.group.removeAll()},ib.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}n=ab(n);for(var r=e.start;r<e.end;r++){var a=t.getItemLayout(r);if(rb(t,a,r,n)){var o=new this._symbolCtor(t,r,this._seriesScope);o.traverse(i),o.attr("position",a),this.group.add(o),t.setItemGraphicEl(r,o)}}},ib.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}))})):t.removeAll()};var sb=nb,lb=Jv.isDimensionStacked,ub=He.map;var cb={prepareDataCoordInfo:function(e,t,n){var i,r=e.getBaseAxis(),a=e.getOtherAxis(r),o=function(e,t){var n=0,i=e.scale.getExtent();"start"===t?n=i[0]:"end"===t?n=i[1]:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(a,n),s=r.dim,l=a.dim,u=t.mapDimension(l),c=t.mapDimension(s),h="x"===l||"radius"===l?1:0,d=ub(e.dimensions,(function(e){return t.mapDimension(e)})),f=t.getCalculationInfo("stackResultDimension");return(i|=lb(t,d[0]))&&(d[0]=f),(i|=lb(t,d[1]))&&(d[1]=f),{dataDimsForPoint:d,valueStart:o,valueAxisDim:l,baseAxisDim:s,stacked:!!i,valueDim:u,baseDim:c,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}},getStackedOnPoint:function(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,i),o[1-a]=r,t.dataToPoint(o)}},hb=cb.prepareDataCoordInfo,db=cb.getStackedOnPoint;var fb=function(e,t,n,i,r,a,o,s){for(var l=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),u=[],c=[],h=[],d=[],f=[],p=[],g=[],m=hb(r,t,o),v=hb(a,e,s),y=0;y<l.length;y++){var _=l[y],x=!0;switch(_.cmd){case"=":var b=e.getItemLayout(_.idx),w=t.getItemLayout(_.idx1);(isNaN(b[0])||isNaN(b[1]))&&(b=w.slice()),u.push(b),c.push(w),h.push(n[_.idx]),d.push(i[_.idx1]),g.push(t.getRawIndex(_.idx1));break;case"+":var T=_.idx;u.push(r.dataToPoint([t.get(m.dataDimsForPoint[0],T),t.get(m.dataDimsForPoint[1],T)])),c.push(t.getItemLayout(T).slice()),h.push(db(m,r,t,T)),d.push(i[T]),g.push(t.getRawIndex(T));break;case"-":T=_.idx;var S=e.getRawIndex(T);S!==T?(u.push(e.getItemLayout(T)),c.push(a.dataToPoint([e.get(v.dataDimsForPoint[0],T),e.get(v.dataDimsForPoint[1],T)])),h.push(n[T]),d.push(db(v,a,e,T)),g.push(S)):x=!1}x&&(f.push(_),p.push(p.length))}p.sort((function(e,t){return g[e]-g[t]}));var O=[],M=[],D=[],A=[],k=[];for(y=0;y<p.length;y++){T=p[y];O[y]=u[T],M[y]=c[T],D[y]=h[T],A[y]=d[T],k[y]=f[T]}return{current:O,next:M,stackedOnCurrent:D,stackedOnNext:A,status:k}},pb=st.min,gb=st.max,mb=st.scaleAndAdd,vb=st.copy,yb=[],_b=[],xb=[];function bb(e){return isNaN(e[0])||isNaN(e[1])}function wb(e,t,n,i,r,a,o,s,l,u,c){return"none"!==u&&u?Tb.apply(this,arguments):Sb.apply(this,arguments)}function Tb(e,t,n,i,r,a,o,s,l,u,c){for(var h=0,d=n,f=0;f<i;f++){var p=t[d];if(d>=r||d<0)break;if(bb(p)){if(c){d+=a;continue}break}if(d===n)e[a>0?"moveTo":"lineTo"](p[0],p[1]);else if(l>0){var g=t[h],m="y"===u?1:0,v=(p[m]-g[m])*l;vb(_b,g),_b[m]=g[m]+v,vb(xb,p),xb[m]=p[m]-v,e.bezierCurveTo(_b[0],_b[1],xb[0],xb[1],p[0],p[1])}else e.lineTo(p[0],p[1]);h=d,d+=a}return f}function Sb(e,t,n,i,r,a,o,s,l,u,c){for(var h=0,d=n,f=0;f<i;f++){var p=t[d];if(d>=r||d<0)break;if(bb(p)){if(c){d+=a;continue}break}if(d===n)e[a>0?"moveTo":"lineTo"](p[0],p[1]),vb(_b,p);else if(l>0){var g=d+a,m=t[g];if(c)for(;m&&bb(t[g]);)m=t[g+=a];var v=.5,y=t[h];if(!(m=t[g])||bb(m))vb(xb,p);else{var _,x;if(bb(m)&&!c&&(m=p),st.sub(yb,m,y),"x"===u||"y"===u){var b="x"===u?0:1;_=Math.abs(p[b]-y[b]),x=Math.abs(p[b]-m[b])}else _=st.dist(p,y),x=st.dist(p,m);mb(xb,p,yb,-l*(1-(v=x/(x+_))))}pb(_b,_b,s),gb(_b,_b,o),pb(xb,xb,s),gb(xb,xb,o),e.bezierCurveTo(_b[0],_b[1],xb[0],xb[1],p[0],p[1]),mb(_b,p,yb,l*v)}else e.lineTo(p[0],p[1]);h=d,d+=a}return f}function Ob(e,t){var n=[1/0,1/0],i=[-1/0,-1/0];if(t)for(var r=0;r<e.length;r++){var a=e[r];a[0]<n[0]&&(n[0]=a[0]),a[1]<n[1]&&(n[1]=a[1]),a[0]>i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])}return{min:t?n:i,max:t?i:n}}var Mb=_l.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:Wl(_l.prototype.brush),buildPath:function(e,t){var n=t.points,i=0,r=n.length,a=Ob(n,t.smoothConstraint);if(t.connectNulls){for(;r>0&&bb(n[r-1]);r--);for(;i<r&&bb(n[i]);i++);}for(;i<r;)i+=wb(e,n,i,r,r,1,a.min,a.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),Db=_l.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:Wl(_l.prototype.brush),buildPath:function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,a=n.length,o=t.smoothMonotone,s=Ob(n,t.smoothConstraint),l=Ob(i,t.smoothConstraint);if(t.connectNulls){for(;a>0&&bb(n[a-1]);a--);for(;r<a&&bb(n[r]);r++);}for(;r<a;){var u=wb(e,n,r,a,a,1,s.min,s.max,t.smooth,o,t.connectNulls);wb(e,i,r+u-1,u,a,-1,l.min,l.max,t.stackedOnSmooth,o,t.connectNulls),r+=u+1,e.closePath()}}}),Ab={Polyline:Mb,Polygon:Db},kb=Dh.round;function Ib(e,t,n){var i=e.getArea(),r=e.getBaseAxis().isHorizontal(),a=i.x,o=i.y,s=i.width,l=i.height,u=n.get("lineStyle.width")||2;a-=u/2,o-=u/2,s+=u,l+=u,a=Math.floor(a),s=Math.round(s);var c=new Qc.Rect({shape:{x:a,y:o,width:s,height:l}});return t&&(c.shape[r?"width":"height"]=0,Qc.initProps(c,{shape:{width:s,height:l}},n)),c}function Cb(e,t,n){var i=e.getArea(),r=new Qc.Sector({shape:{cx:kb(e.cx,1),cy:kb(e.cy,1),r0:kb(i.r0,1),r:kb(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return t&&(r.shape.endAngle=i.startAngle,Qc.initProps(r,{shape:{endAngle:i.endAngle}},n)),r}var Eb={createGridClipPath:Ib,createPolarClipPath:Cb,createClipPath:function(e,t,n){return e?"polar"===e.type?Cb(e,t,n):"cartesian2d"===e.type?Ib(e,t,n):null:null}},Nb=Es.fromPoints,Rb=Ab.Polyline,Lb=Ab.Polygon,Pb=cb.prepareDataCoordInfo,zb=cb.getStackedOnPoint,Yb=Eb.createGridClipPath,Hb=Eb.createPolarClipPath;function Fb(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++){var i=e[n],r=t[n];if(i[0]!==r[0]||i[1]!==r[1])return}return!0}}function Bb(e,t){var n=[],i=[],r=[],a=[];return Nb(e,n,i),Nb(t,r,a),Math.max(Math.abs(n[0]-r[0]),Math.abs(n[1]-r[1]),Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]))}function jb(e){return"number"==typeof e?e:e?.5:0}function Ub(e,t,n){for(var i=t.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,a=[],o=0;o<e.length-1;o++){var s=e[o+1],l=e[o];a.push(l);var u=[];switch(n){case"end":u[r]=s[r],u[1-r]=l[1-r],a.push(u);break;case"middle":var c=(l[r]+s[r])/2,h=[];u[r]=h[r]=c,u[1-r]=l[1-r],h[1-r]=s[1-r],a.push(u),a.push(h);break;default:u[r]=l[r],u[1-r]=s[1-r],a.push(u)}}return e[o]&&a.push(e[o]),a}function Wb(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var a=n.getAxesByScale("ordinal")[0];if(a&&(!r||!function(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),a=Math.max(1,Math.round(r/5)),o=0;o<r;o+=a)if(1.5*eb.getSymbolSize(t,o)[e.isHorizontal()?1:0]>i)return!1;return!0}(a,t))){var o=t.mapDimension(a.dim),s={};return He.each(a.getViewLabels(),(function(e){s[e.tickValue]=1})),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function Gb(e,t,n){if("cartesian2d"===e.type){var i=e.getBaseAxis().isHorizontal(),r=Yb(e,t,n);if(!n.get("clip",!0)){var a=r.shape,o=Math.max(a.width,a.height);i?(a.y-=o,a.height+=2*o):(a.x-=o,a.width+=2*o)}return r}return Hb(e,t,n)}yg.extend({type:"line",init:function(){var e=new Qc.Group,t=new sb;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var i=e.coordinateSystem,r=this.group,a=e.getData(),o=e.getModel("lineStyle"),s=e.getModel("areaStyle"),l=a.mapArray(a.getItemLayout),u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,f=this._polygon,p=this._lineGroup,g=e.get("animation"),m=!s.isEmpty(),v=s.get("origin"),y=function(e,t,n){if(!n.valueDim)return[];for(var i=[],r=0,a=t.count();r<a;r++)i.push(zb(n,e,t,r));return i}(i,a,Pb(i,a,v)),_=e.get("showSymbol"),x=_&&!u&&Wb(e,a,i),b=this._data;b&&b.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),b.setItemGraphicEl(t,null))})),_||h.remove(),r.add(p);var w,T=!u&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(w=i.getArea()).width?(w.x-=.1,w.y-=.1,w.width+=.2,w.height+=.2):w.r0&&(w.r0-=.5,w.r1+=.5)),this._clipShapeForSymbol=w,d&&c.type===i.type&&T===this._step?(m&&!f?f=this._newPolygon(l,y,i,g):f&&!m&&(p.remove(f),f=this._polygon=null),p.setClipPath(Gb(i,!1,e)),_&&h.updateData(a,{isIgnore:x,clipShape:w}),a.eachItemGraphicEl((function(e){e.stopAnimation(!0)})),Fb(this._stackedOnPoints,y)&&Fb(this._points,l)||(g?this._updateAnimation(a,y,i,n,T,v):(T&&(l=Ub(l,i,T),y=Ub(y,i,T)),d.setShape({points:l}),f&&f.setShape({points:l,stackedOnPoints:y})))):(_&&h.updateData(a,{isIgnore:x,clipShape:w}),T&&(l=Ub(l,i,T),y=Ub(y,i,T)),d=this._newPolyline(l,i,g),m&&(f=this._newPolygon(l,y,i,g)),p.setClipPath(Gb(i,!0,e)));var S=function(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var i,r,a=n.length-1;a>=0;a--){var o=n[a].dimension,s=e.dimensions[o],l=e.getDimensionInfo(s);if("x"===(i=l&&l.coordDim)||"y"===i){r=n[a];break}}if(r){var u=t.getAxis(i),c=He.map(r.stops,(function(e){return{coord:u.toGlobalCoord(u.dataToCoord(e.value)),color:e.color}})),h=c.length,d=r.outerColors.slice();h&&c[0].coord>c[h-1].coord&&(c.reverse(),d.reverse());var f=c[0].coord-10,p=c[h-1].coord+10,g=p-f;if(g<.001)return"transparent";He.each(c,(function(e){e.offset=(e.coord-f)/g})),c.push({offset:h?c[h-1].offset:.5,color:d[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:d[0]||"transparent"});var m=new Qc.LinearGradient(0,0,0,0,c,!0);return m[i]=f,m[i+"2"]=p,m}}}(a,i)||a.getVisual("color");d.useStyle(He.defaults(o.getLineStyle(),{fill:"none",stroke:S,lineJoin:"bevel"}));var O=e.get("smooth");if(O=jb(e.get("smooth")),d.setShape({smooth:O,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),f){var M=a.getCalculationInfo("stackedOnSeries"),D=0;f.useStyle(He.defaults(s.getAreaStyle(),{fill:S,opacity:.7,lineJoin:"bevel"})),M&&(D=jb(M.get("smooth"))),f.setShape({smooth:O,stackedOnSmooth:D,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=a,this._coordSys=i,this._stackedOnPoints=y,this._points=l,this._step=T,this._valueOrigin=v},dispose:function(){},highlight:function(e,t,n,i){var r=e.getData(),a=Eo.queryDataIndex(r,i);if(!(a instanceof Array)&&null!=a&&a>=0){var o=r.getItemGraphicEl(a);if(!o){var s=r.getItemLayout(a);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;(o=new eb(r,a)).position=s,o.setZ(e.get("zlevel"),e.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,r.setItemGraphicEl(a,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else yg.prototype.highlight.call(this,e,t,n,i)},downplay:function(e,t,n,i){var r=e.getData(),a=Eo.queryDataIndex(r,i);if(null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else yg.prototype.downplay.call(this,e,t,n,i)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Rb({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Lb({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(e,t,n,i,r,a){var o=this._polyline,s=this._polygon,l=e.hostModel,u=fb(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),c=u.current,h=u.stackedOnCurrent,d=u.next,f=u.stackedOnNext;if(r&&(c=Ub(u.current,n,r),h=Ub(u.stackedOnCurrent,n,r),d=Ub(u.next,n,r),f=Ub(u.stackedOnNext,n,r)),Bb(c,d)>3e3||s&&Bb(h,f)>3e3)return o.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:f}));o.shape.__points=u.current,o.shape.points=c,Qc.updateProps(o,{shape:{points:d}},l),s&&(s.setShape({points:c,stackedOnPoints:h}),Qc.updateProps(s,{shape:{points:d,stackedOnPoints:f}},l));for(var p=[],g=u.status,m=0;m<g.length;m++){if("="===g[m].cmd){var v=e.getItemGraphicEl(g[m].idx1);v&&p.push({el:v,ptIdx:m})}}o.animators&&o.animators.length&&o.animators[0].during((function(){for(var e=0;e<p.length;e++){p[e].el.attr("position",o.shape.__points[p[e].ptIdx])}}))},remove:function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});var Vb=He.isFunction;var qb=function(e,t,n){return{seriesType:e,performRawSeries:!0,reset:function(e,i,r){var a=e.getData(),o=e.get("symbol"),s=e.get("symbolSize"),l=e.get("symbolKeepAspect"),u=e.get("symbolRotate"),c=Vb(o),h=Vb(s),d=Vb(u),f=c||h||d,p=!c&&o?o:t,g=h?null:s;if(a.setVisual({legendSymbol:n||p,symbol:p,symbolSize:g,symbolKeepAspect:l,symbolRotate:u}),!i.isSeriesFiltered(e))return{dataEach:a.hasItemOption||f?function(t,n){if(f){var i=e.getRawValue(n),r=e.getDataParams(n);c&&t.setItemVisual(n,"symbol",o(i,r)),h&&t.setItemVisual(n,"symbolSize",s(i,r)),d&&t.setItemVisual(n,"symbolRotate",u(i,r))}if(t.hasItemOption){var a=t.getItemModel(n),l=a.getShallow("symbol",!0),p=a.getShallow("symbolSize",!0),g=a.getShallow("symbolRotate",!0),m=a.getShallow("symbolKeepAspect",!0);null!=l&&t.setItemVisual(n,"symbol",l),null!=p&&t.setItemVisual(n,"symbolSize",p),null!=g&&t.setItemVisual(n,"symbolRotate",g),null!=m&&t.setItemVisual(n,"symbolKeepAspect",m)}}:null}}}},Zb=He.map,Xb=Jv.isDimensionStacked;var Kb=function(e){return{seriesType:e,plan:og(),reset:function(e){var t=e.getData(),n=e.coordinateSystem,i=e.pipelineContext.large;if(n){var r=Zb(n.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),a=r.length,o=t.getCalculationInfo("stackResultDimension");return Xb(t,r[0])&&(r[0]=o),Xb(t,r[1])&&(r[1]=o),a&&{progress:function(e,t){for(var o=e.end-e.start,s=i&&new Float32Array(o*a),l=e.start,u=0,c=[],h=[];l<e.end;l++){var d;if(1===a){var f=t.get(r[0],l);d=!isNaN(f)&&n.dataToPoint(f,null,h)}else{f=c[0]=t.get(r[0],l);var p=c[1]=t.get(r[1],l);d=!isNaN(f)&&!isNaN(p)&&n.dataToPoint(c,null,h)}i?(s[u++]=d?d[0]:NaN,s[u++]=d?d[1]:NaN):t.setItemLayout(l,d&&d.slice()||[NaN,NaN])}i&&t.setLayout("symbolPoints",s)}}}}}},$b={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Qb=function(e,t){return Math.round(e.length/2)};var Jb=function(e){return{seriesType:e,modifyOutputEnd:!0,reset:function(e,t,n){var i=e.getData(),r=e.get("sampling"),a=e.coordinateSystem;if("cartesian2d"===a.type&&r){var o,s=a.getBaseAxis(),l=a.getOtherAxis(s),u=s.getExtent(),c=u[1]-u[0],h=Math.round(i.count()/c);if(h>1)"string"==typeof r?o=$b[r]:"function"==typeof r&&(o=r),o&&e.setData(i.downSample(i.mapDimension(l.dim),1/h,o,Qb))}}}};function ew(e){return this._axes[e]}var tw=function(e){this._axes={},this._dimList=[],this.name=e||""};tw.prototype={constructor:tw,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return He.map(this._dimList,ew,this)},getAxesByScale:function(e){return e=e.toLowerCase(),He.filter(this.getAxes(),(function(t){return t.scale.type===e}))},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var n=this._dimList,i=e instanceof Array?[]:{},r=0;r<n.length;r++){var a=n[r],o=this._axes[a];i[a]=o[t](e[a])}return i}};var nw=tw;function iw(e){nw.call(this,e)}iw.prototype={constructor:iw,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,n){var i=this.getAxis("x"),r=this.getAxis("y");return(n=n||[])[0]=i.toGlobalCoord(i.dataToCoord(e[0])),n[1]=r.toGlobalCoord(r.dataToCoord(e[1])),n},clampData:function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),a=i.getExtent(),o=n.parse(e[0]),s=i.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},pointToData:function(e,t){var n=this.getAxis("x"),i=this.getAxis("y");return(t=t||[])[0]=n.coordToData(n.toLocalCoord(e[0])),t[1]=i.coordToData(i.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")},getArea:function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-n,a=Math.max(t[0],t[1])-i;return new Ii(n,i,r,a)}},He.inherits(iw,nw);var rw=iw,aw=function(e,t,n,i,r){yx.call(this,e,t,n),this.type=i||"value",this.position=r||"bottom"};aw.prototype={constructor:aw,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},He.inherits(aw,yx);var ow=aw,sw={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,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,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)"]}}},lw={};lw.categoryAxis=He.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},sw),lw.valueAxis=He.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},sw),lw.timeAxis=He.defaults({scale:!0,min:"dataMin",max:"dataMax"},lw.valueAxis),lw.logAxis=He.defaults({scale:!0,logBase:10},lw.valueAxis);var uw=lw,cw=Jh.getLayoutParams,hw=Jh.mergeLayoutParam,dw=["value","category","time","log"];var fw=function(e,t,n,i){He.each(dw,(function(r){t.extend({type:e+"Axis."+r,mergeDefaultAndTheme:function(t,i){var a=this.layoutMode,o=a?cw(t):{},s=i.getTheme();He.merge(t,s.get(r+"Axis")),He.merge(t,this.getDefaultOption()),t.type=n(e,t),a&&hw(t,o,a)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=vy.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:He.mergeAll([{},uw[r+"Axis"],i],!0)})})),ad.registerSubTypeDefaulter(e+"Axis",He.curry(n,e))},pw=ad.extend({type:"cartesian2dAxis",axis:null,init:function(){pw.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){pw.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){pw.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function gw(e,t){return t.type||(t.data?"category":"value")}He.merge(pw.prototype,O_);var mw={offset:0};fw("x",pw,gw,mw),fw("y",pw,gw,mw),ad.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var vw=He.isObject,yw=He.each,_w=He.map,xw=He.indexOf,bw=Jh.getLayoutRect,ww=T_.createScaleByModel,Tw=T_.ifAxisCrossZero,Sw=T_.niceScaleExtent,Ow=T_.estimateLabelUnionRect,Mw=Jv.getStackedDimension;function Dw(e,t,n){return e.getCoordSysModel()===t}function Aw(e,t,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,n),this.model=e}var kw=Aw.prototype;function Iw(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=e[t],o=n.model,s=o.get("axisLine.onZero"),l=o.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)Cw(a[l])&&(r=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&Cw(a[u])&&!i[c(a[u])]){r=a[u];break}r&&(i[c(r)]=!0)}function c(e){return e.dim+"_"+e.index}}function Cw(e){return e&&"category"!==e.type&&"time"!==e.type&&Tw(e)}kw.type="grid",kw.axisPointerEnabled=!0,kw.getRect=function(){return this._rect},kw.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),yw(n.x,(function(e){Sw(e.scale,e.model)})),yw(n.y,(function(e){Sw(e.scale,e.model)}));var i={};yw(n.x,(function(e){Iw(n,"y",e,i)})),yw(n.y,(function(e){Iw(n,"x",e,i)})),this.resize(this.model,t)},kw.resize=function(e,t,n){var i=bw(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=i;var r=this._axesList;function a(){yw(r,(function(e){var t=e.isHorizontal(),n=t?[0,i.width]:[0,i.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}(e,t?i.x:i.y)}))}a(),!n&&e.get("containLabel")&&(yw(r,(function(e){if(!e.model.get("axisLabel.inside")){var t=Ow(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get("axisLabel.margin");i[n]-=t[n]+r,"top"===e.position?i.y+=t.height+r:"left"===e.position&&(i.x+=t.width+r)}}})),a())},kw.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n){if(null==t)for(var i in n)if(n.hasOwnProperty(i))return n[i];return n[t]}},kw.getAxes=function(){return this._axesList.slice()},kw.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}vw(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},kw.getCartesians=function(){return this._coordsList.slice()},kw.convertToPixel=function(e,t,n){var i=this._findConvertTarget(e,t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},kw.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(e,t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},kw._findConvertTarget=function(e,t){var n,i,r=t.seriesModel,a=t.xAxisModel||r&&r.getReferringComponents("xAxis")[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis")[0],s=t.gridModel,l=this._coordsList;if(r)n=r.coordinateSystem,xw(l,n)<0&&(n=null);else if(a&&o)n=this.getCartesian(a.componentIndex,o.componentIndex);else if(a)i=this.getAxis("x",a.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(s){s.coordinateSystem===this&&(n=this._coordsList[0])}return{cartesian:n,axis:i}},kw.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},kw._initCartesian=function(e,t,n){var i={left:!1,right:!1,top:!1,bottom:!1},r={x:{},y:{}},a={x:0,y:0};if(t.eachComponent("xAxis",o("x"),this),t.eachComponent("yAxis",o("y"),this),!a.x||!a.y)return this._axesMap={},void(this._axesList=[]);function o(t){return function(n,o){if(Dw(n,e)){var s=n.get("position");"x"===t?"top"!==s&&"bottom"!==s&&(s=i.bottom?"top":"bottom"):"left"!==s&&"right"!==s&&(s=i.left?"right":"left"),i[s]=!0;var l=new ow(t,ww(n),[0,0],n.get("type"),s),u="category"===l.type;l.onBand=u&&n.get("boundaryGap"),l.inverse=n.get("inverse"),n.axis=l,l.model=n,l.grid=this,l.index=o,this._axesList.push(l),r[t][o]=l,a[t]++}}}this._axesMap=r,yw(r.x,(function(t,n){yw(r.y,(function(i,r){var a="x"+n+"y"+r,o=new rw(a);o.grid=this,o.model=e,this._coordsMap[a]=o,this._coordsList.push(o),o.addAxis(t),o.addAxis(i)}),this)}),this)},kw._updateScale=function(e,t){function n(e,t,n){yw(e.mapDimension(t.dim,!0),(function(n){t.scale.unionExtentFromData(e,Mw(e,n))}))}yw(this._axesList,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeries((function(e){if(Rw(e)){var i=Nw(e),r=i[0],a=i[1];if(!Dw(r,t)||!Dw(a,t))return;var o=this.getCartesian(r.componentIndex,a.componentIndex),s=e.getData(),l=o.getAxis("x"),u=o.getAxis("y");"list"===s.type&&(n(s,l),n(s,u))}}),this)},kw.getTooltipAxes=function(e){var t=[],n=[];return yw(this.getCartesians(),(function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),a=i.getOtherAxis(r);xw(t,r)<0&&t.push(r),xw(n,a)<0&&n.push(a)})),{baseAxes:t,otherAxes:n}};var Ew=["xAxis","yAxis"];function Nw(e,t){return _w(Ew,(function(t){return e.getReferringComponents(t)[0]}))}function Rw(e){return"cartesian2d"===e.get("coordinateSystem")}Aw.create=function(e,t){var n=[];return e.eachComponent("grid",(function(i,r){var a=new Aw(i,e,t);a.name="grid_"+r,a.resize(i,t,!0),i.coordinateSystem=a,n.push(a)})),e.eachSeries((function(e){if(Rw(e)){var t=Nw(e),n=t[0],i=t[1],r=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),n},Aw.dimensions=Aw.prototype.dimensions=rw.prototype.dimensions,Tf.register("cartesian2d",Aw);var Lw=He.retrieve,Pw=He.defaults,zw=He.extend,Yw=He.each,Hw=Dh.isRadianAroundZero,Fw=Dh.remRadian,Bw=z_.createSymbol,jw=st.applyTransform,Uw=T_.shouldShowAllLabels,Ww=Math.PI,Gw=function(e,t){this.opt=t,this.axisModel=e,Pw(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new Qc.Group;var n=new Qc.Group({position:t.position.slice(),rotation:t.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};Gw.prototype={constructor:Gw,hasBuilder:function(e){return!!Vw[e]},add:function(e){Vw[e].call(this)},getGroup:function(){return this.group}};var Vw={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],a=[n[1],0];i&&(jw(r,r,i),jw(a,a,i));var o=zw({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new Qc.Line({anid:"line",subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:o,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1}));var s=t.get("axisLine.symbol"),l=t.get("axisLine.symbolSize"),u=t.get("axisLine.symbolOffset")||0;if("number"==typeof u&&(u=[u,u]),null!=s){"string"==typeof s&&(s=[s,s]),"string"!=typeof l&&"number"!=typeof l||(l=[l,l]);var c=l[0],h=l[1];Yw([{rotate:e.rotation+Math.PI/2,offset:u[0],r:0},{rotate:e.rotation-Math.PI/2,offset:u[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],(function(t,n){if("none"!==s[n]&&null!=s[n]){var i=Bw(s[n],-c/2,-h/2,c,h,o.stroke,!0),a=t.r+t.offset,l=[r[0]+a*Math.cos(e.rotation),r[1]-a*Math.sin(e.rotation)];i.attr({rotation:t.rotate,position:l,silent:!0,z2:11}),this.group.add(i)}}),this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,n=function(e,t,n){var i=t.axis,r=t.getModel("axisTick");if(!r.get("show")||i.scale.isBlank())return;for(var a=r.getModel("lineStyle"),o=n.tickDirection*r.get("length"),s=Jw(i.getTicksCoords(),e._transform,o,Pw(a.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),"ticks"),l=0;l<s.length;l++)e.group.add(s[l]);return s}(this,e,t),i=function(e,t,n){var i=t.axis,r=Lw(n.axisLabelShow,t.get("axisLabel.show"));if(!r||i.scale.isBlank())return;var a=t.getModel("axisLabel"),o=a.get("margin"),s=i.getViewLabels(),l=(Lw(n.labelRotate,a.get("rotate"))||0)*Ww/180,u=Zw(n.rotation,l,n.labelDirection),c=t.getCategories&&t.getCategories(!0),h=[],d=Xw(t),f=t.get("triggerEvent");return Yw(s,(function(r,s){var l=r.tickValue,p=r.formattedLabel,g=r.rawLabel,m=a;c&&c[l]&&c[l].textStyle&&(m=new fh(c[l].textStyle,a,t.ecModel));var v=m.getTextColor()||t.get("axisLine.lineStyle.color"),y=[i.dataToCoord(l),n.labelOffset+n.labelDirection*o],_=new Qc.Text({anid:"label_"+l,position:y,rotation:u.rotation,silent:d,z2:10});Qc.setTextStyle(_.style,m,{text:p,textAlign:m.getShallow("align",!0)||u.textAlign,textVerticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||u.textVerticalAlign,textFill:"function"==typeof v?v("category"===i.type?g:"value"===i.type?l+"":l,s):v}),f&&(_.eventData=qw(t),_.eventData.targetType="axisLabel",_.eventData.value=g),e._dumbGroup.add(_),_.updateTransform(),h.push(_),e.group.add(_),_.decomposeTransform()})),h}(this,e,t);!function(e,t,n){if(Uw(e.axis))return;var i=e.get("axisLabel.showMinLabel"),r=e.get("axisLabel.showMaxLabel");t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(Kw(a),Kw(u)):$w(a,o)&&(i?(Kw(o),Kw(c)):(Kw(a),Kw(u)));!1===r?(Kw(s),Kw(h)):$w(l,s)&&(r?(Kw(l),Kw(d)):(Kw(s),Kw(h)))}(e,i,n),function(e,t,n){var i=t.axis,r=t.getModel("minorTick");if(!r.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var o=r.getModel("lineStyle"),s=n.tickDirection*r.get("length"),l=Pw(o.getLineStyle(),Pw(t.getModel("axisTick").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})),u=0;u<a.length;u++)for(var c=Jw(a[u],e._transform,s,l,"minorticks_"+u),h=0;h<c.length;h++)e.group.add(c[h])}(this,e,t)},axisName:function(){var e=this.opt,t=this.axisModel,n=Lw(e.axisName,t.get("name"));if(n){var i,r,a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=this.axisModel.axis.getExtent(),c=u[0]>u[1]?-1:1,h=["start"===a?u[0]-c*l:"end"===a?u[1]+c*l:(u[0]+u[1])/2,Qw(a)?e.labelOffset+o*l:0],d=t.get("nameRotate");null!=d&&(d=d*Ww/180),Qw(a)?i=Zw(e.rotation,null!=d?d:e.rotation,o):(i=function(e,t,n,i){var r,a,o=Fw(n-e.rotation),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;Hw(o-Ww/2)?(a=l?"bottom":"top",r="center"):Hw(o-1.5*Ww)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*Ww&&o>Ww/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:r,textVerticalAlign:a}}(e,a,d||0,u),null!=(r=e.axisNameAvailableWidth)&&(r=Math.abs(r/Math.sin(i.rotation)),!isFinite(r)&&(r=null)));var f=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,m=Lw(e.nameTruncateMaxWidth,p.maxWidth,r),v=null!=g&&null!=m?Fh.truncateText(n,m,f,g,{minChar:2,placeholder:p.placeholder}):n,y=t.get("tooltip",!0),_=t.mainType,x={componentType:_,name:n,$vars:["name"]};x[_+"Index"]=t.componentIndex;var b=new Qc.Text({anid:"name",__fullText:n,__truncatedText:v,position:h,rotation:i.rotation,silent:Xw(t),z2:1,tooltip:y&&y.show?zw({content:n,formatter:function(){return n},formatterParams:x},y):null});Qc.setTextStyle(b.style,s,{text:v,textFont:f,textFill:s.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:s.get("align")||i.textAlign,textVerticalAlign:s.get("verticalAlign")||i.textVerticalAlign}),t.get("triggerEvent")&&(b.eventData=qw(t),b.eventData.targetType="axisName",b.eventData.name=n),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},qw=Gw.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},Zw=Gw.innerTextLayout=function(e,t,n){var i,r,a=Fw(t-e);return Hw(a)?(r=n>0?"top":"bottom",i="center"):Hw(a-Ww)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a<Ww?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}};var Xw=Gw.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)};function Kw(e){e&&(e.ignore=!0)}function $w(e,t,n){var i=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(i&&r){var a=nn.identity([]);return nn.rotate(a,a,-e.rotation),i.applyTransform(nn.mul([],a,e.getLocalTransform())),r.applyTransform(nn.mul([],a,t.getLocalTransform())),i.intersect(r)}}function Qw(e){return"middle"===e||"center"===e}function Jw(e,t,n,i,r){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,t&&(jw(o,o,t),jw(s,s,t));var c=new Qc.Line({anid:r+"_"+e[l].tickValue,subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,silent:!0});a.push(c)}return a}var eT=Gw,tT=He.each,nT=He.curry;function iT(e,t){return"all"===e||He.isArray(e)&&He.indexOf(e,t)>=0||e===t}function rT(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[oT(e)]}function aT(e){return!!e.get("handle.show")}function oT(e){return e.type+"||"+e.id}var sT=function(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),a=r.get("link",!0)||[],o=[];tT(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=oT(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(tT(n.getAxes(),nT(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get("axisPointer.type"),d=n.getTooltipAxes(u.get("axisPointer.axis"));(c||h)&&tT(d.baseAxes,nT(f,!h||"cross",c)),h&&tT(d.otherAxes,nT(f,"cross",!1))}}function f(i,s,c){var h=c.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||aT(h))){null==s&&(s=h.get("triggerTooltip")),h=i?function(e,t,n,i,r,a){var o=t.getModel("axisPointer"),s={};tT(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){s[e]=He.clone(o.get(e))})),s.snap="category"!==e.type&&!!a,"cross"===o.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=o.get("label.show");if(l.show=null==u||u,!a){var c=s.lineStyle=o.get("crossStyle");c&&He.defaults(l,c.textStyle)}}return e.model.getModel("axisPointer",new fh(s,n,i))}(c,u,r,t,i,s):h;var f=h.get("snap"),p=oT(c.model),g=s||f||"category"===c.type,m=e.axesInfo[p]={key:p,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:aT(h),seriesModels:[]};l[p]=m,e.seriesInvolved|=g;var v=function(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var a=e[r]||{};if(iT(a[i+"AxisId"],n.id)||iT(a[i+"AxisIndex"],n.componentIndex)||iT(a[i+"AxisName"],n.name))return r}}(a,c);if(null!=v){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[p]=m,y.mapper=a[v].mapper,m.linkGroup=y}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get("tooltip.trigger",!0),r=t.get("tooltip.show",!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==t.get("axisPointer.show",!0)&&tT(e.coordSysAxesInfo[oT(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}),this)}(n,e),n},lT=function(e){var t=rT(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=aT(n);null==a&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}},uT={collect:sT,fixValue:lT,getAxisInfo:rT,getAxisPointerModel:function(e){var t=rT(e);return t&&t.axisPointerModel},makeKey:oT},cT=zx.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,i){this.axisPointerClass&&uT.fixValue(e),cT.superApply(this,"render",arguments),hT(this,e,t,n,i,!0)},updateAxisPointer:function(e,t,n,i,r){hT(this,e,t,n,i,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),cT.superApply(this,"remove",arguments)},dispose:function(e,t){dT(this,t),cT.superApply(this,"dispose",arguments)}});function hT(e,t,n,i,r,a){var o=cT.getAxisPointerClass(e.axisPointerClass);if(o){var s=uT.getAxisPointerModel(t);s?(e._axisPointer||(e._axisPointer=new o)).render(t,s,i,a):dT(e,i)}}function dT(e,t,n){var i=e._axisPointer;i&&i.dispose(t,n),e._axisPointer=null}var fT=[];cT.registerAxisPointerClass=function(e,t){fT[e]=t},cT.getAxisPointerClass=function(e){return e&&fT[e]};var pT=cT;var gT=function(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,a={},o=r.getAxesOnZeroOf()[0],s=r.position,l=o?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,p="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}a.position=["y"===u?p[d[l]]:h[0],"x"===u?p[d[l]]:h[3]],a.rotation=Math.PI/2*("x"===u?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),He.retrieve(n.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var m=t.get("axisLabel.rotate");return a.labelRotate="top"===l?-m:m,a.z2=1,a},mT={layout:gT};var vT=function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,h=e.__splitAreaColors,d=He.createHashMap(),f=0;if(h)for(var p=0;p<u.length;p++){var g=h.get(u[p].tickValue);if(null!=g){f=(g+(c-1)*p)%c;break}}var m=r.toGlobalCoord(u[0].coord),v=o.getAreaStyle();s=He.isArray(s)?s:[s];for(p=1;p<u.length;p++){var y,_,x,b,w=r.toGlobalCoord(u[p].coord);r.isHorizontal()?(y=m,_=l.y,x=w-y,b=l.height,m=y+x):(y=l.x,_=m,x=l.width,m=_+(b=w-_));var T=u[p-1].tickValue;null!=T&&d.set(T,f),t.add(new Qc.Rect({anid:null!=T?"area_"+T:null,shape:{x:y,y:_,width:x,height:b},style:He.defaults({fill:s[f]},v),silent:!0})),f=(f+1)%c}e.__splitAreaColors=d}}},yT={rectCoordAxisBuildSplitArea:vT,rectCoordAxisHandleRemove:function(e){e.__splitAreaColors=null}},_T=yT.rectCoordAxisBuildSplitArea,xT=yT.rectCoordAxisHandleRemove,bT=["axisLine","axisTickLabel","axisName"],wT=["splitArea","splitLine","minorSplitLine"],TT=pT.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,i){this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Qc.Group,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),o=mT.layout(a,e),s=new eT(e,o);He.each(bT,s.add,s),this._axisGroup.add(s.getGroup()),He.each(wT,(function(t){e.get(t+".show")&&this["_"+t](e,a)}),this),Qc.groupTransition(r,this._axisGroup,e),TT.superCall(this,"render",e,t,n,i)}},remove:function(){xT(this)},_splitLine:function(e,t){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitLine"),r=i.getModel("lineStyle"),a=r.get("color");a=He.isArray(a)?a:[a];for(var o=t.coordinateSystem.getRect(),s=n.isHorizontal(),l=0,u=n.getTicksCoords({tickModel:i}),c=[],h=[],d=r.getLineStyle(),f=0;f<u.length;f++){var p=n.toGlobalCoord(u[f].coord);s?(c[0]=p,c[1]=o.y,h[0]=p,h[1]=o.y+o.height):(c[0]=o.x,c[1]=p,h[0]=o.x+o.width,h[1]=p);var g=l++%a.length,m=u[f].tickValue;this._axisGroup.add(new Qc.Line({anid:null!=m?"line_"+u[f].tickValue:null,subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:He.defaults({stroke:a[g]},d),silent:!0}))}}},_minorSplitLine:function(e,t){var n=e.axis,i=e.getModel("minorSplitLine").getModel("lineStyle"),r=t.coordinateSystem.getRect(),a=n.isHorizontal(),o=n.getMinorTicksCoords();if(o.length)for(var s=[],l=[],u=i.getLineStyle(),c=0;c<o.length;c++)for(var h=0;h<o[c].length;h++){var d=n.toGlobalCoord(o[c][h].coord);a?(s[0]=d,s[1]=r.y,l[0]=d,l[1]=r.y+r.height):(s[0]=r.x,s[1]=d,l[0]=r.x+r.width,l[1]=d),this._axisGroup.add(new Qc.Line({anid:"minor_line_"+o[c][h].tickValue,subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,silent:!0}))}},_splitArea:function(e,t){_T(this,this._axisGroup,e,t)}});TT.extend({type:"xAxis"}),TT.extend({type:"yAxis"}),zx.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Qc.Rect({shape:e.coordinateSystem.getRect(),style:He.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),zx.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})),zx.registerVisual(qb("line","circle","line")),zx.registerLayout(Kb("line")),zx.registerProcessor(zx.PRIORITY.PROCESSOR.STATISTIC,Jb("line"));var ST=function(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var a=n.getData(),o=Eo.queryDataIndex(a,e);if(null==o||o<0||He.isArray(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)i=l.dataToPoint(a.getValues(He.map(l.dimensions,(function(e){return a.mapDimension(e)})),o,!0))||[];else if(s){var u=s.getBoundingRect().clone();u.applyTransform(s.transform),i=[u.x+u.width/2,u.y+u.height/2]}return{point:i,el:s}},OT=Eo.makeInner,MT=He.each,DT=He.curry,AT=OT();function kT(e,t,n,i,r){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){var o=function(e,t){var n=t.axis,i=n.dim,r=e,a=[],o=Number.MAX_VALUE,s=-1;return MT(t.seriesModels,(function(t,l){var u,c,h=t.getData().mapDimension(i,!0);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=e-u,p=Math.abs(f);p<=o&&((p<o||f>=0&&s<0)&&(o=p,s=f,r=u,a.length=0),MT(c,(function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:a,snapToValue:r}}(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==r.seriesIndex&&He.extend(r,s[0]),!i&&e.snap&&a.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s,r),n.showTooltip(e,o,l)}else n.showPointer(e,t)}function IT(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function CT(e,t,n,i){var r=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=uT.makeKey(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:r.slice()})}}function ET(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function NT(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}var RT=function(e,t,n){var i=e.currTrigger,r=[e.x,e.y],a=e,o=e.dispatchAction||He.bind(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){NT(r)&&(r=ST({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=NT(r),u=a.axesInfo,c=s.axesInfo,h="leave"===i||NT(r),d={},f={},p={list:[],map:{}},g={showPointer:DT(IT,f),showTooltip:DT(CT,p)};MT(s.coordSysMap,(function(e,t){var n=l||e.containPoint(r);MT(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,a=function(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}(u,e);if(!h&&n&&(!u||a)){var o=a&&a.value;null!=o||l||(o=i.pointToData(r)),null!=o&&kT(e,o,g,!1,d)}}))}));var m={};return MT(c,(function(e,t){var n=e.linkGroup;n&&!f[t]&&MT(n.axesInfo,(function(t,i){var r=f[i];if(t!==e&&r){var a=r.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,ET(t),ET(e)))),m[e.key]=a}}))})),MT(m,(function(e,t){kT(c[t],e,g,!0,d)})),function(e,t,n){var i=n.axesInfo=[];MT(t,(function(t,n){var r=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}(f,c,d),function(e,t,n,i){if(NT(t)||!e.list.length)return void i({type:"hideTip"});var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}(p,r,e,o),function(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",a=AT(i)[r]||{},o=AT(i)[r]={};MT(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&MT(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e}))}));var s=[],l=[];He.each(a,(function(e,t){!o[t]&&l.push(e)})),He.each(o,(function(e,t){!a[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}(c,0,n),d}};zx.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,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}}});var LT=(0,Eo.makeInner)(),PT=He.each;function zT(e,t,n){e.handler("leave",null,n)}function YT(e,t,n,i){t.handler(e,n,i)}var HT={register:function(e,t,n){if(!ne.node){var i=t.getZr();LT(i).records||(LT(i).records={}),function(e,t){if(LT(e).initialized)return;function n(n,i){e.on(n,(function(n){var r=function(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}(t);PT(LT(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),function(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(r.pendings,t)}))}LT(e).initialized=!0,n("click",He.curry(YT,"click")),n("mousemove",He.curry(YT,"mousemove")),n("globalout",zT)}(i,t),(LT(i).records[e]||(LT(i).records[e]={})).handler=n}},unregister:function(e,t){if(!ne.node){var n=t.getZr();(LT(n).records||{})[e]&&(LT(n).records[e]=null)}}},FT=zx.extendComponentView({type:"axisPointer",render:function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";HT.register("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},remove:function(e,t){HT.unregister(t.getZr(),"axisPointer"),FT.superApply(this._model,"remove",arguments)},dispose:function(e,t){HT.unregister("axisPointer",t),FT.superApply(this._model,"dispose",arguments)}}),BT=(0,Eo.makeInner)(),jT=He.clone,UT=He.bind;function WT(){}function GT(e,t,n,i){VT(BT(n).lastProp,i)||(BT(n).lastProp=i,t?Qc.updateProps(n,i,e):(n.stopAnimation(),n.attr(i)))}function VT(e,t){if(He.isObject(e)&&He.isObject(t)){var n=!0;return He.each(t,(function(t,i){n=n&&VT(e[i],t)})),!!n}return e===t}function qT(e,t){e[t.get("label.show")?"show":"hide"]()}function ZT(e){return{position:e.position.slice(),rotation:e.rotation||0}}function XT(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}function KT(e,t,n,i,r){var a=$T(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),o=n.getModel("label"),s=Fh.normalizeCssArray(o.get("padding")||0),l=o.getFont(),u=jr.getBoundingRect(a,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=r.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(e,t,n,i){var r=i.getWidth(),a=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,h,d,i);var g=o.get("backgroundColor");g&&"auto"!==g||(g=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:h,height:d,r:o.get("borderRadius")},position:c.slice(),style:{text:a,textFont:l,textFill:o.getTextColor(),textPosition:"inside",textPadding:s,fill:g,stroke:o.get("borderColor")||"transparent",lineWidth:o.get("borderWidth")||0,shadowBlur:o.get("shadowBlur"),shadowColor:o.get("shadowColor"),shadowOffsetX:o.get("shadowOffsetX"),shadowOffsetY:o.get("shadowOffsetY")},z2:10}}function $T(e,t,n,i,r){e=t.scale.parse(e);var a=t.scale.getLabel(e,{precision:r.precision}),o=r.formatter;if(o){var s={value:T_.getAxisRawValue(t,e),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};He.each(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&s.seriesData.push(r)})),He.isString(o)?a=o.replace("{value}",a):He.isFunction(o)&&(a=o(s))}return a}function QT(e,t,n){var i=nn.create();return nn.rotate(i,i,n.rotation),nn.translate(i,i,n.position),Qc.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}WT.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,n,i){var r=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,r,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(o){var h=He.curry(GT,t,c);this.updatePointerEl(o,l,h,t),this.updateLabelEl(o,l,h,t)}else o=this._group=new Qc.Group,this.createPointerEl(o,l,e,t),this.createLabelEl(o,l,e,t),n.getZr().add(o);XT(o,t,!0),this._renderHandle(r)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,a=t.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(r&&i.getBandWidth()>o)return!0;if(a){var s=uT.getAxisInfo(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===n},makeElOption:function(e,t,n,i,r){},createPointerEl:function(e,t,n,i){var r=t.pointer;if(r){var a=BT(e).pointerEl=new Qc[r.type](jT(t.pointer));e.add(a)}},createLabelEl:function(e,t,n,i){if(t.label){var r=BT(e).labelEl=new Qc.Rect(jT(t.label));e.add(r),qT(r,i)}},updatePointerEl:function(e,t,n){var i=BT(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,n,i){var r=BT(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{shape:t.label.shape,position:t.label.position}),qT(r,i))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=Qc.createIcon(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){Rt.stop(e.event)},onmousedown:UT(this._onHandleDragMove,this,0,0),drift:UT(this._onHandleDragMove,this),ondragend:UT(this._onHandleDragEnd,this)}),i.add(r)),XT(r,n,!1);r.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");He.isArray(s)||(s=[s,s]),r.attr("scale",[s[0]/2,s[1]/2]),Tg.createOrUpdate(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){GT(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ZT(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(ZT(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ZT(i)),BT(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},_onHandleDragEnd:function(e){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}},WT.prototype.constructor=WT,Bo.enableClassExtend(WT);var JT=function(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle()).fill=null:"shadow"===n&&((t=i.getAreaStyle()).stroke=null),t},eS={buildElStyle:JT,buildLabelElOption:KT,getValueLabel:$T,getTransformedPosition:QT,buildCartesianSingleLabelElOption:function(e,t,n,i,r,a){var o=eT.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get("label.margin"),KT(t,i,r,a,{position:QT(i.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})},makeLineShape:function(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}},makeRectShape:function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},makeSectorShape:function(e,t,n,i,r,a){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:a,clockwise:!0}}},tS=WT.extend({makeElOption:function(e,t,n,i,r){var a=n.axis,o=a.grid,s=i.get("type"),l=nS(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&"none"!==s){var c=eS.buildElStyle(i),h=iS[s](a,u,l);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=mT.layout(o.model,n);eS.buildCartesianSingleLabelElOption(t,e,d,n,i,r)},getHandleTransform:function(e,t,n){var i=mT.layout(t.axis.grid.model,t,{labelInside:!1});return i.labelMargin=n.get("handle.margin"),{position:eS.getTransformedPosition(t.axis,e,i),rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,i){var r=n.axis,a=r.grid,o=r.getGlobalExtent(!0),s=nS(a,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=e.position;u[l]+=t[l],u[l]=Math.min(o[1],u[l]),u[l]=Math.max(o[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{position:u,rotation:e.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}}});function nS(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var iS={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:eS.makeLineShape([t,n[0]],[t,n[1]],rS(e))}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:eS.makeRectShape([t-i/2,n[0]],[i,r],rS(e))}}};function rS(e){return"x"===e.dim?0:1}pT.registerAxisPointerClass("CartesianAxisPointer",tS),zx.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!He.isArray(t)&&(e.axisPointer.link=[t])}})),zx.registerProcessor(zx.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=uT.collect(e,t)})),zx.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},RT),zx.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",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}}});var aS=He.each,oS=Fh.toCamelCase,sS=["","-webkit-","-moz-","-o-"];function lS(e){var t,n,i,r=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.getModel("textStyle"),l=e.get("padding");return a&&r.push((i="left "+(t=a)+"s "+(n="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+t+"s "+n,He.map(sS,(function(e){return e+"transition:"+i})).join(";"))),o&&(ne.canvasSupported?r.push("background-Color:"+o):(r.push("background-Color:#"+Wn.toHex(o)),r.push("filter:alpha(opacity=70)"))),aS(["width","color","radius"],(function(t){var n="border-"+t,i=oS(n),a=e.get(i);null!=a&&r.push(n+":"+a+("color"===t?"":"px"))})),r.push(function(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();return i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px"),aS(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}(s)),null!=l&&r.push("padding:"+Fh.normalizeCssArray(l).join("px ")+"px"),r.join(";")+";"}function uS(e,t,n,i,r){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&St.transformLocalCoord(e,o,document.body,i,r)}else{e[0]=i,e[1]=r;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}}function cS(e,t,n){if(ne.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),a=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0],uS(this._styleCoord,r,a,t.getWidth()/2,t.getHeight()/2),a?document.body.appendChild(i):e.appendChild(i),this._container=e,this._show=!1,this._hideTimeout;var o=this;i.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!o._enterable){var t=r.handler,n=r.painter.getViewportRoot();Rt.normalizeEvent(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1}}cS.prototype={constructor:cS,_enterable:!0,update:function(){var e=this._container,t=e.currentStyle||document.defaultView.getComputedStyle(e),n=e.style;"absolute"!==n.position&&"absolute"!==t.position&&(n.position="relative")},show:function(e){clearTimeout(this._hideTimeout);var t=this.el,n=this._styleCoord;t.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+lS(e)+";left:"+n[0]+"px;top:"+n[1]+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",t.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var n=this._styleCoord;uS(n,this._zr,this._appendToBody,e,t);var i=this.el.style;i.left=n[0]+"px",i.top=n[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(He.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(this.el);n&&(e+=parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),t+=parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:t}}};var hS=cS;function dS(e){this._zr=e.getZr(),this._show=!1,this._hideTimeout}dS.prototype={constructor:dS,_enterable:!0,update:function(){},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,n){this.el&&this._zr.remove(this.el);for(var i={},r=e,a="{marker",o=r.indexOf(a);o>=0;){var s=r.indexOf("|}"),l=r.substr(o+7,s-o-7);l.indexOf("sub")>-1?i["marker"+l]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[l],textOffset:[3,0]}:i["marker"+l]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[l]},o=(r=r.substr(s+1)).indexOf("{marker")}this.el=new Bl({style:{rich:i,text:e,textLineHeight:20,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding")},z:n.get("z")}),this._zr.add(this.el);var u=this;this.el.on("mouseover",(function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0})),this.el.on("mouseout",(function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1}))},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){this.el&&this.el.attr("position",[e,t])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(He.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var e=this.getSize();return{width:e[0],height:e[1]}}};var fS=dS,pS=Eo.getTooltipRenderMode,gS=He.bind,mS=He.each,vS=Dh.parsePercent,yS=new Qc.Rect({shape:{x:-1,y:-1,width:2,height:2}});function _S(e){for(var t=e.pop();e.length;){var n=e.pop();n&&(fh.isInstance(n)&&(n=n.get("tooltip",!0)),"string"==typeof n&&(n={formatter:n}),t=new fh(n,t,t.ecModel))}return t}function xS(e,t){return e.dispatchAction||He.bind(t.dispatchAction,t)}function bS(e){return"center"===e||"middle"===e}zx.extendComponentView({type:"tooltip",init:function(e,t){if(!ne.node){var n,i=e.getComponent("tooltip"),r=i.get("renderMode");this._renderMode=pS(r),"html"===this._renderMode?(n=new hS(t.getDom(),t,{appendToBody:i.get("appendToBody",!0)}),this._newLine="<br/>"):(n=new fS(t),this._newLine="\n"),this._tooltipContent=n}},render:function(e,t,n){if(!ne.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var i=this._tooltipContent;i.update(),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel.get("triggerOn");HT.register("itemTooltip",this._api,gS((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY})}))}},manuallyShowTip:function(e,t,n,i){if(i.from!==this.uid&&!ne.node){var r=xS(i,n);this._ticket="";var a=i.dataByCoordSys;if(i.tooltip&&null!=i.x&&null!=i.y){var o=yS;o.position=[i.x,i.y],o.update(),o.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:o},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:i.dataByCoordSys,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var s=ST(i,t),l=s.point[0],u=s.point[1];null!=l&&null!=u&&this._tryShow({offsetX:l,offsetY:u,position:i.position,target:s.el},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},manuallyHideTip:function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,i.from!==this.uid&&this._hide(xS(i,n))},_manuallyAxisShowTip:function(e,t,n,i){var r=i.seriesIndex,a=i.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=t.getSeriesByIndex(r);if(s)if("axis"===(e=_S([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model,e])).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}},_tryShow:function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,e):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=He.bind(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],a=[],o=[],s=_S([t.tooltipOption,i]),l=this._renderMode,u=this._newLine,c={};mS(e,(function(e){mS(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value,r=[];if(t&&null!=i){var s=eS.getValueLabel(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt);He.each(e.seriesDataIndices,(function(a){var u=n.getSeriesByIndex(a.seriesIndex),h=a.dataIndexInside,d=u&&u.getDataParams(h);if(d.axisDim=e.axisDim,d.axisIndex=e.axisIndex,d.axisType=e.axisType,d.axisId=e.axisId,d.axisValue=T_.getAxisRawValue(t.axis,i),d.axisValueLabel=s,d){o.push(d);var f,p=u.formatTooltip(h,!0,null,l);if(He.isObject(p)){f=p.html;var g=p.markers;He.merge(c,g)}else f=p;r.push(f)}}));var h=s;"html"!==l?a.push(r.join(u)):a.push((h?Fh.encodeHTML(h)+u:"")+r.join(u))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var h=t.position;this._showOrMove(s,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(s,h,r[0],r[1],this._tooltipContent,o):this._showTooltipContent(s,a,o,Math.random(),r[0],r[1],h,void 0,c)}))},_showSeriesItemTooltip:function(e,t,n){var i=this._ecModel,r=t.seriesIndex,a=i.getSeriesByIndex(r),o=t.dataModel||a,s=t.dataIndex,l=t.dataType,u=o.getData(l),c=_S([u.getItemModel(s),o,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),h=c.get("trigger");if(null==h||"item"===h){var d,f,p=o.getDataParams(s,l),g=o.formatTooltip(s,!1,l,this._renderMode);He.isObject(g)?(d=g.html,f=g.markers):(d=g,f=null);var m="item_"+o.name+"_"+s;this._showOrMove(c,(function(){this._showTooltipContent(c,d,p,m,e.offsetX,e.offsetY,e.position,e.target,f)})),n({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var i=t.tooltip;if("string"==typeof i){i={content:i,formatter:i}}var r=new fh(i,this._tooltipModel,this._ecModel),a=r.get("content"),o=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},o,e.offsetX,e.offsetY,e.position,t)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,i,r,a,o,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent,c=e.get("formatter");o=o||e.get("position");var h=t;if(c&&"string"==typeof c)h=Fh.formatTpl(c,n,!0);else if("function"==typeof c){var d=gS((function(t,i){t===this._ticket&&(u.setContent(i,l,e),this._updatePosition(e,o,r,a,u,n,s))}),this);this._ticket=i,h=c(n,i,d)}u.setContent(h,l,e),u.show(e),this._updatePosition(e,o,r,a,u,n,s)}},_updatePosition:function(e,t,n,i,r,a,o){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),c=e.get("align"),h=e.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),"function"==typeof t&&(t=t([n,i],a,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),He.isArray(t))n=vS(t[0],s),i=vS(t[1],l);else if(He.isObject(t)){t.width=u[0],t.height=u[1];var f=Jh.getLayoutRect(t,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if("string"==typeof t&&o){var p=function(e,t,n){var i=n[0],r=n[1],a=5,o=0,s=0,l=t.width,u=t.height;switch(e){case"inside":o=t.x+l/2-i/2,s=t.y+u/2-r/2;break;case"top":o=t.x+l/2-i/2,s=t.y-r-a;break;case"bottom":o=t.x+l/2-i/2,s=t.y+u+a;break;case"left":o=t.x-i-a,s=t.y+u/2-r/2;break;case"right":o=t.x+l+a,s=t.y+u/2-r/2}return[o,s]}(t,d,u);n=p[0],i=p[1]}else{p=function(e,t,n,i,r,a,o){var s=n.getOuterSize(),l=s.width,u=s.height;null!=a&&(e+l+a>i?e-=l+a:e+=a);null!=o&&(t+u+o>r?t-=u+o:t+=o);return[e,t]}(n,i,r,s,l,c?null:20,h?null:20);n=p[0],i=p[1]}if(c&&(n-=bS(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=bS(h)?u[1]/2:"bottom"===h?u[1]:0),e.get("confine")){p=function(e,t,n,i,r){var a=n.getOuterSize(),o=a.width,s=a.height;return e=Math.min(e+o,i)-o,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,i,r,s,l);n=p[0],i=p[1]}r.moveTo(n,i)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&mS(t,(function(t,i){var r=t.dataByAxis||{},a=(e[i]||{}).dataByAxis||[];(n&=r.length===a.length)&&mS(r,(function(e,t){var i=a[t]||{},r=e.seriesDataIndices||[],o=i.seriesDataIndices||[];(n&=e.value===i.value&&e.axisType===i.axisType&&e.axisId===i.axisId&&r.length===o.length)&&mS(r,(function(e,t){var i=o[t];n&=e.seriesIndex===i.seriesIndex&&e.dataIndex===i.dataIndex}))}))})),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){ne.node||(this._tooltipContent.dispose(),HT.unregister("itemTooltip",t))}}),zx.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),zx.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}));var wS=Eo.isNameSpecified,TS=Dg.legend.selector,SS={all:{type:"all",title:He.clone(TS.all)},inverse:{type:"inverse",title:He.clone(TS.inverse)}},OS=zx.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},mergeOption:function(e){OS.superCall(this,"mergeOption",e),this._updateSelector(e)},_updateSelector:function(e){var t=e.selector;!0===t&&(t=e.selector=["all","inverse"]),He.isArray(t)&&He.each(t,(function(e,n){He.isString(e)&&(e={type:e}),t[n]=He.merge(e,SS[e.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},_updateData:function(e){var t=[],n=[];e.eachRawSeries((function(i){var r,a=i.name;if(n.push(a),i.legendVisualProvider){var o=i.legendVisualProvider.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(o)),o.length?t=t.concat(o):r=!0}else r=!0;r&&wS(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,r=He.map(i,(function(e){return"string"!=typeof e&&"number"!=typeof e||(e={name:e}),new fh(e,this,this.ecModel)}),this);this._data=r},getData:function(){return this._data},select:function(e){var t=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;He.each(n,(function(e){t[e.get("name")]=!1}))}t[e]=!0},unSelect:function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},allSelect:function(){var e=this._data,t=this.option.selected;He.each(e,(function(e){t[e.get("name",!0)]=!0}))},inverseSelect:function(){var e=this._data,t=this.option.selected;He.each(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&He.indexOf(this._availableNames,e)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),MS=OS;function DS(e,t,n){var i,r={},a="toggleSelected"===e;return n.eachComponent("legend",(function(n){a&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name));var o=n.getData();He.each(o,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&i:r[t]=i}}))})),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}zx.registerAction("legendToggleSelect","legendselectchanged",He.curry(DS,"toggleSelected")),zx.registerAction("legendAllSelect","legendselectall",He.curry(DS,"allSelect")),zx.registerAction("legendInverseSelect","legendinverseselect",He.curry(DS,"inverseSelect")),zx.registerAction("legendSelect","legendselected",He.curry(DS,"select")),zx.registerAction("legendUnSelect","legendunselected",He.curry(DS,"unSelect"));var AS=Jh.getLayoutRect,kS=Jh.box,IS=Jh.positionElement;var CS=function(e,t){var n=Fh.normalizeCssArray(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new Qc.Rect({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})},ES=z_.createSymbol,NS={layout:function(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),a={width:n.getWidth(),height:n.getHeight()},o=AS(i,a,r);kS(t.get("orient"),e,t.get("itemGap"),o.width,o.height),IS(e,i,a,r)},makeBackground:CS}.makeBackground,RS=He.curry,LS=He.each,PS=Qc.Group,zS=zx.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new PS),this._backgroundEl,this.group.add(this._selectorGroup=new PS),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),a=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===a?"right":"left");var o=e.get("selector",!0),s=e.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(r,e,t,n,o,a,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),h=Jh.getLayoutRect(l,u,c),d=this.layoutInner(e,r,h,i,o,s),f=Jh.getLayoutRect(He.defaults({width:d.width,height:d.height},l),u,c);this.group.attr("position",[f.x-d.x,f.y-d.y]),this.group.add(this._backgroundEl=NS(d,e))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(e,t,n,i,r,a,o){var s=this.getContentGroup(),l=He.createHashMap(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),LS(t.getData(),(function(r,a){var o=r.get("name");if(this.newlineDisabled||""!==o&&"\n"!==o){var h=n.getSeriesByName(o)[0];if(!l.get(o))if(h){var d=h.getData(),f=d.getVisual("color"),p=d.getVisual("borderColor");"function"==typeof f&&(f=f(h.getDataParams(0))),"function"==typeof p&&(p=p(h.getDataParams(0)));var g=d.getVisual("legendSymbol")||"roundRect",m=d.getVisual("symbol");this._createItem(o,a,r,t,g,m,e,f,p,u).on("click",RS(HS,o,null,i,c)).on("mouseover",RS(FS,h.name,null,i,c)).on("mouseout",RS(BS,h.name,null,i,c)),l.set(o,!0)}else n.eachRawSeries((function(n){if(!l.get(o)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(o))return;var h=s.indexOfName(o),d=s.getItemVisual(h,"color"),f=s.getItemVisual(h,"borderColor");this._createItem(o,a,r,t,"roundRect",null,e,d,f,u).on("click",RS(HS,null,o,i,c)).on("mouseover",RS(FS,null,o,i,c)).on("mouseout",RS(BS,null,o,i,c)),l.set(o,!0)}}),this)}else s.add(new PS({newline:!0}))}),this),r&&this._createSelector(r,t,i,a,o)},_createSelector:function(e,t,n,i,r){var a=this.getSelectorGroup();LS(e,(function(e){!function(e){var i=e.type,r=new Qc.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});a.add(r);var o=t.getModel("selectorLabel"),s=t.getModel("emphasis.selectorLabel");Qc.setLabelStyle(r.style,r.hoverStyle={},o,s,{defaultText:e.title,isRectText:!1}),Qc.setHoverStyle(r)}(e)}))},_createItem:function(e,t,n,i,r,a,o,s,l,u){var c=i.get("itemWidth"),h=i.get("itemHeight"),d=i.get("inactiveColor"),f=i.get("inactiveBorderColor"),p=i.get("symbolKeepAspect"),g=i.getModel("itemStyle"),m=i.isSelected(e),v=new PS,y=n.getModel("textStyle"),_=n.get("icon"),x=n.getModel("tooltip"),b=x.parentModel,w=ES(r=_||r,0,0,c,h,m?s:d,null==p||p);if(v.add(YS(w,r,g,l,f,m)),!_&&a&&(a!==r||"none"===a)){var T=.8*h;"none"===a&&(a="circle");var S=ES(a,(c-T)/2,(h-T)/2,T,T,m?s:d,null==p||p);v.add(YS(S,a,g,l,f,m))}var O="left"===o?c+5:-5,M=o,D=i.get("formatter"),A=e;"string"==typeof D&&D?A=D.replace("{name}",null!=e?e:""):"function"==typeof D&&(A=D(e)),v.add(new Qc.Text({style:Qc.setTextStyle({},y,{text:A,x:O,y:h/2,textFill:m?y.getTextColor():d,textAlign:M,textVerticalAlign:"middle"})}));var k=new Qc.Rect({shape:v.getBoundingRect(),invisible:!0,tooltip:x.get("show")?He.extend({content:e,formatter:b.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:i.componentIndex,name:e,$vars:["name"]}},x.option):null});return v.add(k),v.eachChild((function(e){e.silent=!0})),k.silent=!u,this.getContentGroup().add(v),Qc.setHoverStyle(v),v.__legendDataIndex=t,v},layoutInner:function(e,t,n,i,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Jh.box(e.get("orient"),o,e.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),u=[-l.x,-l.y];if(r){Jh.box("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),f=e.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===a?h[f]+=l[p]+d:u[f]+=c[p]+d,h[1-f]+=l[g]/2-c[g]/2,s.attr("position",h),o.attr("position",u);var v={x:0,y:0};return v[p]=l[p]+d+c[p],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+h[1-f]),v}return o.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function YS(e,t,n,i,r,a){var o;return"line"!==t&&t.indexOf("empty")<0?(o=n.getItemStyle(),e.style.stroke=i,a||(o.stroke=r)):o=n.getItemStyle(["borderWidth","borderColor"]),e.setStyle(o)}function HS(e,t,n,i){BS(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),FS(e,t,n,i)}function FS(e,t,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function BS(e,t,n,i){var r=n.getZr().storage.getDisplayList()[0];r&&r.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}var jS=zS;var US=function(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))};zx.registerProcessor(zx.PRIORITY.PROCESSOR.SERIES_FILTER,US),ad.registerSubTypeDefaulter("legend",(function(){return"plain"}));var WS=Jh.mergeLayoutParam,GS=Jh.getLayoutParams,VS=MS.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(e,t,n,i){var r=GS(e);VS.superCall(this,"init",e,t,n,i),qS(this,e,r)},mergeOption:function(e,t){VS.superCall(this,"mergeOption",e,t),qS(this,this.option,e)}});function qS(e,t,n){var i=[1,1];i[e.getOrient().index]=0,WS(t,n,{type:"box",ignoreSize:i})}var ZS=Qc.Group,XS=["width","height"],KS=["x","y"],$S=jS.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){$S.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new ZS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ZS),this._showController},resetInner:function(){$S.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,n,i,r,a,o){var s=this;$S.superCall(this,"renderInner",e,t,n,i,r,a,o);var l=this._controllerGroup,u=t.get("pageIconSize",!0);He.isArray(u)||(u=[u,u]),h("pagePrev",0);var c=t.getModel("pageTextStyle");function h(e,n){var r=e+"DataIndex",a=Qc.createIcon(t.get("pageIcons",!0)[t.getOrient().name][n],{onclick:He.bind(s._pageGo,s,r,t,i)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});a.name=e,l.add(a)}l.add(new Qc.Text({name:"pageText",style:{textFill:c.getTextColor(),font:c.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),h("pageNext",1)},layoutInner:function(e,t,n,i,r,a){var o=this.getSelectorGroup(),s=e.getOrient().index,l=XS[s],u=KS[s],c=XS[1-s],h=KS[1-s];r&&Jh.box("horizontal",o,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),f=o.getBoundingRect(),p=[-f.x,-f.y],g=He.clone(n);r&&(g[l]=n[l]-f[l]-d);var m=this._layoutContentAndController(e,i,g,s,l,c,h);if(r){if("end"===a)p[s]+=m[l]+d;else{var v=f[l]+d;p[s]-=v,m[u]-=v}m[l]+=f[l]+d,p[1-s]+=m[h]+m[c]/2-f[c]/2,m[c]=Math.max(m[c],f[c]),m[h]=Math.min(m[h],f[h]+p[1-s]),o.attr("position",p)}return m},_layoutContentAndController:function(e,t,n,i,r,a,o){var s=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;Jh.box(e.get("orient"),s,e.get("itemGap"),i?n.width:null,i?null:n.height),Jh.box("horizontal",u,e.get("pageButtonItemGap",!0));var c=s.getBoundingRect(),h=u.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y];t||(f[i]=s.position[i]);var p=[0,0],g=[-h.x,-h.y],m=He.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));d&&("end"===e.get("pageButtonPosition",!0)?g[i]+=n[r]-h[r]:p[i]+=h[r]+m);g[1-i]+=c[a]/2-h[a]/2,s.attr("position",f),l.attr("position",p),u.attr("position",g);var v={x:0,y:0};if(v[r]=d?n[r]:c[r],v[a]=Math.max(c[a],h[a]),v[o]=Math.min(0,h[o]+g[1-i]),l.__rectSize=n[r],d){var y={x:0,y:0};y[r]=Math.max(n[r]-h[r]-m,0),y[a]=v[a],l.setClipPath(new Qc.Rect({shape:y})),l.__rectSize=y[r]}else u.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(e);return null!=_.pageIndex&&Qc.updateProps(s,{position:_.contentPosition},!!d&&e),this._updatePageInfoView(e,_),v},_pageGo:function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;He.each(["pagePrev","pageNext"],(function(i){var r=null!=t[i+"DataIndex"],a=n.childOfName(i);a&&(a.setStyle("fill",r?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),a=t.pageIndex,o=null!=a?a+1:0,s=t.pageCount;i&&r&&i.setStyle("text",He.isString(r)?r.replace("{current}",o).replace("{total}",s):r({current:o,total:s}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,a=XS[r],o=KS[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:n.position.slice(),pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=c;++p)(!(v=y(l[p]))&&m.e>g.s+i||v&&!_(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)(v=y(l[p]))&&_(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(e){if(e){var t=e.getBoundingRect(),n=t[o]+e.position[r];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function _(e,t){return e.e>=t&&e.s<=t+i}},_findTargetItemIndex:function(e){return this._showController?(this.getContentGroup().eachChild((function(i,r){var a=i.__legendDataIndex;null==n&&null!=a&&(n=r),a===e&&(t=r)})),null!=t?t:n):0;var t,n}});zx.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}));var QS,JS,eO,tO,nO,iO=Q((function(e,t){var n;n=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){var i=n(2),r=n(3),a=n(4),o=n(22);function s(e){var t=new a(e),n=r(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var l=s(n(10));l.Axios=a,l.create=function(e){return s(o(l.defaults,e))},l.Cancel=n(23),l.CancelToken=n(24),l.isCancel=n(9),l.all=function(e){return Promise.all(e)},l.spread=n(25),e.exports=l,e.exports.default=l},function(e,t,n){var i=n(3),r=Object.prototype.toString;function a(e){return"[object Array]"===r.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===r.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:o,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function n(n,i){"object"==typeof t[i]&&"object"==typeof n?t[i]=e(t[i],n):t[i]=n}for(var i=0,r=arguments.length;i<r;i++)u(arguments[i],n);return t},deepMerge:function e(){var t={};function n(n,i){"object"==typeof t[i]&&"object"==typeof n?t[i]=e(t[i],n):t[i]="object"==typeof n?e({},n):n}for(var i=0,r=arguments.length;i<r;i++)u(arguments[i],n);return t},extend:function(e,t,n){return u(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t){e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},function(e,t,n){var i=n(2),r=n(5),a=n(6),o=n(7),s=n(22);function l(e){this.defaults=e,this.interceptors={request:new a,response:new a}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=l},function(e,t,n){var i=n(2);function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(i.isURLSearchParams(t))a=t.toString();else{var o=[];i.forEach(t,(function(e,t){null!=e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))})))})),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){var i=n(2);function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},function(e,t,n){var i=n(2),r=n(8),a=n(9),o=n(10);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),t.data=r(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){var i=n(2);e.exports=function(e,t,n){return i.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t){e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){var i=n(2),r=n(11),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(12)),s),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(o(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){l.headers[e]=i.merge(a)})),e.exports=l},function(e,t,n){var i=n(2);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},function(e,t,n){var i=n(2),r=n(13),a=n(5),o=n(16),s=n(19),l=n(20),u=n(14);e.exports=function(e){return new Promise((function(t,c){var h=e.data,d=e.headers;i.isFormData(h)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",g=e.auth.password||"";d.Authorization="Basic "+btoa(p+":"+g)}var m=o(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),a(m,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};r(t,c,i),f=null}},f.onabort=function(){f&&(c(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){c(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),c(u(t,e,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var v=n(21),y=(e.withCredentials||l(m))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}if("setRequestHeader"in f&&i.forEach(d,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),c(e),f=null)})),void 0===h&&(h=null),f.send(h)}))}},function(e,t,n){var i=n(14);e.exports=function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(i("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){var i=n(15);e.exports=function(e,t,n,r,a){var o=new Error(e);return i(o,t,n,r,a)}},function(e,t){e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){var i=n(17),r=n(18);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},function(e,t){e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){var i=n(2),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(i.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=i.trim(e.substr(0,a)).toLowerCase(),n=i.trim(e.substr(a+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},function(e,t,n){var i=n(2);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){var i=n(2);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){var i=n(2);e.exports=function(e,t){t=t||{};var n={},r=["url","method","params","data"],a=["headers","auth","proxy"],o=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];i.forEach(r,(function(e){void 0!==t[e]&&(n[e]=t[e])})),i.forEach(a,(function(r){i.isObject(t[r])?n[r]=i.deepMerge(e[r],t[r]):void 0!==t[r]?n[r]=t[r]:i.isObject(e[r])?n[r]=i.deepMerge(e[r]):void 0!==e[r]&&(n[r]=e[r])})),i.forEach(o,(function(i){void 0!==t[i]?n[i]=t[i]:void 0!==e[i]&&(n[i]=e[i])}));var s=r.concat(a).concat(o),l=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return i.forEach(l,(function(i){void 0!==t[i]?n[i]=t[i]:void 0!==e[i]&&(n[i]=e[i])})),n}},function(e,t){function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){var i=n(23);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},function(e,t){e.exports=function(e){return function(t){return e.apply(null,t)}}}])},e.exports=n()})),rO=Q((function(e,t){e.exports=function(){var t,n;function i(){return t.apply(null,arguments)}function r(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function f(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,i){return Zn(e,t,n,i,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return null==e._pf&&(e._pf=g()),e._pf}function v(e){if(null==e._isValid){var t=m(e),i=n.call(t.parsedDateParts,(function(e){return null!=e})),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function y(e){var t=p(NaN);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var _=i.momentProperties=[],x=!1;function b(e,t){var n,i,r;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=m(t)),u(t._locale)||(e._locale=t._locale),_.length>0)for(n=0;n<_.length;n++)u(r=t[i=_[n]])||(e[i]=r);return e}function w(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,i.updateOffset(this),x=!1)}function T(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,t){var n=!0;return f((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,a,o,l=[];for(a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(o in r+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[a];l.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,D={};function A(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),D[e]||(S(t),D[e]=!0)}function k(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e){var t,n;for(n in e)s(e,n)&&(k(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var n,i=f({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},f(i[n],e[n]),f(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(i[n]=f({},i[n]));return i}function E(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function R(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return k(i)?i.call(t,n):i}function L(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},H={};function F(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(H[e]=r),t&&(H[t[0]]=function(){return L(r.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function j(e){var t,n,i=e.match(P);for(t=0,n=i.length;t<n;t++)H[i[t]]?i[t]=H[i[t]]:i[t]=B(i[t]);return function(t){var r,a="";for(r=0;r<n;r++)a+=k(i[r])?i[r].call(t,e):i[r];return a}}function U(e,t){return e.isValid()?(t=W(t,e.localeData()),Y[t]=Y[t]||j(t),Y[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(z.lastIndex=0;n>=0&&z.test(e);)e=e.replace(z,i),z.lastIndex=0,n-=1;return e}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function Z(){return this._invalidDate}var X="%d",K=/\d{1,2}/;function $(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,i){var r=this._relativeTime[n];return k(r)?r(e,t,n,i):r.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)}var ne={};function ie(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ae(e){var t,n,i={};for(n in e)s(e,n)&&(t=re(n))&&(i[t]=e[n]);return i}var oe={};function se(e,t){oe[e]=t}function le(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ue(e){return e%4==0&&e%100!=0||e%400==0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function de(e,t){return function(n){return null!=n?(pe(this,e,n),i.updateOffset(this,t),this):fe(this,e)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(n=he(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ge(e){return k(this[e=re(e)])?this[e]():this}function me(e,t){if("object"==typeof e){var n,i=le(e=ae(e));for(n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else if(k(this[e=re(e)]))return this[e](t);return this}var ve,ye=/\d/,_e=/\d\d/,xe=/\d{3}/,be=/\d{4}/,we=/[+-]?\d{6}/,Te=/\d\d?/,Se=/\d\d\d\d?/,Oe=/\d\d\d\d\d\d?/,Me=/\d{1,3}/,De=/\d{1,4}/,Ae=/[+-]?\d{1,6}/,ke=/\d+/,Ie=/[+-]?\d+/,Ce=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,Ne=/[+-]?\d+(\.\d{1,3})?/,Re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Le(e,t,n){ve[e]=k(t)?t:function(e,i){return e&&n?n:t}}function Pe(e,t){return s(ve,e)?ve[e](t._strict,t._locale):new RegExp(ze(e))}function ze(e){return Ye(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r})))}function Ye(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var He={};function Fe(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=he(e)}),n=0;n<e.length;n++)He[e[n]]=i}function Be(e,t){Fe(e,(function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)}))}function je(e,t,n){null!=t&&s(He,e)&&He[e](t,n._a,n,e)}var Ue,We=0,Ge=1,Ve=2,qe=3,Ze=4,Xe=5,Ke=6,$e=7,Qe=8;function Je(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Je(t,12);return e+=(t-n)/12,1===n?ue(e)?29:28:31-n%7%2}Ue=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ie("month","M"),se("month",8),Le("M",Te),Le("MM",Te,_e),Le("MMM",(function(e,t){return t.monthsShortRegex(e)})),Le("MMMM",(function(e,t){return t.monthsRegex(e)})),Fe(["M","MM"],(function(e,t){t[Ge]=he(e)-1})),Fe(["MMM","MMMM"],(function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[Ge]=r:m(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),it=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Re,at=Re;function ot(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||it).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function st(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[it.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Ue.call(this._shortMonthsParse,o))?r:null:-1!==(r=Ue.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=Ue.call(this._shortMonthsParse,o))||-1!==(r=Ue.call(this._longMonthsParse,o))?r:null:-1!==(r=Ue.call(this._longMonthsParse,o))||-1!==(r=Ue.call(this._shortMonthsParse,o))?r:null}function ut(e,t,n){var i,r,a;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function ct(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=he(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ht(e){return null!=e?(ct(this,e),i.updateOffset(this,!0),this):fe(this,"Month")}function dt(){return et(this.year(),this.month())}function ft(e){return this._monthsParseExact?(s(this,"_monthsRegex")||gt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||gt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function gt(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],a=[];for(t=0;t<12;t++)n=p([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),a.sort(e),t=0;t<12;t++)i[t]=Ye(i[t]),r[t]=Ye(r[t]);for(t=0;t<24;t++)a[t]=Ye(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function mt(e){return ue(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?L(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),ie("year","y"),se("year",1),Le("Y",Ie),Le("YY",Te,_e),Le("YYYY",De,be),Le("YYYYY",Ae,we),Le("YYYYYY",Ae,we),Fe(["YYYYY","YYYYYY"],We),Fe("YYYY",(function(e,t){t[We]=2===e.length?i.parseTwoDigitYear(e):he(e)})),Fe("YY",(function(e,t){t[We]=i.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[We]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var vt=de("FullYear",!0);function yt(){return ue(this.year())}function _t(e,t,n,i,r,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,a,o),s}function xt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function bt(e,t,n){var i=7+t-n;return-(7+xt(e,0,i).getUTCDay()-t)%7+i-1}function wt(e,t,n,i,r){var a,o,s=1+7*(t-1)+(7+n-i)%7+bt(e,i,r);return s<=0?o=mt(a=e-1)+s:s>mt(e)?(a=e+1,o=s-mt(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Tt(e,t,n){var i,r,a=bt(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?i=o+St(r=e.year()-1,t,n):o>St(e.year(),t,n)?(i=o-St(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function St(e,t,n){var i=bt(e,t,n),r=bt(e+1,t,n);return(mt(e)-i+r)/7}function Ot(e){return Tt(e,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),ie("week","w"),ie("isoWeek","W"),se("week",5),se("isoWeek",5),Le("w",Te),Le("ww",Te,_e),Le("W",Te),Le("WW",Te,_e),Be(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=he(e)}));var Mt={dow:0,doy:6};function Dt(){return this._week.dow}function At(){return this._week.doy}function kt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function It(e){var t=Tt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ct(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Et(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Nt(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),ie("day","d"),ie("weekday","e"),ie("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Le("d",Te),Le("e",Te),Le("E",Te),Le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Le("dddd",(function(e,t){return t.weekdaysRegex(e)})),Be(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,i){t[i]=he(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zt=Re,Yt=Re,Ht=Re;function Ft(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Nt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?Nt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jt(e){return!0===e?Nt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ut(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Ue.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Ue.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Ue.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=Ue.call(this._weekdaysParse,o))||-1!==(r=Ue.call(this._shortWeekdaysParse,o))||-1!==(r=Ue.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Ue.call(this._shortWeekdaysParse,o))||-1!==(r=Ue.call(this._weekdaysParse,o))||-1!==(r=Ue.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Ue.call(this._minWeekdaysParse,o))||-1!==(r=Ue.call(this._weekdaysParse,o))||-1!==(r=Ue.call(this._shortWeekdaysParse,o))?r:null}function Wt(e,t,n){var i,r,a;if(this._weekdaysParseExact)return Ut.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ct(e,this.localeData()),this.add(e-t,"d")):t}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Et(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=zt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Yt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||$t.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ht),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $t(){function e(e,t){return t.length-e.length}var t,n,i,r,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=Ye(this.weekdaysMin(n,"")),r=Ye(this.weekdaysShort(n,"")),a=Ye(this.weekdays(n,"")),o.push(i),s.push(r),l.push(a),u.push(i),u.push(r),u.push(a);o.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function en(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Qt),F("k",["kk",2],0,Jt),F("hmm",0,0,(function(){return""+Qt.apply(this)+L(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Qt.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+L(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)})),en("a",!0),en("A",!1),ie("hour","h"),se("hour",13),Le("a",tn),Le("A",tn),Le("H",Te),Le("h",Te),Le("k",Te),Le("HH",Te,_e),Le("hh",Te,_e),Le("kk",Te,_e),Le("hmm",Se),Le("hmmss",Oe),Le("Hmm",Se),Le("Hmmss",Oe),Fe(["H","HH"],qe),Fe(["k","kk"],(function(e,t,n){var i=he(e);t[qe]=24===i?0:i})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[qe]=he(e),m(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var i=e.length-2;t[qe]=he(e.substr(0,i)),t[Ze]=he(e.substr(i)),m(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[qe]=he(e.substr(0,i)),t[Ze]=he(e.substr(i,2)),t[Xe]=he(e.substr(r)),m(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var i=e.length-2;t[qe]=he(e.substr(0,i)),t[Ze]=he(e.substr(i))})),Fe("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[qe]=he(e.substr(0,i)),t[Ze]=he(e.substr(i,2)),t[Xe]=he(e.substr(r))}));var rn=/[ap]\.?m?\.?/i,an=de("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:N,longDateFormat:G,invalidDate:q,ordinal:X,dayOfMonthOrdinalParse:K,relativeTime:Q,months:tt,monthsShort:nt,week:Mt,weekdays:Rt,weekdaysMin:Pt,weekdaysShort:Lt,meridiemParse:rn},un={},cn={};function hn(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,i,r,a=0;a<e.length;){for(t=(r=dn(e[a]).split("-")).length,n=(n=dn(e[a+1]))?n.split("-"):null;t>0;){if(i=pn(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&hn(r,n)>=t-1)break;t--}a++}return sn}function pn(t){var n=null;if(void 0===un[t]&&e&&e.exports)try{n=sn._abbr,J("./locale/"+t),gn(n)}catch(e){un[t]=null}return un[t]}function gn(e,t){var n;return e&&((n=u(t)?yn(e):mn(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function mn(e,t){if(null!==t){var n,i=ln;if(t.abbr=e,null!=un[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])i=un[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;i=n._config}return un[e]=new E(C(i,t)),cn[e]&&cn[e].forEach((function(e){mn(e.name,e.config)})),gn(e),un[e]}return delete un[e],null}function vn(e,t){if(null!=t){var n,i,r=ln;null!=un[e]&&null!=un[e].parentLocale?un[e].set(C(un[e]._config,t)):(null!=(i=pn(e))&&(r=i._config),t=C(r,t),null==i&&(t.abbr=e),(n=new E(t)).parentLocale=un[e],un[e]=n),gn(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===gn()&&gn(e)):null!=un[e]&&delete un[e]);return un[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!a(e)){if(t=pn(e))return t;e=[e]}return fn(e)}function _n(){return M(un)}function xn(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[Ge]<0||n[Ge]>11?Ge:n[Ve]<1||n[Ve]>et(n[We],n[Ge])?Ve:n[qe]<0||n[qe]>24||24===n[qe]&&(0!==n[Ze]||0!==n[Xe]||0!==n[Ke])?qe:n[Ze]<0||n[Ze]>59?Ze:n[Xe]<0||n[Xe]>59?Xe:n[Ke]<0||n[Ke]>999?Ke:-1,m(e)._overflowDayOfYear&&(t<We||t>Ve)&&(t=Ve),m(e)._overflowWeeks&&-1===t&&(t=$e),m(e)._overflowWeekday&&-1===t&&(t=Qe),m(e).overflow=t),e}var bn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],On=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mn=/^\/?Date\((-?\d+)/i,Dn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,An={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kn(e){var t,n,i,r,a,o,s=e._i,l=bn.exec(s)||wn.exec(s);if(l){for(m(e).iso=!0,t=0,n=Sn.length;t<n;t++)if(Sn[t][1].exec(l[1])){r=Sn[t][0],i=!1!==Sn[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=On.length;t<n;t++)if(On[t][1].exec(l[3])){a=(l[2]||" ")+On[t][0];break}if(null==a)return void(e._isValid=!1)}if(!i&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Tn.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(a||"")+(o||""),Bn(e)}else e._isValid=!1}function In(e,t,n,i,r,a){var o=[Cn(e),nt.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return a&&o.push(parseInt(a,10)),o}function Cn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function En(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){return!e||Lt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Rn(e,t,n){if(e)return An[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}function Ln(e){var t,n=Dn.exec(En(e._i));if(n){if(t=In(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],t,e))return;e._a=t,e._tzm=Rn(n[8],n[9],n[10]),e._d=xt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Pn(e){var t=Mn.exec(e._i);null===t?(kn(e),!1===e._isValid&&(delete e._isValid,Ln(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function zn(e,t,n){return null!=e?e:null!=t?t:n}function Yn(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Hn(e){var t,n,i,r,a,o=[];if(!e._d){for(i=Yn(e),e._w&&null==e._a[Ve]&&null==e._a[Ge]&&Fn(e),null!=e._dayOfYear&&(a=zn(e._a[We],i[We]),(e._dayOfYear>mt(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=xt(a,0,e._dayOfYear),e._a[Ge]=n.getUTCMonth(),e._a[Ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[qe]&&0===e._a[Ze]&&0===e._a[Xe]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?xt:_t).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}function Fn(e){var t,n,i,r,a,o,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,n=zn(t.GG,e._a[We],Tt(Xn(),1,4).year),i=zn(t.W,1),((r=zn(t.E,1))<1||r>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,u=Tt(Xn(),a,o),n=zn(t.gg,e._a[We],u.year),i=zn(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):r=a),i<1||i>St(n,a,o)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(s=wt(n,i,r,a,o),e._a[We]=s.year,e._dayOfYear=s.dayOfYear)}function Bn(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],m(e).empty=!0;var t,n,r,a,o,s,l=""+e._i,u=l.length,c=0;for(r=W(e._f,e._locale).match(P)||[],t=0;t<r.length;t++)a=r[t],(n=(l.match(Pe(a,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&m(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),c+=n.length),H[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),je(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=u-c,l.length>0&&m(e).unusedInput.push(l),e._a[qe]<=12&&!0===m(e).bigHour&&e._a[qe]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[qe]=jn(e._locale,e._a[qe],e._meridiem),null!==(s=m(e).era)&&(e._a[We]=e._locale.erasConvertYear(s,e._a[We])),Hn(e),xn(e)}else Ln(e);else kn(e)}function jn(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function Un(e){var t,n,i,r,a,o,s=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)a=0,o=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Bn(t),v(t)&&(o=!0),a+=m(t).charsLeftOver,a+=10*m(t).unusedTokens.length,m(t).score=a,s?a<i&&(i=a,n=t):(null==i||a<i||o)&&(i=a,n=t,o&&(s=!0));f(e,n||t)}function Wn(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Hn(e)}}function Gn(e){var t=new w(xn(Vn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),T(t)?new w(xn(t)):(h(t)?e._d=t:a(n)?Un(e):n?Bn(e):qn(e),v(e)||(e._d=null),e))}function qn(e){var t=e._i;u(t)?e._d=new Date(i.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Pn(e):a(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Hn(e)):o(t)?Wn(e):c(t)?e._d=new Date(t):i.createFromInputFallback(e)}function Zn(e,t,n,i,r){var s={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=e,s._f=t,s._strict=i,Gn(s)}function Xn(e,t,n,i){return Zn(e,t,n,i,!1)}i.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Kn=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),$n=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Qn(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Xn();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function Jn(){return Qn("isBefore",[].slice.call(arguments,0))}function ei(){return Qn("isAfter",[].slice.call(arguments,0))}var ti=function(){return Date.now?Date.now():+new Date},ni=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ii(e){var t,n,i=!1;for(t in e)if(s(e,t)&&(-1===Ue.call(ni,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<ni.length;++n)if(e[ni[n]]){if(i)return!1;parseFloat(e[ni[n]])!==he(e[ni[n]])&&(i=!0)}return!0}function ri(){return this._isValid}function ai(){return Ai(NaN)}function oi(e){var t=ae(e),n=t.year||0,i=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=ii(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+r+3*i+12*n,this._data={},this._locale=yn(),this._bubble()}function si(e){return e instanceof oi}function li(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ui(e,t,n){var i,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&he(e[i])!==he(t[i]))&&o++;return o+a}function ci(e,t){F(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+L(~~(e/60),2)+t+L(~~e%60,2)}))}ci("Z",":"),ci("ZZ",""),Le("Z",Ee),Le("ZZ",Ee),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=di(Ee,e)}));var hi=/([\+\-]|\d\d)/gi;function di(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(hi)||["-",0,0])[1]+he(n[2]))?0:"+"===n[0]?i:-i}function fi(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(T(e)||h(e)?e.valueOf():Xn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Xn(e).local()}function pi(e){return-Math.round(e._d.getTimezoneOffset())}function gi(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=di(Ee,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=pi(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Ni(this,Ai(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:pi(this)}function mi(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vi(e){return this.utcOffset(0,e)}function yi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pi(this),"m")),this}function _i(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=di(Ce,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function xi(e){return!!this.isValid()&&(e=e?Xn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function bi(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wi(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Vn(t))._a?(e=t._isUTC?p(t._a):Xn(t._a),this._isDSTShifted=this.isValid()&&ui(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ti(){return!!this.isValid()&&!this._isUTC}function Si(){return!!this.isValid()&&this._isUTC}function Oi(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Mi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Di=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ai(e,t){var n,i,r,a=e,o=null;return si(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=Mi.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:he(o[Ve])*n,h:he(o[qe])*n,m:he(o[Ze])*n,s:he(o[Xe])*n,ms:he(li(1e3*o[Ke]))*n}):(o=Di.exec(e))?(n="-"===o[1]?-1:1,a={y:ki(o[2],n),M:ki(o[3],n),w:ki(o[4],n),d:ki(o[5],n),h:ki(o[6],n),m:ki(o[7],n),s:ki(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=Ci(Xn(a.from),Xn(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),i=new oi(a),si(e)&&s(e,"_locale")&&(i._locale=e._locale),si(e)&&s(e,"_isValid")&&(i._isValid=e._isValid),i}function ki(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ii(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ci(e,t){var n;return e.isValid()&&t.isValid()?(t=fi(t,e),e.isBefore(t)?n=Ii(e,t):((n=Ii(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ei(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(A(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Ni(this,Ai(n,i),e),this}}function Ni(e,t,n,r){var a=t._milliseconds,o=li(t._days),s=li(t._months);e.isValid()&&(r=null==r||r,s&&ct(e,fe(e,"Month")+s*n),o&&pe(e,"Date",fe(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&i.updateOffset(e,o||s))}Ai.fn=oi.prototype,Ai.invalid=ai;var Ri=Ei(1,"add"),Li=Ei(-1,"subtract");function Pi(e){return"string"==typeof e||e instanceof String}function zi(e){return T(e)||h(e)||Pi(e)||c(e)||Hi(e)||Yi(e)||null==e}function Yi(e){var t,n,i=o(e)&&!l(e),r=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<a.length;t+=1)n=a[t],r=r||s(e,n);return i&&r}function Hi(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Pi(e)})).length),t&&n}function Fi(e){var t,n,i=o(e)&&!l(e),r=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],r=r||s(e,n);return i&&r}function Bi(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function ji(e,t){1===arguments.length&&(arguments[0]?zi(arguments[0])?(e=arguments[0],t=void 0):Fi(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Xn(),r=fi(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=t&&(k(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Xn(n)))}function Ui(){return new w(this)}function Wi(e,t){var n=T(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Gi(e,t){var n=T(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Vi(e,t,n,i){var r=T(e)?e:Xn(e),a=T(t)?t:Xn(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n))}function qi(e,t){var n,i=T(e)?e:Xn(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Zi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xi(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ki(e,t,n){var i,r,a;if(!this.isValid())return NaN;if(!(i=fi(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=re(t)){case"year":a=$i(this,i)/12;break;case"month":a=$i(this,i);break;case"quarter":a=$i(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-r)/864e5;break;case"week":a=(this-i-r)/6048e5;break;default:a=this-i}return n?a:ce(a)}function $i(e,t){if(e.date()<t.date())return-$i(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Qi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ji(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function er(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i,r="moment",a="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=a+'[")]',this.format(e+t+n+i)}function tr(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)}function nr(e,t){return this.isValid()&&(T(e)&&e.isValid()||Xn(e).isValid())?Ai({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ir(e){return this.from(Xn(),e)}function rr(e,t){return this.isValid()&&(T(e)&&e.isValid()||Xn(e).isValid())?Ai({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ar(e){return this.to(Xn(),e)}function or(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var sr=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function lr(){return this._locale}var ur=1e3,cr=60*ur,hr=60*cr,dr=3506328*hr;function fr(e,t){return(e%t+t)%t}function pr(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-dr:new Date(e,t,n).valueOf()}function gr(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-dr:Date.UTC(e,t,n)}function mr(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gr:pr,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fr(t+(this._isUTC?0:this.utcOffset()*cr),hr);break;case"minute":t=this._d.valueOf(),t-=fr(t,cr);break;case"second":t=this._d.valueOf(),t-=fr(t,ur)}return this._d.setTime(t),i.updateOffset(this,!0),this}function vr(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gr:pr,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hr-fr(t+(this._isUTC?0:this.utcOffset()*cr),hr)-1;break;case"minute":t=this._d.valueOf(),t+=cr-fr(t,cr)-1;break;case"second":t=this._d.valueOf(),t+=ur-fr(t,ur)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function yr(){return this._d.valueOf()-6e4*(this._offset||0)}function _r(){return Math.floor(this.valueOf()/1e3)}function xr(){return new Date(this.valueOf())}function br(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Tr(){return this.isValid()?this.toISOString():null}function Sr(){return v(this)}function Or(){return f({},m(this))}function Mr(){return m(this).overflow}function Dr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ar(e,t){var n,r,a,o=this._eras||yn("en")._eras;for(n=0,r=o.length;n<r;++n)switch("string"==typeof o[n].since&&(a=i(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=i(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o}function kr(e,t,n){var i,r,a,o,s,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(a=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[i];break;case"NNNN":if(a===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if([a,o,s].indexOf(e)>=0)return l[i]}function Ir(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function Cr(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""}function Er(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""}function Nr(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""}function Rr(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-i(a[e].since).year())*n+a[e].offset;return this.year()}function Lr(e){return s(this,"_erasNameRegex")||jr.call(this),e?this._erasNameRegex:this._erasRegex}function Pr(e){return s(this,"_erasAbbrRegex")||jr.call(this),e?this._erasAbbrRegex:this._erasRegex}function zr(e){return s(this,"_erasNarrowRegex")||jr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Yr(e,t){return t.erasAbbrRegex(e)}function Hr(e,t){return t.erasNameRegex(e)}function Fr(e,t){return t.erasNarrowRegex(e)}function Br(e,t){return t._eraYearOrdinalRegex||ke}function jr(){var e,t,n=[],i=[],r=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)i.push(Ye(o[e].name)),n.push(Ye(o[e].abbr)),r.push(Ye(o[e].narrow)),a.push(Ye(o[e].name)),a.push(Ye(o[e].abbr)),a.push(Ye(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Ur(e,t){F(0,[e,e.length],0,t)}function Wr(e){return Kr.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Gr(e){return Kr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vr(){return St(this.year(),1,4)}function qr(){return St(this.isoWeekYear(),1,4)}function Zr(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Xr(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Kr(e,t,n,i,r){var a;return null==e?Tt(this,i,r).year:(t>(a=St(e,i,r))&&(t=a),$r.call(this,e,t,n,i,r))}function $r(e,t,n,i,r){var a=wt(e,t,n,i,r),o=xt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Le("N",Yr),Le("NN",Yr),Le("NNN",Yr),Le("NNNN",Hr),Le("NNNNN",Fr),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?m(n).era=r:m(n).invalidEra=e})),Le("y",ke),Le("yy",ke),Le("yyy",ke),Le("yyyy",ke),Le("yo",Br),Fe(["y","yy","yyy","yyyy"],We),Fe(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[We]=n._locale.eraYearOrdinalParse(e,r):t[We]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ur("gggg","weekYear"),Ur("ggggg","weekYear"),Ur("GGGG","isoWeekYear"),Ur("GGGGG","isoWeekYear"),ie("weekYear","gg"),ie("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),Le("G",Ie),Le("g",Ie),Le("GG",Te,_e),Le("gg",Te,_e),Le("GGGG",De,be),Le("gggg",De,be),Le("GGGGG",Ae,we),Le("ggggg",Ae,we),Be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=he(e)})),Be(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),ie("quarter","Q"),se("quarter",7),Le("Q",ye),Fe("Q",(function(e,t){t[Ge]=3*(he(e)-1)})),F("D",["DD",2],"Do","date"),ie("date","D"),se("date",9),Le("D",Te),Le("DD",Te,_e),Le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],Ve),Fe("Do",(function(e,t){t[Ve]=he(e.match(Te)[0])}));var Jr=de("Date",!0);function ea(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),ie("dayOfYear","DDD"),se("dayOfYear",4),Le("DDD",Me),Le("DDDD",xe),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),F("m",["mm",2],0,"minute"),ie("minute","m"),se("minute",14),Le("m",Te),Le("mm",Te,_e),Fe(["m","mm"],Ze);var ta=de("Minutes",!1);F("s",["ss",2],0,"second"),ie("second","s"),se("second",15),Le("s",Te),Le("ss",Te,_e),Fe(["s","ss"],Xe);var na,ia,ra=de("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ie("millisecond","ms"),se("millisecond",16),Le("S",Me,ye),Le("SS",Me,_e),Le("SSS",Me,xe),na="SSSS";na.length<=9;na+="S")Le(na,ke);function aa(e,t){t[Ke]=he(1e3*("0."+e))}for(na="S";na.length<=9;na+="S")Fe(na,aa);function oa(){return this._isUTC?"UTC":""}function sa(){return this._isUTC?"Coordinated Universal Time":""}ia=de("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var la=w.prototype;function ua(e){return Xn(1e3*e)}function ca(){return Xn.apply(null,arguments).parseZone()}function ha(e){return e}la.add=Ri,la.calendar=ji,la.clone=Ui,la.diff=Ki,la.endOf=vr,la.format=tr,la.from=nr,la.fromNow=ir,la.to=rr,la.toNow=ar,la.get=ge,la.invalidAt=Mr,la.isAfter=Wi,la.isBefore=Gi,la.isBetween=Vi,la.isSame=qi,la.isSameOrAfter=Zi,la.isSameOrBefore=Xi,la.isValid=Sr,la.lang=sr,la.locale=or,la.localeData=lr,la.max=$n,la.min=Kn,la.parsingFlags=Or,la.set=me,la.startOf=mr,la.subtract=Li,la.toArray=br,la.toObject=wr,la.toDate=xr,la.toISOString=Ji,la.inspect=er,"undefined"!=typeof Symbol&&null!=Symbol.for&&(la[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),la.toJSON=Tr,la.toString=Qi,la.unix=_r,la.valueOf=yr,la.creationData=Dr,la.eraName=Cr,la.eraNarrow=Er,la.eraAbbr=Nr,la.eraYear=Rr,la.year=vt,la.isLeapYear=yt,la.weekYear=Wr,la.isoWeekYear=Gr,la.quarter=la.quarters=Qr,la.month=ht,la.daysInMonth=dt,la.week=la.weeks=kt,la.isoWeek=la.isoWeeks=It,la.weeksInYear=Zr,la.weeksInWeekYear=Xr,la.isoWeeksInYear=Vr,la.isoWeeksInISOWeekYear=qr,la.date=Jr,la.day=la.days=Gt,la.weekday=Vt,la.isoWeekday=qt,la.dayOfYear=ea,la.hour=la.hours=an,la.minute=la.minutes=ta,la.second=la.seconds=ra,la.millisecond=la.milliseconds=ia,la.utcOffset=gi,la.utc=vi,la.local=yi,la.parseZone=_i,la.hasAlignedHourOffset=xi,la.isDST=bi,la.isLocal=Ti,la.isUtcOffset=Si,la.isUtc=Oi,la.isUTC=Oi,la.zoneAbbr=oa,la.zoneName=sa,la.dates=O("dates accessor is deprecated. Use date instead.",Jr),la.months=O("months accessor is deprecated. Use month instead",ht),la.years=O("years accessor is deprecated. Use year instead",vt),la.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mi),la.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wi);var da=E.prototype;function fa(e,t,n,i){var r=yn(),a=p().set(i,t);return r[n](a,e)}function pa(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return fa(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=fa(e,i,n,"month");return r}function ga(e,t,n,i){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var r,a=yn(),o=e?a._week.dow:0,s=[];if(null!=n)return fa(t,(n+o)%7,i,"day");for(r=0;r<7;r++)s[r]=fa(t,(r+o)%7,i,"day");return s}function ma(e,t){return pa(e,t,"months")}function va(e,t){return pa(e,t,"monthsShort")}function ya(e,t,n){return ga(e,t,n,"weekdays")}function _a(e,t,n){return ga(e,t,n,"weekdaysShort")}function xa(e,t,n){return ga(e,t,n,"weekdaysMin")}da.calendar=R,da.longDateFormat=V,da.invalidDate=Z,da.ordinal=$,da.preparse=ha,da.postformat=ha,da.relativeTime=ee,da.pastFuture=te,da.set=I,da.eras=Ar,da.erasParse=kr,da.erasConvertYear=Ir,da.erasAbbrRegex=Pr,da.erasNameRegex=Lr,da.erasNarrowRegex=zr,da.months=ot,da.monthsShort=st,da.monthsParse=ut,da.monthsRegex=pt,da.monthsShortRegex=ft,da.week=Ot,da.firstDayOfYear=At,da.firstDayOfWeek=Dt,da.weekdays=Ft,da.weekdaysMin=jt,da.weekdaysShort=Bt,da.weekdaysParse=Wt,da.weekdaysRegex=Zt,da.weekdaysShortRegex=Xt,da.weekdaysMinRegex=Kt,da.isPM=nn,da.meridiem=on,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=O("moment.lang is deprecated. Use moment.locale instead.",gn),i.langData=O("moment.langData is deprecated. Use moment.localeData instead.",yn);var ba=Math.abs;function wa(){var e=this._data;return this._milliseconds=ba(this._milliseconds),this._days=ba(this._days),this._months=ba(this._months),e.milliseconds=ba(e.milliseconds),e.seconds=ba(e.seconds),e.minutes=ba(e.minutes),e.hours=ba(e.hours),e.months=ba(e.months),e.years=ba(e.years),this}function Ta(e,t,n,i){var r=Ai(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Sa(e,t){return Ta(this,e,t,1)}function Oa(e,t){return Ta(this,e,t,-1)}function Ma(e){return e<0?Math.floor(e):Math.ceil(e)}function Da(){var e,t,n,i,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ma(ka(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=ce(a/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,n=ce(t/60),l.hours=n%24,o+=ce(n/24),s+=r=ce(Aa(o)),o-=Ma(ka(r)),i=ce(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function Aa(e){return 4800*e/146097}function ka(e){return 146097*e/4800}function Ia(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Aa(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(ka(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function Ca(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*he(this._months/12):NaN}function Ea(e){return function(){return this.as(e)}}var Na=Ea("ms"),Ra=Ea("s"),La=Ea("m"),Pa=Ea("h"),za=Ea("d"),Ya=Ea("w"),Ha=Ea("M"),Fa=Ea("Q"),Ba=Ea("y");function ja(){return Ai(this)}function Ua(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Wa(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ga=Wa("milliseconds"),Va=Wa("seconds"),qa=Wa("minutes"),Za=Wa("hours"),Xa=Wa("days"),Ka=Wa("months"),$a=Wa("years");function Qa(){return ce(this.days()/7)}var Ja=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function to(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function no(e,t,n,i){var r=Ai(e).abs(),a=Ja(r.as("s")),o=Ja(r.as("m")),s=Ja(r.as("h")),l=Ja(r.as("d")),u=Ja(r.as("M")),c=Ja(r.as("w")),h=Ja(r.as("y")),d=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||u<=1&&["M"]||u<n.M&&["MM",u]||h<=1&&["y"]||["yy",h])[2]=t,d[3]=+e>0,d[4]=i,to.apply(null,d)}function io(e){return void 0===e?Ja:"function"==typeof e&&(Ja=e,!0)}function ro(e,t){return void 0!==eo[e]&&(void 0===t?eo[e]:(eo[e]=t,"s"===e&&(eo.ss=t-1),!0))}function ao(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,a=eo;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(a=Object.assign({},eo,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),i=no(this,!r,a,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var oo=Math.abs;function so(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,a,o,s,l=oo(this._milliseconds)/1e3,u=oo(this._days),c=oo(this._months),h=this.asSeconds();return h?(e=ce(l/60),t=ce(e/60),l%=60,e%=60,n=ce(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=h<0?"-":"",a=so(this._months)!==so(h)?"-":"",o=so(this._days)!==so(h)?"-":"",s=so(this._milliseconds)!==so(h)?"-":"",r+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var uo=oi.prototype;return uo.isValid=ri,uo.abs=wa,uo.add=Sa,uo.subtract=Oa,uo.as=Ia,uo.asMilliseconds=Na,uo.asSeconds=Ra,uo.asMinutes=La,uo.asHours=Pa,uo.asDays=za,uo.asWeeks=Ya,uo.asMonths=Ha,uo.asQuarters=Fa,uo.asYears=Ba,uo.valueOf=Ca,uo._bubble=Da,uo.clone=ja,uo.get=Ua,uo.milliseconds=Ga,uo.seconds=Va,uo.minutes=qa,uo.hours=Za,uo.days=Xa,uo.weeks=Qa,uo.months=Ka,uo.years=$a,uo.humanize=ao,uo.toISOString=lo,uo.toString=lo,uo.toJSON=lo,uo.locale=or,uo.localeData=lr,uo.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),uo.lang=sr,F("X",0,0,"unix"),F("x",0,0,"valueOf"),Le("x",Ie),Le("X",Ne),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(he(e))})),
//! moment.js
i.version="2.29.1",r(Xn),i.fn=la,i.min=Jn,i.max=ei,i.now=ti,i.utc=p,i.unix=ua,i.months=ma,i.isDate=h,i.locale=gn,i.invalid=y,i.duration=Ai,i.isMoment=T,i.weekdays=ya,i.parseZone=ca,i.localeData=yn,i.isDuration=si,i.monthsShort=va,i.weekdaysMin=xa,i.defineLocale=mn,i.updateLocale=vn,i.locales=_n,i.weekdaysShort=_a,i.normalizeUnits=re,i.relativeTimeRounding=io,i.relativeTimeThreshold=ro,i.calendarFormat=Bi,i.prototype=la,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}));!function(e){e.DIMENSION="dimension",e.MAP="map",e.INDICATOR="indicator",e.DETAIL="detail"}(QS||(QS={})),function(e){e.TABLE="table",e.PIE="pie",e.HISTOGRAM_LINE="histogram-line",e.HISTOGRAM_BAR="histogram-bar",e.BAR="bar",e.HISTOGRAM_MIX="histogram-mix",e.GAUGE="gauge",e.INDICATOR_CARD="indicator_card",e.MAP="map",e.DETAIL="detail"}(JS||(JS={})),Object.freeze({[JS.TABLE]:Object.freeze({key:JS.TABLE,name:"表格",iconfont:"icon-table02",iconColor:"#2b9f7f",dataConfigMode:QS.DIMENSION}),[JS.PIE]:Object.freeze({key:JS.PIE,name:"饼图",iconfont:"icon-pie_chart",iconColor:"#11c5d4",dataConfigMode:QS.DIMENSION}),[JS.HISTOGRAM_LINE]:Object.freeze({key:JS.HISTOGRAM_LINE,name:"线图",iconfont:"icon-line_chart",iconColor:"#0091ff",dataConfigMode:QS.DIMENSION}),[JS.HISTOGRAM_BAR]:Object.freeze({key:JS.HISTOGRAM_BAR,name:"柱状图",iconfont:"icon-bar_chart",iconColor:"#ff822f",dataConfigMode:QS.DIMENSION}),[JS.INDICATOR_CARD]:Object.freeze({key:JS.INDICATOR_CARD,name:"指标卡",iconfont:"icon-indicator-card",iconColor:"#efce30",dataConfigMode:QS.INDICATOR}),[JS.BAR]:Object.freeze({key:JS.BAR,name:"条形图",iconfont:"icon-list",iconColor:"#ff5c31",dataConfigMode:QS.DIMENSION}),[JS.HISTOGRAM_MIX]:Object.freeze({key:JS.HISTOGRAM_MIX,name:"柱线混合图",iconfont:"icon-chart",iconColor:"#2b9f7f",dataConfigMode:QS.DIMENSION}),[JS.GAUGE]:Object.freeze({key:JS.GAUGE,name:"仪表盘",iconfont:"icon-dash-board",iconColor:"#5071f0",dataConfigMode:QS.DIMENSION}),[JS.MAP]:Object.freeze({key:JS.MAP,name:"地图",iconfont:"icon-thermal-map",iconColor:"#2b9f7f",dataConfigMode:QS.MAP}),[JS.DETAIL]:Object.freeze({key:JS.DETAIL,name:"明细表",iconfont:"icon-detail-list",iconColor:"#2b9f7f",dataConfigMode:QS.DETAIL})}),function(e){e.CONTAIN="contain",e.NOT_CONTAIN="not-contain",e.STARTWITH="startwidth",e.NOT_STARTWITH="not_startwith",e.ENDWITH="endwith",e.NOT_ENDWITH="not_endwith",e.EQUAL="equal",e.NOT_EQUAL="not_equal",e.NULL_STR="null_str",e.NOT_NULL_STR="not_null_str",e.NULL="null",e.NOT_NULL="not_null"}(eO||(eO={})),Object.freeze({[eO.CONTAIN]:Object.freeze({key:eO.CONTAIN,name:"包含"}),[eO.NOT_CONTAIN]:Object.freeze({key:eO.NOT_CONTAIN,name:"不包含"}),[eO.STARTWITH]:Object.freeze({key:eO.STARTWITH,name:"开头是"}),[eO.NOT_STARTWITH]:Object.freeze({key:eO.NOT_STARTWITH,name:"开头不是"}),[eO.ENDWITH]:Object.freeze({key:eO.ENDWITH,name:"结尾是"}),[eO.NOT_ENDWITH]:Object.freeze({key:eO.NOT_ENDWITH,name:"结尾不是"}),[eO.EQUAL]:Object.freeze({key:eO.EQUAL,name:"等于"}),[eO.NOT_EQUAL]:Object.freeze({key:eO.NOT_EQUAL,name:"不等于"}),[eO.NULL_STR]:Object.freeze({key:eO.NULL_STR,name:"内容为空"}),[eO.NOT_NULL_STR]:Object.freeze({key:eO.NOT_NULL_STR,name:"内容非空"}),[eO.NULL]:Object.freeze({key:eO.NULL,name:"为NULL"}),[eO.NOT_NULL]:Object.freeze({key:eO.NOT_NULL,name:"不为NULL"})}),function(e){e.EQUAL="equal",e.NOT_EQUAL="not_equal",e.GREAT_THAN="great_than",e.GREAT_EQUAL="great_equal",e.LESS_THAN="less_than",e.LESS_EQUAL="less_equal",e.NULL="null",e.NOT_NULL="not_null"}(tO||(tO={})),Object.freeze({[tO.EQUAL]:Object.freeze({key:tO.EQUAL,name:"等于"}),[tO.NOT_EQUAL]:Object.freeze({key:tO.NOT_EQUAL,name:"不等于"}),[tO.GREAT_THAN]:Object.freeze({key:tO.GREAT_THAN,name:"大于"}),[tO.GREAT_EQUAL]:Object.freeze({key:tO.GREAT_EQUAL,name:"大于等于"}),[tO.LESS_THAN]:Object.freeze({key:tO.LESS_THAN,name:"小于"}),[tO.LESS_EQUAL]:Object.freeze({key:tO.LESS_EQUAL,name:"小于等于"}),[tO.NULL]:Object.freeze({key:tO.NULL,name:"为NULL"}),[tO.NOT_NULL]:Object.freeze({key:tO.NOT_NULL,name:"不为NULL"})}),function(e){e.YEAR="year",e.MONTH="month",e.DAY="day",e.TIME="time"}(nO||(nO={}));const aO=Object.freeze({[nO.YEAR]:Object.freeze({key:nO.YEAR,name:"年",sqltype:"time-only_year",sqldformat:"only_year"}),[nO.MONTH]:Object.freeze({key:nO.MONTH,name:"月",sqltype:"time-only_month",sqldformat:"only_month"}),[nO.DAY]:Object.freeze({key:nO.DAY,name:"日",sqltype:"time-only_day",sqldformat:"only_day"}),[nO.TIME]:Object.freeze({key:nO.TIME,name:"时间",sqltype:"time-time",sqldformat:"only_time"})});var oO,sO;!function(e){e.STRING="string",e.TIME="time",e.INT="int",e.FLOAT="float",e.DOUBLE="double"}(oO||(oO={})),Object.freeze({[oO.STRING]:Object.freeze({key:oO.STRING,name:"文本",iconfont:"icon-word"}),[oO.TIME]:Object.freeze({key:oO.TIME,name:"时间",iconfont:"icon-calendar"}),[oO.INT]:Object.freeze({key:oO.INT,name:"数值",iconfont:"icon-number"}),[oO.FLOAT]:Object.freeze({key:oO.FLOAT,name:"小数",iconfont:"icon-decimal"}),[oO.DOUBLE]:Object.freeze({key:oO.DOUBLE,name:"小数",iconfont:"icon-decimal"})}),function(e){e.NONE="none",e.FIRST_TAG="first_tag"}(sO||(sO={}));const lO=Object.freeze({[sO.NONE]:Object.freeze({key:sO.NONE,name:"无",getDefault:()=>({type:sO.NONE})}),[sO.FIRST_TAG]:Object.freeze({key:sO.FIRST_TAG,name:"选中第一项",getDefault:()=>({type:sO.FIRST_TAG})})});var uO;!function(e){e.ALL="all",e.BEFORE="before",e.CUSTOM="custom"}(uO||(uO={}));const cO=Object.freeze({[uO.ALL]:Object.freeze({key:uO.ALL,name:"全选",getDefault:()=>({type:uO.ALL})}),[uO.BEFORE]:Object.freeze({key:uO.BEFORE,name:"选中前N项",getDefault:()=>({type:uO.BEFORE,index:1})}),[uO.CUSTOM]:Object.freeze({key:uO.CUSTOM,name:"自定义",getDefault:()=>({type:uO.CUSTOM,val:[]})})});var hO;!function(e){e.INPUT="input",e.SELECT="select",e.CONDITION="condition",e.TAG="tag",e.TREE="tree"}(hO||(hO={}));const dO=Object.freeze({[hO.INPUT]:Object.freeze({key:hO.INPUT,name:"输入框",getDefault:()=>({default:null})}),[hO.SELECT]:Object.freeze({key:hO.SELECT,name:"下拉框",searchMode:[eO.CONTAIN,eO.STARTWITH,eO.EQUAL],getDefault:({isMultiple:e=!1}={})=>({isMultiple:e,searchMode:eO.CONTAIN,default:e?[]:null})}),[hO.CONDITION]:Object.freeze({key:hO.CONDITION,name:"条件",getDefault:({searchMode:e=eO.CONTAIN,value:t=null}={})=>({default:{searchMode:e,val:t}})}),[hO.TAG]:Object.freeze({key:hO.TAG,name:"标签",showTagCount:[10,30,50],getDefault:({isMultiple:e=!1}={})=>{const t={isMultiple:e,showTagCount:30};return e?Object.assign({},t,{selectedTagCount:null,default:cO[uO.ALL].getDefault()}):Object.assign({},t,{default:lO[sO.NONE].getDefault()})}}),[hO.TREE]:Object.freeze({key:hO.TREE,name:"树",getDefault:()=>({isMultiple:!1,treeCheckStrictly:!1,defaultExpandLevel:1,default:[]})})});var fO,pO;!function(e){e.CONDITION="condition",e.RANGE="num_range"}(fO||(fO={})),Object.freeze({[fO.CONDITION]:Object.freeze({key:fO.CONDITION,name:"条件",getDefault:({searchMode:e=tO.EQUAL,value:t=null}={})=>({default:{searchMode:e,val:t}})}),[fO.RANGE]:Object.freeze({key:fO.RANGE,name:"范围",getDefault:()=>({default:[null,null]})})}),function(e){e.NONE="none",e.CURRENT="current",e.CUSTOM="custom"}(pO||(pO={}));const gO=Object.freeze({[pO.NONE]:Object.freeze({key:pO.NONE,name:"无",getDefault:()=>({type:pO.NONE})}),[pO.CURRENT]:Object.freeze({key:pO.CURRENT,name:"当前时间",getDefault:()=>({type:pO.CURRENT})}),[pO.CUSTOM]:Object.freeze({key:pO.CUSTOM,name:"自定义",getDefault:()=>({type:pO.CUSTOM,val:null})})});var mO;!function(e){e.NONE="none",e.TODAY="today",e.YESTERDAY="yesterday",e.THIS_WEEK="this_week",e.LAST_WEEK="last_week",e.THIS_MONTH="this_month",e.LAST_MONTH="last_month",e.THIS_QUARTER="this_quarter",e.LAST_QUARTER="last_quarter",e.THIS_YEAR="this_year",e.LAST_YEAR="last_year",e.NEARLY_A_WEEK="nearly_a_week",e.NEARLY_A_MONTH="nearly_a_month",e.NEARLY_A_YEAR="nearly_a_year",e.CUSTOM="custom"}(mO||(mO={}));const vO=Object.freeze({[mO.NONE]:Object.freeze({key:mO.NONE,name:"无",getDefault:()=>({type:mO.NONE})}),[mO.TODAY]:Object.freeze({key:mO.TODAY,name:"当天",getDefault:()=>({type:mO.TODAY})}),[mO.YESTERDAY]:Object.freeze({key:mO.YESTERDAY,name:"昨天",getDefault:()=>({type:mO.YESTERDAY})}),[mO.THIS_WEEK]:Object.freeze({key:mO.THIS_WEEK,name:"本周",getDefault:()=>({type:mO.THIS_WEEK})}),[mO.LAST_WEEK]:Object.freeze({key:mO.LAST_WEEK,name:"上周",getDefault:()=>({type:mO.LAST_WEEK})}),[mO.THIS_MONTH]:Object.freeze({key:mO.THIS_MONTH,name:"本月",getDefault:()=>({type:mO.THIS_MONTH})}),[mO.LAST_MONTH]:Object.freeze({key:mO.LAST_MONTH,name:"上月",getDefault:()=>({type:mO.LAST_MONTH})}),[mO.THIS_QUARTER]:Object.freeze({key:mO.THIS_QUARTER,name:"本季度",getDefault:()=>({type:mO.THIS_QUARTER})}),[mO.LAST_QUARTER]:Object.freeze({key:mO.LAST_QUARTER,name:"上季度",getDefault:()=>({type:mO.LAST_QUARTER})}),[mO.THIS_YEAR]:Object.freeze({key:mO.THIS_YEAR,name:"今年",getDefault:()=>({type:mO.THIS_YEAR})}),[mO.LAST_YEAR]:Object.freeze({key:mO.LAST_YEAR,name:"去年",getDefault:()=>({type:mO.LAST_YEAR})}),[mO.NEARLY_A_WEEK]:Object.freeze({key:mO.NEARLY_A_WEEK,name:"最近一周",getDefault:()=>({type:mO.NEARLY_A_WEEK})}),[mO.NEARLY_A_MONTH]:Object.freeze({key:mO.NEARLY_A_MONTH,name:"最近一月",getDefault:()=>({type:mO.NEARLY_A_MONTH})}),[mO.NEARLY_A_YEAR]:Object.freeze({key:mO.NEARLY_A_YEAR,name:"最近一年",getDefault:()=>({type:mO.NEARLY_A_YEAR})}),[mO.CUSTOM]:Object.freeze({key:mO.CUSTOM,name:"自定义",getDefault:()=>({type:mO.CUSTOM,val:[null,null]})})});var yO,_O,xO,bO,wO,TO,SO,OO,MO,DO,AO,kO,IO,CO;function EO({dformat:e,tformat:t}){const n=[];return e&&e!==SO.DEFAULT?e!==SO.NONE&&n.push(e):n.push(SO.MIDDLE_DASH_YYYYMMDD),t&&t!==OO.DEFAULT?t!==SO.NONE&&n.push(t):n.push(OO.HMS),n.join(" ")}!function(e){e.DATE="date",e.DATE_RANGE="date_range",e.DATETIME="datetime",e.DATETIME_RANGE="datetime_range",e.TIME="time",e.TIME_RANGE="time_range",e.YEAR="year",e.MONTH="month",e.DAY="day"}(yO||(yO={})),Object.freeze({[yO.DATE]:Object.freeze({key:yO.DATE,name:"日期选择",getDefault:()=>({default:gO[pO.NONE].getDefault()})}),[yO.DATE_RANGE]:Object.freeze({key:yO.DATE_RANGE,name:"日期范围",getDefault:()=>({default:vO[mO.NONE].getDefault()})}),[yO.DATETIME]:Object.freeze({key:yO.DATETIME,name:"日期时间选择",getDefault:()=>({default:gO[pO.NONE].getDefault()})}),[yO.DATETIME_RANGE]:Object.freeze({key:yO.DATETIME_RANGE,name:"日期时间范围",getDefault:()=>({default:vO[mO.NONE].getDefault()})}),[yO.TIME]:Object.freeze({key:yO.TIME,name:"时间选择",getDefault:()=>({default:gO[pO.NONE].getDefault()})}),[yO.TIME_RANGE]:Object.freeze({key:yO.TIME_RANGE,name:"时间范围",getDefault:()=>({default:vO[mO.NONE].getDefault()})}),[yO.YEAR]:Object.freeze({key:yO.YEAR,name:"年",getDefault:()=>({default:gO[pO.NONE].getDefault()})}),[yO.MONTH]:Object.freeze({key:yO.MONTH,name:"月",getDefault:()=>({default:gO[pO.NONE].getDefault()})}),[yO.DAY]:Object.freeze({key:yO.DAY,name:"日",getDefault:()=>({default:gO[pO.NONE].getDefault()})})}),function(e){e.NONE="none",e.COMPAREWITH_YEAR="comparewith_year",e.COMPAREWITH="comparewith",e.COMPAREWITH_YEAR_NUM="comparewith_year_num",e.COMPAREWITH_NUM="comparewith_num"}(_O||(_O={})),Object.freeze({[_O.NONE]:Object.freeze({key:_O.NONE,name:"不对比",label:"不对比"}),[_O.COMPAREWITH_YEAR]:Object.freeze({key:_O.COMPAREWITH_YEAR,name:"同比增长率",label:"同比增长率"}),[_O.COMPAREWITH]:Object.freeze({key:_O.COMPAREWITH,name:"环比增长率",label:"环比增长率"}),[_O.COMPAREWITH_YEAR_NUM]:Object.freeze({key:_O.COMPAREWITH_YEAR_NUM,name:"同比增长值",label:"同比增长值"}),[_O.COMPAREWITH_NUM]:Object.freeze({key:_O.COMPAREWITH_NUM,name:"环比增长值",label:"环比增长值"})}),function(e){e.NONE="none",e.DATA="data",e.TIME="time",e.PERCENT="percent"}(xO||(xO={})),Object.freeze({[xO.NONE]:Object.freeze({key:xO.NONE,label:"默认"}),[xO.DATA]:Object.freeze({key:xO.DATA,label:"数值"}),[xO.TIME]:Object.freeze({key:xO.TIME,label:"时间"}),[xO.PERCENT]:Object.freeze({key:xO.PERCENT,label:"百分比"})}),function(e){e.NONE="none",e.CN_K="k-cn",e.CN_10K="10k-cn",e.CN_100K="100k-cn",e.CN_M="m-cn",e.CN_10M="10m-cn",e.CN_100M="100m-cn",e.EN_K="k-en",e.EN_M="m-en",e.EN_B="b-en"}(bO||(bO={})),Object.freeze({[bO.NONE]:Object.freeze({key:bO.NONE,label:"无",value:1}),[bO.CN_K]:Object.freeze({key:bO.CN_K,label:"千",value:Math.pow(10,3)}),[bO.CN_10K]:Object.freeze({key:bO.CN_10K,label:"万",value:Math.pow(10,4)}),[bO.CN_100K]:Object.freeze({key:bO.CN_100K,label:"十万",value:Math.pow(10,5)}),[bO.CN_M]:Object.freeze({key:bO.CN_M,label:"百万",value:Math.pow(10,6)}),[bO.CN_10M]:Object.freeze({key:bO.CN_10M,label:"千万",value:Math.pow(10,7)}),[bO.CN_100M]:Object.freeze({key:bO.CN_100M,label:"亿",value:Math.pow(10,8)}),[bO.EN_K]:Object.freeze({key:bO.EN_K,label:"K",value:Math.pow(10,3)}),[bO.EN_M]:Object.freeze({key:bO.EN_M,label:"M",value:Math.pow(10,6)}),[bO.EN_B]:Object.freeze({key:bO.EN_B,label:"B",value:Math.pow(10,9)})}),function(e){e.YEAR="year",e.MONTH="month",e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second",e.MILLISECOND="millisecond"}(wO||(wO={})),Object.freeze({[wO.YEAR]:Object.freeze({key:wO.YEAR,label:"年",value:31536e6}),[wO.MONTH]:Object.freeze({key:wO.MONTH,label:"月",value:2592e6}),[wO.DAY]:Object.freeze({key:wO.DAY,label:"日",value:864e5}),[wO.HOUR]:Object.freeze({key:wO.HOUR,label:"小时",value:36e5}),[wO.MINUTE]:Object.freeze({key:wO.MINUTE,label:"分钟",value:6e4}),[wO.SECOND]:Object.freeze({key:wO.SECOND,label:"秒",value:1e3}),[wO.MILLISECOND]:Object.freeze({key:wO.MILLISECOND,label:"毫秒",value:1})}),function(e){e.ZERO="0",e.ONE="1",e.TWO="2",e.THREE="3",e.FOUR="4",e.FIVE="5",e.SIX="6"}(TO||(TO={})),function(e){e.DEFAULT="default",e.NONE="none",e.CN_YYYYMMDD="%Y年%m月%d日",e.MIDDLE_DASH_YYYYMMDD="%Y-%m-%d",e.SLASH_YYYYMMDD="%y/%m/%d",e.CN_YYYYMM="%Y年%m月",e.MIDDLE_DASH_YYYYMM="%Y-%m",e.SLASH_YYYYMM="%y/%m",e.CN_YYYY="%Y年",e.YYYY="%Y",e.CN_MM="%m月",e.MM="%m",e.CN_DD="%d日",e.DD="%d"}(SO||(SO={})),Object.freeze({[SO.DEFAULT]:Object.freeze({key:SO.DEFAULT,label:"默认"}),[SO.NONE]:Object.freeze({key:SO.NONE,label:"隐藏"}),[SO.CN_YYYYMMDD]:Object.freeze({key:SO.CN_YYYYMMDD,label:"2019年03月01日(yyyy年mm月dd日)"}),[SO.MIDDLE_DASH_YYYYMMDD]:Object.freeze({key:SO.MIDDLE_DASH_YYYYMMDD,label:"2019-03-01(yyyy-mm-dd)"}),[SO.SLASH_YYYYMMDD]:Object.freeze({key:SO.SLASH_YYYYMMDD,label:"19/03/01(yy/mm/dd)"}),[SO.CN_YYYYMM]:Object.freeze({key:SO.CN_YYYYMM,label:"2019年03月(yyyy年mm月)"}),[SO.MIDDLE_DASH_YYYYMM]:Object.freeze({key:SO.MIDDLE_DASH_YYYYMM,label:"2019-03(yyyy-mm)"}),[SO.SLASH_YYYYMM]:Object.freeze({key:SO.SLASH_YYYYMM,label:"2019/03(yyyy/mm)"}),[SO.CN_YYYY]:Object.freeze({key:SO.CN_YYYY,label:"2019年(yyyy年)"}),[SO.YYYY]:Object.freeze({key:SO.YYYY,label:"2019(yyyy)"}),[SO.CN_MM]:Object.freeze({key:SO.CN_MM,label:"03月(mm月)"}),[SO.MM]:Object.freeze({key:SO.MM,label:"03(mm)"}),[SO.CN_DD]:Object.freeze({key:SO.CN_DD,label:"01日(dd日)"}),[SO.DD]:Object.freeze({key:SO.DD,label:"01(dd)"})}),function(e){e.DEFAULT="default",e.NONE="none",e.HMS="%H:%i:%s",e.HM="%H:%i",e.CN_HMS="%H时%i分%s秒",e.CN_HM="%H时%i",e.CN_H="%H时",e.RISP="%r:%i:%s %p",e.RIP="%r:%i %p"}(OO||(OO={})),Object.freeze({[OO.DEFAULT]:Object.freeze({key:OO.DEFAULT,label:"默认"}),[SO.NONE]:Object.freeze({key:SO.NONE,label:"隐藏"}),[OO.HMS]:Object.freeze({key:OO.HMS,label:"12:00:00"}),[OO.HM]:Object.freeze({key:OO.HM,label:"12:00"}),[OO.CN_HMS]:Object.freeze({key:OO.CN_HMS,label:"12时00分00秒"}),[OO.CN_HM]:Object.freeze({key:OO.CN_HM,label:"12时00"}),[OO.CN_H]:Object.freeze({key:OO.CN_H,label:"12时"}),[OO.RISP]:Object.freeze({key:OO.RISP,label:"12:00:00 AM"}),[OO.RIP]:Object.freeze({key:OO.RIP,label:"12:00 AM"})}),function(e){e.NONE="none",e.DRILL="drill",e.DETAIL="detail"}(MO||(MO={})),Object.freeze({[MO.NONE]:Object.freeze({key:MO.NONE,label:"无点击事件"}),[MO.DRILL]:Object.freeze({key:MO.DRILL,label:"下钻"}),[MO.DETAIL]:Object.freeze({key:MO.DETAIL,label:"显示详细表"})}),function(e){e.DIALOG="dialog"}(DO||(DO={})),Object.freeze({[DO.DIALOG]:Object.freeze({key:DO.DIALOG,label:"通过弹窗显示",getDefaultConfig:()=>({mode:DO.DIALOG,condition:{targetSetId:void 0,filter:[]}}),getDefaultFilerItem:()=>({sourceFieldId:null,sourceFieldScope:null,targetFieldId:null,targetFieldScope:null})})}),function(e){e.NONE="none",e.SUM="sum",e.COUNT="count",e.DISTINCT="count_distinct",e.AVG="avg",e.MAX="max",e.MIN="min"}(AO||(AO={})),Object.freeze({[AO.NONE]:Object.freeze({key:AO.NONE,name:"不计算",label:"不计算"}),[AO.SUM]:Object.freeze({key:AO.SUM,name:"求和",label:"求和"}),[AO.COUNT]:Object.freeze({key:AO.COUNT,name:"计次",label:"计次"}),[AO.DISTINCT]:Object.freeze({key:AO.DISTINCT,name:"计数",label:"计数"}),[AO.AVG]:Object.freeze({key:AO.AVG,name:"平均",label:"平均"}),[AO.MAX]:Object.freeze({key:AO.MAX,name:"最大值",label:"最大值"}),[AO.MIN]:Object.freeze({key:AO.MIN,name:"最小值",label:"最小值"})}),function(e){e.NONE="none",e.SHOW_NULL="null",e.SHOW_ZERO="zero",e.SHOW_STRIKETHROUGH="strikethrough"}(kO||(kO={})),Object.freeze({[kO.NONE]:Object.freeze({key:kO.NONE,label:"默认"}),[kO.SHOW_NULL]:Object.freeze({key:kO.SHOW_NULL,label:"显示为 null"}),[kO.SHOW_ZERO]:Object.freeze({key:kO.SHOW_ZERO,label:"显示为 0"}),[kO.SHOW_STRIKETHROUGH]:Object.freeze({key:kO.SHOW_STRIKETHROUGH,label:"显示为-"})}),function(e){e.NONE="none",e.ASC="asc",e.DESC="desc"}(IO||(IO={})),Object.freeze({[IO.NONE]:Object.freeze({key:IO.NONE,name:"默认",label:"默认"}),[IO.ASC]:Object.freeze({key:IO.ASC,name:"↑",label:"升序 ↑"}),[IO.DESC]:Object.freeze({key:IO.DESC,name:"↓",label:"降序 ↓"})}),function(e){e.NAME="rename",e.EXPR="expr",e.ORDER_BY="orderBy",e.FILTER="filter",e.EVENT="event",e.COMPARE="compare",e.DATA_FORMAT="data-format",e.DATE_FORMAT="date-format",e.TIME_FORMAT="time-format",e.NULL_VAL="nullVal",e.EARLY_WARNING="earlyWarning",e.DELETE="delete"}(CO||(CO={}));const NO=({value:e})=>0===e.length||e.findIndex((e=>e||0===e))<0,RO=({filter:e})=>!["empty","null","nn","ne"].includes(e.op)&&(NO({value:e.value})&&NO({value:e.options})),LO=({value:e,dateFormat:t})=>{switch(e.type){case pO.NONE:return null;case pO.CURRENT:return rO().format(t);case pO.CUSTOM:return e.val}},PO=({value:e,dateFormat:t})=>{switch(e.type){case mO.NONE:return[null,null];case mO.TODAY:const n=rO().startOf("d"),i=rO().endOf("d");return[n.format(t),i.format(t)];case mO.YESTERDAY:const r=rO().add(-1,"days").startOf("d"),a=rO().add(-1,"days").endOf("d");return[r.format(t),a.format(t)];case mO.THIS_WEEK:const o=rO().startOf("isoWeeks").startOf("d"),s=rO().endOf("isoWeeks").endOf("d");return[o.format(t),s.format(t)];case mO.LAST_WEEK:const l=rO().add(-7,"day").startOf("isoWeeks").startOf("d"),u=rO().add(-7,"day").endOf("isoWeeks").endOf("d");return[l.format(t),u.format(t)];case mO.THIS_MONTH:const c=rO().startOf("month").startOf("d"),h=rO().endOf("month").endOf("d");return[c.format(t),h.format(t)];case mO.LAST_MONTH:const d=rO().add(-1,"month").startOf("month").startOf("d"),f=rO().add(-1,"month").endOf("month").endOf("d");return[d.format(t),f.format(t)];case mO.THIS_QUARTER:const p=rO().startOf("quarter").startOf("d"),g=rO().endOf("quarter").endOf("d");return[p.format(t),g.format(t)];case mO.LAST_QUARTER:const m=rO().add(-1,"quarter").startOf("quarter").startOf("d"),v=rO().add(-1,"quarter").endOf("quarter").endOf("d");return[m.format(t),v.format(t)];case mO.THIS_YEAR:const y=rO().startOf("year").startOf("d"),_=rO().endOf("year").endOf("d");return[y.format(t),_.format(t)];case mO.LAST_YEAR:const x=rO().add(-1,"year").startOf("year").startOf("d"),b=rO().add(-1,"year").endOf("year").endOf("d");return[x.format(t),b.format(t)];case mO.NEARLY_A_WEEK:const w=rO().add(1,"day").add(-1,"week"),T=rO();return[w.format(t),T.format(t)];case mO.NEARLY_A_MONTH:const S=rO().add(1,"day").add(-1,"month"),O=rO();return[S.format(t),O.format(t)];case mO.NEARLY_A_YEAR:const M=rO().add(1,"day").add(-1,"year"),D=rO();return[M.format(t),D.format(t)];case mO.CUSTOM:return e.val||[null,null]}},zO={},YO=({shareId:e,field:t,getTableColumnValueFunc:n})=>u(void 0,void 0,void 0,(function*(){if("string"==typeof t.filter)return{op:"=",value:[t.filter],options:[]};let i=null;const r=Reflect.has(t.filter.params,"value");switch(t.type){case oO.STRING:switch(t.filter.type){case hO.INPUT:i={op:"**",value:r?[t.filter.params.value]:[t.filter.params.default],options:[]};break;case hO.SELECT:let a=r?t.filter.params.value:t.filter.params.default;t.filter.params.isMultiple||(a=[a]),i={op:"=",value:[],options:a};break;case hO.CONDITION:let o,s,l;switch(r?(o=t.filter.params.value.val,l=t.filter.params.value.searchMode):(o=t.filter.params.default.val,l=t.filter.params.default.searchMode),l){case eO.CONTAIN:s="**";break;case eO.NOT_CONTAIN:s="!**";break;case eO.STARTWITH:s="*=";break;case eO.NOT_STARTWITH:s="!*=";break;case eO.ENDWITH:s="=*";break;case eO.NOT_ENDWITH:s="!=*";break;case eO.EQUAL:s="=";break;case eO.NOT_EQUAL:s="<>";break;case eO.NULL_STR:s="empty";break;case eO.NOT_NULL_STR:s="ne";break;case eO.NULL:s="null";break;case eO.NOT_NULL:s="nn"}i={op:s,value:[o],options:[]};break;case hO.TAG:let u,c="=";if(r)t.filter.params.isMultiple?(c=t.filter.params.value.exclude?"!=":"=",u=t.filter.params.value.val):u=[t.filter.params.value];else if(t.filter.params.isMultiple)switch(t.filter.params.default.type){case uO.ALL:u=[];break;case uO.BEFORE:let i=[];i=zO[t.key]?zO[t.key]:yield n({share_id:e,field:t.key,pp:Math.max(...dO[hO.TAG].showTagCount),pg:1}),u=i.slice(0,t.filter.params.default.index);break;case uO.CUSTOM:u=t.filter.params.default.val}else switch(t.filter.params.default.type){case sO.NONE:u=[];break;case sO.FIRST_TAG:let e=[];e=zO[t.key]?zO[t.key]:yield n({field:t.key,pp:Math.max(...dO[hO.TAG].showTagCount),pg:1}),u=e.length>0?[e[0]]:[]}i={op:c,value:[],options:u};break;case hO.TREE:if(t.filter.params.isMultiple){a=(r?t.filter.params.value:t.filter.params.default).map((e=>e.split(">",1)[0]))}else{a=[(t.filter.params.value||t.filter.params.default).split(">",1)[0]]}i={op:"=",value:[],options:a},t.filter.params.treeCheckStrictly&&(i.level="mutil")}break;case oO.TIME:switch(t.filter.type){case yO.DATE:let e;e=r?t.filter.params.value:LO({value:t.filter.params.default,dateFormat:"YYYY-MM-DD"}),i={op:"between",value:e?[e+" 00:00:00",e+" 23:59:59"]:[],options:[]};break;case yO.DATE_RANGE:let n;n=r?t.filter.params.value:PO({value:t.filter.params.default,dateFormat:"YYYY-MM-DD"}),i={op:"between",value:[n[0]&&n[0]+" 00:00:00",n[1]&&n[1]+" 23:59:59"],options:[]};break;case yO.DATETIME:let a;a=r?t.filter.params.value:LO({value:t.filter.params.default,dateFormat:"YYYY-MM-DD HH:mm:ss"}),i={op:"=",value:[a],options:[]};break;case yO.DATETIME_RANGE:let o;o=r?t.filter.params.value:PO({value:t.filter.params.default,dateFormat:"YYYY-MM-DD HH:mm:ss"}),i={op:"between",value:o,options:[]};break;case yO.TIME:let s;s=r?t.filter.params.value:LO({value:t.filter.params.default,dateFormat:"HH:mm:ss"}),i={op:"=",dformat:"only_time",value:[s],options:[]};break;case yO.TIME_RANGE:let l;l=r?t.filter.params.value:PO({value:t.filter.params.default,dateFormat:"HH:mm:ss"}),i={op:"between",dformat:"only_time",value:l,options:[]};break;case yO.YEAR:let u;u=r?t.filter.params.value:LO({value:t.filter.params.default,dateFormat:"YYYY"}),i={op:"@only_year",value:[],options:[u]};break;case yO.MONTH:let c;c=r?t.filter.params.value:LO({value:t.filter.params.default,dateFormat:"MM"}),i={op:"@only_month",value:[],options:[c]};break;case yO.DAY:let h;h=r?t.filter.params.value:LO({value:t.filter.params.default,dateFormat:"DD"}),i={op:"@only_day",value:[],options:[h]}}break;case oO.INT:case oO.FLOAT:case oO.DOUBLE:switch(t.filter.type){case fO.CONDITION:let e,n,a;switch(r?(e=t.filter.params.value.val,a=t.filter.params.value.searchMode):(e=t.filter.params.default.val,a=t.filter.params.default.searchMode),a){case tO.EQUAL:n="=";break;case tO.NOT_EQUAL:n="!=";break;case tO.GREAT_EQUAL:n=">=";break;case tO.GREAT_THAN:n=">";break;case tO.LESS_EQUAL:n="<=";break;case tO.LESS_THAN:n="<";break;case tO.NULL:n="null";break;case tO.NOT_NULL:n="nn"}i={op:n,value:[e],options:[]};break;case fO.RANGE:i={op:"between",value:r?t.filter.params.value:t.filter.params.default,options:[]}}}return i}));function HO({shareId:e,criteria:t,getTableColumnValueFunc:n}){return u(this,void 0,void 0,(function*(){const i=Array.from({length:t.length});return yield Promise.all(t.map(((t,r)=>u(this,void 0,void 0,(function*(){const a={key:t.key,type:t.type,expr:t.expr},o=yield YO({shareId:e,field:t,getTableColumnValueFunc:n});o&&!RO({filter:o})?(a.filter=[o],o.level&&(a.level=o.level)):a.filter=[],i[r]=a}))))),i}))}function FO({value:e}){return e.map((e=>{const t={alias:e.alias,key:e.key,type:e.type,expr:e.expr,orderBy:e.orderBy,compare:e.compare};if(e.type===oO.TIME)if(e.subtype){const n=aO[e.subtype];t.type=n.sqltype,t.dformat=n.sqldformat}else{const n=EO({dformat:e.dformat,tformat:e.tformat});n&&(t.dformat=n)}return t}))}function BO({customFields:e}){let t=[];return Object.values(e.calc).forEach((e=>{t=t.concat(e)})),t}const jO=({drillDown:e,group:t})=>{const n={group:[],drillDown:[]};return n.group=t.map((e=>{const t={alias:e.alias,key:e.key,type:e.type,expr:e.expr,orderBy:e.orderBy,filter:[]};if(e.type===oO.TIME)if(e.subtype){const n=aO[e.subtype];t.type=n.sqltype,t.dformat=n.sqldformat}else{const n=EO({dformat:e.dformat,tformat:e.tformat});n&&(t.dformat=n)}return t})),Object.entries(e).forEach((([e,i])=>{if(!i.current)return;const r=t.find((t=>t.id===e));n.group.splice(r,1,{alias:i.current.alias,key:i.current.key,type:i.current.type,filter:[]});const a=[],o=[];i.path.forEach((e=>{a.push({alias:e.alias,key:e.key,type:e.type,filter:[]}),o.push(e.value)})),a.push({alias:i.current.alias,key:i.current.key,type:i.current.type,filter:[]}),n.drillDown.push({items:a,itemValues:o,currentItem:i.path.length+1,isDrill:!0})})),n};var UO,WO,GO,VO;function qO({timeRangeConfig:e}){let t=[null,null];switch(e.type){case GO.SHORTCUTS:const n=e.params,i=rO();switch(n.value){case UO.ALL:t=[null,null];break;case UO.TODAY:const e=i.format("YYYY-MM-DD");t=[`${e} 00:00:00`,`${e} 23:59:59`];break;case UO.YESTERDAY:const n=i.add(-1,"days").format("YYYY-MM-DD");t=[`${n} 00:00:00`,`${n} 23:59:59`];break;case UO.THIS_WEEK_TO_NOW:t=[rO().startOf("week").format("YYYY-MM-DD 00:00:00"),i.format("YYYY-MM-DD 23:59:59")];break;case UO.LAST_WEEK:t=[rO().add(-1,"week").startOf("week").format("YYYY-MM-DD 00:00:00"),i.format("YYYY-MM-DD 23:59:59")];break;case UO.THIS_MONTH_TO_NOW:t=[rO().startOf("month").format("YYYY-MM-DD 00:00:00"),i.format("YYYY-MM-DD 23:59:59")];break;case UO.LAST_MONTH:const r=rO().add(-1,"month").startOf("month").startOf("d"),a=rO().add(-1,"month").endOf("month").endOf("d");t=[r.format("YYYY-MM-DD 00:00:00"),a.format("YYYY-MM-DD 23:59:59")];break;case UO.THIS_QUARTER_TO_NOW:t=[i.startOf("quarter").format("YYYY-MM-DD 00:00:00"),i.format("YYYY-MM-DD 23:59:59")];break;case UO.LAST_QUARTER:const o=rO().add(-1,"quarter").startOf("quarter"),s=rO().add(-1,"quarter").endOf("quarter");t=[o.format("YYYY-MM-DD 00:00:00"),s.format("YYYY-MM-DD 23:59:59")];break;case UO.THIS_YEAR_TO_NOW:t=[rO().startOf("year").format("YYYY-MM-DD 00:00:00"),i.format("YYYY-MM-DD 23:59:59")];break;case UO.LAST_YEAR:const l=rO().add(-1,"year").startOf("year"),u=rO().add(-1,"year").endOf("year");t=[l.format("YYYY-MM-DD 00:00:00"),u.format("YYYY-MM-DD 23:59:59")]}break;case GO.CUSTOM_TIME:const r=e.params;t=[`${r.startDate} ${r.startTime.value}`,`${r.endDate} ${r.endTime.value}`];break;case GO.DYNAMIC_TIME:const a=e.params,o=rO(),s=rO();switch(a.type){case WO.SOME_DAY:s.add(0-a.value,"days");break;case WO.SOME_WEEK:s.add(0-a.value,"week");break;case WO.SOME_MONTH:s.add(0-a.value,"month");break;case WO.SOME_YEAR:s.add(0-a.value,"year")}t=[s.format("YYYY-MM-DD 00:00:00"),o.format("YYYY-MM-DD 23:59:59")]}return t}!function(e){e.ALL="all",e.TODAY="today",e.YESTERDAY="yesterday",e.THIS_WEEK_TO_NOW="this_week_to_now",e.LAST_WEEK="last_week",e.THIS_MONTH_TO_NOW="this_month_to_now",e.LAST_MONTH="last_month",e.THIS_QUARTER_TO_NOW="this_quarter_to_now",e.LAST_QUARTER="last_quarter",e.THIS_YEAR_TO_NOW="this_year_to_now",e.LAST_YEAR="last_year"}(UO||(UO={})),Object.freeze({[UO.ALL]:Object.freeze({key:UO.ALL,name:"全部"}),[UO.TODAY]:Object.freeze({key:UO.TODAY,name:"当天"}),[UO.YESTERDAY]:Object.freeze({key:UO.YESTERDAY,name:"昨天"}),[UO.THIS_WEEK_TO_NOW]:Object.freeze({key:UO.THIS_WEEK_TO_NOW,name:"本周至今"}),[UO.LAST_WEEK]:Object.freeze({key:UO.LAST_WEEK,name:"上周"}),[UO.THIS_MONTH_TO_NOW]:Object.freeze({key:UO.THIS_MONTH_TO_NOW,name:"本月至今"}),[UO.LAST_MONTH]:Object.freeze({key:UO.LAST_MONTH,name:"上月"}),[UO.THIS_QUARTER_TO_NOW]:Object.freeze({key:UO.THIS_QUARTER_TO_NOW,name:"本季度至今"}),[UO.LAST_QUARTER]:Object.freeze({key:UO.LAST_QUARTER,name:"上季度"}),[UO.THIS_YEAR_TO_NOW]:Object.freeze({key:UO.THIS_YEAR_TO_NOW,name:"本年至今"}),[UO.LAST_YEAR]:Object.freeze({key:UO.LAST_YEAR,name:"去年"})}),function(e){e.SOME_DAY="some_day",e.SOME_WEEK="some_week",e.SOME_MONTH="some_month",e.SOME_YEAR="some_year"}(WO||(WO={})),Object.freeze({[WO.SOME_DAY]:Object.freeze({key:WO.SOME_DAY,name:"前N天"}),[WO.SOME_WEEK]:Object.freeze({key:WO.SOME_WEEK,name:"前N周"}),[WO.SOME_MONTH]:Object.freeze({key:WO.SOME_MONTH,name:"前N月"}),[WO.SOME_YEAR]:Object.freeze({key:WO.SOME_YEAR,name:"前N年"})}),function(e){e.SHORTCUTS="shortcuts",e.CUSTOM_TIME="custom_time",e.DYNAMIC_TIME="dynamic_time"}(GO||(GO={})),Object.freeze({[GO.SHORTCUTS]:Object.freeze({key:GO.SHORTCUTS,name:"快捷选择",getDefault:()=>({value:UO.ALL})}),[GO.CUSTOM_TIME]:Object.freeze({key:GO.CUSTOM_TIME,name:"自定义时间",getDefault:()=>({startDate:null,startTime:{enable:!1,value:"00:00:00"},endDate:null,endTime:{enable:!1,value:"23:59:59"}})}),[GO.DYNAMIC_TIME]:Object.freeze({key:GO.DYNAMIC_TIME,name:"动态时间",getDefault:()=>({type:WO.SOME_DAY,value:null})})}),function(e){e.YEAR="year",e.QUARTER="quarter",e.MONTH="month",e.WEEK="week"}(VO||(VO={})),Object.freeze({[VO.YEAR]:Object.freeze({key:VO.YEAR,name:"年"}),[VO.QUARTER]:Object.freeze({key:VO.QUARTER,name:"季"}),[VO.MONTH]:Object.freeze({key:VO.MONTH,name:"月"}),[VO.WEEK]:Object.freeze({key:VO.WEEK,name:"周"})});const ZO=({groupField:e,timeRange:t})=>({id:e.id,alias:e.alias,key:e.key,compareIndex:1,type:e.type,filter:[{op:"between",value:t||qO({timeRangeConfig:e.timeRange}),options:[]}]}),XO=({timeRange:e,groupField:t,value:n})=>{const i=[];return n.forEach((n=>{const r={id:n.id,alias:n.alias,key:n.key,type:n.type,expr:n.expr};if(i.push(r),t.compare.yoy_ratio.enable){const n=Object.assign({},r,{alias:`${r.alias}%%同比率`});switch(t.compare.yoy_ratio.dimension){case VO.WEEK:n.compare={type:"ratio",value:[rO(e[0]).add(-1,"week").format("YYYY-MM-DD HH:mm:ss"),rO(e[1]).add(-1,"week").format("YYYY-MM-DD HH:mm:ss")]};break;case VO.MONTH:n.compare={type:"ratio",value:[rO(e[0]).add(-1,"month").format("YYYY-MM-DD HH:mm:ss"),rO(e[1]).add(-1,"month").format("YYYY-MM-DD HH:mm:ss")]};break;case VO.QUARTER:n.compare={type:"ratio",value:[rO(e[0]).add(-1,"quarter").format("YYYY-MM-DD HH:mm:ss"),rO(e[1]).add(-1,"quarter").format("YYYY-MM-DD HH:mm:ss")]};break;case VO.YEAR:n.compare={type:"ratio",value:[rO(e[0]).add(-1,"year").format("YYYY-MM-DD HH:mm:ss"),rO(e[1]).add(-1,"year").format("YYYY-MM-DD HH:mm:ss")]}}i.push(n)}if(t.compare.yoy_value.enable){const n=Object.assign({},r,{alias:`${r.alias}%%同比值`});switch(t.compare.yoy_value.dimension){case VO.WEEK:n.compare={type:"num",value:[rO(e[0]).add(-1,"week").format("YYYY-MM-DD HH:mm:ss"),rO(e[1]).add(-1,"week").format("YYYY-MM-DD HH:mm:ss")]};break;case VO.MONTH:n.compare={type:"num",value:[rO(e[0]).add(-1,"month").format("YYYY-MM-DD HH:mm:ss"),rO(e[1]).add(-1,"month").format("YYYY-MM-DD HH:mm:ss")]};break;case VO.QUARTER:n.compare={type:"num",value:[rO(e[0]).add(-1,"quarter").format("YYYY-MM-DD HH:mm:ss"),rO(e[1]).add(-1,"quarter").format("YYYY-MM-DD HH:mm:ss")]};break;case VO.YEAR:n.compare={type:"num",value:[rO(e[0]).add(-1,"year").format("YYYY-MM-DD HH:mm:ss"),rO(e[1]).add(-1,"year").format("YYYY-MM-DD HH:mm:ss")]}}i.push(n)}if(t.compare.mom_ratio.enable){const t=Object.assign({},r,{alias:`${r.alias}%%环比率`}),n=rO(e[0]),a=rO(e[1]),o=n.diff(a)-1e3;t.compare={type:"ratio",value:[n.add(o,"ms").format("YYYY-MM-DD HH:mm:ss"),a.add(o,"ms").format("YYYY-MM-DD HH:mm:ss")]},i.push(t)}if(t.compare.mom_value.enable){const t=Object.assign({},r,{alias:`${r.alias}%%环比值`}),n=rO(e[0]),a=rO(e[1]),o=n.diff(a)-1e3;t.compare={type:"num",value:[n.add(o,"ms").format("YYYY-MM-DD HH:mm:ss"),a.add(o,"ms").format("YYYY-MM-DD HH:mm:ss")]},i.push(t)}})),i};function KO({shareId:e=null,setConfig:t,getTableColumnValueFunc:n}){return u(this,void 0,void 0,(function*(){let i={};const{data:r}=t;switch(t.render){case JS.TABLE:case JS.PIE:case JS.HISTOGRAM_LINE:case JS.HISTOGRAM_BAR:case JS.BAR:case JS.HISTOGRAM_MIX:i=yield function({shareId:e,setConfig:t,getTableColumnValueFunc:n}){return u(this,void 0,void 0,(function*(){const i=yield HO({shareId:e,criteria:t.data.criteria,getTableColumnValueFunc:n}),{group:r,drillDown:a}=jO({drillDown:t.data.drillDown,group:t.data.group});return{criteria:i,group:r,value:FO({value:t.data.value}),drillDown:a,rule:BO({customFields:t.customFields})}}))}({shareId:e,setConfig:t,getTableColumnValueFunc:n});break;case JS.GAUGE:break;case JS.INDICATOR_CARD:i=yield function({shareId:e,setConfig:t,timeRange:n,getTableColumnValueFunc:i}){return u(this,void 0,void 0,(function*(){const r=yield HO({shareId:e,criteria:t.data.criteria,getTableColumnValueFunc:i}),a=t.data.group[0],o=yield ZO({groupField:a,timeRange:n});return{criteria:[o,...r],group:[],value:XO({timeRange:o.filter[0].value,groupField:a,value:t.data.value}),drillDown:[],rule:BO({customFields:t.customFields})}}))}({shareId:e,setConfig:t,getTableColumnValueFunc:n});break;case JS.MAP:break;case JS.DETAIL:i=yield function({shareId:e,setConfig:t,getTableColumnValueFunc:n}){return u(this,void 0,void 0,(function*(){return{criteria:yield HO({shareId:e,criteria:t.data.criteria,getTableColumnValueFunc:n}),group:[],value:FO({value:t.data.value}),drillDown:[],rule:BO({customFields:t.customFields})}}))}({shareId:e,setConfig:t,getTableColumnValueFunc:n});break;default:throw new Error(`未知的图标渲染类型: ${r.render}`)}return i}))}var $O,QO,JO,eM,tM,nM;!function(e){e.NORMAL="normal",e.CENTRAL_CONTROL="center-control",e.DOOR_PLATE="door-plate"}($O||($O={})),Object.freeze({[$O.NORMAL]:Object.freeze({key:$O.NORMAL,name:"普通模式"}),[$O.CENTRAL_CONTROL]:Object.freeze({key:$O.CENTRAL_CONTROL,name:"中控大屏"}),[$O.DOOR_PLATE]:Object.freeze({key:$O.DOOR_PLATE,name:"电子门牌"})}),function(e){e.SIZE8="8",e.SIZE10="10",e.SIZE12="12",e.SIZE13="13",e.SIZE14="14",e.SIZE16="16",e.SIZE18="18",e.SIZE20="20",e.SIZE24="24",e.SIZE26="26",e.SIZE28="28",e.SIZE30="30",e.SIZE32="32",e.SIZE34="34",e.SIZE36="36",e.SIZE38="38",e.SIZE40="40",e.SIZE48="48",e.SIZE64="64",e.SIZE72="72",e.SIZE128="128"}(QO||(QO={})),function(e){e.SIZE400="400",e.SIZE600="600"}(JO||(JO={})),Object.freeze({[JO.SIZE400]:Object.freeze({key:JO.SIZE400,name:"正常"}),[JO.SIZE600]:Object.freeze({key:JO.SIZE600,name:"加粗"})}),function(e){e.NORMAL="normal",e.ITALIC="italic"}(eM||(eM={})),Object.freeze({[eM.NORMAL]:Object.freeze({key:eM.NORMAL,name:"正常"}),[eM.ITALIC]:Object.freeze({key:eM.ITALIC,name:"斜体"})}),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(tM||(tM={})),Object.freeze({[tM.LEFT]:Object.freeze({key:tM.LEFT,iconfont:"icon-text_left",name:"左对齐"}),[tM.CENTER]:Object.freeze({key:tM.CENTER,iconfont:"icon-text_center",name:"居中对齐"}),[tM.RIGHT]:Object.freeze({key:tM.RIGHT,iconfont:"icon-text_right",name:"右对齐"})}),function(e){e.TOP="top",e.MIDDLE="middle",e.BOTTOM="bottom"}(nM||(nM={})),Object.freeze({[nM.TOP]:Object.freeze({key:nM.TOP,iconfont:"icon-top",name:"头部对齐"}),[nM.MIDDLE]:Object.freeze({key:nM.MIDDLE,iconfont:"icon-center",name:"居中对齐"}),[nM.BOTTOM]:Object.freeze({key:nM.BOTTOM,iconfont:"icon-bottom",name:"底部对齐"})});const iM=Object.freeze(["#4499fa","#59d4d9","#4cd964","#ff9500","#ff3b30","#c894f6","#8c6fde","#767aee","#52c41a","#ff2d55","#ffcc00","#5ac8fa","#f478b8","#fae34c","#59d9a4"]),rM="#2b9f7f";var aM;!function(e){e.PURE="pure",e.LINEAR="linear",e.RADIAL="radial"}(aM||(aM={}));const oM=Object.freeze({[aM.PURE]:Object.freeze({key:aM.PURE,name:"纯色",getDefault:(e=rM)=>({type:aM.PURE,color:e})}),[aM.LINEAR]:Object.freeze({key:aM.LINEAR,name:"线性渐变",getDefault:(e=rM)=>({type:aM.LINEAR,startColor:e,endColor:e})}),[aM.RADIAL]:Object.freeze({key:aM.RADIAL,name:"径向渐变",getDefault:(e=rM)=>({type:aM.RADIAL,startColor:e,endColor:e,radius:5})})});var sM;!function(e){e.CONTINUOUS="continuous",e.PIECEWISE="piecewise"}(sM||(sM={}));const lM=Object.freeze({[sM.CONTINUOUS]:Object.freeze({key:sM.CONTINUOUS,name:"连续渐变",getDefault:(e=rM)=>({type:sM.CONTINUOUS,startColor:e,endColor:e})}),[sM.PIECEWISE]:Object.freeze({key:sM.PIECEWISE,name:"区间渐变",getDefault:(e=rM)=>({type:sM.PIECEWISE,startColor:e,endColor:e,splitNumber:5})})});var uM,cM,hM,dM,fM,pM,gM;!function(e){e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right",e.INSIDE_LEFT="insideLeft",e.INSIDE_RIGHT="insideRight",e.INSIDE_TOP="insideTop",e.INSIDE_CENTER="inside",e.INSIDE_BOTTOM="insideBottom"}(uM||(uM={})),Object.freeze({[uM.TOP]:Object.freeze({key:uM.TOP,name:"上方"}),[uM.BOTTOM]:Object.freeze({key:uM.BOTTOM,name:"下方"}),[uM.LEFT]:Object.freeze({key:uM.LEFT,name:"左边"}),[uM.RIGHT]:Object.freeze({key:uM.RIGHT,name:"右边"}),[uM.INSIDE_CENTER]:Object.freeze({key:uM.INSIDE_CENTER,name:"内部居中"}),[uM.INSIDE_LEFT]:Object.freeze({key:uM.INSIDE_LEFT,name:"内部左边"}),[uM.INSIDE_RIGHT]:Object.freeze({key:uM.INSIDE_RIGHT,name:"内部右边"}),[uM.INSIDE_TOP]:Object.freeze({key:uM.INSIDE_TOP,name:"内部上方"}),[uM.INSIDE_BOTTOM]:Object.freeze({key:uM.INSIDE_BOTTOM,name:"内部下方"})}),function(e){e.GROUP="group",e.SERIES="series",e.VALUE="value",e.PERCENT="percent"}(cM||(cM={})),Object.freeze({[cM.GROUP]:Object.freeze({key:cM.GROUP,name:"维度项"}),[cM.SERIES]:Object.freeze({key:cM.SERIES,name:"数值标题"}),[cM.VALUE]:Object.freeze({key:cM.VALUE,name:"值"}),[cM.PERCENT]:Object.freeze({key:cM.PERCENT,name:"百分比"})}),function(e){e.PERCENT="percent",e.INDEX="index"}(hM||(hM={})),Object.freeze({[hM.PERCENT]:Object.freeze({key:hM.PERCENT,name:"%"}),[hM.INDEX]:Object.freeze({key:hM.INDEX,name:"项"})}),function(e){e.BT="bt",e.E="e",e.NE="ne",e.GT="gt",e.GE="ge",e.LT="lt",e.LE="le",e.BEFORE="before",e.AFTER="after",e.INDEX="index"}(dM||(dM={})),Object.freeze({[dM.BT]:Object.freeze({key:dM.BT,name:"介于",getDefault:()=>({op:dM.BT,value:[null,null]})}),[dM.E]:Object.freeze({key:dM.E,name:"等于",getDefault:()=>({op:dM.E,value:null})}),[dM.NE]:Object.freeze({key:dM.NE,name:"不等于",getDefault:()=>({op:dM.NE,value:null})}),[dM.GT]:Object.freeze({key:dM.GT,name:"大于",getDefault:()=>({op:dM.GT,value:null})}),[dM.GE]:Object.freeze({key:dM.GE,name:"大于等于",getDefault:()=>({op:dM.GE,value:null})}),[dM.LT]:Object.freeze({key:dM.LT,name:"小于",getDefault:()=>({op:dM.LT,value:null})}),[dM.LE]:Object.freeze({key:dM.LE,name:"小于等于",getDefault:()=>({op:dM.LE,value:null})}),[dM.BEFORE]:Object.freeze({key:dM.BEFORE,name:"前",getDefault:()=>({op:dM.BEFORE,value:null,unit:hM.INDEX})}),[dM.AFTER]:Object.freeze({key:dM.AFTER,name:"后",getDefault:()=>({op:dM.AFTER,value:null,unit:hM.INDEX})}),[dM.INDEX]:Object.freeze({key:dM.INDEX,name:"第",getDefault:()=>({op:dM.INDEX,value:null})})}),function(e){e.SHOW="show",e.HIDDEN="hidden",e.DEFAULT="default"}(fM||(fM={})),Object.freeze({[fM.SHOW]:Object.freeze({key:fM.SHOW,name:"显示"}),[fM.HIDDEN]:Object.freeze({key:fM.HIDDEN,name:"隐藏"}),[fM.DEFAULT]:Object.freeze({key:fM.DEFAULT,name:"默认"})}),function(e){e.BAR="bar",e.LINE="line"}(pM||(pM={})),Object.freeze({[pM.BAR]:Object.freeze({key:pM.BAR,name:"柱"}),[pM.LINE]:Object.freeze({key:pM.LINE,name:"线"})}),function(e){e.ITEM_STYLE="itemStyle",e.VISUAL_MAP="visualMap"}(gM||(gM={}));const mM=Object.freeze({[gM.ITEM_STYLE]:Object.freeze({key:gM.ITEM_STYLE,name:"颜色填充",getDefaultConfig:()=>({type:gM.ITEM_STYLE,params:oM[aM.PURE].getDefault()})}),[gM.VISUAL_MAP]:Object.freeze({key:gM.VISUAL_MAP,name:"视觉映射",getDefaultConfig:()=>({type:gM.VISUAL_MAP,params:lM[sM.CONTINUOUS].getDefault()})})});function vM({seriesType:e,axisPosition:t,dataLabelPosition:n}){return{type:e,axisPosition:t,width:null,radius:0,colorFill:mM[gM.ITEM_STYLE].getDefaultConfig(),label:{show:!1,params:{position:n,fontSize:QO.SIZE12,color:{enable:!1,value:rM},fontWeight:JO.SIZE400,showTooltip:Object.values(cM)}},conditionalFormatting:[]}}var yM,_M,xM,bM,wM;function TM({position:e}){return{name:"",position:e,unit:"",min:null,max:null,nameLocation:bM.START,nameGap:15,nameRotate:0,inverse:!1,nameTextStyle:{fontSize:QO.SIZE12,color:"#333333",fontWeight:JO.SIZE400,fontStyle:eM.NORMAL,padding:[0,0,0,0]},axisLabel:{show:!1,params:{fontSize:QO.SIZE14,color:"#333333",fontWeight:JO.SIZE400,fontStyle:eM.NORMAL,rotate:yM.NONE}},axisLine:{show:!1,params:{width:1,color:"#333333",type:_M.SOLID}},axisTick:{show:!1,params:{length:5,width:1,color:"#333333",type:_M.SOLID}},splitLine:{show:!1,params:{width:1,color:"#333333",type:_M.SOLID}}}}function SM(){return{show:!1,width:20,right:10,filterColor:rM,borderColor:rM}}function OM(){return{position:wM.NONE}}function MM({styleConfig:e,setConfig:t,dataLabelPosition:n,getSeriesTypeFunc:i,getAxisPositionFunc:r}){e.enable&&(function({stack:e,setConfig:t}){if(e.enable){const n=t.data.value.map((e=>e.id));e.params.forEach((e=>{e.fields=e.fields.filter((e=>n.includes(e)))})),e.params=e.params.filter((e=>e.fields.length>0))}}({stack:e.params.stack,setConfig:t}),function({seriesCustomConfig:e,setConfig:t,dataLabelPosition:n,getSeriesTypeFunc:i,getAxisPositionFunc:r}){Object.keys(e).forEach((n=>{t.data.value.find((e=>e.id===n))||delete e[n]})),t.data.value.forEach(((t,a)=>{e[t.id]||(e[t.id]=vM({seriesType:i({index:a}),axisPosition:r({index:a}),dataLabelPosition:n}))}))}({seriesCustomConfig:e.params.seriesCustom,setConfig:t,dataLabelPosition:n,getSeriesTypeFunc:i,getAxisPositionFunc:r}))}!function(e){e.NONE="0",e.Rotate30="30",e.Rotate45="45",e.Rotate60="60",e.Rotate90="90"}(yM||(yM={})),Object.freeze({[yM.NONE]:Object.freeze({key:yM.NONE,name:"默认"}),[yM.Rotate30]:Object.freeze({key:yM.Rotate30,name:"30"}),[yM.Rotate45]:Object.freeze({key:yM.Rotate45,name:"45"}),[yM.Rotate60]:Object.freeze({key:yM.Rotate60,name:"60"}),[yM.Rotate90]:Object.freeze({key:yM.Rotate90,name:"90"})}),function(e){e.SOLID="solid",e.DASHED="dashed",e.DOTTED="dotted"}(_M||(_M={})),Object.freeze({[_M.SOLID]:Object.freeze({key:_M.SOLID,name:"————"}),[_M.DASHED]:Object.freeze({key:_M.DASHED,name:"----"}),[_M.DOTTED]:Object.freeze({key:_M.DOTTED,name:"...."})}),function(e){e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom"}(xM||(xM={})),Object.freeze({[xM.LEFT]:Object.freeze({key:xM.LEFT,name:"左"}),[xM.RIGHT]:Object.freeze({key:xM.RIGHT,name:"右"}),[xM.TOP]:Object.freeze({key:xM.TOP,name:"上"}),[xM.BOTTOM]:Object.freeze({key:xM.BOTTOM,name:"下"})}),function(e){e.START="start",e.CENTER="center",e.END="end"}(bM||(bM={})),Object.freeze({[bM.START]:Object.freeze({key:bM.START,name:"起始"}),[bM.CENTER]:Object.freeze({key:bM.CENTER,name:"中间"}),[bM.END]:Object.freeze({key:bM.END,name:"结尾"})}),function(e){e.NONE="none",e.LEFT="left",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom"}(wM||(wM={})),Object.freeze({[wM.NONE]:Object.freeze({key:wM.NONE,name:"无",iconfont:"icon-align_center"}),[wM.TOP]:Object.freeze({key:wM.TOP,name:"上",iconfont:"icon-align_top"}),[wM.BOTTOM]:Object.freeze({key:wM.BOTTOM,name:"下",iconfont:"icon-align_bottom"}),[wM.LEFT]:Object.freeze({key:wM.LEFT,name:"左",iconfont:"icon-align_left"}),[wM.RIGHT]:Object.freeze({key:wM.RIGHT,name:"右",iconfont:"icon-align_right"})});var DM,AM=Object.freeze({__proto__:null,reactStyleConfig:function({styleConfig:e,setConfig:t}){MM({styleConfig:e,setConfig:t,dataLabelPosition:uM.RIGHT,getSeriesTypeFunc:()=>pM.BAR,getAxisPositionFunc:()=>xM.TOP})},getDefaultConfigParams:function({setConfig:e}){return{dataRange:{start:null,end:null},grid:{top:50,bottom:30,left:70,right:50},legend:OM(),dataZoom:SM(),stack:{enable:!1,params:[]},axisY:TM({position:xM.LEFT}),topAxis:TM({position:xM.TOP}),bottomAxis:TM({position:xM.BOTTOM}),seriesCustom:(()=>{const t={};return e.data.value.forEach((e=>{t[e.id]=vM({dataLabelPosition:uM.RIGHT,seriesType:pM.BAR,axisPosition:xM.TOP})})),t})()}}}),kM=(()=>{const e={};return e[$O.NORMAL]=AM,e})();!function(e){e.SIZE10="10",e.SIZE20="20",e.SIZE30="30",e.SIZE50="50"}(DM||(DM={}));function IM({styleConfig:e,setConfig:t}){e.enable&&((({cell:e,setConfig:t})=>{const n=t.data.group.length+t.data.value.length;e.fixed.left>n&&(e.fixed.left=n),e.fixed.right>n&&(e.fixed.right=null)})({cell:e.params.cell,setConfig:t}),(({summary:e,setConfig:t})=>{if(e.show){const n={};t.data.value.forEach((t=>{n[t.id]=e.expr[t.id]||AO.NONE})),e.expr=n}})({summary:e.params.summary,setConfig:t}),(({stack:e,setConfig:t})=>{if(e.enable){const n=t.data.value.map((e=>e.id));e.params.forEach((e=>{e.fields=e.fields.filter((e=>n.includes(e)))})),e.params=e.params.filter((e=>e.fields.length>0))}})({stack:e.params.stack,setConfig:t}))}function CM({hasMerged:e=!1}){const t={fixed:{left:null,right:null}};return e&&(t.merge=!1),t}function EM(){return{pageSize:DM.SIZE20,showPageSize:!1,showTotal:!1,showTotalPage:!1}}function NM(){return{bgColor:"#fafafa",fontSize:QO.SIZE12,fontWeight:JO.SIZE400,color:"#606266",textAlign:tM.LEFT}}function RM(){return{fontSize:QO.SIZE12,fontWeight:JO.SIZE400,color:"#606266",textAlign:tM.LEFT,verticalAlign:nM.MIDDLE,oddColor:"#ffffff",evenColor:"#fafbfc"}}var LM=Object.freeze({__proto__:null,getDefaultConfigParams:function(){return{dataRange:{start:null,end:null},cell:CM({}),stack:{enable:!1,params:[]},summary:{show:!1,name:"",expr:{}},pagination:EM(),showIndex:!0,header:NM(),body:RM(),border:{hasVerticalBorder:!1,hasHorizontalBorder:!0,borderColor:"#ebeef5"}}},reactStyleConfig:IM}),PM=(()=>{const e={};return e[$O.NORMAL]=LM,e})();var zM=Object.freeze({__proto__:null,reactStyleConfig:function({styleConfig:e,setConfig:t}){MM({styleConfig:e,setConfig:t,dataLabelPosition:uM.TOP,getSeriesTypeFunc:()=>pM.BAR,getAxisPositionFunc:()=>xM.LEFT})},getDefaultConfigParams:function({setConfig:e}){return{dataRange:{start:null,end:null},grid:{top:50,bottom:30,left:70,right:50},legend:OM(),dataZoom:SM(),stack:{enable:!1,params:[]},axisX:TM({position:xM.BOTTOM}),leftAxis:TM({position:xM.LEFT}),rightAxis:TM({position:xM.RIGHT}),seriesCustom:(()=>{const t={};return e.data.value.forEach((e=>{t[e.id]=vM({dataLabelPosition:uM.TOP,seriesType:pM.BAR,axisPosition:xM.LEFT})})),t})()}}}),YM=(()=>{const e={};return e[$O.NORMAL]=zM,e})();var HM=Object.freeze({__proto__:null,reactStyleConfig:function({styleConfig:e,setConfig:t}){MM({styleConfig:e,setConfig:t,dataLabelPosition:uM.TOP,getSeriesTypeFunc:()=>pM.BAR,getAxisPositionFunc:()=>xM.LEFT})},getDefaultConfigParams:function({setConfig:e}){return{dataRange:{start:null,end:null},grid:{top:50,bottom:30,left:70,right:50},legend:OM(),dataZoom:SM(),stack:{enable:!1,params:[]},axisX:TM({position:xM.BOTTOM}),leftAxis:TM({position:xM.LEFT}),rightAxis:TM({position:xM.RIGHT}),seriesCustom:(()=>{const t={};return e.data.value.forEach((e=>{t[e.id]=vM({dataLabelPosition:uM.TOP,seriesType:pM.LINE,axisPosition:xM.LEFT})})),t})()}}}),FM=(()=>{const e={};return e[$O.NORMAL]=HM,e})();var BM,jM=Object.freeze({__proto__:null,reactStyleConfig:function({styleConfig:e,setConfig:t}){MM({styleConfig:e,setConfig:t,dataLabelPosition:uM.TOP,getSeriesTypeFunc:()=>pM.BAR,getAxisPositionFunc:()=>xM.LEFT})},getDefaultConfigParams:function({setConfig:e}){return{dataRange:{start:null,end:null},grid:{top:50,bottom:30,left:70,right:50},legend:OM(),dataZoom:SM(),stack:{enable:!1,params:[]},axisX:TM({position:xM.BOTTOM}),leftAxis:TM({position:xM.LEFT}),rightAxis:TM({position:xM.RIGHT}),seriesCustom:(()=>{const t={};return e.data.value.forEach(((e,n)=>{t[e.id]=vM({dataLabelPosition:uM.TOP,seriesType:n%2==0?pM.BAR:pM.LINE,axisPosition:xM.LEFT})})),t})()}}}),UM=(()=>{const e={};return e[$O.NORMAL]=jM,e})();!function(e){e.ZERO="0",e.ONE="1",e.TWO="2",e.THREE="3",e.FOUR="4",e.FIVE="5",e.SIX="6"}(BM||(BM={}));var WM,GM=Object.freeze({__proto__:null,reactStyleConfig:function({styleConfig:e,setConfig:t}){},get PrecisionType(){return BM},getDefaultConfigParams:function(){return{background:"#ffffff",title:{fontSize:QO.SIZE12,color:"#333333"},value:{fontSize:QO.SIZE12,color:"#333333"},compareValue:{positive:{precision:BM.TWO,fontSize:QO.SIZE12,color:"#333333"},negative:{precision:BM.TWO,fontSize:QO.SIZE12,color:"#333333"}}}}}),VM=(()=>{const e={};return e[$O.NORMAL]=GM,e})();!function(e){e.PERCENT="%",e.PX="px"}(WM||(WM={}));const qM=Object.freeze({[WM.PERCENT]:Object.freeze({key:WM.PERCENT,name:"%"}),[WM.PX]:Object.freeze({key:WM.PX,name:"px"})});var ZM;!function(e){e.AREA="area",e.RADIUS="radius"}(ZM||(ZM={}));const XM=Object.freeze({[ZM.AREA]:Object.freeze({key:ZM.AREA,name:"面积模式"}),[ZM.RADIUS]:Object.freeze({key:ZM.RADIUS,name:"半径模式"})});var KM;!function(e){e.INSIDE="inside",e.OUTSIDE="outside"}(KM||(KM={}));const $M=Object.freeze({[KM.INSIDE]:Object.freeze({key:KM.INSIDE,name:"圈内"}),[KM.OUTSIDE]:Object.freeze({key:KM.OUTSIDE,name:"圈外"})});var QM=Object.freeze({__proto__:null,reactStyleConfig:function({shareId:e,styleConfig:t,setConfig:n,getTableColumnValueFunc:i,getDataFunc:r}){return u(this,void 0,void 0,(function*(){if(t.enable){let a=[];if(i&&r){const o={config:yield KO({shareId:e,setConfig:n,getTableColumnValueFunc:i}),data_start:null!==t.params.dataRange.start?t.params.dataRange.start-1:0};null!==t.params.dataRange.end&&(o.data_count=t.params.dataRange.end-o.data_start);const[{data:s}]=yield r(o);s.length<100&&(a=s)}const o={},s=n.data.group[0];a.forEach(((e,n)=>{const i=e.group[s.alias];o[i]=t.params.customGroupValues[i]||oM[aM.PURE].getDefault(iM[n%iM.length])})),t.params.customGroupValues=o}}))},get ChartCenterUnitType(){return WM},ChartCenterUnitTypeMesage:qM,get RoseType(){return ZM},RoseTypeMesage:XM,get LabelPosition(){return KM},LabelPositionMesage:$M,getDefaultConfigParams:function({shareId:e,setConfig:t,getTableColumnValueFunc:n,getDataFunc:i}){return u(this,void 0,void 0,(function*(){let r=[];if(n&&i){const a={config:yield KO({shareId:e,setConfig:t,getTableColumnValueFunc:n})};if(t.style[JS.PIE][$O.NORMAL].enable){const e=t.style[JS.PIE][$O.NORMAL].params,n=e.dataRange.start||1;a.data_start=n,null!==e.dataRange.end&&(a.data_count=e.dataRange.end-a.data_start)}const[{data:o}]=yield i(a);r=o}return{dataRange:{start:null,end:null},legend:OM(),chart:{center:{x:{value:50,unit:WM.PERCENT},y:{value:50,unit:WM.PERCENT}},radius:{inner:0,outer:80},startAngle:90,clockwise:!0,minShowLabelAngle:null},customGroupValues:(()=>{const e={},n=t.data.group[0];return r.forEach(((t,i)=>{const r=t.group[n.alias];e[r]=oM[aM.PURE].getDefault(iM[i%iM.length])})),e})(),roseType:{enable:!1,type:ZM.AREA},label:{show:!1,params:{position:KM.INSIDE,fontSize:QO.SIZE12,fontWeight:JO.SIZE400,color:{enable:!1,value:"#ffffff"},showTooltip:Object.values(cM)}},labelLine:{show:!1,params:{color:{enable:!1,value:"#ffffff"},length:4,length2:8}}}}))}}),JM=(()=>{const e={};return e[$O.NORMAL]=QM,e})();var eD=Object.freeze({__proto__:null,getDefaultConfigParams:function(){return{dataRange:{start:null,end:null},cell:CM({hasMerged:!0}),stack:{enable:!1,params:[]},summary:{show:!1,name:"",expr:{}},pagination:EM(),showIndex:!0,header:NM(),body:RM(),border:{hasVerticalBorder:!1,hasHorizontalBorder:!0,borderColor:"#ebeef5"}}},reactStyleConfig:IM}),tD=(()=>{const e={};return e[$O.NORMAL]=eD,e})(),nD=(()=>{const e={};return e[JS.BAR]=kM,e[JS.DETAIL]=PM,e[JS.HISTOGRAM_BAR]=YM,e[JS.HISTOGRAM_LINE]=FM,e[JS.HISTOGRAM_MIX]=UM,e[JS.INDICATOR_CARD]=VM,e[JS.PIE]=JM,e[JS.TABLE]=tD,e})();let iD=class extends s.Component{constructor(e){super(e),this.chartRef=s.createRef(),this.padding="7vh 2vh 2vh",this.renderChart=()=>u(this,void 0,void 0,(function*(){const{base_url:e,set_id:t,deviceToken:n}=this.props.gpui.params;if(e&&t&&n){this.timer&&(clearTimeout(this.timer),this.timer=null);try{const{data:i}=yield iO.get(`${e}/set/${t}`,{headers:{"X-Gini-Token":n}}),r=JSON.parse(i.config),a=this.props.gpui.params["@theme"];let o;o=r.style.table[a].enable?r.style[r.render][a].params:yield function({api:e,chartType:t,themeMode:n,setConfig:i}){return u(this,void 0,void 0,(function*(){if(nD[t]&&nD[t][n])return yield nD[t][n].getDefaultConfigParams({setConfig:i,api:e});throw new Error(`style.ts(getDefaultConfigParams): 请检查图表类型和主题风格: ${t}, ${n}`)}))}({chartType:r.render,themeMode:a,setConfig:r,api:null});const s=yield KO({shareId:i.shareId,setConfig:r,getTableColumnValueFunc:()=>{}}),{data:l}=yield iO.post(`${e}/sql`,{config:s,set_id:t,data_start:o.dataRange.start,data_count:o.dataRange.end},{headers:{"X-Gini-Token":n}});this.chart.setOption(this.generateChartOption(l[0].data),{notMerge:!0})}catch(e){console.error("@components:wall-iharbour/analysis-of-startup-use: 组件渲染时发生错误",e)}this.props.gpui.params.interval>0&&(this.timer=setTimeout(this.renderChart,this.props.gpui.params.interval))}})),this.generateChartOption=e=>{const t={};e.forEach((e=>{const n=e.group["仪器名称"],i=e.group["时间"];t[n]=t[n]||{},t[n][i]=Math.round(100*e.data["使用时长"]/3600)/100}));let n=[],i=rO();for(let e=0;e<12;e++)n.push(i.format("yyyy-MM")),i.add(-1,"month");n=n.reverse();const r={color:["#00A1FF","#0BE89C","#F1BE58","#EE8367","#B658F1","#66E8B5","#7A75E0","#51D0E2"],tooltip:{show:!0,formatter:({seriesName:e,name:t,data:n})=>`${e}<br/>${t}: ${n}`},legend:{type:"scroll",data:Object.keys(t),bottom:0,icon:"roundRect",textStyle:{color:"#CDE0FC"},pageIconColor:"#CDE0FC",pageTextStyle:{color:"#CDE0FC"}},xAxis:[{type:"category",data:n,axisLine:{show:!0,lineStyle:{color:"#2B3873"}},axisTick:{show:!1},axisLabel:{show:!0,color:"#CDE0FC"}}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#2B3873",type:"dotted"}},axisLabel:{show:!0,color:"#CDE0FC"}}],series:Object.entries(t).map((([e,t],i)=>({name:e,type:"line",smooth:!0,data:n.map((e=>t[e]))})))};return r},n.reaction((()=>e.gpui.params.padding),(e=>{this.padding=e||"7vh 2vh 2vh"}),{fireImmediately:!0})}componentDidMount(){this.chart=this.chart||zx.init(this.chartRef.current),window.addEventListener("resize",(()=>{this.chart.resize()})),n.reaction((()=>({baseURL:this.props.gpui.params.base_url,setId:this.props.gpui.params.set_id,deviceToken:this.props.gpui.params.deviceToken,interval:this.props.gpui.params.interval})),(()=>{this.renderChart()}),{fireImmediately:!0})}render(){return s.createElement("div",{className:"g__index",style:{padding:this.padding}},s.createElement("div",{className:c},s.createElement("div",{ref:this.chartRef,className:h})))}};return l([n.observable],iD.prototype,"padding",void 0),iD=l([function(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),K&&e.$$typeof===K)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(X&&e.$$typeof===X){var n=e.render;if("function"!=typeof n)throw new Error("render property of ForwardRef was not a function");return t.forwardRef((function(){var e=arguments;return t.createElement(M,null,(function(){return n.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(t.Component,e)?W(e):S(e)}],iD),iD}));
