| 1 |
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var p=function(t,e){return(p=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var y=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},b=new function(){this.browser=new y,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(b.wxa=!0,b.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?b.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(b.node=!0,b.svgSupported=!0):(et=navigator.userAgent,se=(Wt=b).browser,st=et.match(/Firefox\/([\d.]+)/),Z=et.match(/MSIE\s([\d.]+)/)||et.match(/Trident\/.+?rv:(([\d.]+))/),tt=et.match(/Edge?\/([\d.]+)/),et=/micromessenger/i.test(et),st&&(se.firefox=!0,se.version=st[1]),Z&&(se.ie=!0,se.version=Z[1]),tt&&(se.edge=!0,se.version=tt[1],se.newEdge=18<+tt[1].split(".")[0]),et&&(se.weChat=!0),Wt.svgSupported="undefined"!=typeof SVGRect,Wt.touchEventsSupported="ontouchstart"in window&&!se.ie&&!se.edge,Wt.pointerEventsSupported="onpointerdown"in window&&(se.edge||se.ie&&11<=+se.version),Wt.domSupported="undefined"!=typeof document,st=document.documentElement.style,Wt.transform3dSupported=(se.ie&&"transition"in st||se.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in st)&&!("OTransition"in st),Wt.transformSupported=Wt.transform3dSupported||se.ie&&9<=+se.version);var m=12,v="sans-serif",K=m+"px "+v;var x,w,C=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),o=(t.charCodeAt(n)-20)/100;e[i]=o}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),W={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(x||(n=W.createCanvas(),x=n&&n.getContext("2d")),x)return w!==e&&(w=x.font=e||K),x.measureText(t);t=t||"",e=e||K;var n=/(\d+)px/.exec(e),i=n&&+n[1]||m,o=0;if(0<=e.indexOf("mono"))o=i*t.length;else for(var r=0;r<t.length;r++){var a=C[t[r]];o+=null==a?i:a*i}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function A(t){for(var e in W)t[e]&&(W[e]=t[e])}var P=ct(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),X=ct(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),U=Object.prototype.toString,Z=Array.prototype,j=Z.forEach,J=Z.filter,$=Z.slice,Q=Z.map,tt=function(){}.constructor,et=tt?tt.prototype:null,nt="__proto__",it=2311;function ot(){return it++}function rt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function _(t){if(null==t||"object"!=typeof t)return t;var e=t,n=U.call(t);if("[object Array]"===n){if(!Pt(t))for(var e=[],i=0,o=t.length;i<o;i++)e[i]=_(t[i])}else if(X[n]){if(!Pt(t)){var r=t.constructor;if(r.from)e=r.from(t);else{e=new r(t.length);for(i=0,o=t.length;i<o;i++)e[i]=t[i]}}}else if(!P[n]&&!Pt(t)&&!vt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==nt&&(e[a]=_(t[a]));return e}function d(t,e,n){if(!L(e)||!L(t))return n?_(e):t;for(var i in e){var o,r;e.hasOwnProperty(i)&&i!==nt&&(o=t[i],!L(r=e[i])||!L(o)||F(r)||F(o)||vt(r)||vt(o)||yt(r)||yt(o)||Pt(r)||Pt(o)?!n&&i in t||(t[i]=_(e[i])):d(o,r,n))}return t}function at(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=d(n,t[i],e);return n}function O(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==nt&&(t[n]=e[n]);return t}function E(t,e,n){for(var i=N(e),o=0;o<i.length;o++){var r=i[o];(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}var st=W.createCanvas;function I(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function lt(t,e){var n,i=t.prototype;function o(){}for(n in o.prototype=e.prototype,t.prototype=new o,i)i.hasOwnProperty(n)&&(t.prototype[n]=i[n]);(t.prototype.constructor=t).superClass=e}function ut(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var r=i[o];"constructor"!==r&&(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}else E(t,e,n)}function ht(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function R(t,e,n){if(t&&e)if(t.forEach&&t.forEach===j)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function B(t,e,n){if(!t)return[];if(!e)return Tt(t);if(t.map&&t.map===Q)return t.map(e,n);for(var i=[],o=0,r=t.length;o<r;o++)i.push(e.call(n,t[o],o,t));return i}function ct(t,e,n,i){if(t&&e){for(var o=0,r=t.length;o<r;o++)n=e.call(i,n,t[o],o,t);return n}}function pt(t,e,n){if(!t)return[];if(!e)return Tt(t);if(t.filter&&t.filter===J)return t.filter(e,n);for(var i=[],o=0,r=t.length;o<r;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}function N(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}var S=et&&D(et.bind)?et.call.bind(et.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat($.call(arguments)))}};function dt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat($.call(arguments)))}}function F(t){return Array.isArray?Array.isArray(t):"[object Array]"===U.call(t)}function D(t){return"function"==typeof t}function V(t){return"string"==typeof t}function ft(t){return"[object String]"===U.call(t)}function gt(t){return"number"==typeof t}function L(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function yt(t){return!!P[U.call(t)]}function mt(t){return!!X[U.call(t)]}function vt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function _t(t){return null!=t.colorStops}function xt(t){return null!=t.image}function wt(t){return"[object RegExp]"===U.call(t)}function bt(t){return t!=t}function St(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function z(t,e){return null!=t?t:e}function Mt(t,e,n){return null!=t?t:null!=e?e:n}function Tt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return $.apply(t,e)}function Ct(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function It(t,e){if(!t)throw new Error(e)}function Dt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var kt="__ec_primitive__";function At(t){t[kt]=!0}function Pt(t){return t[kt]}Ot.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},Ot.prototype.has=function(t){return this.data.hasOwnProperty(t)},Ot.prototype.get=function(t){return this.data[t]},Ot.prototype.set=function(t,e){return this.data[t]=e,this},Ot.prototype.keys=function(){return N(this.data)},Ot.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var Lt=Ot;function Ot(){this.data={}}var Rt="function"==typeof Map;zt.prototype.hasKey=function(t){return this.data.has(t)},zt.prototype.get=function(t){return this.data.get(t)},zt.prototype.set=function(t,e){return this.data.set(t,e),e},zt.prototype.each=function(n,i){this.data.forEach(function(t,e){n.call(i,t,e)})},zt.prototype.keys=function(){var t=this.data.keys();return Rt?Array.from(t):t},zt.prototype.removeKey=function(t){this.data.delete(t)};var Nt=zt;function zt(t){var n=F(t),i=(this.data=new(Rt?Map:Lt),this);function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof zt?t.each(e):t&&R(t,e)}function G(t){return new Nt(t)}function Et(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var o=t.length,i=0;i<e.length;i++)n[i+o]=e[i];return n}function Bt(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&O(t,e),t}function Ft(t){t=t.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Vt(t,e){return t.hasOwnProperty(e)}function Gt(){}var Ht=180/Math.PI,Wt=Object.freeze({__proto__:null,HashMap:Nt,RADIAN_TO_DEGREE:Ht,assert:It,bind:S,clone:_,concatArray:Et,createCanvas:st,createHashMap:G,createObject:Bt,curry:dt,defaults:E,disableUserSelect:Ft,each:R,eqNaN:bt,extend:O,filter:pt,find:function(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]},guid:ot,hasOwn:Vt,indexOf:I,inherits:lt,isArray:F,isArrayLike:ht,isBuiltInObject:yt,isDom:vt,isFunction:D,isGradientObject:_t,isImagePatternObject:xt,isNumber:gt,isObject:L,isPrimitive:Pt,isRegExp:wt,isString:V,isStringSafe:ft,isTypedArray:mt,keys:N,logError:rt,map:B,merge:d,mergeAll:at,mixin:ut,noop:Gt,normalizeCssArray:Ct,reduce:ct,retrieve:St,retrieve2:z,retrieve3:Mt,setAsPrimitive:At,slice:Tt,trim:Dt});function Xt(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Yt(t,e){return t[0]=e[0],t[1]=e[1],t}function Ut(t){return[t[0],t[1]]}function Zt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function jt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function qt(t){return Math.sqrt(Kt(t))}function Kt(t){return t[0]*t[0]+t[1]*t[1]}function Jt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function $t(t,e){var n=qt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Qt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var te=Qt;function ee(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ne=ee;function ie(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function oe(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function re(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ae(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var se=Object.freeze({__proto__:null,add:Zt,applyTransform:oe,clone:Ut,copy:Yt,create:Xt,dist:te,distSquare:ne,distance:Qt,distanceSquare:ee,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:qt,lenSquare:Kt,length:qt,lengthSquare:Kt,lerp:ie,max:ae,min:re,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:$t,scale:Jt,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:jt}),le=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ue=(he.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new le(e,t),"dragstart",t.event))},he.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(e=t.offsetX,n=t.offsetY,i=e-this._x,o=n-this._y,this._x=e,this._y=n,r.drift(i,o,t),this.handler.dispatchToElement(new le(r,t),"drag",t.event),i=this.handler.findHover(e,n,r).target,o=this._dropTarget,r!==(this._dropTarget=i))&&(o&&i!==o&&this.handler.dispatchToElement(new le(o,t),"dragleave",t.event),i)&&i!==o&&this.handler.dispatchToElement(new le(i,t),"dragenter",t.event)},he.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new le(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new le(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},he);function he(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}pe.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a<o[t].length;a++)if(o[t][a].h===n)return this;r={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=o[t].length-1,i=o[t][e];i&&i.callAtLast?o[t].splice(e,0,r):o[t].push(r)}return this},pe.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},pe.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],o=0,r=n[t].length;o<r;o++)n[t][o].h!==e&&i.push(n[t][o]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},pe.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},pe.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=e[r-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!o||!o.filter||null==u.query||o.filter(t,u.query))switch(r){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,r-1))}}o&&o.afterTrigger&&o.afterTrigger(t)}return this};var ce=pe;function pe(t){t&&(this._$eventProcessor=t)}var de=Math.log(2);function fe(t,e,n,i,o,r){var a,s=i+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/de),t[n][a];for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[n][p]*fe(t,e-1,h,u,o|f,r),d++)}return r[s]=c}function ge(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},o=fe(n,8,0,0,0,i);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*fe(n,7,0===a?1:0,1<<a,1<<s,i)/o*e[a];return function(t,e,n){var i=e*r[6]+n*r[7]+1;t[0]=(e*r[0]+n*r[1]+r[2])/i,t[1]=(e*r[3]+n*r[4]+r[5])/i}}}var ye="___zrEVENTSAVED",me=[];function ve(t,e,n,i,o){if(e.getBoundingClientRect&&b.domSupported&&!_e(e)){var r=e[ye]||(e[ye]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&r&&p===r[c]&&h===r[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=n?ge(s,a):ge(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function _e(t){return"CANVAS"===t.nodeName.toUpperCase()}var xe=/([&<>"'])/g,we={"&":"&","<":"<",">":">",'"':""","'":"'"};function be(t){return null==t?"":(t+"").replace(xe,function(t,e){return we[e]})}var Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=[],Te=b.browser.firefox&&+b.browser.version.split(".")[0]<39;function Ce(t,e,n,i){return n=n||{},i?Ie(t,e,n):Te&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Ie(t,e,n),n}function Ie(t,e,n){if(b.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(_e(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(ve(Me,t,o,e))return n.zrX=Me[0],void(n.zrY=Me[1])}n.zrX=n.zrY=0}function De(t){return t||window.event}function ke(t,e,n){var i;return null==(e=De(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Ce(t,i,e,n):(Ce(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&Se.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}var Ae=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Pe(t){return 2===t.which||3===t.which}Oe.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Oe.prototype.clear=function(){return this._track.length=0,this},Oe.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},r=0,a=i.length;r<a;r++){var s=i[r],l=Ce(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},Oe.prototype._recognize=function(t){for(var e in Ne)if(Ne.hasOwnProperty(e)){e=Ne[e](this._track,t);if(e)return e}};var Le=Oe;function Oe(){this._track=[]}function Re(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var Ne={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=Re(n)/Re(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};function ze(){return[1,0,0,1,0,0]}function Ee(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Be(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Fe(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=n,t}function Ve(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Ge(t,e,n,i){void 0===i&&(i=[0,0]);var o=e[0],r=e[2],a=e[4],s=e[1],l=e[3],e=e[5],u=Math.sin(n),n=Math.cos(n);return t[0]=o*n+s*u,t[1]=-o*u+s*n,t[2]=r*n+l*u,t[3]=-r*u+n*l,t[4]=n*(a-i[0])+u*(e-i[1])+i[0],t[5]=n*(e-i[1])-u*(a-i[0])+i[1],t}function He(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function We(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=n*a-r*i;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*o)*s,t[5]=(r*o-n*e)*s,t):null}function Xe(t){var e=ze();return Be(e,t),e}var Ye=Object.freeze({__proto__:null,clone:Xe,copy:Be,create:ze,identity:Ee,invert:We,mul:Fe,rotate:Ge,scale:He,translate:Ve}),M=(Ue.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Ue.prototype.clone=function(){return new Ue(this.x,this.y)},Ue.prototype.set=function(t,e){return this.x=t,this.y=e,this},Ue.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Ue.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Ue.prototype.scale=function(t){this.x*=t,this.y*=t},Ue.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Ue.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Ue.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Ue.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Ue.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Ue.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Ue.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Ue.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},Ue.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Ue.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},Ue.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Ue.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Ue.set=function(t,e,n){t.x=e,t.y=n},Ue.copy=function(t,e){t.x=e.x,t.y=e.y},Ue.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Ue.lenSquare=function(t){return t.x*t.x+t.y*t.y},Ue.dot=function(t,e){return t.x*e.x+t.y*e.y},Ue.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},Ue.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},Ue.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},Ue.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},Ue.lerp=function(t,e,n,i){var o=1-i;t.x=o*e.x+i*n.x,t.y=o*e.y+i*n.y},Ue);function Ue(t,e){this.x=t||0,this.y=e||0}var Ze=Math.min,je=Math.max,qe=new M,Ke=new M,Je=new M,$e=new M,Qe=new M,tn=new M,Y=(en.prototype.union=function(t){var e=Ze(t.x,this.x),n=Ze(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=je(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=je(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},en.prototype.applyTransform=function(t){en.applyTransform(this,this,t)},en.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=ze();return Ve(i,i,[-this.x,-this.y]),He(i,i,[e,n]),Ve(i,i,[t.x,t.y]),i},en.prototype.intersect=function(t,e){if(!t)return!1;t instanceof en||(t=en.create(t));var n,i,o,r,a,s,l,u,h=this,c=h.x,p=h.x+h.width,d=h.y,h=h.y+h.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||h<y||t<d);return e&&(n=1/0,i=0,o=Math.abs(p-f),r=Math.abs(g-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(o,r),u=Math.min(a,s),p<f||g<c?i<l&&(i=l,o<r?M.set(tn,-o,0):M.set(tn,r,0)):l<n&&(n=l,o<r?M.set(Qe,o,0):M.set(Qe,-r,0)),h<y||t<d?i<u&&(i=u,a<s?M.set(tn,0,-a):M.set(tn,0,s)):l<n&&(n=l,a<s?M.set(Qe,0,a):M.set(Qe,0,-s))),e&&M.copy(e,m?Qe:tn),m},en.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},en.prototype.clone=function(){return new en(this.x,this.y,this.width,this.height)},en.prototype.copy=function(t){en.copy(this,t)},en.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},en.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},en.prototype.isZero=function(){return 0===this.width||0===this.height},en.create=function(t){return new en(t.x,t.y,t.width,t.height)},en.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},en.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],o=n[3],r=n[4],a=n[5],t.x=e.x*i+r,t.y=e.y*o+a,t.width=e.width*i,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(qe.x=Je.x=e.x,qe.y=$e.y=e.y,Ke.x=$e.x=e.x+e.width,Ke.y=Je.y=e.y+e.height,qe.transform(n),$e.transform(n),Ke.transform(n),Je.transform(n),t.x=Ze(qe.x,Ke.x,Je.x,$e.x),t.y=Ze(qe.y,Ke.y,Je.y,$e.y),r=je(qe.x,Ke.x,Je.x,$e.x),a=je(qe.y,Ke.y,Je.y,$e.y),t.width=r-t.x,t.height=a-t.y):t!==e&&en.copy(t,e)},en);function en(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}var nn="silent";function on(){Ae(this.event)}u(sn,rn=ce),sn.prototype.dispose=function(){},sn.prototype.setCursor=function(){};var rn,an=sn;function sn(){var t=null!==rn&&rn.apply(this,arguments)||this;return t.handler=null,t}var ln,un=function(t,e){this.x=t,this.y=e},hn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cn=new Y(0,0,0,0),pn=(u(dn,ln=ce),dn.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(R(hn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},dn.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=gn(this,e,n),o=this._hovered,r=o.target,i=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=i?new un(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==r&&this.dispatchToElement(i,"mouseover",t)},dn.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},dn.prototype.resize=function(){this._hovered=new un(0,0)},dn.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},dn.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},dn.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dn.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+e,r={type:e,event:n,target:(t=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:on};i&&(i[o]&&(r.cancelBubble=!!i[o].call(i,r)),i.trigger(e,r),i=i.__hostTarget||i.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},dn.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),o=new un(t,e);if(fn(i,o,t,e,n),this._pointerSize&&!o.target){for(var r=[],a=this._pointerSize,s=a/2,l=new Y(t-s,e-s,a,a),u=i.length-1;0<=u;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(cn.copy(h.getBoundingRect()),h.transform&&cn.applyTransform(h.transform),cn.intersect(l)&&r.push(h))}if(r.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(fn(r,o,t+d*Math.cos(f),e+d*Math.sin(f),n),o.target)return o}return o},dn.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Le);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new un).target=i.target,this.dispatchToElement(n,e,i.event))},dn);function dn(t,e,n,i,o){var r=ln.call(this)||this;return r._hovered=new un(0,0),r.storage=t,r.painter=e,r.painterRoot=i,r._pointerSize=o,n=n||new an,r.proxy=null,r.setHandlerProxy(n),r._draggingMgr=new ue(r),r}function fn(t,e,n,i,o){for(var r=t.length-1;0<=r;r--){var a=t[r],s=void 0;if(a!==o&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,o=void 0,r=!1;i;){if(!(r=i.ignoreClip?!0:r)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(o=!0);a=i.__hostTarget,i=a||i.parent}return!o||nn}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==nn)){e.target=a;break}}}function gn(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){pn.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=gn(this,i,o);if("mouseup"===a&&r||(n=(e=this.findHover(i,o)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4<te(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var yn=32,mn=7;function vn(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o<n&&i(t[o],t[o-1])<0;)o++;var r=t,a=e,s=o;for(s--;a<s;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o<n&&0<=i(t[o],t[o-1]);)o++;return o-e}function _n(t,e,n,i,o){for(i===e&&i++;i<n;i++){for(var r,a=t[i],s=e,l=i;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function xn(t,e,n,i,o,r){var a=0,s=0,l=1;if(0<r(t,e[n+o])){for(s=i-o;l<s&&0<r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[n+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=o-(l=s<l?s:l),l=o-i}for(a++;a<l;){var u=a+(l-a>>>1);0<r(t,e[n+u])?a=u+1:l=u}return l}function wn(t,e,n,i,o,r){var a=0,s=0,l=1;if(r(t,e[n+o])<0){for(s=o+1;l<s&&r(t,e[n+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=o-(l=s<l?s:l),l=o-u}else{for(s=i-o;l<s&&0<=r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var h=a+(l-a>>>1);r(t,e[n+h])<0?l=h:a=h+1}return l}function bn(A,P){var L,O,R=mn,N=0,z=[];function e(t){var e=L[t],n=O[t],i=L[t+1],o=O[t+1],t=(O[t]=n+o,t===N-3&&(L[t+1]=L[t+2],O[t+1]=O[t+2]),N--,wn(A[i],A,e,n,0,P));if(e+=t,0!=(n-=t)&&0!==(o=xn(A[e+n-1],A,i,o,o-1,P)))if(n<=o){var r=e,a=n,t=i,s=o,l=0;for(l=0;l<a;l++)z[l]=A[r+l];var u=0,h=t,c=r;if(A[c++]=A[h++],0==--s)for(l=0;l<a;l++)A[c+l]=z[u+l];else if(1===a){for(l=0;l<s;l++)A[c+l]=A[h+l];A[c+s]=z[u]}else{for(var p,d,f,g=R;;){d=p=0,f=!1;do{if(P(A[h],z[u])<0){if(A[c++]=A[h++],d++,(p=0)==--s){f=!0;break}}else if(A[c++]=z[u++],p++,d=0,1==--a){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=wn(A[h],z,u,a,0,P))){for(l=0;l<p;l++)A[c+l]=z[u+l];if(c+=p,u+=p,(a-=p)<=1){f=!0;break}}if(A[c++]=A[h++],0==--s){f=!0;break}if(0!==(d=xn(z[u],A,h,s,0,P))){for(l=0;l<d;l++)A[c+l]=A[h+l];if(c+=d,h+=d,0===(s-=d)){f=!0;break}}if(A[c++]=z[u++],1==--a){f=!0;break}}while(g--,mn<=p||mn<=d);if(f)break;g<0&&(g=0),g+=2}if((R=g)<1&&(R=1),1===a){for(l=0;l<s;l++)A[c+l]=A[h+l];A[c+s]=z[u]}else{if(0===a)throw new Error;for(l=0;l<a;l++)A[c+l]=z[u+l]}}}else{var y=e,m=n,v=i,_=o,x=0;for(x=0;x<_;x++)z[x]=A[v+x];var w=y+m-1,b=_-1,S=v+_-1,M=0,T=0;if(A[S--]=A[w--],0==--m)for(M=S-(_-1),x=0;x<_;x++)A[M+x]=z[x];else if(1===_){for(T=(S-=m)+1,M=(w-=m)+1,x=m-1;0<=x;x--)A[T+x]=A[M+x];A[S]=z[b]}else{for(var C=R;;){var I=0,D=0,k=!1;do{if(P(z[b],A[w])<0){if(A[S--]=A[w--],I++,(D=0)==--m){k=!0;break}}else if(A[S--]=z[b--],D++,I=0,1==--_){k=!0;break}}while((I|D)<C);if(k)break;do{if(0!==(I=m-wn(z[b],A,y,m,m-1,P))){for(m-=I,T=(S-=I)+1,M=(w-=I)+1,x=I-1;0<=x;x--)A[T+x]=A[M+x];if(0===m){k=!0;break}}if(A[S--]=z[b--],1==--_){k=!0;break}if(0!==(D=_-xn(A[w],z,0,_,_-1,P))){for(_-=D,T=(S-=D)+1,M=(b-=D)+1,x=0;x<D;x++)A[T+x]=z[M+x];if(_<=1){k=!0;break}}if(A[S--]=A[w--],0==--m){k=!0;break}}while(C--,mn<=I||mn<=D);if(k)break;C<0&&(C=0),C+=2}if((R=C)<1&&(R=1),1===_){for(T=(S-=m)+1,M=(w-=m)+1,x=m-1;0<=x;x--)A[T+x]=A[M+x];A[S]=z[b]}else{if(0===_)throw new Error;for(M=S-(_-1),x=0;x<_;x++)A[M+x]=z[x]}}}}return L=[],O=[],{mergeRuns:function(){for(;1<N;){var t=N-2;if(1<=t&&O[t-1]<=O[t]+O[t+1]||2<=t&&O[t-2]<=O[t]+O[t-1])O[t-1]<O[t+1]&&t--;else if(O[t]>O[t+1])break;e(t)}},forceMergeRuns:function(){for(;1<N;){var t=N-2;0<t&&O[t-1]<O[t+1]&&t--,e(t)}},pushRun:function(t,e){L[N]=t,O[N]=e,N+=1}}}function Sn(t,e,n,i){var o=(i=i||t.length)-(n=n||0);if(!(o<2)){var r=0;if(o<yn)_n(t,n,i,n+(r=vn(t,n,i,e)),e);else{var a,s=bn(t,e),l=function(t){for(var e=0;yn<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=vn(t,n,i,e))<l&&(_n(t,n,n+(a=l<(a=o)?l:o),n+r,e),r=a),s.pushRun(n,r),s.mergeRuns(),n+=r,0!==(o-=r));s.forceMergeRuns()}}}var Mn=1,Tn=4,Cn=!1;function In(){Cn||(Cn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Dn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}An.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},An.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},An.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,o=e.length;i<o;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Sn(n,Dn)},An.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var o=i,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),o=(r=o).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Mn),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{i=t;e&&e.length?i.__clipPaths=e:i.__clipPaths&&0<i.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(In(),i.z=0),isNaN(i.z2)&&(In(),i.z2=0),isNaN(i.zlevel)&&(In(),i.zlevel=0),this._displayList[this._displayListLen++]=i}i=t.getDecalElement&&t.getDecalElement(),i=(i&&this._updateAndAddDisplayable(i,e,n),t.getTextGuideLine()),i=(i&&this._updateAndAddDisplayable(i,e,n),t.getTextContent());i&&this._updateAndAddDisplayable(i,e,n)}},An.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},An.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=I(this._roots,t);0<=i&&this._roots.splice(i,1)}},An.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},An.prototype.getRoots=function(){return this._roots},An.prototype.dispose=function(){this._displayList=null,this._roots=null};var kn=An;function An(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Dn}var Pn=b.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Ln={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-Ln.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ln.bounceIn(2*t):.5*Ln.bounceOut(2*t-1)+.5}},On=Math.pow,Rn=Math.sqrt,Nn=1e-8,zn=Rn(3),En=1/3,Bn=Xt(),Fn=Xt(),Vn=Xt();function Gn(t){return-Nn<t&&t<Nn}function Hn(t){return Nn<t||t<-Nn}function Wn(t,e,n,i,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function Xn(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function Yn(t,e,n,i,o,r){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-o,o=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return Gn(o)&&Gn(l)?Gn(n)?r[0]=0:0<=(a=-e/n)&&a<=1&&(r[u++]=a):Gn(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-n/i+t)&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s)):0<e?(e=o*n+1.5*i*(-l-(t=Rn(e))),0<=(a=(-n-((t=(t=o*n+1.5*i*(-l+t))<0?-On(-t,En):On(t,En))+(e=e<0?-On(-e,En):On(e,En))))/(3*i))&&a<=1&&(r[u++]=a)):(t=(2*o*n-3*i*l)/(2*Rn(o*o*o)),e=Math.acos(t)/3,a=(-n-2*(l=Rn(o))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+zn*Math.sin(e)))/(3*i),o=(-n+l*(t-zn*Math.sin(e)))/(3*i),0<=a&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s),0<=o&&o<=1&&(r[u++]=o)),u}function Un(t,e,n,i,o){var r,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return Gn(i)?Hn(a)&&0<=(r=-n/a)&&r<=1&&(o[e++]=r):Gn(t=a*a-4*i*n)?o[0]=-a/(2*i):0<t&&(t=(-a-(n=Rn(t)))/(2*i),0<=(r=(-a+n)/(2*i))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function Zn(t,e,n,i,o,r){var a=(e-t)*o+t,e=(n-e)*o+e,n=(i-n)*o+n,s=(e-a)*o+a,e=(n-e)*o+e,o=(e-s)*o+s;r[0]=t,r[1]=a,r[2]=s,r[3]=o,r[4]=o,r[5]=e,r[6]=n,r[7]=i}function jn(t,e,n,i,o,r,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;Bn[0]=l,Bn[1]=u;for(var m=0;m<1;m+=.05)Fn[0]=Wn(t,n,o,a,m),Fn[1]=Wn(e,i,r,s,m),(d=ne(Bn,Fn))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,Fn[0]=Wn(t,n,o,a,f=c-g),Fn[1]=Wn(e,i,r,s,f),d=ne(Fn,Bn),0<=f&&d<y?(c=f,y=d):(Vn[0]=Wn(t,n,o,a,p),Vn[1]=Wn(e,i,r,s,p),f=ne(Vn,Bn),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Wn(t,n,o,a,c),h[1]=Wn(e,i,r,s,c)),Rn(y)}function qn(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function Kn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Jn(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function $n(t,e,n,i,o){var r=(e-t)*i+t,e=(n-e)*i+e,i=(e-r)*i+r;o[0]=t,o[1]=r,o[2]=i,o[3]=i,o[4]=e,o[5]=n}function Qn(t,e,n,i,o,r,a,s,l){var u,h=.005,c=1/0;Bn[0]=a,Bn[1]=s;for(var p=0;p<1;p+=.05)Fn[0]=qn(t,n,o,p),Fn[1]=qn(e,i,r,p),(y=ne(Bn,Fn))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<1e-4);d++){var f=u-h,g=u+h,y=(Fn[0]=qn(t,n,o,f),Fn[1]=qn(e,i,r,f),ne(Fn,Bn));0<=f&&y<c?(u=f,c=y):(Vn[0]=qn(t,n,o,g),Vn[1]=qn(e,i,r,g),f=ne(Vn,Bn),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=qn(t,n,o,u),l[1]=qn(e,i,r,u)),Rn(c)}var ti=/cubic-bezier\(([0-9,\.e ]+)\)/;function ei(t){t=t&&ti.exec(t);if(t){var e,t=t[1].split(","),n=+Dt(t[0]),i=+Dt(t[1]),o=+Dt(t[2]),r=+Dt(t[3]);if(!isNaN(n+i+o+r))return e=[],function(t){return t<=0?0:1<=t?1:Yn(0,n,o,1,t,e)&&Wn(0,i,r,1,e[0])}}}ii.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,o=i/n,r=(o<0&&(o=0),o=Math.min(o,1),this.easingFunc),r=r?r(o):o;if(this.onframe(r),1===o){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},ii.prototype.pause=function(){this._paused=!0},ii.prototype.resume=function(){this._paused=!1},ii.prototype.setEasing=function(t){this.easing=t,this.easingFunc=D(t)?t:Ln[t]||ei(t)};var ni=ii;function ii(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Gt,this.ondestroy=t.ondestroy||Gt,this.onrestart=t.onrestart||Gt,t.easing&&this.setEasing(t.easing)}var oi=function(t){this.value=t},ri=(ai.prototype.insert=function(t){t=new oi(t);return this.insertEntry(t),t},ai.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},ai.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},ai.prototype.len=function(){return this._len},ai.prototype.clear=function(){this.head=this.tail=null,this._len=0},ai);function ai(){this._len=0}li.prototype.put=function(t,e){var n,i,o=this._list,r=this._map,a=null;return null==r[t]&&(i=o.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=o.head,o.remove(i),delete r[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new oi(e),n.key=t,o.insertEntry(n),r[t]=n),a},li.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},li.prototype.clear=function(){this._list.clear(),this._map={}},li.prototype.len=function(){return this._list.len()};var si=li;function li(t){this._list=new ri,this._maxSize=10,this._map={},this._maxSize=t}var ui={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 hi(t){return(t=Math.round(t))<0?0:255<t?255:t}function ci(t){return t<0?0:1<t?1:t}function pi(t){return t.length&&"%"===t.charAt(t.length-1)?hi(parseFloat(t)/100*255):hi(parseInt(t,10))}function di(t){return t.length&&"%"===t.charAt(t.length-1)?ci(parseFloat(t)/100):ci(parseFloat(t))}function fi(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function gi(t,e,n){return t+(e-t)*n}function yi(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function mi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var vi=new si(20),_i=null;function xi(t,e){_i&&mi(_i,e),_i=vi.put(t,_i||e.slice())}function wi(t,e){if(t){e=e||[];var n=vi.get(t);if(n)return mi(e,n);n=(t+="").replace(/ /g,"").toLowerCase();if(n in ui)return mi(e,ui[n]),xi(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(o=parseInt(n.slice(1,4),16))&&o<=4095?(yi(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(n.slice(4),16)/15:1),xi(t,e),e):void yi(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(yi(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),xi(t,e),e):void yi(e,0,0,0,1):void 0;var o=n.indexOf("("),r=n.indexOf(")");if(-1!==o&&r+1===i){var i=n.substr(0,o),a=n.substr(o+1,r-(o+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?yi(e,+a[0],+a[1],+a[2],1):yi(e,0,0,0,1);s=di(a.pop());case"rgb":return 3<=a.length?(yi(e,pi(a[0]),pi(a[1]),pi(a[2]),3===a.length?s:di(a[3])),xi(t,e),e):void yi(e,0,0,0,1);case"hsla":return 4!==a.length?void yi(e,0,0,0,1):(a[3]=di(a[3]),bi(a,e),xi(t,e),e);case"hsl":return 3!==a.length?void yi(e,0,0,0,1):(bi(a,e),xi(t,e),e);default:return}}yi(e,0,0,0,1)}}function bi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=di(t[1]),o=di(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return yi(e=e||[],hi(255*fi(o,i,n+1/3)),hi(255*fi(o,i,n)),hi(255*fi(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Si(t,e){var n=wi(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return Ii(n,4===n.length?"rgba":"rgb")}}function Mi(t,e,n){var i,o,r;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t=t*(e.length-1),i=Math.floor(t),r=Math.ceil(t),o=e[i],e=e[r],n[0]=hi(gi(o[0],e[0],r=t-i)),n[1]=hi(gi(o[1],e[1],r)),n[2]=hi(gi(o[2],e[2],r)),n[3]=ci(gi(o[3],e[3],r)),n}var Ti=Mi;function Ci(t,e,n){var i,o,r,a;if(e&&e.length&&0<=t&&t<=1)return t=t*(e.length-1),i=Math.floor(t),o=Math.ceil(t),a=wi(e[i]),e=wi(e[o]),a=Ii([hi(gi(a[0],e[0],r=t-i)),hi(gi(a[1],e[1],r)),hi(gi(a[2],e[2],r)),ci(gi(a[3],e[3],r))],"rgba"),n?{color:a,leftIndex:i,rightIndex:o,value:t}:a}var e=Ci;function Ii(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function Di(t,e){t=wi(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var ki=new si(100);function Ai(t){var e;return V(t)?((e=ki.get(t))||(e=Si(t,-.1),ki.put(t,e)),e):_t(t)?((e=O({},t)).colorStops=B(t.colorStops,function(t){return{offset:t.offset,color:Si(t.color,-.1)}}),e):t}var Ti=Object.freeze({__proto__:null,fastLerp:Mi,fastMapToColor:Ti,lerp:Ci,lift:Si,liftColor:Ai,lum:Di,mapToColor:e,modifyAlpha:function(t,e){if((t=wi(t))&&null!=e)return t[3]=ci(e),Ii(t,"rgba")},modifyHSL:function(t,e,n,i){var o=wi(t);if(t)return o=function(t){var e,n,i,o,r,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(h,e,n),o=((i=Math.max(h,e,n))+s)/2,0==(u=i-s)?a=r=0:(a=o<.5?u/(i+s):u/(2-i-s),s=((i-h)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,h===i?r=u-l:e===i?r=1/3+s-u:n===i&&(r=2/3+l-s),r<0&&(r+=1),1<r&&--r),h=[360*r,a,o],null!=t[3]&&h.push(t[3]),h}(o),null!=e&&(o[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(o[1]=di(n)),null!=i&&(o[2]=di(i)),Ii(bi(o),"rgba")},parse:wi,random:function(){return Ii([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Ii,toHex:function(t){if(t=wi(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),Pi=Math.round;function Li(t){var e,n;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(n=wi(t))&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3]):t="none",{color:t,opacity:null==e?1:e}}function Oi(t){return t<1e-4&&-1e-4<t}function Ri(t){return Pi(1e3*t)/1e3}function Ni(t){return Pi(1e4*t)/1e4}var zi={left:"start",right:"end",center:"middle",middle:"middle"};function Ei(t){return t&&!!t.image}function Bi(t){return Ei(t)||(t=t)&&!!t.svgElement}function Fi(t){return"linear"===t.type}function Vi(t){return"radial"===t.type}function Gi(t){return t&&("linear"===t.type||"radial"===t.type)}function Hi(t){return"url(#"+t+")"}function Wi(t){t=t.getGlobalScale(),t=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Xi(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Ht,o=z(t.scaleX,1),r=z(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||n)&&s.push("translate("+e+"px,"+n+"px)"),i&&s.push("rotate("+i+")"),1===o&&1===r||s.push("scale("+o+","+r+")"),(a||t)&&s.push("skew("+Pi(a*Ht)+"deg, "+Pi(t*Ht)+"deg)"),s.join(" ")}var Yi=b.hasGlobalWindow&&D(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Ui=Array.prototype.slice;function Zi(t,e,n){return(e-t)*n+t}function ji(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=Zi(e[r],n[r],i);return t}function qi(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+n[r]*i;return t}function Ki(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ji(t){if(ht(t)){var e=t.length;if(ht(t[0])){for(var n=[],i=0;i<e;i++)n.push(Ui.call(t[i]));return n}return Ui.call(t)}return t}function $i(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Qi(t){return 4===t||5===t}function to(t){return 1===t||2===t}var eo=[0,0,0,0],no=(io.prototype.isFinished=function(){return this._finished},io.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},io.prototype.needsAnimate=function(){return 1<=this.keyframes.length},io.prototype.getAdditiveTrack=function(){return this._additiveTrack},io.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,o=this.keyframes,r=o.length,a=!1,s=6,l=e,u=(ht(e)?(1==(s=i=ht((i=e)&&i[0])?2:1)&&!gt(e[0])||2==i&&!gt(e[0][0]))&&(a=!0):gt(e)&&!bt(e)?s=0:V(e)?isNaN(+e)?(i=wi(e))&&(l=i,s=3):s=0:_t(e)&&((u=O({},l)).colorStops=B(e.colorStops,function(t){return{offset:t.offset,color:wi(t.color)}}),Fi(e)?s=4:Vi(e)&&(s=5),l=u),0===r?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:l,rawValue:e,percent:0});return n&&(u.easing=n,u.easingFunc=D(n)?n:Ln[n]||ei(n)),o.push(u),u},io.prototype.prepare=function(t,e){for(var n=this.keyframes,i=(this._needsSort&&n.sort(function(t,e){return t.time-e.time}),this.valType),o=n.length,r=n[o-1],a=this.discrete,s=to(i),l=Qi(i),u=0;u<o;u++){var h=n[u],c=h.value,p=r.value;if(h.percent=h.time/t,!a)if(s&&u!==o-1){x=_=v=m=y=g=f=d=h=void 0;var d=p,f=i,g=h=c,y=d;if(g.push&&y.push){var h=g.length,m=y.length;if(h!==m)if(m<h)g.length=m;else for(var v=h;v<m;v++)g.push(1===f?y[v]:Ui.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){T=M=S=b=w=h=d=void 0;for(var d=c.colorStops,h=p.colorStops,w=d.length,b=h.length,S=b<w?h:d,h=Math.min(w,b),M=S[h-1]||{color:[0,0,0,0],offset:0},T=h;T<Math.max(w,b);T++)S.push({offset:M.offset,color:M.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var C=n[0].value,u=0;u<o;u++)0===i?n[u].additiveValue=n[u].value-C:3===i?n[u].additiveValue=qi([],n[u].value,C,-1):to(i)&&(n[u].additiveValue=(1===i?qi:Ki)([],n[u].value,C,-1))}},io.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,o,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===h)n=i=u[0];else{if(e<0)g=0;else if(e<this._lastFrP){for(var g=f(d+1,h-1);0<=g&&!(u[g].percent<=e);g--);g=f(g,h-2)}else{for(g=d;g<h&&!(u[g].percent>e);g++);g=f(g-1,h-2)}i=u[g+1],n=u[g]}n&&i&&(this._lastFr=g,this._lastFrP=e,d=i.percent-n.percent,o=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(o=i.easingFunc(o)),f=a?this._additiveValue:p?eo:t[c],(to(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(o<1?n:i).rawValue:to(l)?(1===l?ji:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=Zi(e[a][s],n[a][s],i)}})(f,n[s],i[s],o):Qi(l)?(d=n[s],r=i[s],t[c]={type:(l=4===l)?"linear":"radial",x:Zi(d.x,r.x,o),y:Zi(d.y,r.y,o),colorStops:B(d.colorStops,function(t,e){e=r.colorStops[e];return{offset:Zi(t.offset,e.offset,o),color:$i(ji([],t.color,e.color,o))}}),global:r.global},l?(t[c].x2=Zi(d.x2,r.x2,o),t[c].y2=Zi(d.y2,r.y2,o)):t[c].r=Zi(d.r,r.r,o)):p?(ji(f,n[s],i[s],o),a||(t[c]=$i(f))):(l=Zi(n[s],i[s],o),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},io.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(wi(t[n],eo),qi(eo,eo,i,1),t[n]=$i(eo)):1===e?qi(t[n],t[n],i,1):2===e&&Ki(t[n],t[n],i,1)},io);function io(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}ro.prototype.getMaxTime=function(){return this._maxTime},ro.prototype.getDelay=function(){return this._delay},ro.prototype.getLoop=function(){return this._loop},ro.prototype.getTarget=function(){return this._target},ro.prototype.changeTarget=function(t){this._target=t},ro.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,N(e),n)},ro.prototype.whenWithKeys=function(t,e,n,i){for(var o=this._tracks,r=0;r<n.length;r++){var a=n[r];if(!(l=o[a])){var s,l=o[a]=new no(a),u=void 0,h=this._getAdditiveTrack(a);if(h?(u=(s=(s=h.keyframes)[s.length-1])&&s.value,3===h.valType&&(u=u&&$i(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,Ji(u),i),this._trackKeys.push(a)}l.addKeyframe(t,Ji(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},ro.prototype.pause=function(){this._clip.pause(),this._paused=!0},ro.prototype.resume=function(){this._clip.resume(),this._paused=!1},ro.prototype.isPaused=function(){return!!this._paused},ro.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},ro.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},ro.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},ro.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},ro.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(t);o&&(e=o)}return e},ro.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,r=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],o=this._getAdditiveTrack(o),l=s.keyframes,u=l.length;s.prepare(n,o),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((o=l[u-1])&&(r._target[s.propName]=o.rawValue),s.setFinished()):a.push(s))}return a.length||this._force?(e=new ni({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){r._started=2;var e=r._additiveAnimators;if(e){for(var n=!1,i=0;i<e.length;i++)if(e[i]._clip){n=!0;break}n||(r._additiveAnimators=null)}for(i=0;i<a.length;i++)a[i].step(r._target,t);var o=r._onframeCbs;if(o)for(i=0;i<o.length;i++)o[i](r._target,t)},ondestroy:function(){r._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},ro.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},ro.prototype.delay=function(t){return this._delay=t,this},ro.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},ro.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},ro.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},ro.prototype.getClip=function(){return this._clip},ro.prototype.getTrack=function(t){return this._tracks[t]},ro.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},ro.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var r=n[t[o]];r&&!r.isFinished()&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o<i.length;o++)if(!n[i[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},ro.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var o=e[i],r=this._tracks[o];r&&!r.isFinished()&&(r=(r=r.keyframes)[n?0:r.length-1])&&(t[o]=Ji(r.rawValue))}}},ro.prototype.__changeFinalValue=function(t,e){e=e||N(t);for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];r&&1<(i=r.keyframes).length&&(i=i.pop(),r.addKeyframe(i.time,t[o]),r.prepare(this._maxTime,r.getAdditiveTrack()))}};var oo=ro;function ro(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?rt("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function ao(){return(new Date).getTime()}u(uo,so=ce),uo.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},uo.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},uo.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},uo.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},uo.prototype.update=function(t){for(var e=ao()-this._pausedTime,n=e-this._time,i=this._head;i;)var o=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),o);this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},uo.prototype._startLoop=function(){var e=this;this._running=!0,Pn(function t(){e._running&&(Pn(t),e._paused||e.update())})},uo.prototype.start=function(){this._running||(this._time=ao(),this._pausedTime=0,this._startLoop())},uo.prototype.stop=function(){this._running=!1},uo.prototype.pause=function(){this._paused||(this._pauseStart=ao(),this._paused=!0)},uo.prototype.resume=function(){this._paused&&(this._pausedTime+=ao()-this._pauseStart,this._paused=!1)},uo.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},uo.prototype.isFinished=function(){return null==this._head},uo.prototype.animate=function(t,e){e=e||{},this.start();t=new oo(t,e.loop);return this.addAnimator(t),t};var so,lo=uo;function uo(t){var e=so.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}var ho,co=b.domSupported,po=(ho={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:B(e,function(t){var e=t.replace("mouse","pointer");return ho.hasOwnProperty(e)?e:t})}),fo=["mousemove","mouseup"],go=["pointermove","pointerup"],yo=!1;function mo(t){t=t.pointerType;return"pen"===t||"touch"===t}function vo(t){t&&(t.zrByTouch=!0)}function _o(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var xo=function(t,e){this.stopPropagation=Gt,this.stopImmediatePropagation=Gt,this.preventDefault=Gt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},wo={mousedown:function(t){t=ke(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ke(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ke(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){_o(this,(t=ke(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){yo=!0,t=ke(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){yo||(t=ke(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){vo(t=ke(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),wo.mousemove.call(this,t),wo.mousedown.call(this,t)},touchmove:function(t){vo(t=ke(this.dom,t)),this.handler.processGesture(t,"change"),wo.mousemove.call(this,t)},touchend:function(t){vo(t=ke(this.dom,t)),this.handler.processGesture(t,"end"),wo.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&wo.click.call(this,t)},pointerdown:function(t){wo.mousedown.call(this,t)},pointermove:function(t){mo(t)||wo.mousemove.call(this,t)},pointerup:function(t){wo.mouseup.call(this,t)},pointerout:function(t){mo(t)||wo.mouseout.call(this,t)}},bo=(R(["click","dblclick","contextmenu"],function(e){wo[e]=function(t){t=ke(this.dom,t),this.trigger(e,t)}}),{pointermove:function(t){mo(t)||bo.mousemove.call(this,t)},pointerup:function(t){bo.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}});function So(i,o){var r=o.domHandlers;b.pointerEventsSupported?R(po.pointer,function(e){To(o,e,function(t){r[e].call(i,t)})}):(b.touchEventsSupported&&R(po.touch,function(n){To(o,n,function(t){var e;r[n].call(i,t),(e=o).touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)})}),R(po.mouse,function(e){To(o,e,function(t){t=De(t),o.touching||r[e].call(i,t)})}))}function Mo(i,o){function t(n){To(o,n,function(t){var e;t=De(t),_o(i,t.target)||(e=t,t=ke(i.dom,new xo(i,e),!0),o.domHandlers[n].call(i,t))},{capture:!0})}b.pointerEventsSupported?R(go,t):b.touchEventsSupported||R(fo,t)}function To(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t.domTarget.addEventListener(e,n,i)}function Co(t){var e,n,i,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,o=a[i=e],r=t.listenerOpts[e],n.removeEventListener(i,o,r));t.mounted={}}var Io,Do=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},ko=(u(Ao,Io=ce),Ao.prototype.dispose=function(){Co(this._localHandlerScope),co&&Co(this._globalHandlerScope)},Ao.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},Ao.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,co&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Mo(this,e):Co(e))},Ao);function Ao(t,e){var n=Io.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Do(t,wo),co&&(n._globalHandlerScope=new Do(document,bo)),So(n,n._localHandlerScope),n}var e=1,Po=e=b.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):e,Lo="#333",Oo="#ccc",Ro=Ee;function No(t){return 5e-5<t||t<-5e-5}var zo=[],Eo=[],Bo=ze(),Fo=Math.abs,Vo=(Go.prototype.getLocalTransform=function(t){return Go.getLocalTransform(this,t)},Go.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},Go.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},Go.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},Go.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},Go.prototype.needLocalTransform=function(){return No(this.rotation)||No(this.x)||No(this.y)||No(this.scaleX-1)||No(this.scaleY-1)||No(this.skewX)||No(this.skewY)},Go.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||ze(),e?this.getLocalTransform(n):Ro(n),t&&(e?Fe(n,t,n):Be(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Ro(n),this.invTransform=null)},Go.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(zo),n=((zo[1]-(n=zo[1]<0?-1:1))*i+n)/zo[1]||0,t[0]*=i=((zo[0]-(e=zo[0]<0?-1:1))*i+e)/zo[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||ze(),We(this.invTransform,t)},Go.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},Go.prototype.setLocalTransform=function(t){var e,n,i,o;t&&(o=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),o=Math.sqrt(o),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=i,this.originX=0,this.originY=0)},Go.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||ze(),Fe(Eo,e.invTransform,t),t=Eo),e=this.originX,n=this.originY,(e||n)&&(Bo[4]=e,Bo[5]=n,Fe(Eo,t,Bo),Eo[4]-=e,Eo[5]-=n,t=Eo),this.setLocalTransform(t))},Go.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},Go.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&oe(t,t,e),t},Go.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&oe(t,t,e),t},Go.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Fo(t[0]-1)&&1e-10<Fo(t[3]-1)?Math.sqrt(Fo(t[0]*t[3]-t[2]*t[1])):1},Go.prototype.copyTransform=function(t){Wo(this,t)},Go.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return n||i||a||s?(e[4]=-(a=n+a)*o-c*(s=i+s)*r,e[5]=-s*r-t*a*o):e[4]=e[5]=0,e[0]=o,e[3]=r,e[1]=t*o,e[2]=c*r,l&&Ge(e,e,l),e[4]+=n+u,e[5]+=i+h,e},Go.initDefaultProps=((e=Go.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),Go);function Go(){}var Ho=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Wo(t,e){for(var n=0;n<Ho.length;n++){var i=Ho[n];t[i]=e[i]}}var Xo={};function Yo(t,e){var n=Xo[e=e||K],i=(n=n||(Xo[e]=new si(500))).get(t);return null==i&&(i=W.measureText(t,e).width,n.put(t,i)),i}function Uo(t,e,n,i){t=Yo(t,e),e=Ko(e),n=jo(0,t,n),i=qo(0,e,i);return new Y(n,i,t,e)}function Zo(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return Uo(o[0],e,n,i);for(var r=new Y(0,0,0,0),a=0;a<o.length;a++){var s=Uo(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function jo(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function qo(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Ko(t){return Yo("国",t)}function Jo(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function $o(t,e,n){var i=e.position||"inside",o=null!=e.distance?e.distance:5,r=n.height,a=n.width,s=r/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=Jo(i[0],n.width),u+=Jo(i[1],n.height),c=h=null;else switch(i){case"left":l-=o,u+=s,h="right",c="middle";break;case"right":l+=o+a,u+=s,c="middle";break;case"top":l+=a/2,u-=o,h="center",c="bottom";break;case"bottom":l+=a/2,u+=r+o,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=o,u+=s,c="middle";break;case"insideRight":l+=a-o,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=o,h="center";break;case"insideBottom":l+=a/2,u+=r-o,h="center",c="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,h="right";break;case"insideBottomLeft":l+=o,u+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Qo,tr="__zr_normal__",er=Ho.concat(["ignore"]),nr=ct(Ho,function(t,e){return t[e]=!0,t},{ignore:!1}),ir={},or=new Y(0,0,0,0),e=(n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e,n,i,o,r,a,s,l,u,h,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,i=n=void 0,o=!1,(e=c.innerTransformable).parent=l?this:null,h=!1,e.copyTransform(c),null!=t.position&&(u=or,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ir,t,u):$o(ir,t,u),e.x=ir.x,e.y=ir.y,n=ir.align,i=ir.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*u.width,.5*u.height):(a=Jo(r[0],u.width),Jo(r[1],u.height)),h=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y)),null!=t.rotation&&(e.rotation=t.rotation),(r=t.offset)&&(e.x+=r[0],e.y+=r[1],h||(e.originX=-r[0],e.originY=-r[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),h=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&h===s.autoStroke&&n===s.align&&i===s.verticalAlign||(o=!0,s.fill=l,s.stroke=u,s.autoStroke=h,s.align=n,s.verticalAlign=i,c.setDefaultTextStyle(s)),c.__dirty|=Mn,o&&c.dirtyStyle(!0))},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Oo:Lo},n.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&wi(e),i=(n=n||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)n[r]=n[r]*i+(o?0:255)*(1-i);return n[3]=1,Ii(n,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},O(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(L(t))for(var n=N(t),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;i.getLoop()||o&&o!==tr||(o=(o=i.targetName)?e[o]:e,i.saveTo(o))}},n.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,er)},n.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null==t[o]||o in e||(e[o]=this[o])}},n.prototype.hasState=function(){return 0<this.currentStates.length},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(tr,!1,t)},n.prototype.useState=function(t,e,n,i){var o=t===tr,r=this.hasState();if(r||!o){var a,r=this.currentStates,s=this.stateTransition;if(!(0<=I(r,t))||!e&&1!==r.length){if((a=(a=this.stateProxy&&!o?this.stateProxy(t):a)||this.states&&this.states[t])||o)return o||this.saveCurrentToNormalState(a),(r=!!(a&&a.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,a,this._normalState,e,!n&&!this.__inHover&&s&&0<s.duration,s),i=this._textContent,s=this._textGuide,i&&i.useState(t,e,n,r),s&&s.useState(t,e,n,r),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!r&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Mn),a;rt("State "+t+" not exists.")}}},n.prototype.useStates=function(t,e,n){if(t.length){var i=[],o=this.currentStates,r=t.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(t[s]!==o[s]){a=!1;break}if(!a){for(s=0;s<r;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[r-1],h=!!(h&&h.hoverLayer||n),n=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),c=this.stateTransition,n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;n&&n.useStates(t,e,h),c&&c.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Mn)}}else this.clearStates()},n.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},n.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e,t=I(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},n.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=I(i,t),o=0<=I(i,e);0<=t?o?i.splice(t,1):i[t]=e:n&&!o&&i.push(e),this.useStates(i)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var o=t[i];O(n,o),o.textConfig&&O(e=e||{},o.textConfig)}return e&&(n.textConfig=e),n},n.prototype._applyStateObj=function(t,e,n,i,o,r){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=O({},(i?this:n).textConfig),O(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),l=!1,u=0;u<er.length;u++){var h=er[u],c=o&&nr[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!o)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,r)},n.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},n.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},n.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Vo,this._attachComponent(t),this._textContent=t,this.markRedraw())},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=Mn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},n.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},n.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},n.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new oo(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},n.prototype.addAnimator=function(n,t){var e=this.__zr,i=this;n.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,e=I(t,n);0<=e&&t.splice(e,1)}),this.animators.push(n),e&&e.animation.addAnimator(n),e&&e.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,o=[],r=0;r<i;r++){var a=n[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},n.prototype.animateTo=function(t,e,n){ar(this,t,e,n)},n.prototype.animateFrom=function(t,e,n){ar(this,t,e,n,!0)},n.prototype._transitionState=function(t,e,n,i){for(var o=ar(this,e,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=t},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=((Qo=n.prototype).type="element",Qo.name="",Qo.ignore=Qo.silent=Qo.isGroup=Qo.draggable=Qo.dragging=Qo.ignoreClip=Qo.__inHover=!1,Qo.__dirty=Mn,void(Object.defineProperty&&(rr("position","_legacyPos","x","y"),rr("scale","_legacyScale","scaleX","scaleY"),rr("origin","_legacyOrigin","originX","originY")))),n);function n(t){this.id=it++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function rr(t,e,n,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[n]},set:function(t){e[n]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(Qo,t,{get:function(){var t;return this[e]||(t=this[e]=[],o(this,t)),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,o(this,t)}})}function ar(t,e,n,i,o){function r(){u=!0,--l<=0&&(u?h&&h():c&&c())}function a(){--l<=0&&(u?h&&h():c&&c())}var s=[],l=(!function t(e,n,i,o,r,a,s,l){var u=N(o);var h=r.duration;var c=r.delay;var p=r.additive;var d=r.setToFinal;var f=!L(a);var g=e.animators;var y=[];for(var m=0;m<u.length;m++){var v=u[m],_=o[v];null!=_&&null!=i[v]&&(f||a[v])?!L(_)||ht(_)||_t(_)?y.push(v):n?l||(i[v]=_,e.updateDuringAnimation(n)):t(e,v,i[v],_,r,a&&a[v],s,l):l||(i[v]=_,e.updateDuringAnimation(n),y.push(v))}var x=y.length;if(!p&&x)for(var w,b=0;b<g.length;b++)(S=g[b]).targetName===n&&S.stopTracks(y)&&(w=I(g,S),g.splice(w,1));r.force||(y=pt(y,function(t){return!ur(o[t],i[t])}),x=y.length);if(0<x||r.force&&!s.length){var S,M=void 0,T=void 0,C=void 0;if(l){T={},d&&(M={});for(b=0;b<x;b++){v=y[b];T[v]=i[v],d?M[v]=o[v]:i[v]=o[v]}}else if(d){C={};for(b=0;b<x;b++){v=y[b];C[v]=Ji(i[v]),lr(i,o,v)}}(S=new oo(i,!1,!1,p?pt(g,function(t){return t.targetName===n}):null)).targetName=n,r.scope&&(S.scope=r.scope),d&&M&&S.whenWithKeys(0,M,y),C&&S.whenWithKeys(0,C,y),S.whenWithKeys(null==h?500:h,l?T:o,y).delay(c||0),e.addAnimator(S,n),s.push(S)}}(t,"",t,e,n=n||{},i,s,o),s.length),u=!1,h=n.done,c=n.aborted;l||h&&h(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var p=0;p<s.length;p++){var d=s[p];d.done(r),d.aborted(a),n.force&&d.duration(n.duration),d.start(n.easing)}return s}function sr(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function lr(t,e,n){if(ht(e[n]))if(ht(t[n])||(t[n]=[]),mt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),sr(t[n],e[n],i))}else{var o=e[n],r=t[n],a=o.length;if(ht(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?sr(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else sr(r,o,a);r.length=o.length}else t[n]=e[n]}function ur(t,e){return t===e||ht(t)&&ht(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}ut(e,ce),ut(e,Vo);u(cr,hr=e),cr.prototype.childrenRef=function(){return this._children},cr.prototype.children=function(){return this._children.slice()},cr.prototype.childAt=function(t){return this._children[t]},cr.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},cr.prototype.childCount=function(){return this._children.length},cr.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},cr.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},cr.prototype.replace=function(t,e){t=I(this._children,t);return 0<=t&&this.replaceAt(e,t),this},cr.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},cr.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},cr.prototype.remove=function(t){var e=this.__zr,n=this._children,i=I(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},cr.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},cr.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(e,o,i)}return this},cr.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(e,i);i.isGroup&&!o&&i.traverse(t,e)}return this},cr.prototype.addSelfToZr=function(t){hr.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},cr.prototype.removeSelfFromZr=function(t){hr.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},cr.prototype.getBoundingRect=function(t){for(var e=new Y(0,0,0,0),n=t||this._children,i=[],o=null,r=0;r<n.length;r++){var a,s=n[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(Y.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var hr,T=cr;function cr(t){var e=hr.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}T.prototype.type="group";var pr={},dr={};yr.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},yr.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},yr.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},yr.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return Di(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o<i;o++)n+=Di(e[o].color,1);return(n/=i)<.4}}return!1}(t))},yr.prototype.getBackgroundColor=function(){return this._backgroundColor},yr.prototype.setDarkMode=function(t){this._darkMode=t},yr.prototype.isDarkMode=function(){return this._darkMode},yr.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},yr.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},yr.prototype.flush=function(){this._disposed||this._flush(!1)},yr.prototype._flush=function(t){var e,n=ao(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),ao());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},yr.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},yr.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},yr.prototype.refreshHover=function(){this._needsRefreshHover=!0},yr.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},yr.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},yr.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},yr.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},yr.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},yr.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},yr.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},yr.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},yr.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},yr.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},yr.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof T&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},yr.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete dr[t])};var fr,gr=yr;function yr(t,e,n){var i,o=this,r=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new kn),a=n.renderer||"canvas",a=(pr[a]||(a=N(pr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new pr[a](e,r,n,t)),e=n.ssr||a.ssrOnly,t=(this.storage=r,this.painter=a,b.node||b.worker||e?null:new ko(a.getViewportRoot(),a.root)),s=n.useCoarsePointer;(null==s||"auto"===s?b.touchEventsSupported:!!s)&&(i=z(n.pointerSize,44)),this.handler=new pn(r,a,t,a.root,i),this.animation=new lo({stage:{update:e?null:function(){return o._flush(!0)}}}),e||this.animation.start()}function mr(t,e){t=new gr(it++,t,e);return dr[t.id]=t}function vr(t,e){pr[t]=e}function _r(t){if("function"==typeof fr)return fr(t)}function xr(t){fr=t}var wr=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in dr)dr.hasOwnProperty(t)&&dr[t].dispose();dr={}},getElementSSRData:_r,getInstance:function(t){return dr[t]},init:mr,registerPainter:vr,registerSSRDataGetter:xr,version:"5.5.0"}),br=20;function Sr(t,e,n,i){var o=e[0],e=e[1],r=n[0],n=n[1],a=e-o,s=n-r;if(0==a)return 0==s?r:(r+n)/2;if(i)if(0<a){if(t<=o)return r;if(e<=t)return n}else{if(o<=t)return r;if(t<=e)return n}else{if(t===o)return r;if(t===e)return n}return(t-o)/a*s+r}function H(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return V(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Mr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),br),t=(+t).toFixed(e),n?t:+t}function Tr(t){return t.sort(function(t,e){return t-e}),t}function Cr(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Ir(t)}function Ir(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),n=0<e?+t.slice(e+1):0,e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-n)}function Dr(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function kr(t){var e=2*Math.PI;return(t%e+e)%e}function Ar(t){return-1e-4<t&&t<1e-4}var Pr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Lr(t){var e,n;return t instanceof Date?t:V(t)?(e=Pr.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function Or(t){return Math.pow(10,Rr(t))}function Rr(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Nr(t,e){var n=Rr(t),i=Math.pow(10,n),o=t/i,e=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function zr(t){var e=parseFloat(t);return e==t&&(0!==e||!V(t)||t.indexOf("x")<=0)?e:NaN}function Er(t){return!isNaN(zr(t))}function Br(){return Math.round(9*Math.random())}function Fr(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function f(t){throw new Error(t)}function Vr(t,e,n){return(e-t)*n+t}var Gr="series\0";function Hr(t){return t instanceof Array?t:null==t?[]:[t]}function Wr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}var Xr=["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"];function Yr(t){return!L(t)||F(t)||t instanceof Date?t:t.value}function Ur(t,n,e){var r,a,s,l,o,u,i,h,c,p,d="normalMerge"===e,f="replaceMerge"===e,g="replaceAll"===e,y=(t=t||[],n=(n||[]).slice(),G()),e=(R(n,function(t,e){L(t)||(n[e]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),i.push({existing:"replaceMerge"===n||Jr(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,y,e));return(d||f)&&(r=e,a=t,s=y,R(l=n,function(t,e){var n,i,o;t&&null!=t.id&&(n=jr(t.id),null!=(i=s.get(n)))&&(It(!(o=r[i]).newOption,'Duplicated option on id "'+n+'".'),o.newOption=t,o.existing=a[i],l[e]=null)})),d&&(o=e,R(u=n,function(t,e){if(t&&null!=t.name)for(var n=0;n<o.length;n++){var i=o[n].existing;if(!o[n].newOption&&i&&(null==i.id||null==t.id)&&!Jr(t)&&!Jr(i)&&Zr("name",i,t))return o[n].newOption=t,void(u[e]=null)}})),d||f?(h=e,c=f,R(n,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||Jr(e.existing)||e.existing&&null!=t.id&&!Zr("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):g&&(i=e,R(n,function(t){i.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,p=G(),R(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),R(t,function(t){var e=t.newOption;It(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),R(t,function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(L(i)){if(o.name=null!=i.name?jr(i.name):n?n.name:Gr+e,n)o.id=jr(n.id);else if(null!=i.id)o.id=jr(i.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}}),e}function Zr(t,e,n){e=qr(e[t],null),n=qr(n[t],null);return null!=e&&null!=n&&e===n}function jr(t){return qr(t,"")}function qr(t,e){return null==t?e:V(t)?t:gt(t)||ft(t)?t+"":e}function Kr(t){t=t.name;return!(!t||!t.indexOf(Gr))}function Jr(t){return t&&null!=t.id&&0===jr(t.id).indexOf("\0_ec_\0")}function $r(t,o,r){R(t,function(t){var e,n,i=t.newOption;L(i)&&(t.keyInfo.mainType=o,t.keyInfo.subType=(e=o,i=i,t=t.existing,n=r,i.type||(t?t.subType:n.determineSubType(e,i))))})}function Qr(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?F(t.dataIndex)?B(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?F(t.name)?B(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function ta(){var e="__ec_inner_"+ea++;return function(t){return t[e]||(t[e]={})}}var ea=Br();function na(n,t,i){var t=ia(t,i),e=t.mainTypeSpecified,o=t.queryOptionMap,r=t.others,a=i?i.defaultMainType:null;return!e&&a&&o.set(a,{}),o.each(function(t,e){t=aa(n,e,t,{useDefault:a===e,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});r[e+"Models"]=t.models,r[e+"Model"]=t.models[0]}),r}function ia(t,i){var e=V(t)?((e={})[t+"Index"]=0,e):t,o=G(),r={},a=!1;return R(e,function(t,e){var n;"dataIndex"===e||"dataIndexInside"===e?r[e]=t:(n=(e=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],e=(e[2]||"").toLowerCase(),!n||!e||i&&i.includeMainTypes&&I(i.includeMainTypes,n)<0||(a=a||!!n,(o.get(n)||o.set(n,{}))[e]=t))}),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var oa={useDefault:!0,enableAll:!1,enableNone:!1},ra={useDefault:!1,enableAll:!0,enableNone:!0};function aa(t,e,n,i){i=i||oa;var o=n.index,r=n.id,n=n.name,a={models:null,specified:null!=o||null!=r||null!=n};return a.specified?"none"===o||!1===o?(It(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(It(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=n=null),a.models=t.queryComponents({mainType:e,index:o,id:r,name:n})):(o=void 0,a.models=i.useDefault&&(o=t.getComponent(e))?[o]:[]),a}function sa(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function la(t,e,n,i,o){var r=null==e||"auto"===e;if(null==i)return i;if(gt(i))return Mr(p=Vr(n||0,i,o),r?Math.max(Cr(n||0),Cr(i)):e);if(V(i))return o<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c,p,d=t.getDimensionInfo(h);d&&"ordinal"===d.type?a[h]=(o<1&&s?s:l)[h]:(p=Vr(d=s&&s[h]?s[h]:0,c=l[h],o),a[h]=Mr(p,r?Math.max(Cr(d),Cr(c)):e))}return a}var ua=".",ha="___EC__COMPONENT__CONTAINER___",ca="___EC__EXTENDED_CLASS___";function pa(t){var e={main:"",sub:""};return t&&(t=t.split(ua),e.main=t[0]||"",e.sub=t[1]||""),e}function da(t){(t.$constructor=t).extend=function(t){var e,n,i,o=this;function r(){return n.apply(this,arguments)||this}return D(i=o)&&/^class\s/.test(Function.prototype.toString.call(i))?(u(r,n=o),e=r):lt(e=function(){(t.$constructor||o).apply(this,arguments)},this),O(e.prototype,t),e[ca]=!0,e.extend=this.extend,e.superCall=ya,e.superApply=ma,e.superClass=o,e}}function fa(t,e){t.extend=e.extend}var ga=Math.round(10*Math.random());function ya(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function ma(t,e,n){return this.superClass.prototype[e].apply(t,n)}function va(t){var o={};t.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(It(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType "'+e+'" illegal'),(e=pa(t.prototype.type=n)).sub?e.sub!==ha&&(function(t){var e=o[t.main];e&&e[ha]||(e=o[t.main]={___EC__COMPONENT__CONTAINER___:!0});return e}(e)[e.sub]=t):o[e.main]=t),t},t.getClass=function(t,e,n){var i=o[t];if(i&&i[ha]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var t=pa(t),n=[],t=o[t.main];return t&&t[ha]?R(t,function(t,e){e!==ha&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=pa(t);return!!o[t.main]},t.getAllClassMainTypes=function(){var n=[];return R(o,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=pa(t),t=o[t.main];return t&&t[ha]}}function _a(a,s){for(var t=0;t<a.length;t++)a[t][1]||(a[t][1]=a[t][0]);return s=s||!1,function(t,e,n){for(var i={},o=0;o<a.length;o++){var r=a[o][1];e&&0<=I(e,r)||n&&I(n,r)<0||null!=(r=t.getShallow(r,s))&&(i[a[o][0]]=r)}return i}}var xa=_a([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),wa=(ba.prototype.getAreaStyle=function(t,e){return xa(this,t,e)},ba);function ba(){}var Sa=new si(50);function Ma(t,e,n,i,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:o},(i=Sa.get(t))?Ca(e=i.image)||i.pending.push(n):((e=W.loadImage(t,Ta,Ta)).__zrImageSrc=t,Sa.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function Ta(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Ca(t){return t&&t.width&&t.height}var Ia=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Da(t,e,n,i,o){if(!e)return"";var r=(t+"").split("\n");o=ka(e,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=Aa(r[a],o);return r.join("\n")}function ka(t,e,n,i){for(var o=O({},i=i||{}),r=(o.font=e,n=z(n,"..."),o.maxIterations=z(i.maxIterations,2),o.minChar=z(i.minChar,0)),a=(o.cnCharWidth=Yo("国",e),o.ascCharWidth=Yo("a",e)),s=(o.placeholder=z(i.placeholder,""),t=Math.max(0,t-1)),l=0;l<r&&a<=s;l++)s-=a;i=Yo(n,e);return s<i&&(n="",i=0),s=t-i,o.ellipsis=n,o.ellipsisWidth=i,o.contentWidth=s,o.containerWidth=t,o}function Aa(t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n)return"";var r=Yo(t,i);if(!(r<=n)){for(var a=0;;a++){if(r<=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?n:i}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<r?Math.floor(t.length*o/r):0,r=Yo(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}var Pa=function(){},La=function(t){this.tokens=[],t&&(this.tokens=t)},Oa=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Ra(t,e){var n=new Oa;if(null!=t&&(t+=""),t){for(var i,o=e.width,r=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===a},l=Ia.lastIndex=0;null!=(i=Ia.exec(t));){var u=i.index;l<u&&Na(n,t.substring(l,u),e,s),Na(n,i[2],e,s,i[1]),l=Ia.lastIndex}l<t.length&&Na(n,t.substring(l,t.length),e,s);var h,c=[],p=0,d=0,f=e.padding,g="truncate"===a,y="truncate"===e.lineOverflow;t:for(var m=0;m<n.lines.length;m++){for(var v=n.lines[m],_=0,x=0,w=0;w<v.tokens.length;w++){var b=(k=v.tokens[w]).styleName&&e.rich[k.styleName]||{},S=k.textPadding=b.padding,M=S?S[1]+S[3]:0,T=k.font=b.font||e.font,C=(k.contentHeight=Ko(T),z(b.height,k.contentHeight));if(k.innerHeight=C,S&&(C+=S[0]+S[2]),k.height=C,k.lineHeight=Mt(b.lineHeight,e.lineHeight,C),k.align=b&&b.align||e.align,k.verticalAlign=b&&b.verticalAlign||"middle",y&&null!=r&&p+k.lineHeight>r){0<w?(v.tokens=v.tokens.slice(0,w),P(v,x,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var I,S=b.width,D=null==S||"auto"===S;"string"==typeof S&&"%"===S.charAt(S.length-1)?(k.percentWidth=S,c.push(k),k.contentWidth=Yo(k.text,T)):(D&&(S=(S=b.backgroundColor)&&S.image)&&(I=void 0,Ca(S="string"==typeof(h=S)?(I=Sa.get(h))&&I.image:h))&&(k.width=Math.max(k.width,S.width*C/S.height)),null!=(I=g&&null!=o?o-x:null)&&I<k.width?!D||I<M?(k.text="",k.width=k.contentWidth=0):(k.text=Da(k.text,I-M,T,e.ellipsis,{minChar:e.truncateMinChar}),k.width=k.contentWidth=Yo(k.text,T)):k.contentWidth=Yo(k.text,T)),k.width+=M,x+=k.width,b&&(_=Math.max(_,k.lineHeight))}P(v,x,_)}n.outerWidth=n.width=z(o,d),n.outerHeight=n.height=z(r,p),n.contentHeight=p,n.contentWidth=d,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(m=0;m<c.length;m++){var k,A=(k=c[m]).percentWidth;k.width=parseInt(A,10)/100*n.width}}return n;function P(t,e,n){t.width=e,t.lineHeight=n,p+=n,d=Math.max(d,e)}}function Na(t,e,n,i,o){var r,a,s=""===e,l=o&&n.rich[o]||{},u=t.lines,h=l.font||n.font,c=!1;i?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=Jo(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(r=e.split("\n"),c=!0),i.accumWidth=t):(t=Ea(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;p<r.length;p++){var d,f,g=r[p],y=new Pa;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[p]:Yo(g,h),p||c?u.push(new La([y])):1===(f=(d=(u[u.length-1]||(u[0]=new La)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}var za=ct(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ea(t,e,n,i,o){for(var r,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(d=Yo(g,e),f=!(i||(f=void 0,!(32<=(f=(f=r=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||!!za[r]),(a.length?n<c+d:n<o+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g)))}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}var Ba,Fa="__zr_style_"+Math.round(10*Math.random()),Va={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ga={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Ha=(Va[Fa]=!0,["z","z2","invisible"]),Wa=["invisible"],Xa=(u(i,Ba=e),i.prototype._init=function(t){for(var e=N(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):Ba.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},i.prototype.beforeBrush=function(){},i.prototype.afterBrush=function(){},i.prototype.innerBeforeBrush=function(){},i.prototype.innerAfterBrush=function(){},i.prototype.shouldBePainted=function(t,e,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){Ya.copy(t.getBoundingRect()),t.transform&&Ya.applyTransform(t.transform);return Ua.width=e,Ua.height=n,!Ya.intersect(Ua)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},i.prototype.contain=function(t,e){return this.rectContain(t,e)},i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},i.prototype.getPaintRect=function(){var t,e,n,i,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new Y(0,0,0,0)),o?Y.applyTransform(r,t,o):r.copy(t),(e||n||i)&&(r.width+=2*e+Math.abs(n),r.height+=2*e+Math.abs(i),r.x=Math.min(r.x,r.x+n-e),r.y=Math.min(r.y,r.y+i-e)),o=this.dirtyRectTolerance,r.isZero())||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o)),r},i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Y(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},i.prototype.animateStyle=function(t){return this.animate("style",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},i.prototype.attrKV=function(t,e){"style"!==t?Ba.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:O(this.style,t),this.dirtyStyle(),this},i.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},i.prototype.dirty=function(){this.dirtyStyle()},i.prototype.styleChanged=function(){return!!(2&this.__dirty)},i.prototype.styleUpdated=function(){this.__dirty&=-3},i.prototype.createStyle=function(t){return Bt(Va,t)},i.prototype.useStyle=function(t){t[Fa]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},i.prototype.isStyleObject=function(t){return t[Fa]},i.prototype._innerSaveToNormal=function(t){Ba.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,Ha)},i.prototype._applyStateObj=function(t,e,n,i,o,r){Ba.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.style?o?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=N(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=N(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?Wa:Ha,h=0;h<d.length;h++){p=d[h];e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])}},i.prototype._mergeStates=function(t){for(var e,n=Ba.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(n.style=e),n},i.prototype._mergeStyle=function(t,e){return O(t,e),t},i.prototype.getAnimationStyleProps=function(){return Ga},i.initDefaultProps=((e=i.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,void(e.__dirty=2|Mn)),i);function i(t){return Ba.call(this,t)||this}var Ya=new Y(0,0,0,0),Ua=new Y(0,0,0,0);var Za=Math.min,ja=Math.max,qa=Math.sin,Ka=Math.cos,Ja=2*Math.PI,$a=Xt(),Qa=Xt(),ts=Xt();function es(t,e,n,i,o,r){o[0]=Za(t,n),o[1]=Za(e,i),r[0]=ja(t,n),r[1]=ja(e,i)}var ns=[],is=[];var os={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},rs=[],as=[],ss=[],ls=[],us=[],hs=[],cs=Math.min,ps=Math.max,ds=Math.cos,fs=Math.sin,gs=Math.abs,ys=Math.PI,ms=2*ys,vs="undefined"!=typeof Float32Array,_s=[];function xs(t){return Math.round(t/ys*1e8)/1e8%2*ys}function ws(t,e){var n=xs(t[0]),i=(n<0&&(n+=ms),n-t[0]),o=t[1];o+=i,!e&&ms<=o-n?o=n+ms:e&&ms<=n-o?o=n-ms:!e&&o<n?o=n+(ms-xs(n-o)):e&&n<o&&(o=n-(ms-xs(o-n))),t[0]=n,t[1]=o}o.prototype.increaseVersion=function(){this._version++},o.prototype.getVersion=function(){return this._version},o.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=gs(n/Po/t)||0,this._uy=gs(n/Po/e)||0)},o.prototype.setDPR=function(t){this.dpr=t},o.prototype.setContext=function(t){this._ctx=t},o.prototype.getContext=function(){return this._ctx},o.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},o.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(os.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},o.prototype.lineTo=function(t,e){var n=gs(t-this._xi),i=gs(e-this._yi),o=n>this._ux||i>this._uy;return this.addData(os.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},o.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(os.C,t,e,n,i,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,o,r),this._xi=o,this._yi=r,this},o.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(os.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},o.prototype.arc=function(t,e,n,i,o,r){return this._drawPendingPt(),_s[0]=i,_s[1]=o,ws(_s,r),this.addData(os.A,t,e,n,n,i=_s[0],(o=_s[1])-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=ds(o)*n+t,this._yi=fs(o)*n+e,this},o.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},o.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(os.R,t,e,n,i),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(os.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},o.prototype.fill=function(t){t&&t.fill(),this.toStatic()},o.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},o.prototype.len=function(){return this._len},o.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!vs||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},o.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,o=0;o<e;o++)n+=t[o].len();vs&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},o.prototype.addData=function(t,e,n,i,o,r,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},o.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},o.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},o.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,vs)&&11<this._len&&(this.data=new Float32Array(t))},o.prototype.getBoundingRect=function(){ss[0]=ss[1]=us[0]=us[1]=Number.MAX_VALUE,ls[0]=ls[1]=hs[0]=hs[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,o=0,r=0,a=0;a<this._len;){var z=e[a++],E=1===a;switch(E&&(o=n=e[a],r=i=e[a+1]),z){case os.M:n=o=e[a++],i=r=e[a++],us[0]=o,us[1]=r,hs[0]=o,hs[1]=r;break;case os.L:es(n,i,e[a],e[a+1],us,hs),n=e[a++],i=e[a++];break;case os.C:H=G=m=y=V=g=f=d=p=c=F=B=h=u=l=s=void 0;var s=n,l=i,u=e[a++],h=e[a++],B=e[a++],F=e[a++],c=e[a],p=e[a+1],d=us,f=hs,g=Un,V=Wn,y=g(s,u,B,c,ns);d[0]=1/0,d[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var m=0;m<y;m++){var G=V(s,u,B,c,ns[m]);d[0]=Za(G,d[0]),f[0]=ja(G,f[0])}for(y=g(l,h,F,p,is),m=0;m<y;m++){var H=V(l,h,F,p,is[m]);d[1]=Za(H,d[1]),f[1]=ja(H,f[1])}d[0]=Za(s,d[0]),f[0]=ja(s,f[0]),d[0]=Za(c,d[0]),f[0]=ja(c,f[0]),d[1]=Za(l,d[1]),f[1]=ja(l,f[1]),d[1]=Za(p,d[1]),f[1]=ja(p,f[1]),n=e[a++],i=e[a++];break;case os.Q:g=n,L=i,M=e[a++],x=e[a++],S=e[a],v=e[a+1],b=us,T=hs,t=w=t=_=void 0,_=qn,t=ja(Za((w=Jn)(g,M,S),1),0),w=ja(Za(w(L,x,v),1),0),M=_(g,M,S,t),t=_(L,x,v,w),b[0]=Za(g,S,M),b[1]=Za(L,v,t),T[0]=ja(g,S,M),T[1]=ja(L,v,t),n=e[a++],i=e[a++];break;case os.A:var v,_=e[a++],x=e[a++],w=e[a++],b=e[a++],S=e[a++],M=e[a++]+S,T=(a+=1,!e[a++]),C=(E&&(o=ds(S)*w+_,r=fs(S)*b+x),N=v=X=W=R=O=L=P=A=k=D=I=C=void 0,_),I=x,D=w,k=b,A=S,P=M,L=T,O=us,R=hs,W=re,X=ae;if((v=Math.abs(A-P))%Ja<1e-4&&1e-4<v)O[0]=C-D,O[1]=I-k,R[0]=C+D,R[1]=I+k;else{$a[0]=Ka(A)*D+C,$a[1]=qa(A)*k+I,Qa[0]=Ka(P)*D+C,Qa[1]=qa(P)*k+I,W(O,$a,Qa),X(R,$a,Qa),(A%=Ja)<0&&(A+=Ja),(P%=Ja)<0&&(P+=Ja),P<A&&!L?P+=Ja:A<P&&L&&(A+=Ja),L&&(v=P,P=A,A=v);for(var N=0;N<P;N+=Math.PI/2)A<N&&(ts[0]=Ka(N)*D+C,ts[1]=qa(N)*k+I,W(O,ts,O),X(R,ts,R))}n=ds(M)*w+_,i=fs(M)*b+x;break;case os.R:es(o=n=e[a++],r=i=e[a++],o+e[a++],r+e[a++],us,hs);break;case os.Z:n=o,i=r}re(ss,ss,us),ae(ls,ls,hs)}return 0===a&&(ss[0]=ss[1]=ls[0]=ls[1]=0),new Y(ss[0],ss[1],ls[0]-ss[0],ls[1]-ss[1])},o.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=o=t[c],s=r=t[c+1]),-1);switch(p){case os.M:o=a=t[c++],r=s=t[c++];break;case os.L:var g=t[c++],y=(_=t[c++])-r;(gs(I=g-o)>n||gs(y)>i||c===e-1)&&(f=Math.sqrt(I*I+y*y),o=g,r=_);break;case os.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],w=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Wn(t,n,o,a,f),f=Wn(e,i,r,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(o,r,m,v,g,_,x,w,10),o=x,r=w;break;case os.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=qn(t,n,o,p),p=qn(e,i,r,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),o=g,r=_;break;case os.A:var x=t[c++],w=t[c++],b=t[c++],S=t[c++],M=t[c++],T=t[c++],C=T+M;c+=1,d&&(a=ds(M)*b+x,s=fs(M)*S+w),f=ps(b,S)*cs(ms,Math.abs(T)),o=ds(C)*b+x,r=fs(C)*S+w;break;case os.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case os.Z:var I=a-o,y=s-r;f=Math.sqrt(I*I+y*y),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},o.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,z=this._ux,E=this._uy,B=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g<B;){var y=h[g++],F=1===g;switch(F&&(n=o=h[g],i=r=h[g+1]),y!==os.L&&0<f&&(t.lineTo(l,u),f=0),y){case os.M:n=o=h[g++],i=r=h[g++],t.moveTo(o,r);break;case os.L:var m=h[g++],v=h[g++],_=gs(m-o),x=gs(v-r);if(z<_||E<x){if(c){if(s<p+(N=a[d++])){var w=(s-p)/N;t.lineTo(o*(1-w)+m*w,r*(1-w)+v*w);break t}p+=N}t.lineTo(m,v),o=m,r=v,f=0}else{_=_*_+x*x;f<_&&(l=m,u=v,f=_)}break;case os.C:var b=h[g++],S=h[g++],M=h[g++],T=h[g++],x=h[g++],_=h[g++];if(c){if(s<p+(N=a[d++])){Zn(o,b,M,x,w=(s-p)/N,rs),Zn(r,S,T,_,w,as),t.bezierCurveTo(rs[1],as[1],rs[2],as[2],rs[3],as[3]);break t}p+=N}t.bezierCurveTo(b,S,M,T,x,_),o=x,r=_;break;case os.Q:b=h[g++],S=h[g++],M=h[g++],T=h[g++];if(c){if(s<p+(N=a[d++])){$n(o,b,M,w=(s-p)/N,rs),$n(r,S,T,w,as),t.quadraticCurveTo(rs[1],as[1],rs[2],as[2]);break t}p+=N}t.quadraticCurveTo(b,S,M,T),o=M,r=T;break;case os.A:var C=h[g++],I=h[g++],D=h[g++],k=h[g++],A=h[g++],P=h[g++],L=h[g++],V=!h[g++],G=k<D?D:k,O=.001<gs(D-k),R=A+P,H=!1;if(c&&(s<p+(N=a[d++])&&(R=A+P*(s-p)/N,H=!0),p+=N),O&&t.ellipse?t.ellipse(C,I,D,k,L,A,R,V):t.arc(C,I,G,A,R,V),H)break t;F&&(n=ds(A)*D+C,i=fs(A)*k+I),o=ds(R)*D+C,r=fs(R)*k+I;break;case os.R:n=o=h[g],i=r=h[g+1],m=h[g++],v=h[g++];var N,P=h[g++],O=h[g++];if(c){if(s<p+(N=a[d++])){L=s-p;t.moveTo(m,v),t.lineTo(m+cs(L,P),v),0<(L-=P)&&t.lineTo(m+P,v+cs(L,O)),0<(L-=O)&&t.lineTo(m+ps(P-L,0),v+O),0<(L-=P)&&t.lineTo(m,v+ps(O-L,0));break t}p+=N}t.rect(m,v,P,O);break;case os.Z:if(c){if(s<p+(N=a[d++])){w=(s-p)/N;t.lineTo(o*(1-w)+n*w,r*(1-w)+i*w);break t}p+=N}t.closePath(),o=n,r=i}}},o.prototype.clone=function(){var t=new o,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},o.CMD=os,o.initDefaultProps=((e=o.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0));var bs=o;function o(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function Ss(t,e,n,i,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&i+o<a||a<e-o&&a<i-o||t+o<r&&n+o<r||r<t-o&&r<n-o)&&(t===n?Math.abs(r-t)<=o/2:(r=(s=(e-i)/(t-n))*r-a+(t*i-n*e)/(t-n))*r/(s*s+1)<=o/2*o/2)}var Ms=2*Math.PI;function Ts(t){return(t%=Ms)<0&&(t+=Ms),t}var Cs=2*Math.PI;function Is(t,e,n,i,o,r){return e<r&&i<r||r<e&&r<i||i===e?0:(n=(r=(r-e)/(i-e))*(n-t)+t)===o?1/0:o<n?1!=r&&0!=r?i<e?1:-1:i<e?.5:-.5:0}var Ds=bs.CMD,ks=2*Math.PI,As=1e-4;var Ps=[-1,-1,-1],Ls=[-1,-1];function Os(t,e,n,i,o,r,a,s,l,u){if(e<u&&i<u&&r<u&&s<u||u<e&&u<i&&u<r&&u<s)return 0;var h=Yn(e,i,r,s,u,Ps);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=Ps[y],v=0===m||1===m?.5:1;Wn(t,n,o,a,m)<l||(d<0&&(d=Un(e,i,r,s,Ls),Ls[1]<Ls[0]&&1<d&&(c=void 0,c=Ls[0],Ls[0]=Ls[1],Ls[1]=c),f=Wn(e,i,r,s,Ls[0]),1<d)&&(g=Wn(e,i,r,s,Ls[1])),2===d?m<Ls[0]?p+=f<e?v:-v:m<Ls[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Ls[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Rs(t,e,n,i,o,r,a,s){if(e<s&&i<s&&r<s||s<e&&s<i&&s<r)return 0;c=Ps,h=(l=e)-2*(u=i)+(h=r),u=2*(u-l),l-=s=s,s=0,Gn(h)?Hn(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):Gn(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=Rn(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=Jn(e,i,r);if(0<=g&&g<=1){for(var y=0,m=qn(e,i,r,g),v=0;v<f;v++){var _=0===Ps[v]||1===Ps[v]?.5:1;qn(t,n,o,Ps[v])<a||(Ps[v]<g?y+=m<e?_:-_:y+=r<m?_:-_)}return y}return _=0===Ps[0]||1===Ps[0]?.5:1,qn(t,n,o,Ps[0])<a?0:r<e?_:-_}function Ns(t,e,n,i,o){for(var r,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===Ds.M&&1<d&&(n||(l+=Is(u,h,c,p,i,o))),g&&(c=u=a[d],p=h=a[d+1]),f){case Ds.M:u=c=a[d++],h=p=a[d++];break;case Ds.L:if(n){if(Ss(u,h,a[d],a[d+1],e,i,o))return!0}else l+=Is(u,h,a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Ds.C:if(n){if(function(t,e,n,i,o,r,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&r+l<h&&s+l<h||h<e-l&&h<i-l&&h<r-l&&h<s-l||t+l<u&&n+l<u&&o+l<u&&a+l<u||u<t-l&&u<n-l&&u<o-l&&u<a-l)&&jn(t,e,n,i,o,r,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=Os(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Ds.Q:if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&r+a<l||l<e-a&&l<i-a&&l<r-a||t+a<s&&n+a<s&&o+a<s||s<t-a&&s<n-a&&s<o-a)&&Qn(t,e,n,i,o,r,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=Rs(u,h,a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Ds.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],w=a[d++],b=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,M=Math.sin(x)*_+m,T=(g?(c=S,p=M):l+=Is(u,h,S,M,i,o),(i-y)*_/v+y);if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-o)%Cs<1e-4||((o=r?(e=i,i=Ts(o),Ts(e)):(i=Ts(i),Ts(o)))<i&&(o+=Cs),(t=Math.atan2(l,s))<0&&(t+=Cs),i<=t&&t<=o)||i<=t+Cs&&t+Cs<=o)}(y,m,_,x,x+w,b,e,T,o))return!0}else l+=function(t,e,n,i,o,r,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(Ps[0]=-e,Ps[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(ks-1e-4<=n)return o=ks,h=r?1:-1,a>=Ps[i=0]+t&&a<=Ps[1]+t?h:0;o<i&&(e=i,i=o,o=e),i<0&&(i+=ks,o+=ks);for(var l=0,u=0;u<2;u++){var h,c=Ps[u];a<c+t&&(h=r?1:-1,i<=(c=(c=Math.atan2(s,c))<0?ks+c:c)&&c<=o||i<=c+ks&&c+ks<=o)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+w,b,T,o);u=Math.cos(x+w)*v+y,h=Math.sin(x+w)*_+m;break;case Ds.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Ss(c,p,S,p,e,i,o)||Ss(S,p,S,M,e,i,o)||Ss(S,M,c,M,e,i,o)||Ss(c,M,c,p,e,i,o))return!0}else l=(l+=Is(S,p,S,M,i,o))+Is(c,M,c,p,i,o);break;case Ds.Z:if(n){if(Ss(u,h,c,p,e,i,o))return!0}else l+=Is(u,h,c,p,i,o);u=c,h=p}}return n||(t=h,r=p,Math.abs(t-r)<As)||(l+=Is(u,h,c,p,i,o)||0),0!==l}var zs,Es=E({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Va),Bs={style:E({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ga.style)},Fs=Ho.concat(["invisible","culling","z","z2","zlevel","parent"]),q=(u(a,zs=Xa),a.prototype.update=function(){var e=this,t=(zs.prototype.update.call(this),this.style);if(t.decal){var n,i=this._decalEl=this._decalEl||new a,o=(i.buildPath===a.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0,i.style);for(n in t)o[n]!==t[n]&&(o[n]=t[n]);o.fill=t.fill?t.decal:null,o.decal=null,o.shadowColor=null,t.strokeFirst&&(o.stroke=null);for(var r=0;r<Fs.length;++r)i[Fs[r]]=this[Fs[r]];i.__dirty|=Mn}else this._decalEl&&(this._decalEl=null)},a.prototype.getDecalElement=function(){return this._decalEl},a.prototype._init=function(t){var e=N(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var o=e[i],r=t[o];"style"===o?this.style?O(this.style,r):this.useStyle(r):"shape"===o?O(this.shape,r):zs.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},a.prototype.getDefaultStyle=function(){return null},a.prototype.getDefaultShape=function(){return{}},a.prototype.canBeInsideText=function(){return this.hasFill()},a.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(V(e))return.5<(t=Di(e,0))?Lo:.2<t?"#eee":Oo;if(e)return Oo}return Lo},a.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(V(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Di(t,0)<.4)return e}},a.prototype.buildPath=function(t,e,n){},a.prototype.pathUpdated=function(){this.__dirty&=~Tn},a.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},a.prototype.createPathProxy=function(){this.path=new bs(!1)},a.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},a.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},a.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,o=!n;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&Tn)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||o)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,o=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,o=Math.max(o,null==i?4:i)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):n},a.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],i.contain(t,e)){n=this.path;if(this.hasStroke()){i=o.lineWidth,o=o.strokeNoScale?this.getLineScale():1;if(1e-10<o&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),Ns(n,i/o,!0,t,e)))return!0}if(this.hasFill())return Ns(n,0,!1,t,e)}return!1},a.prototype.dirtyShape=function(){this.__dirty|=Tn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},a.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},a.prototype.animateShape=function(t){return this.animate("shape",t)},a.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},a.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):zs.prototype.attrKV.call(this,t,e)},a.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:O(n,t),this.dirtyShape(),this},a.prototype.shapeChanged=function(){return!!(this.__dirty&Tn)},a.prototype.createStyle=function(t){return Bt(Es,t)},a.prototype._innerSaveToNormal=function(t){zs.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=O({},this.shape))},a.prototype._applyStateObj=function(t,e,n,i,o,r){zs.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.shape?o?i?a=e.shape:(a=O({},n.shape),O(a,e.shape)):(a=O({},(i?this:n).shape),O(a,e.shape)):s&&(a=n.shape),a)if(o){this.shape=O({},this.shape);for(var l={},u=N(a),h=0;h<u.length;h++){var c=u[h];"object"==typeof a[c]?this.shape[c]=a[c]:l[c]=a[c]}this._transitionState(t,{shape:l},r)}else this.shape=a,this.dirtyShape()},a.prototype._mergeStates=function(t){for(var e,n=zs.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(n.shape=e),n},a.prototype.getAnimationStyleProps=function(){return Bs},a.prototype.isZeroArea=function(){return!1},a.extend=function(n){u(o,i=a),o.prototype.getDefaultStyle=function(){return _(n.style)},o.prototype.getDefaultShape=function(){return _(n.shape)};var i,t,e=o;function o(t){var e=i.call(this,t)||this;return n.init&&n.init.call(e,t),e}for(t in n)"function"==typeof n[t]&&(e.prototype[t]=n[t]);return e},a.initDefaultProps=((e=a.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,void(e.__dirty=2|Mn|Tn)),a);function a(t){return zs.call(this,t)||this}var Vs,Gs=E({strokeFirst:!0,font:K,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Es),Hs=(u(Ws,Vs=Xa),Ws.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Ws.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Ws.prototype.createStyle=function(t){return Bt(Gs,t)},Ws.prototype.setBoundingRect=function(t){this._rect=t},Ws.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=Zo(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},Ws.initDefaultProps=void(Ws.prototype.dirtyRectTolerance=10),Ws);function Ws(){return null!==Vs&&Vs.apply(this,arguments)||this}Hs.prototype.type="tspan";var Xs=E({x:0,y:0},Va),Ys={style:E({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ga.style)};u(js,Us=Xa),js.prototype.createStyle=function(t){return Bt(Xs,t)},js.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},js.prototype.getWidth=function(){return this._getSize("width")},js.prototype.getHeight=function(){return this._getSize("height")},js.prototype.getAnimationStyleProps=function(){return Ys},js.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Y(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var Us,Zs=js;function js(){return null!==Us&&Us.apply(this,arguments)||this}Zs.prototype.type="image";var qs=Math.round;function Ks(t,e,n){var i,o,r;if(e)return i=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=i,t.x2=o,t.y1=r,t.y2=e,(n=n&&n.lineWidth)&&(qs(2*i)===qs(2*o)&&(t.x1=t.x2=$s(i,n,!0)),qs(2*r)===qs(2*e))&&(t.y1=t.y2=$s(r,n,!0)),t}function Js(t,e,n){var i,o,r;if(e)return i=e.x,o=e.y,r=e.width,e=e.height,t.x=i,t.y=o,t.width=r,t.height=e,(n=n&&n.lineWidth)&&(t.x=$s(i,n,!0),t.y=$s(o,n,!0),t.width=Math.max($s(i+r,n,!1)-t.x,0===r?0:1),t.height=Math.max($s(o+e,n,!1)-t.y,0===e?0:1)),t}function $s(t,e,n){var i;return e?((i=qs(2*t))+qs(e))%2==0?i/2:(i+(n?1:-1))/2:t}var Qs,tl=function(){this.x=0,this.y=0,this.width=0,this.height=0},el={},nl=(u(il,Qs=q),il.prototype.getDefaultShape=function(){return new tl},il.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=Js(el,e,this.style)).x,i=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,o=e.width,r=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,o,r)},il.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},il);function il(t){return Qs.call(this,t)||this}nl.prototype.type="rect";var ol,rl={fill:"#000"},al={style:E({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ga.style)},sl=(u(ll,ol=Xa),ll.prototype.childrenRef=function(){return this._children},ll.prototype.update=function(){ol.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},ll.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):ol.prototype.updateTransform.call(this)},ll.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):ol.prototype.getLocalTransform.call(this,t)},ll.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),ol.prototype.getComputedTransform.call(this)},ll.prototype._updateSubTexts=function(){var t;this._childCursor=0,gl(t=this.style),R(t.rich,gl),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},ll.prototype.addSelfToZr=function(t){ol.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},ll.prototype.removeSelfFromZr=function(t){ol.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},ll.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Y(0,0,0,0),e=this._children,n=[],i=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(n);r?(t.copy(a),t.applyTransform(r),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},ll.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||rl},ll.prototype.setTextContent=function(t){},ll.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},O(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},ll.prototype._mergeRich=function(t,e){for(var n=N(e),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},O(t[o],e[o])}},ll.prototype.getAnimationStyleProps=function(){return al},ll.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},ll.prototype._updatePlainTexts=function(){for(var t,e=this.style,n=e.font||K,i=e.padding,o=function(t,e){null!=t&&(t+="");var n,i=e.overflow,o=e.padding,r=e.font,a="truncate"===i,s=Ko(r),l=z(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width,i=(n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?Ea(t,e.font,c,"breakAll"===i,0).lines:[]).length*l,p=z(e.height,i);if(p<i&&h&&(h=Math.floor(p/l),n=n.slice(0,h)),t&&a&&null!=c)for(var d=ka(c,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=Aa(n[f],d);for(var h=p,g=0,f=0;f<n.length;f++)g=Math.max(Yo(n[f],r),g);return null==c&&(c=g),t=g,o&&(h+=o[0]+o[2],t+=o[1]+o[3],c+=o[1]+o[3]),{lines:n,height:p,outerWidth:t=u?c:t,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:i,width:c}}(_l(e),e),r=xl(e),a=!!e.backgroundColor,s=o.outerHeight,l=o.outerWidth,u=o.contentWidth,h=o.lines,c=o.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=qo(f,o.contentHeight,y),_=((r||i)&&(t=jo(d,l,g),f=qo(f,s,y),r)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,i&&(m=vl(d,g,i),"top"===y?v+=i[0]:"bottom"===y&&(v-=i[2])),0),r=!1,x=(ml(("fill"in e?e:(r=!0,p)).fill)),w=(yl("stroke"in e?e.stroke:a||p.autoStroke&&!r?null:(_=2,p.stroke))),b=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=o.calculatedLineHeight,T=0;T<h.length;T++){var C=this._getOrCreateChild(Hs),I=C.createStyle();C.useStyle(I),I.text=h[T],I.x=m,I.y=v,g&&(I.textAlign=g),I.textBaseline="middle",I.opacity=e.opacity,I.strokeFirst=!0,b&&(I.shadowBlur=e.textShadowBlur||0,I.shadowColor=e.textShadowColor||"transparent",I.shadowOffsetX=e.textShadowOffsetX||0,I.shadowOffsetY=e.textShadowOffsetY||0),I.stroke=w,I.fill=x,w&&(I.lineWidth=e.lineWidth||_,I.lineDash=e.lineDash,I.lineDashOffset=e.lineDashOffset||0),I.font=n,dl(I,e),v+=c,S&&C.setBoundingRect(new Y(jo(I.x,e.width,I.textAlign),qo(I.y,M,I.textBaseline),u,M))}},ll.prototype._updateRichTexts=function(){for(var t=this.style,e=Ra(_l(t),t),n=e.width,i=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=jo(a,i,u),u=qo(s,o,l),h=a,c=u,p=(r&&(h+=r[3],c+=r[0]),h+n),d=(xl(t)&&this._renderBackground(t,t,a,u,i,o),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,w=h,b=p,S=m-1,M=void 0;x<m&&(!(M=y[x]).align||"left"===M.align);)this._placeToken(M,t,v,c,w,"left",d),_-=M.width,w+=M.width,x++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,c,b,"right",d),_-=M.width,b-=M.width,S--;for(w+=(n-(w-h)-(p-b)-_)/2;x<=S;)M=y[x],this._placeToken(M,t,v,c,w+M.width/2,"center",d),w+=M.width,x++;c+=v}},ll.prototype._placeToken=function(t,e,n,i,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2);!t.isLineHolder&&xl(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,u-t.height/2,t.width,t.height);var l=!!s.backgroundColor,i=t.textPadding,n=(i&&(o=vl(o,r,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(Hs)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=ml(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=yl("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(i.text=t.text,i.x=o,i.y=u,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=r,i.textBaseline="middle",i.font=t.font||K,i.opacity=Mt(s.opacity,e.opacity,1),dl(i,s),l&&(i.lineWidth=Mt(s.lineWidth,e.lineWidth,p),i.lineDash=z(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),d&&(i.fill=d),t.contentWidth),h=t.contentHeight;n.setBoundingRect(new Y(jo(i.x,c,i.textAlign),qo(i.y,h,i.textBaseline),c,h))},ll.prototype._renderBackground=function(t,e,n,i,o,r){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(nl)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=o,l.height=r,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=z(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(Zs)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=n,l.y=i,l.width=o,l.height=r),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=z(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=Mt(t.opacity,e.opacity,1)},ll.makeFont=function(t){var e="";return(e=fl(t)?[t.fontStyle,t.fontWeight,pl(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&Dt(e)||t.textFont||t.font},ll);function ll(t){var e=ol.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=rl,e.attr(t),e}var ul={left:!0,right:1,center:1},hl={top:1,bottom:1,middle:1},cl=["fontStyle","fontWeight","fontSize","fontFamily"];function pl(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?m+"px":t+"px":t}function dl(t,e){for(var n=0;n<cl.length;n++){var i=cl[n],o=e[i];null!=o&&(t[i]=o)}}function fl(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function gl(t){var e;t&&(t.font=sl.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||ul[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||hl[e]?e:"top",t.padding)&&(t.padding=Ct(t.padding))}function yl(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ml(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function vl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function _l(t){t=t.text;return null!=t&&(t+=""),t}function xl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function wl(e,n,i,t){var o;t&&((o=k(t)).dataIndex=i,o.dataType=n,o.seriesIndex=e,o.ssrType="chart","group"===t.type)&&t.traverse(function(t){t=k(t);t.seriesIndex=e,t.dataIndex=i,t.dataType=n,t.ssrType="chart"})}var k=ta(),bl=1,Sl={},Ml=ta(),Tl=ta(),Cl=0,Il=1,Dl=2,kl=["emphasis","blur","select"],Al=["normal","emphasis","blur","select"],Pl="highlight",Ll="downplay",Ol="select",Rl="unselect",Nl="toggleSelect";function zl(t){return null!=t&&"none"!==t}function El(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Bl(t){El(t,"emphasis",Dl)}function Fl(t){t.hoverState===Dl&&El(t,"normal",Cl)}function Vl(t){El(t,"blur",Il)}function Gl(t){t.hoverState===Il&&El(t,"normal",Cl)}function Hl(t){t.selected=!0}function Wl(t){t.selected=!1}function Xl(t,e,n){e(t,n)}function Yl(t,e,n){Xl(t,e,n),t.isGroup&&t.traverse(function(t){Xl(t,e,n)})}function Ul(t,e){switch(e){case"emphasis":t.hoverState=Dl;break;case"normal":t.hoverState=Cl;break;case"blur":t.hoverState=Il;break;case"select":t.selected=!0}}function Zl(t,e,n){var i=0<=I(t.currentStates,e),o=t.style.opacity,t=i?null:function(t,e,n,i){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=O({},n),e=O({opacity:i?o:.1*t.opacity},e),n.style=e),n}function jl(t,e){var n,i,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=I(e,"select"),a=!1,n instanceof q&&(o=Ml(n),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,zl(r)||zl(e))&&("inherit"===(o=(i=i||{}).style||{}).fill?(a=!0,i=O({},i),(o=O({},o)).fill=r):!zl(o.fill)&&zl(r)?(a=!0,i=O({},i),(o=O({},o)).fill=Ai(r)):!zl(o.stroke)&&zl(e)&&(a||(i=O({},i),o=O({},o)),o.stroke=Ai(e)),i.style=o),i&&null==i.z2&&(a||(i=O({},i)),r=n.z2EmphasisLift,i.z2=n.z2+(null!=r?r:10)),i;if("blur"===t)return Zl(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=O({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return s}function ql(t){t.stateProxy=jl;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=jl),t&&(t.stateProxy=jl)}function Kl(t,e){ou(t,e)||t.__highByOuter||Yl(t,Bl)}function Jl(t,e){ou(t,e)||t.__highByOuter||Yl(t,Fl)}function $l(t,e){t.__highByOuter|=1<<(e||0),Yl(t,Bl)}function Ql(t,e){(t.__highByOuter&=~(1<<(e||0)))||Yl(t,Fl)}function tu(t){Yl(t,Vl)}function eu(t){Yl(t,Gl)}function nu(t){Yl(t,Hl)}function iu(t){Yl(t,Wl)}function ou(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function ru(o){var e=o.getModel(),r=[],a=[];e.eachComponent(function(t,e){var n=Tl(e),t="series"===t,i=t?o.getViewOfSeriesModel(e):o.getViewOfComponentModel(e);t||a.push(i),n.isBlured&&(i.group.traverse(function(t){Gl(t)}),t)&&r.push(e),n.isBlured=!1}),R(a,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(r,!1,e)})}function au(t,r,a,s){var l,u,h,n=s.getModel();function c(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&eu(i)}}a=a||"coordinateSystem",null!=t&&r&&"none"!==r&&(l=n.getSeriesByIndex(t),(u=l.coordinateSystem)&&u.master&&(u=u.master),h=[],n.eachSeries(function(t){var e=l===t,n=t.coordinateSystem,n=(n=n&&n.master?n.master:n)&&u?n===u:e;if(!("series"===a&&!e||"coordinateSystem"===a&&!n||"series"===r&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&e&&"self"===r||Vl(t)}),ht(r))c(t.getData(),r);else if(L(r))for(var i=N(r),o=0;o<i.length;o++)c(t.getData(i[o]),r[i[o]]);h.push(t),Tl(t).isBlured=!0}}),n.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(h,!0,n)}))}function su(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(Tl(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){Vl(t)})}function lu(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;t=i.getModel().getComponent(t,e);if(!t)return o;e=i.getViewOfComponentModel(t);if(!e||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===k(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function uu(i){R(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?nu:iu)(t)})})}function hu(t,e,n){gu(t,!0),Yl(t,ql);t=k(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function cu(t,e,n,i){i?gu(t,!1):hu(t,e,n)}var pu=["emphasis","blur","select"],du={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fu(t,e,n,i){n=n||"itemStyle";for(var o=0;o<pu.length;o++){var r=pu[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[du[n]]()}}function gu(t,e){var e=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function yu(t){return!(!t||!t.__highDownDispatcher)}function mu(t){t=t.type;return t===Ol||t===Rl||t===Nl}function vu(t){t=t.type;return t===Pl||t===Ll}var _u=bs.CMD,xu=[[],[],[]],wu=Math.sqrt,bu=Math.atan2;var Su=Math.sqrt,Mu=Math.sin,Tu=Math.cos,Cu=Math.PI;function Iu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Du(t,e){return(t[0]*e[0]+t[1]*e[1])/(Iu(t)*Iu(e))}function ku(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Du(t,e))}function Au(t,e,n,i,o,r,a,s,l,u,h){var l=l*(Cu/180),c=Tu(l)*(t-n)/2+Mu(l)*(e-i)/2,p=-1*Mu(l)*(t-n)/2+Tu(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=Su(d),s*=Su(d)),(o===r?-1:1)*Su((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),o=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+Tu(l)*o-Mu(l)*d,n=(e+i)/2+Mu(l)*o+Tu(l)*d,e=ku([1,0],[(c-o)/a,(p-d)/s]),i=[(c-o)/a,(p-d)/s],c=[(-1*c-o)/a,(-1*p-d)/s],o=ku(i,c);Du(i,c)<=-1&&(o=Cu),(o=1<=Du(i,c)?0:o)<0&&(p=Math.round(o/Cu*1e6)/1e6,o=2*Cu+p%2*Cu),h.addData(u,t,n,a,s,e,o,l,r)}var Pu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Lu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;u(Nu,Ou=q),Nu.prototype.applyTransform=function(t){};var Ou,Ru=Nu;function Nu(){return null!==Ou&&Ou.apply(this,arguments)||this}function zu(t){return null!=t.setData}function Eu(t,e){var S=function(t){var e=new bs;if(t){var n,i=0,o=0,r=i,a=o,s=bs.CMD,l=t.match(Pu);if(l){for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(Lu)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,w=void 0,b=void 0,S=void 0,M=i,T=o,C=void 0,I=void 0;switch(c){case"l":i+=d[y++],o+=d[y++],p=s.L,e.addData(p,i,o);break;case"L":i=d[y++],o=d[y++],p=s.L,e.addData(p,i,o);break;case"m":i+=d[y++],o+=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="l";break;case"M":i=d[y++],o=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,o);break;case"H":i=d[y++],p=s.L,e.addData(p,i,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,i,o);break;case"V":o=d[y++],p=s.L,e.addData(p,i,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o),i+=d[y-2],o+=d[y-1];break;case"S":m=i,v=o,C=e.len(),I=e.data,n===s.C&&(m+=i-I[C-4],v+=o-I[C-3]),p=s.C,M=d[y++],T=d[y++],i=d[y++],o=d[y++],e.addData(p,m,v,M,T,i,o);break;case"s":m=i,v=o,C=e.len(),I=e.data,n===s.C&&(m+=i-I[C-4],v+=o-I[C-3]),p=s.C,M=i+d[y++],T=o+d[y++],i+=d[y++],o+=d[y++],e.addData(p,m,v,M,T,i,o);break;case"Q":M=d[y++],T=d[y++],i=d[y++],o=d[y++],p=s.Q,e.addData(p,M,T,i,o);break;case"q":M=d[y++]+i,T=d[y++]+o,i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,M,T,i,o);break;case"T":m=i,v=o,C=e.len(),I=e.data,n===s.Q&&(m+=i-I[C-4],v+=o-I[C-3]),i=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"t":m=i,v=o,C=e.len(),I=e.data,n===s.Q&&(m+=i-I[C-4],v+=o-I[C-3]),i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"A":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Au(M=i,T=o,i=d[y++],o=d[y++],b,S,_,x,w,p=s.A,e);break;case"a":_=d[y++],x=d[y++],w=d[y++],b=d[y++],S=d[y++],Au(M=i,T=o,i+=d[y++],o+=d[y++],b,S,_,x,w,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=r,o=a),n=p}e.toStatic()}}return e}(t),t=O({},e);return t.buildPath=function(t){var e;zu(t)?(t.setData(S.data),(e=t.getContext())&&t.rebuildPath(e,1)):S.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=S,n=t;if(n){for(var i,o,r,a,s=e.data,l=e.len(),u=_u.M,h=_u.C,c=_u.L,p=_u.R,d=_u.A,f=_u.Q,g=0,y=0;g<l;){switch(i=s[g++],y=g,o=0,i){case u:case c:o=1;break;case h:o=3;break;case f:o=2;break;case d:var m=n[4],v=n[5],_=wu(n[0]*n[0]+n[1]*n[1]),x=wu(n[2]*n[2]+n[3]*n[3]),w=bu(-n[1]/x,n[0]/_);s[g]*=_,s[g++]+=m,s[g]*=x,s[g++]+=v,s[g++]*=_,s[g++]*=x,s[g++]+=w,s[g++]+=w,y=g+=2;break;case p:a[0]=s[g++],a[1]=s[g++],oe(a,a,n),s[y++]=a[0],s[y++]=a[1],a[0]+=s[g++],a[1]+=s[g++],oe(a,a,n),s[y++]=a[0],s[y++]=a[1]}for(r=0;r<o;r++){var b=xu[r];b[0]=s[g++],b[1]=s[g++],oe(b,b,n),s[y++]=b[0],s[y++]=b[1]}}e.increaseVersion()}this.dirtyShape()},t}function Bu(t,e){return new Ru(Eu(t,e))}var Fu,Vu=function(){this.cx=0,this.cy=0,this.r=0},Gu=(u(Hu,Fu=q),Hu.prototype.getDefaultShape=function(){return new Vu},Hu.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},Hu);function Hu(t){return Fu.call(this,t)||this}Gu.prototype.type="circle";var Wu,Xu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Yu=(u(Uu,Wu=q),Uu.prototype.getDefaultShape=function(){return new Xu},Uu.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.rx,e=e.ry,r=.5522848*o,a=.5522848*e;t.moveTo(n-o,i),t.bezierCurveTo(n-o,i-a,n-r,i-e,n,i-e),t.bezierCurveTo(n+r,i-e,n+o,i-a,n+o,i),t.bezierCurveTo(n+o,i+a,n+r,i+e,n,i+e),t.bezierCurveTo(n-r,i+e,n-o,i+a,n-o,i),t.closePath()},Uu);function Uu(t){return Wu.call(this,t)||this}Yu.prototype.type="ellipse";var Zu=Math.PI,ju=2*Zu,qu=Math.sin,Ku=Math.cos,Ju=Math.acos,$u=Math.atan2,Qu=Math.abs,th=Math.sqrt,eh=Math.max,nh=Math.min,ih=1e-4;function oh(t,e,n,i,o,r,a){var s=t-n,l=e-i,a=(a?r:-r)/th(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,u=(t+n)/2,h=e-s,c=n-t,p=h*h+c*c,r=o-r,s=s*n-e*t,n=(c<0?-1:1)*th(eh(0,r*r*p-s*s)),e=(s*c-h*n)/p,t=(-s*h-c*n)/p,d=(s*c+h*n)/p,s=(-s*h+c*n)/p,h=e-i,c=t-u,n=d-i,p=s-u;return n*n+p*p<h*h+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(o/r-1),y1:t*(o/r-1)}}function rh(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x,w,b,S,M,T,C,I,D,k,A,P,L=eh(e.r,0),O=eh(e.r0||0,0),R=0<L;(R||0<O)&&(R||(L=O,O=0),L<O&&(R=L,L=O,O=R),R=e.startAngle,n=e.endAngle,isNaN(R)||isNaN(n)||(i=e.cx,o=e.cy,r=!!e.clockwise,m=Qu(n-R),ih<(a=ju<m&&m%ju)&&(m=a),ih<L?ju-ih<m?(t.moveTo(i+L*Ku(R),o+L*qu(R)),t.arc(i,o,L,R,n,!r),ih<O&&(t.moveTo(i+O*Ku(n),o+O*qu(n)),t.arc(i,o,O,n,R,r))):(S=b=w=x=_=v=c=h=I=C=T=M=u=l=s=a=void 0,p=L*Ku(R),d=L*qu(R),f=O*Ku(n),g=O*qu(n),(y=ih<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(F(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],u=e[3]),e=Qu(L-O)/2,M=nh(e,l),T=nh(e,u),C=nh(e,a),I=nh(e,s),v=h=eh(M,T),_=c=eh(C,I),ih<h||ih<c)&&(x=L*Ku(n),w=L*qu(n),b=O*Ku(R),S=O*qu(R),m<Zu)&&(e=function(t,e,n,i,o,r,a,s){var l=(s=s-r)*(n=n-t)-(a=a-o)*(i=i-e);if(!(l*l<ih))return[t+(l=(a*(e-r)-s*(t-o))/l)*n,e+l*i]}(p,d,b,S,x,w,f,g))&&(M=p-e[0],T=d-e[1],C=x-e[0],I=w-e[1],m=1/qu(Ju((M*C+T*I)/(th(M*M+T*T)*th(C*C+I*I)))/2),M=th(e[0]*e[0]+e[1]*e[1]),v=nh(h,(L-M)/(1+m)),_=nh(c,(O-M)/(m-1))),y?ih<v?(D=nh(l,v),k=nh(u,v),A=oh(b,S,p,d,L,D,r),P=oh(x,w,f,g,L,k,r),t.moveTo(i+A.cx+A.x0,o+A.cy+A.y0),v<h&&D===k?t.arc(i+A.cx,o+A.cy,v,$u(A.y0,A.x0),$u(P.y0,P.x0),!r):(0<D&&t.arc(i+A.cx,o+A.cy,D,$u(A.y0,A.x0),$u(A.y1,A.x1),!r),t.arc(i,o,L,$u(A.cy+A.y1,A.cx+A.x1),$u(P.cy+P.y1,P.cx+P.x1),!r),0<k&&t.arc(i+P.cx,o+P.cy,k,$u(P.y1,P.x1),$u(P.y0,P.x0),!r))):(t.moveTo(i+p,o+d),t.arc(i,o,L,R,n,!r)):t.moveTo(i+p,o+d),ih<O&&y?ih<_?(D=nh(a,_),A=oh(f,g,x,w,O,-(k=nh(s,_)),r),P=oh(p,d,b,S,O,-D,r),t.lineTo(i+A.cx+A.x0,o+A.cy+A.y0),_<c&&D===k?t.arc(i+A.cx,o+A.cy,_,$u(A.y0,A.x0),$u(P.y0,P.x0),!r):(0<k&&t.arc(i+A.cx,o+A.cy,k,$u(A.y0,A.x0),$u(A.y1,A.x1),!r),t.arc(i,o,O,$u(A.cy+A.y1,A.cx+A.x1),$u(P.cy+P.y1,P.cx+P.x1),r),0<D&&t.arc(i+P.cx,o+P.cy,D,$u(P.y1,P.x1),$u(P.y0,P.x0),!r))):(t.lineTo(i+f,o+g),t.arc(i,o,O,n,R,r)):t.lineTo(i+f,o+g)):t.moveTo(i,o),t.closePath()))}var ah,sh=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},lh=(u(uh,ah=q),uh.prototype.getDefaultShape=function(){return new sh},uh.prototype.buildPath=function(t,e){rh(t,e)},uh.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},uh);function uh(t){return ah.call(this,t)||this}lh.prototype.type="sector";var hh,ch=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},e=(u(ph,hh=q),ph.prototype.getDefaultShape=function(){return new ch},ph.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,o,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,o,!0)},ph);function ph(t){return hh.call(this,t)||this}function dh(t,e,n){var i=e.smooth,o=e.points;if(o&&2<=o.length){if(i)for(var r=function(t,e,n,i){var o,r,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)re(h,h,t[p]),ae(c,c,t[p]);re(h,h,i[0]),ae(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Ut(t[p]));continue}o=t[p-1],r=t[p+1]}jt(s,r,o),Jt(s,s,e);var g=Qt(f,o),y=Qt(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),Jt(l,s,-g),Jt(u,s,y),Zt([],f,l)),g=Zt([],f,u);i&&(ae(m,m,h),re(m,m,c),ae(g,g,h),re(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(o,i,n,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(n?a:a-1);s++){var l=r[2*s],u=r[2*s+1],h=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}else{t.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s<c;s++)t.lineTo(o[s][0],o[s][1])}n&&t.closePath()}}e.prototype.type="ring";var fh,gh=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},yh=(u(mh,fh=q),mh.prototype.getDefaultShape=function(){return new gh},mh.prototype.buildPath=function(t,e){dh(t,e,!0)},mh);function mh(t){return fh.call(this,t)||this}yh.prototype.type="polygon";var vh,_h=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},xh=(u(wh,vh=q),wh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},wh.prototype.getDefaultShape=function(){return new _h},wh.prototype.buildPath=function(t,e){dh(t,e,!1)},wh);function wh(t){return vh.call(this,t)||this}xh.prototype.type="polyline";var bh,Sh={},Mh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Th=(u(Ch,bh=q),Ch.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ch.prototype.getDefaultShape=function(){return new Mh},Ch.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(n=(r=Ks(Sh,e,this.style)).x1,i=r.y1,o=r.x2,r):(n=e.x1,i=e.y1,o=e.x2,e)).y2;var n,i,o,r,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(o=n*(1-e)+o*e,r=i*(1-e)+r*e),t.lineTo(o,r))},Ch.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Ch);function Ch(t){return bh.call(this,t)||this}Th.prototype.type="line";var Ih=[],Dh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function kh(t,e,n){var i=t.cpx2,o=t.cpy2;return null!=i||null!=o?[(n?Xn:Wn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Xn:Wn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Kn:qn)(t.x1,t.cpx1,t.x2,e),(n?Kn:qn)(t.y1,t.cpy1,t.y2,e)]}u(Lh,Ah=q),Lh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Lh.prototype.getDefaultShape=function(){return new Dh},Lh.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&($n(n,a,o,e,Ih),a=Ih[1],o=Ih[2],$n(i,s,r,e,Ih),s=Ih[1],r=Ih[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(Zn(n,a,l,o,e,Ih),a=Ih[1],l=Ih[2],o=Ih[3],Zn(i,s,u,r,e,Ih),s=Ih[1],u=Ih[2],r=Ih[3]),t.bezierCurveTo(a,s,l,u,o,r)))},Lh.prototype.pointAt=function(t){return kh(this.shape,t,!1)},Lh.prototype.tangentAt=function(t){t=kh(this.shape,t,!0);return $t(t,t)};var Ah,Ph=Lh;function Lh(t){return Ah.call(this,t)||this}Ph.prototype.type="bezier-curve";var Oh,Rh=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Nh=(u(zh,Oh=q),zh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},zh.prototype.getDefaultShape=function(){return new Rh},zh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(r),l=Math.sin(r);t.moveTo(s*o+n,l*o+i),t.arc(n,i,o,r,a,!e)},zh);function zh(t){return Oh.call(this,t)||this}Nh.prototype.type="arc";u(Fh,Eh=q),Fh.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},Fh.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},Fh.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Fh.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Fh.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),q.prototype.getBoundingRect.call(this)};var Eh,Bh=Fh;function Fh(){var t=null!==Eh&&Eh.apply(this,arguments)||this;return t.type="compound",t}Gh.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var Vh=Gh;function Gh(t){this.colorStops=t||[]}u(Xh,Hh=Vh);var Hh,Wh=Xh;function Xh(t,e,n,i,o,r){o=Hh.call(this,o)||this;return o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==n?1:n,o.y2=null==i?0:i,o.type="linear",o.global=r||!1,o}u(Zh,Yh=Vh);var Yh,Uh=Zh;function Zh(t,e,n,i,o){i=Yh.call(this,i)||this;return i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=o||!1,i}var jh=[0,0],qh=[0,0],Kh=new M,Jh=new M,$h=(Qh.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(n[0].set(o,r),n[1].set(a,r),n[2].set(a,t),n[3].set(o,t),e)for(var s=0;s<4;s++)n[s].transform(e);M.sub(i[0],n[1],n[0]),M.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},Qh.prototype.intersect=function(t,e){var n=!0,i=!e;return Kh.set(1/0,1/0),Jh.set(0,0),!this._intersectCheckOneSide(this,t,Kh,Jh,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Kh,Jh,i,-1)&&(n=!1,i)||i||M.copy(e,n?Kh:Jh),n},Qh.prototype._intersectCheckOneSide=function(t,e,n,i,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,jh),this._getProjMinMaxOnAxis(s,e._corners,qh),jh[1]<qh[0]||qh[1]<jh[0]){if(a=!1,o)return a;var u=Math.abs(qh[0]-jh[1]),h=Math.abs(jh[0]-qh[1]);Math.min(u,h)>i.len()&&(u<h?M.scale(i,l,-u*r):M.scale(i,l,h*r))}else n&&(u=Math.abs(qh[0]-jh[1]),h=Math.abs(jh[0]-qh[1]),Math.min(u,h)<n.len())&&(u<h?M.scale(n,l,u*r):M.scale(n,l,-h*r))}return a},Qh.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],o=this._origin,r=e[0].dot(i)+o[t],a=r,s=r,l=1;l<e.length;l++)var u=e[l].dot(i)+o[t],a=Math.min(u,a),s=Math.max(u,s);n[0]=a,n[1]=s},Qh);function Qh(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new M;for(n=0;n<2;n++)this._axes[n]=new M;t&&this.fromBoundingRect(t,e)}var tc,ec=[],Vh=(u(nc,tc=Xa),nc.prototype.traverse=function(t,e){t.call(e,this)},nc.prototype.useStyle=function(){this.style={}},nc.prototype.getCursor=function(){return this._cursor},nc.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},nc.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},nc.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},nc.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},nc.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},nc.prototype.getDisplayables=function(){return this._displayables},nc.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},nc.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},nc.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var e,t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},nc.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Y(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(ec)),t.union(i)}this._rect=t}return this._rect},nc.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},nc);function nc(){var t=null!==tc&&tc.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var ic=ta();function oc(t,e,n,i,o,r,a){var s,l,u,h,c,p,d=!1,f=(D(o)?(a=r,r=o,o=null):L(o)&&(r=o.cb,a=o.during,d=o.isFrom,l=o.removeOpt,o=o.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=o,l=f?l||{}:null,i=(g=i)&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=h=o=void 0,c=l?(o=z(l.duration,200),h=z(l.easing,"cubicOut"),0):(o=g.getShallow(p?"animationDurationUpdate":"animationDuration"),h=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),D(c=u&&(null!=u.duration&&(o=u.duration),null!=u.easing&&(h=u.easing),null!=u.delay)?u.delay:c)&&(c=c(s,i)),{duration:(o=D(o)?o(s):o)||0,delay:c,easing:h}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:r,force:!!r||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(n,p):e.animateTo(n,p)):(e.stopAnimation(),d||e.attr(n),a&&a(1),r&&r())}function rc(t,e,n,i,o,r){oc("update",t,e,n,i,o,r)}function ac(t,e,n,i,o,r){oc("enter",t,e,n,i,o,r)}function sc(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function lc(t,e,n,i,o,r){sc(t)||oc("leave",t,e,n,i,o,r)}function uc(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),lc(t,{style:{opacity:0}},e,n,i)}var hc=Math.max,cc=Math.min,pc={};function dc(t){return q.extend(t)}var fc=function(t,e){var n,i=Eu(t,e);function o(t){t=n.call(this,t)||this;return t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}return u(o,n=Ru),o};function gc(t,e){return fc(t,e)}function yc(t,e){pc[t]=e}function mc(t){if(pc.hasOwnProperty(t))return pc[t]}function vc(t,e,n,i){t=Bu(t,e);return n&&("center"===i&&(n=xc(n,t.getBoundingRect())),bc(t,n)),t}function _c(t,e,n){var i=new Zs({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(xc(e,t)))}});return i}function xc(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function wc(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var r=t[o];n.push(r.getUpdatedPathProxy(!0))}return(e=new q(e)).createPathProxy(),e.buildPath=function(t){var e;zu(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function bc(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function Sc(t,e){return Ks(t,t,{lineWidth:e}),t}var Mc=$s;function Tc(t,e){for(var n=Ee([]);t&&t!==e;)Fe(n,t.getLocalTransform(),n),t=t.parent;return n}function Cc(t,e,n){return e&&!ht(e)&&(e=Vo.getLocalTransform(e)),oe([],t,e=n?We([],e):e)}function Ic(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=Cc(["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"}function Dc(t){return!t.isGroup}function kc(t,e,i){var o,n;function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=O({},t.shape)),e}t&&e&&(n={},t.traverse(function(t){Dc(t)&&t.anid&&(n[t.anid]=t)}),o=n,e.traverse(function(t){var e,n;Dc(t)&&t.anid&&(e=o[t.anid])&&(n=r(t),t.attr(r(e)),rc(t,n,i,k(t).dataIndex))}))}function Ac(t,n){return B(t,function(t){var e=t[0],e=hc(e,n.x),t=(e=cc(e,n.x+n.width),t[1]),t=hc(t,n.y);return[e,cc(t,n.y+n.height)]})}function Pc(t,e){var n=hc(t.x,e.x),i=cc(t.x+t.width,e.x+e.width),o=hc(t.y,e.y),t=cc(t.y+t.height,e.y+e.height);if(n<=i&&o<=t)return{x:n,y:o,width:i-n,height:t-o}}function Lc(t,e,n){var e=O({rectHover:!0},e),i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),E(i,n),new Zs(e)):vc(t.replace("path://",""),e,n,"center")}function Oc(t,e,n,i,o,r,a,s){var l,n=n-t,i=i-e,a=a-o,s=s-r,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(o=((l=t-o)*i-n*(t=e-r))/u)<0||1<o||(i=(l*s-a*t)/u)<0||1<i)}function Rc(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=V(e)?{formatter:e}:e,o=n.mainType,n=n.componentIndex,r={componentType:o,name:i,$vars:["name"]},a=(r[o+"Index"]=n,t.formatterParamsExtra),t=(a&&R(N(a),function(t){Vt(r,t)||(r[t]=a[t],r.$vars.push(t))}),k(t.el));t.componentMainType=o,t.componentIndex=n,t.tooltipConfig={name:i,option:E({content:i,formatterParams:r},e)}}function Nc(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function zc(t,e){if(t)if(F(t))for(var n=0;n<t.length;n++)Nc(t[n],e);else Nc(t,e)}yc("circle",Gu),yc("ellipse",Yu),yc("sector",lh),yc("ring",e),yc("polygon",yh),yc("polyline",xh),yc("rect",nl),yc("line",Th),yc("bezierCurve",Ph),yc("arc",Nh);var Ec=Object.freeze({__proto__:null,Arc:Nh,BezierCurve:Ph,BoundingRect:Y,Circle:Gu,CompoundPath:Bh,Ellipse:Yu,Group:T,Image:Zs,IncrementalDisplayable:Vh,Line:Th,LinearGradient:Wh,OrientedBoundingRect:$h,Path:q,Point:M,Polygon:yh,Polyline:xh,RadialGradient:Uh,Rect:nl,Ring:e,Sector:lh,Text:sl,applyTransform:Cc,clipPointsByRect:Ac,clipRectByRect:Pc,createIcon:Lc,extendPath:gc,extendShape:dc,getShapeClass:mc,getTransform:Tc,groupTransition:kc,initProps:ac,isElementRemoved:sc,lineLineIntersect:Oc,linePolygonIntersect:function(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Oc(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:_c,makePath:vc,mergePath:wc,registerShape:yc,removeElement:lc,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||uc(t,e,n,i)}):uc(t,e,n,i)},resizePath:bc,setTooltipConfig:Rc,subPixelOptimize:Mc,subPixelOptimizeLine:Sc,subPixelOptimizeRect:function(t){return Js(t.shape,t.shape,t.style),t},transformDirection:Ic,traverseElements:zc,updateProps:rc}),Bc={};function Fc(t,e){for(var n=0;n<kl.length;n++){var i=kl[n],o=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function Vc(t,e,n){for(var i,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?D(t.defaultText)?t.defaultText(r,t,n):t.defaultText:i},u=0;u<kl.length;u++){var h=kl[u],c=e[h];l[h]=z(o?o.getFormattedLabel(r,h,null,a,c&&c.get("formatter")):null,i)}return l}function Gc(t,e,n,i){n=n||Bc;for(var o=t instanceof sl,r=!1,a=0;a<Al.length;a++)if((p=e[Al[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new sl,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Vc(n,e),u=e.normal,h=!!u.getShallow("show"),c=Wc(u,i&&i.normal,n,!1,!o);c.text=l.normal,o||t.setTextConfig(Xc(u,n,!1));for(a=0;a<kl.length;a++){var p,d,f,g=kl[a];(p=e[g])&&(d=s.ensureState(g),(f=!!z(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=Wc(p,i&&i[g],n,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=Xc(p,n,!0)))}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),n.enableTextSetter&&(qc(s).setLabelText=function(t){t=Vc(n,e,t);Fc(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Hc(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<kl.length;i++){var o=kl[i];n[o]=t.getModel([o,e])}return n}function Wc(t,e,n,i,o){var r,a={},s=a,l=t,u=n,h=i,c=o;u=u||Bc;var p,t=l.ecModel,d=t&&t.option.textStyle,f=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Bc).rich;if(n){e=e||{};for(var i=N(n),o=0;o<i.length;o++){var r=i[o];e[r]=1}}t=t.parentModel}return e}(l);if(f)for(var g in p={},f)f.hasOwnProperty(g)&&(r=l.getModel(["rich",g]),jc(p[g]={},r,d,u,h,c,!1,!0));return p&&(s.rich=p),(t=l.get("overflow"))&&(s.overflow=t),null!=(t=l.get("minMargin"))&&(s.margin=t),jc(s,l,d,u,h,c,!0,!1),e&&O(a,e),a}function Xc(t,e,n){e=e||{};var i={},o=t.getShallow("rotate"),r=z(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=r&&(i.distance=r),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var Yc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Uc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Zc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function jc(t,e,n,i,o,r,a,s){n=!o&&n||Bc;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=z(e.getShallow("opacity"),n.opacity),u=("inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==h&&"auto"!==h||(h=l||null),r||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h),z(e.getShallow("textBorderWidth"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),z(e.getShallow("textBorderType"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),z(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=u&&(t.lineDashOffset=u),null!=(c=o||null!=c||s?c:i&&i.defaultOpacity)&&(t.opacity=c),o||r||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<Yc.length;p++){var d=Yc[p];null!=(f=z(e.getShallow(d),n[d]))&&(t[d]=f)}for(var p=0;p<Uc.length;p++){d=Uc[p];null!=(f=e.getShallow(d))&&(t[d]=f)}if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<Zc.length;p++){var f,d=Zc[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow("borderType");null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}var qc=ta();function Kc(n,i,o,t,r){var a,s,l,u=qc(n);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=z(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?ac:rc)(n,{percent:1},t,i,null,function(t){var e=la(o,u.precision,s,l,t),t=(u.interpolatedValue=1===t?null:e,Vc({labelDataIndex:i,labelFetcher:r,defaultText:a?a(e):e+""},u.statesModels,e));Fc(n,t)}))}var Jc=["textStyle","color"],$c=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Qc=new sl,Mc=(tp.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Jc):null)},tp.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),Dt([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e},tp.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<$c.length;n++)e[$c[n]]=this.getShallow($c[n]);return Qc.useStyle(e),Qc.update(),Qc.getBoundingRect()},tp);function tp(){}var ep=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],np=_a(ep),ip=(op.prototype.getLineStyle=function(t){return np(this,t)},op);function op(){}var rp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ap=_a(rp),sp=(lp.prototype.getItemStyle=function(t,e){return ap(this,t,e)},lp);function lp(){}cp.prototype.init=function(t,e,n){},cp.prototype.mergeOption=function(t,e){d(this.option,t,!0)},cp.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},cp.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},cp.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new cp(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},cp.prototype.isEmpty=function(){return null==this.option},cp.prototype.restoreData=function(){},cp.prototype.clone=function(){return new this.constructor(_(this.option))},cp.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},cp.prototype.resolveParentPath=function(t){return t},cp.prototype.isAnimationEnabled=function(){if(!b.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},cp.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var up,hp=cp;function cp(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}da(hp),Dp=hp,up=["__\0is_clz",ga++].join("_"),Dp.prototype[up]=!0,Dp.isInstance=function(t){return!(!t||!t[up])},ut(hp,ip),ut(hp,sp),ut(hp,wa),ut(hp,Mc);var pp=Math.round(10*Math.random());function dp(t){return[t||"",pp++].join("_")}function fp(t,e){return d(d({},t,!0),e,!0)}var gp="ZH",yp="EN",mp=yp,vp={},_p={},xp=b.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||mp).toUpperCase().indexOf(gp)?gp:mp;function wp(t,e){t=t.toUpperCase(),_p[t]=new hp(e),vp[t]=e}function bp(t){return _p[t]}wp(yp,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),wp(gp,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},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:"旭日图",custom:"自定义图表",chart:"图表"}},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:""}}}});var Sp=1e3,Mp=60*Sp,Tp=60*Mp,Cp=24*Tp,ga=365*Cp,Ip={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Dp="{yyyy}-{MM}-{dd}",kp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Dp,hour:Dp+" "+Ip.hour,minute:Dp+" "+Ip.minute,second:Dp+" "+Ip.second,millisecond:Ip.none},Ap=["year","month","day","hour","minute","second","millisecond"],Pp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Lp(t,e){return"0000".substr(0,e-(t+="").length)+t}function Op(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Rp(t,e,n,i){var t=Lr(t),o=t[Ep(n)](),r=t[Bp(n)]()+1,a=Math.floor((r-1)/3)+1,s=t[Fp(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[Vp(n)](),h=(u-1)%12+1,c=t[Gp(n)](),p=t[Hp(n)](),t=t[Wp(n)](),n=(i instanceof hp?i:bp(i||xp)||_p[mp]).getModel("time"),i=n.get("month"),d=n.get("monthAbbr"),f=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Lp(o%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,i[r-1]).replace(/{MMM}/g,d[r-1]).replace(/{MM}/g,Lp(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,Lp(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Lp(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Lp(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Lp(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Lp(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Lp(t,3)).replace(/{S}/g,t+"")}function Np(t,e){var t=Lr(t),n=t[Bp(e)]()+1,i=t[Fp(e)](),o=t[Vp(e)](),r=t[Gp(e)](),a=t[Hp(e)](),t=0===t[Wp(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===i;return o&&1===n?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function zp(t,e,n){var i=gt(t)?Lr(t):t;switch(e=e||Np(t,n)){case"year":return i[Ep(n)]();case"half-year":return 6<=i[Bp(n)]()?1:0;case"quarter":return Math.floor((i[Bp(n)]()+1)/4);case"month":return i[Bp(n)]();case"day":return i[Fp(n)]();case"half-day":return i[Vp(n)]()/24;case"hour":return i[Vp(n)]();case"minute":return i[Gp(n)]();case"second":return i[Hp(n)]();case"millisecond":return i[Wp(n)]()}}function Ep(t){return t?"getUTCFullYear":"getFullYear"}function Bp(t){return t?"getUTCMonth":"getMonth"}function Fp(t){return t?"getUTCDate":"getDate"}function Vp(t){return t?"getUTCHours":"getHours"}function Gp(t){return t?"getUTCMinutes":"getMinutes"}function Hp(t){return t?"getUTCSeconds":"getSeconds"}function Wp(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Xp(t){return t?"setUTCMonth":"setMonth"}function Yp(t){return t?"setUTCDate":"setDate"}function Up(t){return t?"setUTCHours":"setHours"}function Zp(t){return t?"setUTCMinutes":"setMinutes"}function jp(t){return t?"setUTCSeconds":"setSeconds"}function qp(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Kp(t){var e;return Er(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):V(t)?t:"-"}function Jp(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}var $p=Ct;function Qp(t,e,n){function i(t){return t&&Dt(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){var r=r?Lr(t):t;if(!isNaN(+r))return Rp(r,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?ft(t)?i(t):gt(t)&&o(t)?t+"":"-":o(r=zr(t))?Kp(r):ft(t)?i(t):"boolean"==typeof t?t+"":"-"}function td(t,e){return"{"+t+(null==e?"":e)+"}"}var ed=["a","b","c","d","e","f","g"];function nd(t,e,n){var i=(e=F(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=ed[r];t=t.replace(td(a),td(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var u=e[s][o[l]];t=t.replace(td(ed[l],s),n?be(u):u)}return t}function id(t,e){var t=V(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,o=(e=t.extraCssText,t.renderMode||"html");return n?"html"===o?"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:'+be(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+be(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function od(t,e){return e=e||"transparent",V(t)?t:L(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function rd(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var ad=R,sd=["left","right","top","bottom","width","height"],ld=[["width","left","right"],["height","top","bottom"]];function ud(a,s,l,u,h){var c=0,p=0,d=(null==u&&(u=1/0),null==h&&(h=1/0),0);s.eachChild(function(t,e){var n,i,o,r=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(i=r.width+(e?-e.x+r.x:0),u<(n=c+i)||t.newline?(c=0,n=i,p+=d+l,r.height):Math.max(d,r.height)):(i=r.height+(e?-e.y+r.y:0),h<(o=p+i)||t.newline?(c+=d+l,p=0,o=i,r.width):Math.max(d,r.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=o+l)})}var hd=ud;function cd(t,e,n){n=$p(n||0);var i=e.width,o=e.height,r=H(t.left,i),a=H(t.top,o),e=H(t.right,i),s=H(t.bottom,o),l=H(t.width,i),u=H(t.height,o),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-r),isNaN(u)&&(u=o-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/o<p?l=.8*i:u=.8*o),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(r)&&(r=i-e-l-c),isNaN(a)&&(a=o-s-u-h),t.left||t.right){case"center":r=i/2-l/2-n[3];break;case"right":r=i-l-c}switch(t.top||t.bottom){case"middle":case"center":a=o/2-u/2-n[0];break;case"bottom":a=o-u-h}r=r||0,a=a||0,isNaN(l)&&(l=i-c-r-(e||0)),isNaN(u)&&(u=o-h-a-(s||0));p=new Y(r+n[3],a+n[0],l,u);return p.margin=n,p}function pd(t){t=t.layoutMode||t.constructor.layoutMode;return L(t)?t:t?{type:t}:null}function dd(l,u,t){var h=t&&t.ignoreSize,t=(F(h)||(h=[h,h]),n(ld[0],0)),e=n(ld[1],1);function n(t,e){var n={},i=0,o={},r=0;if(ad(t,function(t){o[t]=l[t]}),ad(t,function(t){c(u,t)&&(n[t]=o[t]=u[t]),p(n,t)&&i++,p(o,t)&&r++}),h[e])p(u,t[1])?o[t[2]]=null:p(u,t[2])&&(o[t[1]]=null);else if(2!==r&&i){if(!(2<=i))for(var a=0;a<t.length;a++){var s=t[a];if(!c(n,s)&&c(l,s)){n[s]=l[s];break}}return n}return o}function c(t,e){return t.hasOwnProperty(e)}function p(t,e){return null!=t[e]&&"auto"!==t[e]}function i(t,e,n){ad(t,function(t){e[t]=n[t]})}i(ld[0],l,t),i(ld[1],l,e)}function fd(t){return e={},(n=t)&&e&&ad(sd,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e;var e,n}dt(ud,"vertical"),dt(ud,"horizontal");var gd,yd,md,vd,_d=ta(),g=(u(xd,gd=hp),xd.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},xd.prototype.mergeDefaultAndTheme=function(t,e){var n=pd(this),i=n?fd(t):{};d(t,e.getTheme().get(this.mainType)),d(t,this.getDefaultOption()),n&&dd(t,i,n)},xd.prototype.mergeOption=function(t,e){d(this.option,t,!0);var n=pd(this);n&&dd(this.option,t,n)},xd.prototype.optionUpdated=function(t,e){},xd.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[ca])return t.defaultOption;var e=_d(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},a=n.length-1;0<=a;a--)r=d(r,n[a],!0);e.defaultOption=r}return e.defaultOption},xd.prototype.getReferringComponents=function(t,e){var n=t+"Id";return aa(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},xd.prototype.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")}},xd.prototype.getZLevelKey=function(){return""},xd.prototype.setZLevel=function(t){this.option.zlevel=t},xd.protoInitialize=((ip=xd.prototype).type="component",ip.id="",ip.name="",ip.mainType="",ip.subType="",void(ip.componentIndex=0)),xd);function xd(t,e,n){t=gd.call(this,t,e,n)||this;return t.uid=dp("ec_cpt_model"),t}function wd(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}fa(g,hp),va(g),md={},(yd=g).registerSubTypeDefaulter=function(t,e){t=pa(t);md[t.main]=e},yd.determineSubType=function(t,e){var n,i=e.type;return i||(n=pa(t).main,yd.hasSubTypes(t)&&md[n]&&(i=md[n](e))),i},vd=function(t){var e=[];R(g.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=B(e,function(t){return pa(t).main}),"dataset"!==t&&I(e,"dataset")<=0&&e.unshift("dataset");return e},g.topologicalTravel=function(t,e,n,i){if(t.length){a={},s=[],R(r=e,function(n){var e,i,o=wd(a,n),t=o.originalDeps=vd(n),t=(e=r,i=[],R(t,function(t){0<=I(e,t)&&i.push(t)}),i);o.entryCount=t.length,0===o.entryCount&&s.push(n),R(t,function(t){I(o.predecessor,t)<0&&o.predecessor.push(t);var e=wd(a,t);I(e.successor,t)<0&&e.successor.push(n)})});var r,a,s,e={graph:a,noEntryList:s},o=e.graph,l=e.noEntryList,u={};for(R(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=o[h],p=!!u[h];p&&(n.call(i,h,c.originalDeps.slice()),delete u[h]),R(c.successor,p?f:d)}R(u,function(){throw new Error("")})}function d(t){o[t].entryCount--,0===o[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}};var sp="",wa=("undefined"!=typeof navigator&&(sp=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),bd={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:wa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wa,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wa,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:sp.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Sd=G(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Md="original",Td="arrayRows",Cd="objectRows",Id="keyedColumns",Dd="typedArray",kd="unknown",Ad="column",Pd="row",Ld={Must:1,Might:2,Not:3},Od=ta();function Rd(n,t,e){var o,r,a,i,s,l={},u=zd(t);return u&&n&&(o=[],r=[],t=t.ecModel,t=Od(t).datasetMap,u=u.uid+"_"+e.seriesLayoutBy,R(n=n.slice(),function(t,e){t=L(t)?t:n[e]={name:t};"ordinal"===t.type&&null==a&&(a=e,i=c(t)),l[t.name]=[]}),s=t.get(u)||t.set(u,{categoryWayDim:i,valueWayDim:0}),R(n,function(t,e){var n,i=t.name,t=c(t);null==a?(n=s.valueWayDim,h(l[i],n,t),h(r,n,t),s.valueWayDim+=t):a===e?(h(l[i],0,t),h(o,0,t)):(n=s.categoryWayDim,h(l[i],n,t),h(r,n,t),s.categoryWayDim+=t)}),o.length&&(l.itemName=o),r.length)&&(l.seriesName=r),l;function h(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function c(t){t=t.dimsDef;return t?t.length:1}}function Nd(t,l,u){var h,c,p,e={};return zd(t)&&(h=l.sourceFormat,c=l.dimensionsDefine,h!==Cd&&h!==Id||R(c,function(t,e){"name"===(L(t)?t.name:t)&&(p=e)}),t=function(){for(var t={},e={},n=[],i=0,o=Math.min(5,u);i<o;i++){var r=Bd(l.data,h,l.seriesLayoutBy,c,l.startIndex,i),a=(n.push(r),r===Ld.Not);if(a&&null==t.v&&i!==p&&(t.v=i),null!=t.n&&t.n!==t.v&&(a||n[t.n]!==Ld.Not)||(t.n=i),s(t)&&n[t.n]!==Ld.Not)return t;a||(r===Ld.Might&&null==e.v&&i!==p&&(e.v=i),null!=e.n&&e.n!==e.v)||(e.n=i)}function s(t){return null!=t.v&&null!=t.n}return s(t)?t:s(e)?e:null}())&&(e.value=[t.v],t=null!=p?p:t.n,e.itemName=[t],e.seriesName=[t]),e}function zd(t){if(!t.get("data",!0))return aa(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},oa).models[0]}function Ed(t,e){return Bd(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Bd(t,e,n,i,o,r){var a,s,l;if(!mt(t)){if(i&&(L(i=i[r])?(s=i.name,l=i.type):V(i)&&(s=i)),null!=l)return"ordinal"===l?Ld.Must:Ld.Not;if(e===Td){var u=t;if(n===Pd){for(var h=u[r],c=0;c<(h||[]).length&&c<5;c++)if(null!=(a=m(h[o+c])))return a}else for(c=0;c<u.length&&c<5;c++){var p=u[o+c];if(p&&null!=(a=m(p[r])))return a}}else if(e===Cd){var d=t;if(!s)return Ld.Not;for(c=0;c<d.length&&c<5;c++)if((g=d[c])&&null!=(a=m(g[s])))return a}else if(e===Id){if(!s)return Ld.Not;if(!(h=t[s])||mt(h))return Ld.Not;for(c=0;c<h.length&&c<5;c++)if(null!=(a=m(h[c])))return a}else if(e===Md)for(var f=t,c=0;c<f.length&&c<5;c++){var g,y=Yr(g=f[c]);if(!F(y))return Ld.Not;if(null!=(a=m(y[r])))return a}}return Ld.Not;function m(t){var e=V(t);return null!=t&&isFinite(t)&&""!==t?e?Ld.Might:Ld.Not:e&&"-"!==t?Ld.Must:void 0}}var Fd=G();var Vd,Gd,Hd,Wd=ta(),Xd=(ta(),Yd.prototype.getColorFromPalette=function(t,e,n){var i=Hr(this.get("color",!0)),o=this.get("colorLayer",!0),r=this,a=Wd;return a=a(e=e||r),r=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(o=(o=n==null||!o?i:Ud(o,n))||i)&&o.length?(n=o[r],t&&(e[t]=n),a.paletteIdx=(r+1)%o.length,n):void 0},Yd.prototype.clearColorPalette=function(){var t,e;(e=Wd)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Yd);function Yd(){}function Ud(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}var Zd,jd="\0_ec_inner",qd=(u(Kd,Zd=hp),Kd.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new hp(i),this._locale=new hp(o),this._optionManager=r},Kd.prototype.setOption=function(t,e,n){e=Qd(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Kd.prototype.resetOption=function(t,e){return this._resetOption(t,Qd(e))},Kd.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Hd(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=o.getMediaOption(this)).length&&R(n,function(t){i=!0,this._mergeOption(t,e)},this),i},Kd.prototype.mergeOption=function(t){this._mergeOption(t,null)},Kd.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,n=[],r=G(),p=t&&t.replaceMergeMainTypeMap;Od(this).datasetMap=G(),R(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?_(t):d(o[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(r){var a,t=function(t,e,n){return(e=(e=Fd.get(e))&&e(t))?n.concat(e):n}(this,r,Hr(i[r])),e=h.get(r),n=e?p&&p.get(r)?"replaceMerge":"normalMerge":"replaceAll",e=Ur(e,t,n),s=($r(e,r,g),o[r]=null,h.set(r,null),c.set(r,0),[]),l=[],u=0;R(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=g.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;if("tooltip"===r){if(a)return;a=!0}n&&n.constructor===o?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=O({componentIndex:e},t.keyInfo),O(n=new o(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(s.push(n.option),l.push(n),u++):(s.push(void 0),l.push(void 0))},this),o[r]=s,h.set(r,l),c.set(r,u),"series"===r&&Vd(this)},this),this._seriesIndices||Vd(this)},Kd.prototype.getOption=function(){var a=_(this.option);return R(a,function(t,e){if(g.hasClass(e)){for(var n=Hr(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!Jr(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[jd],a},Kd.prototype.getTheme=function(){return this._theme},Kd.prototype.getLocaleModel=function(){return this._locale},Kd.prototype.setUpdatePayload=function(t){this._payload=t},Kd.prototype.getUpdatePayload=function(){return this._payload},Kd.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},Kd.prototype.queryComponents=function(t){var e,n,i,o,r,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],R(Hr(e),function(t){o[t]&&r.push(o[t])})):r=null!=n?Jd("id",n,o):null!=i?Jd("name",i,o):pt(o,function(t){return!!t}),$d(r,t)):[]},Kd.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,o=(o=i+"Index",r=i+"Id",e=i+"Name",!(n=n)||null==n[o]&&null==n[r]&&null==n[e]?null:{mainType:i,index:n[o],id:n[r],name:n[e]}),r=o?this.queryComponents(o):pt(this._componentsMap.get(i),function(t){return!!t});return n=$d(r,t),t.filter?pt(n,t.filter):n},Kd.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(D(t)){var o=e,r=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&r.call(o,e,i,i.componentIndex)}})}else for(var a=V(t)?i.get(t):L(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},Kd.prototype.getSeriesByName=function(t){var e=qr(t,null);return pt(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},Kd.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Kd.prototype.getSeriesByType=function(e){return pt(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},Kd.prototype.getSeries=function(){return pt(this._componentsMap.get("series"),function(t){return!!t})},Kd.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Kd.prototype.eachSeries=function(n,i){Gd(this),R(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},Kd.prototype.eachRawSeries=function(e,n){R(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},Kd.prototype.eachSeriesByType=function(n,i,o){Gd(this),R(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(o,e,t)},this)},Kd.prototype.eachRawSeriesByType=function(t,e,n){return R(this.getSeriesByType(t),e,n)},Kd.prototype.isSeriesFiltered=function(t){return Gd(this),null==this._seriesIndicesMap.get(t.componentIndex)},Kd.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Kd.prototype.filterSeries=function(n,i){Gd(this);var o=[];R(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)&&o.push(t)},this),this._seriesIndices=o,this._seriesIndicesMap=G(o)},Kd.prototype.restoreData=function(n){Vd(this);var t=this._componentsMap,i=[];t.each(function(t,e){g.hasClass(e)&&i.push(e)}),g.topologicalTravel(i,g.getAllClassMainTypes(),function(e){R(t.get(e),function(t){!t||"series"===e&&function(t,e){{var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}}(t,n)||t.restoreData()})})},Kd.internalField=(Vd=function(t){var e=t._seriesIndices=[];R(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=G(e)},Gd=function(t){},void(Hd=function(t,e){t.option={},t.option[jd]=1,t._componentsMap=G({series:[]}),t._componentsCount=G();var n,i,o=e.aria;L(o)&&null==o.enabled&&(o.enabled=!0),n=e,o=t._theme.option,i=n.color&&!n.colorLayer,R(o,function(t,e){"colorLayer"===e&&i||g.hasClass(e)||("object"==typeof t?n[e]=n[e]?d(n[e],t,!1):_(t):null==n[e]&&(n[e]=t))}),d(e,bd,!1),t._mergeOption(e,null)})),Kd);function Kd(){return null!==Zd&&Zd.apply(this,arguments)||this}function Jd(e,t,n){var i,o;return F(t)?(i=G(),R(t,function(t){null!=t&&null!=qr(t,null)&&i.set(t,!0)}),pt(n,function(t){return t&&i.get(t[e])})):(o=qr(t,null),pt(n,function(t){return t&&null!=o&&t[e]===o}))}function $d(t,e){return e.hasOwnProperty("subType")?pt(t,function(t){return t&&t.subType===e.subType}):t}function Qd(t){var e=G();return t&&R(Hr(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ut(qd,Xd);function tf(e){R(ef,function(t){this[t]=S(e[t],e)},this)}var ef=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],nf={},of=(rf.prototype.create=function(n,i){var o=[];R(nf,function(t,e){t=t.create(n,i);o=o.concat(t||[])}),this._coordinateSystems=o},rf.prototype.update=function(e,n){R(this._coordinateSystems,function(t){t.update&&t.update(e,n)})},rf.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},rf.register=function(t,e){nf[t]=e},rf.get=function(t){return nf[t]},rf);function rf(){this._coordinateSystems=[]}var af=/^(min|max)?(.+)$/,sf=(lf.prototype.setOption=function(t,e,n){t&&(R(Hr(t.series),function(t){t&&t.data&&mt(t.data)&&At(t.data)}),R(Hr(t.dataset),function(t){t&&t.source&&mt(t.source)&&At(t.source)})),t=_(t);var i=this._optionBackup,t=function(t,n,i){var e,o,r=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);a?(o=a).timeline||(o.timeline=s):((c||h)&&(t.options=t.media=null),o=t);h&&F(u)&&R(u,function(t){t&&t.option&&(t.query?r.push(t):e=e||t)});function p(e){R(n,function(t){t(e,i)})}return p(o),R(l,p),R(r,function(t){return p(t.option)}),{baseOption:o,timelineOptions:l||[],mediaDefault:e,mediaList:r}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},lf.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],_(t?e.baseOption:this._newBaseOption)},lf.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?_(n[t.getCurrentIndex()]):e},lf.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,r=[],a=[];if(i.length||o){for(var s,l,u=0,h=i.length;u<h;u++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return R(t,function(t,e){var n,e=e.match(af);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(o=!1))}),o}(i[u].query,e,n)||r.push(u);(r=!r.length&&o?[-1]:r).length&&(s=r,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=B(r,function(t){return _((-1===t?o:i[t]).option)})),this._currentMediaIndices=r}return a},lf);function lf(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var uf=R,hf=L,cf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function pf(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=cf.length;n<i;n++){var o=cf[n],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?d(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?d(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function df(t,e,n){var i,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,o=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,E(t[e],i)):t[e]=i),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function ff(t){df(t,"itemStyle"),df(t,"lineStyle"),df(t,"areaStyle"),df(t,"label"),df(t,"labelLine"),df(t,"upperLabel"),df(t,"edgeLabel")}function gf(t,e){var n=hf(t)&&t[e],i=hf(n)&&n.textStyle;if(i)for(var o=0,r=Xr.length;o<r;o++){var a=Xr[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function yf(t){t&&(ff(t),gf(t,"label"),t.emphasis)&&gf(t.emphasis,"label")}function mf(t){return F(t)?t:t?[t]:[]}function vf(t){return(F(t)?t[0]:t)||{}}function _f(e,t){uf(mf(e.series),function(t){if(hf(t))if(hf(t)){pf(t),ff(t),gf(t,"label"),gf(t,"upperLabel"),gf(t,"edgeLabel"),t.emphasis&&(gf(t.emphasis,"label"),gf(t.emphasis,"upperLabel"),gf(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(pf(e),yf(e)),t.markLine),i=(n&&(pf(n),yf(n)),t.markArea),o=(i&&yf(i),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!mt(r))for(var a=0;a<r.length;a++)yf(r[a]);R(t.categories,function(t){ff(t)})}if(o&&!mt(o))for(a=0;a<o.length;a++)yf(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)yf(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)F(l[a])?(yf(l[a][0]),yf(l[a][1])):yf(l[a]);"gauge"===t.type?(gf(t,"axisLabel"),gf(t,"title"),gf(t,"detail")):"treemap"===t.type?(df(t.breadcrumb,"itemStyle"),R(t.levels,function(t){ff(t)})):"tree"===t.type&&ff(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),uf(n,function(t){uf(mf(e[t]),function(t){t&&(gf(t,"axisLabel"),gf(t.axisPointer,"label"))})}),uf(mf(e.parallel),function(t){t=t&&t.parallelAxisDefault;gf(t,"axisLabel"),gf(t&&t.axisPointer,"label")}),uf(mf(e.calendar),function(t){df(t,"itemStyle"),gf(t,"dayLabel"),gf(t,"monthLabel"),gf(t,"yearLabel")}),uf(mf(e.radar),function(t){gf(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),uf(mf(e.geo),function(t){hf(t)&&(yf(t),uf(mf(t.regions),function(t){yf(t)}))}),uf(mf(e.timeline),function(t){yf(t),df(t,"label"),df(t,"itemStyle"),df(t,"controlStyle",!0);t=t.data;F(t)&&R(t,function(t){L(t)&&(df(t,"label"),df(t,"itemStyle"))})}),uf(mf(e.toolbox),function(t){df(t,"iconStyle"),uf(t.feature,function(t){df(t,"iconStyle")})}),gf(vf(e.axisPointer),"label"),gf(vf(e.tooltip).axisPointer,"label")}function xf(e){e&&R(wf,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var wf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],bf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Sf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Mf(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Sf.length;n++){var i=Sf[n][1],o=Sf[n][0];null!=e[i]&&(e[o]=e[i])}}function Tf(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Cf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function If(e,t){_f(e,t),e.series=Hr(e.series),R(e.series,function(t){if(L(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Tf(t.label),(e=t.data)&&!mt(e))for(var i=0;i<e.length;i++)Tf(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var o=function(t,e){for(var n=e.split(","),i=t,o=0;o<n.length&&null!=(i=i&&i[n[o]]);o++);return i}(t,"pointer.color");if(null!=o){var r=t;var a="itemStyle.color";var s=void 0;for(var l,u=a.split(","),h=r,c=0;c<u.length-1;c++)null==h[l=u[c]]&&(h[l]={}),h=h[l];!s&&null!=h[u[c]]||(h[u[c]]=o)}}else if("bar"===n){if(Mf(t),Mf(t.backgroundStyle),Mf(t.emphasis),(e=t.data)&&!mt(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Mf(e[i]),Mf(e[i]&&e[i].emphasis))}else"sunburst"===n?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),Cf(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,Cf)):"graph"===n||"sankey"===n?(r=t)&&null!=r.focusNodeAdjacency&&(r.emphasis=r.emphasis||{},null==r.emphasis.focus)&&(r.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&E(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),xf(t)}}),e.dataRange&&(e.visualMap=e.dataRange),R(bf,function(t){t=e[t];t&&R(t=F(t)?t:[t],function(t){xf(t)})})}function Df(_){R(_,function(p,d){var f=[],g=[NaN,NaN],t=[p.stackResultDimension,p.stackedOverDimension],y=p.data,m=p.isStackedByIndex,v=p.seriesModel.get("stackStrategy")||"samesign";y.modify(t,function(t,e,n){var i,o,r=y.get(p.stackedDimension,n);if(isNaN(r))return g;m?o=y.getRawIndex(n):i=y.get(p.stackedByDimension,n);for(var a,s,l,u=NaN,h=d-1;0<=h;h--){var c=_[h];if(0<=(o=m?o:c.data.rawIndexOf(c.stackedByDimension,i))){c=c.data.getByRawIndex(c.stackResultDimension,o);if("all"===v||"positive"===v&&0<c||"negative"===v&&c<0||"samesign"===v&&0<=r&&0<c||"samesign"===v&&r<=0&&c<0){a=r,s=c,l=void 0,l=Math.max(Cr(a),Cr(s)),a+=s,r=br<l?a:Mr(a,l),u=c;break}}}return f[0]=r,f[1]=u,f})})}var kf,Af,Pf=function(t){this.data=t.data||(t.sourceFormat===Id?{}:[]),this.sourceFormat=t.sourceFormat||kd,this.seriesLayoutBy=t.seriesLayoutBy||Ad,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&Ed(this,n)===Ld.Must&&(i.type="ordinal")}};function Lf(t){return t instanceof Pf}function Of(t,e,n){n=n||Nf(t);var i=e.seriesLayoutBy,o=function(t,e,n,i,o){var r,a;if(!t)return{dimensionsDefine:zf(o),startIndex:a,dimensionsDetectedCount:r};{var s;e===Td?(s=t,"auto"===i||null==i?Ef(function(t){null!=t&&"-"!==t&&(V(t)?null==a&&(a=1):a=0)},n,s,10):a=gt(i)?i:i?1:0,o||1!==a||(o=[],Ef(function(t,e){o[e]=null!=t?t+"":""},n,s,1/0)),r=o?o.length:n===Pd?s.length:s[0]?s[0].length:null):e===Cd?o=o||function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return N(e)}(t):e===Id?o||(o=[],R(t,function(t,e){o.push(e)})):e===Md&&(i=Yr(t[0]),r=F(i)&&i.length||1)}return{startIndex:a,dimensionsDefine:zf(o),dimensionsDetectedCount:r}}(t,n,i,e.sourceHeader,e.dimensions);return new Pf({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:_(e)})}function Rf(t){return new Pf({data:t,sourceFormat:mt(t)?Dd:Md})}function Nf(t){var e=kd;if(mt(t))e=Dd;else if(F(t)){0===t.length&&(e=Td);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(F(o)||mt(o)){e=Td;break}if(L(o)){e=Cd;break}}}}else if(L(t))for(var r in t)if(Vt(t,r)&&ht(t[r])){e=Id;break}return e}function zf(t){var i;if(t)return i=G(),B(t,function(t,e){var n,t={name:(t=L(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(n=i.get(t.name))?t.name+="-"+n.count++:i.set(t.name,{count:1})),t})}function Ef(t,e,n,i){if(e===Pd)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else for(var r=n[0]||[],o=0;o<r.length&&o<i;o++)t(r[o],o)}function Bf(t){t=t.sourceFormat;return t===Cd||t===Id}Wf.prototype.getSource=function(){return this._source},Wf.prototype.count=function(){return 0},Wf.prototype.getItem=function(t,e){},Wf.prototype.appendData=function(t){},Wf.prototype.clean=function(){},Wf.protoInitialize=((Mc=Wf.prototype).pure=!1,void(Mc.persistent=!0)),Wf.internalField=(Af=function(t,e,n){var i,o=n.sourceFormat,r=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;O(t,kf[tg(o,r)]),o===Dd?(t.getItem=Ff,t.count=Gf,t.fillStorage=Vf):(i=Zf(o,r),t.getItem=S(i,null,e,a,n),i=Kf(o,r),t.count=S(i,null,e,a,n))},Ff=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,o=i*t,r=0;r<i;r++)e[r]=n[o+r];return e},Vf=function(t,e,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p<h;p++){var d=o[p*r+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},Gf=function(){return this._data?this._data.length/this._dimSize:0},(Mc={})[Td+"_"+Ad]={pure:!0,appendData:Xf},Mc[Td+"_"+Pd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},Mc[Cd]={pure:!0,appendData:Xf},Mc[Id]={pure:!0,appendData:function(t){var o=this._data;R(t,function(t,e){for(var n=o[e]||(o[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},Mc[Md]={appendData:Xf},Mc[Dd]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(kf=Mc));var Ff,Vf,Gf,Hf=Wf;function Wf(t,e){var t=Lf(t)?t:Rf(t),n=(this._source=t,this._data=t.data);t.sourceFormat===Dd&&(this._offset=0,this._dimSize=e,this._data=n),Af(this,n,t)}function Xf(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Yf(t,e,n,i){return t[i]}(Dp={})[Td+"_"+Ad]=function(t,e,n,i){return t[i+e]},Dp[Td+"_"+Pd]=function(t,e,n,i,o){i+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},Dp[Cd]=Yf,Dp[Id]=function(t,e,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=t[n[a].name];r[a]=s?s[i]:null}return r},Dp[Md]=Yf;var Uf=Dp;function Zf(t,e){return Uf[tg(t,e)]}function jf(t,e,n){return t.length}(ip={})[Td+"_"+Ad]=function(t,e,n){return Math.max(0,t.length-e)},ip[Td+"_"+Pd]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},ip[Cd]=jf,ip[Id]=function(t,e,n){t=t[n[0].name];return t?t.length:0},ip[Md]=jf;var qf=ip;function Kf(t,e){return qf[tg(t,e)]}function Jf(t,e,n){return t[e]}(wa={})[Td]=Jf,wa[Cd]=function(t,e,n){return t[n]},wa[Id]=Jf,wa[Md]=function(t,e,n){t=Yr(t);return t instanceof Array?t[e]:t},wa[Dd]=Jf;var $f=wa;function Qf(t){return $f[t]}function tg(t,e){return t===Td?t+"_"+e:t}function eg(t,e,n){if(t){var i,o,e=t.getRawDataItem(e);if(null!=e)return i=(o=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=o.getDimensionProperty(t),Qf(i)(e,t,n)):(o=e,i===Md?Yr(e):o)}}var ng=/\{@(.+?)\}/g,sp=(ig.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),r=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},ig.prototype.getFormattedLabel=function(i,t,e,n,o,r){t=t||"normal";var a=this.getData(e),e=this.getDataParams(i,e);return r&&(e.value=r.interpolatedValue),null!=n&&F(e.value)&&(e.value=e.value[n]),D(o=o||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,o(e)):V(o)?nd(o,e).replace(ng,function(t,e){var n=e.length,n=("["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),eg(a,i,e));return null!=(n=r&&F(r.interpolatedValue)&&0<=(e=a.getDimensionIndex(e))?r.interpolatedValue[e]:n)?n+"":""}):void 0},ig.prototype.getRawValue=function(t,e){return eg(this.getData(e),t)},ig.prototype.formatTooltip=function(t,e,n){},ig);function ig(){}function og(t){var e,n;return L(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function rg(t){return new ag(t)}sg.prototype.perform=function(t){var e,n,i=this._upstream,o=t&&t.skip,r=(this._dirty&&i&&((r=this.context).data=r.outputData=i.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(e=this._plan(this.context)),u(this._modBy)),a=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;function u(t){return t=1<=t?t:1}r===s&&a===l||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,n=this._doReset(o)),this._modBy=s,this._modDataCount=l;r=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=r?this._dueIndex+r:1/0,this._dueEnd);if(!o&&(n||h<c)){var p=this._progress;if(F(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],h,c,s,l);else this._doProgress(p,h,c,s,l)}this._dueIndex=c;a=null!=this._settedOutputEnd?this._settedOutputEnd:c;this._outputDueEnd=a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},sg.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},sg.prototype._doProgress=function(t,e,n,i,o){fg.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:fg.next},this.context)},sg.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),F(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},sg.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},sg.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},sg.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},sg.prototype.getUpstream=function(){return this._upstream},sg.prototype.getDownstream=function(){return this._downstream},sg.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var ag=sg;function sg(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var lg,ug,hg,cg,pg,dg,fg=dg={reset:function(t,e,n,i){ug=t,lg=e,hg=n,cg=i,pg=Math.ceil(cg/hg),dg.next=1<hg&&0<cg?yg:gg}};function gg(){return ug<lg?ug++:null}function yg(){var t=ug%pg*hg+Math.ceil(ug/pg),t=lg<=ug?null:t<cg?t:ug;return ug++,t}function mg(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"!==e||gt(t)||null==t||"-"===t?t:+Lr(t))||""===t?NaN:+t}var vg=G({number:function(t){return parseFloat(t)},time:function(t){return+Lr(t)},trim:function(t){return V(t)?Dt(t):t}});function _g(t){return vg.get(t)}var xg={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},wg=(bg.prototype.evaluate=function(t){return gt(t)?this._opFn(t,this._rvalFloat):this._opFn(zr(t),this._rvalFloat)},bg);function bg(t,e){gt(e)||f(""),this._opFn=xg[t],this._rvalFloat=zr(e)}Mg.prototype.evaluate=function(t,e){var n=gt(t)?t:zr(t),i=gt(e)?e:zr(e),o=isNaN(n),r=isNaN(i);return o&&(n=this._incomparable),r&&(i=this._incomparable),o&&r&&(o=V(t),r=V(e),o&&(n=r?t:0),r)&&(i=o?e:0),n<i?this._resultLT:i<n?-this._resultLT:0};var Sg=Mg;function Mg(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}Cg.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=zr(t)===this._rvalFloat),this._isEQ?n:!n};var Tg=Cg;function Cg(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=zr(e)}Dg.prototype.getRawData=function(){throw new Error("not supported")},Dg.prototype.getRawDataItem=function(t){throw new Error("not supported")},Dg.prototype.cloneRawData=function(){},Dg.prototype.getDimensionInfo=function(t){},Dg.prototype.cloneAllDimensionInfo=function(){},Dg.prototype.count=function(){},Dg.prototype.retrieveValue=function(t,e){},Dg.prototype.retrieveValueFromItem=function(t,e){},Dg.prototype.convertValue=mg;var Ig=Dg;function Dg(){}function kg(t){return Ng(t.sourceFormat)||f(""),t.data}function Ag(t){var e=t.sourceFormat,n=t.data;if(Ng(e)||f(""),e===Td){for(var i=[],o=0,r=n.length;o<r;o++)i.push(n[o].slice());return i}if(e===Cd){for(i=[],o=0,r=n.length;o<r;o++)i.push(O({},n[o]));return i}}function Pg(t,e,n){if(null!=n)return gt(n)||!isNaN(n)&&!Vt(e,n)?t[n]:Vt(e,n)?e[n]:void 0}function Lg(t){return _(t)}var Og=G();function Rg(t,e){var n=Hr(t),t=n.length;t||f("");for(var i=0,o=t;i<o;i++)e=function(t,i){i.length||f("");L(t)||f("");var e=t.type,d=Og.get(e);d||f("");e=B(i,function(t){var e=t,t=d,n=new Ig,i=e.data,o=n.sourceFormat=e.sourceFormat,r=e.startIndex,a=(e.seriesLayoutBy!==Ad&&f(""),[]),s={};if(h=e.dimensionsDefine)R(h,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};a.push(e),null!=n&&(Vt(s,n)&&f(""),s[n]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var u=Zf(o,Ad),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,r,a,t)},n.getRawData=S(kg,null,e)),n.cloneRawData=S(Ag,null,e),Kf(o,Ad)),c=(n.count=S(h,null,i,r,a),Qf(o)),p=(n.retrieveValue=function(t,e){t=u(i,r,a,t);return p(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=a[e])?c(t,e,n.name):void 0});return n.getDimensionInfo=S(Pg,null,a,s),n.cloneAllDimensionInfo=S(Lg,null,a),n});return B(Hr(d.transform({upstream:e[0],upstreamList:e,config:_(t.config)})),function(t,e){L(t)||f(""),t.data||f("");Ng(Nf(t.data))||f("");var n=i[0],e=n&&0===e&&!t.dimensions?((e=n.startIndex)&&(t.data=n.data.slice(0,e).concat(t.data)),{seriesLayoutBy:Ad,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:Ad,sourceHeader:0,dimensions:t.dimensions};return Of(t.data,e,null)})}(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}function Ng(t){return t===Td||t===Cd}var zg,Mc="undefined",Eg=typeof Uint32Array==Mc?Array:Uint32Array,Bg=typeof Uint16Array==Mc?Array:Uint16Array,Fg=typeof Int32Array==Mc?Array:Int32Array,Dp=typeof Float64Array==Mc?Array:Float64Array,Vg={float:Dp,int:Fg,ordinal:Array,number:Array,time:Dp};function Gg(t){return 65535<t?Eg:Bg}function Hg(){return[1/0,-1/0]}function Wg(t,e,n,i,o){n=Vg[n||"float"];if(o){var r=t[e],a=r&&r.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new n(i)}l.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=zg[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],Bf(i),this._dimensions=B(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},l.prototype.getProvider=function(){return this._provider},l.prototype.getSource=function(){return this._provider.getSource()},l.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(null!=o){if(i[o].type===e)return o}else o=i.length;return i[o]={type:e},n.set(t,o),this._chunks[o]=new Vg[e||"float"](this._rawCount),this._rawExtent[o]=Hg(),o},l.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length,s=(0===r&&(o[t]=Hg()),o[t]),l=r;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},l.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},l.prototype.getDimensionProperty=function(t){t=this._dimensions[t];return t&&t.property},l.prototype.appendData=function(t){var e=this._provider,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},l.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)Wg(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<o;p++){var d=i[p],f=zg.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,r[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},l.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=B(r,function(t){return t.property}),u=0;u<a;u++){var h=r[u];s[u]||(s[u]=Hg()),Wg(o,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=o[d],g=this._dimValueGetter(c,l[d],p,d),f=(f[p]=g,s[d]);g<f[0]&&(f[0]=g),g>f[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},l.prototype.count=function(){return this._count},l.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},l.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,r=i.length;o<r;o++)n.push(this.get(i[o],e));return n},l.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},l.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},l.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},l.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(e[r]<t)i=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},l.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(i){null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<r||c===r&&0<=h&&a<0)&&(r=c,a=h,s=0),h===a)&&(o[s++]=l)}o.length=s}return o},l.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;o<n;o++)i[o]=t[o];else i=new e(t.buffer,0,n)}else{i=new(e=Gg(this._rawCount))(this.count());for(o=0;o<i.length;o++)i[o]=o}return i},l.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(Gg(n._rawCount))(i),r=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)r[d]=u[t[d]][p];r[d]=h,c=e.apply(null,r)}c&&(o[s++]=p)}return s<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},l.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=N(t),o=i.length;if(!o)return this;var r=e.count(),a=new(Gg(e._rawCount))(r),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[i[0]],f=0;f<n;f++)(u<=(v=d[f])&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f<n;f++){var v=d[f],_=g[f];(u<=v&&v<=h||isNaN(v))&&(y<=_&&_<=m||isNaN(_))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f<r;f++){var x=e.getRawIndex(f);(u<=(v=c[i[0]][x])&&v<=h||isNaN(v))&&(a[s++]=x)}else for(f=0;f<r;f++){for(var w=!0,x=e.getRawIndex(f),b=0;b<o;b++){var S=i[b];((v=c[S][x])<t[S][0]||v>t[S][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(f))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},l.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},l.prototype.modify=function(t,e){this._updateDims(this,t,e)},l.prototype._updateDims=function(t,e,n){for(var i=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Hg();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<r;p++)s[p]=i[e[p]][c];s[r]=h;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(o[0]=d,d=o);for(u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},l.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Gg(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));u[a++]=l;for(var h=1;h<r-1;h+=s){for(var c=Math.min(h+s,r-1),p=Math.min(h+2*s,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[M=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,r),v=h-1,_=o[l],x=-1,w=c,b=-1,S=0,g=c;g<m;g++){var M,y=o[M=this.getRawIndex(g)];isNaN(y)?(S++,b<0&&(b=M)):x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,w=M)}0<S&&S<m-c&&(u[a++]=Math.min(b,w),w=Math.max(b,w)),l=u[a++]=w}return u[a++]=this.getRawIndex(r-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},l.prototype.downSample=function(t,e,n,i){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],u=this.count(),h=o._rawExtent[t]=Hg(),c=new(Gg(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},l.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:e(o);break;case 1:e(i[t[0]][a],o);break;case 2:e(i[t[0]][a],i[t[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=o,e.apply(null,l)}}},l.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Hg();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=n)[0],a=o[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},l.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][e]);return n},l.prototype.clone=function(t,e){var n,i,o=new l,r=this._chunks,a=t&&ct(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(n=r[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},l.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=_(this._extent),t._rawExtent=_(this._rawExtent)},l.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},l.prototype._getRawIdxIdentity=function(t){return t},l.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},l.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},l.internalField=void(zg={arrayRows:Yg,objectRows:function(t,e,n,i){return mg(t[e],this._dimensions[i])},keyedColumns:Yg,original:function(t,e,n,i){t=t&&(null==t.value?t:t.value);return mg(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Xg=l;function l(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=G()}function Yg(t,e,n,i){return mg(t[i],this._dimensions[i])}Zg.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Zg.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Zg.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Zg.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Zg.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;qg(s)?(i=s,o=t=r=void 0,e=u?((e=l[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(t=mt(r=i.get("data",!0))?Dd:Md,[]),i=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=z(i.seriesLayoutBy,o.seriesLayoutBy)||null,n=z(i.sourceHeader,o.sourceHeader),i=z(i.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!n!=!!o.sourceHeader||i?[Of(r,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(r=s,e=u?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[Of(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},Zg.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0),r=(null!=o&&1!==t.length&&Kg(""),[]),a=[];return R(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Kg(""),r.push(e),a.push(t._getVersionSign())}),i?e=Rg(i,r,n.componentIndex):null!=o&&(e=[new Pf({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:_(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},Zg.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},Zg.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Zg.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Zg.prototype._innerGetDataStore=function(t,e,n){var i,o=this._storeList,r=o[0],o=(r=r||(o[0]={}))[n];return o||(i=this._getUpstreamSourceManagers()[0],qg(this._sourceHost)&&i?o=i._innerGetDataStore(t,e,n):(o=new Xg).initData(new Hf(e,t.length),t),r[n]=o),o},Zg.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return qg(e)?(t=zd(e))?[t.getSourceManager()]:[]:B((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?aa(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},oa).models:[],function(t){return t.getSourceManager()})},Zg.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return qg(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var Ug=Zg;function Zg(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function jg(t){t.option.transform&&At(t.option.transform)}function qg(t){return"series"===t.mainType}function Kg(t){throw new Error(t)}var Jg="line-height:1";function $g(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",r=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+be(i+"")+"px;color:"+be(n)+";font-weight:"+be(o+""),valueStyle:"font-size:"+be(a+"")+"px;color:"+be(r)+";font-weight:"+be(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}var Qg=[0,10,20,30],ty=["","\n","\n\n","\n\n\n"];function ey(t,e){return e.type=t,e}function ny(t){return"section"===t.type}function iy(t){return ny(t)?oy:ry}function oy(i,o,t,r){var n,e=o.noHeader,a=(l=function n(t){var i,e,o;return ny(t)?(i=0,e=t.blocks.length,o=1<e||0<e&&!t.noHeader,R(t.blocks,function(t){var e=n(t);i<=e&&(i=e+ +(o&&(!e||ny(t)&&!t.noHeader)))}),i):0}(o),{html:Qg[l],richText:ty[l]}),s=[],l=o.blocks||[],u=(It(!l||F(l)),l=l||[],i.orderMode),h=(o.sortBlocks&&u&&(l=l.slice(),Vt(h={valueAsc:"asc",valueDesc:"desc"},u)?(n=new Sg(h[u],null),l.sort(function(t,e){return n.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&l.reverse()),R(l,function(t,e){var n=o.valueFormatter,n=iy(t)(n?O(O({},i),{valueFormatter:n}):i,t,0<e?a.html:0,r);null!=n&&s.push(n)}),"richText"===i.renderMode?s.join(a.richText):sy(s.join(""),e?t:a.html));return e?h:(u=Qp(o.header,"ordinal",i.useUTC),l=$g(r,i.renderMode).nameStyle,"richText"===i.renderMode?ly(i,u,l)+a.richText+h:sy('<div style="'+l+";"+Jg+';">'+be(u)+"</div>"+h,t))}function ry(t,e,n,i){var o,r,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return B(t=F(t)?t:[t],function(t,e){return Qp(t,F(r)?r[e]:r,d)})};if(!u||!h)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":Qp(p,"ordinal",d),r=e.valueType,f=h?[]:f(e.value,e.dataIndex),e=!c||!u,a=!c&&u,i=$g(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(u?"":ly(t,p,s))+(h?"":function(t,e,n,i,o){o=[o],i=i?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(F(e)?e.join(" "):e,o)}(t,f,e,a,i)):sy((c?"":o)+(u?"":'<span style="'+s+";"+(!c?"margin-left:2px":"")+'">'+be(p)+"</span>")+(h?"":function(t,e,n,i){n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"";return t=F(t)?t:[t],'<span style="'+e+";"+i+'">'+B(t,be).join(" ")+"</span>"}(f,e,a,i)),n)}function ay(t,e,n,i,o,r){if(t)return iy(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function sy(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+Jg+';">'+t+'<div style="clear:both"></div></div>'}function ly(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function uy(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}cy.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},cy.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=id({color:e,type:t,renderMode:n,markerId:i});return V(e)?e:(this.richTextStyles[i]=e.style,e.content)},cy.prototype.wrapRichTextStyle=function(t,e){var n={},e=(F(e)?R(e,function(t){return O(n,t)}):O(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var hy=cy;function cy(){this.richTextStyles={},this._nextStyleNameId=Br()}function py(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=F(m),_=(_=d,od((w=p).getData().getItemVisual(_,"style")[w.visualDrawType]));function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(ey("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<y||v&&!y?(w=m,o=d,r=g,a=_,s=p.getData(),l=ct(w,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),u=[],h=[],c=[],r.length?R(r,function(t){x(eg(s,o,t),t)}):R(w,x),e=(r={inlineValues:u,inlineValueTypes:h,blocks:c}).inlineValueTypes,n=r.blocks,i=(r=r.inlineValues)[0]):y?(w=f.getDimensionInfo(g[0]),i=r=eg(f,d,g[0]),e=w.type):i=r=v?m[0]:m;var y=Kr(p),g=y&&p.name||"",w=f.getName(d),v=t?g:w;return ey("section",{header:g,noHeader:t||!y,sortParam:i,blocks:[ey("nameValue",{markerType:"item",markerColor:_,name:v,noName:!Dt(v),value:r,valueType:e,dataIndex:d})].concat(n||[])})}var dy=ta();function fy(t,e){return t.getName(e)||t.getId(e)}u(r,gy=g),r.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=rg({count:vy,reset:_y}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);(dy(this).sourceManager=new Ug(this)).prepareSource();t=this.getInitialData(t,n);wy(t,this),this.dataTask.context.data=t,dy(this).dataBeforeProcessed=t,my(this),this._initSelectedMapFromData(t)},r.prototype.mergeDefaultAndTheme=function(t,e){var n=pd(this),i=n?fd(t):{},o=this.subType;g.hasClass(o),d(t,e.getTheme().get(this.subType)),d(t,this.getDefaultOption()),Wr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&dd(t,i,n)},r.prototype.mergeOption=function(t,e){t=d(this.option,t,!0),this.fillDataTextStyle(t.data);var n=pd(this),n=(n&&dd(this.option,t,n),dy(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));wy(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,dy(this).dataBeforeProcessed=n,my(this),this._initSelectedMapFromData(n)},r.prototype.fillDataTextStyle=function(t){if(t&&!mt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Wr(t[n],"label",e)},r.prototype.getInitialData=function(t,e){},r.prototype.appendData=function(t){this.getRawData().appendData(t.data)},r.prototype.getData=function(t){var e=Sy(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):dy(this).data},r.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},r.prototype.setData=function(t){var e,n=Sy(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),dy(this).data=t},r.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return G(t)},r.prototype.getSourceManager=function(){return dy(this).sourceManager},r.prototype.getSource=function(){return this.getSourceManager().getSource()},r.prototype.getRawData=function(){return dy(this).dataBeforeProcessed},r.prototype.getColorBy=function(){return this.get("colorBy")||"series"},r.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},r.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},r.prototype.formatTooltip=function(t,e,n){return py({series:this,dataIndex:t,multipleSeries:e})},r.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!b.node||t&&t.ssr)&&!!(t=(t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold")?!1:t)},r.prototype.restoreData=function(){this.dataTask.dirty()},r.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Xd.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},r.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},r.prototype.getProgressive=function(){return this.get("progressive")},r.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},r.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},r.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;r<t.length;r++){var a=fy(o,t[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},r.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},r.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=N(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];0<=o&&n.push(o)}return n},r.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[fy(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},r.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},r.prototype._innerSelect=function(t,e){var n=this.option,i=n.selectedMode,o=e.length;if(i&&o)if("series"===i)n.selectedMap="all";else if("multiple"===i){L(n.selectedMap)||(n.selectedMap={});for(var r=n.selectedMap,a=0;a<o;a++){var s,l=e[a];r[s=fy(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==i&&!0!==i||(s=fy(t,i=e[o-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},r.prototype._initSelectedMapFromData=function(n){var i;this.option.selectedMap||(i=[],n.hasItemOption&&n.each(function(t){var e=n.getRawDataItem(t);e&&e.selected&&i.push(t)}),0<i.length&&this._innerSelect(n,i))},r.registerClass=function(t){return g.registerClass(t)},r.protoInitialize=((ip=r.prototype).type="series.__base__",ip.seriesIndex=0,ip.ignoreStyleOnData=!1,ip.hasSymbolVisual=!1,ip.defaultSymbol="circle",ip.visualStyleAccessPath="itemStyle",void(ip.visualDrawType="fill"));var gy,yy=r;function r(){var t=null!==gy&&gy.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function my(t){var e,n,i=t.name;Kr(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],R(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function vy(t){return t.model.getRawData().count()}function _y(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),xy}function xy(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function wy(e,n){R(Et(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,dt(by,n))})}function by(t,e){t=Sy(t);return t&&t.setOutputEnd((e||this).count()),e}function Sy(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}ut(yy,sp),ut(yy,Xd),fa(yy,g);Ty.prototype.init=function(t,e){},Ty.prototype.render=function(t,e,n,i){},Ty.prototype.dispose=function(t,e){},Ty.prototype.updateView=function(t,e,n,i){},Ty.prototype.updateLayout=function(t,e,n,i){},Ty.prototype.updateVisual=function(t,e,n,i){},Ty.prototype.toggleBlurSeries=function(t,e,n){},Ty.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var My=Ty;function Ty(){this.group=new T,this.uid=dp("viewComponent")}function Cy(){var r=ta();return function(t){var e=r(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==o&&i==e)&&"reset"}}da(My),va(My);var Iy=ta(),Dy=Cy(),ky=(Ay.prototype.init=function(t,e){},Ay.prototype.render=function(t,e,n,i){},Ay.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Ly(t,i,"emphasis")},Ay.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Ly(t,i,"normal")},Ay.prototype.remove=function(t,e){this.group.removeAll()},Ay.prototype.dispose=function(t,e){},Ay.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Ay.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Ay.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Ay.prototype.eachRendered=function(t){zc(this.group,t)},Ay.markUpdateMethod=function(t,e){Iy(t).updateMethod=e},Ay.protoInitialize=void(Ay.prototype.type="chart"),Ay);function Ay(){this.group=new T,this.uid=dp("viewChart"),this.renderTask=rg({plan:Oy,reset:Ry}),this.renderTask.context={view:this}}function Py(t,e,n){t&&yu(t)&&("emphasis"===e?$l:Ql)(t,n)}function Ly(e,t,n){var i,o=Qr(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Sl[t])&&bl<=32?Sl[t]=bl++:i):null;null!=o?R(Hr(o),function(t){Py(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){Py(t,n,r)})}function Oy(t){return Dy(t.model)}function Ry(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&Iy(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),Ny[r]}da(ky),va(ky);var Ny={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},zy="\0__throttleOriginMethod",Ey="\0__throttleRate",By="\0__throttleType";function Fy(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}o=o||0;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a=(new Date).getTime(),l=this,u=t;var n=h||o,i=h||r;h=null,s=a-(i?c:p)-n,clearTimeout(d),i?d=setTimeout(f,n):0<=s?f():d=setTimeout(f,-s),c=a}return e.clear=function(){d&&(clearTimeout(d),d=null)},e.debounceNextCall=function(t){h=t},e}function Vy(t,e,n,i){var o=t[e];if(o){var r=o[zy]||o,a=o[By];if(o[Ey]!==n||a!==i){if(null==n||!i)return t[e]=r;(o=t[e]=Fy(r,n,"debounce"===i))[zy]=r,o[By]=i,o[Ey]=n}}}function Gy(t,e){var n=t[e];n&&n[zy]&&(n.clear&&n.clear(),t[e]=n[zy])}var Hy=ta(),Wy={itemStyle:_a(rp,!0),lineStyle:_a(ep,!0)},Xy={lineStyle:"stroke",itemStyle:"fill"};function Yy(t,e){t=t.visualStyleMapper||Wy[e];return t||(console.warn("Unknown style type '"+e+"'."),Wy.itemStyle)}function Uy(t,e){t=t.visualDrawType||Xy[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var wa={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData(),n=o.visualStyleAccessPath||"itemStyle",i=o.getModel(n),r=Yy(o,n)(i),i=i.getShallow("decal"),a=(i&&(e.setVisual("decal",i),i.dirty=!0),Uy(o,n)),i=r[a],s=D(i)?i:null,n="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!n||(i=o.getColorFromPalette(o.name,null,t.getSeriesCount()),r[a]||(r[a]=i,e.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||D(r.fill)?i:r.fill,r.stroke="auto"===r.stroke||D(r.stroke)?i:r.stroke),e.setVisual("style",r),e.setVisual("drawType",a),!t.isSeriesFiltered(o)&&s)return e.setVisual("colorFromPalette",!1),{dataEach:function(t,e){var n=o.getDataParams(e),i=O({},r);i[a]=s(n),t.setItemVisual(e,"style",i)}}}},Zy=new hp,Mc={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,o,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=Yy(t,i),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(Zy.option=n[i],n=o(Zy),O(t.ensureUniqueItemVisual(e,"style"),n),Zy.option.decal&&(t.setItemVisual(e,"decal",Zy.option.decal),Zy.option.decal.dirty=!0),r in n)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Dp={performRawSeries:!0,overallReset:function(e){var i=G();e.eachSeries(function(t){var e,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(e=i.get(n))||i.set(n,e={}),Hy(t).scope=e)}),e.eachSeries(function(i){var o,r,a,s,t,l;i.isColorBySeries()||e.isSeriesFiltered(i)||(o=i.getRawData(),r={},a=i.getData(),s=Hy(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=Uy(i,t),a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),o.each(function(t){var e,n=r[t];a.getItemVisual(n,"colorFromPalette")&&(n=a.ensureUniqueItemVisual(n,"style"),t=o.getName(t)||t+"",e=o.count(),n[l]=i.getColorFromPalette(t,s,e))}))})}},jy=Math.PI;Ky.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},Ky.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Ky.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Ky.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},Ky.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=G();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},Ky.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;R(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});It(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},Ky.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},Ky.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Ky.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Ky.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}R(t,function(i,t){var e,n,o,r,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((r=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),r.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},Ky.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Ky.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},Ky.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Ky.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=G(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||rg({plan:em,reset:nm,count:rm}));e.context={model:t,ecModel:i,api:o,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:r},r._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,o).each(l)},Ky.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||rg({reset:Jy}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=G(),e=t.seriesType,l=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,rg({reset:$y,onDirty:tm})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}It(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,R(n.getSeries(),c)),h&&r.dirty()},Ky.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t);t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},Ky.wrapStageHandler=function(t,e){return(t=D(t)?{overallReset:t,seriesType:function(t){am=null;try{t(sm,lm)}catch(t){}return am}(t)}:t).uid=dp("stageHandler"),e&&(t.visualType=e),t};var qy=Ky;function Ky(t,e,n,i){this._stageTaskMap=G(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Jy(t){t.overallReset(t.ecModel,t.api,t.payload)}function $y(t){return t.overallProgress&&Qy}function Qy(){this.agent.dirty(),this.getDownstream().dirty()}function tm(){this.agent&&this.agent.dirty()}function em(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function nm(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Hr(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?B(t,function(t,e){return om(e)}):im}var im=om(0);function om(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(n,o);else i&&i.progress&&i.progress(t,n)}}function rm(t){return t.data.count()}var am,sm={},lm={};function um(t,e){for(var n in e.prototype)t[n]=Gt}um(sm,qd),um(lm,tf),sm.eachSeriesByType=sm.eachRawSeriesByType=function(t){am=t},sm.eachComponent=function(t){"series"===t.mainType&&t.subType&&(am=t.subType)};function hm(){return{axisLine:{lineStyle:{color:cm}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}var ip=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],rp={color:ip,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ip]},cm="#B9B8CE",ep="#100C2A",ip=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ep={darkMode:!0,color:ip,backgroundColor:ep,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:cm}},textStyle:{color:cm},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:cm}},dataZoom:{borderColor:"#71708A",textStyle:{color:cm},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:cm}},timeline:{lineStyle:{color:cm},label:{color:cm},controlStyle:{color:cm,borderColor:cm}},calendar:{itemStyle:{color:ep},dayLabel:{color:cm},monthLabel:{color:cm},yearLabel:{color:cm}},timeAxis:hm(),logAxis:hm(),valueAxis:hm(),categoryAxis:hm(),line:{symbol:"circle"},graph:{color:ip},gauge:{title:{color:cm},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:cm},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},pm=(ep.categoryAxis.splitLine.show=!1,dm.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return V(t)?(e=pa(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},R(t,function(t,e){for(var n=!1,i=0;i<a.length;i++){var o=a[i],r=e.lastIndexOf(o);0<r&&r===e.length-o.length&&"data"!==(r=e.slice(0,r))&&(l.mainType=r,l[o.toLowerCase()]=t,n=!0)}s.hasOwnProperty(e)&&(u[e]=t,n=!0),n||(h[e]=t)})),{cptQuery:l,dataQuery:u,otherQuery:h}},dm.prototype.filter=function(t,e){var n,i,o,r,a,s=this.eventInfo;return!s||(n=s.targetEl,i=s.packedEvent,o=s.model,s=s.view,!o)||!s||(r=e.cptQuery,a=e.dataQuery,l(r,o,"mainType")&&l(r,o,"subType")&&l(r,o,"index","componentIndex")&&l(r,o,"name")&&l(r,o,"id")&&l(a,i,"name")&&l(a,i,"dataIndex")&&l(a,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i)));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},dm.prototype.afterTrigger=function(){this.eventInfo=null},dm);function dm(){}var fm=["symbol","symbolSize","symbolRotate","symbolOffset"],gm=fm.concat(["symbolKeepAspect"]),ip={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,t){var e=a.getData();if(a.legendIcon&&e.setVisual("legendIcon",a.legendIcon),a.hasSymbolVisual){for(var s,n={},l={},i=!1,o=0;o<fm.length;o++){var r=fm[o],u=a.get(r);D(u)?(i=!0,l[r]=u):n[r]=u}if(n.symbol=n.symbol||a.defaultSymbol,e.setVisual(O({legendIcon:a.legendIcon||n.symbol,symbolKeepAspect:a.get("symbolKeepAspect")},n)),!t.isSeriesFiltered(a))return s=N(l),{dataEach:i?function(t,e){for(var n=a.getRawValue(e),i=a.getDataParams(e),o=0;o<s.length;o++){var r=s[o];t.setItemVisual(e,r,l[r](n,i))}}:null}}}},ym={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<gm.length;i++){var o=gm[i],r=n.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}};function mm(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function vm(r,t){R([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(o){t(o[0],function(t,e,n){var i;t=O({},t),n.dispatchAction(O(t,{type:o[1],seriesIndex:(n=t,i=[],e.eachComponent({mainType:"series",subType:r,query:n},function(t){i.push(t.seriesIndex)}),i)}))})})}function _m(t,e,s,n,l){var u=t+e;s.isSilent(u)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,i=t.seriesIndex,o=t.option.selectedMap,r=l.selected,a=0;a<r.length;a++)r[a].seriesIndex===i&&(n=Qr(e=t.getData(),l.fromActionPayload),s.trigger(u,{type:u,seriesId:t.id,name:F(n)?e.getName(n[0]):e.getName(n),selected:V(o)?o:O({},o)}))})}function xm(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var wm=Math.round(9*Math.random()),bm="function"==typeof Object.defineProperty,Sm=(Mm.prototype.get=function(t){return this._guard(t)[this._id]},Mm.prototype.set=function(t,e){t=this._guard(t);return bm?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},Mm.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Mm.prototype.has=function(t){return!!this._guard(t)[this._id]},Mm.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},Mm);function Mm(){this._id="__ec_inner_"+wm++}var Tm=q.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i+e),t.lineTo(n-o,i+e),t.closePath()}}),Cm=q.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i),t.lineTo(n,i+e),t.lineTo(n-o,i),t.closePath()}}),Im=q.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,r=o*o/(e-o),e=i-e+o+r,a=Math.asin(r/o),s=Math.cos(a)*o,l=Math.sin(a),u=Math.cos(a),h=.6*o,c=.7*o;t.moveTo(n-s,e+r),t.arc(n,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+r+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+r+u*h,n-s,e+r),t.closePath()}}),Dm=q.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,e=e.y,i=i/3*2;t.moveTo(o,e),t.lineTo(o+i,e+n),t.lineTo(o,e+n/4*3),t.lineTo(o-i,e+n),t.lineTo(o,e),t.closePath()}}),km={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){n=Math.min(n,i);o.x=t,o.y=e,o.width=n,o.height=n},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},Am={},Pm=(R({line:Th,rect:nl,roundRect:nl,square:nl,circle:Gu,diamond:Cm,pin:Im,arrow:Dm,triangle:Tm},function(t,e){Am[e]=new t}),q.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=$o(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,o=e.symbolType;"none"!==o&&(i=(i=Am[o])||Am[o="rect"],km[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function Lm(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function Om(t,e,n,i,o,r,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?_c(t.slice(8),new Y(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?vc(t.slice(7),{},new Y(e,n,i,o),a?"center":"cover"):new Pm({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,a.setColor=Lm,r&&a.setColor(r),a}function Rm(t){return[(t=F(t)?t:[+t,+t])[0]||0,t[1]||0]}function Nm(t,e){if(null!=t)return[H((t=F(t)?t:[t,t])[0],e[0])||0,H(z(t[1],t[0]),e[1])||0]}function zm(t){return isFinite(t)}function Em(t,e,n){for(var i,o,r,a,s,l,u,h,c,p="radial"===e.type?(i=t,o=e,a=(r=n).width,s=r.height,l=Math.min(a,s),u=null==o.x?.5:o.x,h=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(u=u*a+r.x,h=h*s+r.y,c*=l),u=zm(u)?u:.5,h=zm(h)?h:.5,c=0<=c&&zm(c)?c:.5,i.createRadialGradient(u,h,0,u,h,c)):(o=t,a=n,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),r=zm(r)?r:0,l=zm(l)?l:1,i=zm(i)?i:0,u=zm(u)?u:0,o.createLinearGradient(r,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function Bm(t){return parseInt(t,10)}function Fm(t,e,n){var i=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[o]||Bm(n[i])||Bm(t.style[i]))-(Bm(n[r])||0)-(Bm(n[e])||0)|0)}function Vm(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(o=n.lineDash,i=n.lineWidth,o&&"solid"!==o&&0<i?"dashed"===o?[4*i,2*i]:"dotted"===o?[i]:gt(o)?[o]:F(o)?o:null:null),o=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=B(i,function(t){return t/e}),o/=e),[i,o]}var Gm=new bs(!0);function Hm(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function Wm(t){return"string"==typeof t&&"none"!==t}function Xm(t){t=t.fill;return null!=t&&"none"!==t}function Ym(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function Um(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function Zm(t,e,n){var n=Ma(e.image,e.__image,n);if(Ca(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Ht),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}var jm=["shadowBlur","shadowOffsetX","shadowOffsetY"],qm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Km(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(i0(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Va.opacity:r),!i&&e.blend===n.blend||(a||(i0(t,o),a=!0),t.globalCompositeOperation=e.blend||Va.blend);for(var s=0;s<jm.length;s++){var l=jm[s];!i&&e[l]===n[l]||(a||(i0(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(i0(t,o),a=!0),t.shadowColor=e.shadowColor||Va.shadowColor),a}function Jm(t,e,n,i,o){var r=o0(e,o.inHover),a=i?null:n&&o0(n,o.inHover)||{};if(r!==a){var s=Km(t,r,a,i,o);(i||r.fill!==a.fill)&&(s||(i0(t,o),s=!0),Wm(r.fill))&&(t.fillStyle=r.fill),(i||r.stroke!==a.stroke)&&(s||(i0(t,o),s=!0),Wm(r.stroke))&&(t.strokeStyle=r.stroke),!i&&r.opacity===a.opacity||(s||(i0(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(n=r.lineWidth/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(i0(t,o),s=!0),t.lineWidth=n);for(var l=0;l<qm.length;l++){var u=qm[l],h=u[0];!i&&r[h]===a[h]||(s||(i0(t,o),s=!0),t[h]=r[h]||u[1])}}}function $m(t,e){var e=e.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}var Qm=1,t0=2,e0=3,n0=4;function i0(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function o0(t,e){return e&&t.__hoverStyle||t.style}function r0(t,e){a0(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function a0(t,e,n,z){var i=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var o=e.__clipPaths,r=n.prevElClipPaths,a=!1,s=!1;if(!r||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(o,r)){if(r&&r.length&&(i0(t,n),t.restore(),s=a=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){i0(t,n),t.save();for(var E=o,l=t,r=n,B=!1,F=0;F<E.length;F++){var V=E[F],B=B||V.isZeroArea();$m(l,V),l.beginPath(),V.buildPath(l,V.shape),l.clip()}r.allClipped=B,a=!0}n.prevElClipPaths=o}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u,h,c,p,d,f,g,y,m,v,_,x,w,G,b,S,M,T,C,I,D,k,A,r=n.prevEl,P=(r||(s=a=!0),e instanceof q&&e.autoBatch&&(o=e.style,P=Xm(o),u=Hm(o),!(o.lineDash||!(+P^+u)||P&&"string"!=typeof o.fill||u&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),a=(a||(u=i,o=r.transform,u&&o?u[0]!==o[0]||u[1]!==o[1]||u[2]!==o[2]||u[3]!==o[3]||u[4]!==o[4]||u[5]!==o[5]:u||o)?(i0(t,n),$m(t,e)):P||i0(t,n),o0(e,n.inHover));if(e instanceof q)n.lastDrawType!==Qm&&(s=!0,n.lastDrawType=Qm),Jm(t,e,r,s,n),P&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,o=e,R=P,b=Hm(p=a),S=Xm(p),M=p.strokePercent,T=M<1,C=!o.path,o.silent&&!T||!C||o.createPathProxy(),I=o.path||Gm,D=o.__dirty,R||(d=p.fill,A=p.stroke,f=S&&!!d.colorStops,g=b&&!!A.colorStops,y=S&&!!d.image,m=b&&!!A.image,k=w=x=_=v=void 0,(f||g)&&(k=o.getBoundingRect()),f&&(v=D?Em(i,d,k):o.__canvasFillGradient,o.__canvasFillGradient=v),g&&(_=D?Em(i,A,k):o.__canvasStrokeGradient,o.__canvasStrokeGradient=_),y&&(x=D||!o.__canvasFillPattern?Zm(i,d,o):o.__canvasFillPattern,o.__canvasFillPattern=x),m&&(w=D||!o.__canvasStrokePattern?Zm(i,A,o):o.__canvasStrokePattern,o.__canvasStrokePattern=x),f?i.fillStyle=v:y&&(x?i.fillStyle=x:S=!1),g?i.strokeStyle=_:m&&(w?i.strokeStyle=w:b=!1)),k=o.getGlobalScale(),I.setScale(k[0],k[1],o.segmentIgnoreThreshold),i.setLineDash&&p.lineDash&&(G=(d=Vm(o))[0],O=d[1]),A=!0,(C||D&Tn)&&(I.setDPR(i.dpr),T?I.setContext(null):(I.setContext(i),A=!1),I.reset(),o.buildPath(I,o.shape,R),I.toStatic(),o.pathUpdated()),A&&I.rebuildPath(i,T?M:1),G&&(i.setLineDash(G),i.lineDashOffset=O),R||(p.strokeFirst?(b&&Um(i,p),S&&Ym(i,p)):(S&&Ym(i,p),b&&Um(i,p))),G&&i.setLineDash([]),P&&(n.batchFill=a.fill||"",n.batchStroke=a.stroke||"");else if(e instanceof Hs)n.lastDrawType!==e0&&(s=!0,n.lastDrawType=e0),Jm(t,e,r,s,n),f=t,v=e,null!=(x=(y=a).text)&&(x+=""),x&&(f.font=y.font||K,f.textAlign=y.textAlign,f.textBaseline=y.textBaseline,_=g=void 0,f.setLineDash&&y.lineDash&&(g=(v=Vm(v))[0],_=v[1]),g&&(f.setLineDash(g),f.lineDashOffset=_),y.strokeFirst?(Hm(y)&&f.strokeText(x,y.x,y.y),Xm(y)&&f.fillText(x,y.x,y.y)):(Xm(y)&&f.fillText(x,y.x,y.y),Hm(y)&&f.strokeText(x,y.x,y.y)),g)&&f.setLineDash([]);else if(e instanceof Zs)n.lastDrawType!==t0&&(s=!0,n.lastDrawType=t0),m=r,w=s,Km(t,o0(e,(k=n).inHover),m&&o0(m,k.inHover),w,k),d=t,C=a,(o=(D=e).__image=Ma(C.image,D.__image,D,D.onload))&&Ca(o)&&(A=C.x||0,I=C.y||0,T=D.getWidth(),D=D.getHeight(),M=o.width/o.height,null==T&&null!=D?T=D*M:null==D&&null!=T?D=T/M:null==T&&null==D&&(T=o.width,D=o.height),C.sWidth&&C.sHeight?(h=C.sx||0,c=C.sy||0,d.drawImage(o,h,c,C.sWidth,C.sHeight,A,I,T,D)):C.sx&&C.sy?(h=C.sx,c=C.sy,d.drawImage(o,h,c,T-h,D-c,A,I,T,D)):d.drawImage(o,A,I,T,D));else if(e.getTemporalDisplayables){n.lastDrawType!==n0&&(s=!0,n.lastDrawType=n0);var L,H,W=t,O=e,R=n,X=O.getDisplayables(),Y=O.getTemporalDisplayables(),U=(W.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:R.viewWidth,viewHeight:R.viewHeight,inHover:R.inHover});for(L=O.getCursor(),H=X.length;L<H;L++)(N=X[L]).beforeBrush&&N.beforeBrush(),N.innerBeforeBrush(),a0(W,N,U,L===H-1),N.innerAfterBrush(),N.afterBrush&&N.afterBrush(),U.prevEl=N;for(var N,Z=0,j=Y.length;Z<j;Z++)(N=Y[Z]).beforeBrush&&N.beforeBrush(),N.innerBeforeBrush(),a0(W,N,U,Z===j-1),N.innerAfterBrush(),N.afterBrush&&N.afterBrush(),U.prevEl=N;O.clearTemporalDisplayables(),O.notClear=!0,W.restore()}P&&z&&i0(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~Mn,e.__isRendered=!1}var s0=new Sm,l0=new si(100),u0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function h0(t,e){if("none"===t)return null;var a=e.getDevicePixelRatio(),s=e.getZr(),l="svg"===s.painter.type,e=(t.dirty&&s0.delete(t),s0.get(t));if(e)return e;for(var n,u=E(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),e=("none"===u.backgroundColor&&(u.backgroundColor=null),{repeat:"repeat"}),i=e,o=[a],r=!0,h=0;h<u0.length;++h){var c=u[u0[h]];if(null!=c&&!F(c)&&!V(c)&&!gt(c)&&"boolean"!=typeof c){r=!1;break}o.push(c)}r&&(n=o.join(",")+(l?"-svg":""),v=l0.get(n))&&(l?i.svgElement=v:i.image=v);var p,d=function t(e){if(!e||0===e.length)return[[0,0]];if(gt(e))return[[r=Math.ceil(e),r]];var n=!0;for(var i=0;i<e.length;++i)if(!gt(e[i])){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i){var r;gt(e[i])?(r=Math.ceil(e[i]),o.push([r,r])):(r=B(e[i],function(t){return Math.ceil(t)})).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(u.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(gt(t))return[e=Math.ceil(t),e];var e=B(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(u.dashArrayY),g=function t(e){if(!e||0===e.length)return[["rect"]];if(V(e))return[[e]];var n=!0;for(var i=0;i<e.length;++i)if(!V(e[i])){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i)V(e[i])?o.push([e[i]]):o.push(e[i]);return o}(u.symbol),y=function(t){return B(t,c0)}(d),m=c0(f),v=!l&&W.createCanvas(),_=l&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=y.length;e<n;++e)t=Fr(t,y[e]);for(var i=1,e=0,n=g.length;e<n;++e)i=Fr(i,g[e].length);t*=i;var o=m*y.length*g.length;return{width:Math.max(1,Math.min(t,u.maxTileWidth)),height:Math.max(1,Math.min(o,u.maxTileHeight))}}();v&&(v.width=x.width*a,v.height=x.height*a,p=v.getContext("2d")),p&&(p.clearRect(0,0,v.width,v.height),u.backgroundColor)&&(p.fillStyle=u.backgroundColor,p.fillRect(0,0,v.width,v.height));for(var w=0,b=0;b<f.length;++b)w+=f[b];if(!(w<=0))for(var S=-m,M=0,T=0,C=0;S<x.height;){if(M%2==0){for(var I=T/2%g.length,D=0,k=0,A=0;D<2*x.width;){for(var P,L,O,R,N,z=0,b=0;b<d[C].length;++b)z+=d[C][b];if(z<=0)break;k%2==0&&(L=.5*(1-u.symbolSize),P=D+d[C][k]*L,L=S+f[M]*L,O=d[C][k]*u.symbolSize,R=f[M]*u.symbolSize,N=A/2%g[I].length,function(t,e,n,i,o){var r=l?1:a,o=Om(o,t*r,e*r,n*r,i*r,u.color,u.symbolKeepAspect);l?(t=s.painter.renderOneToVNode(o))&&_.children.push(t):r0(p,o)}(P,L,O,R,g[I][N])),D+=d[C][k],++A,++k===d[C].length&&(k=0)}++C===d.length&&(C=0)}S+=f[M],++T,++M===f.length&&(M=0)}return r&&l0.put(n,v||_),i.image=v,i.svgElement=_,i.svgWidth=x.width,i.svgHeight=x.height,e.rotation=u.rotation,e.scaleX=e.scaleY=l?1:1/a,s0.set(t,e),t.dirty=!1,e}function c0(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var p0=new ce,d0={};var Cm={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},f0="__flagInMainProcess",g0="__pendingUpdate",y0="__needsUpdateStatus",m0=/^[a-zA-Z0-9_]+$/,v0="__connectUpdateStatus";function _0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return w0(this,n,t);this.id}}function x0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return w0(this,n,t)}}function w0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ce.prototype[e].apply(t,n)}u(M0,b0=ce);var b0,S0=M0;function M0(){return null!==b0&&b0.apply(this,arguments)||this}var T0,C0,I0,D0,k0,A0,P0,L0,O0,R0,N0,z0,E0,B0,F0,V0,G0,H0,W0,Im=S0.prototype,X0=(Im.on=x0("on"),Im.off=x0("off"),u(s,W0=ce),s.prototype._onframe=function(){if(!this._disposed){H0(this);var t=this._scheduler;if(this[g0]){var e=this[g0].silent;this[f0]=!0;try{T0(this),D0.update.call(this,null,this[g0].updateParams)}catch(t){throw this[f0]=!1,this[g0]=null,t}this._zr.flush(),this[f0]=!1,this[g0]=null,L0.call(this,e),O0.call(this,e)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),A0(this,i),t.performVisualTasks(i),B0(this,this._model,o,"remain",{}),0<(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},s.prototype.getDom=function(){return this._dom},s.prototype.getId=function(){return this.id},s.prototype.getZr=function(){return this._zr},s.prototype.isSSR=function(){return this._ssr},s.prototype.setOption=function(t,e,n){if(!this[f0])if(this._disposed)this.id;else{L(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[f0]=!0,this._model&&!e||(e=new sf(this._api),a=this._theme,(s=this._model=new qd).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},tv);var i,o,r,a,s={seriesTransition:r,optionChanged:!0};if(n)this[g0]={silent:i,updateParams:s},this[f0]=!1,this.getZr().wakeUp();else{try{T0(this),D0.update.call(this,null,s)}catch(t){throw this[g0]=null,this[f0]=!1,t}this._ssr||this._zr.flush(),this[g0]=null,this[f0]=!1,L0.call(this,i),O0.call(this,i)}}},s.prototype.setTheme=function(){},s.prototype.getModel=function(){return this._model},s.prototype.getOption=function(){return this._model&&this._model.getOption()},s.prototype.getWidth=function(){return this._zr.getWidth()},s.prototype.getHeight=function(){return this._zr.getHeight()},s.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||b.hasGlobalWindow&&window.devicePixelRatio||1},s.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},s.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},s.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},s.prototype.getSvgDataURL=function(){var t;if(b.svgSupported)return R((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},s.prototype.getDataURL=function(t){var e,n,i,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,R(o,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)})}),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),R(n,function(t){t.group.ignore=!1}),o;this.id},s.prototype.getConnectedDataURL=function(i){var o,r,a,s,l,u,h,c,p,e,t,n,d,f,g;if(!this._disposed)return o="svg"===i.type,r=this.group,a=Math.min,s=Math.max,rv[r]?(u=l=1/0,c=h=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio(),R(ov,function(t,e){var n;t.group===r&&(n=o?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(_(i)),t=t.getDom().getBoundingClientRect(),l=a(t.left,l),u=a(t.top,u),h=s(t.right,h),c=s(t.bottom,c),p.push({dom:n,left:t.left,top:t.top}))}),t=(h*=e)-(l*=e),n=(c*=e)-(u*=e),d=W.createCanvas(),(f=mr(d,{renderer:o?"svg":"canvas"})).resize({width:t,height:n}),o?(g="",R(p,function(t){var e=t.left-l,n=t.top-u;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new nl({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),R(p,function(t){t=new Zs({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},s.prototype.convertToPixel=function(t,e){return k0(this,"convertToPixel",t,e)},s.prototype.convertFromPixel=function(t,e){return k0(this,"convertFromPixel",t,e)},s.prototype.containPixel=function(t,i){var o;if(!this._disposed)return R(na(this._model,t),function(t,n){0<=n.indexOf("Models")&&R(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(i,t))},this)},this),!!o;this.id},s.prototype.getVisual=function(t,e){var t=na(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null==t)return mm(n,e);var i=n,o=t,r=e;switch(r){case"color":return i.getItemVisual(o,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(o,r)}},s.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},s.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},s.prototype._initEvents=function(){var t,n,i,s=this;R(K0,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&xm(r,function(t){var e,t=k(t);return t&&null!=t.dataIndex?(e=t.dataModel||o.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,r)||{},1):t.eventData&&(n=O({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&o.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),R($0,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),R(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(_m("map","selectchanged",n,e,t),_m("pie","selectchanged",n,e,t)):"select"===t.fromAction?(_m("map","selected",n,e,t),_m("pie","selected",n,e,t)):"unselect"===t.fromAction&&(_m("map","unselected",n,e,t),_m("pie","unselected",n,e,t))})},s.prototype.isDisposed=function(){return this._disposed},s.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},s.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&sa(this.getDom(),lv,""),e=(t=this)._api,n=t._model,R(t._componentsViews,function(t){t.dispose(n,e)}),R(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete ov[t.id])},s.prototype.resize=function(t){if(!this[f0])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[g0]&&(null==n&&(n=this[g0].silent),e=!0,this[g0]=null),this[f0]=!0;try{e&&T0(this),D0.update.call(this,{type:"resize",animation:O({duration:0},t&&t.animation)})}catch(t){throw this[f0]=!1,t}this[f0]=!1,L0.call(this,n),O0.call(this,n)}}},s.prototype.showLoading=function(t,e){this._disposed?this.id:(L(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),iv[t]&&(t=iv[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},s.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},s.prototype.makeActionFromEvent=function(t){var e=O({},t);return e.type=$0[t.type],e},s.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(L(e)||(e={silent:!!e}),J0[t.type]&&this._model&&(this[f0]?this._pendingActions.push(t):(n=e.silent,P0.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&b.browser.weChat&&this._throttledZrFlush(),L0.call(this,n),O0.call(this,n))))},s.prototype.updateLabelLayout=function(){p0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},s.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},s.internalField=(T0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),C0(t,!0),C0(t,!1),e.plan()},C0=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;e<s.length;e++)s[e].__alive=!1;function n(t){var e,n=t.__requireNewView,i=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),n=!n&&l[i];n||(e=pa(t.type),(n=new(o?My.getClass(e.main,e.sub):ky.getClass(e.sub))).init(r,h),l[i]=n,s.push(n),u.add(n.group)),t.__viewId=n.__id=i,n.__alive=!0,n.__model=t,n.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},o||a.prepareView(n,t,r,h)}o?r.eachComponent(function(t,e){"series"!==t&&n(e)}):r.eachSeries(n);for(e=0;e<s.length;){var i=s[e];i.__alive?e++:(o||i.renderTask.dispose(),u.remove(i.group),i.dispose(r,h),s.splice(e,1),l[i.__id]===i&&delete l[i.__id],i.__id=i.group.__ecComponentInfo=null)}},I0=function(c,e,p,n,t){var i,d,o=c._model;function r(t){t&&t.__alive&&t[e]&&t[e](t.__model,o,c._api,p)}o.setUpdatePayload(p),n?((i={})[n+"Id"]=p[n+"Id"],i[n+"Index"]=p[n+"Index"],i[n+"Name"]=p[n+"Name"],i={mainType:n,query:i},t&&(i.subType=t),null!=(t=p.excludeSeriesId)&&(d=G(),R(Hr(t),function(t){t=qr(t,null);null!=t&&d.set(t,!0)})),o&&o.eachComponent(i,function(t){var e,n,i=d&&null!=d.get(t.id);if(!i)if(vu(p))if(t instanceof yy){if(p.type===Pl&&!p.notBlur&&!t.get(["emphasis","disabled"])){var i=t,o=p,r=c._api,a=i.seriesIndex,s=i.getData(o.dataType);if(s){var o=(F(o=Qr(s,o))?o[0]:o)||0,l=s.getItemGraphicEl(o);if(!l)for(var u=s.count(),h=0;!l&&h<u;)l=s.getItemGraphicEl(h++);l?au(a,(o=k(l)).focus,o.blurScope,r):(o=i.get(["emphasis","focus"]),i=i.get(["emphasis","blurScope"]),null!=o&&au(a,o,i,r))}}}else{a=lu(t.mainType,t.componentIndex,p.name,c._api),o=a.focusSelf,i=a.dispatchers;p.type===Pl&&o&&!p.notBlur&&su(t.mainType,t.componentIndex,c._api),i&&R(i,function(t){(p.type===Pl?$l:Ql)(t)})}else mu(p)&&t instanceof yy&&(r=t,i=p,c._api,mu(i)&&(e=i.dataType,F(n=Qr(r.getData(e),i))||(n=[n]),r[i.type===Nl?"toggleSelect":i.type===Ol?"select":"unselect"](n,e)),uu(t),G0(c))},c),o&&o.eachComponent(i,function(t){d&&null!=d.get(t.id)||r(c["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},c)):R([].concat(c._componentsViews).concat(c._chartsViews),r)},D0={prepareAndUpdate:function(t){T0(this),D0.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),r.create(n,i),a.performDataProcessorTasks(n,t),A0(this,n),r.update(n,i),Y0(n),a.performVisualTasks(n,t),z0(this,n,i,t,e),r=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),p0.trigger("afterupdate",n,i))},updateTransform:function(n){var i,o,r=this,a=this._model,s=this._api;a&&(a.setUpdatePayload(n),i=[],a.eachComponent(function(t,e){"series"!==t&&(t=r.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,n))&&e.update)&&i.push(t)}),o=G(),a.eachSeries(function(t){var e=r._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,a,s,n))&&e.update)&&o.set(t.uid,1)}),Y0(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:o}),B0(this,a,s,n,{},o),p0.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),ky.markUpdateMethod(t,"updateView"),Y0(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),z0(this,e,this._api,t,{}),p0.trigger("afterupdate",e,this._api))},updateVisual:function(n){var i=this,o=this._model;o&&(o.setUpdatePayload(n),o.eachSeries(function(t){t.getData().clearAllVisual()}),ky.markUpdateMethod(n,"updateVisual"),Y0(o),this._scheduler.performVisualTasks(o,n,{visualType:"visual",setDirty:!0}),o.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.__alive&&t.updateVisual(e,o,i._api,n)}),o.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,o,i._api,n)}),p0.trigger("afterupdate",o,this._api))},updateLayout:function(t){D0.update.call(this,t)}},k0=function(t,e,n,i){if(t._disposed)t.id;else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=na(o,n),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,i)))return l}},A0=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},P0=function(i,t){var o,r,a=this,e=this.getModel(),n=i.type,s=i.escapeConnect,l=J0[n],u=l.actionInfo,h=(u.update||"update").split(":"),c=h.pop(),p=null!=h[0]&&pa(h[0]),h=(this[f0]=!0,[i]),d=!1,f=(i.batch&&(d=!0,h=B(i.batch,function(t){return(t=E(O({},t),i)).batch=null,t})),[]),g=mu(i),y=vu(i);if(y&&ru(this._api),R(h,function(t){var e,n;(o=(o=l.action(t,a._model,a._api))||O({},t)).type=u.event||o.type,f.push(o),y?(e=(n=ia(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:"series",I0(a,c,t,n),G0(a)):g?(I0(a,c,t,"series"),G0(a)):p&&I0(a,c,t,p.main,p.sub)}),"none"!==c&&!y&&!g&&!p)try{this[g0]?(T0(this),D0.update.call(this,i),this[g0]=null):D0[c].call(this,i)}catch(t){throw this[f0]=!1,t}o=d?{type:u.event||n,escapeConnect:s,batch:f}:f[0],this[f0]=!1,t||((h=this._messageCenter).trigger(o.type,o),g&&(d={type:"selectchanged",escapeConnect:s,selected:(r=[],e.eachSeries(function(n){R(n.getAllData(),function(t){t.data;var t=t.type,e=n.getSelectedDataIndices();0<e.length&&(e={dataIndex:e,seriesIndex:n.seriesIndex},null!=t&&(e.dataType=t),r.push(e))})}),r),isFromClick:i.isFromClick||!1,fromAction:i.type,fromActionPayload:i},h.trigger(d.type,d)))},L0=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();P0.call(this,n,t)}},O0=function(t){t||this.trigger("updated")},R0=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[g0]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},N0=function(t,a){t.on("mouseover",function(t){var e,n,i,o,r=xm(t.target,yu);r&&(r=r,e=t,t=a._api,n=k(r),i=(o=lu(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,o=o.focusSelf,i?(o&&su(n.componentMainType,n.componentIndex,t),R(i,function(t){return Kl(t,e)})):(au(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&su(n.componentMainType,n.componentIndex,t),Kl(r,e)),G0(a))}).on("mouseout",function(t){var e,n,i=xm(t.target,yu);i&&(i=i,e=t,ru(t=a._api),(n=lu((n=k(i)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?R(n,function(t){return Jl(t,e)}):Jl(i,e),G0(a))}).on("click",function(t){var e,t=xm(t.target,function(t){return null!=k(t).dataIndex},!0);t&&(e=t.selected?"unselect":"select",t=k(t),a._api.dispatchAction({type:e,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},z0=function(t,e,n,i,o){var r,a,s,l,u,h,c;u=[],c=!(h=[]),(r=e).eachComponent(function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,o=e.getZLevelKey();c=c||!!o,("series"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:o})}),c&&(Sn(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),R(a,function(t){var e=r.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==l&&n++,l=t):l&&(n===s&&n++,l=""),s=n,e.setZLevel(n)})),E0(t,e,n,i,o),R(t._chartsViews,function(t){t.__alive=!1}),B0(t,e,n,i,o),R(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},E0=function(t,n,i,o,e,r){R(r||t._componentsViews,function(t){var e=t.__model;j0(0,t),t.render(e,n,i,o),Z0(e,t),q0(e,t)})},B0=function(o,t,e,r,n,a){var i,s,l,u,h=o._scheduler,c=(n=O(n||{},{updatedSeries:t.getSeries()}),p0.trigger("series:beforeupdate",t,e,n),!1);t.eachSeries(function(t){var e,n=o._chartsMap[t.__viewId],i=(n.__alive=!0,n.renderTask);h.updatePayload(i,r),j0(0,n),a&&a.get(t.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(c=!0),n.group.silent=!!t.get("silent"),i=n,e=t.get("blendMode")||null,i.eachRendered(function(t){t.isGroup||(t.style.blend=e)}),uu(t)}),h.unfinished=c||h.unfinished,p0.trigger("series:layoutlabels",t,e,n),p0.trigger("series:transition",t,e,n),t.eachSeries(function(t){var e=o._chartsMap[t.__viewId];Z0(t,e),q0(t,e)}),s=t,l=(i=o)._zr.storage,u=0,l.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!b.node&&!b.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),p0.trigger("series:afterupdate",t,e,n)},G0=function(t){t[y0]=!0,t.getZr().wakeUp()},H0=function(t){t[y0]&&(t.getZr().storage.traverse(function(t){sc(t)||U0(t)}),t[y0]=!1)},F0=function(n){return u(t,e=tf),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){$l(t,e),G0(n)},t.prototype.leaveEmphasis=function(t,e){Ql(t,e),G0(n)},t.prototype.enterBlur=function(t){tu(t),G0(n)},t.prototype.leaveBlur=function(t){eu(t),G0(n)},t.prototype.enterSelect=function(t){nu(t),G0(n)},t.prototype.leaveSelect=function(t){iu(t),G0(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(V0=function(i){function o(t,e){for(var n=0;n<t.length;n++)t[n][v0]=e}R($0,function(t,e){i._messageCenter.on(e,function(t){var e,n;!rv[i.group]||0===i[v0]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],R(ov,function(t){t!==i&&t.group===i.group&&n.push(t)}),o(n,0),R(n,function(t){1!==t[v0]&&t.dispatchAction(e)}),o(n,2))})})})),s);function s(t,e,n){var i=W0.call(this,new pm)||this,t=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},V(e)&&(e=nv[e]),i._dom=t,n.ssr&&xr(function(t){var e,t=k(t),n=t.dataIndex;if(null!=n)return(e=G()).set("series_index",t.seriesIndex),e.set("data_index",n),t.ssrType&&e.set("ssr_type",t.ssrType),e}),i._zr=mr(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:z(n.useDirtyRect,!1),useCoarsePointer:z(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(i._ssr=n.ssr,i._throttledZrFlush=Fy(S(t.flush,t),17),(e=_(e))&&If(e,!0),i._theme=e,i._locale=V(e=n.locale||xp)?(n=vp[e.toUpperCase()]||{},e===gp||e===yp?_(n):d(_(n),_(vp[mp]),!1)):d(_(e),_(vp[mp]),!1),i._coordSysMgr=new of,i._api=F0(i));function o(t,e){return t.__prio-e.__prio}return Sn(ev,o),Sn(Q0,o),i._scheduler=new qy(i,n,Q0,ev),i._messageCenter=new S0,i._initEvents(),i.resize=S(i.resize,i),t.animation.on("frame",i._onframe,i),R0(t,i),N0(t,i),At(i),i}function Y0(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function U0(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Dl&&t.states.emphasis?e.push("emphasis"):t.hoverState===Il&&t.states.blur&&e.push("blur"),t.useStates(e)}function Z0(t,e){var n,i;t.preventAutoZ||(n=t.get("z")||0,i=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,n,i,o){var r=e.getTextContent();var a=e.getTextGuideLine();var s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)o=Math.max(t(l[u],n,i,o),o);else e.z=n,e.zlevel=i,o=Math.max(e.z2,o);r&&(r.z=n,r.zlevel=i,isFinite(o))&&(r.z2=o+2);a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(o))&&(a.z2=o+(s&&s.showAbove?1:-1));return o}(t,n,i,-1/0),!0}))}function j0(t,e){e.eachRendered(function(t){var e,n;sc(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function q0(t,e){var n=t.getModel("stateAnimation"),o=t.isAnimationEnabled(),t=n.get("duration"),r=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){var e,n,i;t.states&&t.states.emphasis&&(sc(t)||(t instanceof q&&((i=Ml(n=t)).normalFill=n.style.fill,i.normalStroke=n.style.stroke,n=n.states.select||{},i.selectFill=n.style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(i=t.prevStates)&&t.useStates(i),o&&(t.stateTransition=r,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=r),e)&&(e.stateTransition=r),t.__dirty&&U0(t)))})}var Dm=X0.prototype,K0=(Dm.on=_0("on"),Dm.off=_0("off"),Dm.one=function(i,o,t){var r=this;this.on.call(this,i,function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];o&&o.apply&&o.apply(this,e),r.off(i,t)},t)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]);var J0={},$0={},Q0=[],tv=[],ev=[],nv={},iv={},ov={},rv={},av=+new Date,sv=+new Date,lv="_echarts_instance_";function uv(t){rv[t]=!1}Tm=uv;function hv(t){return ov[e=lv,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function cv(t,e){nv[t]=e}function pv(t){I(tv,t)<0&&tv.push(t)}function dv(t,e){bv(Q0,t,e,2e3)}function fv(t){yv("afterinit",t)}function gv(t){yv("afterupdate",t)}function yv(t,e){p0.on(t,e)}function mv(t,e,n){D(e)&&(n=e,e="");var i=L(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,$0[e]||(It(m0.test(i)&&m0.test(e)),J0[i]||(J0[i]={action:n,actionInfo:t}),$0[e]=i)}function vv(t,e){of.register(t,e)}function _v(t,e){bv(ev,t,e,1e3,"layout")}function xv(t,e){bv(ev,t,e,3e3,"visual")}var wv=[];function bv(t,e,n,i,o){(D(e)||L(e))&&(n=e,e=i),0<=I(wv,n)||(wv.push(n),(i=qy.wrapStageHandler(n,o)).__prio=e,i.__raw=n,t.push(i))}function Sv(t,e){iv[t]=e}function Mv(t,e,n){var i=d0.registerMap;i&&i(t,e,n)}function Tv(t){var e=(t=_(t)).type,n=(e||f(""),e.split(":")),i=(2!==n.length&&f(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Og.set(e,t)}xv(2e3,wa),xv(4500,Mc),xv(4500,Dp),xv(2e3,ip),xv(4500,ym),xv(7e3,function(e,i){e.eachRawSeries(function(t){var n;!e.isSeriesFiltered(t)&&((n=t.getData()).hasItemVisual()&&n.each(function(t){var e=n.getItemVisual(t,"decal");e&&(n.ensureUniqueItemVisual(t,"style").decal=h0(e,i))}),t=n.getVisual("decal"))&&(n.getVisual("style").decal=h0(t,i))})}),pv(If),dv(900,function(t){var i=G();t.eachSeries(function(t){var e,n=t.get("stack");n&&(n=i.get(n)||i.set(n,[]),(t={stackResultDimension:(e=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:e.getCalculationInfo("stackedOverDimension"),stackedDimension:e.getCalculationInfo("stackedDimension"),stackedByDimension:e.getCalculationInfo("stackedByDimension"),isStackedByIndex:e.getCalculationInfo("isStackedByIndex"),data:e,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(n.length&&e.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(t))}),i.each(Df)}),Sv("default",function(i,o){E(o=o||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r,t=new T,a=new nl({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4}),s=(t.add(a),new sl({style:{text:o.text,fill:o.textColor,fontSize:o.fontSize,fontWeight:o.fontWeight,fontStyle:o.fontStyle,fontFamily:o.fontFamily},zlevel:o.zlevel,z:10001})),l=new nl({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:o.zlevel,z:10001});return t.add(l),o.showSpinner&&((r=new Nh({shape:{startAngle:-jy/2,endAngle:-jy/2+.1,r:o.spinnerRadius},style:{stroke:o.color,lineCap:"round",lineWidth:o.lineWidth},zlevel:o.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*jy/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*jy/2}).delay(300).start("circularInOut"),t.add(r)),t.resize=function(){var t=s.getBoundingRect().width,e=o.showSpinner?o.spinnerRadius:0,t=(i.getWidth()-2*e-(o.showSpinner&&t?10:0)-t)/2-(o.showSpinner&&t?0:5+t/2)+(o.showSpinner?0:t/2)+(t?0:e),n=i.getHeight()/2;o.showSpinner&&r.setShape({cx:t,cy:n}),l.setShape({x:t-e,y:n-e,width:2*e,height:2*e}),a.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),mv({type:Pl,event:Pl,update:Pl},Gt),mv({type:Ll,event:Ll,update:Ll},Gt),mv({type:Ol,event:Ol,update:Ol},Gt),mv({type:Rl,event:Rl,update:Rl},Gt),mv({type:Nl,event:Nl,update:Nl},Gt),cv("light",rp),cv("dark",ep);function Cv(t){return null==t?0:t.length||1}function Iv(t){return t}kv.prototype.add=function(t){return this._add=t,this},kv.prototype.update=function(t){return this._update=t,this},kv.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},kv.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},kv.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},kv.prototype.remove=function(t){return this._remove=t,this},kv.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},kv.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=i[r],l=n[s],u=Cv(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,r)):1===u?(n[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},kv.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],r=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],u=i[s],h=Cv(l),c=Cv(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},kv.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=Cv(o);if(1<r)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[i]=null}},kv.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[i](t[r],r);o||(n[r]=l),e&&(0===(s=Cv(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var Dv=kv;function kv(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||Iv,this._newKeyGetter=i||Iv,this.context=o,this._diffModeMultiple="multiple"===r}Pv.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},Pv.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var Av=Pv;function Pv(t,e){this._encode=t,this._schema=e}function Lv(r,t){var e={},a=e.encode={},s=G(),l=[],u=[],h={},i=(R(r.dimensions,function(t){var e,n,i=r.getDimensionInfo(t),o=i.coordDim;o&&(e=i.coordDimIndex,Ov(a,o)[e]=t,i.isExtraCoord||(s.set(o,1),"ordinal"!==(n=i.type)&&"time"!==n&&(l[0]=t),Ov(h,o)[e]=r.getDimensionIndex(i.name)),i.defaultTooltip)&&u.push(t),Sd.each(function(t,e){var n=Ov(a,e),e=i.otherDims[e];null!=e&&!1!==e&&(n[e]=i.name)})}),[]),o={},n=(s.each(function(t,e){var n=a[e];o[e]=n[0],i=i.concat(n)}),e.dataDimsOnCoord=i,e.dataDimIndicesOnCoord=B(i,function(t){return r.getDimensionInfo(t).storeDimIndex}),e.encodeFirstDimNotExtra=o,a.label),n=(n&&n.length&&(l=n.slice()),a.tooltip);return n&&n.length?u=n.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,e.userOutput=new Av(h,t),e}function Ov(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var Rv=function(t){this.otherDims={},null!=t&&O(this,t)},Nv=ta(),zv={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Ev=(Bv.prototype.isDimensionOmitted=function(){return this._dimOmitted},Bv.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Gv(this.source))},Bv.prototype.getSourceDimensionIndex=function(t){return z(this._dimNameMap.get(t),-1)},Bv.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Bv.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Bf(this.source),n=!(30<t),i="",o=[],r=0,a=0;r<t;r++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===r?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,u=s.type),o.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(zv[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},Bv.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,o=this.dimensions[n];o&&o.storeDimIndex===e?(o.isCalculationCoord||(i=o.name),n++):(o=this.getSourceDimension(e))&&(i=o.name),t.push(i)}return t},Bv.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Bv);function Bv(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Fv(t){return t instanceof Ev}function Vv(t){for(var e=G(),n=0;n<(t||[]).length;n++){var i=t[n],i=L(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Gv(t){var e=Nv(t);return e.dimNameMap||(e.dimNameMap=Vv(t.dimensionsDefine))}var Hv,Wv,Xv,Yv,Uv,Zv,jv,qv=L,Kv=B,Jv="undefined"==typeof Int32Array?Array:Int32Array,$v=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Qv=["_approximateExtent"],t_=(h.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},h.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},h.prototype._recognizeDimIndex=function(t){if(gt(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},h.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},h.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},h.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},h.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},h.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},h.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},h.prototype.getStore=function(){return this._store},h.prototype.initData=function(t,e,n){var i,o,r=this;(i=t instanceof Xg?t:i)||(o=this.dimensions,t=Lf(t)||ht(t)?new Hf(t,o.length):t,i=new Xg,o=Kv(o,function(t){return{type:r._dimInfos[t].type,property:t}}),i.initData(t,o,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Lv(this,this._schema),this.userOutput=this._dimSummary.userOutput},h.prototype.appendData=function(t){t=this._store.appendData(t);this._doInit(t[0],t[1])},h.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),n=t.start,i=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=n;r<i;r++)this._nameList[r]=e[r-n],o&&jv(this,r)},h.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},h.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Dd&&!t.fillStorage},h.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(n.getSource().sourceFormat===Md&&!n.pure)for(var r=[],a=t;a<e;a++){var s,l=n.getItem(a,r);this.hasItemOption||!L(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=qr(s,null)),l=l.id,null==o[a])&&null!=l&&(o[a]=qr(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)jv(this,a);Hv(this)}},h.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},h.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},h.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},h.prototype.setCalculationInfo=function(t,e){qv(t)?O(this._calculationInfo,t):this._calculationInfo[t]=e},h.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?Xv(this,this._nameDimIdx,t):e)?"":e},h.prototype._getCategory=function(t,e){e=this._store.get(t,e),t=this._store.getOrdinalMeta(t);return t?t.categories[e]:e},h.prototype.getId=function(t){return Wv(this,this.getRawIndex(t))},h.prototype.count=function(){return this._store.count()},h.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},h.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},h.prototype.getIndices=function(){return this._store.getIndices()},h.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},h.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},h.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},h.prototype.getValues=function(t,e){var n=this,i=this._store;return F(t)?i.getValues(Kv(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},h.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},h.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},h.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},h.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},h.prototype.rawIndexOf=function(t,e){t=(t&&this._invertedIndicesMap[t])[e];return null==t||isNaN(t)?-1:t},h.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},h.prototype.each=function(t,e,n){D(t)&&(n=e,e=t,t=[]);n=n||this,t=Kv(Yv(t),this._getStoreDimIndex,this);this._store.each(t,n?S(e,n):e)},h.prototype.filterSelf=function(t,e,n){D(t)&&(n=e,e=t,t=[]);n=n||this,t=Kv(Yv(t),this._getStoreDimIndex,this);return this._store=this._store.filter(t,n?S(e,n):e),this},h.prototype.selectRange=function(n){var i=this,o={};return R(N(n),function(t){var e=i._getStoreDimIndex(t);o[e]=n[t]}),this._store=this._store.selectRange(o),this},h.prototype.mapArray=function(t,e,n){D(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},h.prototype.map=function(t,e,n,i){n=n||i||this,i=Kv(Yv(t),this._getStoreDimIndex,this),t=Zv(this);return t._store=this._store.map(i,n?S(e,n):e),t},h.prototype.modify=function(t,e,n,i){n=n||i||this,i=Kv(Yv(t),this._getStoreDimIndex,this);this._store.modify(i,n?S(e,n):e)},h.prototype.downSample=function(t,e,n,i){var o=Zv(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},h.prototype.lttbDownSample=function(t,e){var n=Zv(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},h.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},h.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new hp(t,e,e&&e.ecModel)},h.prototype.diff=function(e){var n=this;return new Dv(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Wv(e,t)},function(t){return Wv(n,t)})},h.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},h.prototype.setVisual=function(t,e){this._visual=this._visual||{},qv(t)?O(this._visual,t):this._visual[t]=e},h.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},h.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},h.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(F(n=this.getVisual(e))?n=n.slice():qv(n)&&(n=O({},n)),i[e]=n),n},h.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,qv(e)?O(i,e):i[e]=n},h.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},h.prototype.setLayout=function(t,e){qv(t)?O(this._layout,t):this._layout[t]=e},h.prototype.getLayout=function(t){return this._layout[t]},h.prototype.getItemLayout=function(t){return this._itemLayouts[t]},h.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},e):e},h.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},h.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;wl(n,this.dataType,t,e),this._graphicEls[t]=e},h.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},h.prototype.eachItemGraphicEl=function(n,i){R(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},h.prototype.cloneShallow=function(t){return t=t||new h(this._schema||Kv(this.dimensions,this._getDimInfo,this),this.hostModel),Uv(t,this),t._store=this._store,t},h.prototype.wrapMethod=function(t,e){var n=this[t];D(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(Tt(arguments)))})},h.internalField=(Hv=function(a){var s=a._invertedIndicesMap;R(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,o=a._store;if(i){t=s[e]=new Jv(i.categories.length);for(var r=0;r<t.length;r++)t[r]=-1;for(r=0;r<o.count();r++)t[o.get(n.storeDimIndex,r)]=r}})},Xv=function(t,e,n){return qr(t._getCategory(e,n),null)},Wv=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?Xv(t,t._idDimIdx,e):n)?"e\0\0"+e:n},Yv=function(t){return t=F(t)?t:null!=t?[t]:[]},Zv=function(t){var e=new h(t._schema||Kv(t.dimensions,t._getDimInfo,t),t.hostModel);return Uv(e,t),e},Uv=function(e,n){R($v.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,R(Qv,function(t){e[t]=_(n[t])}),e._calculationInfo=O({},n._calculationInfo)},void(jv=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=o&&(n[e]=a=Xv(t,o,e)),null==s&&null!=r&&(i[e]=s=Xv(t,r,e)),null==s&&null!=a&&(s=a,1<(o=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+o),i[e]=s)})),h);function h(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var n,i,o=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),r=(Fv(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<n.length;h++){var c=n[h],c=V(c)?new Rv({name:c}):c instanceof Rv?c:new Rv(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(r[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=h),0===d.itemId&&(this._idDimIdx=h),o&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=G(),R(a,function(t){i.set(r[t].storeDimIndex,t)}))}function e_(t,e){Lf(t)||(t=Rf(t));for(var n,i,o=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=G(),s=[],l=(u=t,n=o,p=e.dimensionsCount,i=Math.max(u.dimensionsDetectedCount||1,n.length,r.length,p||0),R(n,function(t){L(t)&&(t=t.dimsDef)&&(i=Math.max(i,t.length))}),i),u=e.canOmitUnusedDimensions&&30<l,h=r===t.dimensionsDefine,c=h?Gv(t):Vv(r),p=e.encodeDefine,d=G(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),f=new Fg(l),g=0;g<f.length;g++)f[g]=-1;function y(t){var e,n,i,o=f[t];return o<0?(e=L(e=r[t])?e:{name:e},n=new Rv,null!=(i=e.name)&&null!=c.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),f[t]=s.length,n.storeDimIndex=t,s.push(n),n):s[o]}if(!u)for(g=0;g<l;g++)y(g);d.each(function(t,n){var i,t=Hr(t).slice();1===t.length&&!V(t[0])&&t[0]<0?d.set(n,!1):(i=d.set(n,[]),R(t,function(t,e){t=V(t)?c.get(t):t;null!=t&&t<l&&v(y(i[e]=t),n,e)}))});var m=0;function v(t,e,n){null!=Sd.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}R(o,function(t){V(t)?(r=t,o={}):(r=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=O({},o)).ordinalMeta=t,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var n,i,o,r,e=d.get(r);if(!1!==e){if(!(e=Hr(e)).length)for(var a=0;a<(n&&n.length||1);a++){for(;m<l&&null!=y(m).coordDim;)m++;m<l&&e.push(m++)}R(e,function(t,e){t=y(t);h&&null!=o.type&&(t.type=o.type),v(E(t,o),r,e),null==t.name&&n&&(L(e=n[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&E(t.otherDims,i)})}});var _=e.generateCoord,x=null!=(w=e.generateCoordCount),w=_?w||1:0,b=_||"value";function S(t){null==t.name&&(t.name=t.coordDim)}if(u)R(s,function(t){S(t)}),s.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var M=0;M<l;M++){var T=y(M);null==T.coordDim&&(T.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(b,a,x),T.coordDimIndex=0,(!_||w<=0)&&(T.isExtraCoord=!0),w--),S(T),null!=T.type||Ed(t,M)!==Ld.Must&&(!T.isExtraCoord||null==T.otherDims.itemName&&null==T.otherDims.seriesName)||(T.type="ordinal")}for(var C=s,I=G(),D=0;D<C.length;D++){var k=C[D],A=k.name,P=I.get(A)||0;0<P&&(k.name=A+(P-1)),P++,I.set(A,P)}return new Ev({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}var n_=function(t){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=t};var i_={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",oa).models[0],t=t.getReferringComponents("yAxis",oa).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),o_(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),o_(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",oa).models[0];e.coordSysDims=["single"],n.set("single",t),o_(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",oa).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",t),o_(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),o_(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,i,o,r){var a=t.ecModel,t=a.getComponent("parallel",t.get("parallelIndex")),s=i.coordSysDims=t.dimensions.slice();R(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),n=s[e];o.set(n,t),o_(t)&&(r.set(n,t),null==i.firstCategoryDimIndex)&&(i.firstCategoryDimIndex=e)})}};function o_(t){return"category"===t.get("type")}function r_(t,e,n){var i,o,r,a,s,l,u,h,c,p=(n=n||{}).byIndex,d=n.stackedCoordDimension,f=(Fv(e.schema)?(o=e.schema,i=o.dimensions,r=e.store):i=e,!(!t||!t.get("stack")));return R(i,function(t,e){V(t)&&(i[e]=t={name:t}),f&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,c=0,R(i,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(u,n),t.storeDimIndex=r.ensureCalculationDimension(l,n)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function a_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function s_(t,e){return a_(t,e)?t.getCalculationInfo("stackResultDimension"):e}function l_(t,e,n){n=n||{};var i,o,r,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=Rf(t)):h=(i=u.getSource()).sourceFormat===Md,function(t){var e=t.get("coordinateSystem"),n=new n_(e);if(e=i_[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(o=t,c=(c=e).get("coordinateSystem"),c=of.get(c),p=(p=o&&o.coordSysDims?B(o.coordSysDims,function(t){var e={name:t},t=o.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=D(p)?p:p?dt(Rd,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=e_(i,c),d=(c=p.dimensions,r=n.createInvertedIndices,(a=t)&&R(c,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),n=h?null:u.getSharedDataStore(p),t=r_(e,{schema:p,store:n}),c=new t_(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==Md||F(Yr(function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)});return c.hasItemOption=!1,c.initData(h?i:n,null,p),c}h_.prototype.getSetting=function(t){return this._setting[t]},h_.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},h_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},h_.prototype.getExtent=function(){return this._extent.slice()},h_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},h_.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},h_.prototype.isBlank=function(){return this._isBlank},h_.prototype.setBlank=function(t){this._isBlank=t};var u_=h_;function h_(t){this._setting=t||{},this._extent=[1/0,-1/0]}va(u_);var c_=0,p_=(d_.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&B(e,f_);return new d_({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},d_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},d_.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return V(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},d_.prototype._getOrCreateMap=function(){return this._map||(this._map=G(this.categories))},d_);function d_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++c_}function f_(t){return L(t)&&null!=t.value?t.value:t+""}function g_(t){return"interval"===t.type||"log"===t.type}function y_(t,e,n,i){var o={},r=t[1]-t[0],r=o.interval=Nr(r/e,!0),e=(null!=n&&r<n&&(r=o.interval=n),null!=i&&i<r&&(r=o.interval=i),o.intervalPrecision=v_(r)),n=o.niceTickExtent=[Mr(Math.ceil(t[0]/r)*r,e),Mr(Math.floor(t[1]/r)*r,e)];return i=n,r=t,isFinite(i[0])||(i[0]=r[0]),isFinite(i[1])||(i[1]=r[1]),__(i,0,r),__(i,1,r),i[0]>i[1]&&(i[0]=i[1]),o}function m_(t){var e=Math.pow(10,Rr(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Mr(t*e)}function v_(t){return Cr(t)+2}function __(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function x_(t,e){return t>=e[0]&&t<=e[1]}function w_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function b_(t,e){return t*(e[1]-e[0])+e[0]}u(T_,S_=u_),T_.prototype.parse=function(t){return null==t?NaN:V(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},T_.prototype.contain=function(t){return x_(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},T_.prototype.normalize=function(t){return w_(t=this._getTickNumber(this.parse(t)),this._extent)},T_.prototype.scale=function(t){return t=Math.round(b_(t,this._extent)),this.getRawOrdinalNumber(t)},T_.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},T_.prototype.getMinorTicks=function(t){},T_.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];i[n[o]=s]=o}for(var l=0;o<r;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}},T_.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},T_.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},T_.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},T_.prototype.count=function(){return this._extent[1]-this._extent[0]+1},T_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},T_.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},T_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},T_.prototype.calcNiceTicks=function(){},T_.prototype.calcNiceExtent=function(){},T_.type="ordinal";var S_,M_=T_;function T_(t){var t=S_.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return F(e=e||new p_({}))&&(e=new p_({categories:B(e,function(t){return L(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}u_.registerClass(M_);var C_,I_=Mr,D_=(u(k_,C_=u_),k_.prototype.parse=function(t){return t},k_.prototype.contain=function(t){return x_(t,this._extent)},k_.prototype.normalize=function(t){return w_(t,this._extent)},k_.prototype.scale=function(t){return b_(t,this._extent)},k_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},k_.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},k_.prototype.getInterval=function(){return this._interval},k_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=v_(t)},k_.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(e){n[0]<i[0]&&r.push(t?{value:I_(i[0]-e,o)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=I_(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:i[1];n[1]>s&&r.push(t?{value:I_(s+e,o)}:{value:n[1]})}return r},k_.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],u=(r.value-a.value)/t;s<t-1;){var h=I_(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},k_.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Cr(t.value)||0:"auto"===e&&(e=this._intervalPrecision),Kp(I_(t.value,e,!0)))},k_.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];isFinite(o)&&(o<0&&i.reverse(),o=y_(i,t,e,n),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},k_.prototype.calcNiceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=Math.abs(e[0]),t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=I_(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=I_(Math.ceil(e[1]/n)*n))},k_.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},k_.type="interval",k_);function k_(){var t=null!==C_&&C_.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}u_.registerClass(D_);var A_="undefined"!=typeof Float32Array,P_=A_?Float32Array:Array;function L_(t){return F(t)?A_?new Float32Array(t):t:new P_(t)}function O_(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function R_(t){return t.dim+t.index}function N_(t,e){var n=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&n.push(t)}),n}function z_(t){var a,d,u=function(t){var e,l={},n=(R(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),n=e.dim+"_"+e.index,i=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),r=0,a=o.count();r<a;++r){var s=o.get(i,r);l[n]?l[n].push(s):l[n]=[s]}}),{});for(e in l)if(l.hasOwnProperty(e)){var i=l[e];if(i){i.sort(function(t,e){return t-e});for(var o=null,r=1;r<i.length;++r){var a=i[r]-i[r-1];0<a&&(o=null===o?a:Math.min(o,a))}n[e]=o}}return n}(t),h=[];return R(t,function(t){var e,n,i=t.coordinateSystem.getBaseAxis(),o=i.getExtent(),r=(e="category"===i.type?i.getBandWidth():"value"===i.type||"time"===i.type?(e=i.dim+"_"+i.index,e=u[e],r=Math.abs(o[1]-o[0]),n=i.scale.getExtent(),n=Math.abs(n[1]-n[0]),e?r/n*e:r):(n=t.getData(),Math.abs(o[1]-o[0])/n.count()),H(t.get("barWidth"),e)),o=H(t.get("barMaxWidth"),e),a=H(t.get("barMinWidth")||((n=t).pipelineContext&&n.pipelineContext.large?.5:1),e),s=t.get("barGap"),l=t.get("barCategoryGap");h.push({bandWidth:e,barWidth:r,barMaxWidth:o,barMinWidth:a,barGap:s,barCategoryGap:l,axisKey:R_(i),stackId:O_(t)})}),a={},R(h,function(t,e){var n=t.axisKey,i=t.bandWidth,i=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=i.stacks,n=(a[n]=i,t.stackId),r=(o[n]||i.autoWidthCount++,o[n]=o[n]||{width:0,maxWidth:0},t.barWidth),r=(r&&!o[n].width&&(o[n].width=r,r=Math.min(i.remainedWidth,r),i.remainedWidth-=r),t.barMaxWidth),r=(r&&(o[n].maxWidth=r),t.barMinWidth),o=(r&&(o[n].minWidth=r),t.barGap),n=(null!=o&&(i.gap=o),t.barCategoryGap);null!=n&&(i.categoryGap=n)}),d={},R(a,function(t,n){d[n]={};var i,e=t.stacks,o=t.bandWidth,r=t.categoryGap,a=(null==r&&(a=N(e).length,r=Math.max(35-4*a,15)+"%"),H(r,o)),s=H(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),c=(R(e,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,l-=e+s*e,u--):(e=h,n&&n<e&&(e=Math.min(n,l)),(e=i&&e<i?i:e)!==h&&(t.width=e,l-=e+s*e,u--))}),h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),0),p=(R(e,function(t,e){t.width||(t.width=h),c+=(i=t).width*(1+s)}),i&&(c-=i.width*s),-c/2);R(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+s)})}),d}u(F_,E_=D_),F_.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Rp(t.value,kp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Op(this._minLevelUnit))]||kp.second,e,this.getSetting("locale"))},F_.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(V(n))r=n;else if(D(n))r=n(t.value,e,{level:t.level});else{var a=O({},Ip);if(0<t.level)for(var s=0;s<Ap.length;++s)a[Ap[s]]="{primary|"+a[Ap[s]]+"}";var l=n?!1===n.inherit?n:E(n,a):a,u=Np(t.value,i);if(l[u])r=l[u];else if(l.inherit){for(s=Pp.indexOf(u)-1;0<=s;--s)if(l[u]){r=l[u];break}r=r||a.none}F(r)&&(e=null==t.level?0:0<=t.level?t.level:r.length+t.level,r=r[e=Math.min(e,r.length-1)])}return Rp(new Date(t.value),r,i,o)},F_.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];return t&&(n.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,b,S,M){var e=Pp,n=0;function i(t,e,n){var i=[],o=!e.length;if(!function(t,e,n,i){function o(t){return zp(c,t,i)===zp(p,t,i)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function u(){return l()&&o("minute")}function h(){return u()&&o("second")}var c=Lr(e),p=Lr(n);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return h();case"millisecond":return h()&&o("millisecond")}}(Op(t),M[0],M[1],S)){o&&(e=[{value:function(t,e,n){var i=new Date(t);switch(Op(e)){case"year":case"month":i[Xp(n)](0);case"day":i[Yp(n)](1);case"hour":i[Up(n)](0);case"minute":i[Zp(n)](0);case"second":i[jp(n)](0),i[qp(n)](0)}return i.getTime()}(new Date(M[0]),t,S)},{value:M[1]}]);for(var r,a,s=0;s<e.length-1;s++){var l=e[s].value,u=e[s+1].value;if(l!==u){var h=void 0,c=void 0,p=void 0;switch(t){case"year":h=Math.max(1,Math.round(b/Cp/365)),c=Ep(S),p=S?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":a=b,h=6<(a/=30*Cp)?6:3<a?3:2<a?2:1,c=Bp(S),p=Xp(S);break;case"week":case"half-week":case"day":a=b,h=16<(a/=Cp)?16:7.5<a?7:3.5<a?4:1.5<a?2:1,c=Fp(S),p=Yp(S),0;break;case"half-day":case"quarter-day":case"hour":r=b,h=12<(r/=Tp)?12:6<r?6:3.5<r?4:2<r?2:1,c=Vp(S),p=Up(S);break;case"minute":h=G_(b,!0),c=Gp(S),p=Zp(S);break;case"second":h=G_(b,!1),c=Hp(S),p=jp(S);break;case"millisecond":h=Nr(b,!0),c=Wp(S),p=qp(S)}w=x=_=v=m=y=g=f=d=void 0;for(var d=h,f=l,g=u,y=c,m=p,v=i,_=new Date(f),x=f,w=_[y]();x<g&&x<=M[1];)v.push({value:x}),_[m](w+=d),x=_.getTime();v.push({value:x,notAdd:!0}),"year"===t&&1<n.length&&0===s&&n.unshift({value:n[0].value-h})}}for(s=0;s<i.length;s++)n.push(i[s])}}for(var o=[],r=[],a=0,s=0,l=0;l<e.length&&n++<1e4;++l){var u=Op(e[l]);if(function(t){return t===Op(t)}(e[l])){i(e[l],o[o.length-1]||[],r);var h=e[l+1]?Op(e[l+1]):null;if(u!==h){if(r.length){s=a,r.sort(function(t,e){return t.value-e.value});for(var c=[],p=0;p<r.length;++p){var d=r[p].value;0!==p&&r[p-1].value===d||(c.push(r[p]),d>=M[0]&&d<=M[1]&&a++)}u=(M[1]-M[0])/b;if(1.5*u<a&&u/1.5<s)break;if(o.push(c),u<a||t===e[l])break}r=[]}}}for(var f=pt(B(o,function(t){return pt(t,function(t){return t.value>=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0<t.length}),g=[],y=f.length-1,l=0;l<f.length;++l)for(var m=f[l],v=0;v<m.length;++v)g.push({value:m[v].value,level:y-l});g.sort(function(t,e){return t.value-e.value});for(var _=[],l=0;l<g.length;++l)0!==l&&g[l].value===g[l-1].value||_.push(g[l]);return _}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},F_.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=Cp,n[1]+=Cp),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-Cp),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},F_.prototype.calcNiceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0],i=(this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),V_.length),t=Math.min(function(t,e,n,i){for(;n<i;){var o=n+i>>>1;t[o][1]<e?n=1+o:i=o}return n}(V_,this._approxInterval,0,i),i-1);this._interval=V_[t][1],this._minLevelUnit=V_[Math.max(t-1,0)][0]},F_.prototype.parse=function(t){return gt(t)?t:+Lr(t)},F_.prototype.contain=function(t){return x_(this.parse(t),this._extent)},F_.prototype.normalize=function(t){return w_(this.parse(t),this._extent)},F_.prototype.scale=function(t){return b_(t,this._extent)},F_.type="time";var E_,B_=F_;function F_(t){t=E_.call(this,t)||this;return t.type="time",t}var V_=[["second",Sp],["minute",Mp],["hour",Tp],["quarter-day",6*Tp],["half-day",12*Tp],["day",1.2*Cp],["half-week",3.5*Cp],["week",7*Cp],["month",31*Cp],["quarter",95*Cp],["half-year",ga/2],["year",ga]];function G_(t,e){return 30<(t/=e?Mp:Sp)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}u_.registerClass(B_);var H_,W_=u_.prototype,X_=D_.prototype,Y_=Mr,U_=Math.floor,Z_=Math.ceil,j_=Math.pow,q_=Math.log,K_=(u(J_,H_=u_),J_.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return B(X_.getTicks.call(this,t),function(t){var t=t.value,e=Mr(j_(this.base,t)),e=t===n[0]&&this._fixMin?$_(e,i[0]):e;return{value:t===n[1]&&this._fixMax?$_(e,i[1]):e}},this)},J_.prototype.setExtent=function(t,e){var n=q_(this.base);t=q_(Math.max(0,t))/n,e=q_(Math.max(0,e))/n,X_.setExtent.call(this,t,e)},J_.prototype.getExtent=function(){var t=this.base,e=W_.getExtent.call(this);e[0]=j_(t,e[0]),e[1]=j_(t,e[1]);t=this._originalScale.getExtent();return this._fixMin&&(e[0]=$_(e[0],t[0])),this._fixMax&&(e[1]=$_(e[1],t[1])),e},J_.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=q_(t[0])/q_(e),t[1]=q_(t[1])/q_(e),W_.unionExtent.call(this,t)},J_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},J_.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=Or(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[Mr(Z_(e[0]/i)*i),Mr(U_(e[1]/i)*i)];this._interval=i,this._niceExtent=t}},J_.prototype.calcNiceExtent=function(t){X_.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},J_.prototype.parse=function(t){return t},J_.prototype.contain=function(t){return x_(t=q_(t)/q_(this.base),this._extent)},J_.prototype.normalize=function(t){return w_(t=q_(t)/q_(this.base),this._extent)},J_.prototype.scale=function(t){return t=b_(t,this._extent),j_(this.base,t)},J_.type="log",J_);function J_(){var t=null!==H_&&H_.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new D_,t._interval=0,t}Sm=K_.prototype;function $_(t,e){return Y_(t,Cr(e))}Sm.getMinorTicks=X_.getMinorTicks,Sm.getLabel=X_.getLabel,u_.registerClass(K_);t1.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type,o=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0)),o=(D(o)?this._modelMinNum=o1(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=o1(t,o)),this._modelMaxRaw=e.get("max",!0));D(o)?this._modelMaxNum=o1(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=o1(t,o)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=F(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Jo(t[0],1),Jo(t[1],1)]},t1.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s,e=(null==a&&(a=t?i?0:NaN:e-o[0]*r),null==s&&(s=t?i?i-1:NaN:n+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),bt(a)||bt(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),o=this._determinedMax;return null!=n&&(a=n,l=!0),null!=o&&(s=o,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},t1.prototype.modifyDataMinMax=function(t,e){this[n1[t]]=e},t1.prototype.setDeterminedMinMax=function(t,e){this[e1[t]]=e},t1.prototype.freeze=function(){this.frozen=!0};var Q_=t1;function t1(t,e,n){this._prepareParams(t,e,n)}var e1={min:"_determinedMin",max:"_determinedMax"},n1={min:"_dataMin",max:"_dataMax"};function i1(t,e,n){var i=t.rawExtentInfo;return i||(i=new Q_(t,e,n),t.rawExtentInfo=i),i}function o1(t,e){return null==e?null:bt(e)?NaN:t.parse(e)}function r1(t,e){var n,i,o,r,a,s,l=t.type,u=i1(t,e,t.getExtent()).calculate(),t=(t.setBlank(u.isBlank),u.min),h=u.max,c=e.ecModel;return c&&"time"===l&&(l=N_("bar",c),n=!1,R(l,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(c=z_(l),l=t,i=h,c=c,s=(s=(o=e).axis.getExtent())[1]-s[0],void 0!==(c=function(t,e,n){if(t&&e)return null!=(t=t[R_(e)])&&null!=n?t[O_(n)]:t}(c,o.axis))&&(r=1/0,R(c,function(t){r=Math.min(t.offset,r)}),a=-1/0,R(c,function(t){a=Math.max(t.offset+t.width,a)}),r=Math.abs(r),a=Math.abs(a),i+=a/(o=r+a)*(s=(c=i-l)/(1-(r+a)/s)-c),l-=r/o*s),t=(c={min:l,max:i}).min,h=c.max),{extent:[t,h],fixMin:u.minFixed,fixMax:u.maxFixed}}function a1(t,e){var n=r1(t,e),i=n.extent,o=e.get("splitNumber"),r=(t instanceof K_&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),r="interval"===r||"time"===r;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:r?e.get("minInterval"):null,maxInterval:r?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function s1(t,e){if(e=e||t.get("type"))switch(e){case"category":return new M_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new B_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(u_.getClass(e)||D_)}}function l1(n){var i,e,o,t=n.getLabelModel().get("formatter"),r="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(o=t,function(t,e){return n.scale.getFormattedLabel(t,e,o)}):V(t)?(e=t,function(t){t=n.scale.getLabel(t);return e.replace("{value}",null!=t?t:"")}):D(t)?(i=t,function(t,e){return null!=r&&(e=t.value-r),i(u1(n,t),e,null!=t.level?{level:t.level}:null)}):function(t){return n.scale.getLabel(t)}}function u1(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function h1(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent(),a=n instanceof M_?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=l1(t),u=1;40<a&&(u=Math.ceil(a/40));for(var h,c,p,d=0;d<a;d+=u){var f=l(i?i[d]:{value:r[0]+d},d),f=s.getTextRect(f),g=(f=f,h=s.get("rotate")||0,c=p=g=c=void 0,h=h*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(h))+Math.abs(g*Math.sin(h)),c=c*Math.abs(Math.sin(h))+Math.abs(g*Math.cos(h)),new Y(f.x,f.y,p,c));o?o.union(g):o=g}return o}}function c1(t){t=t.get("interval");return null==t?"auto":t}function p1(t){return"category"===t.type&&0===c1(t.getLabelModel())}function d1(e,t){var n={};return R(e.mapDimensionsAll(t),function(t){n[s_(e,t)]=!0}),N(n)}g1.prototype.getNeedCrossZero=function(){return!this.option.scale},g1.prototype.getCoordSysModel=function(){};var f1=g1;function g1(){}var Im=Object.freeze({__proto__:null,createDimensions:function(t,e){return e_(t,e).dimensions},createList:function(t){return l_(null,t)},createScale:function(t,e){var n=e;return(e=s1(n=e instanceof hp?n:new hp(e))).setExtent(t[0],t[1]),a1(e,n),e},createSymbol:Om,createTextStyle:function(t,e){return Wc(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:a_,enableDataStack:r_,getStackedDimension:s_},enableHoverEmphasis:hu,getECData:k,getLayoutRect:cd,mixinAxisModelCommonMethods:function(t){ut(t,f1)}}),y1=[],m1={registerPreprocessor:pv,registerProcessor:dv,registerPostInit:fv,registerPostUpdate:gv,registerUpdateLifecycle:yv,registerAction:mv,registerCoordinateSystem:vv,registerLayout:_v,registerVisual:xv,registerTransform:Tv,registerLoading:Sv,registerMap:Mv,registerImpl:function(t,e){d0[t]=e},PRIORITY:Cm,ComponentModel:g,ComponentView:My,SeriesModel:yy,ChartView:ky,registerComponentModel:function(t){g.registerClass(t)},registerComponentView:function(t){My.registerClass(t)},registerSeriesModel:function(t){yy.registerClass(t)},registerChartView:function(t){ky.registerClass(t)},registerSubTypeDefaulter:function(t,e){g.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){vr(t,e)}};function v1(t){F(t)?R(t,function(t){v1(t)}):0<=I(y1,t)||(y1.push(t),(t=D(t)?{install:t}:t).install(m1))}var _1=1e-8;function x1(t,e){return Math.abs(t-e)<_1}function w1(t,e,n){var i=0,o=t[0];if(o){for(var r=1;r<t.length;r++){var a=t[r];i+=Is(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return x1(o[0],s[0])&&x1(o[1],s[1])||(i+=Is(o[0],o[1],s[0],s[1],e,n)),0!==i}}var b1=[];function S1(t,e){for(var n=0;n<t.length;n++)oe(t[n],t[n],e)}function M1(t,e,n,i){for(var o=0;o<t.length;o++){var r=t[o];(r=i?i.project(r):r)&&isFinite(r[0])&&isFinite(r[1])&&(re(e,e,r),ae(n,n,r))}}T1.prototype.setCenter=function(t){this._center=t},T1.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};Dm=T1;function T1(t){this.name=t}var C1,I1=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},D1=function(t){this.type="linestring",this.points=t},k1=(u(A1,C1=Dm),A1.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var o=e[i],r=o.exterior,r=r&&r.length;n<r&&(t=o,n=r)}if(t){for(var a=t.exterior,s=0,l=0,u=0,h=a.length,c=a[h-1][0],p=a[h-1][1],d=0;d<h;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,u+=(p+g)*y,c=f,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},A1.prototype.getBoundingRect=function(e){var n,i,t=this._rect;return t&&!e||(n=[1/0,1/0],i=[-1/0,-1/0],R(this.geometries,function(t){"polygon"===t.type?M1(t.exterior,n,i,e):R(t.points,function(t){M1(t,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new Y(n[0],n[1],i[0]-n[0],i[1]-n[1]),e)||(this._rect=t),t},A1.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,o=n.length;i<o;i++){var r=n[i];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(w1(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(w1(s[l],t[0],t[1]))continue t;return!0}}}return!1},A1.prototype.transformTo=function(t,e,n,i){for(var o=this.getBoundingRect(),r=o.width/o.height,r=(n?i=i||n/r:n=r*i,new Y(t,e,n,i)),a=o.calculateTransform(r),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(S1(u.exterior,a),R(u.interiors,function(t){S1(t,a)})):R(u.points,function(t){S1(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},A1.prototype.cloneShallow=function(t){t=new A1(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},A1);function A1(t,e,n){t=C1.call(this,t)||this;return t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}u(O1,P1=Dm),O1.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Ee(b1),i=t;i&&!i.isGeoSVGGraphicRoot;)Fe(n,i.getLocalTransform(),n),i=i.parent;return We(n,n),oe(e,e,n),e};var P1,L1=O1;function O1(t,e){t=P1.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function R1(t,e,n){for(var i=0;i<t.length;i++)t[i]=N1(t[i],e[i],n)}function N1(t,e,n){for(var i=[],o=e[0],r=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(o=s+=o)/n,(r=l+=r)/n])}return i}function z1(t,r){var e,n,o;return B(pt((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),R(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=N1(i,n,o);break;case"Polygon":case"MultiLineString":R1(i,n,o);break;case"MultiPolygon":R(i,function(t,e){return R1(t,n[e],o)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var e=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new I1(o[0],o.slice(1)));break;case"MultiPolygon":R(n.coordinates,function(t){t[0]&&i.push(new I1(t[0],t.slice(1)))});break;case"LineString":i.push(new D1([n.coordinates]));break;case"MultiLineString":i.push(new D1(n.coordinates))}t=new k1(e[r||"name"],i,e.cp);return t.properties=e,t})}var wa=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:Tr,getPercentWithPrecision:function(t,e,n){return t[e]&&function(t,e){var n=ct(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];var i=Math.pow(10,e),e=B(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,r=B(e,function(t){return Math.floor(t)}),a=ct(r,function(t,e){return t+e},0),s=B(e,function(t,e){return t-r[e]});for(;a<o;){for(var l=Number.NEGATIVE_INFINITY,u=null,h=0,c=s.length;h<c;++h)s[h]>l&&(l=s[h],u=h);++r[u],s[u]=0,++a}return B(r,function(t){return t/i})}(t,n)[e]||0},getPixelPrecision:Dr,getPrecision:Cr,getPrecisionSafe:Ir,isNumeric:Er,isRadianAroundZero:Ar,linearMap:Sr,nice:Nr,numericToNumber:zr,parseDate:Lr,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e=e-n)?i+e*(t[n]-i):i},quantity:Or,quantityExponent:Rr,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,r=t[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-n),e=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(i,1):i++}return t},remRadian:kr,round:Mr}),Mc=Object.freeze({__proto__:null,format:Rp,parse:Lr}),Dp=Object.freeze({__proto__:null,Arc:Nh,BezierCurve:Ph,BoundingRect:Y,Circle:Gu,CompoundPath:Bh,Ellipse:Yu,Group:T,Image:Zs,IncrementalDisplayable:Vh,Line:Th,LinearGradient:Wh,Polygon:yh,Polyline:xh,RadialGradient:Uh,Rect:nl,Ring:e,Sector:lh,Text:sl,clipPointsByRect:Ac,clipRectByRect:Pc,createIcon:Lc,extendPath:gc,extendShape:dc,getShapeClass:mc,getTransform:Tc,initProps:ac,makeImage:_c,makePath:vc,mergePath:wc,registerShape:yc,resizePath:bc,updateProps:rc}),ip=Object.freeze({__proto__:null,addCommas:Kp,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:be,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Lr(e))[(n=n?"getUTC":"get")+"FullYear"](),o=e[n+"Month"]()+1,r=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t=t.replace("MM",Lp(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Lp(i%100+"",2)).replace("dd",Lp(r,2)).replace("d",r).replace("hh",Lp(a,2)).replace("h",a).replace("mm",Lp(s,2)).replace("m",s).replace("ss",Lp(l,2)).replace("s",l).replace("SSS",Lp(e,3))},formatTpl:nd,getTextRect:function(t,e,n,i,o,r,a,s){return new sl({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:id,normalizeCssArray:$p,toCamelCase:Jp,truncateText:Da}),ym=Object.freeze({__proto__:null,bind:S,clone:_,curry:dt,defaults:E,each:R,extend:O,filter:pt,indexOf:I,inherits:lt,isArray:F,isFunction:D,isObject:L,isString:V,map:B,merge:d,reduce:ct}),E1=ta();function B1(t){return"category"===t.type?(o=(e=t).getLabelModel(),r=V1(e,o),!o.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(n=t).scale.getTicks(),i=l1(n),{labels:B(o,function(t,e){return{level:t.level,formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})});var n,i,e,o,r}function F1(t,e){var n,i,o,r,a,s;return"category"===t.type?(e=e,r=G1(n=t,"ticks"),a=c1(e),(s=H1(r,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=D(a)?Y1(n,a,!0):"auto"===a?(s=V1(n,n.getLabelModel()),o=s.labelCategoryInterval,B(s.labels,function(t){return t.tickValue})):X1(n,o=a,!0),W1(r,a,{ticks:i,tickCategoryInterval:o}))):{ticks:B(t.scale.getTicks(),function(t){return t.value})}}function V1(t,e){var n,i=G1(t,"labels"),e=c1(e),o=H1(i,e);return o||W1(i,e,{labels:D(e)?Y1(t,e):X1(t,n="auto"===e?null!=(i=E1(o=t).autoInterval)?i:E1(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:n})}function G1(t,e){return E1(t)[e]||(E1(t)[e]=[])}function H1(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function W1(t,e,n){return t.push({key:e,value:n}),n}function X1(t,e,n){for(var i=l1(t),o=t.scale,r=o.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),e=r[0],u=o.count(),u=(0!==e&&1<l&&2<u/l&&(e=Math.round(Math.ceil(e/l)*l)),p1(t)),t=a.get("showMinLabel")||u,a=a.get("showMaxLabel")||u,h=(t&&e!==r[0]&&c(r[0]),e);h<=r[1];h+=l)c(h);function c(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return a&&h-l!==r[1]&&c(r[1]),s}function Y1(t,i,o){var r=t.scale,a=l1(t),s=[];return R(r.getTicks(),function(t){var e=r.getLabel(t),n=t.value;i(t.value,e)&&s.push(o?n:{formattedLabel:a(t),rawLabel:e,tickValue:n})}),s}var U1=[0,1],rp=(Z1.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},Z1.prototype.containData=function(t){return this.scale.contain(t)},Z1.prototype.getExtent=function(){return this._extent.slice()},Z1.prototype.getPixelPrecision=function(t){return Dr(t||this.scale.getExtent(),this._extent)},Z1.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},Z1.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&j1(n=n.slice(),i.count()),Sr(t,U1,n,e)},Z1.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&j1(n=n.slice(),i.count()),Sr(t,n,U1,e));return this.scale.scale(i)},Z1.prototype.pointToData=function(t,e){},Z1.prototype.getTicksCoords=function(t){var e,n,i,o,r,a,s,l=(t=t||{}).tickModel||this.getTickModel(),u=B(F1(this,l).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),l=l.get("alignWithLabel");function h(t,e){return t=Mr(t),e=Mr(e),a?e<t:t<e}return e=this,n=u,l=l,t=t.clamp,s=n.length,e.onBand&&!l&&s&&(l=e.getExtent(),1===s?(n[0].coord=l[0],i=n[1]={coord:l[1]}):(r=n[s-1].tickValue-n[0].tickValue,o=(n[s-1].coord-n[0].coord)/r,R(n,function(t){t.coord-=o/2}),e=1+(r=e.scale.getExtent())[1]-n[s-1].tickValue,i={coord:n[s-1].coord+o*e},n.push(i)),a=l[0]>l[1],h(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&h(l[0],n[0].coord)&&n.unshift({coord:l[0]}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1]}),u},Z1.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),B(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return B(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},Z1.prototype.getViewLabels=function(){return B1(this).labels},Z1.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Z1.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Z1.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},Z1.prototype.calculateCategoryInterval=function(){o=(n=d=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=l1(d),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(o=d.scale).getExtent(),o=o.count();if(i[1]-i[0]<1)return 0;for(var r=1,a=(40<o&&(r=Math.max(1,Math.floor(o/40))),i[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(n)),s=Math.abs(s*Math.sin(n)),u=0,h=0;a<=i[1];a+=r)var c=1.3*(p=Zo(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,u=Math.max(u,c,7),h=Math.max(h,p,7);var n=u/l,l=h/s,s=(isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(n,l)))),n=E1(d.model),l=d.getExtent(),d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=o,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},Z1);function Z1(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function j1(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var q1=2*Math.PI,K1=bs.CMD,J1=["top","right","bottom","left"];function $1(t,e,n,i,o,r,a,s){var l=o-t,u=r-e,n=n-t,i=i-e,h=Math.sqrt(n*n+i*i),l=(l*(n/=h)+u*(i/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*n),s=a[1]=e+l*i;return Math.sqrt((u-o)*(u-o)+(s-r)*(s-r))}function Q1(t,e,n,i,o,r,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);n=t+n,i=e+i,t=a[0]=Math.min(Math.max(o,t),n),n=a[1]=Math.min(Math.max(r,e),i);return Math.sqrt((t-o)*(t-o)+(n-r)*(n-r))}var tx=[];function ex(t,e,n){for(var i,o,r,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var w=m[x++],b=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(w){case K1.M:p=f=m[x++],d=g=m[x++];break;case K1.L:b=$1(p,d,m[x],m[x+1],v,_,tx,!0),p=m[x++],d=m[x++];break;case K1.C:b=jn(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,tx),p=m[x++],d=m[x++];break;case K1.Q:b=Qn(p,d,m[x++],m[x++],m[x],m[x+1],v,_,tx),p=m[x++],d=m[x++];break;case K1.A:var S=m[x++],M=m[x++],T=m[x++],C=m[x++],I=m[x++],D=m[x++],k=(x+=1,!!(1-m[x++])),A=Math.cos(I)*T+S,P=Math.sin(I)*C+M;x<=1&&(f=A,g=P),P=(A=I)+D,k=k,a=(v-S)*(r=C)/T+S,s=_,l=tx,c=h=u=void 0,a-=i=S,s-=o=M,u=Math.sqrt(a*a+s*s),h=(a/=u)*r+i,c=(s/=u)*r+o,b=Math.abs(A-P)%q1<1e-4||((P=k?(k=A,A=Ts(P),Ts(k)):(A=Ts(A),Ts(P)))<A&&(P+=q1),(k=Math.atan2(s,a))<0&&(k+=q1),A<=k&&k<=P)||A<=k+q1&&k+q1<=P?(l[0]=h,l[1]=c,u-r):(c=((k=r*Math.cos(A)+i)-a)*(k-a)+((h=r*Math.sin(A)+o)-s)*(h-s))<(i=((u=r*Math.cos(P)+i)-a)*(u-a)+((A=r*Math.sin(P)+o)-s)*(A-s))?(l[0]=k,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(i)),p=Math.cos(I+D)*T+S,d=Math.sin(I+D)*C+M;break;case K1.R:b=Q1(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,tx);break;case K1.Z:b=$1(p,d,f,g,v,_,tx,!0),p=f,d=g}b<y&&(y=b,n.set(tx[0],tx[1]))}return y}var nx=new M,ix=new M,ox=new M,rx=new M,ax=new M;function sx(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||J1,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=o.anchor,h=t.getComputedTransform(),c=h&&We([],h),p=e.get("length2")||0;u&&ox.copy(u);for(var d,f,g=0;g<a.length;g++){var y=a[g],m=(S=b=w=x=_=v=m=void 0,y),v=0,_=s,x=nx,w=rx,b=_.width,S=_.height;switch(m){case"top":x.set(_.x+b/2,_.y-v),w.set(0,-1);break;case"bottom":x.set(_.x+b/2,_.y+S+v),w.set(0,1);break;case"left":x.set(_.x-v,_.y+S/2),w.set(-1,0);break;case"right":x.set(_.x+b+v,_.y+S/2),w.set(1,0)}M.scaleAndAdd(ix,nx,rx,p),ix.transform(c);y=t.getBoundingRect(),y=u?u.distance(ix):t instanceof q?ex(ix,t.path,ox):(m=ox,d=Q1((d=y).x,y.y,y.width,y.height,ix.x,ix.y,tx),m.set(tx[0],tx[1]),d);y<l&&(l=y,ix.transform(h),ox.transform(h),ox.toArray(r[0]),ix.toArray(r[1]),nx.toArray(r[2]))}i=r,(o=e.get("minTurnAngle"))<=180&&0<o&&(o=o/180*Math.PI,nx.fromArray(i[0]),ix.fromArray(i[1]),ox.fromArray(i[2]),M.sub(rx,nx,ix),M.sub(ax,ox,ix),e=rx.len(),f=ax.len(),e<.001||f<.001||(rx.scale(1/e),ax.scale(1/f),e=rx.dot(ax),Math.cos(o)<e&&(f=$1(ix.x,ix.y,ox.x,ox.y,nx.x,nx.y,lx,!1),ux.fromArray(lx),ux.scaleAndAdd(ax,f/Math.tan(Math.PI-o)),e=ox.x!==ix.x?(ux.x-ix.x)/(ox.x-ix.x):(ux.y-ix.y)/(ox.y-ix.y),isNaN(e)||(e<0?M.copy(ux,ix):1<e&&M.copy(ux,ox),ux.toArray(i[1]))))),n.setShape({points:r})}}}var lx=[],ux=new M;function hx(t,e,n,i){var o="normal"===n,n=o?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());o?t.useStyle(e):n.style=e}function cx(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=te(i[0],i[1]),o=te(i[1],i[2]);e&&o?(n=Math.min(e,o)*n,e=ie([],i[1],i[0],n/e),n=ie([],i[1],i[2],n/o),o=ie([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var r=1;r<i.length;r++)t.lineTo(i[r][0],i[r][1])}function px(t){for(var e=[],n=0;n<t.length;n++){var i,o,r,a,s,l,u=t[n];u.defaultAttr.ignore||(o=(i=u.label).getComputedTransform(),r=i.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,(s=r.clone()).applyTransform(o),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new $h(r,o):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:r,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:o}))}return e}function dx(s,l,u,t,e,n){var h=s.length;if(!(h<2)){s.sort(function(t,e){return t.rect[l]-e.rect[l]});for(var i=0,r=!1,o=0,a=0;a<h;a++){var c,p=s[a],d=p.rect;(c=d[l]-i)<0&&(d[l]-=c,p.label[l]-=c,r=!0),o+=Math.max(-c,0),i=d[l]+d[u]}0<o&&n&&x(-o/h,0,h);var f,g,y=s[0],m=s[h-1];return v(),f<0&&w(-f,.8),g<0&&w(g,.8),v(),_(f,g,1),_(g,f,-1),v(),f<0&&b(-f),g<0&&b(g),r}function v(){f=y.rect[l]-t,g=e-m.rect[l]-m.rect[u]}function _(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(x(e*n,0,h),(e=e+t)<0&&w(-e*n,1)):w(-t*n,1))}function x(t,e,n){0!==t&&(r=!0);for(var i=e;i<n;i++){var o=s[i];o.rect[l]+=t,o.label[l]+=t}}function w(t,e){for(var n=[],i=0,o=1;o<h;o++){var r=s[o-1].rect,r=Math.max(s[o].rect[l]-r[l]-r[u],0);n.push(r),i+=r}if(i){var a=Math.min(Math.abs(t)/i,e);if(0<t)for(o=0;o<h-1;o++)x(n[o]*a,0,o+1);else for(o=h-1;0<o;o--)x(-(n[o-1]*a),o,h)}}function b(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(h-1))),i=0;i<h-1;i++)if(0<e?x(n,0,i+1):x(-n,h-i-1,h),(t-=n)<=0)return}}function fx(t){var e=[],n=(t.sort(function(t,e){return e.priority-t.priority}),new Y(0,0,0,0));function i(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var o=0;o<t.length;o++){for(var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,h=r.labelLine,c=(n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,r.obb),p=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new $h(f.localRect,f.transform)),(c=c||new $h(s,l)).intersect(f.obb)){p=!0;break}}}p?(i(u),h&&i(h)):(u.attr("ignore",r.defaultAttr.ignore),h&&h.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}function gx(t,e){var n=t.label,e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}var yx=["align","verticalAlign","width","height","fontSize"],mx=new Vo,vx=ta(),_x=ta();function xx(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var bx=["x","y","rotation"],Sx=(Mx.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},Mx.prototype._addLabel=function(t,e,n,i,o){var r,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),l=(Y.applyTransform(u,u,l),l?mx.setLocalTransform(l):(mx.x=mx.y=mx.rotation=mx.originX=mx.originY=0,mx.scaleX=mx.scaleY=1),mx.rotation=Ts(mx.rotation),i.__hostTarget),h=(l&&(r=l.getBoundingRect().plain(),h=l.getComputedTransform(),Y.applyTransform(r,r,h)),r&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:mx.x,y:mx.y,scaleX:mx.scaleX,scaleY:mx.scaleY,rotation:mx.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},Mx.prototype.addLabelsOfSeries=function(t){var n=this,i=(this._chartViewList.push(t),t.__model),o=i.get("labelLayout");(D(o)||N(o).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=k(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,o)})},Mx.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l=D(o.layoutOption)?o.layoutOption(gx(o,a)):o.layoutOption,u=(o.computedLayoutOption=l=l||{},Math.PI/180),h=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(r.x=H(l.x,e),r.setStyle("x",0),h=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=H(l.y,n),r.setStyle("y",0),h=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),vx(r).needsUpdateLabelLine=h,r.rotation=null!=l.rotate?l.rotate*u:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var c,p=0;p<yx.length;p++){var d=yx[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor="move",a&&(c=o.seriesModel,null!=o.dataIndex&&(c=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){sx(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},Mx.prototype.layout=function(t){var e,n,i=t.getWidth(),t=t.getHeight(),o=px(this._labelList),r=pt(o,function(t){return"shiftX"===t.layoutOption.moveOverlap}),a=pt(o,function(t){return"shiftY"===t.layoutOption.moveOverlap});dx(r,"x","width",0,i,e),dx(a,"y","height",0,t,n),fx(pt(o,function(t){return t.layoutOption.hideOverlap}))},Mx.prototype.processLabelsOverall=function(){var a=this;R(this._chartViewList,function(t){var i=t.__model,o=t.ignoreLabelLineUpdate,r=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var e=!o,n=t.getTextContent();(e=!e&&n?vx(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),r&&a._animateLabels(t,i)})})},Mx.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=k(t),o=i.dataIndex;if(n&&null!=o){var n=e.getData(i.dataType),e=n.getItemModel(o),i={},o=n.getItemVisual(o,"style"),o=(o&&(n=n.getVisual("drawType"),i.stroke=o[n]),e.getModel("labelLine")),r=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<kl.length;i++){var o=kl[i];n[o]=t.getModel([o,e])}return n}(e),n=i,s=r.getTextGuideLine(),l=r.getTextContent();if(l){for(var e=a.normal,u=e.get("show"),h=l.ignore,c=0;c<Al.length;c++){var p,d=Al[c],f=a[d],g="normal"===d;f&&(p=f.get("show"),(g?h:z(l.states[d]&&l.states[d].ignore,h))||!z(p,u)?((p=g?s:s&&s.states[d])&&(p.ignore=!0),s&&hx(s,!0,d,f)):(s||(s=new xh,r.setTextGuideLine(s),g||!h&&u||hx(s,!0,"normal",a.normal),r.stateProxy&&(s.stateProxy=r.stateProxy)),hx(s,!1,d,f)))}s&&(E(s.style,n),s.style.fill=null,n=e.get("showAbove"),(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=cx)}else s&&r.removeTextGuideLine();sx(t,o)}},Mx.prototype._animateLabels=function(t,e){var n,i,o,r,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||sc(t))||(r=(o=vx(s)).oldLayout,n=(i=k(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=I(t,"select")&&s.attr(o.oldLayoutSelect),0<=I(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),rc(s,a,e,n)):(s.attr(a),qc(s).valueAnimation||(t=z(s.style.opacity,1),s.style.opacity=0,ac(s,{style:{opacity:t}},e,n))),o.oldLayout=a,s.states.select&&(xx(t=o.oldLayoutSelect={},a,bx),xx(t,s.states.select,bx)),s.states.emphasis&&(xx(t=o.oldLayoutEmphasis={},a,bx),xx(t,s.states.emphasis,bx)),Kc(s,n,i,e,e)),!l||l.ignore||l.invisible||(r=(o=_x(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),rc(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,ac(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},Mx);function Mx(){this._labelList=[],this._chartViewList=[]}var Tx=ta();function Cx(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(Tx(e).labelManager||(Tx(e).labelManager=new Sx)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Tx(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function Ix(t,e,n){var i=W.createCanvas(),o=e.getWidth(),e=e.getHeight(),r=i.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=o*n,i.height=e*n,i}v1(Cx);u(Ax,Dx=ce),Ax.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},Ax.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},Ax.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},Ax.prototype.setUnpainted=function(){this.__firstTimePaint=!0},Ax.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Ix("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},Ax.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var l=[],u=this.maxRepaintRectCount,h=!1,c=new Y(0,0,0,0);function o(t){if(t.isFinite()&&!t.isZero())if(0===l.length)(e=new Y(0,0,0,0)).copy(t),l.push(e);else{for(var e,n=!1,i=1/0,o=0,r=0;r<l.length;++r){var a=l[r];if(a.intersect(t)){var s=new Y(0,0,0,0);s.copy(a),s.union(t),l[r]=s,n=!0;break}h&&(c.copy(t),c.union(a),s=t.width*t.height,a=a.width*a.height,(a=c.width*c.height-s-a)<i)&&(i=a,o=r)}h&&(l[o].union(t),n=!0),n||((e=new Y(0,0,0,0)).copy(t),l.push(e)),h=h||l.length>=u}}for(var r,a=this.__startIndex;a<this.__endIndex;++a)(s=t[a])&&(d=s.shouldBePainted(n,i,!0,!0),(p=s.__isRendered&&(s.__dirty&Mn||!d)?s.getPrevPaintRect():null)&&o(p),r=d&&(s.__dirty&Mn||!s.__isRendered)?s.getPaintRect():null)&&o(r);for(a=this.__prevStartIndex;a<this.__prevEndIndex;++a){var s,p,d=(s=e[a])&&s.shouldBePainted(n,i,!0,!0);!s||d&&s.__zr||!s.__isRendered||(p=s.getPrevPaintRect())&&o(p)}do{for(var f=!1,a=0;a<l.length;)if(l[a].isZero())l.splice(a,1);else{for(var g=a+1;g<l.length;)l[a].intersect(l[g])?(f=!0,l[a].union(l[g]),l.splice(g,1)):g++;a++}}while(f);return this._paintRects=l},Ax.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},Ax.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),i.width=t*n,i.height=e*n,r&&(r.width=t*n,r.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},Ax.prototype.clear=function(t,r,e){var n=this.dom,a=this.ctx,i=n.width,o=n.height,s=(r=r||this.clearColor,this.motionBlur&&!t),l=this.lastFrameAlpha,u=this.dpr,h=this,c=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,i/u,o/u)),this.domBack);function p(t,e,n,i){var o;a.clearRect(t,e,n,i),r&&"transparent"!==r&&(o=void 0,_t(r)?(o=(r.global||r.__width===n&&r.__height===i)&&r.__canvasGradient||Em(a,r,{x:0,y:0,width:n,height:i}),r.__canvasGradient=o,r.__width=n,r.__height=i):xt(r)&&(r.scaleX=r.scaleX||u,r.scaleY=r.scaleY||u,o=Zm(a,r,{dirty:function(){h.setUnpainted(),h.painter.refresh()}})),a.save(),a.fillStyle=o||r,a.fillRect(t,e,n,i),a.restore()),s&&(a.save(),a.globalAlpha=l,a.drawImage(c,t,e,n,i),a.restore())}!e||s?p(0,0,i,o):e.length&&R(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var Dx,kx=Ax;function Ax(t,e,n){var i,o=Dx.call(this)||this,t=(o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||Po,"string"==typeof t?i=Ix(t,e,n):L(t)&&(t=(i=t).id),o.id=t,(o.dom=i).style);return t&&(Ft(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=n,o}var Px=314159;c.prototype.getType=function(){return"canvas"},c.prototype.isSingleCanvas=function(){return this._singleCanvas},c.prototype.getViewportRoot=function(){return this._domRoot},c.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},c.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var o=0;o<i.length;o++){var r,a=i[o],a=this._layers[a];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},c.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},c.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),a0(i,a,o,r===e-1))}i&&i.restore()}},c.prototype.getHoverLayer=function(){return this.getLayer(1e5)},c.prototype.paintOne=function(t,e){r0(t,e)},c.prototype._paintList=function(t,e,n,i){var o,r,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,n)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,Pn(function(){a._paintList(t,e,n,i)})))},c.prototype._compositeManually=function(){var e=this.getLayer(Px).ctx,n=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,n,i),this.eachBuiltinLayer(function(t){t.virtual&&e.drawImage(t.dom,0,0,n,i)})},c.prototype._doPaintList=function(d,f,g){for(var y=this,m=[],v=this._opts.useDirtyRect,t=0;t<this._zlevelList.length;t++){var e=this._zlevelList[t],e=this._layers[e];e.__builtin__&&e!==this._hoverlayer&&(e.__dirty||g)&&m.push(e)}for(var _=!0,x=!1,n=function(t){function e(t){var e={inHover:!1,allClipped:!1,prevEl:null,viewWidth:y._width,viewHeight:y._height};for(i=s;i<o.__endIndex;i++){var n=d[i];if(n.__inHover&&(x=!0),y._doPaintEl(n,o,v,t,e,i===o.__endIndex-1),l)if(15<Date.now()-u)break}e.prevElClipPaths&&r.restore()}var n,i,o=m[t],r=o.ctx,a=v&&o.createRepaintRects(d,f,w._width,w._height),s=g?o.__startIndex:o.__drawIndex,l=!g&&o.incremental&&Date.now,u=l&&Date.now(),t=o.zlevel===w._zlevelList[0]?w._backgroundColor:null;o.__startIndex!==o.__endIndex&&(s!==o.__startIndex||(n=d[s]).incremental&&n.notClear&&!g)||o.clear(!1,t,a),-1===s&&(console.error("For some unknown reason. drawIndex is -1"),s=o.__startIndex);if(a)if(0===a.length)i=o.__endIndex;else for(var h=w.dpr,c=0;c<a.length;++c){var p=a[c];r.save(),r.beginPath(),r.rect(p.x*h,p.y*h,p.width*h,p.height*h),r.clip(),e(p),r.restore()}else r.save(),e(),r.restore();o.__drawIndex=i,o.__drawIndex<o.__endIndex&&(_=!1)},w=this,i=0;i<m.length;i++)n(i);return b.wxa&&R(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:_,needsRefreshHover:x}},c.prototype._doPaintEl=function(t,e,n,i,o,r){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(a0(e,t,o,r),t.setPrevPaintRect(n))):a0(e,t,o,r)},c.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Px);var n=this._layers[t];return n||((n=new kx("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?d(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&d(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},c.prototype.insertLayer=function(t,e){var n,i=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=i[o[l]]}o.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},c.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];t.call(e,this._layers[o],o)}},c.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},c.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},c.prototype.getLayers=function(){return this._layers},c.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}for(var i,o=null,r=0,a=0;a<t.length;a++){var s,l=(s=t[a]).zlevel,u=void 0;i!==l&&(i=l,r=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,r=1):u=this.getLayer(l+(0<r?.01:0),this._needsManuallyCompositing),u.__builtin__||rt("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==a&&(u.__dirty=!0),u.__startIndex=a,u.incremental?u.__drawIndex=-1:u.__drawIndex=a,e(a),o=u),s.__dirty&Mn&&!s.__inHover&&(u.__dirty=!0,u.incremental)&&u.__drawIndex<0&&(u.__drawIndex=a)}e(a),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},c.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},c.prototype._clearLayer=function(t){t.clear()},c.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(t){t.setUnpainted()})},c.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?d(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];o!==t&&o!==t+.01||d(this._layers[o],n[t],!0)}}},c.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(I(n,t),1))},c.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),o=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Fm(o,0,i),e=Fm(o,1,i),n.style.display="",this._width!==t||e!==this._height){for(var r in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(Px).resize(t,e)}return this},c.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},c.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},c.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[Px].dom;var e=new kx("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,o):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];a0(n,u,r,s===l-1)}return e.dom},c.prototype.getWidth=function(){return this._width},c.prototype.getHeight=function(){return this._height};var Lx=c;function c(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=O({},n||{}),this.dpr=n.devicePixelRatio||Po,this._singleCanvas=o;(this.root=t).style&&(Ft(t),t.innerHTML=""),this.storage=e;var r,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);o?(r=(o=t).width,a=o.height,null!=n.width&&(r=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,o.width=r*this.dpr,o.height=a*this.dpr,this._width=r,this._height=a,(r=new kx(o,this,this.dpr)).__builtin__=!0,r.initContext(),(s[Px]=r).zlevel=Px,e.push(Px),this._domRoot=t):(this._width=Fm(t,0,n),this._height=Fm(t,1,n),r=this._domRoot=(a=this._width,o=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+o+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(r))}u(Nx,Ox=g),Nx.prototype.init=function(t,e,n){Ox.prototype.init.call(this,t,e,n),this._sourceManager=new Ug(this),jg(this)},Nx.prototype.mergeOption=function(t,e){Ox.prototype.mergeOption.call(this,t,e),jg(this)},Nx.prototype.optionUpdated=function(){this._sourceManager.dirty()},Nx.prototype.getSourceManager=function(){return this._sourceManager},Nx.type="dataset",Nx.defaultOption={seriesLayoutBy:Ad};var Ox,Rx=Nx;function Nx(){var t=null!==Ox&&Ox.apply(this,arguments)||this;return t.type="dataset",t}u(Bx,zx=My),Bx.type="dataset";var zx,Ex=Bx;function Bx(){var t=null!==zx&&zx.apply(this,arguments)||this;return t.type="dataset",t}function Fx(t){t.registerComponentModel(Rx),t.registerComponentView(Ex)}v1([function(t){t.registerPainter("canvas",Lx)},Fx]),v1(Cx);u(Hx,Vx=yy),Hx.prototype.getInitialData=function(t){return l_(null,this,{useEncodeDefaulter:!0})},Hx.prototype.getLegendIcon=function(t){var e=new T,n=Om("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),i=this.getData().getVisual("symbolRotate"),n="none"===n?"circle":n,o=.8*t.itemHeight,o=Om(n,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),i=(e.add(o),o.setStyle(t.itemStyle),"inherit"===t.iconRotate?i:t.iconRotate||0);return o.rotation=i*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),e},Hx.type="series.line",Hx.dependencies=["grid","polar"],Hx.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},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,universalTransition:{divideShape:"clone"},triggerLineEvent:!1};var Vx,Gx=Hx;function Hx(){var t=null!==Vx&&Vx.apply(this,arguments)||this;return t.type=Hx.type,t.hasSymbolVisual=!0,t}function Wx(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),o=i.length;if(1===o)return null!=(n=eg(t,e,i[0]))?n+"":null;if(o){for(var r=[],a=0;a<i.length;a++)r.push(eg(t,e,i[a]));return r.join(" ")}}u(Ux,Xx=T),Ux.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();o=Om(t,-1,-1,2,2,null,o);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Zx,this._symbolType=t,this.add(o)},Ux.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},Ux.prototype.getSymbolType=function(){return this._symbolType},Ux.prototype.getSymbolPath=function(){return this.childAt(0)},Ux.prototype.highlight=function(){$l(this.childAt(0))},Ux.prototype.downplay=function(){Ql(this.childAt(0))},Ux.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},Ux.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},Ux.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=Ux.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,o)):((r=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},c?r.attr(a):rc(r,a,l,e),ic(s=r).oldStyle=s.style),this._updateCommon(t,e,u,n,i),h&&(r=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,ac(r,a,l,e))),c&&this.childAt(0).stopAnimation("leave")},Ux.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,u,h,c,p,d=this.childAt(0),f=e.hostModel,g=(i&&(r=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,y=i.cursorStyle,h=i.emphasisDisabled),i&&!e.hasItemOption||(r=(g=(i=i&&i.itemModel?i.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=g.get("focus"),u=g.get("blurScope"),h=g.get("disabled"),c=Hc(i),p=g.getShallow("scale"),y=i.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),i=(d.attr("rotation",(g||0)*Math.PI/180||0),Nm(e.getItemVisual(t,"symbolOffset"),n)),g=(i&&(d.x=i[0],d.y=i[1]),y&&d.attr("cursor",y),e.getItemVisual(t,"style")),i=g.fill,y=(d instanceof Zs?(y=d.style,d.useStyle(O({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},g))):(d.__isEmptyBrush?d.useStyle(O({},g)):d.useStyle(g),d.style.decal=null,d.setColor(i,o&&o.symbolInnerColor),d.style.strokeNoScale=!0),e.getItemVisual(t,"liftZ")),m=this._z2,v=(null!=y?null==m&&(this._z2=d.z2,d.z2+=y):null!=m&&(d.z2=m,this._z2=null),o&&o.useNameLabel);Gc(d,c,{labelFetcher:f,labelDataIndex:t,defaultText:function(t){return v?e.getName(t):Wx(e,t)},inheritColor:i,defaultOpacity:g.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;y=d.ensureState("emphasis"),y.style=r,d.ensureState("select").style=a,d.ensureState("blur").style=s,m=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&0<p?+p:1;y.scaleX=this._sizeX*m,y.scaleY=this._sizeY*m,this.setSymbolScale(1),cu(this,l,u,h)},Ux.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},Ux.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),o=k(this).dataIndex,r=n&&n.animation;this.silent=i.silent=!0,n&&n.fadeLabel?(n=i.getTextContent())&&lc(n,{style:{opacity:0}},e,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}}):i.removeTextContent(),lc(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})},Ux.getSymbolSize=function(t,e){return Rm(t.getItemVisual(e,"symbolSize"))};var Xx,Yx=Ux;function Ux(t,e,n,i){var o=Xx.call(this)||this;return o.updateData(t,e,n,i),o}function Zx(t,e){this.parent.drift(t,e)}function jx(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function qx(t){return(t=null==t||L(t)?t:{isIgnore:t})||{}}function Kx(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Hc(t),cursorStyle:t.get("cursor")}}$x.prototype.updateData=function(r,a){this._progressiveEls=null,a=qx(a);var s=this.group,l=r.hostModel,u=this._data,h=this._SymbolCtor,c=a.disableAnimation,p=Kx(r),d={disableAnimation:c},f=a.getSymbolPoint||function(t){return r.getItemLayout(t)};u||s.removeAll(),r.diff(u).add(function(t){var e,n=f(t);jx(r,n,t,a)&&((e=new h(r,t,p,d)).setPosition(n),r.setItemGraphicEl(t,e),s.add(e))}).update(function(t,e){var n,i,e=u.getItemGraphicEl(e),o=f(t);jx(r,o,t,a)?(n=r.getItemVisual(t,"symbol")||"circle",i=e&&e.getSymbolType&&e.getSymbolType(),!e||i&&i!==n?(s.remove(e),(e=new h(r,t,p,d)).setPosition(o)):(e.updateData(r,t,p,d),i={x:o[0],y:o[1]},c?e.attr(i):rc(e,i,l)),s.add(e),r.setItemGraphicEl(t,e)):s.remove(e)}).remove(function(t){var e=u.getItemGraphicEl(t);e&&e.fadeOut(function(){s.remove(e)},l)}).execute(),this._getSymbolPoint=f,this._data=r},$x.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},$x.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Kx(t),this._data=null,this.group.removeAll()},$x.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=qx(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);jx(e,a,o,n)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(i),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r))}},$x.prototype.eachRendered=function(t){zc(this._progressiveEls||this.group,t)},$x.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()};var Jx=$x;function $x(t){this.group=new T,this._SymbolCtor=t||Yx}function Qx(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();"start"===e?n=t[0]:"end"===e?n=t[1]:gt(e)&&!isNaN(e)?n=e:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]);return n}(o,n),i=i.dim,o=o.dim,r=e.mapDimension(o),a=e.mapDimension(i),s="x"===o||"radius"===o?1:0,t=B(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return a_(e,t[0])&&(l=!0,t[0]=u),a_(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:o,baseAxisDim:i,stacked:!!l,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function tw(t,e,n,i){var o=NaN,r=(t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}var ew=Math.min,nw=Math.max;function iw(t,e){return isNaN(t)||isNaN(e)}function ow(t,e,n,i,o,r,a,s,l){for(var u,h,c,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(iw(g,y)){if(l){d+=r;continue}break}if(d===n)t[0<r?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v<.5){d+=r;continue}if(0<a){for(var _=d+r,x=e[2*_],w=e[2*_+1];x===g&&w===y&&f<i;)f++,d+=r,x=e[2*(_+=r)],w=e[2*_+1],g=e[2*d],y=e[2*d+1];var b=f+1;if(l)for(;iw(x,w)&&b<i;)b++,x=e[2*(_+=r)],w=e[2*_+1];var S,M,T,C,I,D,k,A,P,m=0,v=0,L=void 0,O=void 0;i<=b||iw(x,w)?(k=g,A=y):(m=x-u,v=w-h,S=g-u,M=x-g,T=y-h,C=w-y,D=I=void 0,O="x"===s?(k=g-(P=0<m?1:-1)*(I=Math.abs(S))*a,A=y,L=g+P*(D=Math.abs(M))*a,y):"y"===s?(A=y-(P=0<v?1:-1)*(I=Math.abs(T))*a,L=k=g,y+P*(D=Math.abs(C))*a):(I=Math.sqrt(S*S+T*T),k=g-m*a*(1-(S=(D=Math.sqrt(M*M+C*C))/(D+I))),A=y-v*a*(1-S),O=y+v*a*S,L=ew(L=g+m*a*S,nw(x,g)),O=ew(O,nw(w,y)),L=nw(L,ew(x,g)),A=y-(v=(O=nw(O,ew(w,y)))-y)*I/D,k=ew(k=g-(m=L-g)*I/D,nw(u,g)),A=ew(A,nw(h,y)),L=g+(m=g-(k=nw(k,ew(u,g))))*D/I,y+(v=y-(A=nw(A,ew(h,y))))*D/I)),t.bezierCurveTo(c,p,k,A,g,y),c=L,p=O}else t.lineTo(g,y)}u=g,h=y,d+=r}return f}var rw,aw=function(){this.smooth=0,this.smoothConstraint=!0},sw=(u(lw,rw=q),lw.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},lw.prototype.getDefaultShape=function(){return new aw},lw.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&iw(n[2*o-2],n[2*o-1]);o--);for(;i<o&&iw(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=ow(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},lw.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=bs.CMD,a="x"===e,s=[],l=0;l<o.length;){var u=void 0,h=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:var c,u=o[l++],h=o[l++];if((c=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&0<=c)return v=a?(h-i)*c+i:(u-n)*c+n,a?[t,v]:[v,t];n=u,i=h;break;case r.C:u=o[l++],h=o[l++];var p=o[l++],d=o[l++],f=o[l++],g=o[l++],y=a?Yn(n,u,p,f,t,s):Yn(i,h,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Wn(i,h,d,g,_):Wn(n,u,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},lw);function lw(t){t=rw.call(this,t)||this;return t.type="ec-polyline",t}u(cw,uw=aw);var uw,hw=cw;function cw(){return null!==uw&&uw.apply(this,arguments)||this}u(fw,pw=q),fw.prototype.getDefaultShape=function(){return new hw},fw.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,r=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&iw(n[2*r-2],n[2*r-1]);r--);for(;o<r&&iw(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=ow(t,n,o,r,r,1,e.smooth,a,e.connectNulls);ow(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var pw,dw=fw;function fw(t){t=pw.call(this,t)||this;return t.type="ec-polygon",t}function gw(t,e){return t.type===e}function yw(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function mw(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function vw(t,e){var t=mw(t),n=t[0],t=t[1],e=mw(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function _w(t){return gt(t)?t:t?.5:0}function xw(t,e,n,i){var e=e.getBaseAxis(),o="x"===e.dim||"radius"===e.dim?0:1,r=[],a=0,s=[],l=[],u=[],h=[];if(i){for(a=0;a<t.length;a+=2)isNaN(t[a])||isNaN(t[a+1])||h.push(t[a],t[a+1]);t=h}for(a=0;a<t.length-2;a+=2)switch(u[0]=t[a+2],u[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],r.push(l[0],l[1]),n){case"end":s[o]=u[o],s[1-o]=l[1-o],r.push(s[0],s[1]);break;case"middle":var c=[];s[o]=c[o]=(l[o]+u[o])/2,s[1-o]=l[1-o],c[1-o]=u[1-o],r.push(s[0],s[1]),r.push(c[0],c[1]);break;default:s[o]=l[o],s[1-o]=u[1-o],r.push(s[0],s[1])}return r.push(t[a++],t[a++]),r}function ww(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var o,r=i.length-1;0<=r;r--){var a,s=t.getDimensionInfo(i[r].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){o=i[r];break}}if(o){var l=e.getAxis(a),e=B(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=o.outerColors.slice(),n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Ci((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(e<u){i?o.push(a(i,l,e)):n&&o.push(a(n,l,0),a(n,l,e));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}}return o}(e,"x"===a?n.getWidth():n.getHeight())),c=n.length;if(!c&&u)return e[0].coord<0?h[1]||e[u-1].color:h[0]||e[0].color;var p=n[0].coord-10,u=n[c-1].coord+10,d=u-p;if(d<.001)return"transparent";R(n,function(t){t.offset=(t.coord-p)/d}),n.push({offset:c?n[c-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:c?n[0].offset:.5,color:h[0]||"transparent"});e=new Wh(0,0,0,0,n,!0);return e[a]=p,e[a+"2"]=u,e}}}function bw(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var o,r,a=n.getAxesByScale("ordinal")[0];if(a)if(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),o=(isNaN(i)&&(i=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*Yx.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e))return o=e.mapDimension(a.dim),r={},R(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Sw(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function Mw(t,e){return[t[2*e],t[2*e+1]]}function Tw(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<kl.length;e++)if(t.get([kl[e],"endLabel","show"]))return 1}function Cw(n,i,e,t){var o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x;return gw(i,"cartesian2d")?(o=t.getModel("endLabel"),r=o.get("valueAnimation"),a=t.getData(),s={lastFrameIndex:0},l=Tw(t)?function(t,e){n._endLabelOnDuring(t,e,a,s,r,o,i)}:null,u=i.getBaseAxis().isHorizontal(),c=e,p=t,d=function(){var t=n._endLabel;t&&e&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},f=l,g=(v=(h=i).getArea()).x,y=v.y,m=v.width,v=v.height,_=p.get(["lineStyle","width"])||2,g-=_/2,y-=_/2,m+=_,v+=_,m=Math.ceil(m),g!==Math.floor(g)&&(g=Math.floor(g),m++),x=new nl({shape:{x:g,y:y,width:m,height:v}}),c&&(c=(_=h.getBaseAxis()).isHorizontal(),h=_.inverse,c?(h&&(x.shape.x+=m),x.shape.width=0):(h||(x.shape.y+=v),x.shape.height=0),_=D(f)?function(t){f(t,x)}:null,ac(x,{shape:{width:m,height:v,x:g,y:y}},p,null,d,_)),c=x,t.get("clip",!0)||(h=c.shape,m=Math.max(h.width,h.height),u?(h.y-=m,h.height+=2*m):(h.x-=m,h.width+=2*m)),l&&l(1,c),c):(v=e,g=t,p=(y=i).getArea(),d=Mr(p.r0,1),_=Mr(p.r,1),u=new lh({shape:{cx:Mr(y.cx,1),cy:Mr(y.cy,1),r0:d,r:_,startAngle:p.startAngle,endAngle:p.endAngle,clockwise:p.clockwise}}),v&&("angle"===y.getBaseAxis().dim?u.shape.endAngle=p.startAngle:u.shape.r=d,ac(u,{shape:{endAngle:p.endAngle,r:_}},g)),u)}u(kw,Iw=ky),kw.prototype.init=function(){var t=new T,e=new Jx;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},kw.prototype.render=function(t,e,n){function i(t){r._changePolyState(t)}var o,r=this,a=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),h=t.getModel("areaStyle"),c=l.getLayout("points")||[],p="polar"===a.type,d=this._coordSys,f=this._symbolDraw,g=this._polyline,y=this._polygon,m=this._lineGroup,e=!e.ssr&&t.get("animation"),v=!h.isEmpty(),_=h.get("origin"),x=Qx(a,l,_),x=v&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=L_(2*i),r=0;r<i;r++){var a=tw(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(a,l,x),w=t.get("showSymbol"),b=t.get("connectNulls"),S=w&&!p&&bw(t,l,a),M=this._data,T=(M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),M.setItemGraphicEl(e,null))}),w||f.remove(),s.add(m),!p&&t.get("step")),C=(a&&a.getArea&&t.get("clip",!0)&&(null!=(o=a.getArea()).width?(o.x-=.1,o.y-=.1,o.width+=.2,o.height+=.2):o.r0&&(o.r0-=.5,o.r+=.5)),this._clipShapeForSymbol=o,ww(l,a,n)||l.getVisual("style")[l.getVisual("drawType")]),d=(g&&d.type===a.type&&T===this._step?(v&&!y?y=this._newPolygon(c,x):y&&!v&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,od(C)),(d=m.getClipPath())?ac(d,{shape:Cw(this,a,!1,t).shape},t):m.setClipPath(Cw(this,a,!0,t)),w&&f.updateData(l,{isIgnore:S,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),yw(this._stackedOnPoints,x)&&yw(this._points,c)||(e?this._doUpdateAnimation(l,x,a,n,T,_,b):(T&&(c=xw(c,a,T,b),x=x&&xw(x,a,T,b)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:x})))):(w&&f.updateData(l,{isIgnore:S,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),e&&this._initSymbolLabelAnimation(l,a,o),T&&(c=xw(c,a,T,b),x=x&&xw(x,a,T,b)),g=this._newPolyline(c),v?y=this._newPolygon(c,x):y&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,od(C)),m.setClipPath(Cw(this,a,!0,t))),t.getModel("emphasis")),n=d.get("focus"),w=d.get("blurScope"),f=d.get("disabled"),S=(g.useStyle(E(u.getLineStyle(),{fill:"none",stroke:C,lineJoin:"bevel"})),fu(g,t,"lineStyle"),0<g.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),k(g).seriesIndex=t.seriesIndex,cu(g,n,w,f),_w(t.get("smooth"))),e=t.get("smoothMonotone");g.setShape({smooth:S,smoothMonotone:e,connectNulls:b}),y&&(o=l.getCalculationInfo("stackedOnSeries"),v=0,y.useStyle(E(h.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),o&&(v=_w(o.get("smooth"))),y.setShape({smooth:S,stackedOnSmooth:v,smoothMonotone:e,connectNulls:b}),fu(y,t,"areaStyle"),k(y).seriesIndex=t.seriesIndex,cu(y,n,w,f));l.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=i)}),this._polyline.onHoverStateChange=i,this._data=l,this._coordSys=a,this._stackedOnPoints=x,this._points=c,this._step=T,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,g),y)&&this.packEventData(t,y)},kw.prototype.packEventData=function(t,e){k(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},kw.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=Qr(o,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points");if(!(l=o.getItemGraphicEl(r))){var s=a[2*r],a=a[2*r+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel")||0,h=t.get("z")||0,s=((l=new Yx(o,r)).x=s,l.y=a,l.setZ(u,h),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=h,s.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(r,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else ky.prototype.highlight.call(this,t,e,n,i)},kw.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=Qr(r,i);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):ky.prototype.downplay.call(this,t,e,n,i)},kw.prototype._changePolyState=function(t){var e=this._polygon;Ul(this._polyline,t),e&&Ul(e,t)},kw.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new sw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},kw.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new dw({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},kw.prototype._initSymbolLabelAnimation=function(t,l,u){var h,c,e=l.getBaseAxis(),p=e.inverse,e=("cartesian2d"===l.type?(h=e.isHorizontal(),c=!1):"polar"===l.type&&(h="angle"===e.dim,c=!0),t.hostModel),d=e.get("animationDuration"),f=(D(d)&&(d=d(null)),e.get("animationDelay")||0),g=D(f)?f(null):f;t.eachItemGraphicEl(function(t,e){var n,i,o,r,a,s=t;s&&(r=[t.x,t.y],a=i=n=void 0,u&&(a=c?(o=u,r=l.pointToCoord(r),h?(n=o.startAngle,i=o.endAngle,-r[1]/180*Math.PI):(n=o.r0,i=o.r,r[0])):h?(n=u.x,i=u.x+u.width,t.x):(n=u.y+u.height,i=u.y,t.y)),o=i===n?0:(a-n)/(i-n),p&&(o=1-o),r=D(f)?f(e):d*o+g,a=(t=s.getSymbolPath()).getTextContent(),s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:r}),a&&a.animateFrom({style:{opacity:0}},{duration:300,delay:r}),t.disableLabelAnimation=!0)})},kw.prototype._initOrUpdateEndLabel=function(t,e,n){var u,i,o,r=t.getModel("endLabel");Tw(t)?(u=t.getData(),i=this._polyline,(o=u.getLayout("points"))?(this._endLabel||((this._endLabel=new sl({z2:200})).ignoreClip=!0,i.setTextContent(this._endLabel),i.disableLabelAnimation=!0),0<=(o=Sw(o))&&(Gc(i,Hc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,n){if(null==n)return Wx(u,t);var i=u,o=n,r=i.mapDimensionsAll("defaultedLabel");if(!F(o))return o+"";for(var a=[],s=0;s<r.length;s++){var l=i.getDimensionIndex(r[s]);0<=l&&a.push(o[l])}return a.join(" ")},enableTextSetter:!0},(n=r,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,r=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:n.get("align")||r,verticalAlign:n.get("verticalAlign")||o}})),i.textConfig.position=null)):(i.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},kw.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=r.get("precision"),r=r.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?r:0)*(a?-1:1),r=(c?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,o,r=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<r;u++)if(o=t[2*u+a],!isNaN(o)&&!isNaN(t[2*u+1-a])){if(0!==u){if(i<=e&&e<=o||e<=i&&o<=e){l=u;break}s=u}i=o}return{range:[s,l],t:(e-i)/(o-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=Mw(s,p[0]),m.attr({x:y[0]+h,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=la(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=Mw(s,v=1===t||0<i.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+r})),o)&&"function"==typeof(a=qc(m)).setLabelText&&a.setLabelText(d)},kw.prototype._doUpdateAnimation=function(t,e,n,i,o,r,a){var s=this._polyline,l=this._polygon,u=t.hostModel,e=function(t,e,n,i,o,r){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=Qx(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,w=void 0;switch(_.cmd){case"=":var b=2*_.idx,w=2*_.idx1,S=y[b],M=y[1+b],T=m[w],C=m[w+1];(isNaN(S)||isNaN(M))&&(S=T,M=C),l.push(S,M),u.push(T,C),h.push(n[b],n[1+b]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,M=g.dataDimsForPoint,T=o.dataToPoint([e.get(M[0],S),e.get(M[1],S)]),C=(w=2*S,l.push(T[0],T[1]),u.push(m[w],m[w+1]),tw(g,o,e,S));h.push(C[0],C[1]),c.push(i[w],i[w+1]),f.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var I=L_(r=l.length),D=L_(r),k=L_(r),A=L_(r),P=[],v=0;v<d.length;v++){var L=d[v],O=2*v,R=2*L;I[O]=l[R],I[1+O]=l[1+R],D[O]=u[R],D[1+O]=u[1+R],k[O]=h[R],k[1+O]=h[1+R],A[O]=c[R],A[1+O]=c[1+R],P[v]=p[L]}return{current:I,next:D,stackedOnCurrent:k,stackedOnNext:A,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=e.current,c=e.stackedOnCurrent,p=e.next,d=e.stackedOnNext;if(o&&(h=xw(e.current,n,o,a),c=xw(e.stackedOnCurrent,n,o,a),p=xw(e.next,n,o,a),d=xw(e.stackedOnNext,n,o,a)),3e3<vw(h,p)||l&&3e3<vw(c,d))s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d}));else{s.shape.__points=e.current,s.shape.points=h;for(var f,n={shape:{points:p}},g=(e.current!==h&&(n.shape.__points=e.next),s.stopAnimation(),rc(s,n,u),l&&(l.setShape({points:h,stackedOnPoints:c}),l.stopAnimation(),rc(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},kw.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,e){t.__temp&&(n.remove(t),i.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},kw.type="line";var Iw,Dw=kw;function kw(){return null!==Iw&&Iw.apply(this,arguments)||this}function Aw(t,i){return{seriesType:t,plan:Cy(),reset:function(t){var h,e,c,p,d,n=t.getData(),f=t.coordinateSystem,t=t.pipelineContext,g=i||t.large;if(f)return t=B(f.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),h=t.length,e=n.getCalculationInfo("stackResultDimension"),a_(n,t[0])&&(t[0]=e),a_(n,t[1])&&(t[1]=e),c=n.getStore(),p=n.getDimensionIndex(t[0]),d=n.getDimensionIndex(t[1]),h&&{progress:function(t,e){for(var n=t.end-t.start,i=g&&L_(n*h),o=[],r=[],a=t.start,s=0;a<t.end;a++){var l,u=void 0;u=1===h?(l=c.get(p,a),f.dataToPoint(l,null,r)):(o[0]=c.get(p,a),o[1]=c.get(d,a),f.dataToPoint(o,null,r)),g?(i[s++]=u[0],i[s++]=u[1]):e.setItemLayout(a,u.slice())}g&&e.setLayout("points",i)}}}}}var Pw={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,i=0;i<t.length;i++){var o=t[i],r=Math.abs(o);e<r&&(e=r,n=o)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},Lw=function(t){return Math.round(t.length/2)};function Ow(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}v1(function(t){t.registerChartView(Dw),t.registerSeriesModel(Gx),t.registerLayout(Aw("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,n){var i,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),n=Math.round(s/i),isFinite(n))&&1<n&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/n)),s=void 0,V(r)?s=Pw[r]:D(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/n,s,Lw))}})});u(zw,Rw=T),zw.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},zw.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),r=0;r<i;r++){var a=Om(e,-1,-1,2,2,n),s=(a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5}),-r/i*t.period+t.effectOffset);a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),o.add(a)}Ow(o,t)},zw.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var r=i[o];if(e[r]!==t[r])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}Ow(n,t)},zw.prototype.highlight=function(){$l(this)},zw.prototype.downplay=function(){Ql(this)},zw.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},zw.prototype.updateData=function(t,e){var n=this,i=t.hostModel,o=(this.childAt(0).updateData(t,e),this.childAt(1)),r=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=Rm(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,l=r.getModel("emphasis"),s=(o.setScale(s),o.traverse(function(t){t.setStyle("fill",u)}),Nm(t.getItemVisual(e,"symbolOffset"),s)),s=(s&&(o.x=s[0],o.y=s[1]),t.getItemVisual(e,"symbolRotate")),h=(o.rotation=(s||0)*Math.PI/180||0,{});h.showEffectOn=i.get("showEffectOn"),h.rippleScale=r.get(["rippleEffect","scale"]),h.brushType=r.get(["rippleEffect","brushType"]),h.period=1e3*r.get(["rippleEffect","period"]),h.effectOffset=e/t.count(),h.z=i.getShallow("z")||0,h.zlevel=i.getShallow("zlevel")||0,h.symbolType=a,h.color=u,h.rippleEffectColor=r.get(["rippleEffect","color"]),h.rippleNumber=r.get(["rippleEffect","number"]),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===t&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,cu(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},zw.prototype.fadeOut=function(t){t&&t()};var Rw,Nw=zw;function zw(t,e){var n=Rw.call(this)||this,i=new Yx(t,e),o=new T;return n.add(i),n.add(o),n.updateData(t,e),n}u(Fw,Ew=ky),Fw.prototype.init=function(){this._symbolDraw=new Jx(Nw)},Fw.prototype.render=function(t,e,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},Fw.prototype._getClipShape=function(t){var e=t.coordinateSystem,e=e&&e.getArea&&e.getArea();return t.get("clip",!0)?e:null},Fw.prototype.updateTransform=function(t,e,n){var i=t.getData(),t=(this.group.dirty(),Aw("").reset(t,e,n));t.progress&&t.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},Fw.prototype._updateGroupTransform=function(t){t=t.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Xe(t.getRoamTransform()),this.group.decomposeTransform())},Fw.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},Fw.type="effectScatter";var Ew,Bw=Fw;function Fw(){var t=null!==Ew&&Ew.apply(this,arguments)||this;return t.type=Fw.type,t}u(Hw,Vw=yy),Hw.prototype.getInitialData=function(t,e){return l_(null,this,{useEncodeDefaulter:!0})},Hw.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},Hw.type="series.effectScatter",Hw.dependencies=["grid","polar"],Hw.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10};var Vw,Gw=Hw;function Hw(){var t=null!==Vw&&Vw.apply(this,arguments)||this;return t.type=Hw.type,t.hasSymbolVisual=!0,t}v1(function(t){t.registerChartView(Bw),t.registerSeriesModel(Gw),t.registerLayout(Aw("effectScatter"))});Xw.prototype.update=function(t,e,n,i,o,r){var a=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),u=this.pointSize+this.blurSize,o=this.canvas,h=o.getContext("2d"),c=t.length;o.width=e,o.height=n;for(var p=0;p<c;++p){var d=t[p],f=d[0],g=d[1],y=i(d[2]);h.globalAlpha=y,h.drawImage(a,f-u,g-u)}if(o.width&&o.height){for(var e=h.getImageData(0,0,o.width,o.height),m=e.data,v=0,_=m.length,x=this.minOpacity,w=this.maxOpacity-x;v<_;){var b,y=m[v+3]/256,S=4*Math.floor(255*y);0<y?(b=r(y)?s:l,0<y&&(y=y*w+x),m[v++]=b[S],m[v++]=b[1+S],m[v++]=b[2+S],m[v++]=b[3+S]*y*256):v+=4}h.putImageData(e,0,0)}return o},Xw.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=W.createCanvas()),e=this.pointSize+this.blurSize,n=2*e,i=(t.width=n,t.height=n,t.getContext("2d"));return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},Xw.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,a=0;a<256;a++)t[e](a/255,!0,o),i[r++]=o[0],i[r++]=o[1],i[r++]=o[2],i[r++]=o[3];return i};var Ww=Xw;function Xw(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=W.createCanvas();this.canvas=t}function Yw(t){t=t.dimensions;return"lng"===t[0]&&"lat"===t[1]}u(jw,Uw=ky),jw.prototype.render=function(n,t,e){t.eachComponent("visualMap",function(e){e.eachTargetSeries(function(t){t===n&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var i,t=n.coordinateSystem;"cartesian2d"===t.type||"calendar"===t.type?this._renderOnCartesianAndCalendar(n,e,0,n.getData().count()):Yw(t)&&this._renderOnGeo(t,n,i,e)},jw.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},jw.prototype.incrementalRender=function(t,e,n,i){var o=e.coordinateSystem;o&&(Yw(o)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},jw.prototype.eachRendered=function(t){zc(this._progressiveEls||this.group,t)},jw.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){for(var r,a,s,l,u,h=t.coordinateSystem,c=gw(h,"cartesian2d"),p=(c&&(_=h.getAxis("x"),r=h.getAxis("y"),a=_.getBandWidth()+.5,s=r.getBandWidth()+.5,l=_.scale.getExtent(),u=r.scale.getExtent()),this.group),d=t.getData(),f=t.getModel(["emphasis","itemStyle"]).getItemStyle(),g=t.getModel(["blur","itemStyle"]).getItemStyle(),y=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),v=Hc(t),_=t.getModel("emphasis"),x=_.get("focus"),w=_.get("blurScope"),b=_.get("disabled"),S=c?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],M=n;M<i;M++){var T=void 0,C=d.getItemVisual(M,"style");if(c){var I=d.get(S[0],M),D=d.get(S[1],M);if(isNaN(d.get(S[2],M))||isNaN(I)||isNaN(D)||I<l[0]||I>l[1]||D<u[0]||D>u[1])continue;var I=h.dataToPoint([I,D]),T=new nl({shape:{x:I[0]-a/2,y:I[1]-s/2,width:a,height:s},style:C})}else{if(isNaN(d.get(S[1],M)))continue;T=new nl({z2:1,shape:h.dataToRect([d.get(S[0],M)]).contentShape,style:C})}d.hasItemOption&&(f=(I=(D=d.getItemModel(M)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),g=D.getModel(["blur","itemStyle"]).getItemStyle(),y=D.getModel(["select","itemStyle"]).getItemStyle(),m=D.get(["itemStyle","borderRadius"]),x=I.get("focus"),w=I.get("blurScope"),b=I.get("disabled"),v=Hc(D)),T.shape.r=m;var k=t.getRawValue(M),A="-";k&&null!=k[2]&&(A=k[2]+""),Gc(T,v,{labelFetcher:t,labelDataIndex:M,defaultOpacity:C.opacity,defaultText:A}),T.ensureState("emphasis").style=f,T.ensureState("blur").style=g,T.ensureState("select").style=y,cu(T,x,w,b),(T.incremental=o)&&(T.states.emphasis.hoverLayer=!0),p.add(T),d.setItemGraphicEl(M,T),this._progressiveEls&&this._progressiveEls.push(T)}},jw.prototype._renderOnGeo=function(i,t,e,n){var o,r,a,s,l,u,h,c=e.targetVisuals.inRange,p=e.targetVisuals.outOfRange,d=t.getData(),f=this._hmLayer||this._hmLayer||new Ww,t=(f.blurSize=t.get("blurSize"),f.pointSize=t.get("pointSize"),f.minOpacity=t.get("minOpacity"),f.maxOpacity=t.get("maxOpacity"),i.getViewRect().clone()),g=i.getRoamTransform(),y=(t.applyTransform(g),Math.max(t.x,0)),m=Math.max(t.y,0),g=Math.min(t.width+t.x,n.getWidth()),t=Math.min(t.height+t.y,n.getHeight()),n=g-y,g=t-m,t=[d.mapDimension("lng"),d.mapDimension("lat"),d.mapDimension("value")],d=d.mapArray(t,function(t,e,n){t=i.dataToPoint([t,e]);return t[0]-=y,t[1]-=m,t.push(n),t}),t=e.getExtent(),v="visualMap.continuous"===e.type?(h=e.option.range,v=t[1]-t[0],h=[(h[0]-t[0])/v,(h[1]-t[0])/v],function(t){return t>=h[0]&&t<=h[1]}):(o=t,r=e.getPieceList(),a=e.option.selected,s=o[1]-o[0],l=(r=B(r,function(t){return{interval:[(t.interval[0]-o[0])/s,(t.interval[1]-o[0])/s]}})).length,u=0,function(t){for(var e,n=u;n<l;n++)if((e=r[n].interval)[0]<=t&&t<=e[1]){u=n;break}if(n===l)for(n=u-1;0<=n;n--)if((e=r[n].interval)[0]<=t&&t<=e[1]){u=n;break}return 0<=n&&n<l&&a[n]}),t=(f.update(d,n,g,c.color.getNormalizer(),{inRange:c.color.getColorMapper(),outOfRange:p.color.getColorMapper()},v),new Zs({style:{width:n,height:g,x:y,y:m,image:f.canvas},silent:!0}));this.group.add(t)},jw.type="heatmap";var Uw,Zw=jw;function jw(){var t=null!==Uw&&Uw.apply(this,arguments)||this;return t.type=jw.type,t}u(Jw,qw=yy),Jw.prototype.getInitialData=function(t,e){return l_(null,this,{generateCoord:"value"})},Jw.prototype.preventIncremental=function(){var t=of.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},Jw.type="series.heatmap",Jw.dependencies=["grid","geo","calendar"],Jw.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}};var qw,Kw=Jw;function Jw(){var t=null!==qw&&qw.apply(this,arguments)||this;return t.type=Jw.type,t}v1(function(t){t.registerChartView(Zw),t.registerSeriesModel(Kw)});var $w="\0_ec_interaction_mutex";function Qw(t,e){return((t=t)[$w]||(t[$w]={}))[e]}mv({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Gt);u(nb,tb=ce),nb.prototype.isDragging=function(){return this._dragging},nb.prototype.isPinching=function(){return this._pinching},nb.prototype.setPointerChecker=function(t){this.pointerChecker=t},nb.prototype.dispose=function(){this.disable()},nb.prototype._mousedownHandler=function(t){if(!Pe(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},nb.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a;this._dragging&&rb("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Qw(this._zr,"globalPan")&&(e=t.offsetX,n=t.offsetY,r=e-(i=this._x),a=n-(o=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Ae(t.event),ob(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null}))},nb.prototype._mouseupHandler=function(t){Pe(t)||(this._dragging=!1)},nb.prototype._mousewheelHandler=function(t){var e=rb("zoomOnMouseWheel",t,this._opt),n=rb("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),r=t.offsetX,a=t.offsetY;0!==i&&(e||n)&&(e&&(e=3<o?1.4:1<o?1.2:1.1,ib(this,"zoom","zoomOnMouseWheel",t,{scale:0<i?e:1/e,originX:r,originY:a,isAvailableBehavior:null})),n)&&ib(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(0<i?1:-1)*(3<(o=Math.abs(i))?.4:1<o?.15:.05),originX:r,originY:a,isAvailableBehavior:null})},nb.prototype._pinchHandler=function(t){Qw(this._zr,"globalPan")||ib(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})};var tb,eb=nb;function nb(n){var t=tb.call(this)||this,i=(t._zr=n,S(t._mousedownHandler,t)),o=S(t._mousemoveHandler,t),r=S(t._mouseupHandler,t),a=S(t._mousewheelHandler,t),s=S(t._pinchHandler,t);return t.enable=function(t,e){this.disable(),this._opt=E(_(e)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),!0!==(t=null==t?!0:t)&&"move"!==t&&"pan"!==t||(n.on("mousedown",i),n.on("mousemove",o),n.on("mouseup",r)),!0!==t&&"scale"!==t&&"zoom"!==t||(n.on("mousewheel",a),n.on("pinch",s))},t.disable=function(){n.off("mousedown",i),n.off("mousemove",o),n.off("mouseup",r),n.off("mousewheel",a),n.off("pinch",s)},t}function ib(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(Ae(i.event),ob(t,e,n,i,o))}function ob(t,e,n,i,o){o.isAvailableBehavior=S(rb,null,n,i),t.trigger(e,o)}function rb(t,e,n){n=n[t];return!t||n&&(!V(n)||e.event[n+"Key"])}var ab,sb={axisPointer:1,tooltip:1,brush:1};function lb(t){var e=t=V(t)?(new DOMParser).parseFromString(t,"text/xml"):t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var ub={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-anchor":"textAlign",visibility:"visibility",display:"display"},hb=N(ub),cb={"alignment-baseline":"textBaseline","stop-color":"stopColor"},pb=N(cb),db=(fb.prototype.parse=function(t,e){e=e||{};for(var n,i,t=lb(t),o=(this._defsUsePending=[],new T),r=(this._root=o,[]),a=t.getAttribute("viewBox")||"",s=parseFloat(t.getAttribute("width")||e.width),l=parseFloat(t.getAttribute("height")||e.height),u=(isNaN(s)&&(s=null),isNaN(l)&&(l=null),xb(t,o,null,!0,!1),t.firstChild);u;)this._parseNode(u,o,r,null,!1,!1),u=u.nextSibling;for(var h=this._defs,c=this._defsUsePending,p=0;p<c.length;p++){var d=c[p];d[0].style[d[1]]=h[d[2]]}return this._defsUsePending=[],(n=a&&4<=(t=Mb(a)).length?{x:parseFloat(t[0]||0),y:parseFloat(t[1]||0),width:parseFloat(t[2]),height:parseFloat(t[3])}:n)&&null!=s&&null!=l&&(i=kb(n,{x:0,y:0,width:s,height:l}),e.ignoreViewBox||(a=o,(o=new T).add(a),a.scaleX=a.scaleY=i.scale,a.x=i.x,a.y=i.y)),e.ignoreRootClip||null==s||null==l||o.setClipPath(new nl({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:n,viewBoxTransform:i,named:r}},fb.prototype._parseNode=function(t,e,n,i,o,r){var a,s,l=t.nodeName.toLowerCase(),u=i;if("defs"===l&&(o=!0),"text"===l&&(r=!0),"defs"===l||"switch"===l?a=e:(o||(s=ab[l])&&Vt(ab,l)&&(a=s.call(this,t,e),(s=t.getAttribute("name"))?(n.push(s={name:s,namedFrom:null,svgNodeTagLower:l,el:a}),"g"===l&&(u=s)):i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:a}),e.add(a)),(s=gb[l])&&Vt(gb,l)&&(i=s.call(this,t),e=t.getAttribute("id"))&&(this._defs[e]=i)),a&&a.isGroup)for(var h=t.firstChild;h;)1===h.nodeType?this._parseNode(h,a,n,u,o,r):3===h.nodeType&&r&&this._parseText(h,a),h=h.nextSibling},fb.prototype._parseText=function(t,e){var n=new Hs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0}),t=(vb(e,n),xb(t,n,this._defsUsePending,!1,!1),n),i=e,o=i.__selfStyle,o=(o&&(o=o.textBaseline,!(r=o)||"auto"===o||"baseline"===o?r="alphabetic":"before-edge"===o||"text-before-edge"===o?r="top":"after-edge"===o||"text-after-edge"===o?r="bottom":"central"!==o&&"mathematical"!==o||(r="middle"),t.style.textBaseline=r),(o=i.__inheritedStyle)&&(r=o.textAlign,i=r)&&("middle"===r&&(i="center"),t.style.textAlign=i),n.style),r=o.fontSize,t=(r&&r<9&&(o.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9),(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ")),i=(o.font=t,n.getBoundingRect());return this._textX+=i.width,e.add(n),n},fb.internalField=void(ab={g:function(t,e){var n=new T;return vb(e,n),xb(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new nl;return vb(e,n),xb(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Gu;return vb(e,n),xb(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Th;return vb(e,n),xb(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Yu;return vb(e,n),xb(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points"),i=(i&&(n=_b(i)),new yh({shape:{points:n||[]},silent:!0}));return vb(e,i),xb(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,i=t.getAttribute("points"),i=(i&&(n=_b(i)),new xh({shape:{points:n||[]},silent:!0}));return vb(e,i),xb(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Zs;return vb(e,n),xb(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",r=t.getAttribute("dy")||"0",n=(this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(r),new T);return vb(e,n),xb(t,n,this._defsUsePending,!1,!0),n},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y"),n=(null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i)),t.getAttribute("dx")||"0"),i=t.getAttribute("dy")||"0",o=new T;return vb(e,o),xb(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(i),o},path:function(t,e){var n=Bu(t.getAttribute("d")||"");return vb(e,n),xb(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),fb);function fb(){this._defs={},this._root=null}var gb={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),o=parseInt(t.getAttribute("y2")||"0",10),e=new Wh(e,n,i,o);return yb(t,e),mb(t,e),e},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),e=new Uh(e,n,i);return yb(t,e),mb(t,e),e}};function yb(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function mb(t,e){for(var n,i,o=t.firstChild;o;)1===o.nodeType&&"stop"===o.nodeName.toLocaleLowerCase()&&(n=void 0,n=(i=o.getAttribute("offset"))&&0<i.indexOf("%")?parseInt(i,10)/100:i?parseFloat(i):0,Db(o,i={},i),i=i.stopColor||o.getAttribute("stop-color")||"#000000",e.colorStops.push({offset:n,color:i})),o=o.nextSibling}function vb(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),E(e.__inheritedStyle,t.__inheritedStyle))}function _b(t){for(var e=Mb(t),n=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);n.push([o,r])}return n}function xb(t,e,n,i,o){var r=e,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};if(1===t.nodeType){var l=t;if(l=l.getAttribute("transform")){l=l.replace(/,/g," ");var u=[],h=null;l.replace(Tb,function(t,e,n){return u.push(e,n),""});for(var c=u.length-1;0<c;c-=2){var p=u[c-1],d=Mb(u[c]);switch(h=h||ze(),p){case"translate":Ve(h,h,[parseFloat(d[0]),parseFloat(d[1]||"0")]);break;case"scale":He(h,h,[parseFloat(d[0]),parseFloat(d[1]||d[0])]);break;case"rotate":Ge(h,h,-parseFloat(d[0])*Cb,[parseFloat(d[1]||"0"),parseFloat(d[2]||"0")]);break;case"skewX":var f=Math.tan(parseFloat(d[0])*Cb);Fe(h,[1,0,f,1,0,0],h);break;case"skewY":f=Math.tan(parseFloat(d[0])*Cb);Fe(h,[1,f,0,1,0,0],h);break;case"matrix":h[0]=parseFloat(d[0]),h[1]=parseFloat(d[1]),h[2]=parseFloat(d[2]),h[3]=parseFloat(d[3]),h[4]=parseFloat(d[4]),h[5]=parseFloat(d[5])}}e.setLocalTransform(h)}if(Db(t,a,s),!i){for(var g=t,y=a,m=s,v=0;v<hb.length;v++){var _=hb[v];null!=(x=g.getAttribute(_))&&(y[ub[_]]=x)}for(v=0;v<pb.length;v++){var x,_=pb[v];null!=(x=g.getAttribute(_))&&(m[cb[_]]=x)}}}r.style=r.style||{},null!=a.fill&&(r.style.fill=bb(r,"fill",a.fill,n)),null!=a.stroke&&(r.style.stroke=bb(r,"stroke",a.stroke,n)),R(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(r.style[t]=parseFloat(a[t]))}),R(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(t){null!=a[t]&&(r.style[t]=a[t])}),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=B(Mb(a.lineDash),function(t){return parseFloat(t)})),"hidden"!==a.visibility&&"collapse"!==a.visibility||(r.invisible=!0),"none"===a.display&&(r.ignore=!0)}var wb=/^url\(\s*#(.*?)\)/;function bb(t,e,n,i){var o=n&&n.match(wb);if(!o)return n="none"===n?null:n;n=Dt(o[1]),i.push([t,e,n])}var Sb=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Mb(t){return t.match(Sb)||[]}var Tb=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Cb=Math.PI/180;var Ib=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Db(t,e,n){var i,o=t.getAttribute("style");if(o)for(Ib.lastIndex=0;null!=(i=Ib.exec(o));){var r=i[1],a=Vt(ub,r)?ub[r]:null,a=(a&&(e[a]=i[2]),Vt(cb,r)?cb[r]:null);a&&(n[a]=i[2])}}function kb(t,e){var n=e.width/t.width,i=e.height/t.height,n=Math.min(n,i);return{scale:n,x:-(t.x+t.width/2)*n+(e.x+e.width/2),y:-(t.y+t.height/2)*n+(e.y+e.height/2)}}var Ab=G(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Pb=(Lb.prototype.load=function(){var t,e,n,i;return this._firstGraphic||(e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone(),e=e.named,n=[],i=G(),R(e,function(t){var e;null==t.namedFrom&&(e=new L1(t.name,t.el),n.push(e),i.set(t.name,e))}),t=(e={regions:n,regionsMap:i}).regionsMap,this._regions=e.regions,this._regionsMap=t),{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},Lb.prototype._buildGraphic=function(t){var e,n,i,o;try{It(null!=(n=(e=t&&(i=t,o={ignoreViewBox:!0,ignoreRootClip:!0},(new db).parse(i,o))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var r,a,s,l,t=new T,u=(t.add(n),t.isGeoSVGGraphicRoot=!0,e.width),h=e.height,c=e.viewBoxRect,p=this._boundingRect,d=(p||(l=s=a=r=void 0,null!=u?(r=0,s=u):c&&(r=c.x,s=c.width),null!=h?(a=0,l=h):c&&(a=c.y,l=c.height),null!=r&&null!=a||(u=n.getBoundingRect(),null==r&&(r=u.x,s=u.width),null==a&&(a=u.y,l=u.height)),p=this._boundingRect=new Y(r,a,s,l)),c&&(h=kb(c,p),n.scaleX=n.scaleY=h.scale,n.x=h.x,n.y=h.y),t.setClipPath(new nl({shape:p.plain()})),[]);return R(e.named,function(t){null!=Ab.get(t.svgNodeTagLower)&&(d.push(t),(t=t.el).silent=!1,t.isGroup)&&t.traverse(function(t){t.silent=!1})}),{root:t,boundingRect:p,named:d}},Lb.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n)),n},Lb.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},Lb);function Lb(t,e){this.type="geoSVG",this._usedGraphicMap=G(),this._freedGraphics=[],this._mapName=t,this._parsedXML=lb(e)}for(var Ob=[126,25],Rb=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Nb=0;Nb<Rb.length;Nb++)for(var zb=0;zb<Rb[Nb].length;zb++)Rb[Nb][zb][0]/=10.5,Rb[Nb][zb][1]/=-14,Rb[Nb][zb][0]+=Ob[0],Rb[Nb][zb][1]+=Ob[1];var Eb={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var Bb=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];Vb.prototype.load=function(n,t){var e,i=this._parsedMap.get(t=t||"name"),o=(i||(e=this._parseToRegions(t),i=this._parsedMap.set(t,{regions:e,boundingRect:function(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}(e)})),G()),r=[];return R(i.regions,function(t){var e=t.name;n&&Vt(n,e)&&(t=t.cloneShallow(e=n[e])),r.push(t),o.set(e,t)}),{regions:r,boundingRect:i.boundingRect||new Y(0,0,0,0),regionsMap:o}},Vb.prototype._parseToRegions=function(t){var e,r=this._mapName,n=this._geoJSON;try{e=n?z1(n,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if("南海诸岛"===e[n].name)return;e.push(new k1("南海诸岛",B(Rb,function(t){return{type:"polygon",exterior:t}}),Ob))}}(r,e),R(e,function(t){var e,n,i=t.name,o=(o=t,"china"===(n=r)&&(n=Eb[o.name])&&((e=o.getCenter())[0]+=n[0]/10.5,e[1]+=-n[1]/14,o.setCenter(e)),n=t,"china"===r&&"台湾"===n.name&&n.geometries.push({type:"polygon",exterior:Bb[0]}),this._specialAreas&&this._specialAreas[i]);o&&t.transformTo(o.left,o.top,o.width,o.height)},this),e},Vb.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}};var Fb=Vb;function Vb(t,e,n){this.type="geoJSON",this._parsedMap=G(),this._mapName=t,this._specialAreas=n,this._geoJSON=V(t=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var Gb=G(),Hb={registerMap:function(t,e,n){var i;e=e.svg?new Pb(t,e.svg):((i=e.geoJson||e.geoJSON)&&!e.features?n=e.specialAreas:i=e,new Fb(t,i,n)),Gb.set(t,e)},getGeoResource:function(t){return Gb.get(t)},getMapForUser:function(t){t=Gb.get(t);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(t,e,n){t=Gb.get(t);if(t)return t.load(e,n)}},ep=["rect","circle","line","ellipse","polygon","polyline","path"],Wb=G(ep),Xb=G(ep.concat(["g"])),Yb=G(ep.concat(["g"])),Ub=ta();function Zb(t){var e=t.getItemStyle(),t=t.get("areaColor");return null!=t&&(e.fill=t),e}function jb(t){t=t.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}Kb.prototype.draw=function(e,t,n,i,o){var r="geo"===e.mainType,a=e.getData&&e.getData(),s=(r&&t.eachComponent({mainType:"series",subType:"map"},function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}),e.coordinateSystem),l=this._regionsGroup,u=this.group,h=s.getTransformInfo(),c=h.raw,h=h.roam,o=(!l.childAt(0)||o?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):rc(u,h,e),a&&a.getVisual("visualMeta")&&0<a.getVisual("visualMeta").length),u={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:o,isGeo:r,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(u):"geoSVG"===s.resourceType&&this._buildSVG(u),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},Kb.prototype._buildGeoJSON=function(h){var c=this._regionsGroupByName=G(),p=G(),d=this._regionsGroup,n=h.transformInfoRaw,f=h.mapOrGeoModel,g=h.data,y=h.geo.projection,m=y&&y.stream;function v(t,e){return(t=e?e(t):t)&&[t[0]*n.scaleX+n.x,t[1]*n.scaleY+n.y]}function _(t){return{shape:{points:function(t){for(var e=[],n=!m&&y&&y.project,i=0;i<t.length;++i){var o=v(t[i],n);o&&e.push(o)}return e}(t)}}}d.removeAll(),R(h.geo.regions,function(t){var n=t.name,i=c.get(n),e=p.get(n)||{},o=e.dataIdx,r=e.regionModel,a=(i||(i=c.set(n,new T),d.add(i),o=g?g.indexOfName(n):null,r=h.isGeo?f.getRegionModel(n):g?g.getItemModel(o):null,p.set(n,{dataIdx:o,regionModel:r})),[]),s=[],l=(R(t.geometries,function(t){var e;"polygon"===t.type?(e=[t.exterior].concat(t.interiors||[]),R(e=m?nS(e,m):e,function(t){a.push(new yh(_(t)))})):(e=t.points,R(e=m?nS(e,m,!0):e,function(t){s.push(new xh(_(t)))}))}),v(t.getCenter(),y&&y.project));function u(t,e){t.length&&(t=new Bh({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}}),i.add(t),Jb(h,t,o,r),$b(h,t,n,r,f,o,l),e)&&(jb(t),R(t.states,jb))}u(a),u(s,!0)}),c.each(function(t,e){var n=p.get(e),i=n.dataIdx,n=n.regionModel;Qb(h,t,e,n,f,i),tS(h,t,e,n,f),eS(h,t,e,n,f)},this)},Kb.prototype._buildSVG=function(s){var t=s.geo.map,e=s.transformInfoRaw,l=(this._svgGroup.x=e.x,this._svgGroup.y=e.y,this._svgGroup.scaleX=e.scaleX,this._svgGroup.scaleY=e.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t)),this._svgDispatcherMap=G()),u=!1;R(this._svgGraphicRecord.named,function(t){var e=t.name,n=s.mapOrGeoModel,i=s.data,o=t.svgNodeTagLower,r=t.el,i=i?i.indexOfName(e):null,a=n.getRegionModel(e);null!=Wb.get(o)&&r instanceof Xa&&Jb(s,r,i,a),r instanceof Xa&&(r.culling=!0),r.z2EmphasisLift=0,t.namedFrom||(null!=Yb.get(o)&&$b(s,r,e,a,n,i,null),Qb(s,r,e,a,n,i),tS(s,r,e,a,n),null!=Xb.get(o)&&("self"===eS(s,r,e,a,n)&&(u=!0),(l.get(e)||l.set(e,[])).push(r)))},this),this._enableBlurEntireSVG(u,s)},Kb.prototype._enableBlurEntireSVG=function(t,e){var n;t&&e.isGeo&&(n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity,this._svgGraphicRecord.root.traverse(function(t){var e;t.isGroup||(ql(t),null==(e=t.ensureState("blur").style||{}).opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis"))}))},Kb.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},Kb.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];e=e.coordinateSystem;if("geoJSON"===e.resourceType){var n=this._regionsGroupByName;if(n)return(n=n.get(t))?[n]:[]}else if("geoSVG"===e.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},Kb.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},Kb.prototype._useSVG=function(t){var e=Hb.getGeoResource(t);e&&"geoSVG"===e.type&&(e=e.useGraphic(this.uid),this._svgGroup.add(e.root),this._svgGraphicRecord=e,this._svgMapName=t)},Kb.prototype._freeSVG=function(){var t=this._svgMapName;null!=t&&((t=Hb.getGeoResource(t))&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null)},Kb.prototype._updateController=function(i,t,l){var o=i.coordinateSystem,e=this._controller,u=this._controllerHost,n=(u.zoomLimit=i.get("scaleLimit"),u.zoom=o.getZoom(),e.enable(i.get("roam")||!1),i.mainType);function h(){var t={type:"geoRoam",componentType:n};return t[n+"Id"]=i.id,t}e.off("pan").on("pan",function(t){var e,n,i;this._mouseDownFlag=!1,e=u,n=t.dx,i=t.dy,(e=e.target).x+=n,e.y+=i,e.dirty(),l.dispatchAction(O(h(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))},this),e.off("zoom").on("zoom",function(t){var e,n,i,o,r,a,s;this._mouseDownFlag=!1,e=u,n=t.scale,i=t.originX,o=t.originY,r=e.target,a=e.zoomLimit,s=e.zoom=e.zoom||1,s*=n,a&&(n=a.min||0,a=a.max||1/0,s=Math.max(Math.min(a,s),n)),a=s/e.zoom,e.zoom=s,r.x-=(i-r.x)*(a-1),r.y-=(o-r.y)*(a-1),r.scaleX*=a,r.scaleY*=a,r.dirty(),l.dispatchAction(O(h(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))},this),e.setPointerChecker(function(t,e,n){return o.containPoint([e,n])&&(e=t,n=i,t=(t=l).getComponentByElement(e.topTarget),e=t&&t.coordinateSystem,!(t&&t!==n&&!sb.hasOwnProperty(t.mainType)&&e&&e.model!==n))})},Kb.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){t=t.getTextContent();t&&(t.ignore=Ub(t).ignore)})},Kb.prototype._updateMapSelectHandler=function(t,e,n,i){var o=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){o._mouseDownFlag=!0}),e.on("click",function(t){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))};var qb=Kb;function Kb(t){var e=new T;this.uid=dp("ec_map_draw"),this._controller=new eb(t.getZr()),this._controllerHost={target:e},(this.group=e).add(this._regionsGroup=new T),e.add(this._svgGroup=new T)}function Jb(t,e,n,i){var o,r=i.getModel("itemStyle"),a=i.getModel(["emphasis","itemStyle"]),s=i.getModel(["blur","itemStyle"]),i=i.getModel(["select","itemStyle"]),r=Zb(r),a=Zb(a),i=Zb(i),s=Zb(s),l=t.data;l&&(o=l.getItemVisual(n,"style"),l=l.getItemVisual(n,"decal"),t.isVisualEncodedByVisualMap&&o.fill&&(r.fill=o.fill),l)&&(r.decal=h0(l,t.api)),e.setStyle(r),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=a,e.ensureState("select").style=i,e.ensureState("blur").style=s,ql(e)}function $b(t,e,n,i,o,r,a){var s=t.data,t=t.isGeo,l=s&&isNaN(s.get(s.mapDimension("value"),r)),u=s&&s.getItemLayout(r);t||l||u&&u.showLabel?(l=t?n:r,u=!s||0<=r?o:void 0,t=a?{normal:{align:"center",verticalAlign:"middle"}}:null,Gc(e,Hc(i),{labelFetcher:u,labelDataIndex:l,defaultText:n},t),(s=e.getTextContent())&&(Ub(s).ignore=s.ignore,e.textConfig)&&a&&(r=e.getBoundingRect().clone(),e.textConfig.layoutRect=r,e.textConfig.position=[(a[0]-r.x)/r.width*100+"%",(a[1]-r.y)/r.height*100+"%"]),e.disableLabelAnimation=!0):(e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null)}function Qb(t,e,n,i,o,r){t.data?t.data.setItemGraphicEl(r,e):k(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function tS(t,e,n,i,o){t.data||Rc({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function eS(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var i=i.getModel("emphasis"),r=i.get("focus");return cu(e,r,i.get("blurScope"),i.get("disabled")),t.isGeo&&(i=o,t=n,(o=k(o=e)).componentMainType=i.mainType,o.componentIndex=i.componentIndex,o.componentHighDownName=t),r}function nS(t,e,n){var i,o=[];function r(){i=[]}function a(){i.length&&(o.push(i),i=[])}var s=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return n||s.polygonStart(),R(t,function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()}),n||s.polygonEnd(),o}u(rS,iS=ky),rS.prototype.render=function(t,e,n,i){var o,r;i&&"mapToggleSelect"===i.type&&i.from===this.uid||((o=this.group).removeAll(),t.getHostGeoModel())||(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id?(r=this._mapDraw)&&o.add(r.group):t.needsDrawMap?(r=this._mapDraw||new qb(n),o.add(r.group),r.draw(t,e,n,this,i),this._mapDraw=r):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null),t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n))},rS.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},rS.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},rS.prototype._renderSymbols=function(a,t,e){var s=a.originalData,l=this.group;s.each(s.mapDimension("value"),function(t,e){var n,i,o,r;isNaN(t)||(t=s.getItemLayout(e))&&t.point&&(r=t.point,t=t.offset,n=new Gu({style:{fill:a.getData().getVisual("style").fill},shape:{cx:r[0]+9*t,cy:r[1],r:3},silent:!0,z2:8+(t?0:11)}),t||(r=a.mainSeries.getData(),t=s.getName(e),i=r.indexOfName(t),o=(e=s.getItemModel(e)).getModel("label"),r=r.getItemGraphicEl(i),Gc(n,Hc(e),{labelFetcher:{getFormattedLabel:function(t,e){return a.getFormattedLabel(i,e)}},defaultText:t}),n.disableLabelAnimation=!0,o.get("position")||n.setTextConfig({position:"bottom"}),r.onHoverStateChange=function(t){Ul(n,t)}),l.add(n))})},rS.type="map";var iS,oS=rS;function rS(){var t=null!==iS&&iS.apply(this,arguments)||this;return t.type=rS.type,t}function aS(t,e,n){e=F(e)?{coordDimensions:e}:O({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=e_(i,e).dimensions,e=new t_(e,t);return e.initData(i,n),e}u(uS,sS=yy),uS.prototype.getInitialData=function(t){for(var e=aS(this,{coordDimensions:["value"],encodeDefaulter:dt(Nd,this)}),n=G(),i=[],o=0,r=e.count();o<r;o++){var a=e.getName(o);n.set(a,!0)}return R(Hb.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(t){t=t.name;n.get(t)||i.push(t)}),e.appendValues([],i),e},uS.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},uS.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},uS.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},uS.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},uS.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),o=this.getRawValue(t),r=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(r),h=i.mapDimension("value");isNaN(a[l].originalData.get(h,u))||s.push(a[l].name)}return ey("section",{header:s.join(", "),noHeader:!s.length,blocks:[ey("nameValue",{name:r,value:o})]})},uS.prototype.setZoom=function(t){this.option.zoom=t},uS.prototype.setCenter=function(t){this.option.center=t},uS.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Om(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},uS.type="series.map",uS.dependencies=["geo"],uS.layoutMode="box",uS.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"};var sS,lS=uS;function uS(){var t=null!==sS&&sS.apply(this,arguments)||this;return t.type=uS.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(t){var e;if(null!=t)return t=this.getData().getName(t),(t=(e=this.coordinateSystem).getRegion(t))&&e.dataToPoint(t.getCenter())},t}function hS(t){var n={};t.eachSeriesByType("map",function(t){var e=t.getHostGeoModel(),e=e?"o"+e.id:"i"+t.getMapType();(n[e]=n[e]||[]).push(t)}),R(n,function(t,e){l=B(t,function(t){return t.getData()}),u=t[0].get("mapValueCalculation"),h={},R(l,function(n){n.each(n.mapDimension("value"),function(t,e){e="ec-"+n.getName(e);h[e]=h[e]||[],isNaN(t)||h[e].push(t)})});for(var l,u,h,n=l[0].map(l[0].mapDimension("value"),function(t,e){for(var n="ec-"+l[0].getName(e),i=0,o=1/0,r=-1/0,a=h[n].length,s=0;s<a;s++)o=Math.min(o,h[n][s]),r=Math.max(r,h[n][s]),i+=h[n][s];return e="min"===u?o:"max"===u?r:"average"===u?i/a:i,0===a?NaN:e}),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)(t[i].seriesGroup=t)[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function cS(n){var o={};n.eachSeriesByType("map",function(t){var a,i,e=t.getMapType();t.getHostGeoModel()||o[e]||(a={},R(t.seriesGroup,function(t){var o=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&n.getComponent("legend")&&r.each(r.mapDimension("value"),function(t,e){var n=r.getName(e),i=o.getRegion(n);i&&!isNaN(t)&&(t=a[n]||0,i=o.dataToPoint(i.getCenter()),a[n]=t+1,r.setItemLayout(e,{point:i,offset:t}))})}),(i=t.getData()).each(function(t){var e=i.getName(t),n=i.getItemLayout(t)||{};n.showLabel=!a[e],i.setItemLayout(t,n)}),o[e]=!0)})}var pS,dS=oe,ga=(u(fS,pS=Vo),fS.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new Y(t,e,n,i),this._rect},fS.prototype.getBoundingRect=function(){return this._rect},fS.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new Y(t,e,n,i)},fS.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._rawTransformable,o=(r.transform=o.calculateTransform(new Y(t,e,n,i)),r.parent);r.parent=null,r.decomposeTransform(),r.parent=o,this._updateTransform()},fS.prototype.setCenter=function(t,e){t&&(this._center=[H(t[0],e.getWidth()),H(t[1],e.getHeight())],this._updateCenterAndZoom())},fS.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min)&&(t=Math.max(e.min,t)),this._zoom=t,this._updateCenterAndZoom()},fS.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},fS.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},fS.prototype.getZoom=function(){return this._zoom||1},fS.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},fS.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom(),i=oe([],i,t),n=oe([],n,t);e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=o,this._updateTransform()},fS.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),Be(this.transform||(this.transform=[]),e.transform||ze()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],We(this.invTransform,this.transform),this.decomposeTransform()},fS.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new Vo;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},fS.prototype.getViewRect=function(){return this._viewRect},fS.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},fS.prototype.dataToPoint=function(t,e,n){e=e?this._rawTransform:this.transform;return n=n||[],e?dS(n,t,e):Yt(n,t)},fS.prototype.pointToData=function(t){var e=this.invTransform;return e?dS([],t,e):[t[0],t[1]]},fS.prototype.convertToPixel=function(t,e,n){e=gS(e);return e===this?e.dataToPoint(n):null},fS.prototype.convertFromPixel=function(t,e,n){e=gS(e);return e===this?e.pointToData(n):null},fS.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},fS.dimensions=["x","y"],fS);function fS(t){var e=pS.call(this)||this;return e.type="view",e.dimensions=["x","y"],e._roamTransformable=new Vo,e._rawTransformable=new Vo,e.name=t,e}function gS(t){t=t.seriesModel;return t?t.coordinateSystem:null}var yS,mS={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},vS=["lng","lat"],_S=(u(xS,yS=ga),xS.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._invertLongitute,o=o.clone(),a=(r&&(o.y=-o.y-o.height),this._rawTransformable),o=(a.transform=o.calculateTransform(new Y(t,e,n,i)),a.parent);a.parent=null,a.decomposeTransform(),a.parent=o,r&&(a.scaleY=-a.scaleY),this._updateTransform()},xS.prototype.getRegion=function(t){return this._regionsMap.get(t)},xS.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},xS.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},xS.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},xS.prototype.dataToPoint=function(t,e,n){var i;if(t=V(t)?this.getGeoCoord(t):t)return(t=(i=this.projection)?i.project(t):t)&&this.projectedToPoint(t,e,n)},xS.prototype.pointToData=function(t){var e=this.projection;return(t=e?e.unproject(t):t)&&this.pointToProjected(t)},xS.prototype.pointToProjected=function(t){return yS.prototype.pointToData.call(this,t)},xS.prototype.projectedToPoint=function(t,e,n){return yS.prototype.dataToPoint.call(this,t,e,n)},xS.prototype.convertToPixel=function(t,e,n){e=wS(e);return e===this?e.dataToPoint(n):null},xS.prototype.convertFromPixel=function(t,e,n){e=wS(e);return e===this?e.pointToData(n):null},xS);function xS(t,e,n){var t=yS.call(this,t)||this,i=(t.dimensions=vS,t.type="geo",t._nameCoordMap=G(),t.map=e,n.projection),o=Hb.load(e,n.nameMap,n.nameProperty),e=Hb.getGeoResource(e),r=(t.resourceType=e?e.type:null,t.regions=o.regions),e=mS[e.type];if(t._regionsMap=o.regionsMap,t.regions=o.regions,t.projection=i)for(var a=0;a<r.length;a++){var s,l=r[a].getBoundingRect(i);(s=s||l.clone()).union(l)}else s=o.boundingRect;return t.setBoundingRect(s.x,s.y,s.width,s.height),t.aspectScale=i?1:z(n.aspectScale,e.aspectScale),t._invertLongitute=!i&&e.invertLongitute,t}function wS(t){var e=t.geoModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",oa).models[0]||{}).coordinateSystem:null}function bS(t,e){var l,u,h,n,i,o,r=t.get("boundingCoords"),a=(null!=r&&(u=r[0],h=r[1],isFinite(u[0]))&&isFinite(u[1])&&isFinite(h[0])&&isFinite(h[1])&&((l=this.projection)&&(r=u[0],p=u[1],c=h[0],s=h[1],u=[1/0,1/0],h=[-1/0,-1/0],(a=function(t,e,n,i){for(var o=n-t,r=i-e,a=0;a<=100;a++){var s=a/100,s=l.project([t+o*s,e+r*s]);re(u,u,s),ae(h,h,s)}})(r,p,c,p),a(c,p,c,s),a(c,s,r,s),a(r,s,c,p)),this.setBoundingRect(u[0],u[1],h[0]-u[0],h[1]-u[1])),this.getBoundingRect()),r=t.get("layoutCenter"),s=t.get("layoutSize"),c=e.getWidth(),p=e.getHeight(),a=a.width/a.height*this.aspectScale,d=!1;r&&s&&(n=[H(r[0],c),H(r[1],p)],i=H(s,Math.min(c,p)),isNaN(n[0])||isNaN(n[1])||isNaN(i)||(d=!0)),d?(o={},1<a?(o.width=i,o.height=i/a):(o.height=i,o.width=i*a),o.y=n[1]-o.height/2,o.x=n[0]-o.width/2):((r=t.getBoxLayoutParams()).aspect=a,o=cd(r,{width:c,height:p})),this.setViewRect(o.x,o.y,o.width,o.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function SS(){this.dimensions=vS}ut(_S,ga),SS.prototype.create=function(t,o){var r=[];function a(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",function(t,e){var n=t.get("map"),e=new _S(n+e,n,O({nameMap:t.get("nameMap")},a(t)));e.zoomLimit=t.get("scaleLimit"),r.push(e),(t.coordinateSystem=e).model=t,e.resize=bS,e.resize(t,o)}),t.eachSeries(function(t){var e;"geo"===t.get("coordinateSystem")&&(e=t.get("geoIndex")||0,t.coordinateSystem=r[e])});var n={};return t.eachSeriesByType("map",function(t){var e;t.getHostGeoModel()||(e=t.getMapType(),n[e]=n[e]||[],n[e].push(t))}),R(n,function(t,e){var n=B(t,function(t){return t.get("nameMap")}),i=new _S(e,e,O({nameMap:at(n)},a(t[0])));i.zoomLimit=St.apply(null,B(t,function(t){return t.get("scaleLimit")})),r.push(i),i.resize=bS,i.resize(t[0],o),R(t,function(t){var n;t.coordinateSystem=i,n=i,R(t.get("geoCoord"),function(t,e){n.addGeoCoord(e,t)})})}),r},SS.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),r=G(),a=0;a<o.length;a++)r.set(o[a].name,o[a]);return R(Hb.load(e,n,i).regions,function(t){t=t.name;r.get(t)||o.push({name:t})}),o};var MS,TS=new SS,CS=(u(IS,MS=g),IS.prototype.init=function(t,e,n){var i=Hb.getGeoResource(t.map);!i||"geoJSON"!==i.type||"color"in(i=t.itemStyle=t.itemStyle||{})||(i.color="#eee"),this.mergeDefaultAndTheme(t,n),Wr(t,"label",["show"])},IS.prototype.optionUpdated=function(){var i=this,t=this.option,o=(t.regions=TS.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty),{});this._optionModelMap=ct(t.regions||[],function(t,e){var n=e.name;return n&&(t.set(n,new hp(e,i,i.ecModel)),e.selected)&&(o[n]=!0),t},G()),t.selectedMap||(t.selectedMap=o)},IS.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new hp(null,this,this.ecModel)},IS.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),n="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return D(n)?(i.status=e,n(i)):V(n)?n.replace("{a}",null!=t?t:""):void 0},IS.prototype.setZoom=function(t){this.option.zoom=t},IS.prototype.setCenter=function(t){this.option.center=t},IS.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},IS.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},IS.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},IS.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},IS.type="geo",IS.layoutMode="box",IS.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},IS);function IS(){var t=null!==MS&&MS.apply(this,arguments)||this;return t.type=IS.type,t}function DS(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}u(PS,kS=My),PS.prototype.init=function(t,e){this._api=e},PS.prototype.render=function(t,e,n,i){var o;(this._model=t).get("show")?(this._mapDraw||(this._mapDraw=new qb(n)),(o=this._mapDraw).draw(t,e,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,e,n)):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null)},PS.prototype._handleRegionClick=function(t){var e;xm(t.target,function(t){return null!=(e=k(t).eventData)},!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},PS.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse(function(t){var e=k(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0})},PS.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},PS.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},PS.type="geo";var kS,AS=PS;function PS(){var t=null!==kS&&kS.apply(this,arguments)||this;return t.type=PS.type,t.focusBlurEnabled=!0,t}function LS(t,e,n){Hb.registerMap(t,e,n)}function OS(e){function t(r,t){t.update="geo:updateSelectStatus",e.registerAction(t,function(t,e){var i={},o=[];return e.eachComponent({mainType:"geo",query:t},function(e){e[r](t.name);R(e.coordinateSystem.regions,function(t){i[t.name]=e.isSelected(t.name)||!1});var n=[];R(i,function(t,e){i[e]&&n.push(e)}),o.push({geoIndex:e.componentIndex,name:n})}),{selected:i,allSelected:o,name:t.name}})}e.registerCoordinateSystem("geo",TS),e.registerComponentModel(CS),e.registerComponentView(AS),e.registerImpl("registerMap",LS),e.registerImpl("getMap",function(t){return Hb.getMapForUser(t)}),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(h,t,c){var p=h.componentType||"series";t.eachComponent({mainType:p,query:h},function(t){var e,n,i,o,r,a,s,l,u=t.coordinateSystem;"geo"===u.type&&(u=u,n=h,i=t.get("scaleLimit"),o=c,a=u.getZoom(),s=u.getCenter(),l=n.zoom,s=u.projectedToPoint?u.projectedToPoint(s):u.dataToPoint(s),null!=n.dx&&null!=n.dy&&(s[0]-=n.dx,s[1]-=n.dy,u.setCenter(DS(u,s),o)),null!=l&&(i&&(r=i.min||0,i=i.max||1/0,l=Math.max(Math.min(a*l,i),r)/a),u.scaleX*=l,u.scaleY*=l,i=(n.originX-u.x)*(l-1),r=(n.originY-u.y)*(l-1),u.x-=i,u.y-=r,u.updateTransform(),u.setCenter(DS(u,s),o),u.setZoom(l*a)),e={center:u.getCenter(),zoom:u.getZoom()},t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom),"series"===p)&&R(t.seriesGroup,function(t){t.setCenter(e.center),t.setZoom(e.zoom)})})})}v1(function(t){v1(OS),t.registerChartView(oS),t.registerSeriesModel(lS),t.registerLayout(cS),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,hS),vm("map",t.registerAction)});var RS,NS=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},zS=(u(ES,RS=q),ES.prototype.getDefaultShape=function(){return new NS},ES.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(o/3<=r?1:2),l=e.y-i(a)*r*(o/3<=r?1:2),a=e.angle-Math.PI/2;t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)},ES);function ES(t){t=RS.call(this,t)||this;return t.type="pointer",t}var BS,FS=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},VS=(u(GS,BS=q),GS.prototype.getDefaultShape=function(){return new FS},GS.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=.5*(r-o),s=o+a,l=e.startAngle,u=e.endAngle,e=e.clockwise,h=2*Math.PI,c=e?u-l<h:l-u<h,h=(c||(l=u-(e?h:-h)),Math.cos(l)),p=Math.sin(l),d=Math.cos(u),f=Math.sin(u);c?(t.moveTo(h*o+n,p*o+i),t.arc(h*s+n,p*s+i,a,-Math.PI+l,l,!e)):t.moveTo(h*r+n,p*r+i),t.arc(n,i,r,l,u,!e),t.arc(d*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!e),0!==o&&t.arc(n,i,o,u,l,e)},GS);function GS(t){t=BS.call(this,t)||this;return t.type="sausage",t}function HS(t,e){var n=null==t?"":t+"";return e&&(V(e)?n=e.replace("{value}",n):D(e)&&(n=e(t))),n}u(YS,WS=ky),YS.prototype.render=function(t,e,n){this.group.removeAll();var i,o,r,a,s=t.get(["axisLine","lineStyle","color"]),l=(o=n,r=(i=t).get("center"),a=o.getWidth(),l=o.getHeight(),a=Math.min(a,l),{cx:H(r[0],o.getWidth()),cy:H(r[1],o.getHeight()),r:H(i.get("radius"),a/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},YS.prototype.dispose=function(){},YS.prototype._renderMain=function(t,e,n,i,o){for(var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?VS:lh,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),u=[s,l],f=(ws(u,!a),(l=u[1])-(s=u[0])),g=s,y=[],m=0;c&&m<i.length;m++){var v=new h({shape:{startAngle:g,endAngle:l=s+f*Math.min(Math.max(i[m][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-d,r:o.r},silent:!0});v.setStyle({fill:i[m][1]}),v.setStyle(p.getLineStyle(["color","width"])),y.push(v),g=l}y.reverse(),R(y,function(t){return r.add(t)});function _(t){if(t<=0)return i[0][1];for(var e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]}this._renderTicks(t,e,n,_,o,s,l,a,d),this._renderTitleAndDetail(t,e,n,_,o),this._renderAnchor(t,o),this._renderPointer(t,e,n,_,o,s,l,a,d)},YS.prototype._renderTicks=function(t,z,E,e,n,i,o,B,r){for(var a,s,l,u,h,c,p,d=this.group,f=n.cx,g=n.cy,y=n.r,m=+t.get("min"),F=+t.get("max"),v=t.getModel("splitLine"),_=t.getModel("axisTick"),x=t.getModel("axisLabel"),w=t.get("splitNumber"),b=_.get("splitNumber"),S=H(v.get("length"),y),M=H(_.get("length"),y),T=i,C=(o-i)/w,I=C/b,D=v.getModel("lineStyle").getLineStyle(),k=_.getModel("lineStyle").getLineStyle(),A=v.get("distance"),P=0;P<=w;P++)if(O=Math.cos(T),R=Math.sin(T),v.get("show")&&(a=new Th({shape:{x1:O*(y-(p=A?A+r:r))+f,y1:R*(y-p)+g,x2:O*(y-S-p)+f,y2:R*(y-S-p)+g},style:D,silent:!0}),"auto"===D.stroke&&a.setStyle({stroke:e(P/w)}),d.add(a)),x.get("show")&&(p=x.get("distance")+A,a=HS(Mr(P/w*(F-m)+m),x.get("formatter")),s=e(P/w),l=O*(y-S-p)+f,u=R*(y-S-p)+g,c=0,"radial"===(h=x.get("rotate"))?(c=-T+2*Math.PI)>Math.PI/2&&(c+=Math.PI):"tangential"===h?c=-T-Math.PI/2:gt(h)&&(c=h*Math.PI/180),0===c?d.add(new sl({style:Wc(x,{text:a,x:l,y:u,verticalAlign:R<-.8?"top":.8<R?"bottom":"middle",align:O<-.4?"left":.4<O?"right":"center"},{inheritColor:s}),silent:!0})):d.add(new sl({style:Wc(x,{text:a,x:l,y:u,verticalAlign:"middle",align:"center"},{inheritColor:s}),silent:!0,originX:l,originY:u,rotation:c}))),_.get("show")&&P!==w){p=(p=_.get("distance"))?p+r:r;for(var L=0;L<=b;L++){var O=Math.cos(T),R=Math.sin(T),N=new Th({shape:{x1:O*(y-p)+f,y1:R*(y-p)+g,x2:O*(y-M-p)+f,y2:R*(y-M-p)+g},silent:!0,style:k});"auto"===k.stroke&&N.setStyle({stroke:e((P+L/b)/w)}),d.add(N),T+=I}T-=I}else T+=C},YS.prototype._renderPointer=function(s,t,e,u,l,a,n,h,c){var r=this.group,p=this._data,d=this._progressEls,f=[],g=s.get(["pointer","show"]),y=s.getModel("progress"),m=y.get("show"),v=s.getData(),_=v.mapDimension("value"),i=+s.get("min"),x=+s.get("max"),w=[i,x],b=[a,n];function S(t,e){var t=v.getItemModel(t).getModel("pointer"),n=H(t.get("width"),l.r),i=H(t.get("length"),l.r),o=s.get(["pointer","icon"]),r=t.get("offsetCenter"),a=H(r[0],l.r),r=H(r[1],l.r),t=t.get("keepAspect"),o=o?Om(o,a-n/2,r-i,n,i,null,t):new zS({shape:{angle:-Math.PI/2,width:n,r:i,x:a,y:r}});return o.rotation=-(e+Math.PI/2),o.x=l.cx,o.y=l.cy,o}function M(t,e){var n=y.get("roundCap")?VS:lh,i=y.get("overlap"),o=i?y.get("width"):c/v.count(),r=i?l.r-o:l.r-(t+1)*o,o=i?l.r:l.r-t*o,n=new n({shape:{startAngle:a,endAngle:e,cx:l.cx,cy:l.cy,clockwise:h,r0:r,r:o}});return i&&(n.z2=x-v.get(_,t)%x),n}(m||g)&&(v.diff(p).add(function(t){var e,n,i=v.get(_,t);g&&(ac(e=S(t,a),{rotation:-((isNaN(+i)?b[0]:Sr(i,w,b,!0))+Math.PI/2)},s),r.add(e),v.setItemGraphicEl(t,e)),m&&(e=M(t,a),n=y.get("clip"),ac(e,{shape:{endAngle:Sr(i,w,b,n)}},s),r.add(e),wl(s.seriesIndex,v.dataType,t,e),f[t]=e)}).update(function(t,e){var n,i,o=v.get(_,t);g&&((i=S(t,n=(n=p.getItemGraphicEl(e))?n.rotation:a)).rotation=n,rc(i,{rotation:-((isNaN(+o)?b[0]:Sr(o,w,b,!0))+Math.PI/2)},s),r.add(i),v.setItemGraphicEl(t,i)),m&&(i=M(t,(n=d[e])?n.shape.endAngle:a),e=y.get("clip"),rc(i,{shape:{endAngle:Sr(o,w,b,e)}},s),r.add(i),wl(s.seriesIndex,v.dataType,t,i),f[t]=i)}).execute(),v.each(function(t){var e,n,i,o,r=v.getItemModel(t),a=r.getModel("emphasis"),s=a.get("focus"),l=a.get("blurScope"),a=a.get("disabled");g&&(e=v.getItemGraphicEl(t),i=(n=v.getItemVisual(t,"style")).fill,e instanceof Zs?(o=e.style,e.useStyle(O({image:o.image,x:o.x,y:o.y,width:o.width,height:o.height},n))):(e.useStyle(n),"pointer"!==e.type&&e.setColor(i)),e.setStyle(r.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",u(Sr(v.get(_,t),w,[0,1],!0))),e.z2EmphasisLift=0,fu(e,r),cu(e,s,l,a)),m&&((o=f[t]).useStyle(v.getItemVisual(t,"style")),o.setStyle(r.getModel(["progress","itemStyle"]).getItemStyle()),o.z2EmphasisLift=0,fu(o,r),cu(o,s,l,a))}),this._progressEls=f)},YS.prototype._renderAnchor=function(t,e){var n,i,o,r,t=t.getModel("anchor");t.get("show")&&(n=t.get("size"),r=t.get("icon"),i=t.get("offsetCenter"),o=t.get("keepAspect"),(r=Om(r,e.cx-n/2+H(i[0],e.r),e.cy-n/2+H(i[1],e.r),n,n,null,o)).z2=t.get("showAbove")?1:0,r.setStyle(t.getModel("itemStyle").getItemStyle()),this.group.add(r))},YS.prototype._renderTitleAndDetail=function(c,t,e,p,d){var n=this,f=c.getData(),g=f.mapDimension("value"),y=+c.get("min"),m=+c.get("max"),v=new T,_=[],x=[],w=c.isAnimationEnabled(),b=c.get(["pointer","showAbove"]);f.diff(this._data).add(function(t){_[t]=new sl({silent:!0}),x[t]=new sl({silent:!0})}).update(function(t,e){_[t]=n._titleEls[e],x[t]=n._detailEls[e]}).execute(),f.each(function(t){var e,a,n,i,o,r=f.getItemModel(t),s=f.get(g,t),l=new T,u=p(Sr(s,[y,m],[0,1],!0)),h=r.getModel("title"),h=(h.get("show")&&(i=h.get("offsetCenter"),o=d.cx+H(i[0],d.r),i=d.cy+H(i[1],d.r),(e=_[t]).attr({z2:b?0:2,style:Wc(h,{x:o,y:i,text:f.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:u})}),l.add(e)),r.getModel("detail"));h.get("show")&&(o=h.get("offsetCenter"),i=d.cx+H(o[0],d.r),r=d.cy+H(o[1],d.r),o=H(h.get("width"),d.r),n=H(h.get("height"),d.r),u=c.get(["progress","show"])?f.getItemVisual(t,"style").fill:u,e=x[t],a=h.get("formatter"),e.attr({z2:b?0:2,style:Wc(h,{x:i,y:r,text:HS(s,a),width:isNaN(o)?null:o,height:isNaN(n)?null:n,align:"center",verticalAlign:"middle"},{inheritColor:u})}),i={normal:h},r=s,o=function(t){return HS(t,a)},(n=e)&&((n=qc(n)).prevValue=n.value,n.value=r,r=i.normal,n.valueAnimation=r.get("valueAnimation"),n.valueAnimation)&&(n.precision=r.get("precision"),n.defaultInterpolatedText=o,n.statesModels=i),w&&Kc(e,t,f,c,{getFormattedLabel:function(t,e,n,i,o,r){return HS(r?r.interpolatedValue:s,a)}}),l.add(e)),v.add(l)}),this.group.add(v),this._titleEls=_,this._detailEls=x},YS.type="gauge";var WS,XS=YS;function YS(){var t=null!==WS&&WS.apply(this,arguments)||this;return t.type=YS.type,t}u(jS,US=yy),jS.prototype.getInitialData=function(t,e){return aS(this,["value"])},jS.type="series.gauge",jS.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}};var US,ZS=jS;function jS(){var t=null!==US&&US.apply(this,arguments)||this;return t.type=jS.type,t.visualStyleAccessPath="itemStyle",t}v1(function(t){t.registerChartView(XS),t.registerSeriesModel(ZS)});u(JS,qS=g),JS.type="grid",JS.dependencies=["xAxis","yAxis"],JS.layoutMode="box",JS.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var qS,KS=JS;function JS(){return null!==qS&&qS.apply(this,arguments)||this}u(tM,$S=g),tM.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",oa).models[0]},tM.type="cartesian2dAxis";var $S,QS=tM;function tM(){return null!==$S&&$S.apply(this,arguments)||this}ut(QS,f1);var Sm={show:!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:"#6E7079",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:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Dm=d({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Sm),Vh=d({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Sm),eM={category:Dm,value:Vh,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vh),log:E({logBase:10},Vh)},nM={value:1,category:1,time:1,log:1};function iM(r,a,s,l){R(nM,function(t,o){var e,n=d(d({},eM[o],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=pd(this),i=n?fd(t):{};d(t,e.getTheme().get(o+"Axis")),d(t,this.getDefaultOption()),t.type=oM(t),n&&dd(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=p_.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=a+"Axis."+o,i.defaultOption=n,i);function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a+"Axis."+o,t}r.registerComponentModel(n)}),r.registerSubTypeDefaulter(a+"Axis",oM)}function oM(t){return t.type||(t.data?"category":"value")}function rM(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}rM.prototype.getAxis=function(t){return this._axes[t]},rM.prototype.getAxes=function(){return B(this._dimList,function(t){return this._axes[t]},this)},rM.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),pt(this.getAxes(),function(t){return t.scale.type===e})},rM.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var aM=["x","y"];function sM(t){return"interval"===t.type||"time"===t.type}u(hM,lM=rM),hM.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;sM(o)&&sM(r)&&(o=o.getExtent(),r=r.getExtent(),i=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],n=r[1]-r[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-o[0]*t,o=i[1]-r[0]*e,i=this._transform=[t,0,0,e,n,o],this._invTransform=We([],i))},hM.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},hM.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},hM.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},hM.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),n=this.getArea(),e=new Y(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},hM.prototype.dataToPoint=function(t,e,n){n=n||[];var i,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?oe(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(o,e)),n[1]=i.toGlobalCoord(i.dataToCoord(r,e)),n)},hM.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),i),Math.max(r[0],r[1])),e},hM.prototype.pointToData=function(t,e){var n,i,o=[];return this._invTransform?oe(o,t,this._invTransform):(n=this.getAxis("x"),i=this.getAxis("y"),o[0]=n.coordToData(n.toLocalCoord(t[0]),e),o[1]=i.coordToData(i.toLocalCoord(t[1]),e),o)},hM.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},hM.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,o=Math.min(n[0],n[1])-t,e=Math.max(e[0],e[1])-i+t,n=Math.max(n[0],n[1])-o+t;return new Y(i,o,e,n)};var lM,uM=hM;function hM(){var t=null!==lM&&lM.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=aM,t}u(dM,cM=rp),dM.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},dM.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},dM.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},dM.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var cM,pM=dM;function dM(t,e,n,i,o){t=cM.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=o||"bottom",t}function fM(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(r&&(h=r.toGlobalCoord(r.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),o.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===i?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),St(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-h:h,o.z2=1,o}function gM(t){return"cartesian2d"===t.get("coordinateSystem")}function yM(i){var o={xAxisModel:null,yAxisModel:null};return R(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,oa).models[0];o[e]=n}),o}var mM=Math.log;_M.prototype.getRect=function(){return this._rect},_M.prototype.update=function(t,e){var n=this._axesMap;function i(t){var d,e=N(t),n=e.length;if(n){for(var i=[],o=n-1;0<=o;o--){var r=t[+e[o]],a=r.model,s=r.scale;g_(s)&&a.get("alignTicks")&&null==a.get("interval")?i.push(r):(a1(s,a),g_(s)&&(d=r))}i.length&&(d||a1((d=i.pop()).scale,d.model),R(i,function(t){var e=t.scale,t=t.model,n=d.scale,i=D_.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,n=i.getInterval.call(n),s=(t=r1(e,t)).extent,l=t.fixMin,t=t.fixMax,u=("log"===e.type&&(u=mM(e.base),s=[mM(s[0])/u,mM(s[1])/u]),e.setExtent(s[0],s[1]),e.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:t}),i.getExtent.call(e)),h=(l&&(s[0]=u[0]),t&&(s[1]=u[1]),i.getInterval.call(e)),c=s[0],p=s[1];if(l&&t)h=(p-c)/a;else if(l)for(p=s[0]+h*a;p<s[1]&&isFinite(p)&&isFinite(s[1]);)h=m_(h),p=s[0]+h*a;else if(t)for(c=s[1]-h*a;c>s[0]&&isFinite(c)&&isFinite(s[0]);)h=m_(h),c=s[1]-h*a;else{u=(h=a<e.getTicks().length-1?m_(h):h)*a;(c=Mr((p=Math.ceil(s[1]/h)*h)-u))<0&&0<=s[0]?(c=0,p=Mr(u)):0<p&&s[1]<=0&&(p=0,c=-Mr(u))}l=(o[0].value-r[0].value)/n,t=(o[a].value-r[a].value)/n,i.setExtent.call(e,c+h*l,p+h*t),i.setInterval.call(e,h),(l||t)&&i.setNiceExtent.call(e,c+h,p-h)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};R(n.x,function(t){wM(n,"y",t,o)}),R(n.y,function(t){wM(n,"x",t,o)}),this.resize(this.model,e)},_M.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),a=cd(i,{width:e.getWidth(),height:e.getHeight()}),o=(this._rect=a,this._axesList);function r(){R(o,function(t){var e,n,i=t.isHorizontal(),o=i?[0,a.width]:[0,a.height],r=t.inverse?1:0;t.setExtent(o[r],o[1-r]),o=t,e=i?a.x:a.y,r=o.getExtent(),n=r[0]+r[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return n-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return n-t+e}})}r(),n&&(R(o,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=h1(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i))}),r()),R(this._coordsList,function(t){t.calcAffineTransform()})},_M.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},_M.prototype.getAxes=function(){return this._axesList.slice()},_M.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];L(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},_M.prototype.getCartesians=function(){return this._coordsList.slice()},_M.prototype.convertToPixel=function(t,e,n){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},_M.prototype.convertFromPixel=function(t,e,n){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},_M.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",oa).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",oa).models[0],t=t.gridModel,a=this._coordsList;return i?I(a,e=i.coordinateSystem)<0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?n=this.getAxis("x",o.componentIndex):r?n=this.getAxis("y",r.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},_M.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},_M.prototype._initCartesian=function(r,t,e){var a=this,s=this,l={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},h={x:0,y:0};function n(o){return function(t,e){var n,i;xM(t,r)&&(n=t.get("position"),"x"===o?"top"!==n&&"bottom"!==n&&(n=l.bottom?"top":"bottom"):"left"!==n&&"right"!==n&&(n=l.left?"right":"left"),l[n]=!0,i="category"===(n=new pM(o,s1(t),[0,0],t.get("type"),n)).type,n.onBand=i&&t.get("boundaryGap"),n.inverse=t.get("inverse"),(t.axis=n).model=t,n.grid=s,n.index=e,s._axesList.push(n),u[o][e]=n,h[o]++)}}t.eachComponent("xAxis",n("x"),this),t.eachComponent("yAxis",n("y"),this),h.x&&h.y?R((this._axesMap=u).x,function(i,o){R(u.y,function(t,e){var e="x"+o+"y"+e,n=new uM(e);n.master=a,n.model=r,a._coordsMap[e]=n,a._coordsList.push(n),n.addAxis(i),n.addAxis(t)})}):(this._axesMap={},this._axesList=[])},_M.prototype._updateScale=function(t,i){function o(e,n){R(d1(e,n.dim),function(t){n.scale.unionExtentFromData(e,t)})}R(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var e,n;gM(t)&&(n=(e=yM(t)).xAxisModel,e=e.yAxisModel,xM(n,i))&&xM(e,i)&&(n=this.getCartesian(n.componentIndex,e.componentIndex),e=t.getData(),t=n.getAxis("x"),n=n.getAxis("y"),o(e,t),o(e,n))},this)},_M.prototype.getTooltipAxes=function(n){var i=[],o=[];return R(this.getCartesians(),function(t){var e=null!=n&&"auto"!==n?t.getAxis(n):t.getBaseAxis(),t=t.getOtherAxis(e);I(i,e)<0&&i.push(e),I(o,t)<0&&o.push(t)}),{baseAxes:i,otherAxes:o}},_M.create=function(i,o){var r=[];return i.eachComponent("grid",function(t,e){var n=new _M(t,i,o);n.name="grid_"+e,n.resize(t,o,!0),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e,n,i;gM(t)&&(e=(n=yM(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),r},_M.dimensions=aM;var vM=_M;function _M(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=aM,this._initCartesian(t,e,n),this.model=t}function xM(t,e){return t.getCoordSysModel()===e}function wM(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)bM(r[n])&&(o=r[n]);else for(var a in r)if(r.hasOwnProperty(a)&&bM(r[a])&&!i[s(r[a])]){o=r[a];break}o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function bM(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}var SM=Math.PI,MM=(TM.prototype.hasBuilder=function(t){return!!CM[t]},TM.prototype.add=function(t){CM[t](this.opt,this.axisModel,this.group,this._transformGroup)},TM.prototype.getGroup=function(){return this.group},TM.innerTextLayout=function(t,e,n){var i,e=kr(e-t),t=Ar(e)?(i=0<n?"top":"bottom","center"):Ar(e-SM)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<SM?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},TM.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},TM.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},TM);function TM(t,e){this.group=new T,this.opt=e,this.axisModel=t,E(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});t=new T({x:e.position[0],y:e.position[1],rotation:e.rotation});t.updateTransform(),this._transformGroup=t}var CM={axisLine:function(i,t,o,e){var r,a,s,l,u,h,c,n=t.get(["axisLine","show"]);(n="auto"===n&&i.handleAutoShown?i.handleAutoShown("axisLine"):n)&&(n=t.axis.getExtent(),e=e.transform,r=[n[0],0],a=[n[1],0],s=a[0]<r[0],e&&(oe(r,r,e),oe(a,a,e)),l=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),Sc((n=new Th({shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1})).shape,n.style.lineWidth),n.anid="line",o.add(n),null!=(u=t.get(["axisLine","symbol"])))&&(e=t.get(["axisLine","symbolSize"]),V(u)&&(u=[u,u]),(V(e)||gt(e))&&(e=[e,e]),n=Nm(t.get(["axisLine","symbolOffset"])||0,e),h=e[0],c=e[1],R([{rotate:i.rotation+Math.PI/2,offset:n[0],r:0},{rotate:i.rotation-Math.PI/2,offset:n[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],function(t,e){var n;"none"!==u[e]&&null!=u[e]&&(e=Om(u[e],-h/2,-c/2,h,c,l.stroke,!0),n=t.r+t.offset,e.attr({rotation:t.rotate,x:(t=s?a:r)[0]+n*Math.cos(i.rotation),y:t[1]-n*Math.sin(i.rotation),silent:!0,z2:11}),o.add(e))}))},axisTickLabel:function(t,e,n,i){var o,r,a,s,l,u=function(t,e,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(a&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),i=i.tickDirection*r.get("length"),s=AM(o.getTicksCoords(),e.transform,i,E(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(n,i,e,t),h=function(f,g,y,m){var v,_,x,w,b,S,M,T,C=y.axis,t=St(m.axisLabelShow,y.get(["axisLabel","show"]));if(t&&!C.scale.isBlank())return v=y.getModel("axisLabel"),_=v.get("margin"),x=C.getViewLabels(),t=(St(m.labelRotate,v.get("rotate"))||0)*SM/180,w=MM.innerTextLayout(m.rotation,t,m.labelDirection),b=y.getCategories&&y.getCategories(!0),S=[],M=MM.isLabelSilent(y),T=y.get("triggerEvent"),R(x,function(t,e){var n="ordinal"===C.scale.type?C.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,i=t.formattedLabel,o=t.rawLabel,r=v,a=(r=b&&b[n]&&L(a=b[n])&&a.textStyle?new hp(a.textStyle,v,y.ecModel):r).getTextColor()||y.get(["axisLine","lineStyle","color"]),s=C.dataToCoord(n),l=r.getShallow("align",!0)||w.textAlign,u=z(r.getShallow("alignMinLabel",!0),l),h=z(r.getShallow("alignMaxLabel",!0),l),c=r.getShallow("verticalAlign",!0)||r.getShallow("baseline",!0)||w.textVerticalAlign,p=z(r.getShallow("verticalAlignMinLabel",!0),c),d=z(r.getShallow("verticalAlignMaxLabel",!0),c),s=new sl({x:s,y:m.labelOffset+m.labelDirection*_,rotation:w.rotation,silent:M,z2:10+(t.level||0),style:Wc(r,{text:i,align:0===e?u:e===x.length-1?h:l,verticalAlign:0===e?p:e===x.length-1?d:c,fill:D(a)?a("category"===C.type?o:"value"===C.type?n+"":n,e):a})});s.anid="label_"+n,T&&((t=MM.makeAxisEventDataBase(y)).targetType="axisLabel",t.value=o,t.tickIndex=e,"category"===C.type&&(t.dataIndex=n),k(s).eventData=t),g.add(s),s.updateTransform(),S.push(s),f.add(s),s.decomposeTransform()}),S}(n,i,e,t),c=(r=h,u=u,p1((o=e).axis)||(d=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),u=u||[],y=(r=r||[])[0],f=r[1],a=r[r.length-1],r=r[r.length-2],s=u[0],g=u[1],l=u[u.length-1],u=u[u.length-2],!1===d?(IM(y),IM(s)):DM(y,f)&&(d?(IM(f),IM(g)):(IM(y),IM(s))),!1===o?(IM(a),IM(l)):DM(r,a)&&(o?(IM(r),IM(u)):(IM(a),IM(l)))),n),p=i,d=e,f=t.tickDirection,g=d.axis,y=d.getModel("minorTick");if(y.get("show")&&!g.scale.isBlank()){var m=g.getMinorTicksCoords();if(m.length)for(var g=y.getModel("lineStyle"),v=f*y.get("length"),_=E(g.getLineStyle(),E(d.getModel("axisTick").getLineStyle(),{stroke:d.get(["axisLine","lineStyle","color"])})),x=0;x<m.length;x++)for(var w=AM(m[x],p.transform,v,_,"minorticks_"+x),b=0;b<w.length;b++)c.add(w[b])}e.get(["axisLabel","hideOverlap"])&&fx(px(B(h,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var o,r,a,s,l,u,h,c,p=St(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,o=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,r=(h=e.axis.getExtent())[0]>h[1]?-1:1,r=["start"===c?h[0]-r*u:"end"===c?h[1]+r*u:(h[0]+h[1])/2,kM(c)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*SM/180),kM(c)?a=MM.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,i){var o,n=kr(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=Ar(n-SM/2)?(o=i?"bottom":"top","center"):Ar(n-1.5*SM)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*SM&&SM/2<n?i?"left":"right":i?"right":"left");return{rotation:n,textAlign:e,textVerticalAlign:o}}(t.rotation,c,u||0,h),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=o.getFont(),u=(c=e.get("nameTruncate",!0)||{}).ellipsis,h=St(t.nameTruncateMaxWidth,c.maxWidth,s),Rc({el:t=new sl({x:r[0],y:r[1],rotation:a.rotation,silent:MM.isLabelSilent(e),style:Wc(o,{text:p,font:l,overflow:"truncate",width:h,ellipsis:u,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||a.textAlign,verticalAlign:o.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=MM.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,k(t).eventData=c),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}};function IM(t){t&&(t.ignore=!0)}function DM(t,e){var n,i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o)return Ge(n=Ee([]),n,-t.rotation),i.applyTransform(Fe([],n,t.getLocalTransform())),o.applyTransform(Fe([],n,e.getLocalTransform())),i.intersect(o)}function kM(t){return"middle"===t||"center"===t}function AM(t,e,n,i,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(oe(a,a,e),oe(s,s,e)),new Th({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));Sc(u.shape,u.style.lineWidth),u.anid=o+"_"+t[l].tickValue,r.push(u)}return r}function PM(t,e){var h,c,o,p,d,f,r,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return h=n,e=e,o=(c=t).getComponent("tooltip"),p=c.getComponent("axisPointer"),d=p.get("link",!0)||[],f=[],R(e.getCoordinateSystems(),function(s){var l,u,t,e,n;function i(t,e,n){var i,o,r=n.model.getModel("axisPointer",p),a=r.get("show");a&&("auto"!==a||t||RM(r))&&(null==e&&(e=r.get("triggerTooltip")),a=(r=t?function(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={};R(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=_(a.get(t))}),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line");e=s.label||(s.label={});null==e.show&&(e.show=!1),"cross"===o&&(o=a.get(["label","show"]),e.show=null==o||o,r||(o=s.lineStyle=a.get("crossStyle"))&&E(e,o.textStyle));return t.model.getModel("axisPointer",new hp(s,n,i))}(n,u,p,c,t,e):r).get("snap"),t=r.get("triggerEmphasis"),i=NM(n.model),o=e||a||"category"===n.type,e=h.axesInfo[i]={key:i,axis:n,coordSys:s,axisPointerModel:r,triggerTooltip:e,triggerEmphasis:t,involveSeries:o,snap:a,useHandle:RM(r),seriesModels:[],linkGroup:null},l[i]=e,h.seriesInvolved=h.seriesInvolved||o,null!=(t=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(LM(r[i+"AxisId"],n.id)||LM(r[i+"AxisIndex"],n.componentIndex)||LM(r[i+"AxisName"],n.name))return o}}(d,n)))&&((a=f[t]||(f[t]={axesInfo:{}})).axesInfo[i]=e,a.mapper=d[t].mapper,e.linkGroup=a)}s.axisPointerEnabled&&(t=NM(s.model),l=h.coordSysAxesInfo[t]={},u=(h.coordSysMap[t]=s).model.getModel("tooltip",o),R(s.getAxes(),dt(i,!1,null)),s.getTooltipAxes)&&o&&u.get("show")&&(t="axis"===u.get("trigger"),e="cross"===u.get(["axisPointer","type"]),n=s.getTooltipAxes(u.get(["axisPointer","axis"])),(t||e)&&R(n.baseAxes,dt(i,!e||"cross",t)),e)&&R(n.otherAxes,dt(i,"cross",!1))}),n.seriesInvolved&&(r=n,t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get(["tooltip","trigger"],!0),e=n.get(["tooltip","show"],!0);i&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==n.get(["axisPointer","show"],!0)&&R(r.coordSysAxesInfo[NM(i.model)],function(t){var e=t.axis;i.getAxis(e.dim)===e&&(t.seriesModels.push(n),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=n.getData().count())})})),n}function LM(t,e){return"all"===t||F(t)&&0<=I(t,e)||t===e}function OM(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[NM(t)]}function RM(t){return!!t.get(["handle","show"])}function NM(t){return t.type+"||"+t.id}var zM,EM={},BM=(u(FM,zM=My),FM.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;this.axisPointerClass&&(o=OM(o=t))&&(l=o.axisPointerModel,r=o.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=r.parse(s)),l=RM(l),null==u&&(a.status=l?"show":"hide"),(u=r.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=o.axis.scale.isBlank()?"hide":"show"),zM.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},FM.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},FM.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},FM.prototype.dispose=function(t,e){this._disposeAxisPointer(e),zM.prototype.dispose.apply(this,arguments)},FM.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=FM.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=OM(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},FM.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},FM.registerAxisPointerClass=function(t,e){EM[t]=e},FM.getAxisPointerClass=function(t){return t&&EM[t]},FM.type="axis",FM);function FM(){var t=null!==zM&&zM.apply(this,arguments)||this;return t.type=FM.type,t}var VM=ta();var GM,HM=["axisLine","axisTickLabel","axisName"],WM=["splitArea","splitLine","minorSplitLine"],e=(u(XM,GM=BM),XM.prototype.render=function(i,t,e,n){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new T,this.group.add(this._axisGroup),i.get("show")&&(r=fM(o=i.getCoordSysModel(),i),r=new MM(i,O({handleAutoShown:function(t){for(var e=o.coordinateSystem.getCartesians(),n=0;n<e.length;n++)if(g_(e[n].getOtherAxis(i.axis).scale))return!0;return!1}},r)),R(HM,r.add,r),this._axisGroup.add(r.getGroup()),R(WM,function(t){i.get([t,"show"])&&UM[t](this,this._axisGroup,i,o)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||kc(a,this._axisGroup,i),GM.prototype.render.call(this,i,t,e,n))},XM.prototype.remove=function(){VM(this).splitAreaColors=null},XM.type="cartesianAxis",XM);function XM(){var t=null!==GM&&GM.apply(this,arguments)||this;return t.type=XM.type,t.axisPointerClass="CartesianAxisPointer",t}var YM,UM={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank())for(var n=n.getModel("splitLine"),r=n.getModel("lineStyle"),a=F(a=r.get("color"))?a:[a],s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=0,h=o.getTicksCoords({tickModel:n}),c=[],p=[],d=r.getLineStyle(),f=0;f<h.length;f++){var g=o.toGlobalCoord(h[f].coord),g=(l?(c[0]=g,c[1]=s.y,p[0]=g,p[1]=s.y+s.height):(c[0]=s.x,c[1]=g,p[0]=s.x+s.width,p[1]=g),u++%a.length),y=h[f].tickValue,y=new Th({anid:null!=y?"line_"+h[f].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:E({stroke:a[g]},d),silent:!0});Sc(y.shape,d.lineWidth),e.add(y)}},minorSplitLine:function(t,e,n,i){var o=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),r=i.coordinateSystem.getRect(),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=n.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=o.toGlobalCoord(s[c][p].coord),d=(a?(l[0]=d,l[1]=r.y,u[0]=d,u[1]=r.y+r.height):(l[0]=r.x,l[1]=d,u[0]=r.x+r.width,u[1]=d),new Th({anid:"minor_line_"+s[c][p].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}));Sc(d.shape,h.lineWidth),e.add(d)}},splitArea:function(t,e,n,i){var o=e,e=i,r=(i=n).axis;if(!r.scale.isBlank()){var i=i.getModel("splitArea"),n=i.getModel("areaStyle"),a=n.get("color"),s=e.coordinateSystem.getRect(),l=r.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var u=a.length,h=VM(t).splitAreaColors,c=G(),p=0;if(h)for(var d=0;d<l.length;d++){var f=h.get(l[d].tickValue);if(null!=f){p=(f+(u-1)*d)%u;break}}for(var g=r.toGlobalCoord(l[0].coord),y=n.getAreaStyle(),a=F(a)?a:[a],d=1;d<l.length;d++){var m=r.toGlobalCoord(l[d].coord),v=void 0,_=void 0,x=void 0,w=void 0,g=r.isHorizontal()?(v=g,_=s.y,w=s.height,v+(x=m-v)):(v=s.x,_=g,x=s.width,_+(w=m-_)),m=l[d-1].tickValue;null!=m&&c.set(m,p),o.add(new nl({anid:null!=m?"area_"+m:null,shape:{x:v,y:_,width:x,height:w},style:E({fill:a[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%u}VM(t).splitAreaColors=c}}}},ZM=(u(jM,YM=e),jM.type="xAxis",jM);function jM(){var t=null!==YM&&YM.apply(this,arguments)||this;return t.type=jM.type,t}u(JM,qM=e),JM.type="yAxis";var qM,KM=JM;function JM(){var t=null!==qM&&qM.apply(this,arguments)||this;return t.type=ZM.type,t}u(t2,$M=My),t2.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new nl({shape:t.coordinateSystem.getRect(),style:E({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},t2.type="grid";var $M,QM=t2;function t2(){var t=null!==$M&&$M.apply(this,arguments)||this;return t.type="grid",t}var e2={offset:0};v1(function(t){t.registerComponentView(QM),t.registerComponentModel(KS),t.registerCoordinateSystem("cartesian2d",vM),iM(t,"x",QS,e2),iM(t,"y",QS,e2),t.registerComponentView(ZM),t.registerComponentView(KM),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}),v1(OS);u(o2,n2=g),o2.prototype.init=function(t,e,n){var i=fd(t);n2.prototype.init.apply(this,arguments),r2(t,i)},o2.prototype.mergeOption=function(t){n2.prototype.mergeOption.apply(this,arguments),r2(this.option,t)},o2.prototype.getCellSize=function(){return this.option.cellSize},o2.type="calendar",o2.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}};var n2,i2=o2;function o2(){var t=null!==n2&&n2.apply(this,arguments)||this;return t.type=o2.type,t}function r2(t,i){var e=t.cellSize,o=F(e)?e:t.cellSize=[e,e],e=(1===o.length&&(o[1]=o[0]),B([0,1],function(t){var e,n;return(null!=(e=i)[ld[n=t][0]]||null!=e[ld[n][1]]&&null!=e[ld[n][2]])&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t]}));dd(t,i,{type:"box",ignoreSize:e})}u(l2,a2=My),l2.prototype.render=function(t,e,n){var i=this.group,o=(i.removeAll(),t.coordinateSystem),r=o.getRangeInfo(),o=o.getOrient(),e=e.getLocaleModel();this._renderDayRect(t,r,i),this._renderLines(t,r,o,i),this._renderYearText(t,r,o,i),this._renderMonthText(t,e,o,i),this._renderWeekText(t,e,r,o,i)},l2.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,l=new nl({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},l2.prototype._renderLines=function(e,t,n,i){for(var o=this,r=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth,u=(this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[],t.start),h=0;u.time<=t.end.time;h++){p(u.formatedDate);var c=(u=0===h?r.getDateInfo(t.start.y+"-"+t.start.m):u).date;c.setMonth(c.getMonth()+1),u=r.getDateInfo(c)}function p(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);t=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(t[0]),o._blpoints.push(t[t.length-1]),s&&o._drawSplitline(t,a,i)}p(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},l2.prototype._getEdgesPoints=function(t,e,n){t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1;return t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},l2.prototype._drawSplitline=function(t,e,n){t=new xh({z2:20,shape:{points:t},style:e});n.add(t)},l2.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},l2.prototype._formatterLabel=function(t,e){var n,i;return V(t)&&t?(n=t,R(e,function(t,e){n=n.replace("{"+e+"}",i?be(t):t)}),n):D(t)?t(e):e.nameMap},l2.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],e=e[1],a=["center","bottom"],o=("bottom"===i?(e+=o,a=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,a=["center","top"]):e-=o,0);return{rotation:o="left"!==i&&"right"!==i?o:Math.PI/2,x:r,y:e,style:{align:a[0],verticalAlign:a[1]}}},l2.prototype._renderYearText=function(t,e,n,i){var o,r,a,s,l,u,t=t.getModel("yearLabel");t.get("show")&&(o=t.get("margin"),r=(r=t.get("position"))||("horizontal"!==n?"top":"left"),a=((u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+u[1][0])/2,l=(u[0][1]+u[1][1])/2,a={top:[a,u[s="horizontal"===n?0:1][1]],bottom:[a,u[1-s][1]],left:[u[1-s][0],l],right:[u[s][0],l]},u=e.start.y,+e.end.y>+e.start.y&&(u=u+"-"+e.end.y),s=t.get("formatter"),l={start:e.start.y,end:e.end.y,nameMap:u},e=this._formatterLabel(s,l),(u=new sl({z2:30,style:Wc(t,{text:e})})).attr(this._yearTextPositionControl(u,a[r],n,r,o)),i.add(u))},l2.prototype._monthTextPositionControl=function(t,e,n,i,o){var r="left",a="top",s=t[0],t=t[1];return"horizontal"===n?(t+=o,e&&(r="center"),"start"===i&&(a="bottom")):(s+=o,e&&(a="middle"),"start"===i&&(r="right")),{x:s,y:t,align:r,verticalAlign:a}},l2.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show"))for(var r=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),t=o.get("align"),l=[this._tlpoints,this._blpoints],u=(r&&!V(r)||(r=(e=r?bp(r)||e:e).get(["time","monthAbbr"])||[]),"start"===s?0:1),h="horizontal"===n?0:1,a="start"===s?-a:a,c="center"===t,p=0;p<l[u].length-1;p++){var d=l[u][p].slice(),f=this._firstDayOfMonth[p],g=(c&&(g=this._firstDayPoints[p],d[h]=(g[h]+l[0][p+1][h])/2),o.get("formatter")),y=r[+f.m-1],f={yyyy:f.y,yy:(f.y+"").slice(2),MM:f.m,M:+f.m,nameMap:y},y=this._formatterLabel(g,f),f=new sl({z2:30,style:O(Wc(o,{text:y}),this._monthTextPositionControl(d,c,n,s,a))});i.add(f)}},l2.prototype._weekTextPositionControl=function(t,e,n,i,o){var r="center",a="middle",s=t[0],t=t[1],n="start"===n;return"horizontal"===e?(s=s+i+(n?1:-1)*o[0]/2,r=n?"right":"left"):(t=t+i+(n?1:-1)*o[1]/2,a=n?"bottom":"top"),{x:s,y:t,align:r,verticalAlign:a}},l2.prototype._renderWeekText=function(t,e,n,i,o){var r=t.getModel("dayLabel");if(r.get("show")){var a=t.coordinateSystem,s=r.get("position"),l=r.get("nameMap"),u=r.get("margin"),h=a.getFirstDayOfWeek(),c=(l&&!V(l)||(l=(e=l?bp(l)||e:e).get(["time","dayOfWeekShort"])||B(e.get(["time","dayOfWeekAbbr"]),function(t){return t[0]})),a.getNextNDay(n.end.time,7-n.lweek).time),p=[a.getCellWidth(),a.getCellHeight()],u=H(u,Math.min(p[1],p[0]));"start"===s&&(c=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var d=0;d<7;d++){var f=a.getNextNDay(c,d),f=a.dataToRect([f.time],!1).center,g=Math.abs((d+h)%7),g=new sl({z2:30,style:O(Wc(r,{text:l[g]}),this._weekTextPositionControl(f,i,s,u,p))});o.add(g)}}},l2.type="calendar";var a2,s2=l2;function l2(){var t=null!==a2&&a2.apply(this,arguments)||this;return t.type=l2.type,t}h2.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},h2.prototype.getRangeInfo=function(){return this._rangeInfo},h2.prototype.getModel=function(){return this._model},h2.prototype.getRect=function(){return this._rect},h2.prototype.getCellWidth=function(){return this._sw},h2.prototype.getCellHeight=function(){return this._sh},h2.prototype.getOrient=function(){return this._orient},h2.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},h2.prototype.getDateInfo=function(t){var e=(t=Lr(t)).getFullYear(),n=t.getMonth()+1,n=n<10?"0"+n:""+n,i=t.getDate(),i=i<10?"0"+i:""+i,o=t.getDay();return{y:e+"",m:n,d:i,day:Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},h2.prototype.getNextNDay=function(t,e){return 0!==(e=e||0)&&(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},h2.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n],n=(R([0,1],function(t){l(o,t)&&(r[i[t]]=o[t]*a[t])}),{width:e.getWidth(),height:e.getHeight()}),s=this._rect=cd(r,n);function l(t,e){return null!=t[e]&&"auto"!==t[e]}R([0,1],function(t){l(o,t)||(o[t]=s[i[t]]/a[t])}),this._sw=o[0],this._sh=o[1]},h2.prototype.dataToPoint=function(t,e){F(t)&&(t=t[0]),null==e&&(e=!0);var t=this.getDateInfo(t),n=this._rangeInfo,i=t.formatedDate;return!e||t.time>=n.start.time&&t.time<n.end.time+864e5?(e=t.day,t=this._getRangeInfo([n.start.time,i]).nthWeek,"vertical"===this._orient?[this._rect.x+e*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+e*this._sh+this._sh/2]):[NaN,NaN]},h2.prototype.pointToData=function(t){t=this.pointToDate(t);return t&&t.time},h2.prototype.dataToRect=function(t,e){t=this.dataToPoint(t,e);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},h2.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,t=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(t,e-1,n):this._getDateByWeeksAndDay(e,t-1,n)},h2.prototype.convertToPixel=function(t,e,n){e=c2(e);return e===this?e.dataToPoint(n):null},h2.prototype.convertFromPixel=function(t,e,n){e=c2(e);return e===this?e.pointToData(n):null},h2.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},h2.prototype._initRangeOption=function(){var t,e,n,i,o=this._model.get("range");return F(o)&&1===o.length&&(o=o[0]),F(o)?n=o:(t=o.toString(),/^\d{4}$/.test(t)&&(n=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)&&((e=(i=this.getDateInfo(t)).date).setMonth(e.getMonth()+1),e=this.getNextNDay(e,-1),n=[i.formatedDate,e.formatedDate]),/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(n=[t,t])),n?((i=this._getRangeInfo(n)).start.time>i.end.time&&n.reverse(),n):o},h2.prototype._getRangeInfo=function(t){var e,n,i=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],o=(i[0].time>i[1].time&&(e=!0,i.reverse()),Math.floor(i[1].time/864e5)-Math.floor(i[0].time/864e5)+1),r=new Date(i[0].time),t=r.getDate(),a=i[1].date.getDate();if(r.setDate(t+o-1),r.getDate()!==a)for(var s=0<r.getTime()-i[1].time?1:-1;(n=r.getDate())!==a&&0<(r.getTime()-i[1].time)*s;)o-=s,r.setDate(n-s);var t=Math.floor((o+i[0].day+6)/7),l=e?1-t:t-1;return e&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:o,weeks:t,nthWeek:l,fweek:i[0].day,lweek:i[1].day}},h2.prototype._getDateByWeeksAndDay=function(t,e,n){n=this._getRangeInfo(n);return t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek?null:(t=7*(t-1)-n.fweek+e,(e=new Date(n.start.time)).setDate(+n.start.d+t),this.getDateInfo(e))},h2.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new h2(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},h2.dimensions=["time","value"];var u2=h2;function h2(t,e,n){this.type="calendar",this.dimensions=h2.dimensions,this.getDimensionsInfo=h2.getDimensionsInfo,this._model=t}function c2(t){var e=t.calendarModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}v1(function(t){t.registerComponentModel(i2),t.registerComponentView(s2),t.registerCoordinateSystem("calendar",u2)});u(f2,p2=g),f2.type="title",f2.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}};var p2,d2=f2;function f2(){var t=null!==p2&&p2.apply(this,arguments)||this;return t.type=f2.type,t.layoutMode={type:"box",ignoreSize:!0},t}u(m2,g2=My),m2.prototype.render=function(t,e,n){var i,o,r,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),c=z(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new sl({style:Wc(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new sl({style:Wc(o,{text:l,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!r&&!s,o.silent=!a&&!s,r&&u.on("click",function(){rd(r,"_"+t.get("target"))}),a&&o.on("click",function(){rd(a,"_"+t.get("subtarget"))}),k(u).eventData=k(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(o),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=cd(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),o.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new nl({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},m2.type="title";var g2,y2=m2;function m2(){var t=null!==g2&&g2.apply(this,arguments)||this;return t.type=m2.type,t}v1(function(t){t.registerComponentModel(d2),t.registerComponentView(y2)});u(x2,v2=g),x2.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},x2.prototype.mergeOption=function(t,e){v2.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},x2.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;F(n=!0===n?t.selector=["all","inverse"]:n)&&R(n,function(t,e){V(t)&&(t={type:t}),n[e]=d(t,(e=i,"all"===(t=t.type)?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},x2.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},x2.prototype._updateData=function(i){var o=[],r=[],t=(i.eachRawSeries(function(t){var e,n=t.name;r.push(n),t.legendVisualProvider&&(n=t.legendVisualProvider.getAllNames(),i.isSeriesFiltered(t)||(r=r.concat(n)),n.length)?o=o.concat(n):e=!0,e&&Kr(t)&&o.push(t.name)}),this._availableNames=r,this.get("data")||o),e=G(),t=B(t,function(t){return(V(t)||gt(t))&&(t={name:t}),e.get(t.name)?null:(e.set(t.name,!0),new hp(t,this,this.ecModel))},this);this._data=pt(t,function(t){return!!t})},x2.prototype.getData=function(){return this._data},x2.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&R(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},x2.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},x2.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},x2.prototype.allSelect=function(){var t=this._data,e=this.option.selected;R(t,function(t){e[t.get("name",!0)]=!0})},x2.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;R(t,function(t){t=t.get("name",!0);e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},x2.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=I(this._availableNames,t)},x2.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},x2.type="legend.plain",x2.dependencies=["series"],x2.defaultOption={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,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},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}};var v2,_2=x2;function x2(){var t=null!==v2&&v2.apply(this,arguments)||this;return t.type=x2.type,t.layoutMode={type:"box",ignoreSize:!0},t}var w2,b2=dt,S2=R,M2=T,T2=(u(C2,w2=My),C2.prototype.init=function(){this.group.add(this._contentGroup=new M2),this.group.add(this._selectorGroup=new M2),this._isFirstRender=!0},C2.prototype.getContentGroup=function(){return this._contentGroup},C2.prototype.getSelectorGroup=function(){return this._selectorGroup},C2.prototype.render=function(t,e,n){var i,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(o=t.get("align"),i=t.get("orient"),o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===i?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(o,t,e,n,a,i,s=!a||s&&"auto"!==s?s:"horizontal"===i?"end":"start"),r=cd(e=t.getBoxLayoutParams(),i={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),r=cd(E({width:(o=this.layoutInner(t,o,r,l,a,s)).width,height:o.height},e),i,n),this.group.x=r.x-o.x,this.group.y=r.y-o.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=o,s=$p((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new nl({shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[1]+s[3],height:l.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},C2.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},C2.prototype.renderInner=function(s,l,u,h,t,e,n){var c=this.getContentGroup(),p=G(),d=l.get("selectedMode"),f=[];u.eachRawSeries(function(t){t.get("legendHoverLink")||f.push(t.id)}),S2(l.getData(),function(o,r){var e,t,n,i,a=o.get("name");this.newlineDisabled||""!==a&&"\n"!==a?(e=u.getSeriesByName(a)[0],p.get(a)||(e?(i=(n=e.getData()).getVisual("legendLineStyle")||{},t=n.getVisual("legendIcon"),n=n.getVisual("style"),(i=this._createItem(e,a,r,o,l,s,i,n,t,d,h)).on("click",b2(I2,a,null,h,f)).on("mouseover",b2(k2,e.name,null,h,f)).on("mouseout",b2(A2,e.name,null,h,f)),u.ssr&&i.eachChild(function(t){t=k(t);t.seriesIndex=e.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),p.set(a,!0)):u.eachRawSeries(function(e){var t,n,i;p.get(a)||e.legendVisualProvider&&(n=e.legendVisualProvider).containName(a)&&(i=n.indexOfName(a),t=n.getItemVisual(i,"style"),n=n.getItemVisual(i,"legendIcon"),(i=wi(t.fill))&&0===i[3]&&(i[3]=.2,t=O(O({},t),{fill:Ii(i,"rgba")})),(i=this._createItem(e,a,r,o,l,s,{},t,n,d,h)).on("click",b2(I2,null,a,h,f)).on("mouseover",b2(k2,null,a,h,f)).on("mouseout",b2(A2,null,a,h,f)),u.ssr&&i.eachChild(function(t){t=k(t);t.seriesIndex=e.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),p.set(a,!0))},this))):((n=new M2).newline=!0,c.add(n))},this),t&&this._createSelector(t,l,h,e,n)},C2.prototype._createSelector=function(t,i,o,e,n){var r=this.getSelectorGroup();S2(t,function(t){var e=t.type,n=new sl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:"all"===e?"legendAllSelect":"legendInverseSelect"})}});r.add(n),Gc(n,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),hu(n)})},C2.prototype._createItem=function(t,e,n,i,o,r,a,s,l,u,h){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),f=o.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon"),a=function(t,e,n,i,o,r,a){function s(n,i){"auto"===n.lineWidth&&(n.lineWidth=0<i.lineWidth?2:0),S2(n,function(t,e){"inherit"===n[e]&&(n[e]=i[e])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke",l=l.getShallow("decal");u.decal=l&&"inherit"!==l?h0(l,a):i.decal,"inherit"===u.fill&&(u.fill=i[o]);"inherit"===u.stroke&&(u.stroke=i[t]);"inherit"===u.opacity&&(u.opacity=("fill"===o?i:n).opacity);s(u,i);l=e.getModel("lineStyle"),a=l.getLineStyle();s(a,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===a.stroke&&(a.stroke=i.fill),r||(o=e.get("inactiveBorderWidth"),n=u[t],u.lineWidth="auto"===o?0<i.lineWidth&&n?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),a.stroke=l.get("inactiveColor"),a.lineWidth=l.get("inactiveWidth"));return{itemStyle:u,lineStyle:a}}(l=m||l||"roundRect",i,a,s,c,f,h),s=new M2,c=i.getModel("textStyle"),m=(!D(t.getLegendIcon)||m&&"inherit"!==m?(h="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0,s.add(function(t){var e=t.icon||"roundRect",n=Om(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:p,itemHeight:d,icon:l,iconRotate:h,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),"left"===r?p+5:-5),h=r,t=o.get("formatter"),l=e,g=(V(t)&&t?l=t.replace("{name}",null!=e?e:""):D(t)&&(l=t(e)),f?c.getTextColor():i.get("inactiveColor")),a=(s.add(new sl({style:Wc(c,{text:l,x:m,y:d/2,fill:g,align:h,verticalAlign:"middle"},{inheritColor:g})})),new nl({shape:s.getBoundingRect(),style:{fill:"transparent"}})),y=i.getModel("tooltip");return y.get("show")&&Rc({el:a,componentModel:o,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild(function(t){t.silent=!0}),a.silent=!u,this.getContentGroup().add(s),hu(s),s.__legendDataIndex=n,s},C2.prototype.layoutInner=function(t,e,n,i,o,r){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(hd(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),o?(hd("horizontal",p,t.get("selectorItemGap",!0)),a=[-(o=p.getBoundingRect()).x,-o.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",u=0===t?"height":"width",h=0===t?"y":"x","end"===r?a[t]+=n[l]+s:d[t]+=o[l]+s,a[1-t]+=n[u]/2-o[u]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(r={x:0,y:0})[l]=n[l]+s+o[l],r[u]=Math.max(n[u],o[u]),r[h]=Math.min(0,o[h]+a[1-t]),r):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},C2.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},C2.type="legend.plain",C2);function C2(){var t=null!==w2&&w2.apply(this,arguments)||this;return t.type=C2.type,t.newlineDisabled=!1,t}function I2(t,e,n,i){A2(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),k2(t,e,n,i)}function D2(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;i<o&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function k2(t,e,n,i){D2(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function A2(t,e,n,i){D2(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function P2(t){var n=t.findComponents({mainType:"legend"});n&&n.length&&t.filterSeries(function(t){for(var e=0;e<n.length;e++)if(!n[e].isSelected(t.name))return!1;return!0})}function L2(t,e,n){var i,o={},r="toggleSelected"===t;return n.eachComponent("legend",function(n){r&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),R(n.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),o.hasOwnProperty(t)?o[t]=o[t]&&e:o[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function O2(t){t.registerComponentModel(_2),t.registerComponentView(T2),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,P2),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",dt(L2,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",dt(L2,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",dt(L2,"inverseSelect")),t.registerAction("legendSelect","legendselected",dt(L2,"select")),t.registerAction("legendUnSelect","legendunselected",dt(L2,"unSelect"))}u(z2,R2=_2),z2.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},z2.prototype.init=function(t,e,n){var i=fd(t);R2.prototype.init.call(this,t,e,n),E2(this,t,i)},z2.prototype.mergeOption=function(t,e){R2.prototype.mergeOption.call(this,t,e),E2(this,this.option,t)},z2.type="legend.scroll",z2.defaultOption=fp(_2.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});var R2,N2=z2;function z2(){var t=null!==R2&&R2.apply(this,arguments)||this;return t.type=z2.type,t}function E2(t,e,n){var i=[1,1];i[t.getOrient().index]=0,dd(e,n,{type:"box",ignoreSize:!!i})}var B2,F2=T,V2=["width","height"],G2=["x","y"],H2=(u(W2,B2=T2),W2.prototype.init=function(){B2.prototype.init.call(this),this.group.add(this._containerGroup=new F2),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new F2)},W2.prototype.resetInner=function(){B2.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},W2.prototype.renderInner=function(t,i,e,o,n,r,a){var s=this,l=(B2.prototype.renderInner.call(this,t,i,e,o,n,r,a),this._controllerGroup),t=i.get("pageIconSize",!0),u=F(t)?t:[t,t],e=(h("pagePrev",0),i.getModel("pageTextStyle"));function h(t,e){var n=t+"DataIndex",e=Lc(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:S(s._pageGo,s,n,i,o)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});e.name=t,l.add(e)}l.add(new sl({name:"pageText",style:{text:"xx/xx",fill:e.getTextColor(),font:e.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},W2.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getSelectorGroup(),s=t.getOrient().index,l=V2[s],u=G2[s],h=V2[1-s],c=G2[1-s],p=(o&&hd("horizontal",a,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),d=a.getBoundingRect(),f=[-d.x,-d.y],g=_(n),n=(o&&(g[l]=n[l]-d[l]-p),this._layoutContentAndController(t,i,g,s,l,h,c,u));return o&&("end"===r?f[s]+=n[l]+p:(t=d[l]+p,f[s]-=t,n[u]-=t),n[l]+=d[l]+p,f[1-s]+=n[c]+n[h]/2-d[h]/2,n[h]=Math.max(n[h],d[h]),n[c]=Math.min(n[c],d[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()),n},W2.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(hd(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),hd("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[o]>n[o],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=z(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+g),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[o]=(d?n:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[o],d?((e={x:0,y:0})[o]=Math.max(n[o]-p[o]-g,0),e[r]=f[r],u.setClipPath(new nl({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&rc(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},W2.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},W2.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup,t=(R(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),o.childOfName("pageText")),e=n.get("pageFormatter"),r=i.pageIndex,r=null!=r?r+1:0,a=i.pageCount;t&&e&&t.setStyle("text",V(e)?e.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):e({current:r,total:a}))},W2.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,o=V2[t],r=G2[t],e=this._findTargetItemIndex(e),a=n.children(),s=a[e],l=a.length,u=l?1:0,h={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,f=null;c<=l;++c)(!(f=g(a[c]))&&d.e>p.s+i||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=f;for(c=e-1,p=n,d=n,f=null;-1<=c;--c)(f=g(a[c]))&&y(d,f.s)||!(p.i<d.i)||(d=p,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=p.i),++h.pageCount,++h.pageIndex),p=f}return h;function g(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[r]+t[r],e:n+e[o],i:t.__legendDataIndex}}function y(t,e){return t.e>=e&&t.s<=e+i}},W2.prototype._findTargetItemIndex=function(n){var i,o;return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==o&&null!=t&&(o=e),t===n&&(i=e)}),null!=i?i:o):0},W2.type="legend.scroll",W2);function W2(){var t=null!==B2&&B2.apply(this,arguments)||this;return t.type=W2.type,t.newlineDisabled=!0,t._currentIndex=0,t}v1(function(t){v1(O2),t.registerComponentModel(N2),t.registerComponentView(H2),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})});var X2=ta(),Y2=_,U2=S;function Z2(){this._dragging=!1,this.animationThreshold=15}function j2(t,e,n,i){!function n(i,t){{var o;return L(i)&&L(t)?(o=!0,R(t,function(t,e){o=o&&n(i[e],t)}),!!o):i===t}}(X2(n).lastProp,i)&&(X2(n).lastProp=i,e?rc(n,i,t):(n.stopAnimation(),n.attr(i)))}function q2(t,e){t[e.get(["label","show"])?"show":"hide"]()}function K2(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function J2(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}function $2(t,e,n,i,o){var r=Q2(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=$p(n.get("padding")||0),s=n.getFont(),l=Zo(r,s),u=o.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),o.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),o=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,i)-c,o[1]=Math.min(o[1]+h,l)-h,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Wc(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function Q2(t,e,n,i,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:u1(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},R(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),V(o)?a=o.replace("{value}",a):D(o)&&(a=o(r))),a}function tT(t,e,n){var i=ze();return Ge(i,i,n.rotation),Ve(i,i,n.position),Cc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}Z2.prototype.render=function(t,e,n,i){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,o=this._handle,s&&"hide"!==s?(i&&i.show(),o&&o.show(),this.makeElOption(s={},a,t,e,n),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),i?(r=dt(j2,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new T,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),J2(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},Z2.prototype.remove=function(t){this.clear(t)},Z2.prototype.dispose=function(t){this.clear(t)},Z2.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===i||null==i?(n=this.animationThreshold,r&&o.getBandWidth()>n||!!e&&(r=OM(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},Z2.prototype.makeElOption=function(t,e,n,i,o){},Z2.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=X2(t).pointerEl=new Ec[o.type](Y2(e.pointer)),t.add(o))},Z2.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=X2(t).labelEl=new sl(Y2(e.label)),t.add(e),q2(e,i))},Z2.prototype.updatePointerEl=function(t,e,n){t=X2(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},Z2.prototype.updateLabelEl=function(t,e,n,i){t=X2(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),q2(t,i))},Z2.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,i=this._handle=Lc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ae(t.event)},onmousedown:U2(this._onHandleDragMove,this,0,0),drift:U2(this._onHandleDragMove,this),ondragend:U2(this._onHandleDragEnd,this)}),n.add(i)),J2(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),F(a=o.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,Vy(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},Z2.prototype._moveHandleToValue=function(t,e){j2(this._axisPointerModel,!e&&this._moveAnimation,this._handle,K2(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},Z2.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(K2(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(K2(t)),X2(n).lastProp=null,this._doDispatchAxisPointer())},Z2.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},Z2.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},Z2.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Gy(this,"_doDispatchAxisPointer")},Z2.prototype.doClear=function(){},Z2.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};u(iT,eT=Z2),iT.prototype.makeElOption=function(t,e,n,i,o){var r,a,s=n.axis,l=s.grid,u=i.get("type"),h=oT(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(r=(a=i).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=rT[u](s,c,h)).style=r,t.graphicKey=a.type,t.pointer=a),fM(l.model,n));u=e,s=t,c=p,h=n,r=i,a=o,l=MM.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),$2(s,h,r,a,{position:tT(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},iT.prototype.getHandleTransform=function(t,e,n){var i=fM(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),tT(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},iT.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=oT(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),(o[1]+o[0])/2),r=[e,e];r[n]=a[n];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var eT,nT=iT;function iT(){return null!==eT&&eT.apply(this,arguments)||this}function oT(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var rT={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=aT(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,o],i=aT(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function aT(t){return"x"===t.dim?0:1}u(uT,sT=g),uT.type="axisPointer",uT.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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 sT,lT=uT;function uT(){var t=null!==sT&&sT.apply(this,arguments)||this;return t.type=uT.type,t}var hT=ta(),cT=R;function pT(t,e,n){var i,c,p;function o(t,h){c.on(t,function(e){n=p;var n,i,o={dispatchAction:r,pendings:i={showTip:[],hideTip:[]}};function r(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=r,n.dispatchAction(t))}cT(hT(c).records,function(t){t&&h(t,e,o.dispatchAction)});var t,a=o.pendings,s=p,l=a.showTip.length,u=a.hideTip.length;l?t=a.showTip[l-1]:u&&(t=a.hideTip[u-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}b.node||(i=e.getZr(),hT(i).records||(hT(i).records={}),p=e,hT(c=i).initialized||(hT(c).initialized=!0,o("click",dt(fT,"click")),o("mousemove",dt(fT,"mousemove")),o("globalout",dT)),(hT(i).records[t]||(hT(i).records[t]={})).handler=n)}function dT(t,e,n){t.handler("leave",null,n)}function fT(t,e,n,i){e.handler(t,n,i)}function gT(t,e){b.node||(e=e.getZr(),(hT(e).records||{})[t]&&(hT(e).records[t]=null))}u(vT,yT=My),vT.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";pT("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},vT.prototype.remove=function(t,e){gT("axisPointer",e)},vT.prototype.dispose=function(t,e){gT("axisPointer",e)},vT.type="axisPointer";var yT,mT=vT;function vT(){var t=null!==yT&&yT.apply(this,arguments)||this;return t.type=vT.type,t}function _T(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Qr(n=e.getData(),t))||s<0||F(s)?{point:[]}:(i=n.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(r=[])[t]=n.get(e,s),r[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(n.getValues(B(o.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}var xT=ta();function wT(t,e,n){var r,a,i,s,l,o,u,h,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||S(n.dispatchAction,n),w=e.getComponent("axisPointer").coordSysAxesInfo;if(w)return CT(v)&&(v=_T({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),r=CT(v),a=_.axesInfo,i=w.axesInfo,s="leave"===m||CT(v),l={},e={list:[],map:{}},u={showPointer:dt(ST,o={}),showTooltip:dt(MT,e)},R(w.coordSysMap,function(t,e){var o=r||t.containPoint(v);R(w.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(a,t);s||!o||a&&!i||null!=(i=null!=(i=i&&i.value)||r?i:n.pointToData(v))&&bT(t,i,u,!1,l)})}),h={},R(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&R(i.axesInfo,function(t,e){var e=o[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,TT(t),TT(n)))),h[n.key]=e)})}),R(h,function(t,e){bT(i[e],t,u,!0,l)}),c=o,_=i,p=l.axesInfo=[],R(_,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),m=e,_=t,e=x,CT(t=v)||!m.list.length?e({type:"hideTip"}):(x=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:m.list})),e=i,_=(t=n).getZr(),x="axisPointerLastHighlights",d=xT(_)[x]||{},f=xT(_)[x]={},R(e,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&R(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],y=[],R(d,function(t,e){f[e]||y.push(t)}),R(f,function(t,e){d[e]||g.push(t)}),y.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),g.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:g}),l}function bT(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,u=a,h=[],c=Number.MAX_VALUE,p=-1,R(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.getData().indicesOfNearest(i[0],a,"category"===s.type?.5:null)).length)return;o=e.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=a-o,(n=Math.abs(i))<=c)&&((n<c||0<=i&&p<0)&&(c=n,p=i,u=o,h.length=0),R(r,function(t){h.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}),f=(r={payloadBatch:h,snapToValue:u}).snapToValue,(d=r.payloadBatch)[0]&&null==o.seriesIndex&&O(o,d[0]),!i&&t.snap&&g.containData(f)&&null!=f&&(e=f),n.showPointer(t,e,d),n.showTooltip(t,r,f)):n.showPointer(t,e))}function ST(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function MT(t,e,n,i){var o,r,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(o=NM(e=e.coordSys.model),(r=t.map[o])||(r=t.map[o]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(r)),r.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function TT(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function CT(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function IT(t){BM.registerAxisPointerClass("CartesianAxisPointer",nT),t.registerComponentModel(lT),t.registerComponentView(mT),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!F(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=PM(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},wT)}u(AT,DT=g),AT.type="tooltip",AT.dependencies=["axisPointer"],AT.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}};var DT,kT=AT;function AT(){var t=null!==DT&&DT.apply(this,arguments)||this;return t.type=AT.type,t}function PT(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function LT(t){if(b.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var OT=LT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function RT(t,e){if(!t)return e;e=Jp(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var NT=RT(LT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),zT=RT(OT,"transform"),ET="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(b.transform3dSupported?"will-change:transform;":"");function BT(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return b.transformSupported?(i="translate"+((i=b.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+zT+":"+i+";":[["top",0],["left",0],[OT,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function FT(i,t,e){var n,o,r=[],a=i.get("transitionDuration"),s=i.get("backgroundColor"),l=i.get("shadowBlur"),u=i.get("shadowColor"),h=i.get("shadowOffsetX"),c=i.get("shadowOffsetY"),p=i.getModel("textStyle"),d=uy(i,"html");return r.push("box-shadow:"+(h+"px "+c+"px "+l+"px "+u)),t&&a&&r.push((u="opacity"+(l=" "+(h=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,e||(l=" "+h+"s "+c,u+=b.transformSupported?","+zT+l:",left"+l+",top"+l),NT+":"+u)),s&&r.push("background-color:"+s),R(["width","color","radius"],function(t){var e="border-"+t,n=Jp(e),n=i.get(n);null!=n&&r.push(e+":"+n+("color"===t?"":"px"))}),r.push((o=[],t=(n=p).get("fontSize"),(a=n.getTextColor())&&o.push("color:"+a),o.push("font:"+n.getFont()),t&&o.push("line-height:"+Math.round(3*t/2)+"px"),a=n.get("textShadowColor"),t=n.get("textShadowBlur")||0,e=n.get("textShadowOffsetX")||0,h=n.get("textShadowOffsetY")||0,a&&t&&o.push("text-shadow:"+e+"px "+h+"px "+t+"px "+a),R(["decoration","align"],function(t){var e=n.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=d&&r.push("padding:"+$p(d).join("px ")+"px"),r.join(";")+";"}function VT(t,e,n,i,o){var r,a,s=e&&e.painter;n?(r=s&&s.getViewportRoot())&&(a=t,n=n,ve(me,r,i,o,!0))&&ve(a,n,me[0],me[1]):(t[0]=i,t[1]=o,(r=s&&s.getViewportRootOffset())&&(t[0]+=r.offsetLeft,t[1]+=r.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}HT.prototype.update=function(t){this._container||(i=this._api.getDom(),n="position",n=(e=(e=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?e[n]:e:null,"absolute"!==(e=i.style).position&&"absolute"!==n&&(e.position="relative"));var e,n,i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},HT.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=ET+FT(t,!this._firstShow,this._longHide)+BT(o[0],o[1],!0)+"border-color:"+od(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},HT.prototype.setContent=function(t,e,n,i,o){var r=this.el;if(null==t)r.innerHTML="";else{var a,s,l,u,h,c="";if(V(o)&&"item"===n.get("trigger")&&!PT(n)&&(n=n,i=i,c=V(o=o)&&"inside"!==o?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=od(i),o=o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",p=Math.max(1.5*Math.round(n),6),s="",l=zT+":",-1<I(["left","right"],o)?(s+="top:50%",l+="translateY(-50%) rotate("+(h="left"==o?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(h="top"==o?225:45)+"deg)"),h=h*Math.PI/180,h=(u=p+n)*Math.abs(Math.cos(h))+u*Math.abs(Math.sin(h)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+p+"px;height:"+p+"px;z-index:-1;",(s+=";"+o+":-"+Math.round(100*((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-u)/2))/100+"px")+";"+l+";","border-bottom:"+i,"border-right:"+i,"background-color:"+a+";"].join("")+'"></div>'):""),V(t))r.innerHTML=t+c;else if(t){r.innerHTML="",F(t)||(t=[t]);for(var p,d=0;d<t.length;d++)vt(t[d])&&t[d].parentNode!==r&&r.appendChild(t[d]);c&&r.childNodes.length&&((p=document.createElement("div")).innerHTML=c,r.appendChild(p))}}},HT.prototype.setEnterable=function(t){this._enterable=t},HT.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},HT.prototype.moveTo=function(t,e){var n,i=this._styleCoord;VT(i,this._zr,this._container,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,R(BT(i[0],i[1]),function(t){n[t[0]]=t[1]}))},HT.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},HT.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",b.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},HT.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(S(this.hide,this),t)):this.hide())},HT.prototype.isShow=function(){return this._show},HT.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null};var GT=HT;function HT(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,b.wxa)return null;var n=document.createElement("div"),i=(n.domBelongToZr=!0,this.el=n,this._zr=t.getZr()),e=e.appendTo,e=e&&(V(e)?document.querySelector(e):vt(e)?e:D(e)&&e(t.getDom())),o=(VT(this._styleCoord,i,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(n),this._api=t,this._container=e,this);n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,o._enterable||(e=i.handler,ke(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}XT.prototype.update=function(t){t=t.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},XT.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},XT.prototype.setContent=function(t,e,n,i,o){var r=this,a=(L(t)&&f(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new sl({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:uy(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),R(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=n.get(t)}),R(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},XT.prototype.setEnterable=function(t){this._enterable=t},XT.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=UT(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},XT.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(ZT(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=YT((i=o.style).borderWidth||0),i=UT(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},XT.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},XT.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},XT.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(S(this.hide,this),t)):this.hide())},XT.prototype.isShow=function(){return this._show},XT.prototype.dispose=function(){this._zr.remove(this.el)};var WT=XT;function XT(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),ZT(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function YT(t){return Math.max(0,t)}function UT(t){var e=YT(t.shadowBlur||0),n=YT(t.shadowOffsetX||0),t=YT(t.shadowOffsetY||0);return{left:YT(e-n),right:YT(e+n),top:YT(e-t),bottom:YT(e+t)}}function ZT(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var jT,qT=new nl({shape:{x:-1,y:-1,width:2,height:2}}),KT=(u(JT,jT=My),JT.prototype.init=function(t,e){var n;!b.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?b.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new WT(e):new GT(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},JT.prototype.render=function(t,e,n){!b.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Vy(this,"_updatePosition",50,"fixRate"):Gy(this,"_updatePosition"))},JT.prototype._initGlobalListener=function(){var i=this._tooltipModel.get("triggerOn");pT("itemTooltip",this._api,S(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},JT.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api,o=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==o&&"click"!==o&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},JT.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,s;i.from!==this.uid&&!b.node&&n.getDom()&&(o=QT(i,n),this._ticket="",s=i.dataByCoordSys,(r=function(n,t,e){var i=ia(n).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r,t=aa(t,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(t)if(e.getViewOfComponentModel(t).group.traverse(function(t){var e=k(t).tooltipConfig;if(e&&e.name===n.name)return r=t,!0}),r)return{componentMainType:o,componentIndex:t.componentIndex,el:r}}}(i,e,n))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:i.position,positionDefault:"bottom"},o)):i.tooltip&&null!=i.x&&null!=i.y?((a=qT).x=i.x,a.y=i.y,a.update(),k(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},o)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(r=_T(i,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:i.position,positionDefault:"bottom"},o)):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},o)))},JT.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(QT(i,n))},JT.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){a=e.getSeriesByIndex(o);if(a){e=$T([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}}},JT.prototype._tryShow=function(t,e){var n,i,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):r?"legend"!==k(r).ssrType&&(xm(r,function(t){return null!=k(t).dataIndex?(i=t,1):null!=k(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},JT.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=S(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},JT.prototype._showAxisTooltip=function(t,e){var u=this._ecModel,h=this._tooltipModel,n=[e.offsetX,e.offsetY],i=$T([e.tooltipOption],h),c=this._renderMode,p=[],d=ey("section",{blocks:[],noHeader:!0}),f=[],g=new hy,o=(R(t,function(t){R(t.dataByAxis,function(o){var r,a,s=u.getComponent(o.axisDim+"Axis",o.axisIndex),l=o.value;s&&null!=l&&(r=Q2(l,s.axis,u,o.seriesDataIndices,o.valueLabelOpt),a=ey("section",{header:r,noHeader:!Dt(r),sortBlocks:!0,blocks:[]}),d.blocks.push(a),R(o.seriesDataIndices,function(t){var e,n=u.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,i=n.getDataParams(t);i.dataIndex<0||(i.axisDim=o.axisDim,i.axisIndex=o.axisIndex,i.axisType=o.axisType,i.axisId=o.axisId,i.axisValue=u1(s.axis,{value:l}),i.axisValueLabel=r,i.marker=g.makeTooltipMarker("item",od(i.color),c),(e=(t=og(n.formatTooltip(t,!0,null))).frag)&&(n=$T([n],h).get("valueFormatter"),a.blocks.push(n?O({valueFormatter:n},e):e)),t.text&&f.push(t.text),p.push(i))}))})}),d.blocks.reverse(),f.reverse(),e.position),e=i.get("order"),e=ay(d,g,c,e,u.get("useUTC"),i.get("textStyle")),e=(e&&f.unshift(e),"richText"===c?"\n\n":"<br/>"),r=f.join(e);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(i,o,n[0],n[1],this._tooltipContent,p):this._showTooltipContent(i,r,p,Math.random()+"",n[0],n[1],o,null,g)})},JT.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,l=this._ecModel,e=k(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),f=this._renderMode,g=t.positionDefault,y=$T([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),o=new hy,i.marker=o.makeTooltipMarker("item",od(i.color),f),g=og(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=g.frag,a=r?ay(e?O({valueFormatter:e},r):r,o,f,h,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+c.name+"_"+p,this._showOrMove(y,function(){this._showTooltipContent(y,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},JT.prototype._showComponentItemTooltip=function(e,n,t){var i=k(n),o=i.tooltipConfig.option||{},r=[o=V(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&r.push(i),r.push({formatter:o.content}),e.positionDefault),a=$T(r,this._tooltipModel,i?{position:i}:null),s=a.get("content"),l=Math.random()+"",u=new hy;this._showOrMove(a,function(){var t=_(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},JT.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var u,h,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&((u=this._tooltipContent).setEnterable(n.get("enterable")),h=n.get("formatter"),a=a||n.get("position"),t=t,c=this._getNearestPoint([o,r],i,n.get("trigger"),n.get("borderColor")).color,h&&(t=V(h)?(p=n.ecModel.get("useUTC"),t=h,nd(t=(d=F(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Rp(d.axisValue,t,p):t,i,!0)):D(h)?(d=S(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,u,i,s))},this),this._ticket=e,h(i,e,d)):h),u.setContent(t,l,n,c,a),u.show(n,c),this._updatePosition(n,a,o,r,u,i,s))},JT.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||F(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:F(e)?void 0:{color:i||e.color||e.borderColor}},JT.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),F(e=D(e)?e([n,i],r,o.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=H(e[0],l),i=H(e[1],u)):L(e)?((r=e).width=h[0],r.height=h[1],n=(r=cd(r,{width:l,height:u})).x,i=r.y,p=c=null):i=(n=(s=V(e)&&a?function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,o,r,a){var n=n.getSize(),s=n[0],n=n[1];null!=r&&(i<t+s+r+2?t-=s+r:t+=r);null!=a&&(o<e+n+a?e-=n+a:e+=a);return[t,e]}(n,i,o,l,u,c?null:20,p?null:20))[0],s[1]),c&&(n-=tC(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=tC(p)?h[1]/2:"bottom"===p?h[1]:0),PT(t)&&(r=n,a=i,e=l,d=u,c=(c=o).getSize(),p=c[0],c=c[1],r=Math.min(r+p,e)-p,a=Math.min(a+c,d)-c,r=Math.max(r,0),a=Math.max(a,0),n=(s=[r,a])[0],i=s[1]),o.moveTo(n,i)},JT.prototype._updateContentNotChangedOnAxis=function(n,r){var t=this._lastDataByCoordSys,a=this._cbParamsList,s=!!t&&t.length===n.length;return s&&R(t,function(t,e){var t=t.dataByAxis||[],o=(n[e]||{}).dataByAxis||[];(s=s&&t.length===o.length)&&R(t,function(t,e){var e=o[e]||{},n=t.seriesDataIndices||[],i=e.seriesDataIndices||[];(s=s&&t.value===e.value&&t.axisType===e.axisType&&t.axisId===e.axisId&&n.length===i.length)&&R(n,function(t,e){e=i[e];s=s&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),a&&R(t.seriesDataIndices,function(t){var t=t.seriesIndex,e=r[t],t=a[t];e&&t&&t.data!==e.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},JT.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},JT.prototype.dispose=function(t,e){!b.node&&e.getDom()&&(Gy(this,"_updatePosition"),this._tooltipContent.dispose(),gT("itemTooltip",e))},JT.type="tooltip",JT);function JT(){var t=null!==jT&&jT.apply(this,arguments)||this;return t.type=JT.type,t}function $T(t,e,n){for(var i=e.ecModel,o=n?(o=new hp(n,i,i),new hp(e.option,o,i)):e,r=t.length-1;0<=r;r--){var a=t[r];(a=a&&(V(a=a instanceof hp?a.get("tooltip",!0):a)?{formatter:a}:a))&&(o=new hp(a,o,i))}return o}function QT(t,e){return t.dispatchAction||S(e.dispatchAction,e)}function tC(t){return"center"===t||"middle"===t}function eC(t,e){if(t)for(var n=F(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return 1}function nC(t){Wr(t,"label",["show"])}v1(function(t){v1(IT),t.registerComponentModel(kT),t.registerComponentView(KT),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Gt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Gt)});var iC,oC=ta(),rC=(u(aC,iC=g),aC.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},aC.prototype.isAnimationEnabled=function(){var t;return!b.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},aC.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},aC.prototype._mergeOption=function(t,i,e,o){var r=this.mainType;e||i.eachSeries(function(t){var e=t.get(this.mainType,!0),n=oC(t)[r];e&&e.data?(n?n._mergeOption(e,i,!0):(o&&nC(e),R(e.data,function(t){t instanceof Array?(nC(t[0]),nC(t[1])):nC(t)}),O(n=this.createMarkerModelFromSeries(e,this,i),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),n.__hostSeries=t),oC(t)[r]=n):oC(t)[r]=null},this)},aC.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),i=i.getName(t);return ey("section",{header:this.name,blocks:[ey("nameValue",{name:i,value:o,noName:!i,noValue:null==o})]})},aC.prototype.getData=function(){return this._data},aC.prototype.setData=function(t){this._data=t},aC.getMarkerModelFromSeries=function(t,e){return oC(t)[e]},aC.type="marker",aC.dependencies=["series","grid","polar","geo"],aC);function aC(){var t=null!==iC&&iC.apply(this,arguments)||this;return t.type=aC.type,t.createdBySelf=!1,t}ut(rC,sp.prototype);u(uC,sC=rC),uC.prototype.createMarkerModelFromSeries=function(t,e,n){return new uC(t,e,n)},uC.type="markPoint",uC.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var sC,lC=uC;function uC(){var t=null!==sC&&sC.apply(this,arguments)||this;return t.type=uC.type,t}function hC(t,e,n,i,o,r){var a=[],s=a_(e,i)?e.getCalculationInfo("stackResultDimension"):i,t=yC(e,s,t),t=e.indicesOfNearest(s,t)[0],o=(a[o]=e.get(n,t),a[r]=e.get(s,t),e.get(i,t)),n=Cr(e.get(i,t));return 0<=(n=Math.min(n,20))&&(a[r]=+a[r].toFixed(n)),[a,o]}var cC={min:dt(hC,"min"),max:dt(hC,"max"),average:dt(hC,"average"),median:dt(hC,"median")};function pC(t,e){if(e){var n,i=t.getData(),o=t.coordinateSystem,r=o&&o.dimensions;if(n=e,(isNaN(parseFloat(n.x))||isNaN(parseFloat(n.y)))&&!F(e.coord)&&F(r)&&(n=dC(e,i,o,t),(e=_(e)).type&&cC[e.type]&&n.baseAxis&&n.valueAxis?(o=I(r,n.baseAxis.dim),t=I(r,n.valueAxis.dim),n=cC[e.type](i,n.baseDataDim,n.valueDataDim,o,t),e.coord=n[0],e.value=n[1]):e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]),null!=e.coord&&F(r))for(var a=e.coord,s=0;s<2;s++)cC[a[s]]&&(a[s]=yC(i,i.mapDimension(r[s]),a[s]));else e.coord=[];return e}}function dC(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(function(t,e){t=t.getData().getDimensionInfo(e);return t&&t.coordDim}(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function fC(t,e){return!(t&&t.containData&&e.coord&&(n=e,isNaN(parseFloat(n.x)))&&isNaN(parseFloat(n.y)))||t.containData(e.coord);var n}function gC(t,o){return t?function(t,e,n,i){return mg(i<2?t.coord&&t.coord[i]:t.value,o[i])}:function(t,e,n,i){return mg(t.value,o[i])}}function yC(t,e,n){var i,o;return"average"===n?(o=i=0,t.each(e,function(t,e){isNaN(t)||(i+=t,o++)}),i/o):"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var mC,vC=ta(),ep=(u(_C,mC=My),_C.prototype.init=function(){this.markerGroupMap=G()},_C.prototype.render=function(t,n,i){var o=this,e=this.markerGroupMap;e.each(function(t){vC(t).keep=!1}),n.eachSeries(function(t){var e=rC.getMarkerModelFromSeries(t,o.type);e&&o.renderSeries(t,e,n,i)}),e.each(function(t){vC(t).keep||o.group.remove(t.group)})},_C.prototype.markKeep=function(t){vC(t).keep=!0},_C.prototype.toggleBlurSeries=function(t,e){var n=this;R(t,function(t){t=rC.getMarkerModelFromSeries(t,n.type);t&&t.getData().eachItemGraphicEl(function(t){t&&(e?tu:eu)(t)})})},_C.type="marker",_C);function _C(){var t=null!==mC&&mC.apply(this,arguments)||this;return t.type=_C.type,t}function xC(a,s,l){var u=s.coordinateSystem;a.each(function(t){var e,n,i,o=a.getItemModel(t),r=H(o.get("x"),l.getWidth()),o=H(o.get("y"),l.getHeight());isNaN(r)||isNaN(o)?s.getMarkerPosition?i=s.getMarkerPosition(a.getValues(a.dimensions,t)):u&&(e=a.get(u.dimensions[0],t),n=a.get(u.dimensions[1],t),i=u.dataToPoint([e,n])):i=[r,o],isNaN(r)||(i[0]=r),isNaN(o)||(i[1]=o),a.setItemLayout(t,i)})}u(SC,wC=ep),SC.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=rC.getMarkerModelFromSeries(t,"markPoint");e&&(xC(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},SC.prototype.renderSeries=function(t,u,e,n){var i=t.coordinateSystem,o=t.id,h=t.getData(),r=this.markerGroupMap,r=r.get(o)||r.set(o,new Jx),c=function(t,e,n){var i;i=t?B(t&&t.dimensions,function(t){return O(O({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new t_(i,n),n=B(n.get("data"),dt(pC,e));t&&(n=pt(n,dt(fC,t)));t=gC(!!t,i);return o.initData(n,null,t),o}(i,t,u);u.setData(c),xC(u.getData(),t,n),c.each(function(t){var e=c.getItemModel(t),n=e.getShallow("symbol"),i=e.getShallow("symbolSize"),o=e.getShallow("symbolRotate"),r=e.getShallow("symbolOffset"),a=e.getShallow("symbolKeepAspect"),s=((D(n)||D(i)||D(o)||D(r))&&(s=u.getRawValue(t),l=u.getDataParams(t),D(n)&&(n=n(s,l)),D(i)&&(i=i(s,l)),D(o)&&(o=o(s,l)),D(r))&&(r=r(s,l)),e.getModel("itemStyle").getItemStyle()),l=mm(h,"color");s.fill||(s.fill=l),c.setItemVisual(t,{symbol:n,symbolSize:i,symbolRotate:o,symbolOffset:r,symbolKeepAspect:a,style:s})}),r.updateData(c),this.group.add(r.group),c.eachItemGraphicEl(function(t){t.traverse(function(t){k(t).dataModel=u})}),this.markKeep(r),r.group.silent=u.get("silent")||t.get("silent")},SC.type="markPoint";var wC,bC=SC;function SC(){var t=null!==wC&&wC.apply(this,arguments)||this;return t.type=SC.type,t}v1(function(t){t.registerComponentModel(lC),t.registerComponentView(bC),t.registerPreprocessor(function(t){eC(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})});u(CC,MC=rC),CC.prototype.createMarkerModelFromSeries=function(t,e,n){return new CC(t,e,n)},CC.type="markLine",CC.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"};var MC,TC=CC;function CC(){var t=null!==MC&&MC.apply(this,arguments)||this;return t.type=CC.type,t}var IC,DC=Th.prototype,kC=Ph.prototype,AC=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function PC(){return null!==IC&&IC.apply(this,arguments)||this}function LC(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}u(PC,IC=AC);u(NC,OC=q),NC.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},NC.prototype.getDefaultShape=function(){return new AC},NC.prototype.buildPath=function(t,e){(LC(e)?DC:kC).buildPath.call(this,t,e)},NC.prototype.pointAt=function(t){return(LC(this.shape)?DC:kC).pointAt.call(this,t)},NC.prototype.tangentAt=function(t){var e=this.shape,e=LC(e)?[e.x2-e.x1,e.y2-e.y1]:kC.tangentAt.call(this,t);return $t(e,e)};var OC,RC=NC;function NC(t){t=OC.call(this,t)||this;return t.type="ec-line",t}var zC=["fromSymbol","toSymbol"];function EC(t){return"_"+t+"Type"}function BC(t,e,n){var i,o,r,a=e.getItemVisual(n,t);return a&&"none"!==a?(i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),r=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),a+(n=Rm(i))+Nm(r||0,n)+(o||"")+(e||"")):a}function FC(t,e,n){var i,o,r,a=e.getItemVisual(n,t);if(a&&"none"!==a)return r=e.getItemVisual(n,t+"Size"),i=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),o=Nm(o||0,n=Rm(r)),(r=Om(a,-n[0]/2+o[0],-n[1]/2+o[1],n[0],n[1],null,e)).__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,r.name=t,r}function VC(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;e=e[2];e?(t.cpx1=e[0],t.cpy1=e[1]):(t.cpx1=NaN,t.cpy1=NaN)}u(WC,GC=T),WC.prototype._createLine=function(n,i,t){var e,o=n.hostModel,r=n.getItemLayout(i),r=(r=r,VC((e=new RC({name:"line",subPixelOptimize:!0})).shape,r),e);r.shape.percent=0,ac(r,{shape:{percent:1}},o,i),this.add(r),R(zC,function(t){var e=FC(t,n,i);this.add(e),this[EC(t)]=BC(t,n,i)},this),this._updateCommonStl(n,i,t)},WC.prototype.updateData=function(i,o,t){var e=i.hostModel,n=this.childOfName("line"),r=i.getItemLayout(o),a={shape:{}};VC(a.shape,r),rc(n,a,e,o),R(zC,function(t){var e=BC(t,i,o),n=EC(t);this[n]!==e&&(this.remove(this.childOfName(t)),t=FC(t,i,o),this.add(t)),this[n]=e},this),this._updateCommonStl(i,o,t)},WC.prototype.getLinePath=function(){return this.childAt(0)},WC.prototype._updateCommonStl=function(n,t,e){var i=n.hostModel,r=this.childOfName("line"),o=e&&e.emphasisLineStyle,a=e&&e.blurLineStyle,s=e&&e.selectLineStyle,l=e&&e.labelStatesModels,u=e&&e.emphasisDisabled,h=e&&e.focus,c=e&&e.blurScope,p=(e&&!n.hasItemOption||(o=(f=(e=n.getItemModel(t)).getModel("emphasis")).getModel("lineStyle").getLineStyle(),a=e.getModel(["blur","lineStyle"]).getLineStyle(),s=e.getModel(["select","lineStyle"]).getLineStyle(),u=f.get("disabled"),h=f.get("focus"),c=f.get("blurScope"),l=Hc(e)),n.getItemVisual(t,"style")),d=p.stroke,f=(r.useStyle(p),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,R(zC,function(t){var e=this.childOfName(t);if(e){e.setColor(d),e.style.opacity=p.opacity;for(var n=0;n<kl.length;n++){var i=kl[n],o=r.getState(i);o&&(o=o.style||{},i=(i=e.ensureState(i)).style||(i.style={}),null!=o.stroke&&(i[e.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity)&&(i.opacity=o.opacity)}e.markRedraw()}},this),i.getRawValue(t)),e=(Gc(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,e){return i.getFormattedLabel(t,e,n.dataType)}},inheritColor:d||"#000",defaultOpacity:p.opacity,defaultText:(null==f?n.getName(t):isFinite(f)?Mr(f):f)+""}),this.getTextContent());e&&(o=l.normal,e.__align=e.style.align,e.__verticalAlign=e.style.verticalAlign,e.__position=o.get("position")||"middle",F(a=o.get("distance"))||(a=[a,a]),e.__labelDistance=a),this.setTextConfig({position:null,local:!0,inside:!1}),cu(this,h,c,u)},WC.prototype.highlight=function(){$l(this)},WC.prototype.downplay=function(){Ql(this)},WC.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},WC.prototype.setLinePoints=function(t){var e=this.childOfName("line");VC(e.shape,t),e.dirty()},WC.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var r=this.childOfName("line");if(this.__dirty||r.__dirty){var a=r.shape.percent,s=r.pointAt(0),l=r.pointAt(a),u=jt([],l,s);if($t(u,u),t&&(t.setPosition(s),v(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),v(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0;var h=void(n.originX=n.originY=0),c=void 0,t=n.__labelDistance,p=t[0]*i,d=t[1]*i,e=a/2,f=r.tangentAt(e),t=[f[1],-f[0]],g=r.pointAt(e),y=(0<t[1]&&(t[0]=-t[0],t[1]=-t[1]),f[0]<0?-1:1),m=("start"!==n.__position&&"end"!==n.__position&&(a=-Math.atan2(f[1],f[0]),l[0]<s[0]&&(a=Math.PI+a),n.rotation=a),void 0);switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":m=-d,c="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":m=d,c="top";break;default:m=0,c="middle"}switch(n.__position){case"end":n.x=u[0]*p+l[0],n.y=u[1]*d+l[1],h=.8<u[0]?"left":u[0]<-.8?"right":"center",c=.8<u[1]?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*p+s[0],n.y=-u[1]*d+s[1],h=.8<u[0]?"right":u[0]<-.8?"left":"center",c=.8<u[1]?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*y+s[0],n.y=s[1]+m,h=f[0]<0?"right":"left",n.originX=-p*y,n.originY=-m;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=g[0],n.y=g[1]+m,h="center",n.originY=-m;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*y+l[0],n.y=l[1]+m,h=0<=f[0]?"right":"left",n.originX=p*y,n.originY=-m}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function v(t,e){var n,i=t.__specifiedRotation;null==i?(n=r.tangentAt(e),t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))):t.attr("rotation",i)}};var GC,HC=WC;function WC(t,e,n){var i=GC.call(this)||this;return i._createLine(t,e,n),i}YC.prototype.updateData=function(n){var i=this,e=(this._progressiveEls=null,this.group),o=this._lineData,r=(this._lineData=n,o||e.removeAll(),UC(n));n.diff(o).add(function(t){i._doAdd(n,t,r)}).update(function(t,e){i._doUpdate(o,n,e,t,r)}).remove(function(t){e.remove(o.getItemGraphicEl(t))}).execute()},YC.prototype.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(t,e){t.updateLayout(n,e)},this)},YC.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=UC(t),this._lineData=null,this.group.removeAll()},YC.prototype.incrementalUpdate=function(t,e){function n(t){var e;t.isGroup||(e=t).animators&&0<e.animators.length||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i,o=t.start;o<t.end;o++)jC(e.getItemLayout(o))&&((i=new this._LineCtor(e,o,this._seriesScope)).traverse(n),this.group.add(i),e.setItemGraphicEl(o,i),this._progressiveEls.push(i))},YC.prototype.remove=function(){this.group.removeAll()},YC.prototype.eachRendered=function(t){zc(this._progressiveEls||this.group,t)},YC.prototype._doAdd=function(t,e,n){jC(t.getItemLayout(e))&&(n=new this._LineCtor(t,e,n),t.setItemGraphicEl(e,n),this.group.add(n))},YC.prototype._doUpdate=function(t,e,n,i,o){t=t.getItemGraphicEl(n);jC(e.getItemLayout(i))?(t?t.updateData(e,i,o):t=new this._LineCtor(e,i,o),e.setItemGraphicEl(i,t),this.group.add(t)):this.group.remove(t)};var XC=YC;function YC(t){this.group=new T,this._LineCtor=t||HC}function UC(t){var t=t.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Hc(t)}}function ZC(t){return isNaN(t[0])||isNaN(t[1])}function jC(t){return t&&!ZC(t[0])&&!ZC(t[1])}function qC(t,e,n,i){var o,r,a,s,l=t.getData();return(e=[pC(t,(n=F(i)?i:"min"===(o=i.type)||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis?(r=s=void 0,r=null!=i.yAxis||null!=i.xAxis?(s=e.getAxis(null!=i.yAxis?"y":"x"),St(i.yAxis,i.xAxis)):(s=(e=dC(i,l,e,t)).valueAxis,yC(l,s_(l,e.valueDataDim),o)),e=1-(l="x"===s.dim?0:1),s={coord:[]},(a=_(i)).type=null,a.coord=[],a.coord[e]=-1/0,s.coord[e]=1/0,0<=(e=n.get("precision"))&>(r)&&(r=+r.toFixed(Math.min(e,20))),a.coord[l]=s.coord[l]=r,[a,s,{type:o,valueIndex:i.valueIndex,value:r}]):[])[0]),pC(t,n[1]),O({},n[2])])[2].type=e[2].type||null,d(e[2],e[0]),d(e[2],e[1]),e}var KC=ta();function JC(t){return!isNaN(t)&&!isFinite(t)}function $C(t,e,n,i){var o=1-t,r=i.dimensions[t];return JC(e[o])&&JC(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function QC(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&($C(1,n,i,t)||$C(0,n,i,t)))return!0}return fC(t,e[0])&&fC(t,e[1])}function tI(t,e,n,i,o){var r,a,s=i.coordinateSystem,l=t.getItemModel(e),u=H(l.get("x"),o.getWidth()),l=H(l.get("y"),o.getHeight());isNaN(u)||isNaN(l)?(r=i.getMarkerPosition?i.getMarkerPosition(t.getValues(t.dimensions,e)):(a=s.dimensions,o=t.get(a[0],e),i=t.get(a[1],e),s.dataToPoint([o,i])),gw(s,"cartesian2d")&&(o=s.getAxis("x"),i=s.getAxis("y"),a=s.dimensions,JC(t.get(a[0],e))?r[0]=o.toGlobalCoord(o.getExtent()[n?0:1]):JC(t.get(a[1],e))&&(r[1]=i.toGlobalCoord(i.getExtent()[n?0:1]))),isNaN(u)||(r[0]=u),isNaN(l)||(r[1]=l)):r=[u,l],t.setItemLayout(e,r)}u(iI,eI=ep),iI.prototype.updateTransform=function(t,e,r){e.eachSeries(function(e){var n,i,o,t=rC.getMarkerModelFromSeries(e,"markLine");t&&(n=t.getData(),i=KC(t).from,o=KC(t).to,i.each(function(t){tI(i,t,!0,e,r),tI(o,t,!1,e,r)}),n.each(function(t){n.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(e.id).updateLayout())},this)},iI.prototype.renderSeries=function(r,e,t,a){var n=r.coordinateSystem,i=r.id,s=r.getData(),o=this.markerGroupMap,o=o.get(i)||o.set(i,new XC),i=(this.group.add(o.group),function(t,e,n){var i;i=t?B(t&&t.dimensions,function(t){return O(O({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new t_(i,n),r=new t_(i,n),a=new t_([],n),n=B(n.get("data"),dt(qC,e,t,n));t&&(n=pt(n,dt(QC,t)));t=gC(!!t,i);return o.initData(B(n,function(t){return t[0]}),null,t),r.initData(B(n,function(t){return t[1]}),null,t),a.initData(B(n,function(t){return t[2]})),a.hasItemOption=!0,{from:o,to:r,line:a}}(n,r,e)),l=i.from,u=i.to,h=i.line,c=(KC(e).from=l,KC(e).to=u,e.setData(h),e.get("symbol")),p=e.get("symbolSize"),d=e.get("symbolRotate"),f=e.get("symbolOffset");function g(t,e,n){var i=t.getItemModel(e),o=(tI(t,e,n,r,a),i.getModel("itemStyle").getItemStyle());null==o.fill&&(o.fill=mm(s,"color")),t.setItemVisual(e,{symbolKeepAspect:i.get("symbolKeepAspect"),symbolOffset:z(i.get("symbolOffset",!0),f[n?0:1]),symbolRotate:z(i.get("symbolRotate",!0),d[n?0:1]),symbolSize:z(i.get("symbolSize"),p[n?0:1]),symbol:z(i.get("symbol",!0),c[n?0:1]),style:o})}F(c)||(c=[c,c]),F(p)||(p=[p,p]),F(d)||(d=[d,d]),F(f)||(f=[f,f]),i.from.each(function(t){g(l,t,!0),g(u,t,!1)}),h.each(function(t){var e=h.getItemModel(t).getModel("lineStyle").getLineStyle();h.setItemLayout(t,[l.getItemLayout(t),u.getItemLayout(t)]),null==e.stroke&&(e.stroke=l.getItemVisual(t,"style").fill),h.setItemVisual(t,{fromSymbolKeepAspect:l.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:l.getItemVisual(t,"symbolOffset"),fromSymbolRotate:l.getItemVisual(t,"symbolRotate"),fromSymbolSize:l.getItemVisual(t,"symbolSize"),fromSymbol:l.getItemVisual(t,"symbol"),toSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:u.getItemVisual(t,"symbolOffset"),toSymbolRotate:u.getItemVisual(t,"symbolRotate"),toSymbolSize:u.getItemVisual(t,"symbolSize"),toSymbol:u.getItemVisual(t,"symbol"),style:e})}),o.updateData(h),i.line.eachItemGraphicEl(function(t){k(t).dataModel=e,t.traverse(function(t){k(t).dataModel=e})}),this.markKeep(o),o.group.silent=e.get("silent")||r.get("silent")},iI.type="markLine";var eI,nI=iI;function iI(){var t=null!==eI&&eI.apply(this,arguments)||this;return t.type=iI.type,t}v1(function(t){t.registerComponentModel(TC),t.registerComponentView(nI),t.registerPreprocessor(function(t){eC(t.series,"markLine")&&(t.markLine=t.markLine||{})})});u(rI,oI=g),rI.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},rI.prototype.mergeOption=function(t){oI.prototype.mergeOption.apply(this,arguments),this._initData()},rI.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t=e<=t?e-1:t)<0&&(t=0),this.option.currentIndex=t},rI.prototype.getCurrentIndex=function(){return this.option.currentIndex},rI.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},rI.prototype.setPlayState=function(t){this.option.autoPlay=!!t},rI.prototype.getPlayState=function(){return!!this.option.autoPlay},rI.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=("category"===t?(o=[],R(e,function(t,e){var n,i=qr(Yr(t),"");L(t)?(n=_(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,{category:"ordinal",time:"time",value:"number"}[t]||"number");(this._data=new t_([{name:"value",type:e}],this)).initData(o,r)},rI.prototype.getData=function(){return this._data},rI.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},rI.type="timeline",rI.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]};var oI,ga=rI;function rI(){var t=null!==oI&&oI.apply(this,arguments)||this;return t.type=rI.type,t.layoutMode="box",t}u(lI,aI=ga),lI.type="timeline.slider",lI.defaultOption=fp(ga.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]});var aI,sI=lI;function lI(){var t=null!==aI&&aI.apply(this,arguments)||this;return t.type=lI.type,t}ut(sI,sp.prototype);u(hI,uI=My),hI.type="timeline";var uI,Sm=hI;function hI(){var t=null!==uI&&uI.apply(this,arguments)||this;return t.type=hI.type,t}u(dI,cI=rp),dI.prototype.getLabelModel=function(){return this.model.getModel("label")},dI.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var cI,pI=dI;function dI(t,e,n,i){t=cI.call(this,t,e,n)||this;return t.type=i||"value",t}var fI,gI=Math.PI,yI=ta(),mI=(u(vI,fI=Sm),vI.prototype.init=function(t,e){this.api=e},vI.prototype.render=function(e,t,n){var i,o,r;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)&&(i=this._layout(e,n),o=this._createGroup("_mainGroup"),t=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e),e.formatTooltip=function(t){return ey("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,o,r,e)},this),this._renderAxisLabel(i,t,r,e),this._position(i,e)),this._doPlayStop(),this._updateTicksStatus()},vI.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},vI.prototype.dispose=function(){this._clearTimer()},vI.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(s=e,cd((l=t).getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()},l.get("padding"))),l=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2<e.getHeight()/2?"-":"+":s.x+s.width/2<e.getWidth()/2?"+":"-":V(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][r]:r,e={horizontal:"center",vertical:0<=l||"+"===l?"left":"right"},r={horizontal:0<=l||"+"===l?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:gI/2},h="vertical"===a?s.height:s.width,c=t.getModel("controlStyle"),p=c.get("show",!0),d=p?c.get("itemSize"):0,f=p?c.get("itemGap"):0,g=d+f,y=(t.get(["label","rotate"])||0)*gI/180,m=c.get("position",!0),v=p&&c.get("showPlayBtn",!0),_=p&&c.get("showPrevBtn",!0),p=p&&c.get("showNextBtn",!0),c=0,x=h,m=("left"===m||"bottom"===m?(v&&(n=[0,0],c+=g),_&&(i=[c,0],c+=g)):(v&&(n=[x-d,0],x-=g),_&&(i=[0,0],c+=g)),p&&(o=[x-d,0],x-=g),[c,x]);return t.get("inverse")&&m.reverse(),{viewRect:s,mainLength:h,orient:a,rotation:u[a],labelRotation:y,labelPosOpt:l,labelAlign:t.get(["label","align"])||e[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||r[a],playPosition:n,prevBtnPosition:i,nextBtnPosition:o,axisExtent:m,controlSize:d,controlGap:f}},vI.prototype._position=function(t,e){var n,i=this._mainGroup,o=this._labelGroup,r=t.viewRect,a=("vertical"===t.orient&&(Ve(u=ze(),u,[-(s=r.x),-(l=r.y+r.height)]),Ge(u,u,-gI/2),Ve(u,u,[s,l]),(r=r.clone()).applyTransform(u)),p(r)),s=p(i.getBoundingRect()),l=p(o.getBoundingRect()),u=[i.x,i.y],r=[o.x,o.y],h=(r[0]=u[0]=a[0][0],t.labelPosOpt);function c(t){t.originX=a[0][0]-t.x,t.originY=a[1][0]-t.y}function p(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function d(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}null==h||V(h)?(d(u,s,a,1,n="+"===h?0:1),d(r,l,a,1,1-n)):(d(u,s,a,1,n=0<=h?0:1),r[1]=u[1]+h),i.setPosition(u),o.setPosition(r),i.rotation=o.rotation=t.rotation,c(i),c(o)},vI.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),o=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new M_({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new B_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new D_}}(e,i),r=(o.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})},n.getDataExtent("value")),r=(o.setExtent(r[0],r[1]),o.calcNiceTicks(),new pI("value",o,t.axisExtent,i));return r.model=e,r},vI.prototype._createGroup=function(t){t=this[t]=new T;return this.group.add(t),t},vI.prototype._renderAxisLine=function(t,e,n,i){var o,n=n.getExtent();i.get(["lineStyle","show"])&&(o=new Th({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:O({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}),e.add(o),n=this._progressLine=new Th({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:E({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1}),e.add(n))},vI.prototype._renderAxisTick=function(t,a,s,l){var u=this,h=l.getData(),e=s.scale.getTicks();this._tickSymbols=[],R(e,function(t){var e=s.dataToCoord(t.value),n=h.getItemModel(t.value),i=n.getModel("itemStyle"),o=n.getModel(["emphasis","itemStyle"]),r=n.getModel(["progress","itemStyle"]),e={x:e,y:0,onclick:S(u._changeTimeline,u,t.value)},i=_I(n,i,a,e),e=(i.ensureState("emphasis").style=o.getItemStyle(),i.ensureState("progress").style=r.getItemStyle(),hu(i),k(i));n.get("tooltip")?(e.dataIndex=t.value,e.dataModel=l):e.dataIndex=e.dataModel=null,u._tickSymbols.push(i)})},vI.prototype._renderAxisLabel=function(a,s,l,t){var u,h=this;l.getLabelModel().get("show")&&(u=t.getData(),t=l.getViewLabels(),this._tickLabels=[],R(t,function(t){var e=t.tickValue,n=u.getItemModel(e),i=n.getModel("label"),o=n.getModel(["emphasis","label"]),n=n.getModel(["progress","label"]),r=l.dataToCoord(t.tickValue),r=new sl({x:r,y:0,rotation:a.labelRotation-a.rotation,onclick:S(h._changeTimeline,h,e),silent:!1,style:Wc(i,{text:t.formattedLabel,align:a.labelAlign,verticalAlign:a.labelBaseline})});r.ensureState("emphasis").style=Wc(o),r.ensureState("progress").style=Wc(n),s.add(r),hu(r),yI(r).dataIndex=e,h._tickLabels.push(r)}))},vI.prototype._renderControl=function(t,r,e,a){var s=t.controlSize,l=t.rotation,u=a.getModel("controlStyle").getItemStyle(),h=a.getModel(["emphasis","controlStyle"]).getItemStyle(),n=a.getPlayState(),i=a.get("inverse",!0);function o(t,e,n,i){var o;t&&(o=Jo(z(a.get(["controlStyle",e+"BtnSize"]),s),s),(e=function(t,e,n,i){var o=i.style,t=Lc(t.get(["controlStyle",e]),i||{},new Y(n[0],n[1],n[2],n[3]));o&&t.setStyle(o);return t}(a,e+"Icon",[0,-o/2,o,o],{x:t[0],y:t[1],originX:s/2,originY:0,rotation:i?-l:0,rectHover:!0,style:u,onclick:n})).ensureState("emphasis").style=h,r.add(e),hu(e))}o(t.nextBtnPosition,"next",S(this._changeTimeline,this,i?"-":"+")),o(t.prevBtnPosition,"prev",S(this._changeTimeline,this,i?"+":"-")),o(t.playPosition,n?"stop":"play",S(this._handlePlayClick,this,!n),!0)},vI.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),o=o.getItemModel(r).getModel("checkpointStyle"),a=this;this._currentPointer=_I(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=S(a._handlePointerDrag,a),t.ondragend=S(a._handlePointerDragend,a),xI(t,a._progressLine,r,n,i,!0)},onUpdate:function(t){xI(t,a._progressLine,r,n,i)}})},vI.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},vI.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},vI.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},vI.prototype._pointerChangeTimeline=function(t,e){var t=this._toAxisCoord(t)[0],n=Tr(this._axis.getExtent().slice()),n=((t=t>n[1]?n[1]:t)<n[0]&&(t=n[0]),this._currentPointer.x=t,this._currentPointer.markRedraw(),this._progressLine),n=(n&&(n.shape.x2=t,n.dirty()),this._findNearestTick(t)),t=this.model;(e||n!==t.getCurrentIndex()&&t.get("realtime"))&&this._changeTimeline(n)},vI.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},vI.prototype._toAxisCoord=function(t){return Cc(t,this._mainGroup.getLocalTransform(),!0)},vI.prototype._findNearestTick=function(n){var i,t=this.model.getData(),o=1/0,r=this._axis;return t.each(["value"],function(t,e){t=r.dataToCoord(t),t=Math.abs(t-n);t<o&&(o=t,i=e)}),i},vI.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},vI.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},vI.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",yI(n[i]).dataIndex<=t)},vI.type="timeline.slider",vI);function vI(){var t=null!==fI&&fI.apply(this,arguments)||this;return t.type=vI.type,t}function _I(t,e,n,i,o,r){var a=e.get("color"),a=(o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=Om(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o)),e.getItemStyle(["color"])),n=(o.setStyle(a),i=d({rectHover:!0,z2:100},i,!0),Rm(t.get("symbolSize"))),r=(i.scaleX=n[0]/2,i.scaleY=n[1]/2,Nm(t.get("symbolOffset"),n)),e=(r&&(i.x=(i.x||0)+r[0],i.y=(i.y||0)+r[1]),t.get("symbolRotate"));return i.rotation=(e||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function xI(t,e,n,i,o,r){var a;t.dragging||(a=o.getModel("checkpointStyle"),i=i.dataToCoord(o.getData().get("value",n)),r||!a.get("animation",!0)?(t.attr({x:i,y:0}),e&&e.attr({shape:{x2:i}})):(o={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)},t.stopAnimation(null,!0),t.animateTo({x:i,y:0},o),e&&e.animateTo({shape:{x2:i}},o)))}function wI(t){t=t&&t.timeline;R(t=F(t)?t:t?[t]:[],function(t){var e,n;t&&(e=(t=t).type,(n={number:"value",time:"time"})[e]&&(t.axisType=n[e],delete t.type),bI(t),SI(t,"controlPosition")&&(SI(n=t.controlStyle||(t.controlStyle={}),"position")||(n.position=t.controlPosition),"none"!==n.position||SI(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition),R(t.data||[],function(t){L(t)&&!F(t)&&(!SI(t,"value")&&SI(t,"name")&&(t.value=t.name),bI(t))}))})}function bI(t){var e=t.itemStyle||(t.itemStyle={}),e=e.emphasis||(e.emphasis={}),t=t.label||t.label||{},n=t.normal||(t.normal={}),i={normal:1,emphasis:1};R(t,function(t,e){i[e]||SI(n,e)||(n[e]=t)}),e.label&&!SI(t,"emphasis")&&(t.emphasis=e.label,delete e.label)}function SI(t,e){return t.hasOwnProperty(e)}v1(function(t){var e;t.registerComponentModel(sI),t.registerComponentView(mI),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),(e=t).registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0))&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from})),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),E({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){e=e.getComponent("timeline");e&&null!=t.playState&&e.setPlayState(t.playState)}),t.registerPreprocessor(wI)});var MI=["x","y","radius","angle","single"],TI=["cartesian2d","polar","singleAxis"];function CI(t){return t+"Axis"}function II(t,e){var i,o=G(),n=[],r=G();for(t.eachComponent({mainType:"dataZoom",query:e},function(t){r.get(t.uid)||s(t)});i=!1,t.eachComponent("dataZoom",a),i;);function a(t){var n;!r.get(t.uid)&&(n=!1,t.eachTargetAxis(function(t,e){t=o.get(t);t&&t[e]&&(n=!0)}),n)&&(s(t),i=!0)}function s(t){r.set(t.uid,!0),n.push(t),t.eachTargetAxis(function(t,e){(o.get(t)||o.set(t,[]))[e]=!0})}return n}function DI(t){var o=t.ecModel,r={infoList:[],infoMap:G()};return t.eachTargetAxis(function(t,e){var n,i,t=o.getComponent(CI(t),e);t&&(e=t.getCoordSysModel())&&(n=e.uid,(i=r.infoMap.get(n))||(r.infoList.push(i={model:e,axisModels:[]}),r.infoMap.set(n,i)),i.axisModels.push(t))}),r}AI.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var kI=AI;function AI(){this.indexList=[],this.indexMap=[]}u(LI,PI=g),LI.prototype.init=function(t,e,n){var i=OI(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},LI.prototype.mergeOption=function(t){var e=OI(t);d(this.option,t,!0),d(this.settledOption,e,!0),this._doInit(e)},LI.prototype._doInit=function(t){var n=this.option,i=(this._setDefaultThrottle(t),this._updateRangeUse(t),this.settledOption);R([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=i[t[0]]=null)},this),this._resetTarget()},LI.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=G();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},LI.prototype._fillSpecifiedTargetAxis=function(i){var o=!1;return R(MI,function(t){var e,n=this.getReferringComponents(CI(t),ra);n.specified&&(o=!0,e=new kI,R(n.models,function(t){e.add(t.componentIndex)}),i.set(t,e))},this),o},LI.prototype._fillAutoTargetAxisByOrient=function(r,e){var t,i=this.ecModel,a=!0;function n(t,e){var n,i,o=t[0];o&&((n=new kI).add(o.componentIndex),r.set(e,n),a=!1,"x"!==e&&"y"!==e||(i=o.getReferringComponents("grid",oa).models[0])&&R(t,function(t){o.componentIndex!==t.componentIndex&&i===t.getReferringComponents("grid",oa).models[0]&&n.add(t.componentIndex)}))}a&&n(i.findComponents({mainType:(t="vertical"===e?"y":"x")+"Axis"}),t),a&&n(i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),a&&R(MI,function(t){var e,n;a&&(e=i.findComponents({mainType:CI(t),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((n=new kI).add(e[0].componentIndex),r.set(t,n),a=!1)},this)},LI.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e=e||t},this),"y"===e?"vertical":"horizontal"},LI.prototype._setDefaultThrottle=function(t){t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle&&(t=this.ecModel.option,this.option.throttle=t.animation&&0<t.animationDurationUpdate?100:20)},LI.prototype._updateRangeUse=function(i){var o=this._rangePropMode,r=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],function(t,e){var n=null!=i[t[0]],t=null!=i[t[1]];n&&!t?o[e]="percent":!n&&t?o[e]="value":r?o[e]=r[e]:n&&(o[e]="percent")})},LI.prototype.noTarget=function(){return this._noTarget},LI.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(t,e){null==n&&(n=this.ecModel.getComponent(CI(t),e))},this),n},LI.prototype.eachTargetAxis=function(n,i){this._targetAxisInfoMap.each(function(t,e){R(t.indexList,function(t){n.call(i,e,t)})})},LI.prototype.getAxisProxy=function(t,e){t=this.getAxisModel(t,e);if(t)return t.__dzAxisProxy},LI.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(CI(t),e)},LI.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(t){null==e[t[0]]&&null==e[t[1]]||(n[t[0]]=i[t[0]]=e[t[0]],n[t[1]]=i[t[1]]=e[t[1]])},this),this._updateRangeUse(e)},LI.prototype.setCalculatedRange=function(e){var n=this.option;R(["start","startValue","end","endValue"],function(t){n[t]=e[t]})},LI.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},LI.prototype.getValueRange=function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy())?t.getDataValueWindow():void 0},LI.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;e=e||s}return e},LI.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},LI.prototype.getOrient=function(){return this._orient},LI.type="dataZoom",LI.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],LI.defaultOption={z:4,filterMode:"filter",start:0,end:100};var PI,Dm=LI;function LI(){var t=null!==PI&&PI.apply(this,arguments)||this;return t.type=LI.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function OI(e){var n={};return R(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}u(zI,RI=Dm),zI.type="dataZoom.inside",zI.defaultOption=fp(Dm.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var RI,NI=zI;function zI(){var t=null!==RI&&RI.apply(this,arguments)||this;return t.type=zI.type,t}u(BI,EI=My),BI.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},BI.type="dataZoom";var EI,Vh=BI;function BI(){var t=null!==EI&&EI.apply(this,arguments)||this;return t.type=BI.type,t}function FI(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0],a=(null!=o&&(o=GI(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i&&(s=GI(s=Math.abs(e[1]-e[0]),[0,a]),o=r=GI(s,[o,r]),i=0),e[0]=GI(e[0],n),e[1]=GI(e[1],n),VI(e,i)),s=(e[i]+=t,o||0),t=n.slice();a.sign<0?t[0]+=s:t[1]-=s,e[i]=GI(e[i],t),n=VI(e,i),null!=o&&(n.sign!==a.sign||n.span<o)&&(e[1-i]=e[i]+a.sign*o),n=VI(e,i),null!=r&&n.span>r&&(e[1-i]=e[i]+n.sign*r)}function VI(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function GI(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var HI=ta();function WI(t,e){e&&(t.removeKey(e.model.uid),t=e.controller)&&t.dispose()}function XI(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function YI(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function UI(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,a){var e=HI(a),l=e.coordSysRecordMap||(e.coordSysRecordMap=G());l.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){R(DI(o).infoList,function(t){var r,e,n=t.model.uid,i=l.get(n)||l.set(n,(n=a,i=t.model,r={model:i,containsPoint:dt(YI,i),dispatchAction:dt(XI,n),dataZoomInfoMap:null,controller:null},e=r.controller=new eb(n.getZr()),R(["pan","zoom","scrollMove"],function(o){e.on(o,function(n){var i=[];r.dataZoomInfoMap.each(function(t){var e;n.isAvailableBehavior(t.model.option)&&(e=(e=(t.getRange||{})[o])&&e(t.dzReferCoordSysInfo,r.model.mainType,r.controller,n),!t.model.get("disabled",!0))&&e&&i.push({dataZoomId:t.model.id,start:e[0],end:e[1]})}),i.length&&r.dispatchAction(i)})}),r));(i.dataZoomInfoMap||(i.dataZoomInfoMap=G())).set(o.uid,{dzReferCoordSysInfo:t,model:o,getRange:null})})}),l.each(function(t){var e,n,i,o,r,a=t.controller,s=t.dataZoomInfoMap;(e=s&&null!=(n=s.keys()[0])?s.get(n):e)?(o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0,s.each(function(t){var t=t.model,e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");o["type_"+i]<o["type_"+e]&&(i=e),r=r&&t.get("preventDefaultMouseMove",!0)}),n={controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}},a.enable(n.controlType,n.opt),a.setPointerChecker(t.containsPoint),Vy(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):WI(l,t)})})}u(qI,ZI=Vh),qI.prototype.render=function(t,e,n){var i,o;ZI.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,i=t,o={pan:S(KI.pan,this),zoom:S(KI.zoom,this),scrollMove:S(KI.scrollMove,this)},HI(n).coordSysRecordMap.each(function(t){t=t.dataZoomInfoMap.get(i.uid);t&&(t.getRange=o)}))},qI.prototype.dispose=function(){this._clear(),ZI.prototype.dispose.apply(this,arguments)},qI.prototype._clear=function(){for(var t=this.api,e=this.dataZoomModel,n=HI(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r,a=i[o],a=n.get(a),s=a.dataZoomInfoMap;s&&(r=e.uid,s.get(r))&&(s.removeKey(r),s.keys().length||WI(n,a))}this.range=null},qI.type="dataZoom.inside";var ZI,jI=qI;function qI(){var t=null!==ZI&&ZI.apply(this,arguments)||this;return t.type="dataZoom.inside",t}var KI={zoom:function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return a=(0<(e=$I[e](null,[i.originX,i.originY],a,n,t)).signal?e.pixelStart+e.pixelLength-e.pixel:e.pixel-e.pixelStart)/e.pixelLength*(r[1]-r[0])+r[0],n=Math.max(1/i.scale,0),r[0]=(r[0]-a)*n+a,r[1]=(r[1]-a)*n+a,FI(0,r,[0,100],0,(t=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan,t.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0},pan:JI(function(t,e,n,i,o,r){i=$I[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n);return i.signal*(t[1]-t[0])*i.pixel/i.pixelLength}),scrollMove:JI(function(t,e,n,i,o,r){return $I[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n).signal*(t[1]-t[0])*r.scrollDelta})};function JI(s){return function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return FI(s(r,a,t,e,n,i),r,[0,100],"all"),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}var $I={grid:function(t,e,n,i,o){var n=n.axis,r={},o=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===n.dim?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=n.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=n.inverse?-1:1),r},polar:function(t,e,n,i,o){var r=n.axis,a={},o=o.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return t=t?o.pointToCoord(t):[0,0],e=o.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=s[1]-s[0],a.pixelStart=s[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){var n=n.axis,o=o.model.coordinateSystem.getRect(),r={};return t=t||[0,0],"horizontal"===n.orient?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=n.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=n.inverse?-1:1),r}},QI=R,tD=Tr,eD=(nD.prototype.hostedBy=function(t){return this._dataZoomModel===t},nD.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},nD.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},nD.prototype.getTargetSeriesModels=function(){var n=[];return this.ecModel.eachSeries(function(t){var e;e=(e=t).get("coordinateSystem"),0<=I(TI,e)&&(e=CI(this._dimName),e=t.getReferringComponents(e,oa).models[0])&&this._axisIndex===e.componentIndex&&n.push(t)},this),n},nD.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},nD.prototype.getMinMaxSpan=function(){return _(this._minMaxSpan)},nD.prototype.calculateDataWindow=function(i){var o,r=this._dataExtent,s=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[],h=[],c=(QI(["start","end"],function(t,e){var n=i[t],t=i[t+"Value"];"percent"===a[e]?t=s.parse(Sr(n=null==n?l[e]:n,l,r)):(o=!0,n=Sr(t=null==t?r[e]:s.parse(t),r,l)),h[e]=null==t||isNaN(t)?r[e]:t,u[e]=null==n||isNaN(n)?l[e]:n}),tD(h),tD(u),this._minMaxSpan);function t(t,e,n,i,o){var r=o?"Span":"ValueSpan";FI(0,t,n,"all",c["min"+r],c["max"+r]);for(var a=0;a<2;a++)e[a]=Sr(t[a],n,i,!0),o&&(e[a]=s.parse(e[a]))}return o?t(h,u,r,l,!1):t(u,h,l,r,!0),{valueWindow:h,percentWindow:u}},nD.prototype.reset=function(t){var e,i,o,n;t===this._dataZoomModel&&(n=this.getTargetSeriesModels(),this._dataExtent=(i=(e=this)._dimName,o=[1/0,-1/0],QI(n=n,function(t){var e,n;e=o,n=t.getData(),t=i,n&&R(d1(n,t),function(t){t=n.getApproximateExtent(t);t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])})}),[(e=i1((n=e.getAxisModel()).axis.scale,n,o).calculate()).min,e.max]),this._updateMinMaxSpan(),n=this.calculateDataWindow(t.settledOption),this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel())},nD.prototype.filterData=function(t,e){var o,n,r,c;t===this._dataZoomModel&&(o=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),c=this._valueWindow,"none"!==r)&&QI(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(o);h.length&&("weakFilter"===r?(l=i.getStore(),u=B(h,function(t){return i.getDimensionIndex(t)},i),i.filterSelf(function(t){for(var e,n,i,o=0;o<h.length;o++){var r=l.get(u[o],t),a=!isNaN(r),s=r<c[0],r=r>c[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n})):QI(h,function(t){var e;"empty"===r?n.setData(i=i.map(t,function(t){return(e=t)>=c[0]&&e<=c[1]?t:NaN;var e})):((e={})[t]=c,i.selectRange(e))}),QI(h,function(t){i.setApproximateExtent(c,t)}))})},nD.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;QI(["min","max"],function(t){var e=o.get(t+"Span"),n=o.get(t+"ValueSpan");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=Sr(r[0]+n,r,[0,100],!0):null!=e&&(n=Sr(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},nD.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=Dr(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+i[1].toFixed(t)),e.freeze())},nD);function nD(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var iD={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(CI(t),e);o(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var o=[],e=(t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new eD(t,e,i,r),o.push(n.__dzAxisProxy))}),G());return R(o,function(t){R(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,i){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).reset(n)}),n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).filterData(n,i)})}),t.eachComponent("dataZoom",function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))})}};var oD=!1;function rD(t){oD||(oD=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,iD),t.registerAction("dataZoom",function(e,t){R(II(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function aD(t){rD(t),t.registerComponentModel(NI),t.registerComponentView(jI),UI(t)}u(uD,sD=Dm),uD.type="dataZoom.slider",uD.layoutMode="box",uD.defaultOption=fp(Dm.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}});var sD,lD=uD;function uD(){var t=null!==sD&&sD.apply(this,arguments)||this;return t.type=uD.type,t}var hD,cD=nl,pD="horizontal",dD="vertical",fD=["line","bar","candlestick","scatter"],gD={easing:"cubicOut",duration:100,delay:0},yD=(u(mD,hD=Vh),mD.prototype.init=function(t,e){this.api=e,this._onBrush=S(this._onBrush,this),this._onBrushEnd=S(this._onBrushEnd,this)},mD.prototype.render=function(t,e,n,i){hD.prototype.render.apply(this,arguments),Vy(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView())},mD.prototype.dispose=function(){this._clear(),hD.prototype.dispose.apply(this,arguments)},mD.prototype._clear=function(){Gy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},mD.prototype._buildView=function(){var t=this.group,e=(t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval(),this._displayables.sliderGroup=new T);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},mD.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),e={width:e.getWidth(),height:e.getHeight()},o=this._orient===pD?{right:e.width-i.x-i.width,top:e.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},r=fd(t.option),n=(R(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=o[t])}),cd(r,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===dD&&this._size.reverse()},mD.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),i=i&&i.get("inverse"),o=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse,n=(o.attr(n!==pD||i?n===pD&&i?{scaleY:r?1:-1,scaleX:-1}:n!==dD||i?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1}),t.getBoundingRect([o]));t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},mD.prototype._getViewExtent=function(){return[0,this._size[0]]},mD.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect"),t=(n.add(new cD({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new cD({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:S(this._onClickPanel,this)})),e=this.api.getZr();i?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},mD.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),r=i.getShadowDim&&i.getShadowDim(),r=r&&o.getDimensionInfo(r)?i.getShadowDim():t.otherDim;if(null!=r)for(var a,s,l,u,h,c,p,d,f,g,y=this._shadowPolygonPts,m=this._shadowPolylinePts,v=(o===this._shadowData&&r===this._shadowDim&&e[0]===n[0]&&e[1]===n[1]||(i=.3*((a=o.getDataExtent(r))[1]-a[0]),a=[a[0]-i,a[1]+i],s=[0,e[1]],t=[0,e[0]],l=[[e[0],0],[0,0]],u=[],h=t[1]/(o.count()-1),c=0,p=Math.round(o.count()/e[0]),o.each([r],function(t,e){var n;0<p&&e%p?c+=h:(t=(n=null==t||isNaN(t)||""===t)?0:Sr(t,a,s,!0),n&&!d&&e?(l.push([l[l.length-1][0],0]),u.push([u[u.length-1][0],0])):!n&&d&&(l.push([c,0]),u.push([c,0])),l.push([c,t]),u.push([c,t]),c+=h,d=n)}),y=this._shadowPolygonPts=l,m=this._shadowPolylinePts=u),this._shadowData=o,this._shadowDim=r,this._shadowSize=[e[0],e[1]],this.dataZoomModel),_=0;_<3;_++){f=1===_,x=g=void 0,f=v.getModel(f?"selectedDataBackground":"dataBackground"),g=new T,x=new yh({shape:{points:y},segmentIgnoreThreshold:1,style:f.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),f=new xh({shape:{points:m},segmentIgnoreThreshold:1,style:f.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),g.add(x),g.add(f);var x=g;this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}},mD.prototype._prepareDataShadowInfo=function(){var s,l,t=this.dataZoomModel,u=t.get("showDataShadow");if(!1!==u)return l=this.ecModel,t.eachTargetAxis(function(r,a){R(t.getAxisProxy(r,a).getTargetSeriesModels(),function(t){var e,n,i,o;s||!0!==u&&I(fD,t.get("type"))<0||(e=l.getComponent(CI(r),a).axis,o=t.coordinateSystem,null!=(n={x:"y",y:"x",radius:"angle",angle:"radius"}[r])&&o.getOtherAxis&&(i=o.getOtherAxis(e).inverse),n=t.getData().mapDimension(n),s={thisAxis:e,series:t,thisDim:r,otherDim:n,otherAxisInverse:i})},this)},this),s},mD.prototype._renderHandle=function(){var t,e,o=this.group,n=this._displayables,r=n.handles=[null,null],a=n.handleLabels=[null,null],s=this._displayables.sliderGroup,i=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),p=n.filler=new cD({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}}),h=(s.add(p),s.add(new cD({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),R([0,1],function(t){var e=l.get("handleIcon"),e=Om(e=!Am[e]&&e.indexOf("path://")<0&&e.indexOf("image://")<0?"path://"+e:e,-1,0,2,2,null,!0),n=(e.attr({cursor:vD(this._orient),draggable:!0,drift:S(this._onDragMove,this,t),ondragend:S(this._onDragEnd,this),onmouseover:S(this._showDataInfo,this,!0),onmouseout:S(this._showDataInfo,this,!1),z2:5}),e.getBoundingRect()),i=l.get("handleSize"),i=(this._handleHeight=H(i,this._size[1]),this._handleWidth=n.width/n.height*this._handleHeight,e.setStyle(l.getModel("handleStyle").getItemStyle()),e.style.strokeNoScale=!0,e.rectHover=!0,e.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),hu(e),l.get("handleColor")),n=(null!=i&&(e.style.fill=i),s.add(r[t]=e),l.getModel("textStyle"));o.add(a[t]=new sl({silent:!0,invisible:!0,style:Wc(n,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:n.getTextColor(),font:n.getFont()}),z2:10}))},this),p);c&&(p=H(l.get("moveHandleSize"),i[1]),t=n.moveHandle=new nl({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:p}}),c=.8*p,(c=n.moveHandleIcon=Om(l.get("moveHandleIcon"),-c/2,-c/2,c,c,"#fff",!0)).silent=!0,c.y=i[1]+p/2-.5,t.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),e=Math.min(i[1]/2,Math.max(p,10)),(h=n.moveZone=new nl({invisible:!0,shape:{y:i[1]-e,height:p+e}})).on("mouseover",function(){u.enterEmphasis(t)}).on("mouseout",function(){u.leaveEmphasis(t)}),s.add(t),s.add(c),s.add(h)),h.attr({draggable:!0,cursor:vD(this._orient),drift:S(this._onDragMove,this,"all"),ondragstart:S(this._showDataInfo,this,!0),ondragend:S(this._onDragEnd,this),onmouseover:S(this._showDataInfo,this,!0),onmouseout:S(this._showDataInfo,this,!1)})},mD.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Sr(t[0],[0,100],e,!0),Sr(t[1],[0,100],e,!0)]},mD.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100],e=(FI(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?Sr(r.minSpan,a,o,!0):null,null!=r.maxSpan?Sr(r.maxSpan,a,o,!0):null),this._range),n=this._range=Tr([Sr(i[0],o,a,!0),Sr(i[1],o,a,!0)]);return!e||e[0]!==n[0]||e[1]!==n[1]},mD.prototype._updateView=function(t){for(var i=this._displayables,o=this._handleEnds,e=Tr(o.slice()),r=this._size,n=(R([0,1],function(t){var e=i.handles[t],n=this._handleHeight;e.attr({scaleX:n/2,scaleY:n/2,x:o[t]+(t?-1:1),y:r[1]/2-n/2})},this),i.filler.setShape({x:e[0],y:0,width:e[1]-e[0],height:r[1]}),{x:e[0],width:e[1]-e[0]}),a=(i.moveHandle&&(i.moveHandle.setShape(n),i.moveZone.setShape(n),i.moveZone.getBoundingRect(),i.moveHandleIcon)&&i.moveHandleIcon.attr("x",n.x+n.width/2),i.dataShadowSegs),s=[0,e[0],e[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new nl,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},mD.prototype._updateDataInfo=function(t){var e,n,i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""],l=(i.get("showDetail")&&(i=i.findRepresentativeAxisProxy())&&(e=i.getAxisModel().axis,n=this._range,t=t?i.calculateDataWindow({start:n[0],end:n[1]}).valueWindow:i.getDataValueWindow(),s=[this._formatLabel(t[0],e),this._formatLabel(t[1],e)]),Tr(this._handleEnds.slice()));function u(t){var e=Tc(o.handles[t].parent,this.group),n=Ic(0===t?"right":"left",e),i=this._handleWidth/2+5,i=Cc([l[t]+(0===t?-i:i),this._size[1]/2],e);r[t].setStyle({x:i[0],y:i[1],verticalAlign:a===pD?"middle":n,align:a===pD?n:"center",text:s[t]})}u.call(this,0),u.call(this,1)},mD.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),n=n.get("labelPrecision"),e=(null!=n&&"auto"!==n||(n=e.getPixelPrecision()),null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(n,20)));return D(i)?i(t,e):V(i)?i.replace("{value}",e):e},mD.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},mD.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Ae(i.event);i=Cc([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),e=this._updateInterval(t,i[0]),n=this.dataZoomModel.get("realtime");this._updateView(!n),e&&n&&this._dispatchZoomAction(!0)},mD.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},mD.prototype._onClickPanel=function(t){var e=this._size,t=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);t[0]<0||t[0]>e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction(!1))},mD.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new M(e,t),this._brushing=!0,this._brushStartTime=+new Date},mD.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(e=this._displayables.brushRect,this._brushing=!1,e)&&(e.attr("ignore",!0),e=e.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=Tr([Sr(e.x,n,i=[0,100],!0),Sr(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},mD.prototype._onBrush=function(t){this._brushing&&(Ae(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},mD.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect,i=(o||(o=n.brushRect=new cD({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1),this._brushStart),n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(i.x,i.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),o.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},mD.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?gD:null,start:e[0],end:e[1]})},mD.prototype._findCoordRect=function(){var t,e,n=DI(this.dataZoomModel).infoList;return t=(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},mD.type="dataZoom.slider",mD);function mD(){var t=null!==hD&&hD.apply(this,arguments)||this;return t.type=mD.type,t._displayables={},t}function vD(t){return"vertical"===t?"ns-resize":"ew-resize"}function _D(t){t.registerComponentModel(lD),t.registerComponentView(yD),rD(t)}v1(function(t){v1(aD),v1(_D)}),v1(Fx);var xD={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},wD=(bD.prototype.evaluate=function(t){var e=typeof t;return V(e)?this._condVal.test(t):!!gt(e)&&this._condVal.test(t+"")},bD);function bD(t){null==(this._condVal=V(t)?new RegExp(t):wt(t)?t:null)&&f("")}MD.prototype.evaluate=function(){return this.value};var SD=MD;function MD(){}CD.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var TD=CD;function CD(){}DD.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var ID=DD;function DD(){}AD.prototype.evaluate=function(){return!this.child.evaluate()};var kD=AD;function AD(){}LD.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var PD=LD;function LD(){}function OD(t,e){if(!0===t||!1===t)return(n=new SD).value=t,n;var n;if(ND(t)||f(""),t.and)return RD("and",t,e);if(t.or)return RD("or",t,e);if(t.not)return n=e,ND(r=(r=t).not)||f(""),(l=new kD).child=OD(r,n),l.child||f(""),l;for(var i=t,o=e,r=o.prepareGetValue(i),a=[],s=N(i),l=i.parser,u=l?_g(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||o.valueGetterAttrMap.get(p)||(c=Vt(xD,p)?xD[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Tg("eq"===t,e):Vt(xg,t)?new wg(t,e):null}(c,p)||"reg"===c&&new wD(p))||f(""),a.push(c))}return a.length||f(""),(l=new PD).valueGetterParam=r,l.valueParser=u,l.getValue=o.getValue,l.subCondList=a,l}function RD(t,e,n){e=e[t],F(e)||f(""),e.length||f(""),t=new("and"===t?TD:ID);return t.children=B(e,function(t){return OD(t,n)}),t.children.length||f(""),t}function ND(t){return L(t)&&!ht(t)}ED.prototype.evaluate=function(){return this._cond.evaluate()};var zD=ED;function ED(t,e){this._cond=OD(t,e)}var BD={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,o=(t=t.config,n={valueGetterAttrMap:G({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(Vt(t,"dimension")||f(""),i.getDimensionInfo(e));return t||f(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new zD(t,n)),r=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},FD={type:"echarts:sort",transform:function(t){for(var a=t.upstream,t=t.config,t=Hr(t),s=(t.length||f(""),[]),t=(R(t,function(t){var e=t.dimension,n=t.order,i=t.parser,t=t.incomparable,e=(null==e&&f(""),"asc"!==n&&"desc"!==n&&f(""),t&&"min"!==t&&"max"!==t&&f(""),"asc"!==n&&"desc"!==n&&f(""),a.getDimensionInfo(e)),o=(e||f(""),i?_g(i):null);i&&!o&&f(""),s.push({dimIdx:e.index,parser:o,comparator:new Sg(n,t)})}),a.sourceFormat),e=(t!==Td&&t!==Cd&&f(""),[]),n=0,i=a.count();n<i;n++)e.push(a.getRawDataItem(n));return e.sort(function(t,e){for(var n=0;n<s.length;n++){var i=s[n],o=a.retrieveValueFromItem(t,i.dimIdx),r=a.retrieveValueFromItem(e,i.dimIdx),i=(i.parser&&(o=i.parser(o),r=i.parser(r)),i.comparator.evaluate(o,r));if(0!==i)return i}return 0}),{data:e}}};v1(function(t){t.registerTransform(BD),t.registerTransform(FD)});var VD=Math.sin,GD=Math.cos,HD=Math.PI,WD=2*Math.PI,XD=180/HD,YD=(UD.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},UD.prototype.moveTo=function(t,e){this._add("M",t,e)},UD.prototype.lineTo=function(t,e){this._add("L",t,e)},UD.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add("C",t,e,n,i,o,r)},UD.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},UD.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},UD.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l,u=a-r,s=!s,h=Math.abs(u),c=Oi(h-WD)||(s?WD<=u:WD<=-u),p=!1,p=!!c||!Oi(h)&&HD<=(0<u?u%WD:u%WD+WD)==!!s,h=t+n*GD(r),u=e+i*VD(r),o=(this._start&&this._add("M",h,u),Math.round(o*XD));c?(c=1/this._p,this._add("A",n,i,o,1,+s,t+n*GD(r+(l=(s?1:-1)*(WD-c))),e+i*VD(r+l)),.01<c&&this._add("A",n,i,o,0,+s,h,u)):(r=t+n*GD(a),l=e+i*VD(a),this._add("A",n,i,o,+p,+s,r,l))},UD.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},UD.prototype.closePath=function(){0<this._d.length&&this._add("Z")},UD.prototype._add=function(t,e,n,i,o,r,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},UD.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},UD.prototype.getStr=function(){return this._str},UD);function UD(){}var ZD="none",jD=Math.round;var qD=["lineCap","miterLimit","lineJoin"],KD=B(qD,function(t){return"stroke-"+t.toLowerCase()});function JD(t,e,n,i){var o=null==e.opacity?1:e.opacity;if(n instanceof Zs)t("opacity",o);else if(null!=(r=(r=e).fill)&&r!==ZD?(t("fill",(r=Li(e.fill)).color),r=null!=e.fillOpacity?e.fillOpacity*r.opacity*o:r.opacity*o,(i||r<1)&&t("fill-opacity",r)):t("fill",ZD),null!=(r=(r=e).stroke)&&r!==ZD){var r=Li(e.stroke),a=(t("stroke",r.color),e.strokeNoScale?n.getLineScale():1),a=a?(e.lineWidth||0)/a:0,r=null!=e.strokeOpacity?e.strokeOpacity*r.opacity*o:r.opacity*o,o=e.strokeFirst;!i&&1==a||t("stroke-width",a),(i||o)&&t("paint-order",o?"stroke":"fill"),(i||r<1)&&t("stroke-opacity",r),e.lineDash?(o=(a=Vm(n))[0],r=a[1],o&&(r=jD(r||0),t("stroke-dasharray",o.join(",")),r||i)&&t("stroke-dashoffset",r)):i&&t("stroke-dasharray",ZD);for(var s=0;s<qD.length;s++){var l=qD[s];(i||e[l]!==Es[l])&&(l=e[l]||Es[l])&&t(KD[s],l)}}else i&&t("stroke",ZD)}var $D="http://www.w3.org/2000/svg",QD="http://www.w3.org/1999/xlink",tk="http://www.w3.org/2000/xmlns/",ek="http://www.w3.org/XML/1998/namespace",nk="ecmeta_";function ik(t){return document.createElementNS($D,t)}function ok(t,e,n,i,o){return{tag:t,attrs:n||{},children:i,text:o,key:e}}function rk(t,e){var r=(e=e||{}).newline?"\n":"";return function t(e){var n=e.children,i=e.tag,o=e.attrs,e=e.text;return function(t,e){var n=[];if(e)for(var i in e){var o=e[i];!1!==o&&(!0!==o&&null!=o&&(i+='="'+o+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}(i,o)+("style"!==i?be(e):e||"")+(n?r+B(n,t).join(r)+r:"")+"</"+i+">"}(t)}function ak(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function sk(t,e,n,i){return ok("svg","root",{width:t,height:e,xmlns:$D,"xmlns:xlink":QD,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var lk=0;var uk={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},hk="transform-origin";var ck={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function pk(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function dk(t){return V(t)?uk[t]?"cubic-bezier("+uk[t]+")":ei(t)?t:"":""}function fk(k,A,P,L){var t=k.animators,e=t.length,n=[];if(k instanceof Bh){if(o=function(t,e,u){var h,c,t=t.shape.paths,p={};if(R(t,function(t){var e=ak(u.zrId),t=(e.animation=!0,fk(t,{},e,!0),e.cssAnims),n=e.cssNodes,e=N(t),i=e.length;if(i){var o,r,a=t[c=e[i-1]];for(o in a){var s=a[o];p[o]=p[o]||{d:""},p[o].d+=s.d||""}for(r in n){var l=n[r].animation;0<=l.indexOf(c)&&(h=l)}}}),h)return e.d=!1,t=pk(p,u),h.replace(c,t)}(k,A,P))n.push(o);else if(!e)return}else if(!e)return;for(var i,o,r,a={},s=0;s<e;s++){var l=t[s],u=[l.getMaxTime()/1e3+"s"],h=dk(l.getClip().easing),c=l.getDelay(),h=(u.push(h||"linear"),c&&u.push(c/1e3+"s"),l.getLoop()&&u.push("infinite"),u.join(" "));a[h]=a[h]||[h,[]],a[h][1].push(l)}function p(t){var e=t[1],n=e.length,i={},o={},r={},f="animation-timing-function";function a(t,e,n){for(var i=t.getTracks(),o=t.getMaxTime(),r=0;r<i.length;r++){var a=i[r];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=n?n(l):l)for(var u=0;u<s.length;u++){var h=s[u],c=Math.round(h.time/o*100)+"%",p=dk(h.easing),d=h.rawValue;(V(d)||gt(d))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,p)&&(e[c][f]=p)}}}}for(var s,l,u=0;u<n;u++)(S=(b=e[u]).targetName)?"shape"===S&&a(b,o):L||a(b,i);for(w in i){var h={},c=(Wo(h,k),O(h,i[w]),Xi(h)),p=i[w][f];r[w]=c?{transform:c}:{},c=r[w],s=void 0,s=(h=h).originX,h=h.originY,(s||h)&&(c[hk]=s+"px "+h+"px"),p&&(r[w][f]=p)}var d,g,y,m=!0;for(w in o){r[w]=r[w]||{};var v=!l,p=o[w][f],_=(l=v?new bs:l).len(),x=(l.reset(),r[w].d=(g=o[w],y=l,x=void 0,x=O({},(d=k).shape),O(x,g),d.buildPath(y,x),(g=new YD).reset(Wi(d)),y.rebuildPath(g,1),g.generateStr(),g.getStr()),l.len());if(!v&&_!==x){m=!1;break}p&&(r[w][f]=p)}if(!m)for(var w in r)delete r[w].d;if(!L)for(var b,S,u=0;u<n;u++)"style"===(S=(b=e[u]).targetName)&&a(b,r,function(t){return ck[t]});for(var M,T=N(r),C=!0,u=1;u<T.length;u++){var I=T[u-1],D=T[u];if(r[I][hk]!==r[D][hk]){C=!1;break}M=r[I][hk]}if(C&&M){for(var w in r)r[w][hk]&&delete r[w][hk];A[hk]=M}if(pt(T,function(t){return 0<N(r[t]).length}).length)return pk(r,P)+" "+t[0]+" both"}for(i in a)(o=p(a[i]))&&n.push(o);n.length&&(r=P.zrId+"-cls-"+lk++,P.cssNodes["."+r]={animation:n.join(",")},A.class=r)}function gk(t,e,n,i){var o=JSON.stringify(t),r=n.cssStyleCache[o];r||(r=n.zrId+"-cls-"+lk++,n.cssStyleCache[o]=r,n.cssNodes["."+r+(i?":hover":"")]=t),e.class=e.class?e.class+" "+r:r}var yk=Math.round;function mk(t){return t&&V(t.src)}function vk(t){return t&&D(t.toDataURL)}function _k(i,o,r,a){JD(function(t,e){var n="fill"===t||"stroke"===t;n&&Gi(e)?kk(o,i,t,a):n&&Bi(e)?Ak(r,i,t,a):i[t]=n&&"none"===e?"transparent":e},o,r,!1);var t=i,e=a;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(f=(u=r).style)){var n=function(t){var e=t.style,t=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}(u),s=e.shadowCache,l=s[n];if(!l){var u=u.getGlobalScale(),h=u[0],u=u[1];if(!h||!u)return;var c=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=Li(f.shadowColor),g=f.opacity,f=f.color,d=d/2/h+" "+d/2/u;l=e.zrId+"-s"+e.shadowIdx++,e.defs[l]=ok("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ok("feDropShadow","",{dx:c/h,dy:p/u,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[n]=l}t.filter=Hi(l)}}function xk(n,t){var e=_r(t);e&&(e.each(function(t,e){null!=t&&(n[(nk+e).toLowerCase()]=t+"")}),t.isSilent())&&(n[nk+"silent"]="true")}function wk(t){return Oi(t[0]-1)&&Oi(t[1])&&Oi(t[2])&&Oi(t[3]-1)}function bk(t,e,n){var i;!e||Oi((i=e)[4])&&Oi(i[5])&&wk(e)||(i=n?10:1e4,t.transform=wk(e)?"translate("+yk(e[4]*i)/i+" "+yk(e[5]*i)/i+")":"matrix("+Ri((n=e)[0])+","+Ri(n[1])+","+Ri(n[2])+","+Ri(n[3])+","+Ni(n[4])+","+Ni(n[5])+")")}function Sk(t,e,n){for(var i=t.points,o=[],r=0;r<i.length;r++)o.push(yk(i[r][0]*n)/n),o.push(yk(i[r][1]*n)/n);e.points=o.join(" ")}function Mk(t){return!t.smooth}var Tk,Ck={circle:[(Tk=B(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<Tk.length;i++){var o=Tk[i],r=t[o[0]];null!=r&&(e[o[1]]=yk(r*n)/n)}})],polyline:[Sk,Mk],polygon:[Sk,Mk]};function Ik(t,e){var n,i,o,r,a,s=t.style,l=t.shape,u=Ck[t.type],h={},c=e.animation,p="path",d=t.style.strokePercent,f=e.compress&&Wi(t)||4;return!u||e.willUpdate||u[1]&&!u[1](l)||c&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return 1}(t)||d<1?(c=!t.path||t.shapeChanged(),t.path||t.createPathProxy(),n=t.path,c&&(n.beginPath(),t.buildPath(n,t.shape),t.pathUpdated()),c=n.getVersion(),o=(i=t).__svgPathBuilder,i.__svgPathVersion===c&&o&&d===i.__svgPathStrokePercent||((o=o||(i.__svgPathBuilder=new YD)).reset(f),n.rebuildPath(o,d),o.generateStr(),i.__svgPathVersion=c,i.__svgPathStrokePercent=d),h.d=o.getStr()):(p=t.type,n=Math.pow(10,f),u[0](l,h,n)),bk(h,t.transform),_k(h,s,t,e),xk(h,t),e.animation&&fk(t,h,e),e.emphasis&&(c=h,i=e,(d=t).ignore||(d.isSilent()?gk(a={"pointer-events":"none"},c,i,!0):(!(f=(o=d.states.emphasis&&d.states.emphasis.style?d.states.emphasis.style:{}).fill)&&(r=d.style&&d.style.fill,u=d.states.select&&d.states.select.style&&d.states.select.style.fill,u=0<=d.currentStates.indexOf("select")&&u||r)&&(f=Ai(u)),(r=o.lineWidth)&&(r/=!o.strokeNoScale&&d.transform?d.transform[0]:1),a={cursor:"pointer"},f&&(a.fill=f),o.stroke&&(a.stroke=o.stroke),r&&(a["stroke-width"]=r),gk(a,c,i,!0)))),ok(p,t.id+"",h)}function Dk(t,e){if(t instanceof q)return Ik(t,e);if(t instanceof Zs){var n=t,i=e,o=n.style,r=o.image;if(r&&!V(r)&&(mk(r)?r=r.src:vk(r)&&(r=r.toDataURL())),r)return a=o.x||0,s=o.y||0,r={href:r,width:o.width,height:o.height},a&&(r.x=a),s&&(r.y=s),bk(r,n.transform),_k(r,o,n,i),xk(r,n),i.animation&&fk(n,r,i),ok("image",n.id+"",r)}else if(t instanceof Hs){var a=t,s=e,o=a.style,i=o.text;if(null!=i&&(i+=""),i&&!isNaN(o.x)&&!isNaN(o.y)){var n=o.font||K,r=o.x||0,l=(t=o.y||0,e=Ko(n),"top"===(l=o.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":zi[o.textAlign]||o.textAlign};if(fl(o)){var t="",u=o.fontStyle,h=pl(o.fontSize);if(!parseFloat(h))return;var c=o.fontFamily||v,p=o.fontWeight;t+="font-size:"+h+";font-family:"+c+";",u&&"normal"!==u&&(t+="font-style:"+u+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+n;return i.match(/\s/)&&(e["xml:space"]="preserve"),r&&(e.x=r),l&&(e.y=l),bk(e,a.transform),_k(e,o,a,s),xk(e,a),s.animation&&fk(a,e,s),ok("text",a.id+"",e,void 0,i)}}}function kk(t,e,n,i){var o,t=t[n],r={gradientUnits:t.global?"userSpaceOnUse":"objectBoundingBox"};if(Fi(t))o="linearGradient",r.x1=t.x,r.y1=t.y,r.x2=t.x2,r.y2=t.y2;else{if(!Vi(t))return;o="radialGradient",r.cx=z(t.x,.5),r.cy=z(t.y,.5),r.r=z(t.r,.5)}for(var a=t.colorStops,s=[],l=0,u=a.length;l<u;++l){var h=100*Ni(a[l].offset)+"%",c=Li(a[l].color),p=c.color,c=c.opacity,h={offset:h};h["stop-color"]=p,c<1&&(h["stop-opacity"]=c),s.push(ok("stop",l+"",h))}var t=rk(ok(o,"",r,s)),d=i.gradientCache,f=d[t];f||(f=i.zrId+"-g"+i.gradientIdx++,d[t]=f,r.id=f,i.defs[f]=ok(o,f,r,s)),e[n]=Hi(f)}function Ak(t,e,n,i){var o,r,a,s,l,u,h,c,p=t.style[n],d=t.getBoundingRect(),f={},g=p.repeat,y="no-repeat"===g,m="repeat-x"===g,v="repeat-y"===g;Ei(p)?(r=p.imageWidth,a=p.imageHeight,g=void 0,V(h=p.image)?g=h:mk(h)?g=h.src:vk(h)&&(g=h.toDataURL()),"undefined"==typeof Image?(It(r,h="Image width/height must been given explictly in svg-ssr renderer."),It(a,h)):null!=r&&null!=a||(s=function(t,e){var n,i;t&&(n=t.elm,i=r||e.width,e=a||e.height,"pattern"===t.tag&&(m?(e=1,i/=d.width):v&&(i=1,e/=d.height)),t.attrs.width=i,t.attrs.height=e,n)&&(n.setAttribute("width",i),n.setAttribute("height",e))},(h=Ma(g,null,t,function(t){y||s(u,t),s(o,t)}))&&h.width&&h.height&&(r=r||h.width,a=a||h.height)),o=ok("image","img",{href:g,width:r,height:a}),f.width=r,f.height=a):p.svgElement&&(o=_(p.svgElement),f.width=p.svgWidth,f.height=p.svgHeight),o&&(y?c=l=1:m?(l=1,c=f.width/d.width):v?(c=1,l=f.height/d.height):f.patternUnits="userSpaceOnUse",null==c||isNaN(c)||(f.width=c),null==l||isNaN(l)||(f.height=l),(t=Xi(p))&&(f.patternTransform=t),h=rk(u=ok("pattern","",f,[o])),(c=(g=i.patternCache)[h])||(c=i.zrId+"-p"+i.patternIdx++,g[h]=c,f.id=c,u=i.defs[c]=ok("pattern",c,f,[o])),e[n]=Hi(c))}function Pk(t){return document.createTextNode(t)}function Lk(t,e,n){t.insertBefore(e,n)}function Ok(t,e){t.removeChild(e)}function Rk(t,e){t.appendChild(e)}function Nk(t){return t.parentNode}function zk(t){return t.nextSibling}function Ek(t,e){t.textContent=e}var Bk=58,Fk=120,Vk=ok("","");function Gk(t){return void 0===t}function Hk(t){return void 0!==t}function Wk(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Xk(t){var e,n=t.children,i=t.tag;if(Hk(i)){var o=t.elm=ik(i);if(Zk(Vk,t),F(n))for(e=0;e<n.length;++e){var r=n[e];null!=r&&Rk(o,Xk(r))}else Hk(t.text)&&!L(t.text)&&Rk(o,Pk(t.text))}else t.elm=Pk(t.text);return t.elm}function Yk(t,e,n,i,o){for(;i<=o;++i){var r=n[i];null!=r&&Lk(t,Xk(r),e)}}function Uk(t,e,n,i){for(;n<=i;++n){var o=e[n];null!=o&&(Hk(o.tag)?Ok(Nk(o.elm),o.elm):Ok(t,o.elm))}}function Zk(t,e){var n,i=e.elm,o=t&&t.attrs||{},r=e.attrs||{};if(o!==r){for(n in r){var a=r[n];o[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:n.charCodeAt(0)!==Fk?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(tk,n,a):n.charCodeAt(3)===Bk?i.setAttributeNS(ek,n,a):n.charCodeAt(5)===Bk?i.setAttributeNS(QD,n,a):i.setAttribute(n,a))}for(n in o)n in r||i.removeAttribute(n)}}function jk(t,e,n){for(var i,o,r,a=0,s=0,l=e.length-1,u=e[0],h=e[l],c=n.length-1,p=n[0],d=n[c];a<=l&&s<=c;)null==u?u=e[++a]:null==h?h=e[--l]:null==p?p=n[++s]:null==d?d=n[--c]:Wk(u,p)?(qk(u,p),u=e[++a],p=n[++s]):Wk(h,d)?(qk(h,d),h=e[--l],d=n[--c]):Wk(u,d)?(qk(u,d),Lk(t,u.elm,zk(h.elm)),u=e[++a],d=n[--c]):p=(Wk(h,p)?(qk(h,p),Lk(t,h.elm,u.elm),h=e[--l]):(Gk(i)&&(i=function(t,e,n){for(var i={},o=e;o<=n;++o){var r=t[o].key;void 0!==r&&(i[r]=o)}return i}(e,a,l)),Gk(o=i[p.key])||(r=e[o]).tag!==p.tag?Lk(t,Xk(p),u.elm):(qk(r,p),e[o]=void 0,Lk(t,r.elm,u.elm))),n[++s]);(a<=l||s<=c)&&(l<a?Yk(t,null==n[c+1]?null:n[c+1].elm,n,s,c):Uk(t,e,a,l))}function qk(t,e){var n=e.elm=t.elm,i=t.children,o=e.children;t!==e&&(Zk(t,e),Gk(e.text)?Hk(i)&&Hk(o)?i!==o&&jk(n,i,o):Hk(o)?(Hk(t.text)&&Ek(n,""),Yk(n,null,o,0,o.length-1)):Hk(i)?Uk(n,i,0,i.length-1):Hk(t.text)&&Ek(n,""):t.text!==e.text&&(Hk(i)&&Uk(n,i,0,i.length-1),Ek(n,e.text)))}var Kk=0;function Jk(t,e,n){var i;this.type="svg",this.refreshHover=$k(),this.configLayer=$k(),this.storage=e,this._opts=n=O({},n),this.root=t,this._id="zr"+Kk++,this._oldVNode=sk(n.width,n.height),t&&!n.ssr&&((e=this._viewport=document.createElement("div")).style.cssText="position:relative;overflow:hidden",i=this._svgDom=this._oldVNode.elm=ik("svg"),Zk(null,this._oldVNode),e.appendChild(i),t.appendChild(e)),this.resize(n.width,n.height)}function $k(){return function(){}}Jk.prototype.getType=function(){return this.type},Jk.prototype.getViewportRoot=function(){return this._viewport},Jk.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},Jk.prototype.getSvgDom=function(){return this._svgDom},Jk.prototype.refresh=function(){var t,e,n,i,o;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",Wk(e=this._oldVNode,n=t)?qk(e,n):(o=Nk(i=e.elm),Xk(n),null!==o&&(Lk(o,n.elm,zk(i)),Uk(o,[e],0,0))),this._oldVNode=t)},Jk.prototype.renderOneToVNode=function(t){return Dk(t,ak(this._id))},Jk.prototype.renderToVNode=function(t){t=t||{};var n,o,r,a,s,e=this.storage.getDisplayList(!0),i=this._width,l=this._height,u=ak(this._id),h=(u.animation=t.animation,u.willUpdate=t.willUpdate,u.compress=t.compress,u.emphasis=t.emphasis,[]),c=this._bgVNode=function(t,e,n,i){var o;n&&"none"!==n&&(o=ok("rect","bg",{width:t,height:e,x:"0",y:"0"}),Gi(n)?kk({fill:n},o.attrs,"fill",i):Bi(n)?Ak({style:{fill:n},dirty:Gt,getBoundingRect:function(){return{width:t,height:e}}},o.attrs,"fill",i):(i=Li(n),n=i.color,i=i.opacity,o.attrs.fill=n,i<1&&(o.attrs["fill-opacity"]=i)));return o}(i,l,this._backgroundColor,u),c=(c&&h.push(c),t.compress?null:this._mainVNode=ok("g","main",{},[])),e=(this._paintList(e,u,c?c.children:h),c&&h.push(c),B(N(u.defs),function(t){return u.defs[t]}));return e.length&&h.push(ok("defs","defs",{},e)),t.animation&&(n=u.cssNodes,o=u.cssAnims,r=(c=(c={newline:!0})||{}).newline?"\n":"",a=" {"+r,s=r+"}",c=B(N(n),function(e){return e+a+B(N(n[e]),function(t){return t+":"+n[e][t]+";"}).join(r)+s}).join(r),e=B(N(o),function(i){return"@keyframes "+i+a+B(N(o[i]),function(n){return n+a+B(N(o[i][n]),function(t){var e=o[i][n][t];return t+":"+(e="d"===t?'path("'+e+'")':e)+";"}).join(r)+s}).join(r)+s}).join(r),c=c||e?["<![CDATA[",c,e,"]]>"].join(r):"")&&(e=ok("style","stl",{},[],c),h.push(e)),sk(i,l,h,t.useViewBox)},Jk.prototype.renderToString=function(t){return rk(this.renderToVNode({animation:z((t=t||{}).cssAnimation,!0),emphasis:z(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:z(t.useViewBox,!0)}),{newline:!0})},Jk.prototype.setBackgroundColor=function(t){this._backgroundColor=t},Jk.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},Jk.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,h=t.length,c=[],p=0,d=0,f=0;f<h;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=M&&M.length||0,_=void 0,_=Math.max(m-1,v-1);0<=_&&(!y||!M||y[_]!==M[_]);_--);for(var x=v-1;_<x;x--)i=c[--p-1];for(var w=_+1;w<m;w++){var b={},S=(o=y[w],r=b,u=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(u=l[o.id])||(s={id:u=a.zrId+"-c"+a.clipPathIdx++},S[l[o.id]=u]=ok("clipPath",u,s,[Ik(o,a)])),r["clip-path"]=Hi(u),ok("g","clip-g-"+d++,b,[]));(i?i.children:n).push(S),i=c[p++]=S}var M=y,v=Dk(g,e);v&&(i?i.children:n).push(v)}}},Jk.prototype.resize=function(t,e){var n=this._opts,i=this.root,o=this._viewport;null!=t&&(n.width=t),null!=e&&(n.height=e),i&&o&&(o.style.display="none",t=Fm(i,0,n),e=Fm(i,1,n),o.style.display=""),this._width===t&&this._height===e||(this._width=t,this._height=e,o&&((i=o.style).width=t+"px",i.height=e+"px"),Bi(this._backgroundColor)?this.refresh():((n=this._svgDom)&&(n.setAttribute("width",t),n.setAttribute("height",e)),(o=this._bgVNode&&this._bgVNode.elm)&&(o.setAttribute("width",t),o.setAttribute("height",e))))},Jk.prototype.getWidth=function(){return this._width},Jk.prototype.getHeight=function(){return this._height},Jk.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},Jk.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},Jk.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=Yi(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},vr("svg",Jk),t.Axis=rp,t.ChartView=ky,t.ComponentModel=g,t.ComponentView=My,t.List=t_,t.Model=hp,t.PRIORITY=Cm,t.SeriesModel=yy,t.color=Ti,t.connect=function(e){var t;return F(e)&&(t=e,e=null,R(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+sv++,R(t,function(t){t.group=e})),rv[e]=!0,e},t.dataTool={},t.dependencies={zrender:"5.5.0"},t.disConnect=Tm,t.disconnect=uv,t.dispose=function(t){V(t)?t=ov[t]:t instanceof X0||(t=hv(t)),t instanceof X0&&!t.isDisposed()&&t.dispose()},t.env=b,t.extendChartView=function(t){return t=ky.extend(t),ky.registerClass(t),t},t.extendComponentModel=function(t){return t=g.extend(t),g.registerClass(t),t},t.extendComponentView=function(t){return t=My.extend(t),My.registerClass(t),t},t.extendSeriesModel=function(t){return t=yy.extend(t),yy.registerClass(t),t},t.format=ip,t.getCoordinateSystemDimensions=function(t){if(t=of.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=hv,t.getInstanceById=function(t){return ov[t]},t.getMap=function(t){var e=d0.getMap;return e&&e(t)},t.graphic=Dp,t.helper=Im,t.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var o=hv(t);if(o)return o}return(o=new X0(t,e,n)).id="ec_"+av++,ov[o.id]=o,i&&sa(t,lv,o.id),V0(o),p0.trigger("afterinit",o),o},t.innerDrawElementOnCanvas=r0,t.matrix=Ye,t.number=wa,t.parseGeoJSON=z1,t.parseGeoJson=z1,t.registerAction=mv,t.registerCoordinateSystem=vv,t.registerLayout=_v,t.registerLoading=Sv,t.registerLocale=wp,t.registerMap=Mv,t.registerPostInit=fv,t.registerPostUpdate=gv,t.registerPreprocessor=pv,t.registerProcessor=dv,t.registerTheme=cv,t.registerTransform=Tv,t.registerUpdateLifecycle=yv,t.registerVisual=xv,t.setCanvasCreator=function(t){A({createCanvas:t})},t.setPlatformAPI=A,t.throttle=Fy,t.time=Mc,t.use=v1,t.util=ym,t.vector=se,t.version="5.5.0",t.zrUtil=Wt,t.zrender=wr});
|