var rC=Object.defineProperty;var rp=Object.getOwnPropertySymbols;var iC=Object.prototype.hasOwnProperty,aC=Object.prototype.propertyIsEnumerable;var ip=(r,t,e)=>t in r?rC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ap=(r,t)=>{for(var e in t||(t={}))iC.call(t,e)&&ip(r,e,t[e]);if(rp)for(var e of rp(t))aC.call(t,e)&&ip(r,e,t[e]);return r};import{bu as nC,f as np,r as oC,k as Ma,aY as Xu,af as sC,a1 as lC,c7 as uC,cO as fC,cP as hC,bk as vC}from"./index.0d073eaa.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

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

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Eh=function(r,t){return Eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])},Eh(r,t)};function R(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Eh(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var cC=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),dC=function(){function r(){this.browser=new cC,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=typeof window!="undefined"}return r}(),ji=new dC;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ji.wxa=!0,ji.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?ji.worker=!0:typeof navigator=="undefined"?(ji.node=!0,ji.svgSupported=!0):pC(navigator.userAgent,ji);function pC(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),a&&(e.ie=!0,e.version=a[1]),n&&(e.edge=!0,e.version=n[1],e.newEdge=+n[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var vt=ji,ec=12,$_="sans-serif",mi=ec+"px "+$_,gC=20,yC=100,mC="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _C(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),a=(r.charCodeAt(e)-gC)/yC;t[i]=a}return t}var SC=_C(mC),_i={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,i){if(!r){var a=_i.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==i&&(t=r.font=i||mi),r.measureText(e);e=e||"",i=i||mi;var n=/^([0-9]*?)px$/.exec(i),o=+(n&&n[1])||ec,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=SC[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}};function U_(r){for(var t in _i)r[t]&&(_i[t]=r[t])}var Y_=Ve(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),X_=Ve(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),yn=Object.prototype.toString,ru=Array.prototype,xC=ru.forEach,bC=ru.filter,rc=ru.slice,wC=ru.map,op=function(){}.constructor,os=op?op.prototype:null,ic="__proto__",TC=2311;function ac(){return TC++}function nc(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,r)}function X(r){if(r==null||typeof r!="object")return r;var t=r,e=yn.call(r);if(e==="[object Array]"){if(!Qa(r)){t=[];for(var i=0,a=r.length;i<a;i++)t[i]=X(r[i])}}else if(X_[e]){if(!Qa(r)){var n=r.constructor;if(n.from)t=n.from(r);else{t=new n(r.length);for(var i=0,a=r.length;i<a;i++)t[i]=r[i]}}}else if(!Y_[e]&&!Qa(r)&&!nn(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==ic&&(t[o]=X(r[o]))}return t}function Q(r,t,e){if(!U(t)||!U(r))return e?X(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==ic){var a=r[i],n=t[i];U(n)&&U(a)&&!N(n)&&!N(a)&&!nn(n)&&!nn(a)&&!kh(n)&&!kh(a)&&!Qa(n)&&!Qa(a)?Q(a,n,e):(e||!(i in r))&&(r[i]=X(t[i]))}return r}function Z_(r,t){for(var e=r[0],i=1,a=r.length;i<a;i++)e=Q(e,r[i],t);return e}function O(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==ic&&(r[e]=t[e]);return r}function Z(r,t,e){for(var i=at(t),a=0;a<i.length;a++){var n=i[a];(e?t[n]!=null:r[n]==null)&&(r[n]=t[n])}return r}var CC=_i.createCanvas;function ot(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function oc(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function Yt(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),a=0;a<i.length;a++){var n=i[a];n!=="constructor"&&(e?t[n]!=null:r[n]==null)&&(r[n]=t[n])}else Z(r,t,e)}function te(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function w(r,t,e){if(!!(r&&t))if(r.forEach&&r.forEach===xC)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r);else for(var n in r)r.hasOwnProperty(n)&&t.call(e,r[n],n,r)}function z(r,t,e){if(!r)return[];if(!t)return au(r);if(r.map&&r.map===wC)return r.map(t,e);for(var i=[],a=0,n=r.length;a<n;a++)i.push(t.call(e,r[a],a,r));return i}function Ve(r,t,e,i){if(!!(r&&t)){for(var a=0,n=r.length;a<n;a++)e=t.call(i,e,r[a],a,r);return e}}function Ct(r,t,e){if(!r)return[];if(!t)return au(r);if(r.filter&&r.filter===bC)return r.filter(t,e);for(var i=[],a=0,n=r.length;a<n;a++)t.call(e,r[a],a,r)&&i.push(r[a]);return i}function q_(r,t,e){if(!!(r&&t)){for(var i=0,a=r.length;i<a;i++)if(t.call(e,r[i],i,r))return r[i]}}function at(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function AC(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(rc.call(arguments)))}}var H=os&&q(os.bind)?os.call.bind(os.bind):AC;function ft(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(rc.call(arguments)))}}function N(r){return Array.isArray?Array.isArray(r):yn.call(r)==="[object Array]"}function q(r){return typeof r=="function"}function V(r){return typeof r=="string"}function ml(r){return yn.call(r)==="[object String]"}function yt(r){return typeof r=="number"}function U(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function kh(r){return!!Y_[yn.call(r)]}function Se(r){return!!X_[yn.call(r)]}function nn(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function iu(r){return r.colorStops!=null}function MC(r){return r.image!=null}function DC(r){return yn.call(r)==="[object RegExp]"}function xo(r){return r!==r}function Fr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function it(r,t){return r!=null?r:t}function Ja(r,t,e){return r!=null?r:t!=null?t:e}function au(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return rc.apply(r,t)}function sc(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function le(r,t){if(!r)throw new Error(t)}function ze(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var K_="__ec_primitive__";function bo(r){r[K_]=!0}function Qa(r){return r[K_]}var j_=function(){function r(t){this.data={};var e=N(t);this.data={};var i=this;t instanceof r?t.each(a):t&&w(t,a);function a(n,o){e?i.set(n,o):i.set(o,n)}}return r.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},r.prototype.set=function(t,e){return this.data[t]=e},r.prototype.each=function(t,e){for(var i in this.data)this.data.hasOwnProperty(i)&&t.call(e,this.data[i],i)},r.prototype.keys=function(){return at(this.data)},r.prototype.removeKey=function(t){delete this.data[t]},r}();function $(r){return new j_(r)}function J_(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var a=r.length,i=0;i<t.length;i++)e[i+a]=t[i];return e}function Uo(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&O(e,t),e}function PC(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function G(r,t){return r.hasOwnProperty(t)}function Wt(){}var oo=180/Math.PI,LC=Object.freeze(Object.defineProperty({__proto__:null,guid:ac,logError:nc,clone:X,merge:Q,mergeAll:Z_,extend:O,defaults:Z,createCanvas:CC,indexOf:ot,inherits:oc,mixin:Yt,isArrayLike:te,each:w,map:z,reduce:Ve,filter:Ct,find:q_,keys:at,bind:H,curry:ft,isArray:N,isFunction:q,isString:V,isStringSafe:ml,isNumber:yt,isObject:U,isBuiltInObject:kh,isTypedArray:Se,isDom:nn,isGradientObject:iu,isImagePatternObject:MC,isRegExp:DC,eqNaN:xo,retrieve:Fr,retrieve2:it,retrieve3:Ja,slice:au,normalizeCssArray:sc,assert:le,trim:ze,setAsPrimitive:bo,isPrimitive:Qa,HashMap:j_,createHashMap:$,concatArray:J_,createObject:Uo,disableUserSelect:PC,hasOwn:G,noop:Wt,RADIAN_TO_DEGREE:oo},Symbol.toStringTag,{value:"Module"}));function xa(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Q_(r,t){return r[0]=t[0],r[1]=t[1],r}function t1(r){return[r[0],r[1]]}function IC(r,t,e){return r[0]=t,r[1]=e,r}function Oh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function RC(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function e1(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function lc(r){return Math.sqrt(uc(r))}var EC=lc;function uc(r){return r[0]*r[0]+r[1]*r[1]}var kC=uc;function OC(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function BC(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function NC(r,t){return r[0]*t[0]+r[1]*t[1]}function Qs(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function r1(r,t){var e=lc(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function _l(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Sl=_l;function i1(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var ua=i1;function zC(r,t){return r[0]=-t[0],r[1]=-t[1],r}function tl(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function Ft(r,t,e){var i=t[0],a=t[1];return r[0]=e[0]*i+e[2]*a+e[4],r[1]=e[1]*i+e[3]*a+e[5],r}function Or(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Br(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var VC=Object.freeze(Object.defineProperty({__proto__:null,create:xa,copy:Q_,clone:t1,set:IC,add:Oh,scaleAndAdd:RC,sub:e1,len:lc,length:EC,lenSquare:uc,lengthSquare:kC,mul:OC,div:BC,dot:NC,scale:Qs,normalize:r1,distance:_l,dist:Sl,distanceSquare:i1,distSquare:ua,negate:zC,lerp:tl,applyTransform:Ft,min:Or,max:Br},Symbol.toStringTag,{value:"Module"})),Da=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),FC=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Da(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,a=t.offsetY,n=i-this._x,o=a-this._y;this._x=i,this._y=a,e.drift(n,o,t),this.handler.dispatchToElement(new Da(e,t),"drag",t.event);var s=this.handler.findHover(i,a,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Da(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Da(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Da(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Da(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),GC=FC,HC=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof e=="function"&&(a=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),n[t]||(n[t]=[]);for(var s=0;s<n[t].length;s++)if(n[t][s].h===i)return this;var l={h:i,query:e,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},u=n[t].length-1,f=n[t][u];return f&&f.callAtLast?n[t].splice(u,0,l):n[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var a=[],n=0,o=i[t].length;n<o;n++)i[t][n].h!==e&&a.push(i[t][n]);i[t]=a}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[t],n=this._$eventProcessor;if(a)for(var o=e.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(n&&n.filter&&u.query!=null&&!n.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return n&&n.afterTrigger&&n.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[t],n=this._$eventProcessor;if(a)for(var o=e.length,s=e[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(n&&n.filter&&f.query!=null&&!n.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return n&&n.afterTrigger&&n.afterTrigger(t),this},r}(),nr=HC,WC=Math.log(2);function Bh(r,t,e,i,a,n){var o=i+"-"+a,s=r.length;if(n.hasOwnProperty(o))return n[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/WC);return r[e][l]}for(var u=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&a||(h+=(v%2?-1:1)*r[e][c]*Bh(r,t-1,f,u,a|d,n),v++)}return n[o]=h,h}function sp(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},a=Bh(e,8,0,0,0,i);if(a!==0){for(var n=[],o=0;o<8;o++)for(var s=0;s<8;s++)n[s]==null&&(n[s]=0),n[s]+=((o+s)%2?-1:1)*Bh(e,7,o===0?1:0,1<<o,1<<s,i)/a*t[o];return function(l,u,f){var h=u*n[6]+f*n[7]+1;l[0]=(u*n[0]+f*n[1]+n[2])/h,l[1]=(u*n[3]+f*n[4]+n[5])/h}}}var lp="___zrEVENTSAVED",Zu=[];function $C(r,t,e,i,a){return Nh(Zu,t,i,a,!0)&&Nh(r,e,Zu[0],Zu[1])}function Nh(r,t,e,i,a){if(t.getBoundingClientRect&&vt.domSupported&&!a1(t)){var n=t[lp]||(t[lp]={}),o=UC(t,n),s=YC(o,n,a);if(s)return s(r,e,i),!0}return!1}function UC(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],a=["top","bottom"],n=0;n<4;n++){var o=document.createElement("div"),s=o.style,l=n%2,u=(n>>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",a[u]+":0",i[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function YC(r,t,e){for(var i=e?"invTrans":"trans",a=t[i],n=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&n&&c===n[h]&&v===n[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[i]=e?sp(s,o):sp(o,s))}function a1(r){return r.nodeName.toUpperCase()==="CANVAS"}var XC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qu=[],ZC=vt.browser.firefox&&+vt.browser.version.split(".")[0]<39;function zh(r,t,e,i){return e=e||{},i?up(r,t,e):ZC&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):up(r,t,e),e}function up(r,t,e){if(vt.domSupported&&r.getBoundingClientRect){var i=t.clientX,a=t.clientY;if(a1(r)){var n=r.getBoundingClientRect();e.zrX=i-n.left,e.zrY=a-n.top;return}else if(Nh(qu,r,i,a)){e.zrX=qu[0],e.zrY=qu[1];return}}e.zrX=e.zrY=0}function fc(r){return r||window.event}function Ie(r,t,e){if(t=fc(t),t.zrX!=null)return t;var i=t.type,a=i&&i.indexOf("touch")>=0;if(a){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&zh(r,o,t,e)}else{zh(r,t,t,e);var n=qC(t);t.zrDelta=n?n/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&XC.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function qC(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var a=Math.abs(i!==0?i:e),n=i>0?-1:i<0?1:e>0?-1:1;return 3*a*n}function Vh(r,t,e,i){r.addEventListener(t,e,i)}function KC(r,t,e,i){r.removeEventListener(t,e,i)}var Gr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function fp(r){return r.which===2||r.which===3}var jC=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var a=t.touches;if(!!a){for(var n={points:[],touches:[],target:e,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=zh(i,l,{});n.points.push([u.zrX,u.zrY]),n.touches.push(l)}this._track.push(n)}},r.prototype._recognize=function(t){for(var e in Ku)if(Ku.hasOwnProperty(e)){var i=Ku[e](this._track,t);if(i)return i}},r}();function hp(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function JC(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Ku={pinch:function(r,t){var e=r.length;if(!!e){var i=(r[e-1]||{}).points,a=(r[e-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var n=hp(i)/hp(a);!isFinite(n)&&(n=1),t.pinchScale=n;var o=JC(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}},n1="silent";function QC(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:tA}}function tA(){Gr(this.event)}var eA=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(nr),Cn=function(){function r(t,e){this.x=t,this.y=e}return r}(),rA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],o1=function(r){R(t,r);function t(e,i,a,n){var o=r.call(this)||this;return o._hovered=new Cn(0,0),o.storage=e,o.painter=i,o.painterRoot=n,a=a||new eA,o.proxy=null,o.setHandlerProxy(a),o._draggingMgr=new GC(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(w(rA,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,a=e.zrY,n=s1(this,i,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new Cn(i,a):this.findHover(i,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Cn(0,0)},t.prototype.dispatch=function(e,i){var a=this[e];a&&a.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,a){e=e||{};var n=e.target;if(!(n&&n.silent)){for(var o="on"+i,s=QC(i,e,a);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(i,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,a){for(var n=this.storage.getDisplayList(),o=new Cn(e,i),s=n.length-1;s>=0;s--){var l=void 0;if(n[s]!==a&&!n[s].ignore&&(l=iA(n[s],e,i))&&(!o.topTarget&&(o.topTarget=n[s]),l!==n1)){o.target=n[s];break}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new jC);var a=this._gestureMgr;i==="start"&&a.clear();var n=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&a.clear(),n){var o=n.type;e.gestureEvent=o;var s=new Cn;s.target=n.target,this.dispatchToElement(s,o,n.event)}},t}(nr);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){o1.prototype[r]=function(t){var e=t.zrX,i=t.zrY,a=s1(this,e,i),n,o;if((r!=="mouseup"||!a)&&(n=this.findHover(e,i),o=n.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Sl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,t)}});function iA(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1;i.silent&&(a=!0)}var s=i.__hostTarget;i=s||i.parent}return a?n1:!0}return!1}function s1(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var aA=o1,l1=32,An=7;function nA(r){for(var t=0;r>=l1;)t|=r&1,r>>=1;return r+t}function vp(r,t,e,i){var a=t+1;if(a===e)return 1;if(i(r[a++],r[t])<0){for(;a<e&&i(r[a],r[a-1])<0;)a++;oA(r,t,a)}else for(;a<e&&i(r[a],r[a-1])>=0;)a++;return a-t}function oA(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function cp(r,t,e,i,a){for(i===t&&i++;i<e;i++){for(var n=r[i],o=t,s=i,l;o<s;)l=o+s>>>1,a(n,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function ju(r,t,e,i,a,n){var o=0,s=0,l=1;if(n(r,t[e+a])>0){for(s=i-a;l<s&&n(r,t[e+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&n(r,t[e+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);n(r,t[e+f])>0?o=f+1:l=f}return l}function Ju(r,t,e,i,a,n){var o=0,s=0,l=1;if(n(r,t[e+a])<0){for(s=a+1;l<s&&n(r,t[e+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=i-a;l<s&&n(r,t[e+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);n(r,t[e+f])<0?l=f:o=f+1}return l}function sA(r,t){var e=An,i,a,n=0;r.length;var o=[];i=[],a=[];function s(v,d){i[n]=v,a[n]=d,n+=1}function l(){for(;n>1;){var v=n-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;f(v)}}function u(){for(;n>1;){var v=n-2;v>0&&a[v-1]<a[v+1]&&v--,f(v)}}function f(v){var d=i[v],p=a[v],g=i[v+1],y=a[v+1];a[v]=p+y,v===n-3&&(i[v+1]=i[v+2],a[v+1]=a[v+2]),n--;var m=Ju(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=ju(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?h(d,p,g,y):c(d,p,g,y)))}function h(v,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=p,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=e,x,T,C;;){x=0,T=0,C=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],T++,x=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],x++,T=0,--d===1){C=!0;break}while((x|T)<b);if(C)break;do{if(x=Ju(r[_],o,m,d,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(T=ju(o[m],r,_,g,0,t),T!==0){for(y=0;y<T;y++)r[S+y]=r[_+y];if(S+=T,_+=T,g-=T,g===0){C=!0;break}}if(r[S++]=o[m++],--d===1){C=!0;break}b--}while(x>=An||T>=An);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(v,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=v+d-1,_=g-1,S=p+g-1,b=0,x=0;if(r[S--]=r[m--],--d===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var T=e;;){var C=0,A=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],C++,A=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],A++,C=0,--g===1){D=!0;break}while((C|A)<T);if(D)break;do{if(C=d-Ju(o[_],r,v,d,d-1,t),C!==0){for(S-=C,m-=C,d-=C,x=S+1,b=m+1,y=C-1;y>=0;y--)r[x+y]=r[b+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(A=g-ju(r[m],o,0,g,g-1,t),A!==0){for(S-=A,_-=A,g-=A,x=S+1,b=_+1,y=0;y<A;y++)r[x+y]=o[b+y];if(g<=1){D=!0;break}}if(r[S--]=r[m--],--d===0){D=!0;break}T--}while(C>=An||A>=An);if(D)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function el(r,t,e,i){e||(e=0),i||(i=r.length);var a=i-e;if(!(a<2)){var n=0;if(a<l1){n=vp(r,e,i,t),cp(r,e,i,e+n,t);return}var o=sA(r,t),s=nA(a);do{if(n=vp(r,e,i,t),n<s){var l=a;l>s&&(l=s),cp(r,e,e+l,e+n,t),n=l}o.pushRun(e,n),o.mergeRuns(),a-=n,e+=n}while(a!==0);o.forceMergeRuns()}}var gr=1,Jn=2,Ua=4,dp=!1;function Qu(){dp||(dp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function pp(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var lA=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=pp}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,a=0,n=e.length;a<n;a++)this._updateAndAddDisplayable(e[a],null,t);i.length=this._displayListLen,el(i,pp)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)e=null;else if(a){e?e=e.slice():e=[];for(var n=a,o=t;n;)n.parent=o,n.updateTransform(),e.push(n),o=n,n=n.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=gr),this._updateAndAddDisplayable(u,e,i)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Qu(),f.z=0),isNaN(f.z2)&&(Qu(),f.z2=0),isNaN(f.zlevel)&&(Qu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,i);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var a=ot(this._roots,t);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),uA=lA,u1;u1=vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var gp=u1,rl={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-rl.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?rl.bounceIn(r*2)*.5:rl.bounceOut(r*2-1)*.5+.5}},f1=rl,ss=Math.pow,di=Math.sqrt,xl=1e-8,h1=1e-4,yp=di(3),ls=1/3,yr=xa(),Oe=xa(),tn=xa();function li(r){return r>-xl&&r<xl}function v1(r){return r>xl||r<-xl}function Bt(r,t,e,i,a){var n=1-a;return n*n*(n*r+3*a*t)+a*a*(a*i+3*n*e)}function mp(r,t,e,i,a){var n=1-a;return 3*(((t-r)*n+2*(e-t)*a)*n+(i-e)*a*a)}function bl(r,t,e,i,a,n){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-a,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(li(f)&&li(h))if(li(s))n[0]=0;else{var d=-l/s;d>=0&&d<=1&&(n[v++]=d)}else{var p=h*h-4*f*c;if(li(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(n[v++]=d),y>=0&&y<=1&&(n[v++]=y)}else if(p>0){var m=di(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ss(-_,ls):_=ss(_,ls),S<0?S=-ss(-S,ls):S=ss(S,ls);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(n[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*di(f*f*f)),x=Math.acos(b)/3,T=di(f),C=Math.cos(x),d=(-s-2*T*C)/(3*o),y=(-s+T*(C+yp*Math.sin(x)))/(3*o),A=(-s+T*(C-yp*Math.sin(x)))/(3*o);d>=0&&d<=1&&(n[v++]=d),y>=0&&y<=1&&(n[v++]=y),A>=0&&A<=1&&(n[v++]=A)}}return v}function c1(r,t,e,i,a){var n=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(li(o)){if(v1(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if(li(f))a[0]=-n/(2*o);else if(f>0){var h=di(f),u=(-n+h)/(2*o),c=(-n-h)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function wl(r,t,e,i,a,n){var o=(t-r)*a+r,s=(e-t)*a+t,l=(i-e)*a+e,u=(s-o)*a+o,f=(l-s)*a+s,h=(f-u)*a+u;n[0]=r,n[1]=o,n[2]=u,n[3]=h,n[4]=h,n[5]=f,n[6]=l,n[7]=i}function d1(r,t,e,i,a,n,o,s,l,u,f){var h,c=.005,v=1/0,d,p,g,y;yr[0]=l,yr[1]=u;for(var m=0;m<1;m+=.05)Oe[0]=Bt(r,e,a,o,m),Oe[1]=Bt(t,i,n,s,m),g=ua(yr,Oe),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<h1);_++)d=h-c,p=h+c,Oe[0]=Bt(r,e,a,o,d),Oe[1]=Bt(t,i,n,s,d),g=ua(Oe,yr),d>=0&&g<v?(h=d,v=g):(tn[0]=Bt(r,e,a,o,p),tn[1]=Bt(t,i,n,s,p),y=ua(tn,yr),p<=1&&y<v?(h=p,v=y):c*=.5);return f&&(f[0]=Bt(r,e,a,o,h),f[1]=Bt(t,i,n,s,h)),di(v)}function fA(r,t,e,i,a,n,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,p=Bt(r,e,a,o,d),g=Bt(t,i,n,s,d),y=p-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=p,f=g}return h}function Kt(r,t,e,i){var a=1-i;return a*(a*r+2*i*t)+i*i*e}function _p(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function hA(r,t,e,i,a){var n=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(li(n)){if(v1(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if(li(f)){var u=-o/(2*n);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var h=di(f),u=(-o+h)/(2*n),c=(-o-h)/(2*n);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function p1(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Tl(r,t,e,i,a){var n=(t-r)*i+r,o=(e-t)*i+t,s=(o-n)*i+n;a[0]=r,a[1]=n,a[2]=s,a[3]=s,a[4]=o,a[5]=e}function g1(r,t,e,i,a,n,o,s,l){var u,f=.005,h=1/0;yr[0]=o,yr[1]=s;for(var c=0;c<1;c+=.05){Oe[0]=Kt(r,e,a,c),Oe[1]=Kt(t,i,n,c);var v=ua(yr,Oe);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<h1);d++){var p=u-f,g=u+f;Oe[0]=Kt(r,e,a,p),Oe[1]=Kt(t,i,n,p);var v=ua(Oe,yr);if(p>=0&&v<h)u=p,h=v;else{tn[0]=Kt(r,e,a,g),tn[1]=Kt(t,i,n,g);var y=ua(tn,yr);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=Kt(r,e,a,u),l[1]=Kt(t,i,n,u)),di(h)}function vA(r,t,e,i,a,n,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Kt(r,e,a,c),d=Kt(t,i,n,c),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var cA=/cubic-bezier\(([0-9,\.e ]+)\)/;function hc(r){var t=r&&cA.exec(r);if(t){var e=t[1].split(","),i=+ze(e[0]),a=+ze(e[1]),n=+ze(e[2]),o=+ze(e[3]);if(isNaN(i+a+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:bl(0,i,n,1,l,s)&&Bt(0,a,o,1,s[0])}}}var dA=function(){function r(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||Wt,this.ondestroy=t.ondestroy||Wt,this.onrestart=t.onrestart||Wt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,a=t-this._startTime-this._pausedTime,n=a/i;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=a%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=q(t)?t:f1[t]||hc(t)},r}(),pA=dA,y1=function(){function r(t){this.value=t}return r}(),gA=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new y1(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),yA=function(){function r(t){this._list=new gA,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,a=this._map,n=null;if(a[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete a[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new y1(e),s.key=t,i.insertEntry(s),a[t]=s}return n},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Yo=yA,Sp={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 tr(r){return r=Math.round(r),r<0?0:r>255?255:r}function mA(r){return r=Math.round(r),r<0?0:r>360?360:r}function wo(r){return r<0?0:r>1?1:r}function tf(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?tr(parseFloat(t)/100*255):tr(parseInt(t,10))}function on(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?wo(parseFloat(t)/100):wo(parseFloat(t))}function ef(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function ui(r,t,e){return r+(t-r)*e}function Le(r,t,e,i,a){return r[0]=t,r[1]=e,r[2]=i,r[3]=a,r}function Fh(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var m1=new Yo(20),us=null;function Pa(r,t){us&&Fh(us,t),us=m1.put(r,us||t.slice())}function oe(r,t){if(!!r){t=t||[];var e=m1.get(r);if(e)return Fh(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Sp)return Fh(t,Sp[i]),Pa(r,t),t;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var n=parseInt(i.slice(1,4),16);if(!(n>=0&&n<=4095)){Le(t,0,0,0,1);return}return Le(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),Pa(r,t),t}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){Le(t,0,0,0,1);return}return Le(t,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),Pa(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===a){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Le(t,+u[0],+u[1],+u[2],1):Le(t,0,0,0,1);f=on(u.pop());case"rgb":if(u.length!==3){Le(t,0,0,0,1);return}return Le(t,tf(u[0]),tf(u[1]),tf(u[2]),f),Pa(r,t),t;case"hsla":if(u.length!==4){Le(t,0,0,0,1);return}return u[3]=on(u[3]),Gh(u,t),Pa(r,t),t;case"hsl":if(u.length!==3){Le(t,0,0,0,1);return}return Gh(u,t),Pa(r,t),t;default:return}}Le(t,0,0,0,1)}}function Gh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=on(r[1]),a=on(r[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return t=t||[],Le(t,tr(ef(o,n,e+1/3)*255),tr(ef(o,n,e)*255),tr(ef(o,n,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function _A(r){if(!!r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,a=Math.min(t,e,i),n=Math.max(t,e,i),o=n-a,s=(n+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+a):u=o/(2-n-a);var f=((n-t)/6+o/2)/o,h=((n-e)/6+o/2)/o,c=((n-i)/6+o/2)/o;t===n?l=c-h:e===n?l=1/3+f-c:i===n&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function Hh(r,t){var e=oe(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return er(e,e.length===4?"rgba":"rgb")}}function SA(r){var t=oe(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function so(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var i=r*(t.length-1),a=Math.floor(i),n=Math.ceil(i),o=t[a],s=t[n],l=i-a;return e[0]=tr(ui(o[0],s[0],l)),e[1]=tr(ui(o[1],s[1],l)),e[2]=tr(ui(o[2],s[2],l)),e[3]=wo(ui(o[3],s[3],l)),e}}var xA=so;function vc(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),a=Math.floor(i),n=Math.ceil(i),o=oe(t[a]),s=oe(t[n]),l=i-a,u=er([tr(ui(o[0],s[0],l)),tr(ui(o[1],s[1],l)),tr(ui(o[2],s[2],l)),wo(ui(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}var bA=vc;function il(r,t,e,i){var a=oe(r);if(r)return a=_A(a),t!=null&&(a[0]=mA(t)),e!=null&&(a[1]=on(e)),i!=null&&(a[2]=on(i)),er(Gh(a),"rgba")}function _1(r,t){var e=oe(r);if(e&&t!=null)return e[3]=wo(t),er(e,"rgba")}function er(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function To(r,t){var e=oe(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function wA(){return er([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var TA=Object.freeze(Object.defineProperty({__proto__:null,parse:oe,lift:Hh,toHex:SA,fastLerp:so,fastMapToColor:xA,lerp:vc,mapToColor:bA,modifyHSL:il,modifyAlpha:_1,stringify:er,lum:To,random:wA},Symbol.toStringTag,{value:"Module"})),Cl=Math.round;function sn(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=oe(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var xp=1e-4;function fi(r){return r<xp&&r>-xp}function fs(r){return Cl(r*1e3)/1e3}function Wh(r){return Cl(r*1e4)/1e4}function CA(r){return"matrix("+fs(r[0])+","+fs(r[1])+","+fs(r[2])+","+fs(r[3])+","+Wh(r[4])+","+Wh(r[5])+")"}var AA={left:"start",right:"end",center:"middle",middle:"middle"};function MA(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function DA(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function PA(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function S1(r){return r&&!!r.image}function LA(r){return r&&!!r.svgElement}function IA(r){return S1(r)||LA(r)}function x1(r){return r.type==="linear"}function b1(r){return r.type==="radial"}function RA(r){return r&&(r.type==="linear"||r.type==="radial")}function nu(r){return"url(#"+r+")"}function w1(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function T1(r){var t=r.x||0,e=r.y||0,i=(r.rotation||0)*oo,a=it(r.scaleX,1),n=it(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),i&&l.push("rotate("+i+")"),(a!==1||n!==1)&&l.push("scale("+a+","+n+")"),(o||s)&&l.push("skew("+Cl(o*oo)+"deg, "+Cl(s*oo)+"deg)"),l.join(" ")}var EA=function(){return vt.hasGlobalWindow&&q(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),$h=Array.prototype.slice;function Er(r,t,e){return(t-r)*e+r}function rf(r,t,e,i){for(var a=t.length,n=0;n<a;n++)r[n]=Er(t[n],e[n],i);return r}function kA(r,t,e,i){for(var a=t.length,n=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=Er(t[o][s],e[o][s],i)}return r}function hs(r,t,e,i){for(var a=t.length,n=0;n<a;n++)r[n]=t[n]+e[n]*i;return r}function bp(r,t,e,i){for(var a=t.length,n=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function OA(r,t){for(var e=r.length,i=t.length,a=e>i?t:r,n=Math.min(e,i),o=a[n-1]||{color:[0,0,0,0],offset:0},s=n;s<Math.max(e,i);s++)a.push({offset:o.offset,color:o.color.slice()})}function BA(r,t,e){var i=r,a=t;if(!(!i.push||!a.push)){var n=i.length,o=a.length;if(n!==o){var s=n>o;if(s)i.length=o;else for(var l=n;l<o;l++)i.push(e===1?a[l]:$h.call(a[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=a[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=a[l][f])}}function lo(r){if(te(r)){var t=r.length;if(te(r[0])){for(var e=[],i=0;i<t;i++)e.push($h.call(r[i]));return e}return $h.call(r)}return r}function al(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function NA(r){return te(r&&r[0])?2:1}var vs=0,nl=1,C1=2,Qn=3,Uh=4,Yh=5,wp=6;function Tp(r){return r===Uh||r===Yh}function cs(r){return r===nl||r===C1}var Mn=[0,0,0,0],zA=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var a=this.keyframes,n=a.length,o=!1,s=wp,l=e;if(te(e)){var u=NA(e);s=u,(u===1&&!yt(e[0])||u===2&&!yt(e[0][0]))&&(o=!0)}else if(yt(e)&&!xo(e))s=vs;else if(V(e))if(!isNaN(+e))s=vs;else{var f=oe(e);f&&(l=f,s=Qn)}else if(iu(e)){var h=O({},l);h.colorStops=z(e.colorStops,function(v){return{offset:v.offset,color:oe(v.color)}}),x1(e)?s=Uh:b1(e)&&(s=Yh),l=h}n===0?this.valType=s:(s!==this.valType||s===wp)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=q(i)?i:f1[i]||hc(i)),a.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(p,g){return p.time-g.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=cs(a),u=Tp(a),f=0;f<n;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==n-1?BA(c,v,a):u&&OA(c.colorStops,v.colorStops))}if(!s&&a!==Yh&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var d=i[0].value,f=0;f<n;f++)a===vs?i[f].additiveValue=i[f].value-d:a===Qn?i[f].additiveValue=hs([],i[f].value,d,-1):cs(a)&&(i[f].additiveValue=a===nl?hs([],i[f].value,d,-1):bp([],i[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,a=i?"additiveValue":"value",n=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=n===Qn,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=c(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,y=g===0?1:c((e-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=i?this._additiveValue:u?Mn:t[l];if((cs(n)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(cs(n))n===nl?rf(m,v[a],d[a],y):kA(m,v[a],d[a],y);else if(Tp(n)){var _=v[a],S=d[a],b=n===Uh;t[l]={type:b?"linear":"radial",x:Er(_.x,S.x,y),y:Er(_.y,S.y,y),colorStops:z(_.colorStops,function(T,C){var A=S.colorStops[C];return{offset:Er(T.offset,A.offset,y),color:al(rf([],T.color,A.color,y))}}),global:S.global},b?(t[l].x2=Er(_.x2,S.x2,y),t[l].y2=Er(_.y2,S.y2,y)):t[l].r=Er(_.r,S.r,y)}else if(u)rf(m,v[a],d[a],y),i||(t[l]=al(m));else{var x=Er(v[a],d[a],y);i?this._additiveValue=x:t[l]=x}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,a=this._additiveValue;e===vs?t[i]=t[i]+a:e===Qn?(oe(t[i],Mn),hs(Mn,Mn,a,1),t[i]=al(Mn)):e===nl?hs(t[i],t[i],a,1):e===C1&&bp(t[i],t[i],a,1)},r}(),VA=function(){function r(t,e,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){nc("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,at(e),i)},r.prototype.whenWithKeys=function(t,e,i,a){for(var n=this._tracks,o=0;o<i.length;o++){var s=i[o],l=n[s];if(!l){l=n[s]=new zA(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===Qn&&u&&(u=al(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,lo(u),a),this._trackKeys.push(s)}l.addKeyframe(t,lo(e[s]),a)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var a=0;a<i.length;a++){var n=i[a].getTrack(t);n&&(e=n)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],a=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new pA({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(e._target,v);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(!!this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return z(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,a=this._trackKeys,n=0;n<t.length;n++){var o=i[t[n]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,n=0;n<a.length;n++)if(!i[a[n]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(!!t){e=e||this._trackKeys;for(var a=0;a<e.length;a++){var n=e[a],o=this._tracks[n];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[n]=lo(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||at(t);for(var i=0;i<e.length;i++){var a=e[i],n=this._tracks[a];if(!!n){var o=n.keyframes;if(o.length>1){var s=o.pop();n.addKeyframe(s.time,t[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r}(),cc=VA;function qa(){return new Date().getTime()}var FA=function(r){R(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(!!e.animation){var i=e.prev,a=e.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=qa()-this._pausedTime,a=i-this._time,n=this._head;n;){var o=n.next,s=n.step(i,a);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=i,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(gp(i),!e._paused&&e.update())}gp(i)},t.prototype.start=function(){this._running||(this._time=qa(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=qa(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=qa()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var a=new cc(e,i.loop);return this.addAnimator(a),a},t}(nr),GA=FA,HA=300,af=vt.domSupported,nf=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=z(r,function(a){var n=a.replace("mouse","pointer");return e.hasOwnProperty(n)?n:a});return{mouse:r,touch:t,pointer:i}}(),Cp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ap=!1;function Xh(r){var t=r.pointerType;return t==="pen"||t==="touch"}function WA(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function of(r){r&&(r.zrByTouch=!0)}function $A(r,t){return Ie(r.dom,new UA(r,t),!0)}function A1(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var UA=function(){function r(t,e){this.stopPropagation=Wt,this.stopImmediatePropagation=Wt,this.preventDefault=Wt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),qe={mousedown:function(r){r=Ie(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ie(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ie(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ie(this.dom,r);var t=r.toElement||r.relatedTarget;A1(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Ap=!0,r=Ie(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Ap||(r=Ie(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ie(this.dom,r),of(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),qe.mousemove.call(this,r),qe.mousedown.call(this,r)},touchmove:function(r){r=Ie(this.dom,r),of(r),this.handler.processGesture(r,"change"),qe.mousemove.call(this,r)},touchend:function(r){r=Ie(this.dom,r),of(r),this.handler.processGesture(r,"end"),qe.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<HA&&qe.click.call(this,r)},pointerdown:function(r){qe.mousedown.call(this,r)},pointermove:function(r){Xh(r)||qe.mousemove.call(this,r)},pointerup:function(r){qe.mouseup.call(this,r)},pointerout:function(r){Xh(r)||qe.mouseout.call(this,r)}};w(["click","dblclick","contextmenu"],function(r){qe[r]=function(t){t=Ie(this.dom,t),this.trigger(r,t)}});var Zh={pointermove:function(r){Xh(r)||Zh.mousemove.call(this,r)},pointerup:function(r){Zh.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function YA(r,t){var e=t.domHandlers;vt.pointerEventsSupported?w(nf.pointer,function(i){ol(t,i,function(a){e[i].call(r,a)})}):(vt.touchEventsSupported&&w(nf.touch,function(i){ol(t,i,function(a){e[i].call(r,a),WA(t)})}),w(nf.mouse,function(i){ol(t,i,function(a){a=fc(a),t.touching||e[i].call(r,a)})}))}function XA(r,t){vt.pointerEventsSupported?w(Cp.pointer,e):vt.touchEventsSupported||w(Cp.mouse,e);function e(i){function a(n){n=fc(n),A1(r,n.target)||(n=$A(r,n),t.domHandlers[i].call(r,n))}ol(t,i,a,{capture:!0})}}function ol(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,Vh(r.domTarget,t,e,i)}function sf(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&KC(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Mp=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),ZA=function(r){R(t,r);function t(e,i){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=i,a._localHandlerScope=new Mp(e,qe),af&&(a._globalHandlerScope=new Mp(document,Zh)),YA(a,a._localHandlerScope),a}return t.prototype.dispose=function(){sf(this._localHandlerScope),af&&sf(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,af&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?XA(this,i):sf(i)}},t}(nr),qA=ZA,M1=1;vt.hasGlobalWindow&&(M1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Dp=M1,qh=.4,Kh="#333",jh="#ccc",KA="#eee";function Fe(){return[1,0,0,1,0,0]}function Xo(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function ou(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function wr(r,t,e){var i=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],n=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=a,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function Hr(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Ci(r,t,e){var i=t[0],a=t[2],n=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=i*f+o*u,r[1]=-i*u+o*f,r[2]=a*f+s*u,r[3]=-a*u+f*s,r[4]=f*n+u*l,r[5]=f*l-u*n,r}function dc(r,t,e){var i=e[0],a=e[1];return r[0]=t[0]*i,r[1]=t[1]*a,r[2]=t[2]*i,r[3]=t[3]*a,r[4]=t[4]*i,r[5]=t[5]*a,r}function ba(r,t){var e=t[0],i=t[2],a=t[4],n=t[1],o=t[3],s=t[5],l=e*o-n*i;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*a)*l,r[5]=(n*a-e*s)*l,r):null}function jA(r){var t=Fe();return ou(t,r),t}var JA=Object.freeze(Object.defineProperty({__proto__:null,create:Fe,identity:Xo,copy:ou,mul:wr,translate:Hr,rotate:Ci,scale:dc,invert:ba,clone:jA},Symbol.toStringTag,{value:"Module"})),Pp=Xo,Lp=5e-5;function Di(r){return r>Lp||r<-Lp}var Pi=[],La=[],lf=Fe(),uf=Math.abs,QA=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Di(this.rotation)||Di(this.x)||Di(this.y)||Di(this.scaleX-1)||Di(this.scaleY-1)||Di(this.skewX)||Di(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&Pp(i);return}i=i||Fe(),e?this.getLocalTransform(i):Pp(i),t&&(e?wr(i,t,i):ou(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Pi);var i=Pi[0]<0?-1:1,a=Pi[1]<0?-1:1,n=((Pi[0]-i)*e+i)/Pi[0]||0,o=((Pi[1]-a)*e+a)/Pi[1]||0;t[0]*=n,t[1]*=n,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Fe(),ba(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(!!t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),n=Math.PI/2+a-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(n),e=Math.sqrt(e),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(wr(La,t.invTransform,e),e=La);var i=this.originX,a=this.originY;(i||a)&&(lf[4]=i,lf[5]=a,wr(La,e,lf),La[4]-=i,La[5]-=a,e=La),this.setLocalTransform(e)}},r.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):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],a=this.invTransform;return a&&Ft(i,i,a),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],a=this.transform;return a&&Ft(i,i,a),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&uf(t[0]-1)>1e-10&&uf(t[3]-1)>1e-10?Math.sqrt(uf(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){D1(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,a=t.originY||0,n=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||a||s||l){var d=i+s,p=a+l;e[4]=-d*n-c*p*o,e[5]=-p*o-v*d*n}else e[4]=e[5]=0;return e[0]=n,e[3]=o,e[1]=v*n,e[2]=c*o,u&&Ci(e,e,u),e[4]+=i+f,e[5]+=a+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Tr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function D1(r,t){for(var e=0;e<Tr.length;e++){var i=Tr[e];r[i]=t[i]}}var aa=QA,tM=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(!!t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,a){t.x=e.x+i.x*a,t.y=e.y+i.y*a},r.lerp=function(t,e,i,a){var n=1-a;t.x=n*e.x+a*i.x,t.y=n*e.y+a*i.y},r}(),et=tM,ds=Math.min,ps=Math.max,Li=new et,Ii=new et,Ri=new et,Ei=new et,Dn=new et,Pn=new et,eM=function(){function r(t,e,i,a){i<0&&(t=t+i,i=-i),a<0&&(e=e+a,a=-a),this.x=t,this.y=e,this.width=i,this.height=a}return r.prototype.union=function(t){var e=ds(t.x,this.x),i=ds(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ps(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ps(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,a=t.height/e.height,n=Fe();return Hr(n,n,[-e.x,-e.y]),dc(n,n,[i,a]),Hr(n,n,[t.x,t.y]),n},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,a=i.x,n=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,c=!(n<l||u<a||s<f||h<o);if(e){var v=1/0,d=0,p=Math.abs(n-l),g=Math.abs(u-a),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(p,g),S=Math.min(y,m);n<l||u<a?_>d&&(d=_,p<g?et.set(Pn,-p,0):et.set(Pn,g,0)):_<v&&(v=_,p<g?et.set(Dn,p,0):et.set(Dn,-g,0)),s<f||h<o?S>d&&(d=S,y<m?et.set(Pn,0,-y):et.set(Pn,0,m)):_<v&&(v=_,y<m?et.set(Dn,0,y):et.set(Dn,0,-m))}return e&&et.copy(e,c?Dn:Pn),c},r.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],n=i[3],o=i[4],s=i[5];t.x=e.x*a+o,t.y=e.y*n+s,t.width=e.width*a,t.height=e.height*n,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Li.x=Ri.x=e.x,Li.y=Ei.y=e.y,Ii.x=Ei.x=e.x+e.width,Ii.y=Ri.y=e.y+e.height,Li.transform(i),Ei.transform(i),Ii.transform(i),Ri.transform(i),t.x=ds(Li.x,Ii.x,Ri.x,Ei.x),t.y=ds(Li.y,Ii.y,Ri.y,Ei.y);var l=ps(Li.x,Ii.x,Ri.x,Ei.x),u=ps(Li.y,Ii.y,Ri.y,Ei.y);t.width=l-t.x,t.height=u-t.y},r}(),ht=eM,Ip={};function Te(r,t){t=t||mi;var e=Ip[t];e||(e=Ip[t]=new Yo(500));var i=e.get(r);return i==null&&(i=_i.measureText(r,t).width,e.put(r,i)),i}function Rp(r,t,e,i){var a=Te(r,t),n=su(t),o=to(0,a,e),s=Ya(0,n,i),l=new ht(o,s,a,n);return l}function Zo(r,t,e,i){var a=((r||"")+"").split(`
`),n=a.length;if(n===1)return Rp(a[0],t,e,i);for(var o=new ht(0,0,0,0),s=0;s<a.length;s++){var l=Rp(a[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function to(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Ya(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function su(r){return Te("\u56FD",r)}function ir(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Al(r,t,e){var i=t.position||"inside",a=t.distance!=null?t.distance:5,n=e.height,o=e.width,s=n/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=ir(i[0],e.width),u+=ir(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=a,u+=s,f="right",h="middle";break;case"right":l+=a+o,u+=s,h="middle";break;case"top":l+=o/2,u-=a,f="center",h="bottom";break;case"bottom":l+=o/2,u+=n+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=a,u+=s,h="middle";break;case"insideRight":l+=o-a,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=n-a,f="center",h="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=n-a,h="bottom";break;case"insideBottomRight":l+=o-a,u+=n-a,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var ff="__zr_normal__",hf=Tr.concat(["ignore"]),rM=Ve(Tr,function(r,t){return r[t]=!0,r},{ignore:!1}),Ia={},iM=new ht(0,0,0,0),pc=function(){function r(t){this.id=ac(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,n=e.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=a?this:null;var u=!1;if(n.copyTransform(e),i.position!=null){var f=iM;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ia,i,f):Al(Ia,i,f),n.x=Ia.x,n.y=Ia.y,o=Ia.align,s=Ia.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=ir(h[0],f.width),v=ir(h[1],f.height)),u=!0,n.originX=-n.x+c+(a?0:f.x),n.originY=-n.y+v+(a?0:f.y)}}i.rotation!=null&&(n.rotation=i.rotation);var d=i.offset;d&&(n.x+=d[0],n.y+=d[1],u||(n.originX=-d[0],n.originY=-d[1]));var p=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=gr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?jh:Kh},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&oe(e);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*a+(n?0:255)*(1-a);return i[3]=1,er(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},O(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(U(t))for(var i=t,a=at(i),n=0;n<a.length;n++){var o=a[n];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var a=this.animators[i],n=a.__fromStateTransition;if(!(a.getLoop()||n&&n!==ff)){var o=a.targetName,s=o?e[o]:e;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,hf)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var a=0;a<i.length;a++){var n=i[a];t[n]!=null&&!(n in e)&&(e[n]=this[n])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(ff,!1,t)},r.prototype.useState=function(t,e,i,a){var n=t===ff,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(ot(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!n){nc("State "+t+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||a);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,f),c&&c.useState(t,e,i,f),n?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~gr),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var a=[],n=this.currentStates,o=t.length,s=o===n.length;if(s){for(var l=0;l<o;l++)if(t[l]!==n[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&a.push(f)}var h=a[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~gr)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=ot(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var a=this.currentStates.slice(),n=ot(a,t),o=ot(a,e)>=0;n>=0?o?a.splice(n,1):a[n]=e:i&&!o&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,a=0;a<t.length;a++){var n=t[a];O(e,n),n.textConfig&&(i=i||{},O(i,n.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,a,n,o){var s=!(e&&a);e&&e.textConfig?(this.textConfig=O({},a?this.textConfig:i.textConfig),O(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<hf.length;f++){var h=hf[f],c=n&&rM[h];e&&e[h]!=null?c?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(c?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!n)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||i)[d]:e||i)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new aa,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=gr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(!!this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var a=t?this[t]:this,n=new cc(a,e,i);return t&&(n.targetName=t),this.addAnimator(n,t),n},r.prototype.addAnimator=function(t,e){var i=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(e)}).done(function(){var n=a.animators,o=ot(n,t);o>=0&&n.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,a=i.length,n=[],o=0;o<a;o++){var s=i[o];!t||t===s.scope?s.stop(e):n.push(s)}return this.animators=n,this},r.prototype.animateTo=function(t,e,i){vf(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){vf(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,a){for(var n=vf(this,e,i,a),o=0;o<n.length;o++)n[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=gr;function e(i,a,n,o){Object.defineProperty(t,i,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[n]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[n]},set:function(f){l[n]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();Yt(pc,nr);Yt(pc,aa);function vf(r,t,e,i,a){e=e||{};var n=[];P1(r,"",r,t,e,i,n,a);var o=n.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),n.length>0&&e.during&&n[0].during(function(d,p){e.during(p)});for(var c=0;c<n.length;c++){var v=n[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return n}function cf(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function aM(r){return te(r[0])}function nM(r,t,e){if(te(t[e]))if(te(r[e])||(r[e]=[]),Se(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),cf(r[e],t[e],i))}else{var a=t[e],n=r[e],o=a.length;if(aM(a))for(var s=a[0].length,l=0;l<o;l++)n[l]?cf(n[l],a[l],s):n[l]=Array.prototype.slice.call(a[l]);else cf(n,a,o);n.length=a.length}else r[e]=t[e]}function oM(r,t){return r===t||te(r)&&te(t)&&sM(r,t)}function sM(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function P1(r,t,e,i,a,n,o,s){for(var l=at(i),u=a.duration,f=a.delay,h=a.additive,c=a.setToFinal,v=!U(n),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=i[y];if(m!=null&&e[y]!=null&&(v||n[y]))if(U(m)&&!te(m)&&!iu(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}P1(r,y,e[y],m,a,n&&n[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var x=b.stopTracks(p);if(x){var T=ot(d,b);d.splice(T,1)}}}if(a.force||(p=Ct(p,function(M){return!oM(i[M],e[M])}),_=p.length),_>0||a.force&&!o.length){var C=void 0,A=void 0,D=void 0;if(s){A={},c&&(C={});for(var S=0;S<_;S++){var y=p[S];A[y]=e[y],c?C[y]=i[y]:e[y]=i[y]}}else if(c){D={};for(var S=0;S<_;S++){var y=p[S];D[y]=lo(e[y]),nM(e,i,y)}}var b=new cc(e,!1,!1,h?Ct(d,function(P){return P.targetName===t}):null);b.targetName=t,a.scope&&(b.scope=a.scope),c&&C&&b.whenWithKeys(0,C,p),D&&b.whenWithKeys(0,D,p),b.whenWithKeys(u==null?500:u,s?A:i,p).delay(f||0),r.addAnimator(b,t),o.push(b)}}var L1=pc,I1=function(r){R(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,a=0;a<i.length;a++)if(i[a].name===e)return i[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var a=this._children,n=a.indexOf(i);n>=0&&(a.splice(n,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var a=ot(this._children,e);return a>=0&&this.replaceAt(i,a),this},t.prototype.replaceAt=function(e,i){var a=this._children,n=a[i];if(e&&e!==this&&e.parent!==this&&e!==n){a[i]=e,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,a=this._children,n=ot(a,e);return n<0?this:(a.splice(n,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,a=0;a<e.length;a++){var n=e[a];i&&n.removeSelfFromZr(i),n.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var a=this._children,n=0;n<a.length;n++){var o=a[n];e.call(i,o,n)}return this},t.prototype.traverse=function(e,i){for(var a=0;a<this._children.length;a++){var n=this._children[a],o=e.call(i,n);n.isGroup&&!o&&n.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new ht(0,0,0,0),a=e||this._children,n=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(n);f?(ht.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t}(L1);I1.prototype.type="group";var rt=I1;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var sl={},na={};function lM(r){delete na[r]}function uM(r){if(!r)return!1;if(typeof r=="string")return To(r,1)<qh;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,a=0;a<i;a++)e+=To(t[a].color,1);return e/=i,e<qh}return!1}var fM=function(){function r(t,e,i){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var n=new uA,o=i.renderer||"canvas";sl[o]||(o=at(sl)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new sl[o](e,n,i,t),l=i.ssr||s.ssrOnly;this.storage=n,this.painter=s;var u=!vt.node&&!vt.worker&&!l?new qA(s.getViewportRoot(),s.root):null;this.handler=new aA(n,s,u,s.root),this.animation=new GA({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},r.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=uM(t)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(t){var e,i=qa();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var a=qa();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof rt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,lM(this.id)},r}();function Jh(r,t){var e=new fM(ac(),r,t);return na[e.id]=e,e}function hM(r){r.dispose()}function vM(){for(var r in na)na.hasOwnProperty(r)&&na[r].dispose();na={}}function cM(r){return na[r]}function R1(r,t){sl[r]=t}var dM="5.3.2",pM=Object.freeze(Object.defineProperty({__proto__:null,init:Jh,dispose:hM,disposeAll:vM,getInstance:cM,registerPainter:R1,version:dM},Symbol.toStringTag,{value:"Module"})),Ep=1e-4,E1=20;function gM(r){return r.replace(/^\s+|\s+$/g,"")}function bt(r,t,e,i){var a=t[0],n=t[1],o=e[0],s=e[1],l=n-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=a)return o;if(r>=n)return s}else{if(r>=a)return o;if(r<=n)return s}else{if(r===a)return o;if(r===n)return s}return(r-a)/l*u+o}function K(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return V(r)?gM(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Rt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),E1),r=(+r).toFixed(t),e?r:+r}function _r(r){return r.sort(function(t,e){return t-e}),r}function Sr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return k1(r)}function k1(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,a=e>0?e:t.length,n=t.indexOf("."),o=n<0?0:a-1-n;return Math.max(0,o-i)}function gc(r,t){var e=Math.log,i=Math.LN10,a=Math.floor(e(r[1]-r[0])/i),n=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-a+n,0),20);return isFinite(o)?o:20}function O1(r,t,e){if(!r[t])return 0;var i=Ve(r,function(d,p){return d+(isNaN(p)?0:p)},0);if(i===0)return 0;for(var a=Math.pow(10,e),n=z(r,function(d){return(isNaN(d)?0:d)/i*a*100}),o=a*100,s=z(n,function(d){return Math.floor(d)}),l=Ve(s,function(d,p){return d+p},0),u=z(n,function(d,p){return d-s[p]});l<o;){for(var f=Number.NEGATIVE_INFINITY,h=null,c=0,v=u.length;c<v;++c)u[c]>f&&(f=u[c],h=c);++s[h],u[h]=0,++l}return s[t]/a}function yM(r,t){var e=Math.max(Sr(r),Sr(t)),i=r+t;return e>E1?i:Rt(i,e)}var mM=9007199254740991;function yc(r){var t=Math.PI*2;return(r%t+t)%t}function Co(r){return r>-Ep&&r<Ep}var _M=/^(?:(\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 Ce(r){if(r instanceof Date)return r;if(V(r)){var t=_M.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function B1(r){return Math.pow(10,lu(r))}function lu(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function mc(r,t){var e=lu(r),i=Math.pow(10,e),a=r/i,n;return t?a<1.5?n=1:a<2.5?n=2:a<4?n=3:a<7?n=5:n=10:a<1?n=1:a<2?n=2:a<3?n=3:a<5?n=5:n=10,r=n*i,e>=-20?+r.toFixed(e<0?-e:0):r}function SM(r,t){var e=(r.length-1)*t+1,i=Math.floor(e),a=+r[i-1],n=e-i;return n?a+n*(r[i]-a):a}function Qh(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,i=0;i<r.length;){for(var a=r[i].interval,n=r[i].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,n[o]=o?1:1-e),t=a[o],e=n[o];a[0]===a[1]&&n[0]*n[1]!==1?r.splice(i,1):i++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Wr(r){var t=parseFloat(r);return t==r&&(t!==0||!V(r)||r.indexOf("x")<=0)?t:NaN}function _c(r){return!isNaN(Wr(r))}function N1(){return Math.round(Math.random()*9)}function z1(r,t){return t===0?r:z1(t,r%t)}function kp(r,t){return r==null?t:t==null?r:r*t/z1(r,t)}function ae(r){throw new Error(r)}function Op(r,t,e){return(t-r)*e+r}var V1="series\0",F1="\0_ec_\0";function At(r){return r instanceof Array?r:r==null?[]:[r]}function Ml(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,a=e.length;i<a;i++){var n=e[i];!r.emphasis[t].hasOwnProperty(n)&&r[t].hasOwnProperty(n)&&(r.emphasis[t][n]=r[t][n])}}}var Bp=["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 mn(r){return U(r)&&!N(r)&&!(r instanceof Date)?r.value:r}function xM(r){return U(r)&&!(r instanceof Array)}function G1(r,t,e){var i=e==="normalMerge",a=e==="replaceMerge",n=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=$();w(t,function(l,u){if(!U(l)){t[u]=null;return}});var s=bM(r,o,e);return(i||a)&&wM(s,r,o,t),i&&TM(s,t),i||a?CM(s,t,a):n&&AM(s,t),MM(s),s}function bM(r,t,e){var i=[];if(e==="replaceAll")return i;for(var a=0;a<r.length;a++){var n=r[a];n&&n.id!=null&&t.set(n.id,a),i.push({existing:e==="replaceMerge"||Ao(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return i}function wM(r,t,e,i){w(i,function(a,n){if(!(!a||a.id==null)){var o=uo(a.id),s=e.get(o);if(s!=null){var l=r[s];le(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],i[n]=null}}})}function TM(r,t){w(t,function(e,i){if(!(!e||e.name==null))for(var a=0;a<r.length;a++){var n=r[a].existing;if(!r[a].newOption&&n&&(n.id==null||e.id==null)&&!Ao(e)&&!Ao(n)&&H1("name",n,e)){r[a].newOption=e,t[i]=null;return}}})}function CM(r,t,e){w(t,function(i){if(!!i){for(var a,n=0;(a=r[n])&&(a.newOption||Ao(a.existing)||a.existing&&i.id!=null&&!H1("id",i,a.existing));)n++;a?(a.newOption=i,a.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),n++}})}function AM(r,t){w(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function MM(r){var t=$();w(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),w(r,function(e){var i=e.newOption;le(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),w(r,function(e,i){var a=e.existing,n=e.newOption,o=e.keyInfo;if(!!U(n)){if(o.name=n.name!=null?uo(n.name):a?a.name:V1+i,a)o.id=uo(a.id);else if(n.id!=null)o.id=uo(n.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function H1(r,t,e){var i=Jt(t[r],null),a=Jt(e[r],null);return i!=null&&a!=null&&i===a}function uo(r){return Jt(r,"")}function Jt(r,t){return r==null?t:V(r)?r:yt(r)||ml(r)?r+"":t}function Sc(r){var t=r.name;return!!(t&&t.indexOf(V1))}function Ao(r){return r&&r.id!=null&&uo(r.id).indexOf(F1)===0}function DM(r){return F1+r}function PM(r,t,e){w(r,function(i){var a=i.newOption;U(a)&&(i.keyInfo.mainType=t,i.keyInfo.subType=LM(t,a,i.existing,e))})}function LM(r,t,e,i){var a=t.type?t.type:e?e.subType:i.determineSubType(r,t);return a}function IM(r,t){var e={},i={};return a(r||[],e),a(t||[],i,e),[n(e),n(i)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=Jt(o[u].seriesId,null);if(h==null)return;for(var c=At(o[u].dataIndex),v=l&&l[h],d=0,p=c.length;d<p;d++){var g=c[d];v&&v[g]?v[g]=null:(s[h]||(s[h]={}))[g]=1}}}function n(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=n(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function ya(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return N(t.dataIndex)?z(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return N(t.name)?z(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function xt(){var r="__ec_inner_"+RM++;return function(t){return t[r]||(t[r]={})}}var RM=N1();function fo(r,t,e){var i=xc(t,e),a=i.mainTypeSpecified,n=i.queryOptionMap,o=i.others,s=o,l=e?e.defaultMainType:null;return!a&&l&&n.set(l,{}),n.each(function(u,f){var h=qo(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function xc(r,t){var e;if(V(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var a=$(),n={},o=!1;return w(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){n[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ot(t.includeMainTypes,f)<0)){o=o||!!f;var c=a.get(f)||a.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:n}}var zt={useDefault:!0,enableAll:!1,enableNone:!1},EM={useDefault:!1,enableAll:!0,enableNone:!0};function qo(r,t,e,i){i=i||zt;var a=e.index,n=e.id,o=e.name,s={models:null,specified:a!=null||n!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(le(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(le(i.enableAll,'`"all"` is not a valid value on index option.'),a=n=o=null),s.models=r.queryComponents({mainType:t,index:a,id:n,name:o}),s)}function W1(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function kM(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function OM(r){return r==="auto"?vt.domSupported?"html":"richText":r||"html"}function NG(r,t){var e=$(),i=[];return w(r,function(a){var n=t(a);(e.get(n)||(i.push(n),e.set(n,[]))).push(a)}),{keys:i,buckets:e}}function $1(r,t,e,i,a){var n=t==null||t==="auto";if(i==null)return i;if(yt(i)){var o=Op(e||0,i,a);return Rt(o,n?Math.max(Sr(e||0),Sr(i)):t)}else{if(V(i))return a<1?e:i;for(var s=[],l=e,u=i,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(a<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,d=u[h],o=Op(v,d,a);s[h]=Rt(o,n?Math.max(Sr(v),Sr(d)):t)}}return s}}var BM=".",ki="___EC__COMPONENT__CONTAINER___",U1="___EC__EXTENDED_CLASS___";function xr(r){var t={main:"",sub:""};if(r){var e=r.split(BM);t.main=e[0]||"",t.sub=e[1]||""}return t}function NM(r){le(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function zM(r){return!!(r&&r[U1])}function bc(r,t){r.$constructor=r,r.extend=function(e){var i=this,a;return VM(i)?a=function(n){R(o,n);function o(){return n.apply(this,arguments)||this}return o}(i):(a=function(){(e.$constructor||i).apply(this,arguments)},oc(a,this)),O(a.prototype,e),a[U1]=!0,a.extend=this.extend,a.superCall=HM,a.superApply=WM,a.superClass=i,a}}function VM(r){return q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Y1(r,t){r.extend=t.extend}var FM=Math.round(Math.random()*10);function GM(r){var t=["__\0is_clz",FM++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function HM(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function WM(r,t,e){return this.superClass.prototype[t].apply(r,e)}function uu(r){var t={};r.registerClass=function(i){var a=i.type||i.prototype.type;if(a){NM(a),i.prototype.type=a;var n=xr(a);if(!n.sub)t[n.main]=i;else if(n.sub!==ki){var o=e(n);o[n.sub]=i}}return i},r.getClass=function(i,a,n){var o=t[i];if(o&&o[ki]&&(o=a?o[a]:null),n&&!o)throw new Error(a?"Component "+i+"."+(a||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var a=xr(i),n=[],o=t[a.main];return o&&o[ki]?w(o,function(s,l){l!==ki&&n.push(s)}):n.push(o),n},r.hasClass=function(i){var a=xr(i);return!!t[a.main]},r.getAllClassMainTypes=function(){var i=[];return w(t,function(a,n){i.push(n)}),i},r.hasSubTypes=function(i){var a=xr(i),n=t[a.main];return n&&n[ki]};function e(i){var a=t[i.main];return(!a||!a[ki])&&(a=t[i.main]={},a[ki]=!0),a}}function ln(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,a,n){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&ot(a,l)>=0||n&&ot(n,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var $M=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],UM=ln($M),YM=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return UM(this,t,e)},r}(),tv=new Yo(50);function XM(r){if(typeof r=="string"){var t=tv.get(r);return t&&t.image}else return r}function wc(r,t,e,i,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var n=tv.get(r),o={hostEl:e,cb:i,cbPayload:a};return n?(t=n.image,!fu(t)&&n.pending.push(o)):(t=_i.loadImage(r,Np,Np),t.__zrImageSrc=r,tv.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Np(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function fu(r){return r&&r.width&&r.height}var df=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function X1(r,t,e,i,a){if(!t)return"";var n=(r+"").split(`
`);a=Z1(t,e,i,a);for(var o=0,s=n.length;o<s;o++)n[o]=q1(n[o],a);return n.join(`
`)}function Z1(r,t,e,i){i=i||{};var a=O({},i);a.font=t,e=it(e,"..."),a.maxIterations=it(i.maxIterations,2);var n=a.minChar=it(i.minChar,0);a.cnCharWidth=Te("\u56FD",t);var o=a.ascCharWidth=Te("a",t);a.placeholder=it(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<n&&s>=o;l++)s-=o;var u=Te(e,t);return u>s&&(e="",u=0),s=r-u,a.ellipsis=e,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=r,a}function q1(r,t){var e=t.containerWidth,i=t.font,a=t.contentWidth;if(!e)return"";var n=Te(r,i);if(n<=e)return r;for(var o=0;;o++){if(n<=a||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?ZM(r,a,t.ascCharWidth,t.cnCharWidth):n>0?Math.floor(r.length*a/n):0;r=r.substr(0,s),n=Te(r,i)}return r===""&&(r=t.placeholder),r}function ZM(r,t,e,i){for(var a=0,n=0,o=r.length;n<o&&a<t;n++){var s=r.charCodeAt(n);a+=0<=s&&s<=127?e:i}return n}function qM(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,a=t.font,n=e==="truncate",o=su(a),s=it(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?K1(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
`):[];var c=h.length*s,v=it(t.height,c);if(c>v&&u){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&n&&f!=null)for(var p=Z1(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<h.length;g++)h[g]=q1(h[g],p);for(var y=v,m=0,g=0;g<h.length;g++)m=Math.max(Te(h[g],a),m);f==null&&(f=m);var _=m;return i&&(y+=i[0]+i[2],_+=i[1]+i[3],f+=i[1]+i[3]),l&&(_=f),{lines:h,height:v,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:c,width:f}}var KM=function(){function r(){}return r}(),zp=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),jM=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function JM(r,t){var e=new jM;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,a=t.height,n=t.overflow,o=(n==="break"||n==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:n==="breakAll"}:null,s=df.lastIndex=0,l;(l=df.exec(r))!=null;){var u=l.index;u>s&&pf(e,r.substring(s,u),t,o),pf(e,l[2],t,o,l[1]),s=df.lastIndex}s<r.length&&pf(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,d=n==="truncate",p=t.lineOverflow==="truncate";function g(B,F,Y){B.width=F,B.lineHeight=Y,h+=Y,c=Math.max(c,F)}t:for(var y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=0,S=0,b=0;b<m.tokens.length;b++){var x=m.tokens[b],T=x.styleName&&t.rich[x.styleName]||{},C=x.textPadding=T.padding,A=C?C[1]+C[3]:0,D=x.font=T.font||t.font;x.contentHeight=su(D);var M=it(T.height,x.contentHeight);if(x.innerHeight=M,C&&(M+=C[0]+C[2]),x.height=M,x.lineHeight=Ja(T.lineHeight,t.lineHeight,M),x.align=T&&T.align||t.align,x.verticalAlign=T&&T.verticalAlign||"middle",p&&a!=null&&h+x.lineHeight>a){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var P=T.width,L=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")x.percentWidth=P,f.push(x),x.contentWidth=Te(x.text,D);else{if(L){var I=T.backgroundColor,E=I&&I.image;E&&(E=XM(E),fu(E)&&(x.width=Math.max(x.width,E.width*M/E.height)))}var k=d&&i!=null?i-S:null;k!=null&&k<x.width?!L||k<A?(x.text="",x.width=x.contentWidth=0):(x.text=X1(x.text,k-A,D,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=Te(x.text,D)):x.contentWidth=Te(x.text,D)}x.width+=A,S+=x.width,T&&(_=Math.max(_,x.lineHeight))}g(m,S,_)}e.outerWidth=e.width=it(i,c),e.outerHeight=e.height=it(a,h),e.contentHeight=h,e.contentWidth=c,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var x=f[y],W=x.percentWidth;x.width=parseInt(W,10)/100*e.width}return e}function pf(r,t,e,i,a){var n=t==="",o=a&&e.rich[a]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=ir(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
`),u=!0),i.accumWidth=d}else{var p=K1(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=p.accumWidth+v,h=p.linesWidths,f=p.lines}}else f=t.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new KM;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!n,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Te(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new zp)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||n)&&_.push(m)}else s.push(new zp([m]))}}function QM(r){var t=r.charCodeAt(0);return t>=33&&t<=383}var tD=Ve(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function eD(r){return QM(r)?!!tD[r]:!0}function K1(r,t,e,i,a){for(var n=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
`){l&&(s+=l,f+=u),n.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Te(c,t),d=i?!1:!eD(c);if(n.length?f+v>e:a+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=c,f=v)):d?(n.push(l),o.push(u),l=c,u=v):(n.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=a),{accumWidth:f,lines:n,linesWidths:o}}var ev="__zr_style_"+Math.round(Math.random()*10),fa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},hu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fa[ev]=!0;var Vp=["z","z2","invisible"],rD=["invisible"],iD=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=at(e),a=0;a<i.length;a++){var n=i[a];n==="style"?this.useStyle(e[n]):r.prototype.attrKV.call(this,n,e[n])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,a,n){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&aD(this,e,i)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(n&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var a=this.transformCoordToLocal(e,i),n=this.getBoundingRect();return n.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),n=this.style,o=n.shadowBlur||0,s=n.shadowOffsetX||0,l=n.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ht(0,0,0,0)),i?ht.applyTransform(e,a,i):e.copy(a),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new ht(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:O(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Jn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Jn)},t.prototype.styleUpdated=function(){this.__dirty&=~Jn},t.prototype.createStyle=function(e){return Uo(fa,e)},t.prototype.useStyle=function(e){e[ev]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[ev]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Vp)},t.prototype._applyStateObj=function(e,i,a,n,o,s){r.prototype._applyStateObj.call(this,e,i,a,n,o,s);var l=!(i&&n),u;if(i&&i.style?o?n?u=i.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),n?this.style:a.style),this._mergeStyle(u,i.style)):l&&(u=a.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=at(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=at(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?rD:Vp,c=0;c<p.length;c++){var v=p[c];i&&i[v]!=null?this[v]=i[v]:l&&a[v]!=null&&(this[v]=a[v])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),a,n=0;n<e.length;n++){var o=e[n];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(i.style=a),i},t.prototype._mergeStyle=function(e,i){return O(e,i),e},t.prototype.getAnimationStyleProps=function(){return hu},t.initDefaultProps=function(){var e=t.prototype;e.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,e.__dirty=gr|Jn}(),t}(L1),gf=new ht(0,0,0,0),yf=new ht(0,0,0,0);function aD(r,t,e){return gf.copy(r.getBoundingRect()),r.transform&&gf.applyTransform(r.transform),yf.width=t,yf.height=e,!gf.intersect(yf)}var $r=iD,ge=Math.min,ye=Math.max,mf=Math.sin,_f=Math.cos,Oi=Math.PI*2,gs=xa(),ys=xa(),ms=xa();function zG(r,t,e){if(r.length!==0){for(var i=r[0],a=i[0],n=i[0],o=i[1],s=i[1],l=1;l<r.length;l++)i=r[l],a=ge(a,i[0]),n=ye(n,i[0]),o=ge(o,i[1]),s=ye(s,i[1]);t[0]=a,t[1]=o,e[0]=n,e[1]=s}}function Fp(r,t,e,i,a,n){a[0]=ge(r,e),a[1]=ge(t,i),n[0]=ye(r,e),n[1]=ye(t,i)}var Gp=[],Hp=[];function nD(r,t,e,i,a,n,o,s,l,u){var f=c1,h=Bt,c=f(r,e,a,o,Gp);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,a,o,Gp[v]);l[0]=ge(d,l[0]),u[0]=ye(d,u[0])}c=f(t,i,n,s,Hp);for(var v=0;v<c;v++){var p=h(t,i,n,s,Hp[v]);l[1]=ge(p,l[1]),u[1]=ye(p,u[1])}l[0]=ge(r,l[0]),u[0]=ye(r,u[0]),l[0]=ge(o,l[0]),u[0]=ye(o,u[0]),l[1]=ge(t,l[1]),u[1]=ye(t,u[1]),l[1]=ge(s,l[1]),u[1]=ye(s,u[1])}function oD(r,t,e,i,a,n,o,s){var l=p1,u=Kt,f=ye(ge(l(r,e,a),1),0),h=ye(ge(l(t,i,n),1),0),c=u(r,e,a,f),v=u(t,i,n,h);o[0]=ge(r,a,c),o[1]=ge(t,n,v),s[0]=ye(r,a,c),s[1]=ye(t,n,v)}function sD(r,t,e,i,a,n,o,s,l){var u=Or,f=Br,h=Math.abs(a-n);if(h%Oi<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(gs[0]=_f(a)*e+r,gs[1]=mf(a)*i+t,ys[0]=_f(n)*e+r,ys[1]=mf(n)*i+t,u(s,gs,ys),f(l,gs,ys),a=a%Oi,a<0&&(a=a+Oi),n=n%Oi,n<0&&(n=n+Oi),a>n&&!o?n+=Oi:a<n&&o&&(a+=Oi),o){var c=n;n=a,a=c}for(var v=0;v<n;v+=Math.PI/2)v>a&&(ms[0]=_f(v)*e+r,ms[1]=mf(v)*i+t,u(s,ms,s),f(l,ms,l))}var mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Bi=[],Ni=[],ur=[],Jr=[],fr=[],hr=[],Sf=Math.min,xf=Math.max,zi=Math.cos,Vi=Math.sin,Lr=Math.abs,rv=Math.PI,oi=rv*2,bf=typeof Float32Array!="undefined",Ln=[];function wf(r){var t=Math.round(r/rv*1e8)/1e8;return t%2*rv}function lD(r,t){var e=wf(r[0]);e<0&&(e+=oi);var i=e-r[0],a=r[1];a+=i,!t&&a-e>=oi?a=e+oi:t&&e-a>=oi?a=e-oi:!t&&e>a?a=e+(oi-wf(e-a)):t&&e<a&&(a=e-(oi-wf(a-e))),r[0]=e,r[1]=a}var uD=function(){function r(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=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=Lr(i/Dp/t)||0,this._uy=Lr(i/Dp/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(mt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Lr(t-this._xi),a=Lr(e-this._yi),n=i>this._ux||a>this._uy;if(this.addData(mt.L,t,e),this._ctx&&n&&this._ctx.lineTo(t,e),n)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,a,n,o){return this._drawPendingPt(),this.addData(mt.C,t,e,i,a,n,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,a,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,a){return this._drawPendingPt(),this.addData(mt.Q,t,e,i,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,a),this._xi=i,this._yi=a,this},r.prototype.arc=function(t,e,i,a,n,o){this._drawPendingPt(),Ln[0]=a,Ln[1]=n,lD(Ln,o),a=Ln[0],n=Ln[1];var s=n-a;return this.addData(mt.A,t,e,i,i,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,a,n,o),this._xi=zi(n)*i+t,this._yi=Vi(n)*i+e,this},r.prototype.arcTo=function(t,e,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,a,n),this},r.prototype.rect=function(t,e,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,a),this.addData(mt.R,t,e,i,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(mt.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&bf&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,a=this._len,n=0;n<e;n++)i+=t[n].len();bf&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+i));for(var n=0;n<e;n++)for(var o=t[n].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},r.prototype.addData=function(t,e,i,a,n,o,s,l,u){if(!!this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.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}},r.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,bf&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ur[0]=ur[1]=fr[0]=fr[1]=Number.MAX_VALUE,Jr[0]=Jr[1]=hr[0]=hr[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,a=0,n=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],i=t[o+1],a=e,n=i),s){case mt.M:e=a=t[o++],i=n=t[o++],fr[0]=a,fr[1]=n,hr[0]=a,hr[1]=n;break;case mt.L:Fp(e,i,t[o],t[o+1],fr,hr),e=t[o++],i=t[o++];break;case mt.C:nD(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],fr,hr),e=t[o++],i=t[o++];break;case mt.Q:oD(e,i,t[o++],t[o++],t[o],t[o+1],fr,hr),e=t[o++],i=t[o++];break;case mt.A:var u=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var p=!t[o++];l&&(a=zi(v)*h+u,n=Vi(v)*c+f),sD(u,f,h,c,v,d,p,fr,hr),e=zi(d)*h+u,i=Vi(d)*c+f;break;case mt.R:a=e=t[o++],n=i=t[o++];var g=t[o++],y=t[o++];Fp(a,n,a+g,n+y,fr,hr);break;case mt.Z:e=a,i=n;break}Or(ur,ur,fr),Br(Jr,Jr,hr)}return o===0&&(ur[0]=ur[1]=Jr[0]=Jr[1]=0),new ht(ur[0],ur[1],Jr[0]-ur[0],Jr[1]-ur[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,a=this._uy,n=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(n=t[c],o=t[c+1],s=n,l=o);var p=-1;switch(v){case mt.M:n=s=t[c++],o=l=t[c++];break;case mt.L:{var g=t[c++],y=t[c++],m=g-n,_=y-o;(Lr(m)>i||Lr(_)>a||c===e-1)&&(p=Math.sqrt(m*m+_*_),n=g,o=y);break}case mt.C:{var S=t[c++],b=t[c++],g=t[c++],y=t[c++],x=t[c++],T=t[c++];p=fA(n,o,S,b,g,y,x,T,10),n=x,o=T;break}case mt.Q:{var S=t[c++],b=t[c++],g=t[c++],y=t[c++];p=vA(n,o,S,b,g,y,10),n=g,o=y;break}case mt.A:var C=t[c++],A=t[c++],D=t[c++],M=t[c++],P=t[c++],L=t[c++],I=L+P;c+=1,t[c++],d&&(s=zi(P)*D+C,l=Vi(P)*M+A),p=xf(D,M)*Sf(oi,Math.abs(L)),n=zi(I)*D+C,o=Vi(I)*M+A;break;case mt.R:{s=n=t[c++],l=o=t[c++];var E=t[c++],k=t[c++];p=E*2+k*2;break}case mt.Z:{var m=s-n,_=l-o;p=Math.sqrt(m*m+_*_),n=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,a=this._ux,n=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,p,g=0,y=0,m,_=0,S,b;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m))return;t:for(var x=0;x<o;){var T=i[x++],C=x===1;switch(C&&(u=i[x],f=i[x+1],s=u,l=f),T!==mt.L&&_>0&&(t.lineTo(S,b),_=0),T){case mt.M:s=u=i[x++],l=f=i[x++],t.moveTo(u,f);break;case mt.L:{h=i[x++],c=i[x++];var A=Lr(h-u),D=Lr(c-f);if(A>a||D>n){if(v){var M=d[y++];if(g+M>m){var P=(m-g)/M;t.lineTo(u*(1-P)+h*P,f*(1-P)+c*P);break t}g+=M}t.lineTo(h,c),u=h,f=c,_=0}else{var L=A*A+D*D;L>_&&(S=h,b=c,_=L)}break}case mt.C:{var I=i[x++],E=i[x++],k=i[x++],W=i[x++],B=i[x++],F=i[x++];if(v){var M=d[y++];if(g+M>m){var P=(m-g)/M;wl(u,I,k,B,P,Bi),wl(f,E,W,F,P,Ni),t.bezierCurveTo(Bi[1],Ni[1],Bi[2],Ni[2],Bi[3],Ni[3]);break t}g+=M}t.bezierCurveTo(I,E,k,W,B,F),u=B,f=F;break}case mt.Q:{var I=i[x++],E=i[x++],k=i[x++],W=i[x++];if(v){var M=d[y++];if(g+M>m){var P=(m-g)/M;Tl(u,I,k,P,Bi),Tl(f,E,W,P,Ni),t.quadraticCurveTo(Bi[1],Ni[1],Bi[2],Ni[2]);break t}g+=M}t.quadraticCurveTo(I,E,k,W),u=k,f=W;break}case mt.A:var Y=i[x++],tt=i[x++],J=i[x++],st=i[x++],ct=i[x++],Et=i[x++],St=i[x++],Xt=!i[x++],Vt=J>st?J:st,Pt=Lr(J-st)>.001,wt=ct+Et,j=!1;if(v){var M=d[y++];g+M>m&&(wt=ct+Et*(m-g)/M,j=!0),g+=M}if(Pt&&t.ellipse?t.ellipse(Y,tt,J,st,St,ct,wt,Xt):t.arc(Y,tt,Vt,ct,wt,Xt),j)break t;C&&(s=zi(ct)*J+Y,l=Vi(ct)*st+tt),u=zi(wt)*J+Y,f=Vi(wt)*st+tt;break;case mt.R:s=u=i[x],l=f=i[x+1],h=i[x++],c=i[x++];var lt=i[x++],he=i[x++];if(v){var M=d[y++];if(g+M>m){var Lt=m-g;t.moveTo(h,c),t.lineTo(h+Sf(Lt,lt),c),Lt-=lt,Lt>0&&t.lineTo(h+lt,c+Sf(Lt,he)),Lt-=he,Lt>0&&t.lineTo(h+xf(lt-Lt,0),c+he),Lt-=lt,Lt>0&&t.lineTo(h,c+xf(he-Lt,0));break t}g+=M}t.rect(h,c,lt,he);break;case mt.Z:if(v){var M=d[y++];if(g+M>m){var P=(m-g)/M;t.lineTo(u*(1-P)+s*P,f*(1-P)+l*P);break t}g+=M}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=mt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}(),Ur=uD;function Ra(r,t,e,i,a,n,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||n>r+s&&n>e+s||n<r-s&&n<e-s)return!1;if(r!==e)l=(t-i)/(r-e),u=(r*i-e*t)/(r-e);else return Math.abs(n-r)<=s/2;var f=l*n-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function fD(r,t,e,i,a,n,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>i+h&&f>n+h&&f>s+h||f<t-h&&f<i-h&&f<n-h&&f<s-h||u>r+h&&u>e+h&&u>a+h&&u>o+h||u<r-h&&u<e-h&&u<a-h&&u<o-h)return!1;var c=d1(r,t,e,i,a,n,o,s,u,f,null);return c<=h/2}function hD(r,t,e,i,a,n,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>i+u&&l>n+u||l<t-u&&l<i-u&&l<n-u||s>r+u&&s>e+u&&s>a+u||s<r-u&&s<e-u&&s<a-u)return!1;var f=g1(r,t,e,i,a,n,s,l,null);return f<=u/2}var Wp=Math.PI*2;function hi(r){return r%=Wp,r<0&&(r+=Wp),r}var In=Math.PI*2;function vD(r,t,e,i,a,n,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(i-a)%In<1e-4)return!0;if(n){var h=i;i=hi(a),a=hi(h)}else i=hi(i),a=hi(a);i>a&&(a+=In);var c=Math.atan2(l,s);return c<0&&(c+=In),c>=i&&c<=a||c+In>=i&&c+In<=a}function kr(r,t,e,i,a,n){if(n>t&&n>i||n<t&&n<i||i===t)return 0;var o=(n-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var l=o*(e-r)+r;return l===a?1/0:l>a?s:0}var Qr=Ur.CMD,Fi=Math.PI*2,cD=1e-4;function dD(r,t){return Math.abs(r-t)<cD}var re=[-1,-1,-1],Ee=[-1,-1];function pD(){var r=Ee[0];Ee[0]=Ee[1],Ee[1]=r}function gD(r,t,e,i,a,n,o,s,l,u){if(u>t&&u>i&&u>n&&u>s||u<t&&u<i&&u<n&&u<s)return 0;var f=bl(t,i,n,s,u,re);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=re[p],y=g===0||g===1?.5:1,m=Bt(r,e,a,o,g);m<l||(c<0&&(c=c1(t,i,n,s,Ee),Ee[1]<Ee[0]&&c>1&&pD(),v=Bt(t,i,n,s,Ee[0]),c>1&&(d=Bt(t,i,n,s,Ee[1]))),c===2?g<Ee[0]?h+=v<t?y:-y:g<Ee[1]?h+=d<v?y:-y:h+=s<d?y:-y:g<Ee[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function yD(r,t,e,i,a,n,o,s){if(s>t&&s>i&&s>n||s<t&&s<i&&s<n)return 0;var l=hA(t,i,n,s,re);if(l===0)return 0;var u=p1(t,i,n);if(u>=0&&u<=1){for(var f=0,h=Kt(t,i,n,u),c=0;c<l;c++){var v=re[c]===0||re[c]===1?.5:1,d=Kt(r,e,a,re[c]);d<o||(re[c]<u?f+=h<t?v:-v:f+=n<h?v:-v)}return f}else{var v=re[0]===0||re[0]===1?.5:1,d=Kt(r,e,a,re[0]);return d<o?0:n<t?v:-v}}function mD(r,t,e,i,a,n,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);re[0]=-l,re[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=Fi-1e-4){i=0,a=Fi;var f=n?1:-1;return o>=re[0]+r&&o<=re[1]+r?f:0}if(i>a){var h=i;i=a,a=h}i<0&&(i+=Fi,a+=Fi);for(var c=0,v=0;v<2;v++){var d=re[v];if(d+r>o){var p=Math.atan2(s,d),f=n?1:-1;p<0&&(p=Fi+p),(p>=i&&p<=a||p+Fi>=i&&p+Fi<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),c+=f)}}return c}function j1(r,t,e,i,a){for(var n=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var p=n[d++],g=d===1;switch(p===Qr.M&&d>1&&(e||(s+=kr(l,u,f,h,i,a))),g&&(l=n[d],u=n[d+1],f=l,h=u),p){case Qr.M:f=n[d++],h=n[d++],l=f,u=h;break;case Qr.L:if(e){if(Ra(l,u,n[d],n[d+1],t,i,a))return!0}else s+=kr(l,u,n[d],n[d+1],i,a)||0;l=n[d++],u=n[d++];break;case Qr.C:if(e){if(fD(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],t,i,a))return!0}else s+=gD(l,u,n[d++],n[d++],n[d++],n[d++],n[d],n[d+1],i,a)||0;l=n[d++],u=n[d++];break;case Qr.Q:if(e){if(hD(l,u,n[d++],n[d++],n[d],n[d+1],t,i,a))return!0}else s+=yD(l,u,n[d++],n[d++],n[d],n[d+1],i,a)||0;l=n[d++],u=n[d++];break;case Qr.A:var y=n[d++],m=n[d++],_=n[d++],S=n[d++],b=n[d++],x=n[d++];d+=1;var T=!!(1-n[d++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,g?(f=c,h=v):s+=kr(l,u,c,v,i,a);var C=(i-y)*S/_+y;if(e){if(vD(y,m,S,b,b+x,T,t,C,a))return!0}else s+=mD(y,m,S,b,b+x,T,C,a);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case Qr.R:f=l=n[d++],h=u=n[d++];var A=n[d++],D=n[d++];if(c=f+A,v=h+D,e){if(Ra(f,h,c,h,t,i,a)||Ra(c,h,c,v,t,i,a)||Ra(c,v,f,v,t,i,a)||Ra(f,v,f,h,t,i,a))return!0}else s+=kr(c,h,c,v,i,a),s+=kr(f,v,f,h,i,a);break;case Qr.Z:if(e){if(Ra(l,u,f,h,t,i,a))return!0}else s+=kr(l,u,f,h,i,a);l=f,u=h;break}}return!e&&!dD(u,h)&&(s+=kr(l,u,f,h,i,a)||0),s!==0}function _D(r,t,e){return j1(r,0,!1,t,e)}function SD(r,t,e,i){return j1(r,t,!0,e,i)}var Dl=Z({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fa),xD={style:Z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hu.style)},Tf=Tr.concat(["invisible","culling","z","z2","zlevel","parent"]),bD=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){e.buildPath(l,e.shape)}),a.silent=!0;var n=a.style;for(var o in i)n[o]!==i[o]&&(n[o]=i[o]);n.fill=i.fill?i.decal:null,n.decal=null,n.shadowColor=null,i.strokeFirst&&(n.stroke=null);for(var s=0;s<Tf.length;++s)a[Tf[s]]=this[Tf[s]];a.__dirty|=gr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=at(e);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var n=0;n<i.length;n++){var o=i[n],s=e[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(V(e)){var i=To(e,0);return i>.5?Kh:i>.2?KA:jh}else if(e)return jh}return Kh},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(V(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=To(e,0)<qh;if(n===o)return i}},t.prototype.buildPath=function(e,i,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Ua},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Ur(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,a=!e;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&Ua)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||a){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,i){var a=this.transformCoordToLocal(e,i),n=this.getBoundingRect(),o=this.style;if(e=a[0],i=a[1],n.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),SD(s,l/u,e,i)))return!0}if(this.hasFill())return _D(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ua,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=i:O(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ua)},t.prototype.createStyle=function(e){return Uo(Dl,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=O({},this.shape))},t.prototype._applyStateObj=function(e,i,a,n,o,s){r.prototype._applyStateObj.call(this,e,i,a,n,o,s);var l=!(i&&n),u;if(i&&i.shape?o?n?u=i.shape:(u=O({},a.shape),O(u,i.shape)):(u=O({},n?this.shape:a.shape),O(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=O({},this.shape);for(var f={},h=at(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),a,n=0;n<e.length;n++){var o=e[n];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(i.shape=a),i},t.prototype.getAnimationStyleProps=function(){return xD},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=function(n){R(o,n);function o(s){var l=n.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return X(e.style)},o.prototype.getDefaultShape=function(){return X(e.shape)},o}(t);for(var a in e)typeof e[a]=="function"&&(i.prototype[a]=e[a]);return i},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=gr|Jn|Ua}(),t}($r),gt=bD,wD=Z({strokeFirst:!0,font:mi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Dl),J1=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return i!=null&&i!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Uo(wD,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var a=Zo(i,e.font,e.textAlign,e.textBaseline);if(a.x+=e.x||0,a.y+=e.y||0,this.hasStroke()){var n=e.lineWidth;a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n}this._rect=a}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}($r);J1.prototype.type="tspan";var Mo=J1,TD=Z({x:0,y:0},fa),CD={style:Z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hu.style)};function AD(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Q1=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Uo(TD,e)},t.prototype._getSize=function(e){var i=this.style,a=i[e];if(a!=null)return a;var n=AD(i.image)?i.image:this.__image;if(!n)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?n[e]:n[e]/n[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return CD},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ht(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}($r);Q1.prototype.type="image";var fe=Q1;function MD(r,t){var e=t.x,i=t.y,a=t.width,n=t.height,o=t.r,s,l,u,f;a<0&&(e=e+a,a=-a),n<0&&(i=i+n,n=-n),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>a&&(h=s+l,s*=a/h,l*=a/h),u+f>a&&(h=u+f,u*=a/h,f*=a/h),l+u>n&&(h=l+u,l*=n/h,u*=n/h),s+f>n&&(h=s+f,s*=n/h,f*=n/h),r.moveTo(e+s,i),r.lineTo(e+a-l,i),l!==0&&r.arc(e+a-l,i+l,l,-Math.PI/2,0),r.lineTo(e+a,i+n-u),u!==0&&r.arc(e+a-u,i+n-u,u,0,Math.PI/2),r.lineTo(e+f,i+n),f!==0&&r.arc(e+f,i+n-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Ka=Math.round;function tS(r,t,e){if(!!t){var i=t.x1,a=t.x2,n=t.y1,o=t.y2;r.x1=i,r.x2=a,r.y1=n,r.y2=o;var s=e&&e.lineWidth;return s&&(Ka(i*2)===Ka(a*2)&&(r.x1=r.x2=oa(i,s,!0)),Ka(n*2)===Ka(o*2)&&(r.y1=r.y2=oa(n,s,!0))),r}}function eS(r,t,e){if(!!t){var i=t.x,a=t.y,n=t.width,o=t.height;r.x=i,r.y=a,r.width=n,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=oa(i,s,!0),r.y=oa(a,s,!0),r.width=Math.max(oa(i+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(oa(a+o,s,!1)-r.y,o===0?0:1)),r}}function oa(r,t,e){if(!t)return r;var i=Ka(r*2);return(i+Ka(t))%2===0?i/2:(i+(e?1:-1))/2}var DD=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),PD={},rS=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new DD},t.prototype.buildPath=function(e,i){var a,n,o,s;if(this.subPixelOptimize){var l=eS(PD,i,this.style);a=l.x,n=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else a=i.x,n=i.y,o=i.width,s=i.height;i.r?MD(e,i):e.rect(a,n,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(gt);rS.prototype.type="rect";var dt=rS,$p={fill:"#000"},Up=2,LD={style:Z({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},hu.style)},iS=function(r){R(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=$p,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,ED(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new ht(0,0,0,0),i=this._children,a=[],n=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(e.copy(l),e.applyTransform(u),n=n||e.clone(),n.union(e)):(n=n||l.clone(),n.union(l))}this._rect=n||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||$p},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var a=i.rich,n=e.rich||a&&{};return O(e,i),a&&n?(this._mergeRich(n,a),e.rich=n):n&&(e.rich=n),e},t.prototype._mergeRich=function(e,i){for(var a=at(i),n=0;n<a.length;n++){var o=a[n];e[o]=e[o]||{},O(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return LD},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||mi,a=e.padding,n=Jp(e),o=qM(n,e),s=Cf(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle,p=e.x||0,g=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=p,S=Ya(g,o.contentHeight,m);if(s||a){var b=to(p,f,y),x=Ya(g,u,m);s&&this._renderBackground(e,e,b,x,f,u)}S+=v/2,a&&(_=jp(p,y,a),m==="top"?S+=a[0]:m==="bottom"&&(S-=a[2]));for(var T=0,C=!1,A=Kp("fill"in e?e.fill:(C=!0,d.fill)),D=qp("stroke"in e?e.stroke:!l&&(!d.autoStroke||C)?(T=Up,d.stroke):null),M=e.textShadowBlur>0,P=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,I=0;I<c.length;I++){var E=this._getOrCreateChild(Mo),k=E.createStyle();E.useStyle(k),k.text=c[I],k.x=_,k.y=S,y&&(k.textAlign=y),k.textBaseline="middle",k.opacity=e.opacity,k.strokeFirst=!0,M&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||"transparent",k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=D,k.fill=A,D&&(k.lineWidth=e.lineWidth||T,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=i,Xp(k,e),S+=v,P&&E.setBoundingRect(new ht(to(k.x,e.width,k.textAlign),Ya(k.y,L,k.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,i=Jp(e),a=JM(i,e),n=a.width,o=a.outerWidth,s=a.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,c=e.align||h.align,v=e.verticalAlign||h.verticalAlign,d=to(u,o,c),p=Ya(f,s,v),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+n;Cf(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<a.lines.length;S++){for(var b=a.lines[S],x=b.tokens,T=x.length,C=b.lineHeight,A=b.width,D=0,M=g,P=m,L=T-1,I=void 0;D<T&&(I=x[D],!I.align||I.align==="left");)this._placeToken(I,e,C,y,M,"left",_),A-=I.width,M+=I.width,D++;for(;L>=0&&(I=x[L],I.align==="right");)this._placeToken(I,e,C,y,P,"right",_),A-=I.width,P-=I.width,L--;for(M+=(n-(M-g)-(m-P)-A)/2;D<=L;)I=x[D],this._placeToken(I,e,C,y,M+I.width/2,"center",_),M+=I.width,D++;y+=C}},t.prototype._placeToken=function(e,i,a,n,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=n+a/2;f==="top"?h=n+e.height/2:f==="bottom"&&(h=n+a-e.height/2);var c=!e.isLineHolder&&Cf(u);c&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=jp(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Mo),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Kp("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),b=qp("stroke"in u?u.stroke:"stroke"in i?i.stroke:!v&&!l&&(!y.autoStroke||m)?(_=Up,y.stroke):null),x=u.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,g.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||mi,g.opacity=Ja(u.opacity,i.opacity,1),Xp(g,u),b&&(g.lineWidth=Ja(u.lineWidth,i.lineWidth,_),g.lineDash=it(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var T=e.contentWidth,C=e.contentHeight;p.setBoundingRect(new ht(to(g.x,T,g.textAlign),Ya(g.y,C,g.textBaseline),T,C))},t.prototype._renderBackground=function(e,i,a,n,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,p,g;if(c||e.lineHeight||u&&f){p=this._getOrCreateChild(dt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=n,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(c){var m=p.style;m.fill=l||null,m.fillOpacity=it(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(fe),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=n,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=it(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Ja(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return nS(e)&&(i=[e.fontStyle,e.fontWeight,aS(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&ze(i)||e.textFont||e.font},t}($r),ID={left:!0,right:1,center:1},RD={top:1,bottom:1,middle:1},Yp=["fontStyle","fontWeight","fontSize","fontFamily"];function aS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?ec+"px":r+"px"}function Xp(r,t){for(var e=0;e<Yp.length;e++){var i=Yp[e],a=t[i];a!=null&&(r[i]=a)}}function nS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function ED(r){return Zp(r),w(r.rich,Zp),r}function Zp(r){if(r){r.font=iS.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||ID[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||RD[e]?e:"top";var i=r.padding;i&&(r.padding=sc(r.padding))}}function qp(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Kp(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function jp(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Jp(r){var t=r.text;return t!=null&&(t+=""),t}function Cf(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var pt=iS,nt=xt(),kD=function(r,t,e,i){if(i){var a=nt(i);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,i.type==="group"&&i.traverse(function(n){var o=nt(n);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},Qp=1,tg={},oS=xt(),Tc=xt(),Cc=0,vu=1,cu=2,Ge=["emphasis","blur","select"],Pl=["normal","emphasis","blur","select"],sS=10,OD=9,ha="highlight",ll="downplay",ho="select",ul="unselect",vo="toggleSelect";function Ea(r){return r!=null&&r!=="none"}var eg=new Yo(100);function rg(r){if(V(r)){var t=eg.get(r);return t||(t=Hh(r,-.1),eg.put(r,t)),t}else if(iu(r)){var e=O({},r);return e.colorStops=z(r.colorStops,function(i){return{offset:i.offset,color:Hh(i.color,-.1)}}),e}return r}function du(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function lS(r){du(r,"emphasis",cu)}function uS(r){r.hoverState===cu&&du(r,"normal",Cc)}function Ac(r){du(r,"blur",vu)}function fS(r){r.hoverState===vu&&du(r,"normal",Cc)}function BD(r){r.selected=!0}function ND(r){r.selected=!1}function ig(r,t,e){t(r,e)}function Xr(r,t,e){ig(r,t,e),r.isGroup&&r.traverse(function(i){ig(i,t,e)})}function iv(r,t){switch(t){case"emphasis":r.hoverState=cu;break;case"normal":r.hoverState=Cc;break;case"blur":r.hoverState=vu;break;case"select":r.selected=!0}}function zD(r,t,e,i){for(var a=r.style,n={},o=0;o<t.length;o++){var s=t[o],l=a[s];n[s]=l==null?i&&i[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(n,t)}return n}function VD(r,t,e,i){var a=e&&ot(e,"select")>=0,n=!1;if(r instanceof gt){var o=oS(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ea(s)||Ea(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=O({},i),u=O({},u),u.fill=s):!Ea(u.fill)&&Ea(s)?(n=!0,i=O({},i),u=O({},u),u.fill=rg(s)):!Ea(u.stroke)&&Ea(l)&&(n||(i=O({},i),u=O({},u)),u.stroke=rg(l)),i.style=u}}if(i&&i.z2==null){n||(i=O({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f!=null?f:sS)}return i}function FD(r,t,e){if(e&&e.z2==null){e=O({},e);var i=r.z2SelectLift;e.z2=r.z2+(i!=null?i:OD)}return e}function GD(r,t,e){var i=ot(r.currentStates,t)>=0,a=r.style.opacity,n=i?null:zD(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:i?a:n.opacity*.1},o),e.style=o),e}function Af(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return VD(this,r,t,e);if(r==="blur")return GD(this,r,e);if(r==="select")return FD(this,r,e)}return e}function Mc(r){r.stateProxy=Af;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Af),e&&(e.stateProxy=Af)}function ag(r,t){!dS(r,t)&&!r.__highByOuter&&Xr(r,lS)}function ng(r,t){!dS(r,t)&&!r.__highByOuter&&Xr(r,uS)}function un(r,t){r.__highByOuter|=1<<(t||0),Xr(r,lS)}function fn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Xr(r,uS)}function HD(r){Xr(r,Ac)}function hS(r){Xr(r,fS)}function vS(r){Xr(r,BD)}function cS(r){Xr(r,ND)}function dS(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function pS(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(a,n){var o=Tc(n),s=a==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){fS(u)}),s&&e.push(n)),o.isBlured=!1}),w(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function av(r,t,e,i){var a=i.getModel();e=e||"coordinateSystem";function n(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&hS(c)}}if(r!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=i.getViewOfSeriesModel(u);if(v.group.traverse(function(g){Ac(g)}),te(t))n(u.getData(),t);else if(U(t))for(var d=at(t),p=0;p<d.length;p++)n(u.getData(d[p]),t[d[p]]);l.push(u),Tc(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,a)}})}}function nv(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(!!i){Tc(i).isBlured=!0;var a=e.getViewOfComponentModel(i);!a||!a.focusBlurEnabled||a.group.traverse(function(n){Ac(n)})}}}function WD(r,t,e){var i=r.seriesIndex,a=r.getData(t.dataType);if(!!a){var n=ya(a,t);n=(N(n)?n[0]:n)||0;var o=a.getItemGraphicEl(n);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=nt(o);av(i,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&av(i,f,h,e)}}}function Dc(r,t,e,i){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return a;var n=i.getModel().getComponent(r,t);if(!n)return a;var o=i.getViewOfComponentModel(n);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(nt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function $D(r,t,e){var i=nt(r),a=Dc(i.componentMainType,i.componentIndex,i.componentHighDownName,e),n=a.dispatchers,o=a.focusSelf;n?(o&&nv(i.componentMainType,i.componentIndex,e),w(n,function(s){return ag(s,t)})):(av(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&nv(i.componentMainType,i.componentIndex,e),ag(r,t))}function UD(r,t,e){pS(e);var i=nt(r),a=Dc(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;a?w(a,function(n){return ng(n,t)}):ng(r,t)}function YD(r,t,e){if(!!sv(t)){var i=t.dataType,a=r.getData(i),n=ya(a,t);N(n)||(n=[n]),r[t.type===vo?"toggleSelect":t.type===ho?"select":"unselect"](n,i)}}function og(r){var t=r.getAllData();w(t,function(e){var i=e.data,a=e.type;i.eachItemGraphicEl(function(n,o){r.isSelected(o,a)?vS(n):cS(n)})})}function XD(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();w(i,function(a){a.data;var n=a.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};n!=null&&(s.dataType=n),t.push(s)}})}),t}function pi(r,t,e){Pc(r,!0),Xr(r,Mc),qD(r,t,e)}function ZD(r){Pc(r,!1)}function Si(r,t,e,i){i?ZD(r):pi(r,t,e)}function qD(r,t,e){var i=nt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var sg=["emphasis","blur","select"],KD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function hn(r,t,e,i){e=e||"itemStyle";for(var a=0;a<sg.length;a++){var n=sg[a],o=t.getModel([n,e]),s=r.ensureState(n);s.style=i?i(o):o[KD[e]]()}}function Pc(r,t){var e=t===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function ov(r){return!!(r&&r.__highDownDispatcher)}function jD(r,t,e){var i=nt(r);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=e}function JD(r){var t=tg[r];return t==null&&Qp<=32&&(t=tg[r]=Qp++),t}function sv(r){var t=r.type;return t===ho||t===ul||t===vo}function lg(r){var t=r.type;return t===ha||t===ll}function QD(r){var t=oS(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var ka=Ur.CMD,t2=[[],[],[]],ug=Math.sqrt,e2=Math.atan2;function gS(r,t){if(!!t){var e=r.data,i=r.len(),a,n,o,s,l,u,f=ka.M,h=ka.C,c=ka.L,v=ka.R,d=ka.A,p=ka.Q;for(o=0,s=0;o<i;){switch(a=e[o++],s=o,n=0,a){case f:n=1;break;case c:n=1;break;case h:n=3;break;case p:n=2;break;case d:var g=t[4],y=t[5],m=ug(t[0]*t[0]+t[1]*t[1]),_=ug(t[2]*t[2]+t[3]*t[3]),S=e2(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],Ft(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Ft(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<n;l++){var b=t2[l];b[0]=e[o++],b[1]=e[o++],Ft(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Mf=Math.sqrt,_s=Math.sin,Ss=Math.cos,Rn=Math.PI;function fg(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function lv(r,t){return(r[0]*t[0]+r[1]*t[1])/(fg(r)*fg(t))}function hg(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(lv(r,t))}function vg(r,t,e,i,a,n,o,s,l,u,f){var h=l*(Rn/180),c=Ss(h)*(r-e)/2+_s(h)*(t-i)/2,v=-1*_s(h)*(r-e)/2+Ss(h)*(t-i)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Mf(d),s*=Mf(d));var p=(a===n?-1:1)*Mf((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=p*o*v/s,y=p*-s*c/o,m=(r+e)/2+Ss(h)*g-_s(h)*y,_=(t+i)/2+_s(h)*g+Ss(h)*y,S=hg([1,0],[(c-g)/o,(v-y)/s]),b=[(c-g)/o,(v-y)/s],x=[(-1*c-g)/o,(-1*v-y)/s],T=hg(b,x);if(lv(b,x)<=-1&&(T=Rn),lv(b,x)>=1&&(T=0),T<0){var C=Math.round(T/Rn*1e6)/1e6;T=Rn*2+C%2*Rn}f.addData(u,m,_,o,s,S,T,h,n)}var r2=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,i2=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function a2(r){var t=new Ur;if(!r)return t;var e=0,i=0,a=e,n=i,o,s=Ur.CMD,l=r.match(r2);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(i2)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,T=void 0,C=e,A=i,D=void 0,M=void 0;switch(h){case"l":e+=v[g++],i+=v[g++],c=s.L,t.addData(c,e,i);break;case"L":e=v[g++],i=v[g++],c=s.L,t.addData(c,e,i);break;case"m":e+=v[g++],i+=v[g++],c=s.M,t.addData(c,e,i),a=e,n=i,h="l";break;case"M":e=v[g++],i=v[g++],c=s.M,t.addData(c,e,i),a=e,n=i,h="L";break;case"h":e+=v[g++],c=s.L,t.addData(c,e,i);break;case"H":e=v[g++],c=s.L,t.addData(c,e,i);break;case"v":i+=v[g++],c=s.L,t.addData(c,e,i);break;case"V":i=v[g++],c=s.L,t.addData(c,e,i);break;case"C":c=s.C,t.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),e=v[g-2],i=v[g-1];break;case"c":c=s.C,t.addData(c,v[g++]+e,v[g++]+i,v[g++]+e,v[g++]+i,v[g++]+e,v[g++]+i),e+=v[g-2],i+=v[g-1];break;case"S":y=e,m=i,D=t.len(),M=t.data,o===s.C&&(y+=e-M[D-4],m+=i-M[D-3]),c=s.C,C=v[g++],A=v[g++],e=v[g++],i=v[g++],t.addData(c,y,m,C,A,e,i);break;case"s":y=e,m=i,D=t.len(),M=t.data,o===s.C&&(y+=e-M[D-4],m+=i-M[D-3]),c=s.C,C=e+v[g++],A=i+v[g++],e+=v[g++],i+=v[g++],t.addData(c,y,m,C,A,e,i);break;case"Q":C=v[g++],A=v[g++],e=v[g++],i=v[g++],c=s.Q,t.addData(c,C,A,e,i);break;case"q":C=v[g++]+e,A=v[g++]+i,e+=v[g++],i+=v[g++],c=s.Q,t.addData(c,C,A,e,i);break;case"T":y=e,m=i,D=t.len(),M=t.data,o===s.Q&&(y+=e-M[D-4],m+=i-M[D-3]),e=v[g++],i=v[g++],c=s.Q,t.addData(c,y,m,e,i);break;case"t":y=e,m=i,D=t.len(),M=t.data,o===s.Q&&(y+=e-M[D-4],m+=i-M[D-3]),e+=v[g++],i+=v[g++],c=s.Q,t.addData(c,y,m,e,i);break;case"A":_=v[g++],S=v[g++],b=v[g++],x=v[g++],T=v[g++],C=e,A=i,e=v[g++],i=v[g++],c=s.A,vg(C,A,e,i,x,T,_,S,b,c,t);break;case"a":_=v[g++],S=v[g++],b=v[g++],x=v[g++],T=v[g++],C=e,A=i,e+=v[g++],i+=v[g++],c=s.A,vg(C,A,e,i,x,T,_,S,b,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=a,i=n),o=c}return t.toStatic(),t}var yS=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(gt);function mS(r){return r.setData!=null}function _S(r,t){var e=a2(r),i=O({},t);return i.buildPath=function(a){if(mS(a)){a.setData(e.data);var n=a.getContext();n&&a.rebuildPath(n,1)}else{var n=a;e.rebuildPath(n,1)}},i.applyTransform=function(a){gS(e,a),this.dirtyShape()},i}function SS(r,t){return new yS(_S(r,t))}function n2(r,t){var e=_S(r,t),i=function(a){R(n,a);function n(o){var s=a.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return n}(yS);return i}function o2(r,t){for(var e=[],i=r.length,a=0;a<i;a++){var n=r[a];e.push(n.getUpdatedPathProxy(!0))}var o=new gt(t);return o.createPathProxy(),o.buildPath=function(s){if(mS(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function VG(r,t){t=t||{};var e=new gt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?gS(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var s2=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),xS=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new s2},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t}(gt);xS.prototype.type="circle";var ar=xS,l2=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),bS=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new l2},t.prototype.buildPath=function(e,i){var a=.5522848,n=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*a,f=l*a;e.moveTo(n-s,o),e.bezierCurveTo(n-s,o-f,n-u,o-l,n,o-l),e.bezierCurveTo(n+u,o-l,n+s,o-f,n+s,o),e.bezierCurveTo(n+s,o+f,n+u,o+l,n,o+l),e.bezierCurveTo(n-u,o+l,n-s,o+f,n-s,o),e.closePath()},t}(gt);bS.prototype.type="ellipse";var pu=bS,wS=Math.PI,Df=wS*2,Gi=Math.sin,Oa=Math.cos,u2=Math.acos,Zt=Math.atan2,cg=Math.abs,co=Math.sqrt,eo=Math.max,vr=Math.min,Ze=1e-4;function f2(r,t,e,i,a,n,o,s){var l=e-r,u=i-t,f=o-a,h=s-n,c=h*l-f*u;if(!(c*c<Ze))return c=(f*(t-n)-h*(r-a))/c,[r+c*l,t+c*u]}function xs(r,t,e,i,a,n,o){var s=r-e,l=t-i,u=(o?n:-n)/co(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=t+h,d=e+f,p=i+h,g=(c+d)/2,y=(v+p)/2,m=d-c,_=p-v,S=m*m+_*_,b=a-n,x=c*p-d*v,T=(_<0?-1:1)*co(eo(0,b*b*S-x*x)),C=(x*_-m*T)/S,A=(-x*m-_*T)/S,D=(x*_+m*T)/S,M=(-x*m+_*T)/S,P=C-g,L=A-y,I=D-g,E=M-y;return P*P+L*L>I*I+E*E&&(C=D,A=M),{cx:C,cy:A,x0:-f,y0:-h,x1:C*(a/b-1),y1:A*(a/b-1)}}function h2(r){var t;if(N(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function v2(r,t){var e,i=eo(t.r,0),a=eo(t.r0||0,0),n=i>0,o=a>0;if(!(!n&&!o)){if(n||(i=a,a=0),a>i){var s=i;i=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=cg(u-l),d=v>Df&&v%Df;if(d>Ze&&(v=d),!(i>Ze))r.moveTo(f,h);else if(v>Df-Ze)r.moveTo(f+i*Oa(l),h+i*Gi(l)),r.arc(f,h,i,l,u,!c),a>Ze&&(r.moveTo(f+a*Oa(u),h+a*Gi(u)),r.arc(f,h,a,u,l,c));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,T=void 0,C=void 0,A=void 0,D=void 0,M=void 0,P=void 0,L=void 0,I=void 0,E=i*Oa(l),k=i*Gi(l),W=a*Oa(u),B=a*Gi(u),F=v>Ze;if(F){var Y=t.cornerRadius;Y&&(e=h2(Y),p=e[0],g=e[1],y=e[2],m=e[3]);var tt=cg(i-a)/2;if(_=vr(tt,y),S=vr(tt,m),b=vr(tt,p),x=vr(tt,g),A=T=eo(_,S),D=C=eo(b,x),(T>Ze||C>Ze)&&(M=i*Oa(u),P=i*Gi(u),L=a*Oa(l),I=a*Gi(l),v<wS)){var J=f2(E,k,L,I,M,P,W,B);if(J){var st=E-J[0],ct=k-J[1],Et=M-J[0],St=P-J[1],Xt=1/Gi(u2((st*Et+ct*St)/(co(st*st+ct*ct)*co(Et*Et+St*St)))/2),Vt=co(J[0]*J[0]+J[1]*J[1]);A=vr(T,(i-Vt)/(Xt+1)),D=vr(C,(a-Vt)/(Xt-1))}}}if(!F)r.moveTo(f+E,h+k);else if(A>Ze){var Pt=vr(y,A),wt=vr(m,A),j=xs(L,I,E,k,i,Pt,c),lt=xs(M,P,W,B,i,wt,c);r.moveTo(f+j.cx+j.x0,h+j.cy+j.y0),A<T&&Pt===wt?r.arc(f+j.cx,h+j.cy,A,Zt(j.y0,j.x0),Zt(lt.y0,lt.x0),!c):(Pt>0&&r.arc(f+j.cx,h+j.cy,Pt,Zt(j.y0,j.x0),Zt(j.y1,j.x1),!c),r.arc(f,h,i,Zt(j.cy+j.y1,j.cx+j.x1),Zt(lt.cy+lt.y1,lt.cx+lt.x1),!c),wt>0&&r.arc(f+lt.cx,h+lt.cy,wt,Zt(lt.y1,lt.x1),Zt(lt.y0,lt.x0),!c))}else r.moveTo(f+E,h+k),r.arc(f,h,i,l,u,!c);if(!(a>Ze)||!F)r.lineTo(f+W,h+B);else if(D>Ze){var Pt=vr(p,D),wt=vr(g,D),j=xs(W,B,M,P,a,-wt,c),lt=xs(E,k,L,I,a,-Pt,c);r.lineTo(f+j.cx+j.x0,h+j.cy+j.y0),D<C&&Pt===wt?r.arc(f+j.cx,h+j.cy,D,Zt(j.y0,j.x0),Zt(lt.y0,lt.x0),!c):(wt>0&&r.arc(f+j.cx,h+j.cy,wt,Zt(j.y0,j.x0),Zt(j.y1,j.x1),!c),r.arc(f,h,a,Zt(j.cy+j.y1,j.cx+j.x1),Zt(lt.cy+lt.y1,lt.cx+lt.x1),c),Pt>0&&r.arc(f+lt.cx,h+lt.cy,Pt,Zt(lt.y1,lt.x1),Zt(lt.y0,lt.x0),!c))}else r.lineTo(f+W,h+B),r.arc(f,h,a,u,l,c)}r.closePath()}}}var c2=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),TS=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new c2},t.prototype.buildPath=function(e,i){v2(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(gt);TS.prototype.type="sector";var Ar=TS,d2=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),CS=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new d2},t.prototype.buildPath=function(e,i){var a=i.cx,n=i.cy,o=Math.PI*2;e.moveTo(a+i.r,n),e.arc(a,n,i.r,0,o,!1),e.moveTo(a+i.r0,n),e.arc(a,n,i.r0,0,o,!0)},t}(gt);CS.prototype.type="ring";var Ko=CS;function p2(r,t,e,i){var a=[],n=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)Or(f,f,r[c]),Br(h,h,r[c]);Or(f,f,i[0]),Br(h,h,i[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){a.push(t1(r[c]));continue}else l=r[c-1],u=r[c+1];e1(n,u,l),Qs(n,n,t);var p=_l(d,l),g=_l(d,u),y=p+g;y!==0&&(p/=y,g/=y),Qs(o,n,-p),Qs(s,n,g);var m=Oh([],d,o),_=Oh([],d,s);i&&(Br(m,m,f),Or(m,m,h),Br(_,_,f),Or(_,_,h)),a.push(m),a.push(_)}return e&&a.push(a.shift()),a}function AS(r,t,e){var i=t.smooth,a=t.points;if(a&&a.length>=2){if(i){var n=p2(a,i,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(e?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,h=a.length;s<h;s++)r.lineTo(a[s][0],a[s][1])}e&&r.closePath()}}var g2=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),MS=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new g2},t.prototype.buildPath=function(e,i){AS(e,i,!0)},t}(gt);MS.prototype.type="polygon";var Mr=MS,y2=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),DS=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new y2},t.prototype.buildPath=function(e,i){AS(e,i,!1)},t}(gt);DS.prototype.type="polyline";var He=DS,m2={},_2=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),PS=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new _2},t.prototype.buildPath=function(e,i){var a,n,o,s;if(this.subPixelOptimize){var l=tS(m2,i,this.style);a=l.x1,n=l.y1,o=l.x2,s=l.y2}else a=i.x1,n=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(a,n),u<1&&(o=a*(1-u)+o*u,s=n*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t}(gt);PS.prototype.type="line";var ne=PS,ce=[],S2=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function dg(r,t,e){var i=r.cpx2,a=r.cpy2;return i!=null||a!=null?[(e?mp:Bt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?mp:Bt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?_p:Kt)(r.x1,r.cpx1,r.x2,t),(e?_p:Kt)(r.y1,r.cpy1,r.y2,t)]}var LS=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new S2},t.prototype.buildPath=function(e,i){var a=i.x1,n=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(e.moveTo(a,n),f==null||h==null?(c<1&&(Tl(a,l,o,c,ce),l=ce[1],o=ce[2],Tl(n,u,s,c,ce),u=ce[1],s=ce[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(wl(a,l,f,o,c,ce),l=ce[1],f=ce[2],o=ce[3],wl(n,u,h,s,c,ce),u=ce[1],h=ce[2],s=ce[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return dg(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=dg(this.shape,e,!0);return r1(i,i)},t}(gt);LS.prototype.type="bezier-curve";var Lc=LS,x2=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),IS=function(r){R(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new x2},t.prototype.buildPath=function(e,i){var a=i.cx,n=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+a,h*o+n),e.arc(a,n,o,s,l,!u)},t}(gt);IS.prototype.type="arc";var gu=IS,b2=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),a=0;a<e.length;a++)i=i||e[a].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),a=0;a<e.length;a++)e[a].path||e[a].createPathProxy(),e[a].path.setScale(i[0],i[1],e[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var a=i.paths||[],n=0;n<a.length;n++)a[n].buildPath(e,a[n].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),gt.prototype.getBoundingRect.call(this)},t}(gt),yu=b2,w2=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),RS=w2,T2=function(r){R(t,r);function t(e,i,a,n,o,s){var l=r.call(this,o)||this;return l.x=e==null?0:e,l.y=i==null?0:i,l.x2=a==null?1:a,l.y2=n==null?0:n,l.type="linear",l.global=s||!1,l}return t}(RS),jo=T2,C2=function(r){R(t,r);function t(e,i,a,n,o){var s=r.call(this,n)||this;return s.x=e==null?.5:e,s.y=i==null?.5:i,s.r=a==null?.5:a,s.type="radial",s.global=o||!1,s}return t}(RS),Ic=C2,Hi=[0,0],Wi=[0,0],bs=new et,ws=new et,A2=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new et;for(var i=0;i<2;i++)this._axes[i]=new et;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,a=this._axes,n=t.x,o=t.y,s=n+t.width,l=o+t.height;if(i[0].set(n,o),i[1].set(s,o),i[2].set(s,l),i[3].set(n,l),e)for(var u=0;u<4;u++)i[u].transform(e);et.sub(a[0],i[1],i[0]),et.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(i[0])},r.prototype.intersect=function(t,e){var i=!0,a=!e;return bs.set(1/0,1/0),ws.set(0,0),!this._intersectCheckOneSide(this,t,bs,ws,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,bs,ws,a,-1)&&(i=!1,a)||a||et.copy(e,i?bs:ws),i},r.prototype._intersectCheckOneSide=function(t,e,i,a,n,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Hi),this._getProjMinMaxOnAxis(l,e._corners,Wi),Hi[1]<Wi[0]||Hi[0]>Wi[1]){if(s=!1,n)return s;var f=Math.abs(Wi[0]-Hi[1]),h=Math.abs(Hi[0]-Wi[1]);Math.min(f,h)>a.len()&&(f<h?et.scale(a,u,-f*o):et.scale(a,u,h*o))}else if(i){var f=Math.abs(Wi[0]-Hi[1]),h=Math.abs(Hi[0]-Wi[1]);Math.min(f,h)<i.len()&&(f<h?et.scale(i,u,f*o):et.scale(i,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var a=this._axes[t],n=this._origin,o=e[0].dot(a)+n[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(a)+n[t];s=Math.min(f,s),l=Math.max(f,l)}i[0]=s,i[1]=l},r}(),Ll=A2,M2=[],D2=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var a=0;a<e.length;a++)this.addDisplayable(e[a],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ht(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var a=this._displayables[i],n=a.getBoundingRect().clone();a.needLocalTransform()&&n.applyTransform(a.getLocalTransform(M2)),e.union(n)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var a=this.transformCoordToLocal(e,i),n=this.getBoundingRect();if(n.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t}($r),ES=D2,kS=xt();function Rc(r,t,e,i,a){var n;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();n=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;i?(u=it(i.duration,200),f=it(i.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),n&&(n.duration!=null&&(u=n.duration),n.easing!=null&&(f=n.easing),n.delay!=null&&(h=n.delay)),q(h)&&(h=h(e,a)),q(u)&&(u=u(e));var c={duration:u||0,delay:h,easing:f};return c}else return null}function Ec(r,t,e,i,a,n,o){var s=!1,l;q(a)?(o=n,n=a,a=null):U(a)&&(n=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Rc(r,i,a,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),n&&n()}function Mt(r,t,e,i,a,n){Ec("update",r,t,e,i,a,n)}function Qt(r,t,e,i,a,n){Ec("enter",r,t,e,i,a,n)}function po(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Do(r,t,e,i,a,n){po(r)||Ec("leave",r,t,e,i,a,n)}function pg(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Do(r,{style:{opacity:0}},t,e,i)}function Il(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||pg(a,t,e,i)}):pg(r,t,e,i)}function Po(r){kS(r).oldStyle=r.style}function FG(r){return kS(r).oldStyle}var Rl=Math.max,El=Math.min,uv={};function OS(r){return gt.extend(r)}var P2=n2;function BS(r,t){return P2(r,t)}function We(r,t){uv[r]=t}function kc(r){if(uv.hasOwnProperty(r))return uv[r]}function mu(r,t,e,i){var a=SS(r,t);return e&&(i==="center"&&(e=NS(e,a.getBoundingRect())),Bc(a,e)),a}function Oc(r,t,e){var i=new fe({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(e==="center"){var n={width:a.width,height:a.height};i.setStyle(NS(t,n))}}});return i}function NS(r,t){var e=t.width/t.height,i=r.height*e,a;i<=r.width?a=r.height:(i=r.width,a=i/e);var n=r.x+r.width/2,o=r.y+r.height/2;return{x:n-i/2,y:o-a/2,width:i,height:a}}var Be=o2;function Bc(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function L2(r){return tS(r.shape,r.shape,r.style),r}function I2(r){return eS(r.shape,r.shape,r.style),r}var R2=oa;function gi(r,t){for(var e=Xo([]);r&&r!==t;)wr(e,r.getLocalTransform(),e),r=r.parent;return e}function rr(r,t,e){return t&&!te(t)&&(t=aa.getLocalTransform(t)),e&&(t=ba([],t)),Ft([],r,t)}function _u(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),n=[r==="left"?-i:r==="right"?i:0,r==="top"?-a:r==="bottom"?a:0];return n=rr(n,t,e),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function gg(r){return!r.isGroup}function E2(r){return r.shape!=null}function Su(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){gg(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return E2(o)&&(s.shape=O({},o.shape)),s}var n=i(r);t.traverse(function(o){if(gg(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),Mt(o,l,e,nt(o).dataIndex)}}})}function Nc(r,t){return z(r,function(e){var i=e[0];i=Rl(i,t.x),i=El(i,t.x+t.width);var a=e[1];return a=Rl(a,t.y),a=El(a,t.y+t.height),[i,a]})}function zS(r,t){var e=Rl(r.x,t.x),i=El(r.x+r.width,t.x+t.width),a=Rl(r.y,t.y),n=El(r.y+r.height,t.y+t.height);if(i>=e&&n>=a)return{x:e,y:a,width:i-e,height:n-a}}function _n(r,t,e){var i=O({rectHover:!0},t),a=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),Z(a,e),new fe(i)):mu(r.replace("path://",""),i,e,"center")}function k2(r,t,e,i,a){for(var n=0,o=a[a.length-1];n<a.length;n++){var s=a[n];if(VS(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function VS(r,t,e,i,a,n,o,s){var l=e-r,u=i-t,f=o-a,h=s-n,c=Pf(f,h,l,u);if(O2(c))return!1;var v=r-a,d=t-n,p=Pf(v,d,l,u)/c;if(p<0||p>1)return!1;var g=Pf(v,d,f,h)/c;return!(g<0||g>1)}function Pf(r,t,e,i){return r*i-e*t}function O2(r){return r<=1e-6&&r>=-1e-6}function Sn(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,a=V(t)?{formatter:t}:t,n=e.mainType,o=e.componentIndex,s={componentType:n,name:i,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&w(at(l),function(f){G(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=nt(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:i,option:Z({content:i,formatterParams:s},a)}}function yg(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function xu(r,t){if(r)if(N(r))for(var e=0;e<r.length;e++)yg(r[e],t);else yg(r,t)}We("circle",ar);We("ellipse",pu);We("sector",Ar);We("ring",Ko);We("polygon",Mr);We("polyline",He);We("rect",dt);We("line",ne);We("bezierCurve",Lc);We("arc",gu);var bu=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Mt,initProps:Qt,removeElement:Do,removeElementWithFadeOut:Il,isElementRemoved:po,extendShape:OS,extendPath:BS,registerShape:We,getShapeClass:kc,makePath:mu,makeImage:Oc,mergePath:Be,resizePath:Bc,subPixelOptimizeLine:L2,subPixelOptimizeRect:I2,subPixelOptimize:R2,getTransform:gi,applyTransform:rr,transformDirection:_u,groupTransition:Su,clipPointsByRect:Nc,clipRectByRect:zS,createIcon:_n,linePolygonIntersect:k2,lineLineIntersect:VS,setTooltipConfig:Sn,traverseElements:xu,Group:rt,Image:fe,Text:pt,Circle:ar,Ellipse:pu,Sector:Ar,Ring:Ko,Polygon:Mr,Polyline:He,Rect:dt,Line:ne,BezierCurve:Lc,Arc:gu,IncrementalDisplayable:ES,CompoundPath:yu,LinearGradient:jo,RadialGradient:Ic,BoundingRect:ht,OrientedBoundingRect:Ll,Point:et,Path:gt},Symbol.toStringTag,{value:"Module"})),wu={};function FS(r,t){for(var e=0;e<Ge.length;e++){var i=Ge[e],a=t[i],n=r.ensureState(i);n.style=n.style||{},n.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function fv(r,t,e){var i=r.labelFetcher,a=r.labelDataIndex,n=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(a,"normal",null,n,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=q(r.defaultText)?r.defaultText(a,r,e):r.defaultText);for(var l={normal:s},u=0;u<Ge.length;u++){var f=Ge[u],h=t[f];l[f]=it(i?i.getFormattedLabel(a,f,null,n,h&&h.get("formatter")):null,s)}return l}function Zr(r,t,e,i){e=e||wu;for(var a=r instanceof pt,n=!1,o=0;o<Pl.length;o++){var s=t[Pl[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=a?r:r.getTextContent();if(n){a||(l||(l=new pt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=fv(e,t),f=t.normal,h=!!f.getShallow("show"),c=Ot(f,i&&i.normal,e,!1,!a);c.text=u.normal,a||r.setTextConfig(mg(f,e,!1));for(var o=0;o<Ge.length;o++){var v=Ge[o],s=t[v];if(s){var d=l.ensureState(v),p=!!it(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=Ot(s,i&&i[v],e,!0,!a),d.style.text=u[v],!a){var g=r.ensureState(v);g.textConfig=mg(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),e.enableTextSetter&&(Jo(l).setLabelText=function(y){var m=fv(e,t,y);FS(l,m)})}else l&&(l.ignore=!0);r.dirty()}function qr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<Ge.length;i++){var a=Ge[i];e[a]=r.getModel([a,t])}return e}function Ot(r,t,e,i,a){var n={};return B2(n,r,e,i,a),t&&O(n,t),n}function mg(r,t,e){t=t||{};var i={},a,n=r.getShallow("rotate"),o=it(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(e?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(i.position=a),s!=null&&(i.offset=s),n!=null&&(n*=Math.PI/180,i.rotation=n),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",i}function B2(r,t,e,i,a){e=e||wu;var n=t.ecModel,o=n&&n.option.textStyle,s=N2(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);bg(l[u]={},f,o,e,i,a,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var c=t.get("minMargin");c!=null&&(r.margin=c),bg(r,t,o,e,i,a,!0,!1)}function N2(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||wu).rich;if(e){t=t||{};for(var i=at(e),a=0;a<i.length;a++){var n=i[a];t[n]=1}}r=r.parentModel}return t}var _g=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Sg=["align","lineHeight","width","height","tag","verticalAlign"],xg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function bg(r,t,e,i,a,n,o,s){e=!a&&e||wu;var l=i&&i.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=it(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),n||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=it(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=it(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=it(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!a&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!a&&!n&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var p=0;p<_g.length;p++){var g=_g[p],y=it(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<Sg.length;p++){var g=Sg[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!i.disableBox){for(var p=0;p<xg.length;p++){var g=xg[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function z2(r,t){var e=t&&t.getModel("textStyle");return ze([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Jo=xt();function V2(r,t,e,i){if(!!r){var a=Jo(r);a.prevValue=a.value,a.value=e;var n=t.normal;a.valueAnimation=n.get("valueAnimation"),a.valueAnimation&&(a.precision=n.get("precision"),a.defaultInterpolatedText=i,a.statesModels=t)}}function GG(r,t,e,i,a){var n=Jo(r);if(!n.valueAnimation||n.prevValue===n.value)return;var o=n.defaultInterpolatedText,s=it(n.interpolatedValue,n.prevValue),l=n.value;function u(f){var h=$1(e,n.precision,s,l,f);n.interpolatedValue=f===1?null:h;var c=fv({labelDataIndex:t,labelFetcher:a,defaultText:o?o(h):h+""},n.statesModels,h);FS(r,c)}r.percent=0,(n.prevValue==null?Qt:Mt)(r,{percent:1},i,t,null,u)}var F2=["textStyle","color"],Lf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],If=new pt,G2=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(F2):null)},r.prototype.getFont=function(){return z2({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Lf.length;i++)e[Lf[i]]=this.getShallow(Lf[i]);return If.useStyle(e),If.update(),If.getBoundingRect()},r}(),H2=G2,GS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],W2=ln(GS),$2=function(){function r(){}return r.prototype.getLineStyle=function(t){return W2(this,t)},r}(),HS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],U2=ln(HS),Y2=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return U2(this,t,e)},r}(),wa=function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){},r.prototype.mergeOption=function(t,e){Q(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,a=i==null?i:i[t];if(a==null&&!e){var n=this.parentModel;n&&(a=n.getShallow(t))}return a},r.prototype.getModel=function(t,e){var i=t!=null,a=i?this.parsePath(t):null,n=i?this._doGet(a):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(n,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(X(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!vt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var a=0;a<t.length&&!(!!t[a]&&(i=i&&typeof i=="object"?i[t[a]]:null,i==null));a++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r}();bc(wa);GM(wa);Yt(wa,$2);Yt(wa,Y2);Yt(wa,YM);Yt(wa,H2);var Tt=wa,X2=Math.round(Math.random()*10);function xn(r){return[r||"",X2++].join("_")}function Z2(r){var t={};r.registerSubTypeDefaulter=function(e,i){var a=xr(e);t[a.main]=i},r.determineSubType=function(e,i){var a=i.type;if(!a){var n=xr(e).main;r.hasSubTypes(e)&&t[n]&&(a=t[n](i))}return a}}function q2(r,t){r.topologicalTravel=function(n,o,s,l){if(!n.length)return;var u=e(o),f=u.graph,h=u.noEntryList,c={};for(w(n,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],p=!!c[v];p&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),w(d.successor,p?y:g)}w(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,g(m)}};function e(n){var o={},s=[];return w(n,function(l){var u=i(o,l),f=u.originalDeps=t(l),h=a(f,n);u.entryCount=h.length,u.entryCount===0&&s.push(l),w(h,function(c){ot(u.predecessor,c)<0&&u.predecessor.push(c);var v=i(o,c);ot(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function i(n,o){return n[o]||(n[o]={predecessor:[],successor:[]}),n[o]}function a(n,o){var s=[];return w(n,function(l){ot(o,l)>=0&&s.push(l)}),s}}function Ai(r,t){return Q(Q({},r,!0),t,!0)}var K2={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"}},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:". "}}}},j2={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},kl="ZH",zc="EN",Lo=zc,fl={},Vc={},WS=vt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(kl)>-1?kl:Lo}():Lo;function Fc(r,t){r=r.toUpperCase(),Vc[r]=new Tt(t),fl[r]=t}function J2(r){if(V(r)){var t=fl[r.toUpperCase()]||{};return r===kl||r===zc?X(t):Q(X(t),X(fl[Lo]),!1)}else return Q(X(r),X(fl[Lo]),!1)}function hv(r){return Vc[r]}function Q2(){return Vc[Lo]}Fc(zc,K2);Fc(kl,j2);var Gc=1e3,Hc=Gc*60,go=Hc*60,Ne=go*24,wg=Ne*365,ro={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}"},Ts="{yyyy}-{MM}-{dd}",Tg={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ts,hour:Ts+" "+ro.hour,minute:Ts+" "+ro.minute,second:Ts+" "+ro.second,millisecond:ro.none},Rf=["year","month","day","hour","minute","second","millisecond"],$S=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pe(r,t){return r+="","0000".substr(0,t-r.length)+r}function en(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function tP(r){return r===en(r)}function eP(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Qo(r,t,e,i){var a=Ce(r),n=a[Wc(e)](),o=a[rn(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Tu(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[Io(e)](),h=(f-1)%12+1,c=a[Cu(e)](),v=a[Au(e)](),d=a[Mu(e)](),p=i instanceof Tt?i:hv(i||WS)||Q2(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,n%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,pe(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,pe(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,pe(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,pe(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,pe(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,pe(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,pe(d,3)).replace(/{S}/g,d+"")}function rP(r,t,e,i,a){var n=null;if(V(e))n=e;else if(q(e))n=e(r.value,t,{level:r.level});else{var o=O({},ro);if(r.level>0)for(var s=0;s<Rf.length;++s)o[Rf[s]]="{primary|"+o[Rf[s]]+"}";var l=e?e.inherit===!1?e:Z(e,o):o,u=US(r.value,a);if(l[u])n=l[u];else if(l.inherit){for(var f=$S.indexOf(u),s=f-1;s>=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(N(n)){var h=r.level==null?0:r.level>=0?r.level:n.length+r.level;h=Math.min(h,n.length-1),n=n[h]}}return Qo(new Date(r.value),n,a,i)}function US(r,t){var e=Ce(r),i=e[rn(t)]()+1,a=e[Tu(t)](),n=e[Io(t)](),o=e[Cu(t)](),s=e[Au(t)](),l=e[Mu(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&n===0,v=c&&a===1,d=v&&i===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Cg(r,t,e){var i=yt(r)?Ce(r):r;switch(t=t||US(r,e),t){case"year":return i[Wc(e)]();case"half-year":return i[rn(e)]()>=6?1:0;case"quarter":return Math.floor((i[rn(e)]()+1)/4);case"month":return i[rn(e)]();case"day":return i[Tu(e)]();case"half-day":return i[Io(e)]()/24;case"hour":return i[Io(e)]();case"minute":return i[Cu(e)]();case"second":return i[Au(e)]();case"millisecond":return i[Mu(e)]()}}function Wc(r){return r?"getUTCFullYear":"getFullYear"}function rn(r){return r?"getUTCMonth":"getMonth"}function Tu(r){return r?"getUTCDate":"getDate"}function Io(r){return r?"getUTCHours":"getHours"}function Cu(r){return r?"getUTCMinutes":"getMinutes"}function Au(r){return r?"getUTCSeconds":"getSeconds"}function Mu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function iP(r){return r?"setUTCFullYear":"setFullYear"}function YS(r){return r?"setUTCMonth":"setMonth"}function XS(r){return r?"setUTCDate":"setDate"}function ZS(r){return r?"setUTCHours":"setHours"}function qS(r){return r?"setUTCMinutes":"setMinutes"}function KS(r){return r?"setUTCSeconds":"setSeconds"}function jS(r){return r?"setUTCMilliseconds":"setMilliseconds"}function aP(r,t,e,i,a,n,o,s){var l=new pt({style:{text:r,font:t,align:e,verticalAlign:i,padding:a,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function $c(r){if(!_c(r))return V(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Uc(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ta=sc,nP=/([&<>"'])/g,oP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function me(r){return r==null?"":(r+"").replace(nP,function(t,e){return oP[e]})}function vv(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&ze(f)?f:"-"}function n(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Ce(r):r;if(isNaN(+l)){if(s)return"-"}else return Qo(l,i,e)}if(t==="ordinal")return ml(r)?a(r):yt(r)&&n(r)?r+"":"-";var u=Wr(r);return n(u)?$c(u):ml(r)?a(r):typeof r=="boolean"?r+"":"-"}var Ag=["a","b","c","d","e","f","g"],Ef=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Yc(r,t,e){N(t)||(t=[t]);var i=t.length;if(!i)return"";for(var a=t[0].$vars||[],n=0;n<a.length;n++){var o=Ag[n];r=r.replace(Ef(o),Ef(o,0))}for(var s=0;s<i;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];r=r.replace(Ef(Ag[l],s),e?me(u):u)}return r}function sP(r,t,e){return w(t,function(i,a){r=r.replace("{"+a+"}",e?me(i):i)}),r}function JS(r,t){var e=V(r)?{color:r,extraCssText:t}:r||{},i=e.color,a=e.type;t=e.extraCssText;var n=e.renderMode||"html";if(!i)return"";if(n==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+me(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+me(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:n,content:"{"+o+"|}  ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function lP(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
yyyy`);var i=Ce(t),a=e?"getUTC":"get",n=i[a+"FullYear"](),o=i[a+"Month"]()+1,s=i[a+"Date"](),l=i[a+"Hours"](),u=i[a+"Minutes"](),f=i[a+"Seconds"](),h=i[a+"Milliseconds"]();return r=r.replace("MM",pe(o,2)).replace("M",o).replace("yyyy",n).replace("yy",pe(n%100+"",2)).replace("dd",pe(s,2)).replace("d",s).replace("hh",pe(l,2)).replace("h",l).replace("mm",pe(u,2)).replace("m",u).replace("ss",pe(f,2)).replace("s",f).replace("SSS",pe(h,3)),r}function uP(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function ma(r,t){return t=t||"transparent",V(r)?r:U(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Mg(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var hl=w,QS=["left","right","top","bottom","width","height"],sa=[["width","left","right"],["height","top","bottom"]];function Xc(r,t,e,i,a){var n=0,o=0;i==null&&(i=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);v=n+p,v>i||l.newline?(n=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>a||l.newline?(n+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=v+e:o=d+e)})}var va=Xc;ft(Xc,"vertical");ft(Xc,"horizontal");function HG(r,t,e){var i=t.width,a=t.height,n=K(r.left,i),o=K(r.top,a),s=K(r.right,i),l=K(r.bottom,a);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=i),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=a),e=Ta(e||0),{width:Math.max(s-n-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function ue(r,t,e){e=Ta(e||0);var i=t.width,a=t.height,n=K(r.left,i),o=K(r.top,a),s=K(r.right,i),l=K(r.bottom,a),u=K(r.width,i),f=K(r.height,a),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=i-s-c-n),isNaN(f)&&(f=a-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>i/a?u=i*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(n)&&(n=i-s-u-c),isNaN(o)&&(o=a-l-f-h),r.left||r.right){case"center":n=i/2-u/2-e[3];break;case"right":n=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-h;break}n=n||0,o=o||0,isNaN(u)&&(u=i-c-n-(s||0)),isNaN(f)&&(f=a-h-o-(l||0));var d=new ht(n+e[3],o+e[0],u,f);return d.margin=e,d}function Zc(r,t,e,i,a,n){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(n=n||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ht(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=ue(Z({width:u.width,height:u.height},t),e,i),c=o?h.x-u.x:0,v=s?h.y-u.y:0;return l==="raw"?(n.x=c,n.y=v):(n.x+=c,n.y+=v),n===r&&r.markRedraw(),!0}function fP(r,t){return r[sa[t][0]]!=null||r[sa[t][1]]!=null&&r[sa[t][2]]!=null}function Ro(r){var t=r.layoutMode||r.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function xi(r,t,e){var i=e&&e.ignoreSize;!N(i)&&(i=[i,i]);var a=o(sa[0],0),n=o(sa[1],1);u(sa[0],r,a),u(sa[1],r,n);function o(f,h){var c={},v=0,d={},p=0,g=2;if(hl(f,function(_){d[_]=r[_]}),hl(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),l(c,_)&&v++,l(d,_)&&p++}),i[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return c;for(var y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(r,m)){c[m]=r[m];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,c){hl(f,function(v){h[v]=c[v]})}}function bn(r){return tx({},r)}function tx(r,t){return t&&r&&hl(QS,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var hP=xt(),wn=function(r){R(t,r);function t(e,i,a){var n=r.call(this,e,i,a)||this;return n.uid=xn("ec_cpt_model"),n}return t.prototype.init=function(e,i,a){this.mergeDefaultAndTheme(e,a)},t.prototype.mergeDefaultAndTheme=function(e,i){var a=Ro(this),n=a?bn(e):{},o=i.getTheme();Q(e,o.get(this.mainType)),Q(e,this.getDefaultOption()),a&&xi(e,n,a)},t.prototype.mergeOption=function(e,i){Q(this.option,e,!0);var a=Ro(this);a&&xi(this.option,e,a)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!zM(e))return e.defaultOption;var i=hP(this);if(!i.defaultOption){for(var a=[],n=e;n;){var o=n.prototype.defaultOption;o&&a.push(o),n=n.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Q(s,a[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var a=e+"Index",n=e+"Id";return qo(this.ecModel,e,{index:this.get(a,!0),id:this.get(n,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Tt);Y1(wn,Tt);uu(wn);Z2(wn);q2(wn,vP);function vP(r){var t=[];return w(wn.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return xr(e).main}),r!=="dataset"&&ot(t,"dataset")<=0&&t.unshift("dataset"),t}var ut=wn,ex="";typeof navigator!="undefined"&&(ex=navigator.platform||"");var Ba="rgba(0, 0, 0, 0.2)",cP={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ba,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ba,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ba,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ba,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ba,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ba,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ex.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},rx=$(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),$e="original",xe="arrayRows",or="objectRows",Dr="keyedColumns",yi="typedArray",ix="unknown",Vr="column",Tn="row",Ht={Must:1,Might:2,Not:3},ax=xt();function dP(r){ax(r).datasetMap=$()}function pP(r,t,e){var i={},a=qc(t);if(!a||!r)return i;var n=[],o=[],s=t.ecModel,l=ax(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),w(r,function(p,g){var y=U(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),i[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});w(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;v(i[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(i[y],0,m),v(n,0,m);else{var _=c.categoryWayDim;v(i[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return n.length&&(i.itemName=n),o.length&&(i.seriesName=o),i}function nx(r,t,e){var i={},a=qc(r);if(!a)return i;var n=t.sourceFormat,o=t.dimensionsDefine,s;(n===or||n===Dr)&&w(o,function(f,h){(U(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,e);v<d;v++){var p=sx(t.data,n,t.seriesLayoutBy,o,t.startIndex,v);c.push(p);var g=p===Ht.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===Ht.Not)&&(f.n=v),y(f)&&c[f.n]!==Ht.Not)return f;g||(p===Ht.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){i.value=[l.v];var u=s!=null?s:l.n;i.itemName=[u],i.seriesName=[u]}return i}function qc(r){var t=r.get("data",!0);if(!t)return qo(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},zt).models[0]}function gP(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:qo(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},zt).models}function ox(r,t){return sx(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function sx(r,t,e,i,a,n){var o,s=5;if(Se(r))return Ht.Not;var l,u;if(i){var f=i[n];U(f)?(l=f.name,u=f.type):V(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ht.Must:Ht.Not;if(t===xe){var h=r;if(e===Tn){for(var c=h[n],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[a+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[a+v];if(d&&(o=S(d[n]))!=null)return o}}else if(t===or){var p=r;if(!l)return Ht.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Dr){var y=r;if(!l)return Ht.Not;var c=y[l];if(!c||Se(c))return Ht.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===$e)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=mn(g);if(!N(_))return Ht.Not;if((o=S(_[n]))!=null)return o}function S(b){var x=V(b);if(b!=null&&isFinite(b)&&b!=="")return x?Ht.Might:Ht.Not;if(x&&b!=="-")return Ht.Must}return Ht.Not}var cv=$();function yP(r,t){le(cv.get(r)==null&&t),cv.set(r,t)}function mP(r,t,e){var i=cv.get(t);if(!i)return e;var a=i(r);return a?e.concat(a):e}var Dg=xt(),_P=xt(),Kc=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var a=At(this.get("color",!0)),n=this.get("colorLayer",!0);return lx(this,Dg,a,n,t,e,i)},r.prototype.clearColorPalette=function(){xP(this,Dg)},r}();function Pg(r,t,e,i){var a=At(r.get(["aria","decal","decals"]));return lx(r,_P,a,null,t,e,i)}function SP(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function lx(r,t,e,i,a,n,o){n=n||r;var s=t(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!i?e:SP(i,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return a&&(u[a]=h),s.paletteIdx=(l+1)%f.length,h}}function xP(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Cs,En,Lg,Ig="\0_ec_inner",bP=1,ux=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,a,n,o,s){n=n||{},this.option=null,this._theme=new Tt(n),this._locale=new Tt(o),this._optionManager=s},t.prototype.setOption=function(e,i,a){var n=kg(i);this._optionManager.setOption(e,a,n),this._resetOption(null,n)},t.prototype.resetOption=function(e,i){return this._resetOption(e,kg(i))},t.prototype._resetOption=function(e,i){var a=!1,n=this._optionManager;if(!e||e==="recreate"){var o=n.mountOption(e==="recreate");!this.option||e==="recreate"?Lg(this,o):(this.restoreData(),this._mergeOption(o,i)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=n.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=n.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,i)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var a=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=$(),u=i&&i.replaceMergeMainTypeMap;dP(this),w(e,function(h,c){h!=null&&(ut.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?X(h):Q(a[c],h,!0))}),u&&u.each(function(h,c){ut.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),ut.topologicalTravel(s,ut.getAllClassMainTypes(),f,this);function f(h){var c=mP(this,h,At(e[h])),v=n.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=G1(v,c,d);PM(p,h,ut),a[h]=null,n.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;w(p,function(S,b){var x=S.existing,T=S.newOption;if(!T)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=h==="series",A=ut.getClass(h,S.keyInfo.subType,!C);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(T,this),x.optionUpdated(T,!1);else{var D=O({componentIndex:b},S.keyInfo);x=new A(T,this,this,D),O(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(T,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),a[h]=g,n.set(h,y),o.set(h,m),h==="series"&&Cs(this)}this._seriesIndices||Cs(this)},t.prototype.getOption=function(){var e=X(this.option);return w(e,function(i,a){if(ut.hasClass(a)){for(var n=At(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!Ao(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,e[a]=n}}),delete e[Ig],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var a=this._componentsMap.get(e);if(a){var n=a[i||0];if(n)return n;if(i==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var a=e.index,n=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return a!=null?(l=[],w(At(a),function(u){s[u]&&l.push(s[u])})):n!=null?l=Rg("id",n,s):o!=null?l=Rg("name",o,s):l=Ct(s,function(u){return!!u}),Eg(l,e)},t.prototype.findComponents=function(e){var i=e.query,a=e.mainType,n=s(i),o=n?this.queryComponents(n):Ct(this._componentsMap.get(a),function(u){return!!u});return l(Eg(o,e));function s(u){var f=a+"Index",h=a+"Id",c=a+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:a,index:u[f],id:u[h],name:u[c]}:null}function l(u){return e.filter?Ct(u,e.filter):u}},t.prototype.eachComponent=function(e,i,a){var n=this._componentsMap;if(q(e)){var o=i,s=e;n.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=V(e)?n.get(e):U(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Jt(e,null);return Ct(this._componentsMap.get("series"),function(a){return!!a&&i!=null&&a.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Ct(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return Ct(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){En(this),w(this._seriesIndices,function(a){var n=this._componentsMap.get("series")[a];e.call(i,n,a)},this)},t.prototype.eachRawSeries=function(e,i){w(this._componentsMap.get("series"),function(a){a&&e.call(i,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,a){En(this),w(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===e&&i.call(a,o,n)},this)},t.prototype.eachRawSeriesByType=function(e,i,a){return w(this.getSeriesByType(e),i,a)},t.prototype.isSeriesFiltered=function(e){return En(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){En(this);var a=[];w(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];e.call(i,o,n)&&a.push(n)},this),this._seriesIndices=a,this._seriesIndicesMap=$(a)},t.prototype.restoreData=function(e){Cs(this);var i=this._componentsMap,a=[];i.each(function(n,o){ut.hasClass(o)&&a.push(o)}),ut.topologicalTravel(a,ut.getAllClassMainTypes(),function(n){w(i.get(n),function(o){o&&(n!=="series"||!wP(o,e))&&o.restoreData()})})},t.internalField=function(){Cs=function(e){var i=e._seriesIndices=[];w(e._componentsMap.get("series"),function(a){a&&i.push(a.componentIndex)}),e._seriesIndicesMap=$(i)},En=function(e){},Lg=function(e,i){e.option={},e.option[Ig]=bP,e._componentsMap=$({series:[]}),e._componentsCount=$();var a=i.aria;U(a)&&a.enabled==null&&(a.enabled=!0),TP(i,e._theme.option),Q(i,cP,!1),e._mergeOption(i,null)}}(),t}(Tt);function wP(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,a=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||a!=null&&r.name!==a}}function TP(r,t){var e=r.color&&!r.colorLayer;w(t,function(i,a){a==="colorLayer"&&e||ut.hasClass(a)||(typeof i=="object"?r[a]=r[a]?Q(r[a],i,!1):X(i):r[a]==null&&(r[a]=i))})}function Rg(r,t,e){if(N(t)){var i=$();return w(t,function(n){if(n!=null){var o=Jt(n,null);o!=null&&i.set(n,!0)}}),Ct(e,function(n){return n&&i.get(n[r])})}else{var a=Jt(t,null);return Ct(e,function(n){return n&&a!=null&&n[r]===a})}}function Eg(r,t){return t.hasOwnProperty("subType")?Ct(r,function(e){return e&&e.subType===t.subType}):r}function kg(r){var t=$();return r&&w(At(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Yt(ux,Kc);var fx=ux,CP=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],AP=function(){function r(t){w(CP,function(e){this[e]=H(t[e],t)},this)}return r}(),hx=AP,kf={},MP=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var i=[];w(kf,function(a,n){var o=a.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(t,e){w(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){kf[t]=e},r.get=function(t){return kf[t]},r}(),Du=MP,DP=/^(min|max)?(.+)$/,PP=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(w(At(t.series),function(o){o&&o.data&&Se(o.data)&&bo(o.data)}),w(At(t.dataset),function(o){o&&o.source&&Se(o.source)&&bo(o.source)})),t=X(t);var a=this._optionBackup,n=LP(t,e,!a);this._newBaseOption=n.baseOption,a?(n.timelineOptions.length&&(a.timelineOptions=n.timelineOptions),n.mediaList.length&&(a.mediaList=n.mediaList),n.mediaDefault&&(a.mediaDefault=n.mediaDefault)):this._optionBackup=n},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],X(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var a=t.getComponent("timeline");a&&(e=X(i[a.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,n=this._mediaDefault,o=[],s=[];if(!a.length&&!n)return s;for(var l=0,u=a.length;l<u;l++)IP(a[l].query,e,i)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!EP(o,this._currentMediaIndices)&&(s=z(o,function(f){return X(f===-1?n.option:a[f].option)})),this._currentMediaIndices=o,s},r}();function LP(r,t,e){var i=[],a,n,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(n=o,n.timeline||(n.timeline=s)):((h||f)&&(r.options=r.media=null),n=r),f&&N(u)&&w(u,function(v){v&&v.option&&(v.query?i.push(v):a||(a=v))}),c(n),w(l,function(v){return c(v)}),w(i,function(v){return c(v.option)});function c(v){w(t,function(d){d(v,e)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:a,mediaList:i}}function IP(r,t,e){var i={width:t,height:e,aspectratio:t/e},a=!0;return w(r,function(n,o){var s=o.match(DP);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();RP(i[u],n,l)||(a=!1)}}),a}function RP(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function EP(r,t){return r.join(",")===t.join(",")}var kP=PP,Xe=w,Eo=U,Og=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Of(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,i=Og.length;e<i;e++){var a=Og[e],n=t.normal,o=t.emphasis;n&&n[a]&&(r[a]=r[a]||{},r[a].normal?Q(r[a].normal,n[a]):r[a].normal=n[a],n[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?Q(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function jt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,a=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,Z(r[t],i)):r[t]=i),a&&(r.emphasis=r.emphasis||{},r.emphasis[t]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function io(r){jt(r,"itemStyle"),jt(r,"lineStyle"),jt(r,"areaStyle"),jt(r,"label"),jt(r,"labelLine"),jt(r,"upperLabel"),jt(r,"edgeLabel")}function kt(r,t){var e=Eo(r)&&r[t],i=Eo(e)&&e.textStyle;if(i)for(var a=0,n=Bp.length;a<n;a++){var o=Bp[a];i.hasOwnProperty(o)&&(e[o]=i[o])}}function Re(r){r&&(io(r),kt(r,"label"),r.emphasis&&kt(r.emphasis,"label"))}function OP(r){if(!!Eo(r)){Of(r),io(r),kt(r,"label"),kt(r,"upperLabel"),kt(r,"edgeLabel"),r.emphasis&&(kt(r.emphasis,"label"),kt(r.emphasis,"upperLabel"),kt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Of(t),Re(t));var e=r.markLine;e&&(Of(e),Re(e));var i=r.markArea;i&&Re(i);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var n=r.links||r.edges;if(n&&!Se(n))for(var o=0;o<n.length;o++)Re(n[o]);w(r.categories,function(u){io(u)})}if(a&&!Se(a))for(var o=0;o<a.length;o++)Re(a[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Re(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)N(l[o])?(Re(l[o][0]),Re(l[o][1])):Re(l[o]);r.type==="gauge"?(kt(r,"axisLabel"),kt(r,"title"),kt(r,"detail")):r.type==="treemap"?(jt(r.breadcrumb,"itemStyle"),w(r.levels,function(u){io(u)})):r.type==="tree"&&io(r.leaves)}}function Ir(r){return N(r)?r:r?[r]:[]}function Bg(r){return(N(r)?r[0]:r)||{}}function BP(r,t){Xe(Ir(r.series),function(i){Eo(i)&&OP(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Xe(e,function(i){Xe(Ir(r[i]),function(a){a&&(kt(a,"axisLabel"),kt(a.axisPointer,"label"))})}),Xe(Ir(r.parallel),function(i){var a=i&&i.parallelAxisDefault;kt(a,"axisLabel"),kt(a&&a.axisPointer,"label")}),Xe(Ir(r.calendar),function(i){jt(i,"itemStyle"),kt(i,"dayLabel"),kt(i,"monthLabel"),kt(i,"yearLabel")}),Xe(Ir(r.radar),function(i){kt(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Xe(Ir(r.geo),function(i){Eo(i)&&(Re(i),Xe(Ir(i.regions),function(a){Re(a)}))}),Xe(Ir(r.timeline),function(i){Re(i),jt(i,"label"),jt(i,"itemStyle"),jt(i,"controlStyle",!0);var a=i.data;N(a)&&w(a,function(n){U(n)&&(jt(n,"label"),jt(n,"itemStyle"))})}),Xe(Ir(r.toolbox),function(i){jt(i,"iconStyle"),Xe(i.feature,function(a){jt(a,"iconStyle")})}),kt(Bg(r.axisPointer),"label"),kt(Bg(r.tooltip).axisPointer,"label")}function NP(r,t){for(var e=t.split(","),i=r,a=0;a<e.length&&(i=i&&i[e[a]],i!=null);a++);return i}function zP(r,t,e,i){for(var a=t.split(","),n=r,o,s=0;s<a.length-1;s++)o=a[s],n[o]==null&&(n[o]={}),n=n[o];(i||n[a[s]]==null)&&(n[a[s]]=e)}function Ng(r){r&&w(VP,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var VP=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],FP=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Bf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function kn(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Bf.length;e++){var i=Bf[e][1],a=Bf[e][0];t[i]!=null&&(t[a]=t[i])}}function zg(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Vg(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function GP(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function vx(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&vx(r[e].children,t)}function cx(r,t){BP(r,t),r.series=At(r.series),w(r.series,function(e){if(!!U(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),zg(e.label);var a=e.data;if(a&&!Se(a))for(var n=0;n<a.length;n++)zg(a[n]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=NP(e,"pointer.color");o!=null&&zP(e,"itemStyle.color",o)}else if(i==="bar"){kn(e),kn(e.backgroundStyle),kn(e.emphasis);var a=e.data;if(a&&!Se(a))for(var n=0;n<a.length;n++)typeof a[n]=="object"&&(kn(a[n]),kn(a[n]&&a[n].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Vg(e),vx(e.data,Vg)}else i==="graph"||i==="sankey"?GP(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Z(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Ng(e)}}),r.dataRange&&(r.visualMap=r.dataRange),w(FP,function(e){var i=r[e];i&&(N(i)||(i=[i]),w(i,function(a){Ng(a)}))})}function HP(r){var t=$();r.eachSeries(function(e){var i=e.get("stack");if(i){var a=t.get(i)||t.set(i,[]),n=e.getData(),o={stackResultDimension:n.getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&n.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(WP)}function WP(r){w(r,function(t,e){var i=[],a=[NaN,NaN],n=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(n,function(u,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return a;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=yM(c,m),p=m;break}}}return i[0]=c,i[1]=p,i})})}var Pu=function(){function r(t){this.data=t.data||(t.sourceFormat===Dr?{}:[]),this.sourceFormat=t.sourceFormat||ix,this.seriesLayoutBy=t.seriesLayoutBy||Vr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var a=e[i];a.type==null&&ox(this,i)===Ht.Must&&(a.type="ordinal")}}return r}();function jc(r){return r instanceof Pu}function dv(r,t,e){e=e||dx(r);var i=t.seriesLayoutBy,a=UP(r,e,i,t.sourceHeader,t.dimensions),n=new Pu({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:X(t)});return n}function Jc(r){return new Pu({data:r,sourceFormat:Se(r)?yi:$e})}function $P(r){return new Pu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:X(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function dx(r){var t=ix;if(Se(r))t=yi;else if(N(r)){r.length===0&&(t=xe);for(var e=0,i=r.length;e<i;e++){var a=r[e];if(a!=null){if(N(a)){t=xe;break}else if(U(a)){t=or;break}}}}else if(U(r)){for(var n in r)if(G(r,n)&&te(r[n])){t=Dr;break}}return t}function UP(r,t,e,i,a){var n,o;if(!r)return{dimensionsDefine:Fg(a),startIndex:o,dimensionsDetectedCount:n};if(t===xe){var s=r;i==="auto"||i==null?Gg(function(u){u!=null&&u!=="-"&&(V(u)?o==null&&(o=1):o=0)},e,s,10):o=yt(i)?i:i?1:0,!a&&o===1&&(a=[],Gg(function(u,f){a[f]=u!=null?u+"":""},e,s,1/0)),n=a?a.length:e===Tn?s.length:s[0]?s[0].length:null}else if(t===or)a||(a=YP(r));else if(t===Dr)a||(a=[],w(r,function(u,f){a.push(f)}));else if(t===$e){var l=mn(r[0]);n=N(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Fg(a),dimensionsDetectedCount:n}}function YP(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e){var i=[];return w(e,function(a,n){i.push(n)}),i}}function Fg(r){if(!!r){var t=$();return z(r,function(e,i){e=U(e)?e:{name:e};var a={name:e.name,displayName:e.displayName,type:e.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var n=t.get(a.name);return n?a.name+="-"+n.count++:t.set(a.name,{count:1}),a})}}function Gg(r,t,e,i){if(t===Tn)for(var a=0;a<e.length&&a<i;a++)r(e[a]?e[a][0]:null,a);else for(var n=e[0]||[],a=0;a<n.length&&a<i;a++)r(n[a],a)}function px(r){var t=r.sourceFormat;return t===or||t===Dr}var $i,Ui,Yi,Hg,Wg,gx=function(){function r(t,e){var i=jc(t)?t:Jc(t);this._source=i;var a=this._data=i.data;i.sourceFormat===yi&&(this._offset=0,this._dimSize=e,this._data=a),Wg(this,a,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Wg=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=Hg[Qc(u,f)];if(O(o,v),u===yi)o.getItem=e,o.count=a,o.fillStorage=i;else{var d=yx(u,f);o.getItem=H(d,null,s,h,c);var p=mx(u,f);o.count=H(p,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},i=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*h+c];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};Hg=(t={},t[xe+"_"+Vr]={pure:!0,appendData:n},t[xe+"_"+Tn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[or]={pure:!0,appendData:n},t[Dr]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[$e]={appendData:n},t[yi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function n(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),$g=function(r,t,e,i){return r[i]},XP=($i={},$i[xe+"_"+Vr]=function(r,t,e,i){return r[i+t]},$i[xe+"_"+Tn]=function(r,t,e,i,a){i+=t;for(var n=a||[],o=r,s=0;s<o.length;s++){var l=o[s];n[s]=l?l[i]:null}return n},$i[or]=$g,$i[Dr]=function(r,t,e,i,a){for(var n=a||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];n[o]=l?l[i]:null}return n},$i[$e]=$g,$i);function yx(r,t){var e=XP[Qc(r,t)];return e}var Ug=function(r,t,e){return r.length},ZP=(Ui={},Ui[xe+"_"+Vr]=function(r,t,e){return Math.max(0,r.length-t)},Ui[xe+"_"+Tn]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Ui[or]=Ug,Ui[Dr]=function(r,t,e){var i=e[0].name,a=r[i];return a?a.length:0},Ui[$e]=Ug,Ui);function mx(r,t){var e=ZP[Qc(r,t)];return e}var Nf=function(r,t,e){return r[t]},qP=(Yi={},Yi[xe]=Nf,Yi[or]=function(r,t,e){return r[e]},Yi[Dr]=Nf,Yi[$e]=function(r,t,e){var i=mn(r);return i instanceof Array?i[t]:i},Yi[yi]=Nf,Yi);function _x(r){var t=qP[r];return t}function Qc(r,t){return r===xe?r+"_"+t:r}function vn(r,t,e){if(!!r){var i=r.getRawDataItem(t);if(i!=null){var a=r.getStore(),n=a.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=a.getDimensionProperty(o);return _x(n)(i,o,s)}else{var l=i;return n===$e&&(l=mn(i)),l}}}}var KP=/\{@(.+?)\}/g,Sx=function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),a=this.getRawValue(t,e),n=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:n,data:s,dataType:e,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,a,n,o){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(o&&(l.value=o.interpolatedValue),a!=null&&N(l.value)&&(l.value=l.value[a]),!n){var u=s.getItemModel(t);n=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(q(n))return l.status=e,l.dimensionIndex=a,n(l);if(V(n)){var f=Yc(n,l);return f.replace(KP,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=vn(s,t,d);if(o&&N(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return vn(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function Yg(r){var t,e;return U(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function yo(r){return new jP(r)}var jP=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!i&&(n=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(n="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||n==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v<d)){var p=this._progress;if(N(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,a,n){Xg.reset(e,i,a,n),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Xg.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),N(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),Xg=function(){var r,t,e,i,a,n={reset:function(l,u,f,h){t=l,r=u,e=f,i=h,a=Math.ceil(i/e),n.next=e>1&&i>0?s:o}};return n;function o(){return t<r?t++:null}function s(){var l=t%a*e+Math.ceil(t/a),u=t>=r?null:l<i?l:t;return t++,u}}();function vl(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!yt(r)&&r!=null&&r!=="-"&&(r=+Ce(r)),r==null||r===""?NaN:+r)}var JP=$({number:function(r){return parseFloat(r)},time:function(r){return+Ce(r)},trim:function(r){return V(r)?ze(r):r}});function WG(r){return JP.get(r)}var xx={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},QP=function(){function r(t,e){if(!yt(e)){var i="";ae(i)}this._opFn=xx[t],this._rvalFloat=Wr(e)}return r.prototype.evaluate=function(t){return yt(t)?this._opFn(t,this._rvalFloat):this._opFn(Wr(t),this._rvalFloat)},r}(),tL=function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=yt(t)?t:Wr(t),a=yt(e)?e:Wr(e),n=isNaN(i),o=isNaN(a);if(n&&(i=this._incomparable),o&&(a=this._incomparable),n&&o){var s=V(t),l=V(e);s&&(i=l?t:0),l&&(a=s?e:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},r}(),eL=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Wr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(e=Wr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function $G(r,t){return r==="eq"||r==="ne"?new eL(r==="eq",t):G(xx,r)?new QP(r,t):null}var rL=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return vl(t,e)},r}();function iL(r,t){var e=new rL,i=r.data,a=e.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Vr&&ae(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";G(l,y)&&ae(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=yx(a,Vr);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(i,n,s,p)},e.getRawData=H(aL,null,r)),e.cloneRawData=H(nL,null,r);var c=mx(a,Vr);e.count=H(c,null,i,n,s);var v=_x(a);e.retrieveValue=function(p,g){var y=h(i,n,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return v(p,g,y.name)}};return e.getDimensionInfo=H(oL,null,s,l),e.cloneAllDimensionInfo=H(sL,null,s),e}function aL(r){var t=r.sourceFormat;if(!td(t)){var e="";ae(e)}return r.data}function nL(r){var t=r.sourceFormat,e=r.data;if(!td(t)){var i="";ae(i)}if(t===xe){for(var a=[],n=0,o=e.length;n<o;n++)a.push(e[n].slice());return a}else if(t===or){for(var a=[],n=0,o=e.length;n<o;n++)a.push(O({},e[n]));return a}}function oL(r,t,e){if(e!=null){if(yt(e)||!isNaN(e)&&!G(t,e))return r[e];if(G(t,e))return t[e]}}function sL(r){return X(r)}var bx=$();function lL(r){r=X(r);var t=r.type,e="";t||ae(e);var i=t.split(":");i.length!==2&&ae(e);var a=!1;i[0]==="echarts"&&(t=i[1],a=!0),r.__isBuiltIn=a,bx.set(t,r)}function uL(r,t,e){var i=At(r),a=i.length,n="";a||ae(n);for(var o=0,s=a;o<s;o++){var l=i[o];t=fL(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function fL(r,t,e,i){var a="";t.length||ae(a),U(r)||ae(a);var n=r.type,o=bx.get(n);o||ae(a);var s=z(t,function(u){return iL(u,o)}),l=At(o.transform({upstream:s[0],upstreamList:s,config:X(r.config)}));return z(l,function(u,f){var h="";U(u)||ae(h),u.data||ae(h);var c=dx(u.data);td(c)||ae(h);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:Vr,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Vr,sourceHeader:0,dimensions:u.dimensions};return dv(u.data,v,null)})}function td(r){return r===xe||r===or}var Lu="undefined",hL=typeof Uint32Array===Lu?Array:Uint32Array,vL=typeof Uint16Array===Lu?Array:Uint16Array,Tx=typeof Int32Array===Lu?Array:Int32Array,Zg=typeof Float64Array===Lu?Array:Float64Array,Cx={float:Zg,int:Tx,ordinal:Array,number:Array,time:Zg},zf;function On(r){return r>65535?hL:vL}function Na(){return[1/0,-1/0]}function cL(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function qg(r,t,e,i,a){var n=Cx[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new n(i),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new n(i)}var dL=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=$()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),n=this.defaultDimValueGetter=zf[a.sourceFormat];this._dimValueGetter=i||n,this._rawExtent=[],px(a),this._dimensions=z(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,a=this._dimensions,n=i.get(t);if(n!=null){if(a[n].type===e)return n}else n=a.length;return a[n]={type:e},i.set(t,n),this._chunks[n]=new Cx[e||"float"](this._rawCount),this._rawExtent[n]=Na(),n},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],a=this._dimensions[t],n=this._rawExtent,o=a.ordinalOffset||0,s=i.length;o===0&&(n[t]=Na());for(var l=n[t],u=o;u<s;u++){var f=i[u]=e.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=e,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var a=e.count();return e.persistent||(a+=i),i<a&&this._initDataFromProvider(i,a,!0),[i,a]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,a=this._dimensions,n=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<n;u++){var f=a[u];qg(i,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<n;d++){var f=a[d],p=zf.arrayRows.call(this,t[v]||h,f.property,v,d);i[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var a=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=z(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Na()),qg(n,f,h.type,e,i)}if(a.fillStorage)a.fillStorage(t,e,n,l);else for(var c=[],v=t;v<e;v++){c=a.getItem(v,c);for(var d=0;d<s;d++){var p=n[d],g=this._dimValueGetter(c,u[d],v,d);p[v]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],a=[];if(e==null){e=t,t=[];for(var n=0;n<this._dimensions.length;n++)a.push(n)}else a=t;for(var n=0,o=a.length;n<o;n++)i.push(this.get(a[n],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var a=0,n=this.count();a<n;a++){var o=this.get(t,a);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(n){isNaN(n)||e.push(n)});var i=e.sort(function(n,o){return n-o}),a=this.count();return a===0?0:a%2===1?i[(a-1)/2]:(i[a/2]+i[a/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var a=0,n=this._count-1;a<=n;){var o=(a+n)/2|0;if(e[o]<t)a=o+1;else if(e[o]>t)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var a=this._chunks,n=a[t],o=[];if(!n)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=e-n[c],d=Math.abs(v);d<=i&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,a=this._count;if(i===Array){t=new i(a);for(var n=0;n<a;n++)t[n]=e[n]}else t=new i(e.buffer,0,a)}else{var i=On(this._rawCount);t=new i(this.count());for(var n=0;n<t.length;n++)t[n]=n}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),a=i.count(),n=On(i._rawCount),o=new n(a),s=[],l=t.length,u=0,f=t[0],h=i._chunks,c=0;c<a;c++){var v=void 0,d=i.getRawIndex(c);if(l===0)v=e(c);else if(l===1){var p=h[f][d];v=e(p,c)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][d];s[g]=c,v=e.apply(null,s)}v&&(o[u++]=d)}return u<a&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var a=at(t),n=a.length;if(!n)return this;var o=e.count(),s=On(e._rawCount),l=new s(o),u=0,f=a[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(n===1){for(var g=v[a[0]],y=0;y<i;y++){var m=g[y];(m>=h&&m<=c||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(n===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],y=0;y<i;y++){var m=g[y],x=_[y];(m>=h&&m<=c||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(n===1)for(var y=0;y<o;y++){var T=e.getRawIndex(y),m=v[a[0]][T];(m>=h&&m<=c||isNaN(m))&&(l[u++]=T)}else for(var y=0;y<o;y++){for(var C=!0,T=e.getRawIndex(y),A=0;A<n;A++){var D=a[A],m=v[D][T];(m<t[D][0]||m>t[D][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var a=t._chunks,n=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Na();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)l[v]=a[e[v]][c];l[o]=h;var d=i&&i.apply(null,l);if(d!=null){typeof d!="object"&&(n[0]=d,d=n);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=a[p];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),a=i._chunks,n=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(On(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=n[S];isNaN(b)||(m+=b)}m/=g-p;var x=d,T=Math.min(d+l,o),C=d-1,A=n[u];f=-1,c=x;for(var D=-1,M=0,_=x;_<T;_++){var S=this.getRawIndex(_),b=n[S];if(isNaN(b)){M++,D<0&&(D=S);continue}h=Math.abs((C-y)*(b-A)-(C-_)*(m-A)),h>f&&(f=h,c=S)}M>0&&M<T-x&&(v[s++]=Math.min(D,c),c=Math.max(D,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},r.prototype.downSample=function(t,e,i,a){for(var n=this.clone([t],!0),o=n._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=n._rawExtent[t]=Na(),c=new(On(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=i(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return n._count=v,n._indices=c,n._updateGetRawIdx(),n},r.prototype.each=function(t,e){if(!!this._count)for(var i=t.length,a=this._chunks,n=0,o=this.count();n<o;n++){var s=this.getRawIndex(n);switch(i){case 0:e(n);break;case 1:e(a[t[0]][s],n);break;case 2:e(a[t[0]][s],a[t[1]][s],n);break;default:for(var l=0,u=[];l<i;l++)u[l]=a[t[l]][s];u[l]=n,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Na();if(!e)return i;var a=this.count(),n=!this._indices,o;if(n)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],l=o[1],u=0;u<a;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],a=this._chunks,n=0;n<a.length;n++)i.push(a[n][e]);return i},r.prototype.clone=function(t,e){var i=new r,a=this._chunks,n=t&&Ve(t,function(s,l){return s[l]=!0,s},{});if(n)for(var o=0;o<a.length;o++)i._chunks[o]=n[o]?cL(a[o]):a[o];else i._chunks=a;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=X(this._extent),t._rawExtent=X(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var a=0;a<i;a++)e[a]=this._indices[a]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,i,a,n){return vl(e[n],this._dimensions[n])}zf={arrayRows:t,objectRows:function(e,i,a,n){return vl(e[i],this._dimensions[n])},keyedColumns:t,original:function(e,i,a,n){var o=e&&(e.value==null?e:e.value);return vl(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(e,i,a,n){return e[n]}}}(),r}(),pv=dL,pL=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,a,n;if(As(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=Se(s)?yi:$e,n=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=it(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=it(h.sourceHeader,c.sourceHeader),p=it(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;a=g?[dv(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(i){var m=this._applyTransform(e);a=m.sourceList,n=m.upstreamSignList}else{var _=y.get("source",!0);a=[dv(_,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(a,n)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var n="";t.length!==1&&Kg(n)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(a||0),h="";a!=null&&!f&&Kg(h),s.push(f),l.push(u._getVersionSign())}),i?o=uL(i,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[$P(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,i){var a=0,n=this._storeList,o=n[a];o||(o=n[a]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];As(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,i):(s=new pv,s.initData(new gx(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(As(t)){var e=qc(t);return e?[e.getSourceManager()]:[]}else return z(gP(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,a;if(As(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var n=t;e=n.get("seriesLayoutBy",!0),i=n.get("sourceHeader",!0),a=n.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:a}},r}();function UG(r){var t=r.option.transform;t&&bo(r.option.transform)}function As(r){return r.mainType==="series"}function Kg(r){throw new Error(r)}var Ax="line-height:1";function Mx(r,t){var e=r.color||"#6e7079",i=r.fontSize||12,a=r.fontWeight||"400",n=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+me(i+"")+"px;color:"+me(e)+";font-weight:"+me(a+""),valueStyle:"font-size:"+me(o+"")+"px;color:"+me(n)+";font-weight:"+me(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:a},valueStyle:{fontSize:o,fill:n,fontWeight:s}}}var gL=[0,10,20,30],yL=["",`
`,`

`,`


`];function Cr(r,t){return t.type=r,t}function gv(r){return r.type==="section"}function Dx(r){return gv(r)?mL:_L}function Px(r){if(gv(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return w(r.blocks,function(a){var n=Px(a);n>=t&&(t=n+ +(i&&(!n||gv(a)&&!a.noHeader)))}),t}return 0}function mL(r,t,e,i){var a=t.noHeader,n=SL(Px(t)),o=[],s=t.blocks||[];le(!s||N(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(G(u,l)){var f=new tL(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var g=t.valueFormatter,y=Dx(d)(g?O(O({},r),{valueFormatter:g}):r,d,p>0?n.html:0,i);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(n.richText):yv(o.join(""),a?e:n.html);if(a)return h;var c=vv(t.header,"ordinal",r.useUTC),v=Mx(i,r.renderMode).nameStyle;return r.renderMode==="richText"?Lx(r,c,v)+n.richText+h:yv('<div style="'+v+";"+Ax+';">'+me(c)+"</div>"+h,e)}function _L(r,t,e,i){var a=r.renderMode,n=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],z(S,function(b,x){return vv(b,N(v)?v[x]:v,u)})};if(!(n&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),c=n?"":vv(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value),p=!s||!n,g=!s&&n,y=Mx(i,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":h)+(n?"":Lx(r,c,m))+(o?"":wL(r,d,p,g,_)):yv((s?"":h)+(n?"":xL(c,!s,m))+(o?"":bL(d,p,g,_)),e)}}function jg(r,t,e,i,a,n){if(!!r){var o=Dx(r),s={useUTC:a,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function SL(r){return{html:gL[r],richText:yL[r]}}function yv(r,t){var e='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+Ax+';">'+r+e+"</div>"}function xL(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+me(r)+"</span>"}function bL(r,t,e,i){var a=e?"10px":"20px",n=t?"float:right;margin-left:"+a:"";return r=N(r)?r:[r],'<span style="'+n+";"+i+'">'+z(r,function(o){return me(o)}).join("&nbsp;&nbsp;")+"</span>"}function Lx(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function wL(r,t,e,i,a){var n=[a],o=i?10:20;return e&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join("  "):t,n)}function Ix(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return ma(i)}function Rx(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Vf=function(){function r(){this.richTextStyles={},this._nextStyleNameId=N1()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var a=i==="richText"?this._generateStyleName():null,n=JS({color:e,type:t,renderMode:i,markerId:a});return V(n)?n:(this.richTextStyles[a]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};N(e)?w(e,function(n){return O(i,n)}):O(i,e);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+t+"}"},r}();function TL(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,a=t.getData(),n=a.mapDimensionsAll("defaultedTooltip"),o=n.length,s=t.getRawValue(e),l=N(s),u=Ix(t,e),f,h,c,v;if(o>1||l&&!o){var d=CL(s,t,e,n,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(n[0]);v=f=vn(a,e,n[0]),h=p.type}else v=f=l?s[0]:s;var g=Sc(t),y=g&&t.name||"",m=a.getName(e),_=i?y:m;return Cr("section",{header:y,noHeader:i||!g,sortParam:v,blocks:[Cr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ze(_),value:f,valueType:h})].concat(c||[])})}function CL(r,t,e,i,a){var n=t.getData(),o=Ve(r,function(h,c,v){var d=n.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(h){f(vn(n,e,h),h)}):w(r,f);function f(h,c){var v=n.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(Cr("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ti=xt();function Ms(r,t){return r.getName(t)||r.getId(t)}var AL="__universalTransitionEnabled",Iu=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,a){this.seriesIndex=this.componentIndex,this.dataTask=yo({count:DL,reset:PL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var n=ti(this).sourceManager=new pL(this);n.prepareSource();var o=this.getInitialData(e,a);Qg(o,this),this.dataTask.context.data=o,ti(this).dataBeforeProcessed=o,Jg(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var a=Ro(this),n=a?bn(e):{},o=this.subType;ut.hasClass(o)&&(o+="Series"),Q(e,i.getTheme().get(this.subType)),Q(e,this.getDefaultOption()),Ml(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&xi(e,n,a)},t.prototype.mergeOption=function(e,i){e=Q(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Ro(this);a&&xi(this.option,e,a);var n=ti(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(e,i);Qg(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ti(this).dataBeforeProcessed=o,Jg(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Se(e))for(var i=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&Ml(e[a],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=mv(this);if(i){var a=i.context.data;return e==null?a:a.getLinkedData(e)}else return ti(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=mv(this);if(i){var a=i.context;a.outputData=e,i!==this.dataTask&&(a.data=e)}ti(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return $(e)},t.prototype.getSourceManager=function(){return ti(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ti(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,i,a){return TL({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(vt.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,a){var n=this.ecModel,o=Kc.prototype.getColorFromPalette.call(this,e,i,a);return o||(o=n.getColorFromPalette(e,i,a)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var a=this.option.selectedMap;if(!!a){var n=this.option.selectedMode,o=this.getData(i);if(n==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Ms(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,i){for(var a=[],n=0;n<e.length;n++)a[0]=e[n],this.isSelected(e[n],i)?this.unselect(a,i):this.select(a,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=at(e),a=[],n=0;n<i.length;n++){var o=e[i[n]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(e,i){var a=this.option.selectedMap;if(!a)return!1;var n=this.getData(i);return(a==="all"||a[Ms(n,e)])&&!n.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[AL])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var a,n,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){U(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=i[f],c=Ms(e,h);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[l-1],c=Ms(e,v);o.selectedMap=(a={},a[c]=!0,a),this._selectedDataIndicesMap=(n={},n[c]=e.getRawIndex(v),n)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(a){var n=e.getRawDataItem(a);n&&n.selected&&i.push(a)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return ut.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ut);Yt(Iu,Sx);Yt(Iu,Kc);Y1(Iu,ut);function Jg(r){var t=r.name;Sc(r)||(r.name=ML(r)||t)}function ML(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return w(e,function(a){var n=t.getDimensionInfo(a);n.displayName&&i.push(n.displayName)}),i.join(" ")}function DL(r){return r.model.getRawData().count()}function PL(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),LL}function LL(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Qg(r,t){w(J_(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ft(IL,t))})}function IL(r,t){var e=mv(r);return e&&e.setOutputEnd((t||this).count()),t}function mv(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(r.uid))}return i}}var be=Iu,ed=function(){function r(){this.group=new rt,this.uid=xn("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,a){},r.prototype.updateLayout=function(t,e,i,a){},r.prototype.updateVisual=function(t,e,i,a){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();bc(ed);uu(ed);var Dt=ed;function rd(){var r=xt();return function(t){var e=r(t),i=t.pipelineContext,a=!!e.large,n=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(a!==o||n!==s)&&"reset"}}var Ex=xt(),RL=rd(),id=function(){function r(){this.group=new rt,this.uid=xn("viewChart"),this.renderTask=yo({plan:EL,reset:kL}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,a){},r.prototype.highlight=function(t,e,i,a){var n=t.getData(a&&a.dataType);!n||ey(n,a,"emphasis")},r.prototype.downplay=function(t,e,i,a){var n=t.getData(a&&a.dataType);!n||ey(n,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,a){this.render(t,e,i,a)},r.prototype.updateLayout=function(t,e,i,a){this.render(t,e,i,a)},r.prototype.updateVisual=function(t,e,i,a){this.render(t,e,i,a)},r.prototype.eachRendered=function(t){xu(this.group,t)},r.markUpdateMethod=function(t,e){Ex(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function ty(r,t,e){r&&ov(r)&&(t==="emphasis"?un:fn)(r,e)}function ey(r,t,e){var i=ya(r,t),a=t&&t.highlightKey!=null?JD(t.highlightKey):null;i!=null?w(At(i),function(n){ty(r.getItemGraphicEl(n),e,a)}):r.eachItemGraphicEl(function(n){ty(n,e,a)})}bc(id);uu(id);function EL(r){return RL(r.model)}function kL(r){var t=r.model,e=r.ecModel,i=r.api,a=r.payload,n=t.pipelineContext.progressiveRender,o=r.view,s=a&&Ex(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,a),OL[l]}var OL={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},$t=id,Ol="\0__throttleOriginMethod",ry="\0__throttleRate",iy="\0__throttleType";function Ru(r,t,e){var i,a=0,n=0,o=null,s,l,u,f;t=t||0;function h(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];i=new Date().getTime(),l=this,u=v;var p=f||t,g=f||e;f=null,s=i-(g?a:n)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),a=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function ts(r,t,e,i){var a=r[t];if(!!a){var n=a[Ol]||a,o=a[iy],s=a[ry];if(s!==e||o!==i){if(e==null||!i)return r[t]=n;a=r[t]=Ru(n,e,i==="debounce"),a[Ol]=n,a[iy]=i,a[ry]=e}return a}}function ko(r,t){var e=r[t];e&&e[Ol]&&(e.clear&&e.clear(),r[t]=e[Ol])}var ay=xt(),ny={itemStyle:ln(HS,!0),lineStyle:ln(GS,!0)},BL={lineStyle:"stroke",itemStyle:"fill"};function kx(r,t){var e=r.visualStyleMapper||ny[t];return e||(console.warn("Unkown style type '"+t+"'."),ny.itemStyle)}function Ox(r,t){var e=r.visualDrawType||BL[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var NL={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=r.getModel(i),n=kx(r,i),o=n(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Ox(r,i),u=o[l],f=q(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=O({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},Bn=new Tt,zL={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=kx(r,i),n=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Bn.option=l[i];var u=a(Bn),f=o.ensureUniqueItemVisual(s,"style");O(f,u),Bn.option.decal&&(o.setItemVisual(s,"decal",Bn.option.decal),Bn.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},VL={performRawSeries:!0,overallReset:function(r){var t=$();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var a=e.type+"-"+i,n=t.get(a);n||(n={},t.set(a,n)),ay(e).scope=n}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),a={},n=e.getData(),o=ay(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Ox(e,s);n.each(function(u){var f=n.getRawIndex(u);a[f]=u}),i.each(function(u){var f=a[u],h=n.getItemVisual(f,"colorFromPalette");if(h){var c=n.ensureUniqueItemVisual(f,"style"),v=i.getName(u)||u+"",d=i.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},Ds=Math.PI;function FL(r,t){t=t||{},Z(t,{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 e=new rt,i=new dt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var a=new pt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),n=new dt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(n);var o;return t.showSpinner&&(o=new gu({shape:{startAngle:-Ds/2,endAngle:-Ds/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ds*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ds*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),n.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var GL=function(){function r(t,e,i,a){this._stageTaskMap=$(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),a=i.context,n=!e&&i.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=n?i.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),a=t.getData(),n=a.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&n>=i.threshold,s=t.get("large")&&n>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?n:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=$();t.eachSeries(function(a){var n=a.getProgressive(),o=a.uid;i.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:n&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;w(this._allHandlers,function(a){var n=t.get(a.uid)||t.set(a.uid,{}),o="";le(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,n,e,i),a.overallReset&&this._createOverallStageTask(a,n,e,i)},this)},r.prototype.prepareView=function(t,e,i,a){var n=t.renderTask,o=n.context;o.model=e,o.ecModel=i,o.api=a,n.__block=!t.incrementalPrepareRender,this._pipe(e,n)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,a){a=a||{};var n=!1,o=this;w(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var p=o.getPerformArgs(c,a.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(n=!0)}else h&&h.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(m)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,a){var n=this,o=e.seriesTaskMap,s=e.seriesTaskMap=$(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,a).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||yo({plan:YL,reset:XL,count:qL}));v.context={model:h,ecModel:i,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:n},n._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,i,a){var n=this,o=e.overallTask=e.overallTask||yo({reset:HL});o.context={ecModel:i,api:a,overallReset:t.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=$(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";le(!t.createOnAllSeries,v),u?i.eachRawSeriesByType(u,d):f?f(i,a).each(d):(h=!1,w(i.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(c=!0,yo({reset:WL,onDirty:UL})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,n._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return q(t)&&(t={overallReset:t,seriesType:KL(t)}),t.uid=xn("stageHandler"),e&&(t.visualType=e),t},r}();function HL(r){r.overallReset(r.ecModel,r.api,r.payload)}function WL(r){return r.overallProgress&&$L}function $L(){this.agent.dirty(),this.getDownstream().dirty()}function UL(){this.agent&&this.agent.dirty()}function YL(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function XL(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=At(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,i){return Bx(i)}):ZL}var ZL=Bx(0);function Bx(r){return function(t,e){var i=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var n=t.start;n<t.end;n++)a.dataEach(i,n);else a&&a.progress&&a.progress(t,i)}}function qL(r){return r.data.count()}function KL(r){Bl=null;try{r(Oo,Nx)}catch(t){}return Bl}var Oo={},Nx={},Bl;zx(Oo,fx);zx(Nx,hx);Oo.eachSeriesByType=Oo.eachRawSeriesByType=function(r){Bl=r};Oo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Bl=r.subType)};function zx(r,t){for(var e in t.prototype)r[e]=Wt}var Vx=GL,oy=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],jL={color:oy,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],oy]},ee="#B9B8CE",sy="#100C2A",Ps=function(){return{axisLine:{lineStyle:{color:ee}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ly=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Fx={darkMode:!0,color:ly,backgroundColor:sy,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ee}},textStyle:{color:ee},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ee}},dataZoom:{borderColor:"#71708A",textStyle:{color:ee},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:ee}},timeline:{lineStyle:{color:ee},label:{color:ee},controlStyle:{color:ee,borderColor:ee}},calendar:{itemStyle:{color:sy},dayLabel:{color:ee},monthLabel:{color:ee},yearLabel:{color:ee}},timeAxis:Ps(),logAxis:Ps(),valueAxis:Ps(),categoryAxis:Ps(),line:{symbol:"circle"},graph:{color:ly},gauge:{title:{color:ee},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ee},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Fx.categoryAxis.splitLine.show=!1;var JL=Fx,QL=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},a={};if(V(t)){var n=xr(t);e.mainType=n.main||null,e.subType=n.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:a}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,n=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,n,"name")&&f(u,n,"dataIndex")&&f(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,n));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),_v=["symbol","symbolSize","symbolRotate","symbolOffset"],uy=_v.concat(["symbolKeepAspect"]),tI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},a={},n=!1,o=0;o<_v.length;o++){var s=_v[o],l=r.get(s);q(l)?(n=!0,a[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(O({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var u=at(a);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(c,g,a[g](v,d))}}return{dataEach:n?f:null}}},eI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(a,n){for(var o=a.getItemModel(n),s=0;s<uy.length;s++){var l=uy[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(n,l,u)}}return{dataEach:e.hasItemOption?i:null}}};function ad(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Gx(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function Hx(r,t,e,i){switch(e){case"color":var a=r.ensureUniqueItemVisual(t,"style");a[r.getVisual("drawType")]=i,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,i);break}}function Wx(r,t){function e(i,a){var n=[];return i.eachComponent({mainType:"series",subType:r,query:a},function(o){n.push(o.seriesIndex)}),n}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){t(i[0],function(a,n,o){a=O({},a),o.dispatchAction(O(a,{type:i[1],seriesIndex:e(n,a)}))})})}function za(r,t,e,i,a){var n=r+t;e.isSilent(n)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=ya(h,a.fromActionPayload);e.trigger(n,{type:n,seriesId:o.id,name:N(c)?h.getName(c[0]):h.getName(c),selected:V(l)?l:O({},l)})}})}function rI(r,t,e){r.on("selectchanged",function(i){var a=e.getModel();i.isFromClick?(za("map","selectchanged",t,a,i),za("pie","selectchanged",t,a,i)):i.fromAction==="select"?(za("map","selected",t,a,i),za("pie","selected",t,a,i)):i.fromAction==="unselect"&&(za("map","unselected",t,a,i),za("pie","unselected",t,a,i))})}function ja(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var iI=Math.round(Math.random()*9),aI=typeof Object.defineProperty=="function",nI=function(){function r(){this._id="__ec_inner_"+iI++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return aI?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}(),oI=nI,sI=gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,a=t.width/2,n=t.height/2;r.moveTo(e,i-n),r.lineTo(e+a,i+n),r.lineTo(e-a,i+n),r.closePath()}}),lI=gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,a=t.width/2,n=t.height/2;r.moveTo(e,i-n),r.lineTo(e+a,i),r.lineTo(e,i+n),r.lineTo(e-a,i),r.closePath()}}),uI=gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,a=t.width/5*3,n=Math.max(a,t.height),o=a/2,s=o*o/(n-o),l=i-n+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*v,l+s+c*v,e,i-d,e,i),r.bezierCurveTo(e,i-d,e-f+h*v,l+s+c*v,e-f,l+s),r.closePath()}}),fI=gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,a=t.x,n=t.y,o=i/3*2;r.moveTo(a,n),r.lineTo(a+o,n+e),r.lineTo(a,n+e/4*3),r.lineTo(a-o,n+e),r.lineTo(a,n),r.closePath()}}),hI={line:ne,rect:dt,roundRect:dt,square:dt,circle:ar,diamond:lI,pin:uI,arrow:fI,triangle:sI},vI={line:function(r,t,e,i,a){a.x1=r,a.y1=t+i/2,a.x2=r+e,a.y2=t+i/2},rect:function(r,t,e,i,a){a.x=r,a.y=t,a.width=e,a.height=i},roundRect:function(r,t,e,i,a){a.x=r,a.y=t,a.width=e,a.height=i,a.r=Math.min(e,i)/4},square:function(r,t,e,i,a){var n=Math.min(e,i);a.x=r,a.y=t,a.width=n,a.height=n},circle:function(r,t,e,i,a){a.cx=r+e/2,a.cy=t+i/2,a.r=Math.min(e,i)/2},diamond:function(r,t,e,i,a){a.cx=r+e/2,a.cy=t+i/2,a.width=e,a.height=i},pin:function(r,t,e,i,a){a.x=r+e/2,a.y=t+i/2,a.width=e,a.height=i},arrow:function(r,t,e,i,a){a.x=r+e/2,a.y=t+i/2,a.width=e,a.height=i},triangle:function(r,t,e,i,a){a.cx=r+e/2,a.cy=t+i/2,a.width=e,a.height=i}},Nl={};w(hI,function(r,t){Nl[t]=new r});var cI=gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=Al(r,t,e),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var a=Nl[i];a||(i="rect",a=Nl[i]),vI[i](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function dI(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Ut(r,t,e,i,a,n,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Oc(r.slice(8),new ht(t,e,i,a),o?"center":"cover"):r.indexOf("path://")===0?l=mu(r.slice(7),{},new ht(t,e,i,a),o?"center":"cover"):l=new cI({shape:{symbolType:r,x:t,y:e,width:i,height:a}}),l.__isEmptyBrush=s,l.setColor=dI,n&&l.setColor(n),l}function nd(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Eu(r,t){if(r!=null)return N(r)||(r=[r,r]),[K(r[0],t[0])||0,K(it(r[1],r[0]),t[1])||0]}function la(r){return isFinite(r)}function pI(r,t,e){var i=t.x==null?0:t.x,a=t.x2==null?1:t.x2,n=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,a=a*e.width+e.x,n=n*e.height+e.y,o=o*e.height+e.y),i=la(i)?i:0,a=la(a)?a:1,n=la(n)?n:0,o=la(o)?o:0;var s=r.createLinearGradient(i,n,a,o);return s}function gI(r,t,e){var i=e.width,a=e.height,n=Math.min(i,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*a+e.y,l=l*n),o=la(o)?o:.5,s=la(s)?s:.5,l=l>=0&&la(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function fy(r,t,e){for(var i=t.type==="radial"?gI(r,t,e):pI(r,t,e),a=t.colorStops,n=0;n<a.length;n++)i.addColorStop(a[n].offset,a[n].color);return i}function yI(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Ls(r){return parseInt(r,10)}function hy(r,t,e){var i=["width","height"][t],a=["clientWidth","clientHeight"][t],n=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[a]||Ls(s[i])||Ls(r.style[i]))-(Ls(s[n])||0)-(Ls(s[o])||0)|0}function mI(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:yt(r)?[r]:N(r)?r:null}function od(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&mI(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=z(e,function(n){return n/a}),i/=a)}return[e,i]}var _I=new Ur(!0);function zl(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function vy(r){return typeof r=="string"&&r!=="none"}function Vl(r){var t=r.fill;return t!=null&&t!=="none"}function cy(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function dy(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function py(r,t,e){var i=wc(t.image,t.__image,e);if(fu(i)){var a=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var n=new DOMMatrix;n.translateSelf(t.x||0,t.y||0),n.rotateSelf(0,0,(t.rotation||0)*oo),n.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(n)}return a}}function SI(r,t,e,i){var a,n=zl(e),o=Vl(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||_I,h=t.__dirty;if(!i){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,p=n&&!!v.colorStops,g=o&&!!c.image,y=n&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=h?fy(r,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?fy(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?py(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?py(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(b?r.strokeStyle=b:n=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var C,A;r.setLineDash&&e.lineDash&&(a=od(t),C=a[0],A=a[1]);var D=!0;(u||h&Ua)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),i||(e.strokeFirst?(n&&dy(r,e),o&&cy(r,e)):(o&&cy(r,e),n&&dy(r,e))),C&&r.setLineDash([])}function xI(r,t,e){var i=t.__image=wc(e.image,t.__image,t,t.onload);if(!(!i||!fu(i))){var a=e.x||0,n=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(i,u,f,e.sWidth,e.sHeight,a,n,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(i,u,f,h,c,a,n,o,s)}else r.drawImage(i,a,n,o,s)}}function bI(r,t,e){var i,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||mi,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var n=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=od(t),n=i[0],o=i[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),e.strokeFirst?(zl(e)&&r.strokeText(a,e.x,e.y),Vl(e)&&r.fillText(a,e.x,e.y)):(Vl(e)&&r.fillText(a,e.x,e.y),zl(e)&&r.strokeText(a,e.x,e.y)),n&&r.setLineDash([])}}var gy=["shadowBlur","shadowOffsetX","shadowOffsetY"],yy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function $x(r,t,e,i,a){var n=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){_e(r,a),n=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?fa.opacity:o}(i||t.blend!==e.blend)&&(n||(_e(r,a),n=!0),r.globalCompositeOperation=t.blend||fa.blend);for(var s=0;s<gy.length;s++){var l=gy[s];(i||t[l]!==e[l])&&(n||(_e(r,a),n=!0),r[l]=r.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(n||(_e(r,a),n=!0),r.shadowColor=t.shadowColor||fa.shadowColor),n}function my(r,t,e,i,a){var n=Bo(t,a.inHover),o=i?null:e&&Bo(e,a.inHover)||{};if(n===o)return!1;var s=$x(r,n,o,i,a);if((i||n.fill!==o.fill)&&(s||(_e(r,a),s=!0),vy(n.fill)&&(r.fillStyle=n.fill)),(i||n.stroke!==o.stroke)&&(s||(_e(r,a),s=!0),vy(n.stroke)&&(r.strokeStyle=n.stroke)),(i||n.opacity!==o.opacity)&&(s||(_e(r,a),s=!0),r.globalAlpha=n.opacity==null?1:n.opacity),t.hasStroke()){var l=n.lineWidth,u=l/(n.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(_e(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<yy.length;f++){var h=yy[f],c=h[0];(i||n[c]!==o[c])&&(s||(_e(r,a),s=!0),r[c]=n[c]||h[1])}return s}function wI(r,t,e,i,a){return $x(r,Bo(t,a.inHover),e&&Bo(e,a.inHover),i,a)}function Ux(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function TI(r,t,e){for(var i=!1,a=0;a<r.length;a++){var n=r[a];i=i||n.isZeroArea(),Ux(t,n),t.beginPath(),n.buildPath(t,n.shape),t.clip()}e.allClipped=i}function CI(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var _y=1,Sy=2,xy=3,by=4;function AI(r){var t=Vl(r),e=zl(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function _e(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Bo(r,t){return t&&r.__hoverStyle||r.style}function Yx(r,t){Sv(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Sv(r,t,e,i){var a=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~gr,t.__isRendered=!1;return}var n=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||yI(n,o))&&(o&&o.length&&(_e(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),n&&n.length&&(_e(r,e),r.save(),TI(n,r,e),s=!0),e.prevElClipPaths=n),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof gt&&t.autoBatch&&AI(t.style);s||CI(a,u.transform)?(_e(r,e),Ux(r,t)):f||_e(r,e);var h=Bo(t,e.inHover);t instanceof gt?(e.lastDrawType!==_y&&(l=!0,e.lastDrawType=_y),my(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),SI(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Mo?(e.lastDrawType!==xy&&(l=!0,e.lastDrawType=xy),my(r,t,u,l,e),bI(r,t,h)):t instanceof fe?(e.lastDrawType!==Sy&&(l=!0,e.lastDrawType=Sy),wI(r,t,u,l,e),xI(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==by&&(l=!0,e.lastDrawType=by),MI(r,t,e)),f&&i&&_e(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function MI(r,t,e){var i=t.getDisplayables(),a=t.getTemporalDisplayables();r.save();var n={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Sv(r,l,n,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Sv(r,l,n,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Ff=new oI,wy=new Yo(100),Ty=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Fl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),a=i.painter.type==="svg";r.dirty&&Ff.delete(r);var n=Ff.get(r);if(n)return n;var o=Z(r,{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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/e,Ff.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,c=0;c<Ty.length;++c){var v=o[Ty[c]];if(v!=null&&!N(v)&&!V(v)&&!yt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(a?"-svg":"");var p=wy.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=Zx(o.dashArrayX),y=DI(o.dashArrayY),m=Xx(o.symbol),_=PI(g),S=qx(y),b=!a&&_i.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=A(),C;b&&(b.width=T.width*e,b.height=T.height*e,C=b.getContext("2d")),D(),h&&wy.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=T.width,u.svgHeight=T.height;function A(){for(var M=1,P=0,L=_.length;P<L;++P)M=kp(M,_[P]);for(var I=1,P=0,L=m.length;P<L;++P)I=kp(I,m[P].length);M*=I;var E=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var M=0,P=0;P<y.length;++P)M+=y[P];if(M<=0)return;for(var L=-S,I=0,E=0,k=0;L<T.height;){if(I%2===0){for(var W=E/2%m.length,B=0,F=0,Y=0;B<T.width*2;){for(var tt=0,P=0;P<g[k].length;++P)tt+=g[k][P];if(tt<=0)break;if(F%2===0){var J=(1-o.symbolSize)*.5,st=B+g[k][F]*J,ct=L+y[I]*J,Et=g[k][F]*o.symbolSize,St=y[I]*o.symbolSize,Xt=Y/2%m[W].length;Vt(st,ct,Et,St,m[W][Xt])}B+=g[k][F],++Y,++F,F===g[k].length&&(F=0)}++k,k===g.length&&(k=0)}L+=y[I],++E,++I,I===y.length&&(I=0)}function Vt(Pt,wt,j,lt,he){var Lt=a?1:e,Ue=Ut(he,Pt*Lt,wt*Lt,j*Lt,lt*Lt,o.color,o.symbolKeepAspect);if(a){var ve=i.painter.renderOneToVNode(Ue);ve&&x.children.push(ve)}else Yx(C,Ue)}}}}function Xx(r){if(!r||r.length===0)return[["rect"]];if(V(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!V(r[e])){t=!1;break}if(t)return Xx([r]);for(var i=[],e=0;e<r.length;++e)V(r[e])?i.push([r[e]]):i.push(r[e]);return i}function Zx(r){if(!r||r.length===0)return[[0,0]];if(yt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!yt(r[i])){e=!1;break}if(e)return Zx([r]);for(var a=[],i=0;i<r.length;++i)if(yt(r[i])){var t=Math.ceil(r[i]);a.push([t,t])}else{var t=z(r[i],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function DI(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(yt(r)){var t=Math.ceil(r);return[t,t]}var e=z(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function PI(r){return z(r,function(t){return qx(t)})}function qx(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function LI(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Fl(s,t)}});var a=i.getVisual("decal");if(a){var n=i.getVisual("style");n.decal=Fl(a,t)}}})}var II=new nr,Ke=II,Kx={};function RI(r,t){Kx[r]=t}function jx(r){return Kx[r]}var EI=typeof window!="undefined",kI="5.3.3",OI={zrender:"5.3.2"},BI=1,NI=800,zI=900,VI=1e3,FI=2e3,GI=5e3,Jx=1e3,HI=1100,sd=2e3,Qx=3e3,WI=4e3,ku=4500,$I=4600,UI=5e3,YI=6e3,tb=7e3,eb={PROCESSOR:{FILTER:VI,SERIES_FILTER:NI,STATISTIC:GI},VISUAL:{LAYOUT:Jx,PROGRESSIVE_LAYOUT:HI,GLOBAL:sd,CHART:Qx,POST_CHART_LAYOUT:$I,COMPONENT:WI,BRUSH:UI,CHART_ITEM:ku,ARIA:YI,DECAL:tb}},qt="__flagInMainProcess",de="__pendingUpdate",Gf="__needsUpdateStatus",Cy=/^[a-zA-Z0-9_]+$/,Hf="__connectUpdateStatus",Ay=0,XI=1,ZI=2;function rb(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return ab(this,r,t)}}function ib(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ab(this,r,t)}}function ab(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),nr.prototype[t].apply(r,e)}var nb=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(nr),ob=nb.prototype;ob.on=ib("on");ob.off=ib("off");var Va,Wf,Is,ei,$f,Uf,Yf,Nn,zn,My,Dy,Xf,Py,Rs,Ly,sb,Ae,Iy,Gl=function(r){R(t,r);function t(e,i,a){var n=r.call(this,new QL)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],a=a||{},V(i)&&(i=lb[i]),n._dom=e;var o="canvas",s=!1,l=n._zr=Jh(e,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:a.useDirtyRect==null?s:a.useDirtyRect});n._ssr=a.ssr,n._throttledZrFlush=Ru(H(l.flush,l),17),i=X(i),i&&cx(i,!0),n._theme=i,n._locale=J2(a.locale||WS),n._coordSysMgr=new Du;var u=n._api=Ly(n);function f(h,c){return h.__prio-c.__prio}return el(Wl,f),el(xv,f),n._scheduler=new Vx(n,u,xv,Wl),n._messageCenter=new nb,n._initEvents(),n.resize=H(n.resize,n),l.animation.on("frame",n._onframe,n),My(l,n),Dy(l,n),bo(n),n}return t.prototype._onframe=function(){if(!this._disposed){Iy(this);var e=this._scheduler;if(this[de]){var i=this[de].silent;this[qt]=!0;try{Va(this),ei.update.call(this,null,this[de].updateParams)}catch(l){throw this[qt]=!1,this[de]=null,l}this._zr.flush(),this[qt]=!1,this[de]=null,Nn.call(this,i),zn.call(this,i)}else if(e.unfinished){var a=BI,n=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(n),e.performDataProcessorTasks(n),Uf(this,n),e.performVisualTasks(n),Rs(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,a){if(!this[qt]){if(this._disposed){this.id;return}var n,o,s;if(U(i)&&(a=i.lazyUpdate,n=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[qt]=!0,!this._model||i){var l=new kP(this._api),u=this._theme,f=this._model=new fx;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},bv);var h={seriesTransition:s,optionChanged:!0};if(a)this[de]={silent:n,updateParams:h},this[qt]=!1,this.getZr().wakeUp();else{try{Va(this),ei.update.call(this,null,h)}catch(c){throw this[de]=null,this[qt]=!1,c}this._ssr||this._zr.flush(),this[de]=null,this[qt]=!1,Nn.call(this,n),zn.call(this,n)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||EI&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!vt.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return w(i,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,a=this._model,n=[],o=this;w(i,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(n.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(n,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",a=this.group,n=Math.min,o=Math.max,s=1/0;if($l[a]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(ca,function(_,S){if(_.group===a){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(X(e)),x=_.getDom().getBoundingClientRect();l=n(x.left,l),u=n(x.top,u),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,p=h-u,g=_i.createCanvas(),y=Jh(g,{renderer:i?"svg":"canvas"});if(y.resize({width:d,height:p}),i){var m="";return w(c,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new dt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(c,function(_){var S=new fe({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return $f(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return $f(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var a=this._model,n,o=fo(a,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(n=n||h.containPoint(i,u))}},this)},this),!!n},t.prototype.getVisual=function(e,i){var a=this._model,n=fo(a,e,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?ad(s,l,i):Gx(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(qI,function(i){var a=function(n){var o=e.getModel(),s=n.target,l,u=i==="globalout";if(u?l={}:s&&ja(s,function(d){var p=nt(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=O({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=n,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(i,l)}};a.zrEventfulCallAtLast=!0,e._zr.on(i,a,e)}),w(mo,function(i,a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),w(["selectchanged"],function(i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),rI(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&W1(this.getDom(),ud,"");var i=this,a=i._api,n=i._model;w(i._componentsViews,function(o){o.dispose(n,a)}),w(i._chartsViews,function(o){o.dispose(n,a)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete ca[i.id]},t.prototype.resize=function(e){if(!this[qt]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),n=e&&e.silent;this[de]&&(n==null&&(n=this[de].silent),a=!0,this[de]=null),this[qt]=!0;try{a&&Va(this),ei.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[qt]=!1,o}this[qt]=!1,Nn.call(this,n),zn.call(this,n)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(U(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!wv[e]){var a=wv[e](this._api,i),n=this._zr;this._loadingFX=a,n.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=O({},e);return i.type=mo[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(U(i)||(i={silent:!!i}),!!Hl[e.type]&&!!this._model){if(this[qt]){this._pendingActions.push(e);return}var a=i.silent;Yf.call(this,e,a);var n=i.flush;n?this._zr.flush():n!==!1&&vt.browser.weChat&&this._throttledZrFlush(),Nn.call(this,a),zn.call(this,a)}},t.prototype.updateLabelLayout=function(){Ke.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,a=this.getModel(),n=a.getSeriesByIndex(i);n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Va=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Wf(h,!0),Wf(h,!1),c.plan()},Wf=function(h,c){for(var v=h._model,d=h._scheduler,p=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<p.length;_++)p[_].__alive=!1;c?v.eachComponent(function(x,T){x!=="series"&&S(T)}):v.eachSeries(S);function S(x){var T=x.__requireNewView;x.__requireNewView=!1;var C="_ec_"+x.id+"_"+x.type,A=!T&&g[C];if(!A){var D=xr(x.type),M=c?Dt.getClass(D.main,D.sub):$t.getClass(D.sub);A=new M,A.init(v,m),g[C]=A,p.push(A),y.add(A.group)}x.__viewId=A.__id=C,A.__alive=!0,A.__model=x,A.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!c&&d.prepareView(A,x,v,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!c&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Is=function(h,c,v,d,p){var g=h._model;if(g.setUpdatePayload(v),!d){w([].concat(h._componentsViews).concat(h._chartsViews),b);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=$(),w(At(_),function(x){var T=Jt(x,null);T!=null&&S.set(T,!0)})),g&&g.eachComponent(m,function(x){var T=S&&S.get(x.id)!==null;if(!T)if(lg(v))if(x instanceof be)v.type===ha&&!v.notBlur&&!x.get(["emphasis","disabled"])&&WD(x,v,h._api);else{var C=Dc(x.mainType,x.componentIndex,v.name,h._api),A=C.focusSelf,D=C.dispatchers;v.type===ha&&A&&!v.notBlur&&nv(x.mainType,x.componentIndex,h._api),D&&w(D,function(M){v.type===ha?un(M):fn(M)})}else sv(v)&&x instanceof be&&(YD(x,v,h._api),og(x),Ae(h))},h),g&&g.eachComponent(m,function(x){var T=S&&S.get(x.id)!==null;T||b(h[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function b(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,h._api,v)}},ei={prepareAndUpdate:function(h){Va(this),ei.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,h),Uf(this,v),g.update(v,d),e(v),y.performVisualTasks(v,h),Xf(this,v,d,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),Ke.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(!!v){v.setUpdatePayload(h);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=$();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),Rs(this,v,d,h,{},g),Ke.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;!c||(c.setUpdatePayload(h),$t.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Xf(this,c,this._api,h,{}),Ke.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;!v||(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),$t.markUpdateMethod(h,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=c.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,c._api,h)}}),v.eachSeries(function(d){var p=c._chartsMap[d.__viewId];p.updateVisual(d,v,c._api,h)}),Ke.trigger("afterupdate",v,this._api))},updateLayout:function(h){ei.update.call(this,h)}},$f=function(h,c,v,d){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=fo(p,v),_=0;_<g.length;_++){var S=g[_];if(S[c]&&(y=S[c](p,m,d))!=null)return y}},Uf=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Yf=function(h,c){var v=this,d=this.getModel(),p=h.type,g=h.escapeConnect,y=Hl[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&xr(_[0]);this[qt]=!0;var x=[h],T=!1;h.batch&&(T=!0,x=z(h.batch,function(I){return I=Z(O({},I),h),I.batch=null,I}));var C=[],A,D=sv(h),M=lg(h);if(M&&pS(this._api),w(x,function(I){if(A=y.action(I,v._model,v._api),A=A||O({},I),A.type=m.event||A.type,C.push(A),M){var E=xc(h),k=E.queryOptionMap,W=E.mainTypeSpecified,B=W?k.keys()[0]:"series";Is(v,S,I,B),Ae(v)}else D?(Is(v,S,I,"series"),Ae(v)):b&&Is(v,S,I,b.main,b.sub)}),S!=="none"&&!M&&!D&&!b)try{this[de]?(Va(this),ei.update.call(this,h),this[de]=null):ei[S].call(this,h)}catch(I){throw this[qt]=!1,I}if(T?A={type:m.event||p,escapeConnect:g,batch:C}:A=C[0],this[qt]=!1,!c){var P=this._messageCenter;if(P.trigger(A.type,A),D){var L={type:"selectchanged",escapeConnect:g,selected:XD(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};P.trigger(L.type,L)}}},Nn=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Yf.call(this,v,h)}},zn=function(h){!h&&this.trigger("updated")},My=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[de]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},Dy=function(h,c){h.on("mouseover",function(v){var d=v.target,p=ja(d,ov);p&&($D(p,v,c._api),Ae(c))}).on("mouseout",function(v){var d=v.target,p=ja(d,ov);p&&(UD(p,v,c._api),Ae(c))}).on("click",function(v){var d=v.target,p=ja(d,function(m){return nt(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=nt(p);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function i(h){var c=[],v=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:c).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=c.concat(v),g,y;el(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),w(p,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Xf=function(h,c,v,d,p){i(c),Py(h,c,v,d,p),w(h._chartsViews,function(g){g.__alive=!1}),Rs(h,c,v,d,p),w(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},Py=function(h,c,v,d,p,g){w(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,d),s(m,y),f(m,y)})},Rs=function(h,c,v,d,p,g){var y=h._scheduler;p=O(p||{},{updatedSeries:c.getSeries()}),Ke.trigger("series:beforeupdate",c,v,p);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),og(_)}),y.unfinished=m||y.unfinished,Ke.trigger("series:layoutlabels",c,v,p),Ke.trigger("series:transition",c,v,p),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),n(h,c),Ke.trigger("series:afterupdate",c,v,p)},Ae=function(h){h[Gf]=!0,h.getZr().wakeUp()},Iy=function(h){!h[Gf]||(h.getZr().storage.traverse(function(c){po(c)||a(c)}),h[Gf]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||c.push(p)}h.selected&&h.states.select&&c.push("select"),h.hoverState===cu&&h.states.emphasis?c.push("emphasis"):h.hoverState===vu&&h.states.blur&&c.push("blur"),h.useStates(c)}function n(h,c){var v=h._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>c.get("hoverLayerThreshold")&&!vt.node&&!vt.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(p){return l(p,v,d,-1/0),!0})}}function l(h,c,v,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(p&&(p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var S=h.textGuideLineConfig;g.z=c,g.zlevel=v,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,c){c.eachRendered(function(v){if(!po(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(po(y))return;if(y instanceof gt&&QD(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}Ly=function(h){return new(function(c){R(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){un(d,p),Ae(h)},v.prototype.leaveEmphasis=function(d,p){fn(d,p),Ae(h)},v.prototype.enterBlur=function(d){HD(d),Ae(h)},v.prototype.leaveBlur=function(d){hS(d),Ae(h)},v.prototype.enterSelect=function(d){vS(d),Ae(h)},v.prototype.leaveSelect=function(d){cS(d),Ae(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(hx))(h)},sb=function(h){function c(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[Hf]=d}}w(mo,function(v,d){h._messageCenter.on(d,function(p){if($l[h.group]&&h[Hf]!==Ay){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),y=[];w(ca,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,Ay),w(y,function(m){m[Hf]!==XI&&m.dispatchAction(g)}),c(y,ZI)}})})}}(),t}(nr),ld=Gl.prototype;ld.on=rb("on");ld.off=rb("off");ld.one=function(r,t,e){var i=this;function a(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t&&t.apply&&t.apply(this,n),i.off(r,a)}this.on.call(this,r,a,e)};var qI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Hl={},mo={},xv=[],bv=[],Wl=[],lb={},wv={},ca={},$l={},KI=+new Date-0,jI=+new Date-0,ud="_echarts_instance_";function JI(r,t,e){var i=!(e&&e.ssr);if(i){var a=fd(r);if(a)return a}var n=new Gl(r,t,e);return n.id="ec_"+KI++,ca[n.id]=n,i&&W1(r,ud,n.id),sb(n),Ke.trigger("afterinit",n),n}function QI(r){if(N(r)){var t=r;r=null,w(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+jI++,w(t,function(e){e.group=r})}return $l[r]=!0,r}function ub(r){$l[r]=!1}var tR=ub;function eR(r){V(r)?r=ca[r]:r instanceof Gl||(r=fd(r)),r instanceof Gl&&!r.isDisposed()&&r.dispose()}function fd(r){return ca[kM(r,ud)]}function rR(r){return ca[r]}function hd(r,t){lb[r]=t}function vd(r){ot(bv,r)<0&&bv.push(r)}function cd(r,t){dd(xv,r,t,FI)}function fb(r){Ou("afterinit",r)}function hb(r){Ou("afterupdate",r)}function Ou(r,t){Ke.on(r,t)}function sr(r,t,e){q(t)&&(e=t,t="");var i=U(r)?r.type:[r,r={event:t}][0];r.event=(r.event||i).toLowerCase(),t=r.event,!mo[t]&&(le(Cy.test(i)&&Cy.test(t)),Hl[i]||(Hl[i]={action:e,actionInfo:r}),mo[t]=i)}function vb(r,t){Du.register(r,t)}function iR(r){var t=Du.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function cb(r,t){dd(Wl,r,t,Jx,"layout")}function Mi(r,t){dd(Wl,r,t,Qx,"visual")}var Ry=[];function dd(r,t,e,i,a){if((q(t)||U(t))&&(e=t,t=i),!(ot(Ry,e)>=0)){Ry.push(e);var n=Vx.wrapStageHandler(e,a);n.__prio=t,n.__raw=e,r.push(n)}}function pd(r,t){wv[r]=t}function aR(r){U_({createCanvas:r})}function db(r,t,e){var i=jx("registerMap");i&&i(r,t,e)}function nR(r){var t=jx("getMap");return t&&t(r)}var pb=lL;Mi(sd,NL);Mi(ku,zL);Mi(ku,VL);Mi(sd,tI);Mi(ku,eI);Mi(tb,LI);vd(cx);cd(zI,HP);pd("default",FL);sr({type:ha,event:ha,update:ha},Wt);sr({type:ll,event:ll,update:ll},Wt);sr({type:ho,event:ho,update:ho},Wt);sr({type:ul,event:ul,update:ul},Wt);sr({type:vo,event:vo,update:vo},Wt);hd("light",jL);hd("dark",JL);var oR={};function Vn(r){return r==null?0:r.length||1}function Ey(r){return r}var sR=function(){function r(t,e,i,a,n,o){this._old=t,this._new=e,this._oldKeyGetter=i||Ey,this._newKeyGetter=a||Ey,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},a=new Array(t.length),n=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,i,n,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=i[s],u=Vn(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},a={},n=[],o=[];this._initIndexMap(t,i,n,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=i[l],f=a[l],h=Vn(u),c=Vn(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var a=t[i],n=e[a],o=Vn(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);e[a]=null}},r.prototype._initIndexMap=function(t,e,i,a){for(var n=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(n||(i[o]=s),!!e){var l=e[s],u=Vn(l);u===0?(e[s]=o,n&&i.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),gd=sR,lR=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function uR(r,t){var e={},i=e.encode={},a=$(),n=[],o=[],s={};w(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var p=v.coordDimIndex;Zf(i,d)[p]=c,v.isExtraCoord||(a.set(d,1),hR(v.type)&&(n[0]=c),Zf(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}rx.each(function(g,y){var m=Zf(i,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};a.each(function(c,v){var d=i[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=z(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(n=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=n.slice()),i.defaultedLabel=n,i.defaultedTooltip=o,e.userOutput=new lR(s,t),e}function Zf(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function fR(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function hR(r){return!(r==="ordinal"||r==="time")}var vR=function(){function r(t){this.otherDims={},t!=null&&O(this,t)}return r}(),cl=vR,cR=xt(),dR={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gb=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=_b(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return it(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=px(this.source),i=!Sb(t),a="",n=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=e?c.name:null,u=c.type)}n.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(a+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=dR[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:n,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var a=void 0,n=this.dimensions[i];if(n&&n.storeDimIndex===e)n.isCalculationCoord||(a=n.name),i++;else{var o=this.getSourceDimension(e);o&&(a=o.name)}t.push(a)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function yb(r){return r instanceof gb}function mb(r){for(var t=$(),e=0;e<(r||[]).length;e++){var i=r[e],a=U(i)?i.name:i;a!=null&&t.get(a)==null&&t.set(a,e)}return t}function _b(r){var t=cR(r);return t.dimNameMap||(t.dimNameMap=mb(r.dimensionsDefine))}function Sb(r){return r>30}var Fn=U,ri=z,pR=typeof Int32Array=="undefined"?Array:Int32Array,gR="e\0\0",ky=-1,yR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],mR=["_approximateExtent"],Oy,Es,Gn,Hn,qf,ks,Kf,_R=function(){function r(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"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,a=!1;yb(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,i=t),i=i||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var h=i[f],c=V(h)?new cl({name:h}):h instanceof cl?h:new cl(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),n[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),a&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=$();w(o,function(g){p.set(n[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var a=this._schema.getSourceDimension(e);if(a)return a.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(yt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var a=i.encode[t];return a?a[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,i){var a=this,n;if(t instanceof pv&&(n=t),!n){var o=this.dimensions,s=jc(t)||te(t)?new gx(t,o.length):t;n=new pv;var l=ri(o,function(u){return{type:a._dimInfos[u].type,property:u}});n.initData(s,l,i)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=uR(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e.length),a=i.start,n=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=a;s<n;s++){var l=s-a;this._nameList[s]=e[l],o&&Kf(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var a=this._dimInfos[e[i]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==yi&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===$e;if(l&&!a.pure)for(var u=[],f=t;f<e;f++){var h=a.getItem(f,u);if(!this.hasItemOption&&xM(h)&&(this.hasItemOption=!0),h){var c=h.name;n[f]==null&&c!=null&&(n[f]=Jt(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Jt(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Kf(this,f);Oy(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Fn(t)?O(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=Gn(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),a=this._store.getOrdinalMeta(t);return a?a.categories[i]:i},r.prototype.getId=function(t){return Es(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,a=this._dimInfos[t];if(a)return i.get(a.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,a=this._dimInfos[t];if(a)return i.getByRawIndex(a.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,a=this._store;return N(t)?a.getValues(ri(t,function(n){return i._getStoreDimIndex(n)}),e):a.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,a=e.length;i<a;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],a=i[e];return a==null||isNaN(a)?ky:a},r.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},r.prototype.each=function(t,e,i){q(t)&&(i=e,e=t,t=[]);var a=i||this,n=ri(Hn(t),this._getStoreDimIndex,this);this._store.each(n,a?H(e,a):e)},r.prototype.filterSelf=function(t,e,i){q(t)&&(i=e,e=t,t=[]);var a=i||this,n=ri(Hn(t),this._getStoreDimIndex,this);return this._store=this._store.filter(n,a?H(e,a):e),this},r.prototype.selectRange=function(t){var e=this,i={},a=at(t);return w(a,function(n){var o=e._getStoreDimIndex(n);i[o]=t[n]}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){q(t)&&(i=e,e=t,t=[]),i=i||this;var a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},i),a},r.prototype.map=function(t,e,i,a){var n=i||a||this,o=ri(Hn(t),this._getStoreDimIndex,this),s=ks(this);return s._store=this._store.map(o,n?H(e,n):e),s},r.prototype.modify=function(t,e,i,a){var n=i||a||this,o=ri(Hn(t),this._getStoreDimIndex,this);this._store.modify(o,n?H(e,n):e)},r.prototype.downSample=function(t,e,i,a){var n=ks(this);return n._store=this._store.downSample(this._getStoreDimIndex(t),e,i,a),n},r.prototype.lttbDownSample=function(t,e){var i=ks(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new Tt(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new gd(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Es(t,i)},function(i){return Es(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Fn(t)?O(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],a=i&&i[e];return a==null?this.getVisual(e):a},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,a=i[t];a||(a=i[t]={});var n=a[e];return n==null&&(n=this.getVisual(e),N(n)?n=n.slice():Fn(n)&&(n=O({},n)),a[e]=n),n},r.prototype.setItemVisual=function(t,e,i){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Fn(e)?O(a,e):a[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Fn(t)?O(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?O(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;kD(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(i,a){i&&t&&t.call(e,i,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ri(this.dimensions,this._getDimInfo,this),this.hostModel)),qf(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];!q(i)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=i.apply(this,arguments);return e.apply(this,[a].concat(au(arguments)))})},r.internalField=function(){Oy=function(t){var e=t._invertedIndicesMap;w(e,function(i,a){var n=t._dimInfos[a],o=n.ordinalMeta,s=t._store;if(o){i=e[a]=new pR(o.categories.length);for(var l=0;l<i.length;l++)i[l]=ky;for(var l=0;l<s.count();l++)i[s.get(n.storeDimIndex,l)]=l}})},Gn=function(t,e,i){return Jt(t._getCategory(e,i),null)},Es=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Gn(t,t._idDimIdx,e)),i==null&&(i=gR+e),i},Hn=function(t){return N(t)||(t=t!=null?[t]:[]),t},ks=function(t){var e=new r(t._schema?t._schema:ri(t.dimensions,t._getDimInfo,t),t.hostModel);return qf(e,t),e},qf=function(t,e){w(yR.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,w(mR,function(i){t[i]=X(e[i])}),t._calculationInfo=O({},e._calculationInfo)},Kf=function(t,e){var i=t._nameList,a=t._idList,n=t._nameDimIdx,o=t._idDimIdx,s=i[e],l=a[e];if(s==null&&n!=null&&(i[e]=s=Gn(t,n,e)),l==null&&o!=null&&(a[e]=l=Gn(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[e]=l}}}(),r}(),Bu=_R;function SR(r,t){return yd(r,t).dimensions}function yd(r,t){jc(r)||(r=Jc(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],a=$(),n=[],o=bR(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Sb(o),l=i===r.dimensionsDefine,u=l?_b(r):mb(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=$(f),c=new Tx(o),v=0;v<c.length;v++)c[v]=-1;function d(A){var D=c[A];if(D<0){var M=i[A],P=U(M)?M:{name:M},L=new cl,I=P.name;I!=null&&u.get(I)!=null&&(L.name=L.displayName=I),P.type!=null&&(L.type=P.type),P.displayName!=null&&(L.displayName=P.displayName);var E=n.length;return c[A]=E,L.storeDimIndex=A,n.push(L),L}return n[D]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(A,D){var M=At(A).slice();if(M.length===1&&!V(M[0])&&M[0]<0){h.set(D,!1);return}var P=h.set(D,[]);w(M,function(L,I){var E=V(L)?u.get(L):L;E!=null&&E<o&&(P[I]=E,g(d(E),D,I))})});var p=0;w(e,function(A){var D,M,P,L;if(V(A))D=A,L={};else{L=A,D=L.name;var I=L.ordinalMeta;L.ordinalMeta=null,L=O({},L),L.ordinalMeta=I,M=L.dimsDef,P=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=h.get(D);if(E!==!1){if(E=At(E),!E.length)for(var k=0;k<(M&&M.length||1);k++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}w(E,function(W,B){var F=d(W);if(l&&L.type!=null&&(F.type=L.type),g(Z(F,L),D,B),F.name==null&&M){var Y=M[B];!U(Y)&&(Y={name:Y}),F.name=F.displayName=Y.name,F.defaultTooltip=Y.defaultTooltip}P&&Z(F.otherDims,P)})}});function g(A,D,M){rx.get(D)!=null?A.otherDims[D]=M:(A.coordDim=D,A.coordDimIndex=M,a.set(D,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(A){A.name==null&&(A.name=A.coordDim)}if(s)w(n,function(A){b(A)}),n.sort(function(A,D){return A.storeDimIndex-D.storeDimIndex});else for(var x=0;x<o;x++){var T=d(x),C=T.coordDim;C==null&&(T.coordDim=wR(S,a,_),T.coordDimIndex=0,(!y||m<=0)&&(T.isExtraCoord=!0),m--),b(T),T.type==null&&(ox(r,x)===Ht.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return xR(n),new gb({source:r,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function xR(r){for(var t=$(),e=0;e<r.length;e++){var i=r[e],a=i.name,n=t.get(a)||0;n>0&&(i.name=a+(n-1)),n++,t.set(a,n)}}function bR(r,t,e,i){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return w(t,function(n){var o;U(n)&&(o=n.dimsDef)&&(a=Math.max(a,o.length))}),a}function wR(r,t,e){var i=t.data;if(e||i.hasOwnProperty(r)){for(var a=0;i.hasOwnProperty(r+a);)a++;r+=a}return t.set(r,!0),r}var TR=function(){function r(t){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=t}return r}();function CR(r){var t=r.get("coordinateSystem"),e=new TR(t),i=AR[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var AR={cartesian2d:function(r,t,e,i){var a=r.getReferringComponents("xAxis",zt).models[0],n=r.getReferringComponents("yAxis",zt).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",n),Fa(a)&&(i.set("x",a),t.firstCategoryDimIndex=0),Fa(n)&&(i.set("y",n),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var a=r.getReferringComponents("singleAxis",zt).models[0];t.coordSysDims=["single"],e.set("single",a),Fa(a)&&(i.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var a=r.getReferringComponents("polar",zt).models[0],n=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",n),e.set("angle",o),Fa(n)&&(i.set("radius",n),t.firstCategoryDimIndex=0),Fa(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var a=r.ecModel,n=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=n.dimensions.slice();w(n.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Fa(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Fa(r){return r.get("type")==="category"}function xb(r,t,e){e=e||{};var i=e.byIndex,a=e.stackedCoordDimension,n,o,s;MR(t)?n=t:(o=t.schema,n=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(w(n,function(m,_){V(m)&&(n[_]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(f=m))}),f&&!i&&!u&&(i=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;w(n,function(m){m.coordDim===v&&p++});var g={name:h,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},y={name:c,coordDim:c,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(n.push(g),n.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function MR(r){return!yb(r.schema)}function bi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function bb(r,t){return bi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function DR(r,t){var e=r.get("coordinateSystem"),i=Du.get(e),a;return t&&t.coordSysDims&&(a=z(t.coordSysDims,function(n){var o={name:n},s=t.axisMap.get(n);if(s){var l=s.get("type");o.type=fR(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function PR(r,t,e){var i,a;return e&&w(r,function(n,o){var s=n.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),n.ordinalMeta=l.getOrdinalMeta(),t&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(a=!0)}),!a&&i!=null&&(r[i].otherDims.itemName=0),i}function es(r,t,e){e=e||{};var i=t.getSourceManager(),a,n=!1;r?(n=!0,a=Jc(r)):(a=i.getSource(),n=a.sourceFormat===$e);var o=CR(t),s=DR(t,o),l=e.useEncodeDefaulter,u=q(l)?l:l?ft(pP,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},h=yd(a,f),c=PR(h.dimensions,e.createInvertedIndices,o),v=n?null:i.getSharedDataStore(h),d=xb(t,{schema:h,store:v}),p=new Bu(h,t);p.setCalculationInfo(d);var g=c!=null&&LR(a)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(n?a:v,null,g),p}function LR(r){if(r.sourceFormat===$e){var t=IR(r.data||[]);return!N(mn(t))}}function IR(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var wb=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();uu(wb);var Kr=wb,RR=0,ER=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++RR}return r.createByAxisModel=function(t){var e=t.option,i=e.data,a=i&&z(i,kR);return new r({categories:a,needCollect:!a,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!V(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,a.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=$(this.categories))},r}();function kR(r){return U(r)&&r.value!=null?r.value:r+""}var Tv=ER;function Cv(r){return r.type==="interval"||r.type==="log"}function OR(r,t,e,i){var a={},n=r[1]-r[0],o=a.interval=mc(n/t,!0);e!=null&&o<e&&(o=a.interval=e),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=Tb(o),l=a.niceTickExtent=[Rt(Math.ceil(r[0]/o)*o,s),Rt(Math.floor(r[1]/o)*o,s)];return BR(l,r),a}function jf(r){var t=Math.pow(10,lu(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Rt(e*t)}function Tb(r){return Sr(r)+2}function By(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function BR(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),By(r,0,t),By(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Nu(r,t){return r>=t[0]&&r<=t[1]}function zu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Vu(r,t){return r*(t[1]-t[0])+t[0]}var Cb=function(r){R(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var a=i.getSetting("ordinalMeta");return a||(a=new Tv({})),N(a)&&(a=new Tv({categories:z(a,function(n){return U(n)?n.value:n})})),i._ordinalMeta=a,i._extent=i.getSetting("extent")||[0,a.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:V(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Nu(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),zu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Vu(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,a=i[0];a<=i[1];)e.push({value:a}),a++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,a=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o<l;++o){var u=i[o];a[o]=u,n[u]=o}for(var f=0;o<s;++o){for(;n[f]!=null;)f++;a.push(f),n[f]=o}},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),a=this._ordinalMeta.categories[i];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Kr);Kr.registerClass(Cb);var md=Cb,Xi=Rt,Ab=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Nu(e,this._extent)},t.prototype.normalize=function(e){return zu(e,this._extent)},t.prototype.scale=function(e){return Vu(e,this._extent)},t.prototype.setExtent=function(e,i){var a=this._extent;isNaN(e)||(a[0]=parseFloat(e)),isNaN(i)||(a[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Tb(e)},t.prototype.getTicks=function(e){var i=this._interval,a=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;a[0]<n[0]&&(e?s.push({value:Xi(n[0]-i,o)}):s.push({value:a[0]}));for(var u=n[0];u<=n[1]&&(s.push({value:u}),u=Xi(u+i,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:n[1];return a[1]>f&&(e?s.push({value:Xi(f+i,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),a=[],n=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],l=i[o-1],u=0,f=[],h=s.value-l.value,c=h/e;u<e-1;){var v=Xi(l.value+(u+1)*c);v>n[0]&&v<n[1]&&f.push(v),u++}a.push(f)}return a},t.prototype.getLabel=function(e,i){if(e==null)return"";var a=i&&i.precision;a==null?a=Sr(e.value)||0:a==="auto"&&(a=this._intervalPrecision);var n=Xi(e.value,a,!0);return $c(n)},t.prototype.calcNiceTicks=function(e,i,a){e=e||5;var n=this._extent,o=n[1]-n[0];if(!!isFinite(o)){o<0&&(o=-o,n.reverse());var s=OR(n,e,i,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var a=i[0];e.fixMax||(i[1]+=a/2),i[0]-=a/2}else i[1]=1;var n=i[1]-i[0];isFinite(n)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(i[0]=Xi(Math.floor(i[0]/o)*o)),e.fixMax||(i[1]=Xi(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t}(Kr);Kr.registerClass(Ab);var wi=Ab,Mb=typeof Float32Array!="undefined",NR=Mb?Float32Array:Array;function Nr(r){return N(r)?Mb?new Float32Array(r):r:new NR(r)}var Av="__ec_stack_";function _d(r){return r.get("stack")||Av+r.seriesIndex}function Sd(r){return r.dim+r.index}function YG(r){var t=[],e=r.axis,i="axis0";if(e.type==="category"){for(var a=e.getBandWidth(),n=0;n<r.count;n++)t.push(Z({bandWidth:a,axisKey:i,stackId:Av+n},r));for(var o=Lb(t),s=[],n=0;n<r.count;n++){var l=o[i][Av+n];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Db(r,t){var e=[];return t.eachSeriesByType(r,function(i){Eb(i)&&e.push(i)}),e}function zR(r){var t={};w(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);t[c]?t[c].push(y):t[c]=[y]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];if(a){a.sort(function(l,u){return l-u});for(var n=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(n=n===null?s:Math.min(n,s))}e[i]=n}}return e}function Pb(r){var t=zR(r),e=[];return w(r,function(i){var a=i.coordinateSystem,n=a.getBaseAxis(),o=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,u=t[l],f=Math.abs(o[1]-o[0]),h=n.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=K(i.get("barWidth"),s),p=K(i.get("barMaxWidth"),s),g=K(i.get("barMinWidth")||(kb(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Sd(n),stackId:_d(i)})}),Lb(e)}function Lb(r){var t={};w(r,function(i,a){var n=i.axisKey,o=i.bandWidth,s=t[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[n]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var c=i.barMinWidth;c&&(l[u].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(i,a){e[a]={};var n=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=at(n).length;s=Math.max(35-l*4,15)+"%"}var u=K(s,o),f=K(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),w(n,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,p;w(n,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;w(n,function(y,m){e[a][m]=e[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function VR(r,t,e){if(r&&t){var i=r[Sd(t)];return i!=null&&e!=null?i[_d(e)]:i}}function Ib(r,t){var e=Db(r,t),i=Pb(e);w(e,function(a){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=_d(a),u=i[Sd(s)][l],f=u.offset,h=u.width;n.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function Rb(r){return{seriesType:r,plan:rd(),reset:function(t){if(!!Eb(t)){var e=t.getData(),i=t.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(n.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(n.dim),f=e.getCalculationInfo("stackResultDimension"),h=bi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=n.isHorizontal(),v=FR(a,n),d=kb(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Nr(b*3),T=d&&l&&Nr(b*3),C=d&&Nr(b),A=i.master.getRect(),D=c?A.width:A.height,M,P=S.getStore(),L=0;(M=_.next())!=null;){var I=P.get(h?g:o,M),E=P.get(s,M),k=v,W=void 0;h&&(W=+I-P.get(o,M));var B=void 0,F=void 0,Y=void 0,tt=void 0;if(c){var J=i.dataToPoint([I,E]);if(h){var st=i.dataToPoint([W,E]);k=st[0]}B=k,F=J[1]+m,Y=J[0]-k,tt=y,Math.abs(Y)<p&&(Y=(Y<0?-1:1)*p)}else{var J=i.dataToPoint([E,I]);if(h){var st=i.dataToPoint([E,W]);k=st[1]}B=J[0]+m,F=k,Y=y,tt=J[1]-k,Math.abs(tt)<p&&(tt=(tt<=0?-1:1)*p)}d?(x[L]=B,x[L+1]=F,x[L+2]=c?Y:tt,T&&(T[L]=c?A.x:B,T[L+1]=c?F:A.y,T[L+2]=D),C[M]=M):S.setItemLayout(M,{x:B,y:F,width:Y,height:tt}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:c})}}}}}}function Eb(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function kb(r){return r.pipelineContext&&r.pipelineContext.large}function FR(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var GR=function(r,t,e,i){for(;e<i;){var a=e+i>>>1;r[a][1]<t?e=a+1:i=a}return e},Ob=function(r){R(t,r);function t(e){var i=r.call(this,e)||this;return i.type="time",i}return t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return Qo(e.value,Tg[eP(en(this._minLevelUnit))]||Tg.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,a){var n=this.getSetting("useUTC"),o=this.getSetting("locale");return rP(e,i,a,o,n)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,a=[];if(!e)return a;a.push({value:i[0],level:0});var n=this.getSetting("useUTC"),o=ZR(this._minLevelUnit,this._approxInterval,n,i);return a=a.concat(o),a.push({value:i[1],level:0}),a},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=Ne,i[1]+=Ne),i[1]===-1/0&&i[0]===1/0){var a=new Date;i[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),i[0]=i[1]-Ne}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,a){e=e||10;var n=this._extent,o=n[1]-n[0];this._approxInterval=o/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Os.length,l=Math.min(GR(Os,this._approxInterval,0,s),s-1);this._interval=Os[l][1],this._minLevelUnit=Os[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return yt(e)?e:+Ce(e)},t.prototype.contain=function(e){return Nu(this.parse(e),this._extent)},t.prototype.normalize=function(e){return zu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Vu(e,this._extent)},t.type="time",t}(wi),Os=[["second",Gc],["minute",Hc],["hour",go],["quarter-day",go*6],["half-day",go*12],["day",Ne*1.2],["half-week",Ne*3.5],["week",Ne*7],["month",Ne*31],["quarter",Ne*95],["half-year",wg/2],["year",wg]];function HR(r,t,e,i){var a=Ce(t),n=Ce(e),o=function(d){return Cg(a,d,i)===Cg(n,d,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function WR(r,t){return r/=Ne,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function $R(r){var t=30*Ne;return r/=t,r>6?6:r>3?3:r>2?2:1}function UR(r){return r/=go,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ny(r,t){return r/=t?Hc:Gc,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function YR(r){return mc(r,!0)}function XR(r,t,e){var i=new Date(r);switch(en(t)){case"year":case"month":i[YS(e)](0);case"day":i[XS(e)](1);case"hour":i[ZS(e)](0);case"minute":i[qS(e)](0);case"second":i[KS(e)](0),i[jS(e)](0)}return i.getTime()}function ZR(r,t,e,i){var a=1e4,n=$S,o=0;function s(D,M,P,L,I,E,k){for(var W=new Date(M),B=M,F=W[L]();B<P&&B<=i[1];)k.push({value:B}),F+=D,W[I](F),B=W.getTime();k.push({value:B,notAdd:!0})}function l(D,M,P){var L=[],I=!M.length;if(!HR(en(D),i[0],i[1],e)){I&&(M=[{value:XR(new Date(i[0]),D,e)},{value:i[1]}]);for(var E=0;E<M.length-1;E++){var k=M[E].value,W=M[E+1].value;if(k!==W){var B=void 0,F=void 0,Y=void 0,tt=!1;switch(D){case"year":B=Math.max(1,Math.round(t/Ne/365)),F=Wc(e),Y=iP(e);break;case"half-year":case"quarter":case"month":B=$R(t),F=rn(e),Y=YS(e);break;case"week":case"half-week":case"day":B=WR(t),F=Tu(e),Y=XS(e),tt=!0;break;case"half-day":case"quarter-day":case"hour":B=UR(t),F=Io(e),Y=ZS(e);break;case"minute":B=Ny(t,!0),F=Cu(e),Y=qS(e);break;case"second":B=Ny(t,!1),F=Au(e),Y=KS(e);break;case"millisecond":B=YR(t),F=Mu(e),Y=jS(e);break}s(B,k,W,F,Y,tt,L),D==="year"&&P.length>1&&E===0&&P.unshift({value:P[0].value-B})}}for(var E=0;E<L.length;E++)P.push(L[E]);return L}}for(var u=[],f=[],h=0,c=0,v=0;v<n.length&&o++<a;++v){var d=en(n[v]);if(!!tP(n[v])){l(n[v],u[u.length-1]||[],f);var p=n[v+1]?en(n[v+1]):null;if(d!==p){if(f.length){c=h,f.sort(function(D,M){return D.value-M.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=i[0]&&m<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(g),h>_||r===n[v]))break}f=[]}}}for(var S=Ct(z(u,function(D){return Ct(D,function(M){return M.value>=i[0]&&M.value<=i[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],x=S.length-1,v=0;v<S.length;++v)for(var T=S[v],C=0;C<T.length;++C)b.push({value:T[C].value,level:x-v});b.sort(function(D,M){return D.value-M.value});for(var A=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&A.push(b[v]);return A}Kr.registerClass(Ob);var Bb=Ob,zy=Kr.prototype,_o=wi.prototype,qR=Rt,KR=Math.floor,jR=Math.ceil,Bs=Math.pow,Me=Math.log,xd=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new wi,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,a=this._extent,n=i.getExtent(),o=_o.getTicks.call(this,e);return z(o,function(s){var l=s.value,u=Rt(Bs(this.base,l));return u=l===a[0]&&this._fixMin?Ns(u,n[0]):u,u=l===a[1]&&this._fixMax?Ns(u,n[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,i){var a=this.base;e=Me(e)/Me(a),i=Me(i)/Me(a),_o.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=zy.getExtent.call(this);i[0]=Bs(e,i[0]),i[1]=Bs(e,i[1]);var a=this._originalScale,n=a.getExtent();return this._fixMin&&(i[0]=Ns(i[0],n[0])),this._fixMax&&(i[1]=Ns(i[1],n[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=Me(e[0])/Me(i),e[1]=Me(e[1])/Me(i),zy.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,a=i[1]-i[0];if(!(a===1/0||a<=0)){var n=B1(a),o=e/a*n;for(o<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var s=[Rt(jR(i[0]/n)*n),Rt(KR(i[1]/n)*n)];this._interval=n,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){_o.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Me(e)/Me(this.base),Nu(e,this._extent)},t.prototype.normalize=function(e){return e=Me(e)/Me(this.base),zu(e,this._extent)},t.prototype.scale=function(e){return e=Vu(e,this._extent),Bs(this.base,e)},t.type="log",t}(Kr),Nb=xd.prototype;Nb.getMinorTicks=_o.getMinorTicks;Nb.getLabel=_o.getLabel;function Ns(r,t){return qR(r,Sr(t))}Kr.registerClass(xd);var JR=xd,QR=function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var n=this._modelMinRaw=e.get("min",!0);q(n)?this._modelMinNum=zs(t,n({min:i[0],max:i[1]})):n!=="dataMin"&&(this._modelMinNum=zs(t,n));var o=this._modelMaxRaw=e.get("max",!0);if(q(o)?this._modelMaxNum=zs(t,o({min:i[0],max:i[1]})):o!=="dataMax"&&(this._modelMaxNum=zs(t,o)),a)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=N(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ir(l[0],1),ir(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,a=this._axisDataLen,n=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?a?0:NaN:e-n[0]*o),l==null&&(l=t?a?a-1:NaN:i+n[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=xo(s)||xo(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[eE[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=tE[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),tE={min:"_determinedMin",max:"_determinedMax"},eE={min:"_dataMin",max:"_dataMax"};function zb(r,t,e){var i=r.rawExtentInfo;return i||(i=new QR(r,t,e),r.rawExtentInfo=i,i)}function zs(r,t){return t==null?null:xo(t)?NaN:r.parse(t)}function Vb(r,t){var e=r.type,i=zb(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var a=i.min,n=i.max,o=t.ecModel;if(o&&e==="time"){var s=Db("bar",o),l=!1;if(w(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Pb(s),f=rE(a,n,t,u);a=f.min,n=f.max}}return{extent:[a,n],fixMin:i.minFixed,fixMax:i.maxFixed}}function rE(r,t,e,i){var a=e.axis.getExtent(),n=a[1]-a[0],o=VR(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/n,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function cn(r,t){var e=t,i=Vb(r,e),a=i.extent,n=e.get("splitNumber");r instanceof JR&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(a[0],a[1]),r.calcNiceExtent({splitNumber:n,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Fu(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new md({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Bb({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Kr.getClass(t)||wi)}}function iE(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function rs(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(a,n){return r.scale.getFormattedLabel(a,n,i)}}(t):V(t)?function(i){return function(a){var n=r.scale.getLabel(a),o=i.replace("{value}",n!=null?n:"");return o}}(t):q(t)?function(i){return function(a,n){return e!=null&&(n=a.value-e),i(bd(r,a),n,a.level!=null?{level:a.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function bd(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function aE(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,a,n=e.getExtent();e instanceof md?a=e.count():(i=e.getTicks(),a=i.length);var o=r.getLabelModel(),s=rs(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var h=i?i[f]:{value:n[0]+f},c=s(h,f),v=o.getTextRect(c),d=nE(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function nE(r,t){var e=t*Math.PI/180,i=r.width,a=r.height,n=i*Math.abs(Math.cos(e))+Math.abs(a*Math.sin(e)),o=i*Math.abs(Math.sin(e))+Math.abs(a*Math.cos(e)),s=new ht(r.x,r.y,n,o);return s}function wd(r){var t=r.get("interval");return t==null?"auto":t}function Fb(r){return r.type==="category"&&wd(r.getLabelModel())===0}function Ul(r,t){var e={};return w(r.mapDimensionsAll(t),function(i){e[bb(r,i)]=!0}),at(e)}function oE(r,t,e){t&&w(Ul(t,e),function(i){var a=t.getApproximateExtent(i);a[0]<r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1])})}var is=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function sE(r){return es(null,r)}var lE={isDimensionStacked:bi,enableDataStack:xb,getStackedDimension:bb};function uE(r,t){var e=t;t instanceof Tt||(e=new Tt(t));var i=Fu(e);return i.setExtent(r[0],r[1]),cn(i,e),i}function fE(r){Yt(r,is)}function hE(r,t){return t=t||{},Ot(r,null,null,t.state!=="normal")}var vE=Object.freeze(Object.defineProperty({__proto__:null,createList:sE,getLayoutRect:ue,dataStack:lE,createScale:uE,mixinAxisModelCommonMethods:fE,getECData:nt,createTextStyle:hE,createDimensions:SR,createSymbol:Ut,enableHoverEmphasis:pi},Symbol.toStringTag,{value:"Module"})),Vy=[],cE={registerPreprocessor:vd,registerProcessor:cd,registerPostInit:fb,registerPostUpdate:hb,registerUpdateLifecycle:Ou,registerAction:sr,registerCoordinateSystem:vb,registerLayout:cb,registerVisual:Mi,registerTransform:pb,registerLoading:pd,registerMap:db,registerImpl:RI,PRIORITY:eb,ComponentModel:ut,ComponentView:Dt,SeriesModel:be,ChartView:$t,registerComponentModel:function(r){ut.registerClass(r)},registerComponentView:function(r){Dt.registerClass(r)},registerSeriesModel:function(r){be.registerClass(r)},registerChartView:function(r){$t.registerClass(r)},registerSubTypeDefaulter:function(r,t){ut.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){R1(r,t)}};function Gt(r){if(N(r)){w(r,function(t){Gt(t)});return}ot(Vy,r)>=0||(Vy.push(r),q(r)&&(r={install:r}),r.install(cE))}var dE=1e-8;function Fy(r,t){return Math.abs(r-t)<dE}function Gy(r,t,e){var i=0,a=r[0];if(!a)return!1;for(var n=1;n<r.length;n++){var o=r[n];i+=kr(a[0],a[1],o[0],o[1],t,e),a=o}var s=r[0];return(!Fy(a[0],s[0])||!Fy(a[1],s[1]))&&(i+=kr(a[0],a[1],s[0],s[1],t,e)),i!==0}var pE=[];function Jf(r,t){for(var e=0;e<r.length;e++)Ft(r[e],r[e],t)}function Hy(r,t,e,i){for(var a=0;a<r.length;a++){var n=r[a];i&&(n=i.project(n)),n&&isFinite(n[0])&&isFinite(n[1])&&(Or(t,t,n),Br(e,e,n))}}function gE(r){for(var t=0,e=0,i=0,a=r.length,n=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=n*u-l*o;t+=f,e+=(n+l)*f,i+=(o+u)*f,n=l,o=u}return t?[e/t/3,i/t/3,t]:[r[0][0]||0,r[0][1]||0]}var Gb=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),Wy=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),$y=function(){function r(t){this.type="linestring",this.points=t}return r}(),Hb=function(r){R(t,r);function t(e,i,a){var n=r.call(this,e)||this;return n.type="geoJSON",n.geometries=i,n._center=a&&[a[0],a[1]],n}return t.prototype.calcCenter=function(){for(var e=this.geometries,i,a=0,n=0;n<e.length;n++){var o=e[n],s=o.exterior,l=s&&s.length;l>a&&(i=o,a=l)}if(i)return gE(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var i=this._rect;if(i&&!e)return i;var a=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?Hy(s.exterior,a,n,e):w(s.points,function(l){Hy(l,a,n,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])||(a[0]=a[1]=n[0]=n[1]=0),i=new ht(a[0],a[1],n[0]-a[0],n[1]-a[1]),e||(this._rect=i),i},t.prototype.contain=function(e){var i=this.getBoundingRect(),a=this.geometries;if(!i.contain(e[0],e[1]))return!1;t:for(var n=0,o=a.length;n<o;n++){var s=a[n];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Gy(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Gy(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,i,a,n){var o=this.getBoundingRect(),s=o.width/o.height;a?n||(n=a/s):a=s*n;for(var l=new ht(e,i,a,n),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(Jf(c.exterior,u),w(c.interiors,function(v){Jf(v,u)})):w(c.points,function(v){Jf(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var i=new t(e,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},t}(Gb),yE=function(r){R(t,r);function t(e,i){var a=r.call(this,e)||this;return a.type="geoSVG",a._elOnlyForCalculate=i,a}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,i=e.getBoundingRect(),a=[i.x+i.width/2,i.y+i.height/2],n=Xo(pE),o=e;o&&!o.isGeoSVGGraphicRoot;)wr(n,o.getLocalTransform(),n),o=o.parent;return ba(n,n),Ft(a,a,n),a},t}(Gb);function mE(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var i=t.features;return w(i,function(a){var n=a.geometry,o=n.encodeOffsets,s=n.coordinates;if(!!o)switch(n.type){case"LineString":n.coordinates=Wb(s,o,e);break;case"Polygon":Qf(s,o,e);break;case"MultiLineString":Qf(s,o,e);break;case"MultiPolygon":w(s,function(l,u){return Qf(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Qf(r,t,e){for(var i=0;i<r.length;i++)r[i]=Wb(r[i],t[i],e)}function Wb(r,t,e){for(var i=[],a=t[0],n=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=n,a=s,n=l,i.push([s/e,l/e])}return i}function Mv(r,t){return r=mE(r),z(Ct(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var i=e.properties,a=e.geometry,n=[];switch(a.type){case"Polygon":var o=a.coordinates;n.push(new Wy(o[0],o.slice(1)));break;case"MultiPolygon":w(a.coordinates,function(l){l[0]&&n.push(new Wy(l[0],l.slice(1)))});break;case"LineString":n.push(new $y([a.coordinates]));break;case"MultiLineString":n.push(new $y(a.coordinates))}var s=new Hb(i[t||"name"],n,i.cp);return s.properties=i,s})}var _E=Object.freeze(Object.defineProperty({__proto__:null,linearMap:bt,round:Rt,asc:_r,getPrecision:Sr,getPrecisionSafe:k1,getPixelPrecision:gc,getPercentWithPrecision:O1,MAX_SAFE_INTEGER:mM,remRadian:yc,isRadianAroundZero:Co,parseDate:Ce,quantity:B1,quantityExponent:lu,nice:mc,quantile:SM,reformIntervals:Qh,isNumeric:_c,numericToNumber:Wr},Symbol.toStringTag,{value:"Module"})),SE=Object.freeze(Object.defineProperty({__proto__:null,parse:Ce,format:Qo},Symbol.toStringTag,{value:"Module"})),xE=Object.freeze(Object.defineProperty({__proto__:null,extendShape:OS,extendPath:BS,makePath:mu,makeImage:Oc,mergePath:Be,resizePath:Bc,createIcon:_n,updateProps:Mt,initProps:Qt,getTransform:gi,clipPointsByRect:Nc,clipRectByRect:zS,registerShape:We,getShapeClass:kc,Group:rt,Image:fe,Text:pt,Circle:ar,Ellipse:pu,Sector:Ar,Ring:Ko,Polygon:Mr,Polyline:He,Rect:dt,Line:ne,BezierCurve:Lc,Arc:gu,IncrementalDisplayable:ES,CompoundPath:yu,LinearGradient:jo,RadialGradient:Ic,BoundingRect:ht},Symbol.toStringTag,{value:"Module"})),bE=Object.freeze(Object.defineProperty({__proto__:null,addCommas:$c,toCamelCase:Uc,normalizeCssArray:Ta,encodeHTML:me,formatTpl:Yc,getTooltipMarker:JS,formatTime:lP,capitalFirst:uP,truncateText:X1,getTextRect:aP},Symbol.toStringTag,{value:"Module"})),wE=Object.freeze(Object.defineProperty({__proto__:null,map:z,each:w,indexOf:ot,inherits:oc,reduce:Ve,filter:Ct,bind:H,curry:ft,isArray:N,isString:V,isObject:U,isFunction:q,extend:O,defaults:Z,clone:X,merge:Q},Symbol.toStringTag,{value:"Module"})),No=xt();function TE(r){return r.type==="category"?AE(r):DE(r)}function CE(r,t){return r.type==="category"?ME(r,t):{ticks:z(r.scale.getTicks(),function(e){return e.value})}}function AE(r){var t=r.getLabelModel(),e=$b(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function $b(r,t){var e=Ub(r,"labels"),i=wd(t),a=Yb(e,i);if(a)return a;var n,o;return q(i)?n=qb(r,i):(o=i==="auto"?PE(r):i,n=Zb(r,o)),Xb(e,i,{labels:n,labelCategoryInterval:o})}function ME(r,t){var e=Ub(r,"ticks"),i=wd(t),a=Yb(e,i);if(a)return a;var n,o;if((!t.get("show")||r.scale.isBlank())&&(n=[]),q(i))n=qb(r,i,!0);else if(i==="auto"){var s=$b(r,r.getLabelModel());o=s.labelCategoryInterval,n=z(s.labels,function(l){return l.tickValue})}else o=i,n=Zb(r,o,!0);return Xb(e,i,{ticks:n,tickCategoryInterval:o})}function DE(r){var t=r.scale.getTicks(),e=rs(r);return{labels:z(t,function(i,a){return{level:i.level,formattedLabel:e(i,a),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function Ub(r,t){return No(r)[t]||(No(r)[t]=[])}function Yb(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function Xb(r,t,e){return r.push({key:t,value:e}),e}function PE(r){var t=No(r).autoInterval;return t!=null?t:No(r).autoInterval=r.calculateCategoryInterval()}function LE(r){var t=IE(r),e=rs(r),i=(t.axisRotate-t.labelRotate)/180*Math.PI,a=r.scale,n=a.getExtent(),o=a.count();if(n[1]-n[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),c=0,v=0;l<=n[1];l+=s){var d=0,p=0,g=Zo(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,c=Math.max(c,d,7),v=Math.max(v,p,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=No(r.model),b=r.getExtent(),x=S.lastAutoInterval,T=S.lastTickCount;return x!=null&&T!=null&&Math.abs(x-_)<=1&&Math.abs(T-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function IE(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Zb(r,t,e){var i=rs(r),a=r.scale,n=a.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=n[0],f=a.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Fb(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==n[0]&&p(n[0]);for(var d=u;d<=n[1];d+=l)p(d);v&&d-l!==n[1]&&p(n[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:i(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function qb(r,t,e){var i=r.scale,a=rs(r),n=[];return w(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&n.push(e?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),n}var Uy=[0,1],RE=function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),a=Math.max(e[0],e[1]);return t>=i&&t<=a},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return gc(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(i=i.slice(),Yy(i,a.count())),bt(t,Uy,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(i=i.slice(),Yy(i,a.count()));var n=bt(t,i,Uy,e);return this.scale.scale(n)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=CE(this,e),a=i.ticks,n=z(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return EE(this,n,o,t.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),a=z(i,function(n){return z(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(){return TE(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/i},r.prototype.calculateCategoryInterval=function(){return LE(this)},r}();function Yy(r,t){var e=r[1]-r[0],i=t,a=e/i/2;r[0]+=a,r[1]-=a}function EE(r,t,e,i){var a=t.length;if(!r.onBand||e||!a)return;var n=r.getExtent(),o,s;if(a===1)t[0].coord=n[0],o=t[1]={coord:n[0]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var h=n[0]>n[1];c(t[0].coord,n[0])&&(i?t[0].coord=n[0]:t.shift()),i&&c(n[0],t[0].coord)&&t.unshift({coord:n[0]}),c(n[1],o.coord)&&(i?o.coord=n[1]:t.pop()),i&&c(o.coord,n[1])&&t.push({coord:n[1]});function c(v,d){return v=Rt(v),d=Rt(d),h?v>d:v<d}}var lr=RE;function kE(r){var t=ut.extend(r);return ut.registerClass(t),t}function OE(r){var t=Dt.extend(r);return Dt.registerClass(t),t}function BE(r){var t=be.extend(r);return be.registerClass(t),t}function NE(r){var t=$t.extend(r);return $t.registerClass(t),t}var Wn=Math.PI*2,Zi=Ur.CMD,zE=["top","right","bottom","left"];function VE(r,t,e,i,a){var n=e.width,o=e.height;switch(r){case"top":i.set(e.x+n/2,e.y-t),a.set(0,-1);break;case"bottom":i.set(e.x+n/2,e.y+o+t),a.set(0,1);break;case"left":i.set(e.x-t,e.y+o/2),a.set(-1,0);break;case"right":i.set(e.x+n+t,e.y+o/2),a.set(1,0);break}}function FE(r,t,e,i,a,n,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,h=s*e+t;if(Math.abs(i-a)%Wn<1e-4)return l[0]=f,l[1]=h,u-e;if(n){var c=i;i=hi(a),a=hi(c)}else i=hi(i),a=hi(a);i>a&&(a+=Wn);var v=Math.atan2(s,o);if(v<0&&(v+=Wn),v>=i&&v<=a||v+Wn>=i&&v+Wn<=a)return l[0]=f,l[1]=h,u-e;var d=e*Math.cos(i)+r,p=e*Math.sin(i)+t,g=e*Math.cos(a)+r,y=e*Math.sin(a)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Yl(r,t,e,i,a,n,o,s){var l=a-r,u=n-t,f=e-r,h=i-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=t+d*h;return Math.sqrt((p-a)*(p-a)+(g-n)*(g-n))}function Kb(r,t,e,i,a,n,o){e<0&&(r=r+e,e=-e),i<0&&(t=t+i,i=-i);var s=r+e,l=t+i,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(n,t),l);return Math.sqrt((u-a)*(u-a)+(f-n)*(f-n))}var je=[];function GE(r,t,e){var i=Kb(t.x,t.y,t.width,t.height,r.x,r.y,je);return e.set(je[0],je[1]),i}function HE(r,t,e){for(var i=0,a=0,n=0,o=0,s,l,u=1/0,f=t.data,h=r.x,c=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(i=f[v],a=f[v+1],n=i,o=a);var p=u;switch(d){case Zi.M:n=f[v++],o=f[v++],i=n,a=o;break;case Zi.L:p=Yl(i,a,f[v],f[v+1],h,c,je,!0),i=f[v++],a=f[v++];break;case Zi.C:p=d1(i,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,je),i=f[v++],a=f[v++];break;case Zi.Q:p=g1(i,a,f[v++],f[v++],f[v],f[v+1],h,c,je),i=f[v++],a=f[v++];break;case Zi.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,v<=1&&(n=s,o=l);var T=(h-g)*_/m+g;p=FE(g,y,_,S,S+b,x,T,c,je),i=Math.cos(S+b)*m+g,a=Math.sin(S+b)*_+y;break;case Zi.R:n=i=f[v++],o=a=f[v++];var C=f[v++],A=f[v++];p=Kb(n,o,C,A,h,c,je);break;case Zi.Z:p=Yl(i,a,n,o,h,c,je,!0),i=n,a=o;break}p<u&&(u=p,e.set(je[0],je[1]))}return u}var Qe=new et,_t=new et,It=new et,br=new et,mr=new et;function XG(r,t){if(!!r){var e=r.getTextGuideLine(),i=r.getTextContent();if(!!(i&&e)){var a=r.textGuideLineConfig||{},n=[[0,0],[0,0],[0,0]],o=a.candidates||zE,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),h=f&&ba([],f),c=t.get("length2")||0;u&&It.copy(u);for(var v=0;v<o.length;v++){var d=o[v];VE(d,0,s,Qe,br),et.scaleAndAdd(_t,Qe,br,c),_t.transform(h);var p=r.getBoundingRect(),g=u?u.distance(_t):r instanceof gt?HE(_t,r.path,It):GE(_t,p,It);g<l&&(l=g,_t.transform(f),It.transform(f),It.toArray(n[0]),_t.toArray(n[1]),Qe.toArray(n[2]))}jb(n,t.get("minTurnAngle")),e.setShape({points:n})}}}var Xl=[],ie=new et;function jb(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Qe.fromArray(r[0]),_t.fromArray(r[1]),It.fromArray(r[2]),et.sub(br,Qe,_t),et.sub(mr,It,_t);var e=br.len(),i=mr.len();if(!(e<.001||i<.001)){br.scale(1/e),mr.scale(1/i);var a=br.dot(mr),n=Math.cos(t);if(n<a){var o=Yl(_t.x,_t.y,It.x,It.y,Qe.x,Qe.y,Xl,!1);ie.fromArray(Xl),ie.scaleAndAdd(mr,o/Math.tan(Math.PI-t));var s=It.x!==_t.x?(ie.x-_t.x)/(It.x-_t.x):(ie.y-_t.y)/(It.y-_t.y);if(isNaN(s))return;s<0?et.copy(ie,_t):s>1&&et.copy(ie,It),ie.toArray(r[1])}}}}function WE(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Qe.fromArray(r[0]),_t.fromArray(r[1]),It.fromArray(r[2]),et.sub(br,_t,Qe),et.sub(mr,It,_t);var i=br.len(),a=mr.len();if(!(i<.001||a<.001)){br.scale(1/i),mr.scale(1/a);var n=br.dot(t),o=Math.cos(e);if(n<o){var s=Yl(_t.x,_t.y,It.x,It.y,Qe.x,Qe.y,Xl,!1);ie.fromArray(Xl);var l=Math.PI/2,u=Math.acos(mr.dot(t)),f=l+u-e;if(f>=l)et.copy(ie,It);else{ie.scaleAndAdd(mr,s/Math.tan(Math.PI/2-f));var h=It.x!==_t.x?(ie.x-_t.x)/(It.x-_t.x):(ie.y-_t.y)/(It.y-_t.y);if(isNaN(h))return;h<0?et.copy(ie,_t):h>1&&et.copy(ie,It)}ie.toArray(r[1])}}}}function Xy(r,t,e,i){var a=e==="normal",n=a?r:r.ensureState(e);n.ignore=t;var o=i.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();a?r.useStyle(s):n.style=s}function $E(r,t){var e=t.smooth,i=t.points;if(!!i)if(r.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var a=Sl(i[0],i[1]),n=Sl(i[1],i[2]);if(!a||!n){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(a,n)*e,s=tl([],i[1],i[0],o/a),l=tl([],i[1],i[2],o/n),u=tl([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function UE(r,t,e){var i=r.getTextGuideLine(),a=r.getTextContent();if(!a){i&&r.removeTextGuideLine();return}for(var n=t.normal,o=n.get("show"),s=a.ignore,l=0;l<Pl.length;l++){var u=Pl[l],f=t[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:it(a.states[u]&&a.states[u].ignore,s);if(v||!it(c,o)){var d=h?i:i&&i.states[u];d&&(d.ignore=!0);continue}i||(i=new He,r.setTextGuideLine(i),!h&&(s||!o)&&Xy(i,!0,"normal",t.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),Xy(i,!1,u,f)}}if(i){Z(i.style,e),i.style.fill=null;var p=n.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,i.buildPath=$E}}function YE(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},i=0;i<Ge.length;i++){var a=Ge[i];e[a]=r.getModel([a,t])}return e}function XE(r){for(var t=[],e=0;e<r.length;e++){var i=r[e];if(!i.defaultAttr.ignore){var a=i.label,n=a.getComputedTransform(),o=a.getBoundingRect(),s=!n||n[1]<1e-5&&n[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(n),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Ll(o,n):null;t.push({label:a,labelLine:i.labelLine,rect:u,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:n})}}return t}function Jb(r,t,e,i,a,n){var o=r.length;if(o<2)return;r.sort(function(C,A){return C.rect[t]-A.rect[t]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var c=r[h],v=c.rect;l=v[t]-s,l<0&&(v[t]-=l,c.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=v[t]+v[e]}f>0&&n&&b(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&T(-y),m<0&&T(m);function _(){y=p.rect[t]-i,m=a-g.rect[t]-g.rect[e]}function S(C,A,D){if(C<0){var M=Math.min(A,-C);if(M>0){b(M*D,0,o);var P=M+C;P<0&&x(-P*D,1)}else x(-C*D,1)}}function b(C,A,D){C!==0&&(u=!0);for(var M=A;M<D;M++){var P=r[M],L=P.rect;L[t]+=C,P.label[t]+=C}}function x(C,A){for(var D=[],M=0,P=1;P<o;P++){var L=r[P-1].rect,I=Math.max(r[P].rect[t]-L[t]-L[e],0);D.push(I),M+=I}if(!!M){var E=Math.min(Math.abs(C)/M,A);if(C>0)for(var P=0;P<o-1;P++){var k=D[P]*E;b(k,0,P+1)}else for(var P=o-1;P>0;P--){var k=D[P-1]*E;b(-k,P,o)}}}function T(C){var A=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(o-1)),M=0;M<o-1;M++)if(A>0?b(D,0,M+1):b(-D,o-M-1,o),C-=D,C<=0)return}return u}function ZG(r,t,e,i){return Jb(r,"x","width",t,e,i)}function ZE(r,t,e,i){return Jb(r,"y","height",t,e,i)}function qE(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new ht(0,0,0,0);function i(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a<r.length;a++){var n=r[a],o=n.axisAligned,s=n.localRect,l=n.transform,u=n.label,f=n.labelLine;e.copy(n.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=n.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(!!e.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new Ll(d.localRect,d.transform)),h||(h=new Ll(s,l)),h.intersect(d.obb)){c=!0;break}}}c?(i(u),f&&i(f)):(u.attr("ignore",n.defaultAttr.ignore),f&&f.attr("ignore",n.defaultAttr.labelGuideIgnore),t.push(n))}}var Zy=Object.freeze(Object.defineProperty({__proto__:null,registerLocale:Fc,version:kI,dependencies:OI,PRIORITY:eb,init:JI,connect:QI,disConnect:ub,disconnect:tR,dispose:eR,getInstanceByDom:fd,getInstanceById:rR,registerTheme:hd,registerPreprocessor:vd,registerProcessor:cd,registerPostInit:fb,registerPostUpdate:hb,registerUpdateLifecycle:Ou,registerAction:sr,registerCoordinateSystem:vb,getCoordinateSystemDimensions:iR,registerLayout:cb,registerVisual:Mi,registerLoading:pd,setCanvasCreator:aR,registerMap:db,getMap:nR,registerTransform:pb,dataTool:oR,throttle:Ru,use:Gt,setPlatformAPI:U_,parseGeoJSON:Mv,parseGeoJson:Mv,env:vt,Model:Tt,Axis:lr,innerDrawElementOnCanvas:Yx,zrender:pM,matrix:JA,vector:VC,zrUtil:LC,color:TA,helper:vE,number:_E,time:SE,graphic:xE,format:bE,util:wE,List:Bu,ComponentModel:ut,ComponentView:Dt,SeriesModel:be,ChartView:$t,extendComponentModel:kE,extendComponentView:OE,extendSeriesModel:BE,extendChartView:NE},Symbol.toStringTag,{value:"Module"})),KE=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return es(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new rt,a=Ut("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(a),a.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=e.itemHeight*.8,u=Ut(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.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},t}(be),jE=KE;function Gu(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var a=vn(r,t,e[0]);return a!=null?a+"":null}else if(i){for(var n=[],o=0;o<e.length;o++)n.push(vn(r,t,e[o]));return n.join(" ")}}function Qb(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!N(t))return t+"";for(var i=[],a=0;a<e.length;a++){var n=r.getDimensionIndex(e[a]);n>=0&&i.push(t[n])}return i.join(" ")}var JE=function(r){R(t,r);function t(e,i,a,n){var o=r.call(this)||this;return o.updateData(e,i,a,n),o}return t.prototype._createSymbol=function(e,i,a,n,o){this.removeAll();var s=Ut(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=QE,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){un(this.childAt(0))},t.prototype.downplay=function(){fn(this.childAt(0))},t.prototype.setZ=function(e,i){var a=this.childAt(0);a.zlevel=e,a.z=i},t.prototype.setDraggable=function(e,i){var a=this.childAt(0);a.draggable=e,a.cursor=!i&&e?"move":a.cursor},t.prototype.updateData=function(e,i,a,n){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=o!==this._symbolType,f=n&&n.disableAnimation;if(u){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):Mt(c,v,s,i),Po(c)}if(this._updateCommon(e,i,l,a,n),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Qt(c,v,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,a,n,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,p,g,y;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,h=n.selectItemStyle,c=n.focus,v=n.blurScope,p=n.labelStatesModels,g=n.hoverScale,y=n.cursorStyle,d=n.emphasisDisabled),!n||e.hasItemOption){var m=n&&n.itemModel?n.itemModel:e.getItemModel(i),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=qr(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Eu(e.getItemVisual(i,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(i,"style"),T=x.fill;if(s instanceof fe){var C=s.style;s.useStyle(O({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},x))}else s.__isEmptyBrush?s.useStyle(O({},x)):s.useStyle(x),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(i,"liftZ"),D=this._z2;A!=null?D==null&&(this._z2=s.z2,s.z2+=A):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;Zr(s,p,{labelFetcher:l,labelDataIndex:i,defaultText:P,inheritColor:T,defaultOpacity:x.opacity});function P(E){return M?e.getName(E):Gu(e,E)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");if(L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f,g){var I=Math.max(yt(g)?g:1.1,3/this._sizeY);L.scaleX=this._sizeX*I,L.scaleY=this._sizeY*I}this.setSymbolScale(1),Si(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,a){var n=this.childAt(0),o=nt(this).dataIndex,s=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var l=n.getTextContent();l&&Do(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Do(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return nd(e.getItemVisual(i,"symbolSize"))},t}(rt);function QE(r,t){this.parent.drift(r,t)}var Td=JE;function th(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function qy(r){return r!=null&&!U(r)&&(r={isIgnore:r}),r||{}}function Ky(r){var t=r.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:qr(t),cursorStyle:t.get("cursor")}}var tk=function(){function r(t){this.group=new rt,this._SymbolCtor=t||Td}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=qy(e);var i=this.group,a=t.hostModel,n=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Ky(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};n||i.removeAll(),t.diff(n).add(function(h){var c=f(h);if(th(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=n.getItemGraphicEl(c),d=f(h);if(!th(t,d,h,e)){i.remove(v);return}var p=t.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)i.remove(v),v=new o(t,h,l,u),v.setPosition(d);else{v.updateData(t,h,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):Mt(v,y,a)}i.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=n.getItemGraphicEl(h);c&&c.fadeOut(function(){i.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,a){var n=t._getSymbolPoint(a);i.setPosition(n),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ky(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=qy(i);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var o=e.getItemLayout(n);if(th(e,o,n,i)){var s=new this._SymbolCtor(e,n,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){xu(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(a){a.fadeOut(function(){e.remove(a)},i.hostModel)}):e.removeAll()},r}(),tw=tk;function ew(r,t,e){var i=r.getBaseAxis(),a=r.getOtherAxis(i),n=ek(a,e),o=i.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=z(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return bi(t,h[0])&&(c=!0,h[0]=v),bi(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function ek(r,t){var e=0,i=r.scale.getExtent();return t==="start"?e=i[0]:t==="end"?e=i[1]:yt(t)&&!isNaN(t)?e=t:i[0]>0?e=i[0]:i[1]<0&&(e=i[1]),e}function rw(r,t,e,i){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=e.get(r.baseDim,i),o[1-n]=a,t.dataToPoint(o)}function rk(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,a){e.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function ik(r,t,e,i,a,n,o,s){for(var l=rk(r,t),u=[],f=[],h=[],c=[],v=[],d=[],p=[],g=ew(a,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,T=void 0;switch(S.cmd){case"=":x=S.idx*2,T=S.idx1*2;var C=y[x],A=y[x+1],D=m[T],M=m[T+1];(isNaN(C)||isNaN(A))&&(C=D,A=M),u.push(C,A),f.push(D,M),h.push(e[x],e[x+1]),c.push(i[T],i[T+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var P=S.idx,L=g.dataDimsForPoint,I=a.dataToPoint([t.get(L[0],P),t.get(L[1],P)]);T=P*2,u.push(I[0],I[1]),f.push(m[T],m[T+1]);var E=rw(g,a,t,P);h.push(E[0],E[1]),c.push(i[T],i[T+1]),p.push(t.getRawIndex(P));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(Et,St){return p[Et]-p[St]});for(var k=u.length,W=Nr(k),B=Nr(k),F=Nr(k),Y=Nr(k),tt=[],_=0;_<d.length;_++){var J=d[_],st=_*2,ct=J*2;W[st]=u[ct],W[st+1]=u[ct+1],B[st]=f[ct],B[st+1]=f[ct+1],F[st]=h[ct],F[st+1]=h[ct+1],Y[st]=c[ct],Y[st+1]=c[ct+1],tt[_]=v[J]}return{current:W,next:B,stackedOnCurrent:F,stackedOnNext:Y,status:tt}}var ii=Math.min,ai=Math.max;function da(r,t){return isNaN(r)||isNaN(t)}function Dv(r,t,e,i,a,n,o,s,l){for(var u,f,h,c,v,d,p=e,g=0;g<i;g++){var y=t[p*2],m=t[p*2+1];if(p>=a||p<0)break;if(da(y,m)){if(l){p+=n;continue}break}if(p===e)r[n>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=n;continue}if(o>0){for(var b=p+n,x=t[b*2],T=t[b*2+1];x===y&&T===m&&g<i;)g++,b+=n,p+=n,x=t[b*2],T=t[b*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var C=g+1;if(l)for(;da(x,T)&&C<i;)C++,b+=n,x=t[b*2],T=t[b*2+1];var A=.5,D=0,M=0,P=void 0,L=void 0;if(C>=i||da(x,T))v=y,d=m;else{D=x-u,M=T-f;var I=y-u,E=x-y,k=m-f,W=T-m,B=void 0,F=void 0;if(s==="x"){B=Math.abs(I),F=Math.abs(E);var Y=D>0?1:-1;v=y-Y*B*o,d=m,P=y+Y*F*o,L=m}else if(s==="y"){B=Math.abs(k),F=Math.abs(W);var tt=M>0?1:-1;v=y,d=m-tt*B*o,P=y,L=m+tt*F*o}else B=Math.sqrt(I*I+k*k),F=Math.sqrt(E*E+W*W),A=F/(F+B),v=y-D*o*(1-A),d=m-M*o*(1-A),P=y+D*o*A,L=m+M*o*A,P=ii(P,ai(x,y)),L=ii(L,ai(T,m)),P=ai(P,ii(x,y)),L=ai(L,ii(T,m)),D=P-y,M=L-m,v=y-D*B/F,d=m-M*B/F,v=ii(v,ai(u,y)),d=ii(d,ai(f,m)),v=ai(v,ii(u,y)),d=ai(d,ii(f,m)),D=y-v,M=m-d,P=y+D*F/B,L=m+M*F/B}r.bezierCurveTo(h,c,v,d,y,m),h=P,c=L}else r.lineTo(y,m)}u=y,f=m,p+=n}return g}var iw=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),ak=function(r){R(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iw},t.prototype.buildPath=function(e,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&da(a[o*2-2],a[o*2-1]);o--);for(;n<o&&da(a[n*2],a[n*2+1]);n++);}for(;n<o;)n+=Dv(e,a,n,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(e,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,n=a.data,o=Ur.CMD,s,l,u=i==="x",f=[],h=0;h<n.length;){var c=n[h++],v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=n[h++],l=n[h++];break;case o.L:if(v=n[h++],d=n[h++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=n[h++],d=n[h++],p=n[h++],g=n[h++],y=n[h++],m=n[h++];var b=u?bl(s,v,p,y,e,f):bl(l,d,g,m,e,f);if(b>0)for(var x=0;x<b;x++){var T=f[x];if(T<=1&&T>=0){var S=u?Bt(l,d,g,m,T):Bt(s,v,p,y,T);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(gt),nk=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(iw),ok=function(r){R(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new nk},t.prototype.buildPath=function(e,i){var a=i.points,n=i.stackedOnPoints,o=0,s=a.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&da(a[s*2-2],a[s*2-1]);s--);for(;o<s&&da(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=Dv(e,a,o,s,s,1,i.smooth,l,i.connectNulls);Dv(e,n,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,e.closePath()}},t}(gt);function aw(r,t,e,i,a){var n=r.getArea(),o=n.x,s=n.y,l=n.width,u=n.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var h=new dt({shape:{x:o,y:s,width:l,height:u}});if(t){var c=r.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=q(a)?function(g){a(g,h)}:null;Qt(h,{shape:{width:l,height:u,x:o,y:s}},e,null,i,p)}return h}function nw(r,t,e){var i=r.getArea(),a=Rt(i.r0,1),n=Rt(i.r,1),o=new Ar({shape:{cx:Rt(r.cx,1),cy:Rt(r.cy,1),r0:a,r:n,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=a,Qt(o,{shape:{endAngle:i.endAngle,r:n}},e)}return o}function sk(r,t,e,i,a){if(r){if(r.type==="polar")return nw(r,t,e);if(r.type==="cartesian2d")return aw(r,t,e,i,a)}else return null;return null}function Cd(r,t){return r.type===t}function jy(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Jy(r){for(var t=1/0,e=1/0,i=-1/0,a=-1/0,n=0;n<r.length;){var o=r[n++],s=r[n++];isNaN(o)||(t=Math.min(o,t),i=Math.max(o,i)),isNaN(s)||(e=Math.min(s,e),a=Math.max(s,a))}return[[t,e],[i,a]]}function Qy(r,t){var e=Jy(r),i=e[0],a=e[1],n=Jy(t),o=n[0],s=n[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function tm(r){return yt(r)?r:r?.5:0}function lk(r,t,e){if(!e.valueDim)return[];for(var i=t.count(),a=Nr(i*2),n=0;n<i;n++){var o=rw(e,r,t,n);a[n*2]=o[0],a[n*2+1]=o[1]}return a}function ni(r,t,e,i){var a=t.getBaseAxis(),n=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(i){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[n]=f[n],l[1-n]=u[1-n],o.push(l[0],l[1]);break;case"middle":var c=(u[n]+f[n])/2,v=[];l[n]=v[n]=c,l[1-n]=u[1-n],v[1-n]=f[1-n],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[n]=u[n],l[1-n]=f[1-n],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function uk(r,t){var e=[],i=r.length,a,n;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),p=vc(d,[f.color,h.color]);return{coord:c,color:p}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>t){n?e.push(o(n,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),n=l}return e}function fk(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){for(var a,n,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){n=i[o];break}}if(!!n){var l=t.getAxis(a),u=z(n.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=uk(u,a==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=c[0].coord-d,g=c[v-1].coord+d,y=g-p;if(y<.001)return"transparent";w(c,function(_){_.offset=(_.coord-p)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new jo(0,0,0,0,c,!0);return m[a]=p,m[a+"2"]=g,m}}}function hk(r,t,e){var i=r.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=e.getAxesByScale("ordinal")[0];if(!!n&&!(a&&vk(n,t))){var o=t.mapDimension(n.dim),s={};return w(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function vk(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var a=t.count(),n=Math.max(1,Math.round(a/5)),o=0;o<a;o+=n)if(Td.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function ck(r,t){return isNaN(r)||isNaN(t)}function dk(r){for(var t=r.length/2;t>0&&ck(r[t*2-2],r[t*2-1]);t--);return t-1}function em(r,t){return[r[t*2],r[t*2+1]]}function pk(r,t,e){for(var i=r.length/2,a=e==="x"?0:1,n,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){n=o;continue}if(n<=t&&o>=t||n>=t&&o<=t){l=u;break}s=u,n=o}return{range:[s,l],t:(t-n)/(o-n)}}function ow(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Ge.length;t++)if(r.get([Ge[t],"endLabel","show"]))return!0;return!1}function eh(r,t,e,i){if(Cd(t,"cartesian2d")){var a=i.getModel("endLabel"),n=a.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=ow(i)?function(v,d){r._endLabelOnDuring(v,d,o,s,n,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=aw(t,e,i,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return nw(t,e,i)}function gk(r,t){var e=t.getBaseAxis(),i=e.isHorizontal(),a=e.inverse,n=i?a?"right":"left":"center",o=i?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||n,verticalAlign:r.get("verticalAlign")||o}}}var yk=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new rt,i=new tw;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e},t.prototype.render=function(e,i,a){var n=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),h=l.getLayout("points")||[],c=o.type==="polar",v=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=e.get("animation"),_=!f.isEmpty(),S=f.get("origin"),b=ew(o,l,S),x=_&&lk(o,l,b),T=e.get("showSymbol"),C=e.get("connectNulls"),A=T&&!c&&hk(e,l,o),D=this._data;D&&D.eachItemGraphicEl(function(St,Xt){St.__temp&&(s.remove(St),D.setItemGraphicEl(Xt,null))}),T||d.remove(),s.add(y);var M=c?!1:e.get("step"),P;o&&o.getArea&&e.get("clip",!0)&&(P=o.getArea(),P.width!=null?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r+=.5)),this._clipShapeForSymbol=P;var L=fk(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&v.type===o.type&&M===this._step))T&&d.updateData(l,{isIgnore:A,clipShape:P,disableAnimation:!0,getSymbolPoint:function(St){return[h[St*2],h[St*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,P),M&&(h=ni(h,o,M,C),x&&(x=ni(x,o,M,C))),p=this._newPolyline(h),_?g=this._newPolygon(h,x):g&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,ma(L)),y.setClipPath(eh(this,o,!0,e));else{_&&!g?g=this._newPolygon(h,x):g&&!_&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,ma(L));var I=y.getClipPath();if(I){var E=eh(this,o,!1,e);Qt(I,{shape:E.shape},e)}else y.setClipPath(eh(this,o,!0,e));T&&d.updateData(l,{isIgnore:A,clipShape:P,disableAnimation:!0,getSymbolPoint:function(St){return[h[St*2],h[St*2+1]]}}),(!jy(this._stackedOnPoints,x)||!jy(this._points,h))&&(m?this._doUpdateAnimation(l,x,o,a,M,S,C):(M&&(h=ni(h,o,M,C),x&&(x=ni(x,o,M,C))),p.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:x})))}var k=e.getModel("emphasis"),W=k.get("focus"),B=k.get("blurScope"),F=k.get("disabled");if(p.useStyle(Z(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),hn(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Y=p.getState("emphasis").style;Y.lineWidth=+p.style.lineWidth+1}nt(p).seriesIndex=e.seriesIndex,Si(p,W,B,F);var tt=tm(e.get("smooth")),J=e.get("smoothMonotone");if(p.setShape({smooth:tt,smoothMonotone:J,connectNulls:C}),g){var st=l.getCalculationInfo("stackedOnSeries"),ct=0;g.useStyle(Z(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),st&&(ct=tm(st.get("smooth"))),g.setShape({smooth:tt,stackedOnSmooth:ct,smoothMonotone:J,connectNulls:C}),hn(g,e,"areaStyle"),nt(g).seriesIndex=e.seriesIndex,Si(g,W,B,F)}var Et=function(St){n._changePolyState(St)};l.eachItemGraphicEl(function(St){St&&(St.onHoverStateChange=Et)}),this._polyline.onHoverStateChange=Et,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,i){nt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,a,n){var o=e.getData(),s=ya(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel"),v=e.get("z");u=new Td(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else $t.prototype.highlight.call(this,e,i,a,n)},t.prototype.downplay=function(e,i,a,n){var o=e.getData(),s=ya(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else $t.prototype.downplay.call(this,e,i,a,n)},t.prototype._changePolyState=function(e){var i=this._polygon;iv(this._polyline,e),i&&iv(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new ak({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new ok({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,i,a){var n,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):i.type==="polar"&&(n=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");q(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=q(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,b=i.pointToCoord(g);n?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=a;n?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var T=m===y?0:(_-y)/(m-y);l&&(T=1-T);var C=q(h)?h(d):f*T+c,A=p.getSymbolPath(),D=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,a){var n=e.getModel("endLabel");if(ow(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new pt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=dk(l);f>=0&&(Zr(s,qr(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?Qb(o,v):Gu(o,h)},enableTextSetter:!0},gk(n,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,a,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var h=a.getLayout("points"),c=a.hostModel,v=c.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=i.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),T=y?"x":"y",C=pk(h,S,T),A=C.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!v){var P=em(h,A[0]);u.attr({x:P[0]+b,y:P[1]+x}),o&&(M=c.getRawValue(A[0]))}else{var P=f.getPointOn(S,T);P&&u.attr({x:P[0]+b,y:P[1]+x});var L=c.getRawValue(A[0]),I=c.getRawValue(A[1]);o&&(M=$1(a,d,L,I,C.t))}n.lastFrameIndex=A[0]}else{var E=e===1||n.lastFrameIndex>0?A[0]:0,P=em(h,E);o&&(M=c.getRawValue(E)),u.attr({x:P[0]+b,y:P[1]+x})}o&&Jo(u).setLabelText(M)}},t.prototype._doUpdateAnimation=function(e,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=ik(this._data,e,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(v=ni(c.current,a,o,l),d=ni(c.stackedOnCurrent,a,o,l),p=ni(c.next,a,o,l),g=ni(c.stackedOnNext,a,o,l)),Qy(v,p)>3e3||f&&Qy(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=v;var y={shape:{points:p}};c.current!==v&&(y.shape.__points=c.next),u.stopAnimation(),Mt(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Mt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,C=0;C<m.length;C++){var A=m[C].el,D=m[C].ptIdx*2;A.x=T[D],A.y=T[D+1],A.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(n,o){n.__temp&&(i.remove(n),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}($t),mk=yk;function Ad(r,t){return{seriesType:r,plan:rd(),reset:function(e){var i=e.getData(),a=e.coordinateSystem,n=e.pipelineContext,o=t||n.large;if(!!a){var s=z(a.dimensions,function(v){return i.mapDimension(v)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");bi(i,s[0])&&(s[0]=u),bi(i,s[1])&&(s[1]=u);var f=i.getStore(),h=i.getDimensionIndex(s[0]),c=i.getDimensionIndex(s[1]);return l&&{progress:function(v,d){for(var p=v.end-v.start,g=o&&Nr(p*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var b=void 0;if(l===1){var x=f.get(h,_);b=a.dataToPoint(x,null,m)}else y[0]=f.get(h,_),y[1]=f.get(c,_),b=a.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",g)}}}}}}var _k={average:function(r){for(var t=0,e=0,i=0;i<r.length;i++)isNaN(r[i])||(t+=r[i],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},Sk=function(r){return Math.round(r.length/2)};function sw(r){return{seriesType:r,reset:function(t,e,i){var a=t.getData(),n=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){n==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var d=void 0;V(n)?d=_k[n]:q(n)&&(d=n),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,d,Sk))}}}}}function xk(r){r.registerChartView(mk),r.registerSeriesModel(jE),r.registerLayout(Ad("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,sw("line"))}var lw=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return es(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var i=this.coordinateSystem;if(i&&i.clampData){var a=i.dataToPoint(i.clampData(e)),n=this.getData(),o=n.getLayout("offset"),s=n.getLayout("size"),l=i.getBaseAxis().isHorizontal()?0:1;return a[l]+=o+s/2,a}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(be);be.registerClass(lw);var Zl=lw,bk=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return es(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,a){return a.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ai(Zl.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Zl),wk=bk,Tk=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Ck=function(r){R(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new Tk},t.prototype.buildPath=function(e,i){var a=i.cx,n=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,h=i.endAngle,c=i.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(e.moveTo(p*o+a,g*o+n),e.arc(p*u+a,g*u+n,l,-Math.PI+f,f,!c)):e.moveTo(p*s+a,g*s+n),e.arc(a,n,s,f,h,!c),e.arc(y*u+a,m*u+n,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(a,n,o,h,f,c)},t}(gt),rm=Ck;function Ak(r,t){t=t||{};var e=t.isRoundCap;return function(i,a,n){var o=a.position;if(!o||o instanceof Array)return Al(i,a,n);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,d=(c+v)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,b=f+c*_(p),x=h+c*S(p),T="left",C="top";switch(s){case"startArc":b=f+(v-l)*_(y),x=h+(v-l)*S(y),T="center",C="top";break;case"insideStartArc":b=f+(v+l)*_(y),x=h+(v+l)*S(y),T="center",C="bottom";break;case"startAngle":b=f+d*_(p)+Vs(p,l+m,!1),x=h+d*S(p)+Fs(p,l+m,!1),T="right",C="middle";break;case"insideStartAngle":b=f+d*_(p)+Vs(p,-l+m,!1),x=h+d*S(p)+Fs(p,-l+m,!1),T="left",C="middle";break;case"middle":b=f+d*_(y),x=h+d*S(y),T="center",C="middle";break;case"endArc":b=f+(c+l)*_(y),x=h+(c+l)*S(y),T="center",C="bottom";break;case"insideEndArc":b=f+(c-l)*_(y),x=h+(c-l)*S(y),T="center",C="top";break;case"endAngle":b=f+d*_(g)+Vs(g,l+m,!0),x=h+d*S(g)+Fs(g,l+m,!0),T="left",C="middle";break;case"insideEndAngle":b=f+d*_(g)+Vs(g,-l+m,!0),x=h+d*S(g)+Fs(g,-l+m,!0),T="right",C="middle";break;default:return Al(i,a,n)}return i=i||{},i.x=b,i.y=x,i.align=T,i.verticalAlign=C,i}}function Mk(r,t,e,i){if(yt(i)){r.setTextConfig({rotation:i});return}else if(N(t)){r.setTextConfig({rotation:0});return}var a=r.shape,n=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(n+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=n;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Vs(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Fs(r,t,e){return t*Math.cos(r)*(e?1:-1)}var rh=Math.max,ih=Math.min;function Dk(r,t){var e=r.getArea&&r.getArea();if(Cd(r,"cartesian2d")){var i=r.getBaseAxis();if(i.type!=="category"||!i.onBand){var a=t.getLayout("bandWidth");i.isHorizontal()?(e.x-=a,e.width+=a*2):(e.y-=a,e.height+=a*2)}}return e}var Pk=function(r){R(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,i,a,n){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,i,a):this._renderNormal(e,i,a,n))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,i){this._progressiveEls=[],this._incrementalRenderLarge(e,i)},t.prototype.eachRendered=function(e){xu(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e,i,a,n){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=e.isAnimationEnabled()?e:null,v=Lk(e,u);v&&this._enableRealtimeSort(v,s,a);var d=e.get("clip",!0)||v,p=Dk(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=n&&n.isInitSort,T=n&&n.type==="changeAxisOrder";function C(M){var P=Gs[u.type](s,M),L=Nk(u,h,P);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&L.setShape("r",_),S[M]=L,L}s.diff(l).add(function(M){var P=s.getItemModel(M),L=Gs[u.type](s,M,P);if(y&&C(M),!(!s.hasValue(M)||!sm[u.type](L))){var I=!1;d&&(I=im[u.type](p,L));var E=am[u.type](e,s,M,L,h,c,f.model,!1,g);v&&(E.forceLabelAnimation=!0),lm(E,s,M,P,L,e,h,u.type==="polar"),x?E.attr({shape:L}):v?nm(v,c,E,L,M,h,!1,!1):Qt(E,{shape:L},e,M),s.setItemGraphicEl(M,E),o.add(E),E.ignore=I}}).update(function(M,P){var L=s.getItemModel(M),I=Gs[u.type](s,M,L);if(y){var E=void 0;b.length===0?E=C(P):(E=b[P],E.useStyle(m.getItemStyle()),u.type==="cartesian2d"&&E.setShape("r",_),S[M]=E);var k=Gs[u.type](s,M),W=fw(h,k,u);Mt(E,{shape:W},c,M)}var B=l.getItemGraphicEl(P);if(!s.hasValue(M)||!sm[u.type](I)){o.remove(B);return}var F=!1;if(d&&(F=im[u.type](p,I),F&&o.remove(B)),B?Po(B):B=am[u.type](e,s,M,I,h,c,f.model,!!B,g),v&&(B.forceLabelAnimation=!0),T){var Y=B.getTextContent();if(Y){var tt=Jo(Y);tt.prevValue!=null&&(tt.prevValue=tt.value)}}else lm(B,s,M,L,I,e,h,u.type==="polar");x?B.attr({shape:I}):v?nm(v,c,B,I,M,h,!0,T):Mt(B,{shape:I},e,M,null),s.setItemGraphicEl(M,B),B.ignore=F,o.add(B)}).remove(function(M){var P=l.getItemGraphicEl(M);P&&Il(P,e,M)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new rt);A.removeAll();for(var D=0;D<S.length;++D)A.add(S[D]);o.add(A),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,i,a){this._clear(),fm(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),fm(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&sk(e.coordinateSystem,!1,e),a=this.group;i?a.setClipPath(i):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,i,a){var n=this;if(!!i.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,e,a),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){n._updateSortWithinSameData(i,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,i,a){var n=[];return e.each(e.mapDimension(i.dim),function(o,s){var l=a(s);l=l==null?NaN:l,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:z(n,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,i,a){for(var n=a.scale,o=e.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,n.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:i(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var a=i.scale,n=a.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,i,a,n){if(!!this._isOrderChangedWithinSameData(e,i,a)){var o=this._dataSort(e,a,i);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,i,a){var n=i.baseAxis,o=this._dataSort(e,n,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(n){Il(n,e,nt(n).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}($t),im={cartesian2d:function(r,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var a=r.x+r.width,n=r.y+r.height,o=rh(t.x,r.x),s=ih(t.x+t.width,a),l=rh(t.y,r.y),u=ih(t.y+t.height,n),f=s<o,h=u<l;return t.x=f&&o>a?s:o,t.y=h&&l>n?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var a=ih(t.r,r.r),n=rh(t.r0,r.r0);t.r=a,t.r0=n;var o=a-n<0;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},am={cartesian2d:function(r,t,e,i,a,n,o,s,l){var u=new dt({shape:O({},i),z2:1});if(u.__dataIndex=e,u.name="item",n){var f=u.shape,h=a?"height":"width";f[h]=0}return u},polar:function(r,t,e,i,a,n,o,s,l){var u=!a&&l?rm:Ar,f=new u({shape:i,z2:1});f.name="item";var h=uw(a);if(f.calculateTextPosition=Ak(h,{isRoundCap:u===rm}),n){var c=f.shape,v=a?"r":"endAngle",d={};c[v]=a?0:i.startAngle,d[v]=i[v],(s?Mt:Qt)(f,{shape:d},n)}return f}};function Lk(r,t){var e=r.get("realtimeSort",!0),i=t.getBaseAxis();if(e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function nm(r,t,e,i,a,n,o,s){var l,u;n?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Mt:Qt)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Mt:Qt)(e,{shape:u},f,a)}function om(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var Ik=["x","y","width","height"],Rk=["cx","cy","r","startAngle","endAngle"],sm={cartesian2d:function(r){return!om(r,Ik)},polar:function(r){return!om(r,Rk)}},Gs={cartesian2d:function(r,t,e){var i=r.getItemLayout(t),a=e?kk(e,i):0,n=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+n*a/2,y:i.y+o*a/2,width:i.width-n*a,height:i.height-o*a}},polar:function(r,t,e){var i=r.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Ek(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function uw(r){return function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}}(r)}function lm(r,t,e,i,a,n,o,s){var l=t.getItemVisual(e,"style");s||r.setShape("r",i.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=i.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",h=qr(i);Zr(r,h,{labelFetcher:n,labelDataIndex:e,defaultText:Gu(n.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var c=r.getTextContent();if(s&&c){var v=i.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,Mk(r,v==="outside"?f:v,uw(o),i.get(["label","rotate"]))}V2(c,h,n.getRawValue(e),function(p){return Qb(t,p)});var d=i.getModel(["emphasis"]);Si(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),hn(r,i),Ek(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function kk(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),n=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,a,n)}var Ok=function(){function r(){}return r}(),um=function(r){R(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new Ok},t.prototype.buildPath=function(e,i){for(var a=i.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[n]=u,l[o]=a[f+2],s[n]=a[f+n],s[o]=a[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(gt);function fm(r,t,e,i){var a=r.getData(),n=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new um({shape:{points:u},incremental:!!i,silent:!0,z2:0});f.baseDimIdx=n,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new um({shape:{points:a.getLayout("largePoints")},incremental:!!i,z2:1});h.baseDimIdx=n,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(a.getVisual("style")),nt(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",hm),h.on("mousemove",hm)),e&&e.push(h)}var hm=Ru(function(r){var t=this,e=Bk(t,r.offsetX,r.offsetY);nt(t).dataIndex=e>=0?e:null},30,!1);function Bk(r,t,e){for(var i=r.baseDimIdx,a=1-i,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=n.length/3;f<h;f++){var c=f*3;if(l[i]=u,l[a]=n[c+2],s[i]=n[c+i],s[a]=n[c+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function fw(r,t,e){if(Cd(e,"cartesian2d")){var i=t,a=e.getArea();return{x:r?i.x:a.x,y:r?a.y:i.y,width:r?i.width:a.width,height:r?a.height:i.height}}else{var a=e.getArea(),n=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:n.r0,r:r?a.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function Nk(r,t,e){var i=r.type==="polar"?Ar:dt;return new i({shape:fw(t,e,r),silent:!0,z2:0})}var zk=Pk;function Vk(r){r.registerChartView(zk),r.registerSeriesModel(wk),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ft(Ib,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Rb("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,sw("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var Hs=Math.PI*2,vm=Math.PI/180;function hw(r,t){return ue(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function vw(r,t){var e=hw(r,t),i=r.get("center"),a=r.get("radius");N(a)||(a=[0,a]),N(i)||(i=[i,i]);var n=K(e.width,t.getWidth()),o=K(e.height,t.getHeight()),s=Math.min(n,o),l=K(i[0],n)+e.x,u=K(i[1],o)+e.y,f=K(a[0],s/2),h=K(a[1],s/2);return{cx:l,cy:u,r0:f,r:h}}function Fk(r,t,e){t.eachSeriesByType(r,function(i){var a=i.getData(),n=a.mapDimension("value"),o=hw(i,e),s=vw(i,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-i.get("startAngle")*vm,v=i.get("minAngle")*vm,d=0;a.each(n,function(D){!isNaN(D)&&d++});var p=a.getSum(n),g=Math.PI/(p||d)*2,y=i.get("clockwise"),m=i.get("roseType"),_=i.get("stillShowZeroSum"),S=a.getDataExtent(n);S[0]=0;var b=Hs,x=0,T=c,C=y?1:-1;if(a.setLayout({viewRect:o,r:f}),a.each(n,function(D,M){var P;if(isNaN(D)){a.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});return}m!=="area"?P=p===0&&_?g:D*g:P=Hs/d,P<v?(P=v,b-=v):x+=D;var L=T+C*P;a.setItemLayout(M,{angle:P,startAngle:T,endAngle:L,clockwise:y,cx:l,cy:u,r0:h,r:m?bt(D,S,[h,f]):f}),T=L}),b<Hs&&d)if(b<=.001){var A=Hs/d;a.each(n,function(D,M){if(!isNaN(D)){var P=a.getItemLayout(M);P.angle=A,P.startAngle=c+C*M*A,P.endAngle=c+C*(M+1)*A}})}else g=b/x,T=c,a.each(n,function(D,M){if(!isNaN(D)){var P=a.getItemLayout(M),L=P.angle===v?v:D*g;P.startAngle=T,P.endAngle=T+C*L,T+=C*L}})})}function cw(r){return{seriesType:r,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(!(!i||!i.length)){var a=t.getData();a.filterSelf(function(n){for(var o=a.getName(n),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}var Gk=Math.PI/180;function cm(r,t,e,i,a,n,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),b=i+_.len,x=b*b,T=Math.sqrt((1-Math.abs(S*S/y))*x),C=t+(T+_.len2)*a,A=C-_.label.x,D=_.targetTextWidth-A*a;dw(_,D,!0),_.label.x=C}}function h(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?y:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*a,T=i+_.len,C=Math.abs(x)<T?Math.sqrt(b*b/(1-x*x/T/T)):T;S.rB=C,S.maxY=b}S.list.push(_)}f(g),f(y)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}ZE(r,l,l+o)&&h(r)}function Hk(r,t,e,i,a,n,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;ah(r[c])||(v.x<t?(f=Math.min(f,v.x),l.push(r[c])):(h=Math.max(h,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!ah(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?g=f-o-d.bleedMargin:g=o+a-h-d.bleedMargin:v.x<t?g=v.x-o-d.bleedMargin:g=o+a-v.x-d.bleedMargin,d.targetTextWidth=g,dw(d,g)}}cm(u,t,e,i,1,a,n,o,s,h),cm(l,t,e,i,-1,a,n,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!ah(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];y?v.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+a-d.edgeDistance-b-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function dw(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var i=r.label,a=i.style,n=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=n.width+(o?0:l);if(t<f||e){var h=n.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var v=t-l,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;i.setStyle("width",d)}var p=i.getBoundingRect();n.width=p.width;var g=(i.style.margin||0)+2.1;n.height=p.height+g,n.y-=(n.height-h)/2}}}function ah(r){return r.position==="center"}function Wk(r){var t=r.getData(),e=[],i,a,n=!1,o=(r.get("minShowLabelAngle")||0)*Gk,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var T in x.states)if(x.states[T].ignore===!1)return!0;return!1}t.each(function(x){var T=t.getItemGraphicEl(x),C=T.shape,A=T.getTextContent(),D=T.getTextGuideLine(),M=t.getItemModel(x),P=M.getModel("label"),L=P.get("position")||M.get(["emphasis","label","position"]),I=P.get("distanceToLabelLine"),E=P.get("alignTo"),k=K(P.get("edgeDistance"),u),W=P.get("bleedMargin"),B=M.getModel("labelLine"),F=B.get("length");F=K(F,u);var Y=B.get("length2");if(Y=K(Y,u),Math.abs(C.endAngle-C.startAngle)<o){w(A.states,v),A.ignore=!0;return}if(!!d(A)){var tt=(C.startAngle+C.endAngle)/2,J=Math.cos(tt),st=Math.sin(tt),ct,Et,St,Xt;i=C.cx,a=C.cy;var Vt=L==="inside"||L==="inner";if(L==="center")ct=C.cx,Et=C.cy,Xt="center";else{var Pt=(Vt?(C.r+C.r0)/2*J:C.r*J)+i,wt=(Vt?(C.r+C.r0)/2*st:C.r*st)+a;if(ct=Pt+J*3,Et=wt+st*3,!Vt){var j=Pt+J*(F+l-C.r),lt=wt+st*(F+l-C.r),he=j+(J<0?-1:1)*Y,Lt=lt;E==="edge"?ct=J<0?f+k:f+u-k:ct=he+(J<0?-I:I),Et=Lt,St=[[Pt,wt],[j,lt],[he,Lt]]}Xt=Vt?"center":E==="edge"?J>0?"right":"left":J>0?"left":"right"}var Ue=Math.PI,ve=0,Pr=P.get("rotate");if(yt(Pr))ve=Pr*(Ue/180);else if(L==="center")ve=0;else if(Pr==="radial"||Pr===!0){var Aa=J<0?-tt+Ue:-tt;ve=Aa}else if(Pr==="tangential"&&L!=="outside"&&L!=="outer"){var Ye=Math.atan2(J,st);Ye<0&&(Ye=Ue*2+Ye);var ns=st>0;ns&&(Ye=Ue+Ye),ve=Ye-Ue}if(n=!!ve,A.x=ct,A.y=Et,A.rotation=ve,A.setStyle({verticalAlign:"middle"}),Vt){A.setStyle({align:Xt});var Yu=A.states.select;Yu&&(Yu.x+=A.x,Yu.y+=A.y)}else{var jr=A.getBoundingRect().clone();jr.applyTransform(A.getComputedTransform());var ep=(A.style.margin||0)+2.1;jr.y-=ep/2,jr.height+=ep,e.push({label:A,labelLine:D,position:L,len:F,len2:Y,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new et(J,st),linePoints:St,textAlign:Xt,labelDistance:I,labelAlignTo:E,edgeDistance:k,bleedMargin:W,rect:jr,unconstrainedWidth:jr.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:Vt})}}),!n&&r.get("avoidLabelOverlap")&&Hk(e,i,a,l,u,c,f,h);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(w(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(w(m.states,v),m.ignore=!0):(jb(b,g.minTurnAngle),WE(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new et(b[0][0],b[0][1])})}}}function Ws(r,t,e){var i=r.get("borderRadius");if(i==null)return e?{cornerRadius:0}:null;N(i)||(i=[i,i,i,i]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(i,function(n){return ir(n,a)})}}var $k=function(r){R(t,r);function t(e,i,a){var n=r.call(this)||this;n.z2=2;var o=new pt;return n.setTextContent(o),n.updateData(e,i,a,!0),n}return t.prototype.updateData=function(e,i,a,n){var o=this,s=e.hostModel,l=e.getItemModel(i),u=l.getModel("emphasis"),f=e.getItemLayout(i),h=O(Ws(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(n){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(Qt(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,Qt(o,{shape:{r:f.r}},s,i)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Qt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Mt(o,{shape:{endAngle:f.endAngle}},s,i))}else Po(o),Mt(o,{shape:h},s,i);o.useStyle(e.getItemVisual(i,"style")),hn(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,i),o.ensureState("emphasis").shape=O({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ws(u.getModel("itemStyle"),f)),O(o.ensureState("select"),{x:p,y:g,shape:Ws(l.getModel(["select","itemStyle"]),f)}),O(o.ensureState("blur"),{shape:Ws(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&O(m.ensureState("select"),{x:p,y:g}),O(_.ensureState("select"),{x:p,y:g}),Si(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,i,a){var n=this,o=i.getItemModel(a),s=o.getModel("labelLine"),l=i.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;Zr(n,qr(o),{labelFetcher:i.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(a,"normal")||i.getName(a)});var h=n.getTextContent();n.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")n.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new He,this.setTextGuideLine(v)),UE(this,YE(o),{stroke:u,opacity:Ja(s.get(["lineStyle","opacity"]),f,1)})}},t}(Ar),Uk=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,i,a,n){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var c=new Ar({shape:vw(e,a)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(v){var d=new $k(o,v,u);o.setItemGraphicEl(v,d),l.add(d)}).update(function(v,d){var p=s.getItemGraphicEl(d);p.updateData(o,v,u),p.off("click"),l.add(p),o.setItemGraphicEl(v,p)}).remove(function(v){var d=s.getItemGraphicEl(v);Il(d,e,v)}).execute(),Wk(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=e[0]-n.cx,s=e[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},t.type="pie",t}($t),Yk=Uk;function Md(r,t,e){t=N(t)&&{coordDimensions:t}||O({encodeDefine:r.getEncode()},t);var i=r.getSource(),a=yd(i,t).dimensions,n=new Bu(a,r);return n.initData(i,e),n}var Xk=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},r}(),pw=Xk,Zk=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new pw(H(this.getData,this),H(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Md(this,{coordDimensions:["value"],encodeDefaulter:ft(nx,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),a=r.prototype.getDataParams.call(this,e),n=[];return i.each(i.mapDimension("value"),function(o){n.push(o)}),a.percent=O1(n,e,i.hostModel.get("percentPrecision")),a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){Ml(e,"labelLine",["show"]);var i=e.labelLine,a=e.emphasis.labelLine;i.show=i.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(be),qk=Zk;function Kk(r){return{seriesType:r,reset:function(t,e){var i=t.getData();i.filterSelf(function(a){var n=i.mapDimension("value"),o=i.get(n,a);return!(yt(o)&&!isNaN(o)&&o<0)})}}}function jk(r){r.registerChartView(Yk),r.registerSeriesModel(qk),Wx("pie",r.registerAction),r.registerLayout(ft(Fk,"pie")),r.registerProcessor(cw("pie")),r.registerProcessor(Kk("pie"))}var Jk=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,i){return es(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,i,a){return a.point(i.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(be),Qk=Jk,gw=4,tO=function(){function r(){}return r}(),eO=function(r){R(t,r);function t(e){var i=r.call(this,e)||this;return i._off=0,i.hoverDataIdx=-1,i}return t.prototype.getDefaultShape=function(){return new tO},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,i){var a=i.points,n=i.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&n[0]<gw,f=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<a.length;){var c=a[h++],v=a[h++];isNaN(c)||isNaN(v)||f&&!f.contain(c,v)||(s.x=c-n[0]/2,s.y=v-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,i=e.points,a=e.size,n=this._ctx,o=this.softClipShape,s;if(!!n){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||n.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,i){for(var a=this.shape,n=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=n.length/2-1;u>=0;u--){var f=u*2,h=n[f]-s/2,c=n[f+1]-l/2;if(e>=h&&i>=c&&e<=h+s&&i<=c+l)return u}return-1},t.prototype.contain=function(e,i){var a=this.transformCoordToLocal(e,i),n=this.getBoundingRect();if(e=a[0],i=a[1],n.contain(e,i)){var o=this.hoverDataIdx=this.findDataIndex(e,i);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var i=this.shape,a=i.points,n=i.size,o=n[0],s=n[1],l=1/0,u=1/0,f=-1/0,h=-1/0,c=0;c<a.length;){var v=a[c++],d=a[c++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(d,u),h=Math.max(d,h)}e=this._rect=new ht(l-o/2,u-s/2,f-l+o,h-u+s)}return e},t}(gt),rO=function(){function r(){this.group=new rt}return r.prototype.updateData=function(t,e){this._clear();var i=this._create();i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var a=(i.endIndex-i.startIndex)*2,n=i.startIndex*4*2;e=new Float32Array(e.buffer,n,a)}i.setShape("points",e),i.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,i){var a=this._newAdded[0],n=e.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+n.length);l.set(o),l.set(n,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:n}),this._setCommon(u,e,i)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new eO({cursor:"default"});return this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,i){var a=e.hostModel;i=i||{};var n=e.getVisual("symbolSize");t.setShape("size",n instanceof Array?n:[n,n]),t.softClipShape=i.clipShape||null,t.symbolProxy=Ut(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<gw;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=nt(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var h=t.hoverDataIdx;h>=0&&(u.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),iO=rO,aO=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,i,a){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.incrementalPrepareUpdate(n),this._finished=!1},t.prototype.incrementalRender=function(e,i,a){this._symbolDraw.incrementalUpdate(e,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=e.end===i.getData().count()},t.prototype.updateTransform=function(e,i,a){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var o=Ad("").reset(e,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var i=e.coordinateSystem,a=i&&i.getArea&&i.getArea();return e.get("clip",!0)?a:null},t.prototype._updateSymbolDraw=function(e,i){var a=this._symbolDraw,n=i.pipelineContext,o=n.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new iO:new tw,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}($t),nO=aO,oO=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(ut),sO=oO,Pv=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},t.type="cartesian2dAxis",t}(ut);Yt(Pv,is);var yw={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)"]}}},lO=Q({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},yw),Dd=Q({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}}},yw),uO=Q({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Dd),fO=Z({logBase:10},Dd),mw={category:lO,value:Dd,time:uO,log:fO},hO={value:1,category:1,time:1,log:1};function zo(r,t,e,i){w(hO,function(a,n){var o=Q(Q({},mw[n],!0),i,!0),s=function(l){R(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=Ro(this),v=c?bn(f):{},d=h.getTheme();Q(f,d.get(n+"Axis")),Q(f,this.getDefaultOption()),f.type=dm(f),c&&xi(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Tv.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+n,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",dm)}function dm(r){return r.type||(r.data?"category":"value")}var vO=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ct(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),cO=vO,Lv=["x","y"];function pm(r){return r.type==="interval"||r.type==="time"}var dO=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Lv,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!pm(e)||!pm(i))){var a=e.getExtent(),n=i.getExtent(),o=this.dataToPoint([a[0],n[0]]),s=this.dataToPoint([a[1],n[1]]),l=a[1]-a[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-a[0]*f,v=o[1]-n[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=ba([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&a.contain(a.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var a=this.dataToPoint(e),n=this.dataToPoint(i),o=this.getArea(),s=new ht(a[0],a[1],n[0]-a[0],n[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,a){a=a||[];var n=e[0],o=e[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return Ft(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(n,i)),a[1]=l.toGlobalCoord(l.dataToCoord(o,i)),a},t.prototype.clampData=function(e,i){var a=this.getAxis("x").scale,n=this.getAxis("y").scale,o=a.getExtent(),s=n.getExtent(),l=a.parse(e[0]),u=n.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var a=[];if(this._invTransform)return Ft(a,e,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return a[0]=n.coordToData(n.toLocalCoord(e[0]),i),a[1]=o.coordToData(o.toLocalCoord(e[1]),i),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(e[0],e[1]),n=Math.min(i[0],i[1]),o=Math.max(e[0],e[1])-a,s=Math.max(i[0],i[1])-n;return new ht(a,n,o,s)},t}(cO),pO=dO,gO=function(r){R(t,r);function t(e,i,a,n,o){var s=r.call(this,e,i,a)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(lr),yO=gO;function Iv(r,t,e){e=e||{};var i=r.coordinateSystem,a=t.axis,n={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}n.position=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=g[s],n.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Fr(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var y=t.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-y:y,n.z2=1,n}function gm(r){return r.get("coordinateSystem")==="cartesian2d"}function ym(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,i){var a=i.replace(/Model$/,""),n=r.getReferringComponents(a,zt).models[0];t[i]=n}),t}var nh=Math.log;function _w(r,t,e){var i=wi.prototype,a=i.getTicks.call(e),n=i.getTicks.call(e,!0),o=a.length-1,s=i.getInterval.call(e),l=Vb(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=nh(r.base);u=[nh(u[0])/c,nh(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=i.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var d=i.getInterval.call(r),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=jf(d),g=u[0]+d*o;else if(h)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=jf(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=jf(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=Rt(g-m),p<0&&u[0]>=0?(p=0,g=Rt(m)):g>0&&u[1]<=0&&(g=0,p=-Rt(m))}var _=(a[0].value-n[0].value)/s,S=(a[o].value-n[o].value)/s;i.setExtent.call(r,p+d*_,g+d*S),i.setInterval.call(r,d),(_||S)&&i.setNiceExtent.call(r,p+d,g-d)}var mO=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Lv,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=at(o),u=l.length;if(!!u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,p=v.scale;Cv(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(cn(p,d),Cv(p)&&(s=v))}f.length&&(s||(s=f.pop(),cn(s.scale,s.model)),w(f,function(g){_w(g.scale,g.model,s.scale)}))}}a(i.x),a(i.y);var n={};w(i.x,function(o){mm(i,"y",o,n)}),w(i.y,function(o){mm(i,"x",o,n)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var a=t.getBoxLayoutParams(),n=!i&&t.get("containLabel"),o=ue(a,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),n&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=aE(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),_O(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}U(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,n=this._coordsList;a<n.length;a++)if(n[a].getAxis("x").index===t||n[a].getAxis("y").index===e)return n[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,i){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(t,e,i){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,i=t.xAxisModel||e&&e.getReferringComponents("xAxis",zt).models[0],a=t.yAxisModel||e&&e.getReferringComponents("yAxis",zt).models[0],n=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ot(o,s)<0&&(s=null);else if(i&&a)s=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(n){var u=n.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,i){var a=this,n=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(f,h){w(s.y,function(c,v){var d="x"+h+"y"+v,p=new pO(d);p.master=a,p.model=t,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(c)})});function u(f){return function(h,c){if(!!oh(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new yO(f,Fu(h),[0,0],h.get("type"),v),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=n,d.index=c,n._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){w(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var n=a.model.get("categorySortInfo");a.scale.setSortInfo(n)}}),t.eachSeries(function(a){if(gm(a)){var n=ym(a),o=n.xAxisModel,s=n.yAxisModel;if(!oh(o,e)||!oh(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),h=l.getAxis("y");i(u,f),i(u,h)}},this);function i(a,n){w(Ul(a,n.dim),function(o){n.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],i=[];return w(this.getCartesians(),function(a){var n=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(n);ot(e,n)<0&&e.push(n),ot(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},r.create=function(t,e){var i=[];return t.eachComponent("grid",function(a,n){var o=new r(a,t,e);o.name="grid_"+n,o.resize(a,e,!0),a.coordinateSystem=o,i.push(o)}),t.eachSeries(function(a){if(!!gm(a)){var n=ym(a),o=n.xAxisModel,s=n.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=Lv,r}();function oh(r,t){return r.getCoordSysModel()===t}function mm(r,t,e,i){e.getAxesOnZeroOf=function(){return n?[n]:[]};var a=r[t],n,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)_m(a[l])&&(n=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&_m(a[u])&&!i[f(a[u])]){n=a[u];break}n&&(i[f(n)]=!0);function f(h){return h.dim+"_"+h.index}}function _m(r){return r&&r.type!=="category"&&r.type!=="time"&&iE(r)}function _O(r,t){var e=r.getExtent(),i=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+t}:function(a){return i-a+t},r.toLocalCoord=r.dim==="x"?function(a){return a-t}:function(a){return i-a+t}}var SO=mO,vi=Math.PI,pa=function(){function r(t,e){this.group=new rt,this.opt=e,this.axisModel=t,Z(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new rt({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(t){return!!Sm[t]},r.prototype.add=function(t){Sm[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,i){var a=yc(e-t),n,o;return Co(a)?(o=i>0?"top":"bottom",n="center"):Co(a-vi)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a<vi?n=i>0?"right":"left":n=i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),Sm={axisLine:function(r,t,e,i){var a=t.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var n=t.axis.getExtent(),o=i.transform,s=[n[0],0],l=[n[1],0];o&&(Ft(s,s,o),Ft(l,l,o));var u=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new ne({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var c=t.get(["axisLine","symbolSize"]);V(h)&&(h=[h,h]),(V(c)||yt(c))&&(c=[c,c]);var v=Eu(t.get(["axisLine","symbolOffset"])||0,c),d=c[0],p=c[1];w([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(h[y]!=="none"&&h[y]!=null){var m=Ut(h[y],-d/2,-p/2,d,p,u.stroke,!0),_=g.r+g.offset;m.attr({rotation:g.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,i){var a=wO(e,i,t,r),n=CO(e,i,t,r);if(bO(t,n,a),TO(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=XE(z(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));qE(o)}},axisName:function(r,t,e,i){var a=Fr(r.axisName,t.get("name"));if(!!a){var n=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[n==="start"?u[0]-f*l:n==="end"?u[1]+f*l:(u[0]+u[1])/2,bm(n)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*vi/180);var d;bm(n)?c=pa.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=xO(r.rotation,n,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Fr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new pt({x:h[0],y:h[1],rotation:c.rotation,silent:pa.isLabelSilent(t),style:Ot(s,{text:a,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Sn({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=pa.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,nt(_).eventData=S}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function xO(r,t,e,i){var a=yc(e-r),n,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Co(a-vi/2)?(o=l?"bottom":"top",n="center"):Co(a-vi*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",a<vi*1.5&&a>vi/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function bO(r,t,e){if(!Fb(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var n=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];i===!1?(De(n),De(u)):xm(n,o)&&(i?(De(o),De(f)):(De(n),De(u))),a===!1?(De(s),De(h)):xm(l,s)&&(a?(De(l),De(c)):(De(s),De(h)))}}function De(r){r&&(r.ignore=!0)}function xm(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var a=Xo([]);return Ci(a,a,-r.rotation),e.applyTransform(wr([],a,r.getLocalTransform())),i.applyTransform(wr([],a,t.getLocalTransform())),e.intersect(i)}}function bm(r){return r==="middle"||r==="center"}function Sw(r,t,e,i,a){for(var n=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Ft(o,o,t),Ft(s,s,t));var f=new ne({subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});f.anid=a+"_"+r[l].tickValue,n.push(f)}return n}function wO(r,t,e,i){var a=e.axis,n=e.getModel("axisTick"),o=n.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=n.getModel("lineStyle"),l=i.tickDirection*n.get("length"),u=a.getTicksCoords(),f=Sw(u,t.transform,l,Z(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function TO(r,t,e,i){var a=e.axis,n=e.getModel("minorTick");if(!(!n.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(!!o.length)for(var s=n.getModel("lineStyle"),l=i*n.get("length"),u=Z(s.getLineStyle(),Z(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=Sw(o[f],t.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function CO(r,t,e,i){var a=e.axis,n=Fr(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!n||a.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Fr(i.labelRotate,o.get("rotate"))||0)*vi/180,f=pa.innerTextLayout(i.rotation,u,i.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],v=pa.isLabelSilent(e),d=e.get("triggerEvent");return w(l,function(p,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(h&&h[y]){var b=h[y];U(b)&&b.textStyle&&(S=new Tt(b.textStyle,o,e.ecModel))}var x=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(y),C=new pt({x:T,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:Ot(S,{text:m,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:q(x)?x(a.type==="category"?_:a.type==="value"?y+"":y,g):x})});if(C.anid="label_"+y,d){var A=pa.makeAxisEventDataBase(e);A.targetType="axisLabel",A.value=_,A.tickIndex=g,a.type==="category"&&(A.dataIndex=y),nt(C).eventData=A}t.add(C),C.updateTransform(),c.push(C),r.add(C),C.decomposeTransform()}),c}}var Ti=pa;function AO(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return MO(e,r,t),e.seriesInvolved&&PO(e,r),e}function MO(r,t,e){var i=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),n=a.get("link",!0)||[],o=[];w(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Vo(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",i);if(w(s.getAxes(),ft(p,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&w(d.baseAxes,ft(p,v?"cross":!0,c)),v&&w(d.otherAxes,ft(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Rv(_))){y==null&&(y=_.get("triggerTooltip")),_=g?DO(m,h,a,t,g,y):_;var b=_.get("snap"),x=Vo(m.model),T=y||b||m.type==="category",C=r.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,involveSeries:T,snap:b,useHandle:Rv(_),seriesModels:[],linkGroup:null};u[x]=C,r.seriesInvolved=r.seriesInvolved||T;var A=LO(n,m);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[x]=C,D.mapper=n[A].mapper,C.linkGroup=D}}}})}function DO(r,t,e,i,a,n){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(c){l[c]=X(o.get(c))}),l.snap=r.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!n){var h=l.lineStyle=o.get("crossStyle");h&&Z(u,h.textStyle)}}return r.model.getModel("axisPointer",new Tt(l,e,i))}function PO(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),n=e.get(["tooltip","show"],!0);!i||a==="none"||a===!1||a==="item"||n===!1||e.get(["axisPointer","show"],!0)===!1||w(r.coordSysAxesInfo[Vo(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function LO(r,t){for(var e=t.model,i=t.dim,a=0;a<r.length;a++){var n=r[a]||{};if(sh(n[i+"AxisId"],e.id)||sh(n[i+"AxisIndex"],e.componentIndex)||sh(n[i+"AxisName"],e.name))return a}}function sh(r,t){return r==="all"||N(r)&&ot(r,t)>=0||r===t}function IO(r){var t=Pd(r);if(!!t){var e=t.axisPointerModel,i=t.axis.scale,a=e.option,n=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=Rv(e);n==null&&(a.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Pd(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Vo(r)]}function RO(r){var t=Pd(r);return t&&t.axisPointerModel}function Rv(r){return!!r.get(["handle","show"])}function Vo(r){return r.type+"||"+r.id}var wm={},EO=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a,n){this.axisPointerClass&&IO(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,a,!0)},t.prototype.updateAxisPointer=function(e,i,a,n){this._doUpdateAxisPointerClass(e,a,!1)},t.prototype.remove=function(e,i){var a=this._axisPointer;a&&a.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,a){var n=t.getAxisPointerClass(this.axisPointerClass);if(!!n){var o=RO(e);o?(this._axisPointer||(this._axisPointer=new n)).render(e,o,i,a):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){wm[e]=i},t.getAxisPointerClass=function(e){return e&&wm[e]},t.type="axis",t}(Dt),as=EO,Ev=xt();function kO(r,t,e,i){var a=e.axis;if(!a.scale.isBlank()){var n=e.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:n,clamp:!0});if(!!u.length){var f=s.length,h=Ev(r).splitAreaColors,c=$(),v=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=N(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;a.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var T=u[d-1].tickValue;T!=null&&c.set(T,v),t.add(new dt({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:b,height:x},style:Z({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}Ev(r).splitAreaColors=c}}}function OO(r){Ev(r).splitAreaColors=null}var BO=["axisLine","axisTickLabel","axisName"],NO=["splitArea","splitLine","minorSplitLine"],xw=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,i,a,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rt,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Iv(s,e),u=new Ti(e,O({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(Cv(c[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));w(BO,u.add,u),this._axisGroup.add(u.getGroup()),w(NO,function(h){e.get([h,"show"])&&zO[h](this,this._axisGroup,e,s)},this);var f=n&&n.type==="changeAxisOrder"&&n.isInitSort;f||Su(o,this._axisGroup,e),r.prototype.render.call(this,e,i,a,n)}},t.prototype.remove=function(){OO(this)},t.type="cartesianAxis",t}(as),zO={splitLine:function(r,t,e,i){var a=e.axis;if(!a.scale.isBlank()){var n=e.getModel("splitLine"),o=n.getModel("lineStyle"),s=o.get("color");s=N(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=a.isHorizontal(),f=0,h=a.getTicksCoords({tickModel:n}),c=[],v=[],d=o.getLineStyle(),p=0;p<h.length;p++){var g=a.toGlobalCoord(h[p].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var y=f++%s.length,m=h[p].tickValue;t.add(new ne({anid:m!=null?"line_"+h[p].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:Z({stroke:s[y]},d),silent:!0}))}}},minorSplitLine:function(r,t,e,i){var a=e.axis,n=e.getModel("minorSplitLine"),o=n.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(!!u.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var p=a.toGlobalCoord(u[v][d].coord);l?(f[0]=p,f[1]=s.y,h[0]=p,h[1]=s.y+s.height):(f[0]=s.x,f[1]=p,h[0]=s.x+s.width,h[1]=p),t.add(new ne({anid:"minor_line_"+u[v][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0}))}},splitArea:function(r,t,e,i){kO(r,t,e,i)}},bw=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(xw),VO=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=bw.type,e}return t.type="yAxis",t}(xw),FO=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new dt({shape:e.coordinateSystem.getRect(),style:Z({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Dt),Tm={offset:0};function ww(r){r.registerComponentView(FO),r.registerComponentModel(sO),r.registerCoordinateSystem("cartesian2d",SO),zo(r,"x",Pv,Tm),zo(r,"y",Pv,Tm),r.registerComponentView(bw),r.registerComponentView(VO),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function GO(r){Gt(ww),r.registerSeriesModel(Qk),r.registerChartView(nO),r.registerLayout(Ad("scatter"))}function HO(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),i=[],a=t.coordinateSystem;if(!!a){var n=a.getIndicatorAxes();w(n,function(o,s){e.each(e.mapDimension(n[s].dim),function(l,u){i[u]=i[u]||[];var f=a.dataToPoint(l,s);i[u][s]=Cm(f)?f:Am(a)})}),e.each(function(o){var s=q_(i[o],function(l){return Cm(l)})||Am(a);i[o].push(s.slice()),e.setItemLayout(o,i[o])})}})}function Cm(r){return!isNaN(r[0])&&!isNaN(r[1])}function Am(r){return[r.cx,r.cy]}function WO(r){var t=r.polar;if(t){N(t)||(t=[t]);var e=[];w(t,function(i,a){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),r.radar=r.radar||[],N(r.radar)||(r.radar=[r.radar]),r.radar.push(i)):e.push(i)}),r.polar=e}w(r.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var $O=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a){var n=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(c,v){var d=c.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=nd(c.getItemVisual(v,"symbolSize")),g=Ut(d,-1,-1,2,2),y=c.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,v,d,p,g,y){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),bu[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,g)):_.setPosition(v[m]),d.add(_))}}function h(c){return z(c,function(v){return[n.cx,n.cy]})}s.diff(l).add(function(c){var v=s.getItemLayout(c);if(!!v){var d=new Mr,p=new He,g={shape:{points:v}};d.shape.points=h(v),p.shape.points=h(v),Qt(d,g,e,c),Qt(p,g,e,c);var y=new rt,m=new rt;y.add(p),y.add(d),y.add(m),f(p.shape.points,v,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(c)}};!m.shape.points||(f(p.shape.points,m.shape.points,y,s,c,!1),Po(g),Po(p),Mt(p,m,e),Mt(g,m,e),s.setItemGraphicEl(c,d))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,v){var d=s.getItemModel(v),p=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(c),p.useStyle(Z(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),hn(p,d,"lineStyle"),hn(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,w(["emphasis","select","blur"],function(C){var A=d.getModel([C,"areaStyle"]),D=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(C).ignore=D&&b}),g.useStyle(Z(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis"),T=x.getModel("itemStyle").getItemStyle();y.eachChild(function(C){if(C instanceof fe){var A=C.style;C.useStyle(O({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},m))}else C.useStyle(m),C.setColor(_),C.style.strokeNoScale=!0;var D=C.ensureState("emphasis");D.style=X(T);var M=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(M==null||isNaN(M))&&(M=""),Zr(C,qr(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),Si(c,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}($t),UO=$O,YO=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new pw(H(this.getData,this),H(this.getRawData,this))},t.prototype.getInitialData=function(e,i){return Md(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,i,a){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=Ix(this,e);return Cr("section",{header:u,sortBlocks:!0,blocks:z(s,function(h){var c=n.get(n.mapDimension(h.dim),e);return Cr("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:c,sortParam:c})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var i=this.getData(),a=this.coordinateSystem,n=i.getValues(z(a.dimensions,function(u){return i.mapDimension(u)}),e),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(n[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(be),XO=YO,$n=mw.value;function $s(r,t){return Z({show:t},r)}var ZO=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),i=this.get("splitNumber"),a=this.get("scale"),n=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),v=z(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=Z({color:d.color},l));var g=Q(X(d),{boundaryGap:e,splitNumber:i,scale:a,axisLine:n,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:c},!1);if(V(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else q(f)&&(g.name=f(g.name,g));var m=new Tt(g,null,this.ecModel);return Yt(m,is.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Q({lineStyle:{color:"#bbb"}},$n.axisLine),axisLabel:$s($n.axisLabel,!1),axisTick:$s($n.axisTick,!1),splitLine:$s($n.splitLine,!0),splitArea:$s($n.splitArea,!0),indicator:[]},t}(ut),qO=ZO,KO=["axisLine","axisTickLabel","axisName"],jO=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a){var n=this.group;n.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var i=e.coordinateSystem,a=i.getIndicatorAxes(),n=z(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Ti(o.model,{axisName:s,position:[i.cx,i.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});w(n,function(o){w(KO,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var i=e.coordinateSystem,a=i.getIndicatorAxes();if(!a.length)return;var n=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),c=l.get("color"),v=u.get("color"),d=N(c)?c:[c],p=N(v)?v:[v],g=[],y=[];function m(E,k,W){var B=W%k.length;return E[B]=E[B]||[],B}if(n==="circle")for(var _=a[0].getTicksCoords(),S=i.cx,b=i.cy,x=0;x<_.length;x++){if(f){var T=m(g,d,x);g[T].push(new ar({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var T=m(y,p,x);y[T].push(new Ko({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var C,A=z(a,function(E,k){var W=E.getTicksCoords();return C=C==null?W.length-1:Math.min(W.length-1,C),z(W,function(B){return i.coordToPoint(B.coord,k)})}),D=[],x=0;x<=C;x++){for(var M=[],P=0;P<a.length;P++)M.push(A[P][x]);if(M[0]&&M.push(M[0].slice()),f){var T=m(g,d,x);g[T].push(new He({shape:{points:M}}))}if(h&&D){var T=m(y,p,x-1);y[T].push(new Mr({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var L=l.getLineStyle(),I=u.getAreaStyle();w(y,function(E,k){this.group.add(Be(E,{style:Z({stroke:"none",fill:p[k%p.length]},I),silent:!0}))},this),w(g,function(E,k){this.group.add(Be(E,{style:Z({fill:"none",stroke:d[k%d.length]},L),silent:!0}))},this)},t.type="radar",t}(Dt),JO=jO,QO=function(r){R(t,r);function t(e,i,a){var n=r.call(this,e,i,a)||this;return n.type="value",n.angle=0,n.name="",n}return t}(lr),tB=QO,eB=function(){function r(t,e,i){this.dimensions=[],this._model=t,this._indicatorAxes=z(t.getIndicatorModels(),function(a,n){var o="indicator_"+n,s=new tB(o,new wi);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,i)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e],a=i.angle,n=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[n,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,a=Math.sqrt(e*e+i*i);e/=a,i/=a;for(var n=Math.atan2(-i,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(n-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(t,e){var i=t.get("center"),a=e.getWidth(),n=e.getHeight(),o=Math.min(a,n)/2;this.cx=K(i[0],a),this.cy=K(i[1],n),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(V(s)||yt(s))&&(s=[0,s]),this.r0=K(s[0],o),this.r=K(s[1],o),w(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(t,e){var i=this._indicatorAxes,a=this._model;w(i,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();w(i,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var n=a.get("splitNumber"),o=new wi;o.setExtent(0,n),o.setInterval(1),w(i,function(s,l){_w(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,i){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,i){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var i=[];return t.eachComponent("radar",function(a){var n=new r(a,t,e);i.push(n),a.coordinateSystem=n}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=i[a.get("radarIndex")||0])}),i},r.dimensions=[],r}(),rB=eB;function Tw(r){r.registerCoordinateSystem("radar",rB),r.registerComponentModel(qO),r.registerComponentView(JO),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(i){e.setItemVisual(i,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function iB(r){Gt(Tw),r.registerChartView(UO),r.registerSeriesModel(XO),r.registerLayout(HO),r.registerProcessor(cw("radar")),r.registerPreprocessor(WO)}var Mm="\0_ec_interaction_mutex";function aB(r,t,e){var i=Ld(r);i[t]=e}function nB(r,t,e){var i=Ld(r),a=i[t];a===e&&(i[t]=null)}function Dm(r,t){return!!Ld(r)[t]}function Ld(r){return r[Mm]||(r[Mm]={})}sr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Wt);var oB=function(r){R(t,r);function t(e){var i=r.call(this)||this;i._zr=e;var a=H(i._mousedownHandler,i),n=H(i._mousemoveHandler,i),o=H(i._mouseupHandler,i),s=H(i._mousewheelHandler,i),l=H(i._pinchHandler,i);return i.enable=function(u,f){this.disable(),this._opt=Z(X(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",a),e.on("mousemove",n),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},i.disable=function(){e.off("mousedown",a),e.off("mousemove",n),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},i}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(fp(e)||e.target&&e.target.draggable)){var i=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!dl("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Dm(this._zr,"globalPan"))){var i=e.offsetX,a=e.offsetY,n=this._x,o=this._y,s=i-n,l=a-o;this._x=i,this._y=a,this._opt.preventDefaultMouseMove&&Gr(e.event),Cw(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:n,oldY:o,newX:i,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){fp(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var i=dl("zoomOnMouseWheel",e,this._opt),a=dl("moveOnMouseWheel",e,this._opt),n=e.wheelDelta,o=Math.abs(n),s=e.offsetX,l=e.offsetY;if(!(n===0||!i&&!a)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;lh(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var h=Math.abs(n),c=(n>0?1:-1)*(h>3?.4:h>1?.15:.05);lh(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Dm(this._zr,"globalPan")){var i=e.pinchScale>1?1.1:1/1.1;lh(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(nr);function lh(r,t,e,i,a){r.pointerChecker&&r.pointerChecker(i,a.originX,a.originY)&&(Gr(i.event),Cw(r,t,e,i,a))}function Cw(r,t,e,i,a){a.isAvailableBehavior=H(dl,null,e,i),r.trigger(t,a)}function dl(r,t,e){var i=e[r];return!r||i&&(!V(i)||t.event[i+"Key"])}var Aw=oB;function sB(r,t,e){var i=r.target;i.x+=t,i.y+=e,i.dirty()}function lB(r,t,e,i){var a=r.target,n=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(e-a.x)*(u-1),a.y-=(i-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var uB={axisPointer:1,tooltip:1,brush:1};function Mw(r,t,e){var i=t.getComponentByElement(r.topTarget),a=i&&i.coordinateSystem;return i&&i!==e&&!uB.hasOwnProperty(i.mainType)&&a&&a.model!==e}function Dw(r){if(V(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var uh,ql={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"},Pm=at(ql),Kl={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Lm=at(Kl),fB=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var i=Dw(t);this._defsUsePending=[];var a=new rt;this._root=a;var n=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||e.width),l=parseFloat(i.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),we(i,a,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,a,n,null,!1,!1),u=u.nextSibling;cB(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var c=Hu(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(h=Lw(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var v=a;a=new rt,a.add(v),v.scaleX=v.scaleY=h.scale,v.x=h.x,v.y=h.y}return!e.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new dt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:n}},r.prototype._parseNode=function(t,e,i,a,n,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!n){var f=uh[s];if(f&&G(uh,s)){l=f.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:l};i.push(c),s==="g"&&(u=c)}else a&&i.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});e.add(l)}}var v=Im[s];if(v&&G(Im,s)){var d=v.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,i,u,n,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var i=new Mo({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Pe(e,i),we(t,i,this._defsUsePending,!1,!1),hB(i,e);var a=i.style,n=a.fontSize;n&&n<9&&(a.fontSize=9,i.scaleX*=n/9,i.scaleY*=n/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=i.getBoundingRect();return this._textX+=s.width,e.add(i),i},r.internalField=function(){uh={g:function(t,e){var i=new rt;return Pe(e,i),we(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new dt;return Pe(e,i),we(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},circle:function(t,e){var i=new ar;return Pe(e,i),we(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),i.silent=!0,i},line:function(t,e){var i=new ne;return Pe(e,i),we(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},ellipse:function(t,e){var i=new pu;return Pe(e,i),we(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},polygon:function(t,e){var i=t.getAttribute("points"),a;i&&(a=km(i));var n=new Mr({shape:{points:a||[]},silent:!0});return Pe(e,n),we(t,n,this._defsUsePending,!1,!1),n},polyline:function(t,e){var i=t.getAttribute("points"),a;i&&(a=km(i));var n=new He({shape:{points:a||[]},silent:!0});return Pe(e,n),we(t,n,this._defsUsePending,!1,!1),n},image:function(t,e){var i=new fe;return Pe(e,i),we(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},text:function(t,e){var i=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",n=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(n),this._textY=parseFloat(a)+parseFloat(o);var s=new rt;return Pe(e,s),we(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var i=t.getAttribute("x"),a=t.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),a!=null&&(this._textY=parseFloat(a));var n=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new rt;return Pe(e,s),we(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(t,e){var i=t.getAttribute("d")||"",a=SS(i);return Pe(e,a),we(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),Im={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),n=new jo(t,e,i,a);return Rm(r,n),Em(r,n),n},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),a=new Ic(t,e,i);return Rm(r,a),Em(r,a),a}};function Rm(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function Em(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var i=e.getAttribute("offset"),a=void 0;i&&i.indexOf("%")>0?a=parseInt(i,10)/100:i?a=parseFloat(i):a=0;var n={};Pw(e,n,n);var o=n.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}e=e.nextSibling}}function Pe(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Z(t.__inheritedStyle,r.__inheritedStyle))}function km(r){for(var t=Hu(r),e=[],i=0;i<t.length;i+=2){var a=parseFloat(t[i]),n=parseFloat(t[i+1]);e.push([a,n])}return e}function we(r,t,e,i,a){var n=t,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};r.nodeType===1&&(gB(r,t),Pw(r,o,s),i||yB(r,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=Om(n,"fill",o.fill,e)),o.stroke!=null&&(n.style.stroke=Om(n,"stroke",o.stroke,e)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(n.style[l]=parseFloat(o[l]))}),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(n.style[l]=o[l])}),a&&(n.__selfStyle=s),o.lineDash&&(n.style.lineDash=z(Hu(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0)}function hB(r,t){var e=t.__selfStyle;if(e){var i=e.textBaseline,a=i;!i||i==="auto"||i==="baseline"?a="alphabetic":i==="before-edge"||i==="text-before-edge"?a="top":i==="after-edge"||i==="text-after-edge"?a="bottom":(i==="central"||i==="mathematical")&&(a="middle"),r.style.textBaseline=a}var n=t.__inheritedStyle;if(n){var o=n.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var vB=/^url\(\s*#(.*?)\)/;function Om(r,t,e,i){var a=e&&e.match(vB);if(a){var n=ze(a[1]);i.push([r,t,n]);return}return e==="none"&&(e=null),e}function cB(r,t){for(var e=0;e<t.length;e++){var i=t[e];i[0].style[i[1]]=r[i[2]]}}var dB=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Hu(r){return r.match(dB)||[]}var pB=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,fh=Math.PI/180;function gB(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var i=[],a=null;e.replace(pB,function(h,c,v){return i.push(c,v),""});for(var n=i.length-1;n>0;n-=2){var o=i[n],s=i[n-1],l=Hu(o);switch(a=a||Fe(),s){case"translate":Hr(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":dc(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ci(a,a,-parseFloat(l[0])*fh);break;case"skewX":var u=Math.tan(parseFloat(l[0])*fh);wr(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*fh);wr(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var Bm=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Pw(r,t,e){var i=r.getAttribute("style");if(!!i){Bm.lastIndex=0;for(var a;(a=Bm.exec(i))!=null;){var n=a[1],o=G(ql,n)?ql[n]:null;o&&(t[o]=a[2]);var s=G(Kl,n)?Kl[n]:null;s&&(e[s]=a[2])}}}function yB(r,t,e){for(var i=0;i<Pm.length;i++){var a=Pm[i],n=r.getAttribute(a);n!=null&&(t[ql[a]]=n)}for(var i=0;i<Lm.length;i++){var a=Lm[i],n=r.getAttribute(a);n!=null&&(e[Kl[a]]=n)}}function Lw(r,t){var e=t.width/r.width,i=t.height/r.height,a=Math.min(e,i);return{scale:a,x:-(r.x+r.width/2)*a+(t.x+t.width/2),y:-(r.y+r.height/2)*a+(t.y+t.height/2)}}function mB(r,t){var e=new fB;return e.parse(r,t)}var _B=$(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),SB=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=$(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Dw(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=bB(t.named),i=e.regions,a=e.regionsMap;this._regions=i,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,i;try{e=t&&mB(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=e.root,le(i!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var a=new rt;a.add(i),a.isGeoSVGGraphicRoot=!0;var n=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,c=void 0;if(n!=null?(u=0,h=n):s&&(u=s.x,h=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var v=i.getBoundingRect();u==null&&(u=v.x,h=v.width),f==null&&(f=v.y,c=v.height)}l=this._boundingRect=new ht(u,f,h,c)}if(s){var d=Lw(s,l);i.scaleX=i.scaleY=d.scale,i.x=d.x,i.y=d.y}a.setClipPath(new dt({shape:l.plain()}));var p=[];return w(e.named,function(g){_B.get(g.svgNodeTagLower)!=null&&(p.push(g),xB(g.el))}),{root:a,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,i),i)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);i&&(e.removeKey(t),this._freedGraphics.push(i))},r}();function xB(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function bB(r){var t=[],e=$();return w(r,function(i){if(i.namedFrom==null){var a=new yE(i.name,i.el);t.push(a),e.set(i.name,a)}}),{regions:t,regionsMap:e}}var kv=[126,25],Nm="\u5357\u6D77\u8BF8\u5C9B",Ji=[[[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]]];for(var qi=0;qi<Ji.length;qi++)for(var Ga=0;Ga<Ji[qi].length;Ga++)Ji[qi][Ga][0]/=10.5,Ji[qi][Ga][1]/=-10.5/.75,Ji[qi][Ga][0]+=kv[0],Ji[qi][Ga][1]+=kv[1];function wB(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Nm)return;t.push(new Hb(Nm,z(Ji,function(i){return{type:"polygon",exterior:i}}),kv))}}var TB={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function CB(r,t){if(r==="china"){var e=TB[t.name];if(e){var i=t.getCenter();i[0]+=e[0]/10.5,i[1]+=-e[1]/(10.5/.75),t.setCenter(i)}}}var AB=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function MB(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:AB[0]})}var DB="name",PB=function(){function r(t,e,i){this.type="geoJSON",this._parsedMap=$(),this._mapName=t,this._specialAreas=i,this._geoJSON=IB(e)}return r.prototype.load=function(t,e){e=e||DB;var i=this._parsedMap.get(e);if(!i){var a=this._parseToRegions(e);i=this._parsedMap.set(e,{regions:a,boundingRect:LB(a)})}var n=$(),o=[];return w(i.regions,function(s){var l=s.name;t&&G(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:i.boundingRect||new ht(0,0,0,0),regionsMap:n}},r.prototype._parseToRegions=function(t){var e=this._mapName,i=this._geoJSON,a;try{a=i?Mv(i,t):[]}catch(n){throw new Error(`Invalid geoJson format
`+n.message)}return wB(e,a),w(a,function(n){var o=n.name;CB(e,n),MB(e,n);var s=this._specialAreas&&this._specialAreas[o];s&&n.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function LB(r){for(var t,e=0;e<r.length;e++){var i=r[e].getBoundingRect();t=t||i.clone(),t.union(i)}return t}function IB(r){return V(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Un=$(),Yr={registerMap:function(r,t,e){if(t.svg){var i=new SB(r,t.svg);Un.set(r,i)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?e=t.specialAreas:a=t;var i=new PB(r,a,e);Un.set(r,i)}},getGeoResource:function(r){return Un.get(r)},getMapForUser:function(r){var t=Un.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var i=Un.get(r);if(!!i)return i.load(t,e)}},Id=["rect","circle","line","ellipse","polygon","polyline","path"],RB=$(Id),EB=$(Id.concat(["g"])),kB=$(Id.concat(["g"])),Iw=xt();function Us(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function zm(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var OB=function(){function r(t){var e=new rt;this.uid=xn("ec_map_draw"),this._controller=new Aw(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new rt),e.add(this._svgGroup=new rt)}return r.prototype.draw=function(t,e,i,a,n){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),c=h.raw,v=h.roam,d=!u.childAt(0)||n;d?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Mt(f,v,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:i,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,i),this._updateMapSelectHandler(t,u,i,a)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=$(),i=$(),a=this._regionsGroup,n=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(v,d){return d&&(v=d(v)),v&&[v[0]*n.scaleX+n.x,v[1]*n.scaleY+n.y]}function h(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],p);y&&d.push(y)}return d}function c(v){return{shape:{points:h(v)}}}a.removeAll(),w(t.geo.regions,function(v){var d=v.name,p=e.get(d),g=i.get(d)||{},y=g.dataIdx,m=g.regionModel;p||(p=e.set(d,new rt),a.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,i.set(d,{dataIdx:y,regionModel:m}));var _=[],S=[];w(v.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=$m(C,u)),w(C,function(D){_.push(new Mr(c(D)))})}else{var A=T.points;u&&(A=$m(A,u,!0)),w(A,function(D){S.push(new He(c(D)))})}});var b=f(v.getCenter(),l&&l.project);function x(T,C){if(!!T.length){var A=new yu({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(A),Vm(t,A,y,m),Fm(t,A,d,m,o,y,b),C&&(zm(A),w(A.states,zm))}}x(_),x(S,!0)}),e.each(function(v,d){var p=i.get(d),g=p.dataIdx,y=p.regionModel;Gm(t,v,d,y,o,g),Hm(t,v,d,y,o),Wm(t,v,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,i=t.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var a=this._svgDispatcherMap=$(),n=!1;w(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,f=o.svgNodeTagLower,h=o.el,c=u?u.indexOfName(s):null,v=l.getRegionModel(s);if(RB.get(f)!=null&&h instanceof $r&&Vm(t,h,c,v),h instanceof $r&&(h.culling=!0),h.z2EmphasisLift=0,!o.namedFrom&&(kB.get(f)!=null&&Fm(t,h,s,v,l,c,null),Gm(t,h,s,v,l,c),Hm(t,h,s,v,l),EB.get(f)!=null)){var d=Wm(t,h,s,v,l);d==="self"&&(n=!0);var p=a.get(s)||a.set(s,[]);p.push(h)}},this),this._enableBlurEntireSVG(n,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var i=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=i.opacity;this._svgGraphicRecord.root.traverse(function(n){if(!n.isGroup){Mc(n);var o=n.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),n.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var i=e.coordinateSystem;if(i.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var n=a.get(t);return n?[n]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=Yr.getGeoResource(t);if(e&&e.type==="geoSVG"){var i=e.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=Yr.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,i){var a=t.coordinateSystem,n=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),n.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}n.off("pan").on("pan",function(u){this._mouseDownFlag=!1,sB(o,u.dx,u.dy),i.dispatchAction(O(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),n.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,lB(o,u.scale,u.originX,u.originY),i.dispatchAction(O(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),n.setPointerChecker(function(u,f,h){return a.containPoint([f,h])&&!Mw(u,i,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=Iw(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,i,a){var n=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){n._mouseDownFlag=!0}),e.on("click",function(o){!n._mouseDownFlag||(n._mouseDownFlag=!1)}))},r}();function Vm(r,t,e,i){var a=i.getModel("itemStyle"),n=i.getModel(["emphasis","itemStyle"]),o=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=Us(a),u=Us(n),f=Us(s),h=Us(o),c=r.data;if(c){var v=c.getItemVisual(e,"style"),d=c.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),d&&(l.decal=Fl(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=h,Mc(t)}function Fm(r,t,e,i,a,n,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),n)),f=s&&s.getItemLayout(n);if(l||u||f&&f.showLabel){var h=l?e:n,c=void 0;(!s||n>=0)&&(c=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(t,qr(i),{labelFetcher:c,labelDataIndex:h,defaultText:e},v);var d=t.getTextContent();if(d&&(Iw(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Gm(r,t,e,i,a,n){r.data?r.data.setItemGraphicEl(n,t):nt(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:e,region:i&&i.option||{}}}function Hm(r,t,e,i,a){r.data||Sn({el:t,componentModel:a,itemName:e,itemTooltipOption:i.get("tooltip")})}function Wm(r,t,e,i,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var n=i.getModel("emphasis"),o=n.get("focus");return Si(t,o,n.get("blurScope"),n.get("disabled")),r.isGeo&&jD(t,a,e),o}function $m(r,t,e){var i=[],a;function n(){a=[]}function o(){a.length&&(i.push(a),a=[])}var s=t({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),w(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),i}var Rw=OB,BB=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&n&&n.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new Rw(a);o.add(s.group),s.draw(e,i,a,this,n),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(e,i,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,i,a){var n=e.originalData,o=this.group;n.each(n.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=n.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,h=u.offset,c=new ar({style:{fill:e.getData().getVisual("style").fill},shape:{cx:f[0]+h*9,cy:f[1],r:3},silent:!0,z2:8+(h?0:sS+1)});if(!h){var v=e.mainSeries.getData(),d=n.getName(l),p=v.indexOfName(d),g=n.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(p);Zr(c,qr(g),{labelFetcher:{getFormattedLabel:function(_,S){return e.getFormattedLabel(p,S)}},defaultText:d}),c.disableLabelAnimation=!0,y.get("position")||c.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){iv(c,_)}}o.add(c)}}})},t.type="map",t}($t),NB=BB,zB=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(i){if(i!=null){var a=this.getData().getName(i),n=this.coordinateSystem,o=n.getRegion(a);return o&&n.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var i=Md(this,{coordDimensions:["value"],encodeDefaulter:ft(nx,this)}),a=$(),n=[],o=0,s=i.count();o<s;o++){var l=i.getName(o);a.set(l,!0)}var u=Yr.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return w(u.regions,function(f){var h=f.name;a.get(h)||n.push(h)}),i.appendValues([],n),i},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var i=this.getData();return i.get(i.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var i=this.getData();return i.getItemModel(i.indexOfName(e))},t.prototype.formatTooltip=function(e,i,a){for(var n=this.getData(),o=this.getRawValue(e),s=n.getName(e),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var h=l[f].originalData.indexOfName(s),c=n.mapDimension("value");isNaN(l[f].originalData.get(c,h))||u.push(l[f].name)}return Cr("section",{header:u.join(", "),noHeader:!u.length,blocks:[Cr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var i=e.icon||"roundRect",a=Ut(i,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return a.setStyle(e.itemStyle),a.style.stroke="none",i.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.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"},t}(be),VB=zB;function FB(r,t){var e={};return w(r,function(i){i.each(i.mapDimension("value"),function(a,n){var o="ec-"+i.getName(n);e[o]=e[o]||[],isNaN(a)||e[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(i,a){for(var n="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=e[n].length,f=0;f<u;f++)s=Math.min(s,e[n][f]),l=Math.max(l,e[n][f]),o+=e[n][f];var h;return t==="min"?h=s:t==="max"?h=l:t==="average"?h=o/u:h=o,u===0?NaN:h})}function GB(r){var t={};r.eachSeriesByType("map",function(e){var i=e.getHostGeoModel(),a=i?"o"+i.id:"i"+e.getMapType();(t[a]=t[a]||[]).push(e)}),w(t,function(e,i){for(var a=FB(z(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),n=0;n<e.length;n++)e[n].originalData=e[n].getData();for(var n=0;n<e.length;n++)e[n].seriesGroup=e,e[n].needsDrawMap=n===0&&!e[n].getHostGeoModel(),e[n].setData(a.cloneShallow()),e[n].mainSeries=e[0]})}function HB(r){var t={};r.eachSeriesByType("map",function(e){var i=e.getMapType();if(!(e.getHostGeoModel()||t[i])){var a={};w(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var h=l.getName(f),c=s.getRegion(h);if(!(!c||isNaN(u))){var v=a[h]||0,d=s.dataToPoint(c.getCenter());a[h]=v+1,l.setItemLayout(f,{point:d,offset:v})}})});var n=e.getData();n.each(function(o){var s=n.getName(o),l=n.getItemLayout(o)||{};l.showLabel=!a[s],n.setItemLayout(o,l)}),t[i]=!0}})}var Um=Ft,WB=function(r){R(t,r);function t(e){var i=r.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new aa,i._rawTransformable=new aa,i.name=e,i}return t.prototype.setBoundingRect=function(e,i,a,n){return this._rect=new ht(e,i,a,n),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,i,a,n){this._transformTo(e,i,a,n),this._viewRect=new ht(e,i,a,n)},t.prototype._transformTo=function(e,i,a,n){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ht(e,i,a,n));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,i){!e||(this._center=[K(e[0],i.getWidth()),K(e[1],i.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var i=this.zoomLimit;i&&(i.max!=null&&(e=Math.min(i.max,e)),i.min!=null&&(e=Math.max(i.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),i=e.x+e.width/2,a=e.y+e.height/2;return[i,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,a=this.getDefaultCenter(),n=this.getCenter(),o=this.getZoom();n=Ft([],n,e),a=Ft([],a,e),i.originX=n[0],i.originY=n[1],i.x=a[0]-n[0],i.y=a[1]-n[1],i.scaleX=i.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,i=this._rawTransformable;i.parent=e,e.updateTransform(),i.updateTransform(),ou(this.transform||(this.transform=[]),i.transform||Fe()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],ba(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,i=this._roamTransformable,a=new aa;return a.transform=i.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,i,a){var n=i?this._rawTransform:this.transform;return a=a||[],n?Um(a,e,n):Q_(a,e)},t.prototype.pointToData=function(e){var i=this.invTransform;return i?Um([],e,i):[e[0],e[1]]},t.prototype.convertToPixel=function(e,i,a){var n=Ym(i);return n===this?n.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,i,a){var n=Ym(i);return n===this?n.pointToData(a):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(aa);function Ym(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var Ew=WB,$B={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},kw=["lng","lat"],Ow=function(r){R(t,r);function t(e,i,a){var n=r.call(this,e)||this;n.dimensions=kw,n.type="geo",n._nameCoordMap=$(),n.map=i;var o=a.projection,s=Yr.load(i,a.nameMap,a.nameProperty),l=Yr.getGeoResource(i);n.resourceType=l?l.type:null;var u=n.regions=s.regions,f=$B[l.type];n._regionsMap=s.regionsMap,n.regions=s.regions,n.projection=o;var h;if(o)for(var c=0;c<u.length;c++){var v=u[c].getBoundingRect(o);h=h||v.clone(),h.union(v)}else h=s.boundingRect;return n.setBoundingRect(h.x,h.y,h.width,h.height),n.aspectScale=o?1:it(a.aspectScale,f.aspectScale),n._invertLongitute=o?!1:f.invertLongitute,n}return t.prototype._transformTo=function(e,i,a,n){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ht(e,i,a,n));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var i=this.regions,a=0;a<i.length;a++){var n=i[a];if(n.type==="geoJSON"&&n.contain(e))return i[a]}},t.prototype.addGeoCoord=function(e,i){this._nameCoordMap.set(e,i)},t.prototype.getGeoCoord=function(e){var i=this._regionsMap.get(e);return this._nameCoordMap.get(e)||i&&i.getCenter()},t.prototype.dataToPoint=function(e,i,a){if(V(e)&&(e=this.getGeoCoord(e)),e){var n=this.projection;return n&&(e=n.project(e)),e&&this.projectedToPoint(e,i,a)}},t.prototype.pointToData=function(e){var i=this.projection;return i&&(e=i.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,i,a){return r.prototype.dataToPoint.call(this,e,i,a)},t.prototype.convertToPixel=function(e,i,a){var n=Xm(i);return n===this?n.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,i,a){var n=Xm(i);return n===this?n.pointToData(a):null},t}(Ew);Yt(Ow,Ew);function Xm(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",zt).models[0]||{}).coordinateSystem:null}var Zm=Ow;function qm(r,t){var e=r.get("boundingCoords");if(e!=null){var i=e[0],a=e[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])){var n=this.projection;if(n){var o=i[0],s=i[1],l=a[0],u=a[1];i=[1/0,1/0],a=[-1/0,-1/0];var f=function(x,T,C,A){for(var D=C-x,M=A-T,P=0;P<=100;P++){var L=P/100,I=n.project([x+D*L,T+M*L]);Or(i,i,I),Br(a,a,I)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1])}}var h=this.getBoundingRect(),c=r.get("layoutCenter"),v=r.get("layoutSize"),d=t.getWidth(),p=t.getHeight(),g=h.width/h.height*this.aspectScale,y=!1,m,_;c&&v&&(m=[K(c[0],d),K(c[1],p)],_=K(v,Math.min(d,p)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=ue(b,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function UB(r,t){w(t.get("geoCoord"),function(e,i){r.addGeoCoord(i,e)})}var YB=function(){function r(){this.dimensions=kw}return r.prototype.create=function(t,e){var i=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zm(l+s,l,O({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),i.push(u),o.coordinateSystem=u,u.model=o,u.resize=qm,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=i[l]}});var n={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();n[s]=n[s]||[],n[s].push(o)}}),w(n,function(o,s){var l=z(o,function(f){return f.get("nameMap")}),u=new Zm(s,s,O({nameMap:Z_(l)},a(o[0])));u.zoomLimit=Fr.apply(null,z(o,function(f){return f.get("scaleLimit")})),i.push(u),u.resize=qm,u.resize(o[0],e),w(o,function(f){f.coordinateSystem=u,UB(u,f)})}),i},r.prototype.getFilledRegions=function(t,e,i,a){for(var n=(t||[]).slice(),o=$(),s=0;s<n.length;s++)o.set(n[s].name,n[s]);var l=Yr.load(e,i,a);return w(l.regions,function(u){var f=u.name;!o.get(f)&&n.push({name:f})}),n},r}(),XB=new YB,Bw=XB,ZB=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i,a){var n=Yr.getGeoResource(e.map);if(n&&n.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,a),Ml(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,i=this.option;i.regions=Bw.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var a={};this._optionModelMap=Ve(i.regions||[],function(n,o){var s=o.name;return s&&(n.set(s,new Tt(o,e,e.ecModel)),o.selected&&(a[s]=!0)),n},$()),i.selectedMap||(i.selectedMap=a)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Tt(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,i){var a=this.getRegionModel(e),n=i==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:e};if(q(n))return o.status=i,n(o);if(V(n))return n.replace("{a}",e!=null?e:"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var i=this.option,a=i.selectedMode;if(!!a){a!=="multiple"&&(i.selectedMap=null);var n=i.selectedMap||(i.selectedMap={});n[e]=!0}},t.prototype.unSelect=function(e){var i=this.option.selectedMap;i&&(i[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var i=this.option.selectedMap;return!!(i&&i[e])},t.type="geo",t.layoutMode="box",t.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:[]},t}(ut),qB=ZB;function Km(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function KB(r,t,e,i){var a=r.getZoom(),n=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(Km(r,s),i)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}r.scaleX*=o,r.scaleY*=o;var f=(t.originX-r.x)*(o-1),h=(t.originY-r.y)*(o-1);r.x-=f,r.y-=h,r.updateTransform(),r.setCenter(Km(r,s),i),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var jB=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,i){this._api=i},t.prototype.render=function(e,i,a,n){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Rw(a));var o=this._mapDraw;o.draw(e,i,a,this,n),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,i,a)},t.prototype._handleRegionClick=function(e){var i;ja(e.target,function(a){return(i=nt(a).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},t.prototype.updateSelectStatus=function(e,i,a){var n=this;this._mapDraw.group.traverse(function(o){var s=nt(o).eventData;if(s)return n._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Dt),JB=jB;function QB(r,t,e){Yr.registerMap(r,t,e)}function tN(r){r.registerCoordinateSystem("geo",Bw),r.registerComponentModel(qB),r.registerComponentView(JB),r.registerImpl("registerMap",QB),r.registerImpl("getMap",function(e){return Yr.getMapForUser(e)});function t(e,i){i.update="geo:updateSelectStatus",r.registerAction(i,function(a,n){var o={},s=[];return n.eachComponent({mainType:"geo",query:a},function(l){l[e](a.name);var u=l.coordinateSystem;w(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var f=[];w(o,function(h,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,i,a){var n=e.componentType||"series";i.eachComponent({mainType:n,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=KB(s,e,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),n==="series"&&w(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function eN(r){Gt(tN),r.registerChartView(NB),r.registerSeriesModel(VB),r.registerLayout(HB),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,GB),Wx("map",r.registerAction)}var Fo=w,rN=U,jl=-1,Rd=function(){function r(t){var e=t.mappingMethod,i=t.type,a=this.option=X(t);this.type=i,this.mappingMethod=e,this._normalizeData=nN[e];var n=r.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[e],e==="piecewise"?(hh(a),iN(a)):e==="category"?a.categories?aN(a):hh(a,!0):(le(e!=="linear"||a.dataExtent),hh(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return H(this._normalizeData,this)},r.listVisualTypes=function(){return at(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,i){U(t)?w(t,e,i):e.call(i,t)},r.mapVisual=function(t,e,i){var a,n=N(t)?[]:U(t)?{}:(a=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(i,o,s);a?n=l:n[s]=l}),n},r.retrieveVisuals=function(t){var e={},i;return t&&Fo(r.visualHandlers,function(a,n){t.hasOwnProperty(n)&&(e[n]=t[n],i=!0)}),i?e:null},r.prepareVisualTypes=function(t){if(N(t))t=t.slice();else if(rN(t)){var e=[];Fo(t,function(i,a){e.push(a)}),t=e}else return[];return t.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,i){for(var a,n=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||V(l)&&l===t+"")return o;i&&c(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,h=u.close;if(f){if(f[0]===-1/0){if(Xs(h[1],t,f[1]))return o}else if(f[1]===1/0){if(Xs(h[0],f[0],t))return o}else if(Xs(h[0],f[0],t)&&Xs(h[1],t,f[1]))return o;i&&c(f[0],o),i&&c(f[1],o)}}if(i)return t===1/0?e.length-1:t===-1/0?0:a;function c(v,d){var p=Math.abs(v-t);p<n&&(n=p,a=d)}},r.visualHandlers={color:{applyVisual:Yn("color"),getColorMapper:function(){var t=this.option;return H(t.mappingMethod==="category"?function(e,i){return!i&&(e=this._normalizeData(e)),ao.call(this,e)}:function(e,i,a){var n=!!a;return!i&&(e=this._normalizeData(e)),a=so(e,t.parsedVisual,a),n?a:er(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return er(so(t,this.option.parsedVisual),"rgba")},category:ao,piecewise:function(t,e){var i=Bv.call(this,e);return i==null&&(i=er(so(t,this.option.parsedVisual),"rgba")),i},fixed:Qi}},colorHue:Ys(function(t,e){return il(t,e)}),colorSaturation:Ys(function(t,e){return il(t,null,e)}),colorLightness:Ys(function(t,e){return il(t,null,null,e)}),colorAlpha:Ys(function(t,e){return _1(t,e)}),decal:{applyVisual:Yn("decal"),_normalizedToVisual:{linear:null,category:ao,piecewise:null,fixed:null}},opacity:{applyVisual:Yn("opacity"),_normalizedToVisual:Ov([0,1])},liftZ:{applyVisual:Yn("liftZ"),_normalizedToVisual:{linear:Qi,category:Qi,piecewise:Qi,fixed:Qi}},symbol:{applyVisual:function(t,e,i){var a=this.mapValueToVisual(t);i("symbol",a)},_normalizedToVisual:{linear:jm,category:ao,piecewise:function(t,e){var i=Bv.call(this,e);return i==null&&(i=jm.call(this,t)),i},fixed:Qi}},symbolSize:{applyVisual:Yn("symbolSize"),_normalizedToVisual:Ov([0,1])}},r}();function iN(r){var t=r.pieceList;r.hasSpecialVisual=!1,w(t,function(e,i){e.originIndex=i,e.visual!=null&&(r.hasSpecialVisual=!0)})}function aN(r){var t=r.categories,e=r.categoryMap={},i=r.visual;if(Fo(t,function(o,s){e[o]=s}),!N(i)){var a=[];U(i)?Fo(i,function(o,s){var l=e[s];a[l!=null?l:jl]=o}):a[jl]=i,i=Nw(r,a)}for(var n=t.length-1;n>=0;n--)i[n]==null&&(delete e[t[n]],t.pop())}function hh(r,t){var e=r.visual,i=[];U(e)?Fo(e,function(n){i.push(n)}):e!=null&&i.push(e);var a={color:1,symbol:1};!t&&i.length===1&&!a.hasOwnProperty(r.type)&&(i[1]=i[0]),Nw(r,i)}function Ys(r){return{applyVisual:function(t,e,i){var a=this.mapValueToVisual(t);i("color",r(e("color"),a))},_normalizedToVisual:Ov([0,1])}}function jm(r){var t=this.option.visual;return t[Math.round(bt(r,[0,1],[0,t.length-1],!0))]||{}}function Yn(r){return function(t,e,i){i(r,this.mapValueToVisual(t))}}function ao(r){var t=this.option.visual;return t[this.option.loop&&r!==jl?r%t.length:r]}function Qi(){return this.option.visual[0]}function Ov(r){return{linear:function(t){return bt(t,r,this.option.visual,!0)},category:ao,piecewise:function(t,e){var i=Bv.call(this,e);return i==null&&(i=bt(t,r,this.option.visual,!0)),i},fixed:Qi}}function Bv(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var i=Rd.findPieceIndex(r,e),a=e[i];if(a&&a.visual)return a.visual[this.type]}}function Nw(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=z(t,function(e){var i=oe(e);return i||[0,0,0,1]})),t}var nN={linear:function(r){return bt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Rd.findPieceIndex(r,t,!0);if(e!=null)return bt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?jl:t},fixed:Wt};function Xs(r,t,e){return r?t<=e:t<e}var se=Rd;function oN(r){sN(r),lN(r)}function sN(r){if(!r.parallel){var t=!1;w(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function lN(r){var t=At(r.parallelAxis);w(t,function(e){if(!!U(e)){var i=e.parallelIndex||0,a=At(r.parallel)[i];a&&a.parallelAxisDefault&&Q(e,a.parallelAxisDefault,!1)}})}var uN=5,fN=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a){this._model=e,this._api=a,this._handlers||(this._handlers={},w(hN,function(n,o){a.getZr().on(o,this._handlers[o]=H(n,this))},this)),ts(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,i){ko(this,"_throttledDispatchExpand"),w(this._handlers,function(a,n){i.getZr().off(n,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(O({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Dt),hN={mousedown:function(r){vh(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(vh(this,"click")&&t){var e=[r.offsetX,r.offsetY],i=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(i>uN)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!vh(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=e.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function vh(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var vN=fN,cN=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var i=this.option;e&&Q(i,e,!0),this._initDimensions()},t.prototype.contains=function(e,i){var a=e.get("parallelIndex");return a!=null&&i.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){w(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){e.hasOwnProperty(i)&&(this.option[i]=e[i])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],i=this.parallelAxisIndex=[],a=Ct(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);w(a,function(n){e.push("dim"+n.get("dim")),i.push(n.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(ut),dN=cN,pN=function(r){R(t,r);function t(e,i,a,n,o){var s=r.call(this,e,i,a)||this;return s.type=n||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(lr),gN=pN;function Ca(r,t,e,i,a,n){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=Ha(a,[0,o])),n!=null&&(n=Math.max(n,a!=null?a:0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=Ha(s,[0,o]),a=n=Ha(s,[a,n]),i=0}t[0]=Ha(t[0],e),t[1]=Ha(t[1],e);var l=ch(t,i);t[i]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[i]=Ha(t[i],f);var h;return h=ch(t,i),a!=null&&(h.sign!==l.sign||h.span<a)&&(t[1-i]=t[i]+l.sign*a),h=ch(t,i),n!=null&&h.span>n&&(t[1-i]=t[i]+h.sign*n),t}function ch(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Ha(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var dh=w,zw=Math.min,Vw=Math.max,Jm=Math.floor,yN=Math.ceil,Qm=Rt,mN=Math.PI,_N=function(){function r(t,e,i){this.type="parallel",this._axesMap=$(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,i)}return r.prototype._init=function(t,e,i){var a=t.dimensions,n=t.parallelAxisIndex;dh(a,function(o,s){var l=n[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new gN(o,Fu(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),i=e.axisBase,a=e.layoutBase,n=e.pixelDimIndex,o=t[1-n],s=t[n];return o>=i&&o<=i+e.axisLength&&s>=a&&s<=a+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(i){if(!!t.contains(i,e)){var a=i.getData();dh(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(a,a.mapDimension(n)),cn(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=ue(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,i=["x","y"],a=["width","height"],n=t.get("layout"),o=n==="horizontal"?0:1,s=e[a[o]],l=[0,s],u=this.dimensions.length,f=Zs(t.get("axisExpandWidth"),l),h=Zs(t.get("axisExpandCount")||0,[0,u]),c=t.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,v=t.get("axisExpandWindow"),d;if(v)d=Zs(v[1]-v[0],l),v[1]=v[0]+d;else{d=Zs(f*(h-1),l);var p=t.get("axisExpandCenter")||Jm(u/2);v=[f*p-d/2],v[1]=v[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var y=[Jm(Qm(v[0]/f,1))+1,yN(Qm(v[1]/f,1))-1],m=g/f*v[0];return{layout:n,pixelDimIndex:o,layoutBase:e[i[o]],layoutLength:s,axisBase:e[i[1-o]],axisLength:e[a[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,i=this.dimensions,a=this._makeLayoutInfo(),n=a.layout;e.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),dh(i,function(o,s){var l=(a.axisExpandable?xN:SN)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:mN/2,vertical:0},h=[u[n].x+t.x,u[n].y+t.y],c=f[n],v=Fe();Ci(v,v,c),Hr(v,v,h),this._axesLayout[o]={position:h,rotation:c,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,i,a){i==null&&(i=0),a==null&&(a=t.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];w(o,function(g){s.push(t.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),f=i;f<a;f++){var h=void 0;if(!u)h="normal";else{h="active";for(var c=t.getValues(s,f),v=0,d=o.length;v<d;v++){var p=l[v].getActiveState(c[v]);if(p==="inactive"){h="inactive";break}}}e(h,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,i=!1,a=0,n=t.length;a<n;a++)e.get(t[a]).model.getActiveState()!=="normal"&&(i=!0);return i},r.prototype.axisCoordToPoint=function(t,e){var i=this._axesLayout[e];return rr([t,0],i.transform)},r.prototype.getAxisLayout=function(t){return X(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,a=e.axisExpandWindow.slice(),n=a[1]-a[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[i]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),c=h[0]!=null;if(f)c&&f&&s<n*h[0]?(u="jump",l=s-n*h[2]):c&&f&&s>n*(1-h[0])?(u="jump",l=s-n*(1-h[2])):(l=s-n*h[1])>=0&&(l=s-n*(1-h[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Ca(l,a,o,"all"):u="none";else{var v=a[1]-a[0],d=o[1]*s/v;a=[Vw(0,d-v/2)],a[1]=zw(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function Zs(r,t){return zw(Vw(r,t[0]),t[1])}function SN(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function xN(r,t){var e=t.layoutLength,i=t.axisExpandWidth,a=t.axisCount,n=t.axisCollapseWidth,o=t.winInnerIndices,s,l=n,u=!1,f;return r<o[0]?(s=r*n,f=n):r<=o[1]?(s=t.axisExpandWindow0Pos+r*i-t.axisExpandWindow[0],l=i,u=!0):(s=e-(a-1-r)*n,f=n),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}var bN=_N;function wN(r,t){var e=[];return r.eachComponent("parallel",function(i,a){var n=new bN(i,r,t);n.name="parallel_"+a,n.resize(i,t),i.coordinateSystem=n,n.model=i,e.push(n)}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="parallel"){var a=i.getReferringComponents("parallel",zt).models[0];i.coordinateSystem=a.coordinateSystem}}),e}var TN={create:wN},CN=TN,Fw=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return ln([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var i=this.activeIntervals=X(e);if(i)for(var a=i.length-1;a>=0;a--)_r(i[a])},t.prototype.getActiveState=function(e){var i=this.activeIntervals;if(!i.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(i.length===1){var a=i[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var n=0,o=i.length;n<o;n++)if(i[n][0]<=e&&e<=i[n][1])return"active";return"inactive"},t}(ut);Yt(Fw,is);var t0=Fw,_a=!0,Go=Math.min,dn=Math.max,AN=Math.pow,MN=1e4,DN=6,PN=6,e0="globalPan",LN={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},IN={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},r0={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},RN=0,EN=function(r){R(t,r);function t(e){var i=r.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=e,i.group=new rt,i._uid="brushController_"+RN++,w(FN,function(a,n){this._handlers[n]=H(a,this)},i),i}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var i=this._zr;this._enableGlobalPan||aB(i,e0,this._uid),w(this._handlers,function(a,n){i.on(n,a)}),this._brushType=e.brushType,this._brushOption=Q(X(r0),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;nB(e,e0,this._uid),w(this._handlers,function(i,a){e.off(a,i)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var i=this._panels={};w(e,function(a){i[a.panelId]=X(a)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=i.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=z(e,function(c){return Q(X(r0),c,!0)});var i="\0-brush-index-",a=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new gd(a,e,u,l).add(f).update(f).remove(h).execute(),this;function l(c,v){return(c.id!=null?c.id:i+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&a[v]===s)n[c]=a[v];else{var p=n[c]=v!=null?(a[v].__brushOption=d,a[v]):Hw(o,Gw(o,d));Ed(o,p)}}function h(c){a[c]!==s&&o.group.remove(a[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),Nv(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(nr);function Gw(r,t){var e=Wu[t.brushType].createCover(r,t);return e.__brushOption=t,$w(e,t),r.group.add(e),e}function Hw(r,t){var e=kd(t);return e.endCreating&&(e.endCreating(r,t),$w(t,t.__brushOption)),t}function Ww(r,t){var e=t.__brushOption;kd(t).updateCoverShape(r,t,e.range,e)}function $w(r,t){var e=t.z;e==null&&(e=MN),r.traverse(function(i){i.z=e,i.z2=e})}function Ed(r,t){kd(t).updateCommon(r,t),Ww(r,t)}function kd(r){return Wu[r.__brushOption.brushType]}function Od(r,t,e){var i=r._panels;if(!i)return _a;var a,n=r._transform;return w(i,function(o){o.isTargetByCursor(t,e,n)&&(a=o)}),a}function Uw(r,t){var e=r._panels;if(!e)return _a;var i=t.__brushOption.panelId;return i!=null?e[i]:_a}function Nv(r){var t=r._covers,e=t.length;return w(t,function(i){r.group.remove(i)},r),t.length=0,!!e}function Sa(r,t){var e=z(r._covers,function(i){var a=i.__brushOption,n=X(a.range);return{brushType:a.brushType,panelId:a.panelId,range:n}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function kN(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],i=t[0],a=e[0]-i[0],n=e[1]-i[1],o=AN(a*a+n*n,.5);return o>DN}function Yw(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function Xw(r,t,e,i){var a=new rt;return a.add(new dt({name:"main",style:Bd(e),silent:!0,draggable:!0,cursor:"move",drift:ft(i0,r,t,a,["n","s","w","e"]),ondragend:ft(Sa,t,{isEnd:!0})})),w(i,function(n){a.add(new dt({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ft(i0,r,t,a,n),ondragend:ft(Sa,t,{isEnd:!0})}))}),a}function Zw(r,t,e,i){var a=i.brushStyle.lineWidth||0,n=dn(a,PN),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],h=e[1][1],c=f-n+a/2,v=h-n+a/2,d=f-o,p=h-s,g=d+a,y=p+a;Rr(r,t,"main",o,s,d,p),i.transformable&&(Rr(r,t,"w",l,u,n,y),Rr(r,t,"e",c,u,n,y),Rr(r,t,"n",l,u,g,n),Rr(r,t,"s",l,v,g,n),Rr(r,t,"nw",l,u,n,n),Rr(r,t,"ne",c,u,n,n),Rr(r,t,"sw",l,v,n,n),Rr(r,t,"se",c,v,n,n))}function zv(r,t){var e=t.__brushOption,i=e.transformable,a=t.childAt(0);a.useStyle(Bd(e)),a.attr({silent:!i,cursor:i?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=t.childOfName(n.join("")),s=n.length===1?Vv(r,n[0]):BN(r,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?IN[s]+"-resize":null})})}function Rr(r,t,e,i,a,n,o){var s=t.childOfName(e);s&&s.setShape(zN(Nd(r,t,[[i,a],[i+n,a+o]])))}function Bd(r){return Z({strokeNoScale:!0},r.brushStyle)}function qw(r,t,e,i){var a=[Go(r,e),Go(t,i)],n=[dn(r,e),dn(t,i)];return[[a[0],n[0]],[a[1],n[1]]]}function ON(r){return gi(r.group)}function Vv(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=_u(e[t],ON(r));return i[a]}function BN(r,t){var e=[Vv(r,t[0]),Vv(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function i0(r,t,e,i,a,n){var o=e.__brushOption,s=r.toRectRange(o.range),l=Kw(t,a,n);w(i,function(u){var f=LN[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(qw(s[0][0],s[1][0],s[0][1],s[1][1])),Ed(t,e),Sa(t,{isEnd:!1})}function NN(r,t,e,i){var a=t.__brushOption.range,n=Kw(r,e,i);w(a,function(o){o[0]+=n[0],o[1]+=n[1]}),Ed(r,t),Sa(r,{isEnd:!1})}function Kw(r,t,e){var i=r.group,a=i.transformCoordToLocal(t,e),n=i.transformCoordToLocal(0,0);return[a[0]-n[0],a[1]-n[1]]}function Nd(r,t,e){var i=Uw(r,t);return i&&i!==_a?i.clipPath(e,r._transform):X(e)}function zN(r){var t=Go(r[0][0],r[1][0]),e=Go(r[0][1],r[1][1]),i=dn(r[0][0],r[1][0]),a=dn(r[0][1],r[1][1]);return{x:t,y:e,width:i-t,height:a-e}}function VN(r,t,e){if(!(!r._brushType||GN(r,t.offsetX,t.offsetY))){var i=r._zr,a=r._covers,n=Od(r,t,e);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(n&&(n===_a||s.panelId===n.panelId)&&Wu[s.brushType].contain(a[o],e[0],e[1]))return}n&&i.setCursorStyle("crosshair")}}function Fv(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Gv(r,t,e){return r.childOfName("main").contain(t,e)}function jw(r,t,e,i){var a=r._creatingCover,n=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),kN(r)||a){if(n&&!a){o.brushMode==="single"&&Nv(r);var l=X(o);l.brushType=a0(l.brushType,n),l.panelId=n===_a?null:n.panelId,a=r._creatingCover=Gw(r,l),r._covers.push(a)}if(a){var u=Wu[a0(r._brushType,n)],f=a.__brushOption;f.range=u.getCreatingRange(Nd(r,a,r._track)),i&&(Hw(r,a),u.updateCommon(r,a)),Ww(r,a),s={isEnd:i}}}else i&&o.brushMode==="single"&&o.removeOnClick&&Od(r,t,e)&&Nv(r)&&(s={isEnd:i,removeOnClick:!0});return s}function a0(r,t){return r==="auto"?t.defaultBrushType:r}var FN={mousedown:function(r){if(this._dragging)n0(this,r);else if(!r.target||!r.target.draggable){Fv(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Od(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,i=this.group.transformCoordToLocal(t,e);if(VN(this,r,i),this._dragging){Fv(r);var a=jw(this,r,i,!1);a&&Sa(this,a)}},mouseup:function(r){n0(this,r)}};function n0(r,t){if(r._dragging){Fv(t);var e=t.offsetX,i=t.offsetY,a=r.group.transformCoordToLocal(e,i),n=jw(r,t,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,n&&Sa(r,n)}}function GN(r,t,e){var i=r._zr;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Wu={lineX:o0(0),lineY:o0(1),rect:{createCover:function(r,t){function e(i){return i}return Xw({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Yw(r);return qw(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,i){Zw(r,t,e,i)},updateCommon:zv,contain:Gv},polygon:{createCover:function(r,t){var e=new rt;return e.add(new He({name:"main",style:Bd(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Mr({name:"main",draggable:!0,drift:ft(NN,r,t),ondragend:ft(Sa,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,i){t.childAt(0).setShape({points:Nd(r,t,e)})},updateCommon:zv,contain:Gv}};function o0(r){return{createCover:function(t,e){return Xw({toRectRange:function(i){var a=[i,[0,100]];return r&&a.reverse(),a},fromRectRange:function(i){return i[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Yw(t),i=Go(e[0][r],e[1][r]),a=dn(e[0][r],e[1][r]);return[i,a]},updateCoverShape:function(t,e,i,a){var n,o=Uw(t,e);if(o!==_a&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=t._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,n];r&&l.reverse(),Zw(t,e,l,a)},updateCommon:zv,contain:Gv}}var Jw=EN;function Qw(r){return r=zd(r),function(t){return Nc(t,r)}}function tT(r,t){return r=zd(r),function(e){var i=t!=null?t:e,a=i?r.width:r.height,n=i?r.x:r.y;return[n,n+(a||0)]}}function eT(r,t,e){var i=zd(r);return function(a,n){return i.contain(n[0],n[1])&&!Mw(a,t,e)}}function zd(r){return ht.create(r)}var HN=["axisLine","axisTickLabel","axisName"],WN=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){r.prototype.init.apply(this,arguments),(this._brushController=new Jw(i.getZr())).on("brush",H(this._onBrush,this))},t.prototype.render=function(e,i,a,n){if(!$N(e,i,n)){this.axisModel=e,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rt,this.group.add(this._axisGroup),!!e.get("show")){var s=YN(e,i),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,h=e.axis.dim,c=l.getAxisLayout(h),v=O({strokeContainThreshold:f},c),d=new Ti(e,v);w(HN,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(v,u,e,s,f,a),Su(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,i,a,n,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=ht.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Qw(h),isTargetByCursor:eT(h,s,n),getLinearBrushOtherExtent:tT(h,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(UN(a))},t.prototype._onBrush=function(e){var i=e.areas,a=this.axisModel,n=a.axis,o=z(i,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Dt);function $N(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function UN(r){var t=r.axis;return z(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function YN(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var XN=WN,ZN={type:"axisAreaSelect",event:"axisAreaSelected"};function qN(r){r.registerAction(ZN,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(i){i.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(i){i.setAxisExpand(t)})})}var KN={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function jN(r){r.registerComponentView(vN),r.registerComponentModel(dN),r.registerCoordinateSystem("parallel",CN),r.registerPreprocessor(oN),r.registerComponentModel(t0),r.registerComponentView(XN),zo(r,"parallel",t0,KN),qN(r)}var JN=["itemStyle","borderWidth"],s0=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],ph=new ar,QN=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a){var n=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:s0[+f],categoryDim:s0[1-+f]};return o.diff(s).add(function(v){if(!!o.hasValue(v)){var d=u0(o,v),p=l0(o,v,d,c),g=f0(o,c,p);o.setItemGraphicEl(v,g),n.add(g),v0(g,c,p)}}).update(function(v,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(v)){n.remove(p);return}var g=u0(o,v),y=l0(o,v,g,c),m=sT(o,y);p&&m!==p.__pictorialShapeStr&&(n.remove(p),o.setItemGraphicEl(v,null),p=null),p?o5(p,c,y):p=f0(o,c,y,!0),o.setItemGraphicEl(v,p),p.__pictorialSymbolMeta=y,n.add(p),v0(p,c,y)}).remove(function(v){var d=s.getItemGraphicEl(v);d&&h0(s,v,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},t.prototype.remove=function(e,i){var a=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl(function(o){h0(n,nt(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}($t);function l0(r,t,e,i){var a=r.getItemLayout(t),n=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),c={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};t5(e,n,a,i,c),e5(r,t,a,n,o,c.boundingLength,c.pxSign,f,i,c),r5(e,c.symbolScale,u,i,c);var v=c.symbolSize,d=Eu(e.get("symbolOffset"),v);return i5(e,v,a,n,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function t5(r,t,e,i,a){var n=i.valueDim,o=r.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[n.wh]<=0),f;if(N(o)){var h=[gh(s,o[0])-l,gh(s,o[1])-l];h[1]<h[0]&&h.reverse(),f=h[u]}else o!=null?f=gh(s,o)-l:t?f=i.coordSysExtent[n.index][u]-l:f=e[n.wh];a.boundingLength=f,t&&(a.repeatCutLength=e[n.wh]),a.pxSign=f>0?1:-1}function gh(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function e5(r,t,e,i,a,n,o,s,l,u){var f=l.valueDim,h=l.categoryDim,c=Math.abs(e[h.wh]),v=r.getItemVisual(t,"symbolSize"),d;N(v)?d=v.slice():v==null?d=["100%","100%"]:d=[v,v],d[h.index]=K(d[h.index],c),d[f.index]=K(d[f.index],i?c:Math.abs(n)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function r5(r,t,e,i,a){var n=r.get(JN)||0;n&&(ph.attr({scaleX:t[0],scaleY:t[1],rotation:e}),ph.updateTransform(),n/=ph.getLineScale(),n*=t[i.valueDim.index]),a.valueLineWidth=n||0}function i5(r,t,e,i,a,n,o,s,l,u,f,h){var c=f.categoryDim,v=f.valueDim,d=h.pxSign,p=Math.max(t[v.index]+s,0),g=p;if(i){var y=Math.abs(l),m=Fr(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=K(m,t[v.index]),b=Math.max(p+S*2,0),x=_?0:S*2,T=_c(i),C=T?i:c0((y+x)/b),A=y-C*p;S=A/2/(_?C:Math.max(C-1,1)),b=p+S*2,x=_?0:S*2,!T&&i!=="fixed"&&(C=u?c0((Math.abs(u)+x)/b):0),g=C*b-x,h.repeatTimes=C,h.symbolMargin=S}var D=d*(g/2),M=h.pathPosition=[];M[c.index]=e[c.wh]/2,M[v.index]=o==="start"?D:o==="end"?l-D:l/2,n&&(M[0]+=n[0],M[1]+=n[1]);var P=h.bundlePosition=[];P[c.index]=e[c.xy],P[v.index]=e[v.xy];var L=h.barRectShape=O({},e);L[v.wh]=d*Math.max(Math.abs(e[v.wh]),Math.abs(M[v.index]+D)),L[c.wh]=e[c.wh];var I=h.clipShape={};I[c.xy]=-e[c.xy],I[c.wh]=f.ecSize[c.wh],I[v.xy]=0,I[v.wh]=e[v.wh]}function rT(r){var t=r.symbolPatternSize,e=Ut(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function iT(r,t,e,i){var a=r.__pictorialBundle,n=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,h=n[t.valueDim.index]+o+e.symbolMargin*2;for(Vd(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?an(p,null,d(f),e,i):an(p,null,{scaleX:0,scaleY:0},e,i,function(){a.remove(p)}),f++});f<u;f++){var c=rT(e);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,a.add(c);var v=d(f);an(c,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},e,i)}function d(p){var g=s.slice(),y=e.pxSign,m=p;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function aT(r,t,e,i){var a=r.__pictorialBundle,n=r.__pictorialMainPath;n?an(n,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,i):(n=r.__pictorialMainPath=rT(e),a.add(n),an(n,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,i))}function nT(r,t,e){var i=O({},t.barRectShape),a=r.__pictorialBarRect;a?an(a,null,{shape:i},t,e):(a=r.__pictorialBarRect=new dt({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function oT(r,t,e,i){if(e.symbolClip){var a=r.__pictorialClipPath,n=O({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)Mt(a,{shape:n},s,l);else{n[o.wh]=0,a=new dt({shape:n}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],bu[i?"updateProps":"initProps"](a,{shape:u},s,l)}}}function u0(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=a5,e.isAnimationEnabled=n5,e}function a5(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function n5(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function f0(r,t,e,i){var a=new rt,n=new rt;return a.add(n),a.__pictorialBundle=n,n.x=e.bundlePosition[0],n.y=e.bundlePosition[1],e.symbolRepeat?iT(a,t,e):aT(a,t,e),nT(a,e,i),oT(a,t,e,i),a.__pictorialShapeStr=sT(r,e),a.__pictorialSymbolMeta=e,a}function o5(r,t,e){var i=e.animationModel,a=e.dataIndex,n=r.__pictorialBundle;Mt(n,{x:e.bundlePosition[0],y:e.bundlePosition[1]},i,a),e.symbolRepeat?iT(r,t,e,!0):aT(r,t,e,!0),nT(r,e,!0),oT(r,t,e,!0)}function h0(r,t,e,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var n=[];Vd(i,function(o){n.push(o)}),i.__pictorialMainPath&&n.push(i.__pictorialMainPath),i.__pictorialClipPath&&(e=null),w(n,function(o){Do(o,{scaleX:0,scaleY:0},e,t,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(t,null)}function sT(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Vd(r,t,e){w(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&t.call(e,i)})}function an(r,t,e,i,a,n){t&&r.attr(t),i.symbolClip&&!a?e&&r.attr(e):e&&bu[a?"updateProps":"initProps"](r,e,i.animationModel,i.dataIndex,n)}function v0(r,t,e){var i=e.dataIndex,a=e.itemModel,n=a.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=n.get("focus"),h=n.get("blurScope"),c=n.get("scale");Vd(r,function(p){if(p instanceof fe){var g=p.style;p.useStyle(O({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,c&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;Zr(d,qr(a),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:Gu(t.seriesModel.getData(),i),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),Si(r,f,h,n.get("disabled"))}function c0(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var s5=QN,l5=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ai(Zl.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Zl),u5=l5;function f5(r){r.registerChartView(s5),r.registerSeriesModel(u5),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ft(Ib,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Rb("pictorialBar"))}function h5(r,t,e,i){return r&&(r.legacy||r.legacy!==!1&&!e&&!i&&t!=="tspan"&&(t==="text"||G(r,"text")))}function v5(r,t,e){var i=r,a,n,o;if(t==="text")o=i;else{o={},G(i,"text")&&(o.text=i.text),G(i,"rich")&&(o.rich=i.rich),G(i,"textFill")&&(o.fill=i.textFill),G(i,"textStroke")&&(o.stroke=i.textStroke),G(i,"fontFamily")&&(o.fontFamily=i.fontFamily),G(i,"fontSize")&&(o.fontSize=i.fontSize),G(i,"fontStyle")&&(o.fontStyle=i.fontStyle),G(i,"fontWeight")&&(o.fontWeight=i.fontWeight),n={type:"text",style:o,silent:!0},a={};var s=G(i,"textPosition");e?a.position=s?i.textPosition:"inside":s&&(a.position=i.textPosition),G(i,"textPosition")&&(a.position=i.textPosition),G(i,"textOffset")&&(a.offset=i.textOffset),G(i,"textRotation")&&(a.rotation=i.textRotation),G(i,"textDistance")&&(a.distance=i.textDistance)}return d0(o,r),w(o.rich,function(l){d0(l,l)}),{textConfig:a,textContent:n}}function d0(r,t){!t||(t.font=t.textFont||t.font,G(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),G(t,"textAlign")&&(r.align=t.textAlign),G(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),G(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),G(t,"textWidth")&&(r.width=t.textWidth),G(t,"textHeight")&&(r.height=t.textHeight),G(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),G(t,"textPadding")&&(r.padding=t.textPadding),G(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),G(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),G(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),G(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),G(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),G(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),G(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function qG(r,t,e){var i=r;i.textPosition=i.textPosition||e.position||"inside",e.offset!=null&&(i.textOffset=e.offset),e.rotation!=null&&(i.textRotation=e.rotation),e.distance!=null&&(i.textDistance=e.distance);var a=i.textPosition.indexOf("inside")>=0,n=r.fill||"#000";p0(i,t);var o=i.textFill==null;return a?o&&(i.textFill=e.insideFill||"#fff",!i.textStroke&&e.insideStroke&&(i.textStroke=e.insideStroke),!i.textStroke&&(i.textStroke=n),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(o&&(i.textFill=r.fill||e.outsideFill||"#000"),!i.textStroke&&e.outsideStroke&&(i.textStroke=e.outsideStroke)),i.text=t.text,i.rich=t.rich,w(t.rich,function(s){p0(s,s)}),i}function p0(r,t){!t||(G(t,"fill")&&(r.textFill=t.fill),G(t,"stroke")&&(r.textStroke=t.fill),G(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),G(t,"font")&&(r.font=t.font),G(t,"fontStyle")&&(r.fontStyle=t.fontStyle),G(t,"fontWeight")&&(r.fontWeight=t.fontWeight),G(t,"fontSize")&&(r.fontSize=t.fontSize),G(t,"fontFamily")&&(r.fontFamily=t.fontFamily),G(t,"align")&&(r.textAlign=t.align),G(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),G(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),G(t,"width")&&(r.textWidth=t.width),G(t,"height")&&(r.textHeight=t.height),G(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),G(t,"padding")&&(r.textPadding=t.padding),G(t,"borderColor")&&(r.textBorderColor=t.borderColor),G(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),G(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),G(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),G(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),G(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),G(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),G(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),G(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),G(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),G(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var lT={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},g0=at(lT);Ve(Tr,function(r,t){return r[t]=1,r},{});Tr.join(", ");var Jl=["","style","shape","extra"],pn=xt();function Fd(r,t,e,i,a){var n=r+"Animation",o=Rc(r,i,a)||{},s=pn(t).userDuring;return o.duration>0&&(o.during=s?H(m5,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),O(o,e[n]),o}function yh(r,t,e,i){i=i||{};var a=i.dataIndex,n=i.isInit,o=i.clearStyle,s=e.isAnimationEnabled(),l=pn(r),u=t.style;l.userDuring=t.during;var f={},h={};if(S5(r,t,h),m0("shape",t,h),m0("extra",t,h),!n&&s&&(_5(r,t,f),y0("shape",r,t,f),y0("extra",r,t,f),x5(r,t,u,f)),h.style=u,d5(r,h,o),g5(r,t),s)if(n){var c={};w(Jl,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(c[d]=c[d]||{}),O(d?c[d]:c,p.enterFrom))});var v=Fd("enter",r,t,e,a);v.duration>0&&r.animateFrom(c,v)}else p5(r,t,a||0,e,f);uT(r,t),u?r.dirty():r.markRedraw()}function uT(r,t){for(var e=pn(r).leaveToProps,i=0;i<Jl.length;i++){var a=Jl[i],n=a?t[a]:t;n&&n.leaveTo&&(e||(e=pn(r).leaveToProps={}),a&&(e[a]=e[a]||{}),O(a?e[a]:e,n.leaveTo))}}function c5(r,t,e,i){if(r){var a=r.parent,n=pn(r).leaveToProps;if(n){var o=Fd("update",r,t,e,0);o.done=function(){a.remove(r),i&&i()},r.animateTo(n,o)}else a.remove(r),i&&i()}}function ga(r){return r==="all"}function d5(r,t,e){var i=t.style;if(!r.isGroup&&i){if(e){r.useStyle({});for(var a=r.animators,n=0;n<a.length;n++){var o=a[n];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(i)}t&&(t.style=null,t&&r.attr(t),t.style=i)}function p5(r,t,e,i,a){if(a){var n=Fd("update",r,t,i,e);n.duration>0&&r.animateFrom(a,n)}}function g5(r,t){G(t,"silent")&&(r.silent=t.silent),G(t,"ignore")&&(r.ignore=t.ignore),r instanceof $r&&G(t,"invisible")&&(r.invisible=t.invisible),r instanceof gt&&G(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var cr={},y5={setTransform:function(r,t){return cr.el[r]=t,this},getTransform:function(r){return cr.el[r]},setShape:function(r,t){var e=cr.el,i=e.shape||(e.shape={});return i[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=cr.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=cr.el,i=e.style;return i&&(i[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=cr.el.style;if(t)return t[r]},setExtra:function(r,t){var e=cr.el.extra||(cr.el.extra={});return e[r]=t,this},getExtra:function(r){var t=cr.el.extra;if(t)return t[r]}};function m5(){var r=this,t=r.el;if(!!t){var e=pn(t).userDuring,i=r.userDuring;if(e!==i){r.el=r.userDuring=null;return}cr.el=t,i(y5)}}function y0(r,t,e,i){var a=e[r];if(!!a){var n=t[r],o;if(n){var s=e.transition,l=a.transition;if(l)if(!o&&(o=i[r]={}),ga(l))O(o,n);else for(var u=At(l),f=0;f<u.length;f++){var h=u[f],c=n[h];o[h]=c}else if(ga(s)||ot(s,r)>=0){!o&&(o=i[r]={});for(var v=at(n),f=0;f<v.length;f++){var h=v[f],c=n[h];b5(a[h],c)&&(o[h]=c)}}}}}function m0(r,t,e){var i=t[r];if(!!i)for(var a=e[r]={},n=at(i),o=0;o<n.length;o++){var s=n[o];a[s]=lo(i[s])}}function _5(r,t,e){for(var i=t.transition,a=ga(i)?Tr:At(i||[]),n=0;n<a.length;n++){var o=a[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function S5(r,t,e){for(var i=0;i<g0.length;i++){var a=g0[i],n=lT[a],o=t[a];o&&(e[n[0]]=o[0],e[n[1]]=o[1])}for(var i=0;i<Tr.length;i++){var s=Tr[i];t[s]!=null&&(e[s]=t[s])}}function x5(r,t,e,i){if(!!e){var a=r.style,n;if(a){var o=e.transition,s=t.transition;if(o&&!ga(o)){var l=At(o);!n&&(n=i.style={});for(var u=0;u<l.length;u++){var f=l[u],h=a[f];n[f]=h}}else if(r.getAnimationStyleProps&&(ga(s)||ga(o)||ot(s,"style")>=0)){var c=r.getAnimationStyleProps(),v=c?c.style:null;if(v){!n&&(n=i.style={});for(var d=at(e),u=0;u<d.length;u++){var f=d[u];if(v[f]){var h=a[f];n[f]=h}}}}}}}function b5(r,t){return te(r)?r!==t:r!=null&&isFinite(r)}var fT=xt(),w5=["percent","easing","shape","style","extra"];function T5(r){r.stopAnimation("keyframe"),r.attr(fT(r))}function Hv(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(N(t)){w(t,function(s){Hv(r,s,e)});return}var i=t.keyframes,a=t.duration;if(e&&a==null){var n=Rc("enter",e,0);a=n&&n.duration}if(!(!i||!a)){var o=fT(r);w(Jl,function(s){if(!(s&&!r[s])){var l;i.sort(function(u,f){return u.percent-f.percent}),w(i,function(u){var f=r.animators,h=s?u[s]:u;if(!!h){var c=at(h);if(s||(c=Ct(c,function(p){return ot(w5,p)<0})),!!c.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(c);s&&(o[s]=o[s]||{});var d=s?o[s]:o;w(c,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(a*u.percent,h,c,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var ea=xt(),_0=X,mh=H,C5=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,a){var n=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!a&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,t,e,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new rt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);else{var c=ft(S0,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}b0(s,e,!0),this._renderHandle(n)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),a=t.axis,n=a.type==="category",o=e.get("snap");if(!o&&!n)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(n&&a.getBandWidth()>s)return!0;if(o){var l=Pd(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,a,n){},r.prototype.createPointerEl=function(t,e,i,a){var n=e.pointer;if(n){var o=ea(t).pointerEl=new bu[n.type](_0(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,a){if(e.label){var n=ea(t).labelEl=new pt(_0(e.label));t.add(n),x0(n,a)}},r.prototype.updatePointerEl=function(t,e,i){var a=ea(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),i(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,a){var n=ea(t).labelEl;n&&(n.setStyle(e.label.style),i(n,{x:e.label.x,y:e.label.y}),x0(n,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),a=this._handle,n=e.getModel("handle"),o=e.get("status");if(!n.get("show")||!o||o==="hide"){a&&i.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=_n(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Gr(u.event)},onmousedown:mh(this._onHandleDragMove,this,0,0),drift:mh(this._onHandleDragMove,this),ondragend:mh(this._onHandleDragEnd,this)}),i.add(a)),b0(a,e,!1),a.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");N(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,ts(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){S0(this._axisPointerModel,!e&&this._moveAnimation,this._handle,_h(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(!!i){this._dragging=!0;var a=this.updateHandleTransform(_h(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(_h(a)),ea(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,a=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),ko(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r}();function S0(r,t,e,i){hT(ea(e).lastProp,i)||(ea(e).lastProp=i,t?Mt(e,i,r):(e.stopAnimation(),e.attr(i)))}function hT(r,t){if(U(r)&&U(t)){var e=!0;return w(t,function(i,a){e=e&&hT(r[a],i)}),!!e}else return r===t}function x0(r,t){r[t.get(["label","show"])?"show":"hide"]()}function _h(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function b0(r,t,e){var i=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(i!=null&&(n.z=i),a!=null&&(n.zlevel=a),n.silent=e)})}var vT=C5;function cT(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function dT(r,t,e,i,a){var n=e.get("value"),o=pT(n,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ta(s.get("padding")||0),u=s.getFont(),f=Zo(o,u),h=a.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var p=a.verticalAlign;p==="bottom"&&(h[1]-=v),p==="middle"&&(h[1]-=v/2),A5(h,c,v,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Ot(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function A5(r,t,e,i){var a=i.getWidth(),n=i.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,n)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function pT(r,t,e,i,a){r=t.scale.parse(r);var n=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:bd(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),V(o)?n=o.replace("{value}",n):q(o)&&(n=o(s))}return n}function gT(r,t,e){var i=Fe();return Ci(i,i,e.rotation),Hr(i,i,e.position),rr([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function M5(r,t,e,i,a,n){var o=Ti.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),dT(t,i,a,n,{position:gT(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function yT(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function D5(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function w0(r,t,e,i,a,n){return{cx:r,cy:t,r0:e,r:i,startAngle:a,endAngle:n,clockwise:!0}}var P5=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,a,n,o){var s=a.axis,l=s.grid,u=n.get("type"),f=T0(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=cT(n),v=L5[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=Iv(l.model,a);M5(i,e,d,a,n,o)},t.prototype.getHandleTransform=function(e,i,a){var n=Iv(i.axis.grid.model,i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=gT(i.axis,e,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,a,n){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=T0(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(vT);function T0(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var L5={line:function(r,t,e){var i=yT([t,e[0]],[t,e[1]],C0(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),a=e[1]-e[0];return{type:"Rect",shape:D5([t-i/2,e[0]],[i,a],C0(r))}}};function C0(r){return r.dim==="x"?0:1}var I5=P5,R5=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!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}},t}(ut),E5=R5,zr=xt(),k5=w;function mT(r,t,e){if(!vt.node){var i=t.getZr();zr(i).records||(zr(i).records={}),O5(i,t);var a=zr(i).records[r]||(zr(i).records[r]={});a.handler=e}}function O5(r,t){if(zr(r).initialized)return;zr(r).initialized=!0,e("click",ft(A0,"click")),e("mousemove",ft(A0,"mousemove")),e("globalout",N5);function e(i,a){r.on(i,function(n){var o=z5(t);k5(zr(r).records,function(s){s&&a(s,n,o.dispatchAction)}),B5(o.pendings,t)})}}function B5(r,t){var e=r.showTip.length,i=r.hideTip.length,a;e?a=r.showTip[e-1]:i&&(a=r.hideTip[i-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function N5(r,t,e){r.handler("leave",null,e)}function A0(r,t,e,i){t.handler(r,e,i)}function z5(r){var t={showTip:[],hideTip:[]},e=function(i){var a=t[i.type];a?a.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function Wv(r,t){if(!vt.node){var e=t.getZr(),i=(zr(e).records||{})[r];i&&(zr(e).records[r]=null)}}var V5=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a){var n=i.getComponent("tooltip"),o=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";mT("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){Wv("axisPointer",i)},t.prototype.dispose=function(e,i){Wv("axisPointer",i)},t.type="axisPointer",t}(Dt),F5=V5;function _T(r,t){var e=[],i=r.seriesIndex,a;if(i==null||!(a=t.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=ya(n,r);if(o==null||o<0||N(o))return{point:[]};var s=n.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=n.mapDimension(c),p=[];p[v]=n.get(d,o),p[1-v]=n.get(n.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(n.getValues(z(l.dimensions,function(y){return n.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var M0=xt();function G5(r,t,e){var i=r.currTrigger,a=[r.x,r.y],n=r,o=r.dispatchAction||H(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){pl(a)&&(a=_T({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},t).point);var l=pl(a),u=n.axesInfo,f=s.axesInfo,h=i==="leave"||pl(a),c={},v={},d={list:[],map:{}},p={showPointer:ft(W5,v),showTooltip:ft($5,d)};w(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);w(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,T=Z5(u,S);if(!h&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=x.pointToData(a)),C!=null&&D0(S,C,p,!1,c)}})});var g={};return w(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var T=x.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,P0(S),P0(y)))),g[y.key]=T}})}),w(g,function(y,m){D0(f[m],y,p,!0,c)}),U5(v,f,c),Y5(d,a,r,o),X5(f,o,e),c}}function D0(r,t,e,i,a){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=H5(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&O(a,s[0]),!i&&r.snap&&n.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function H5(r,t){var e=t.axis,i=e.dim,a=r,n=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=h,n.length=0),w(c,function(g){n.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:n,snapToValue:a}}function W5(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function $5(r,t,e,i){var a=e.payloadBatch,n=t.axis,o=n.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Vo(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function U5(r,t,e){var i=e.axesInfo=[];w(t,function(a,n){var o=a.axisPointerModel.option,s=r[n];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Y5(r,t,e,i){if(pl(t)||!r.list.length){i({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function X5(r,t,e){var i=e.getZr(),a="axisPointerLastHighlights",n=M0(i)[a]||{},o=M0(i)[a]={};w(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&w(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];w(n,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!n[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Z5(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function P0(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function pl(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Gd(r){as.registerAxisPointerClass("CartesianAxisPointer",I5),r.registerComponentModel(E5),r.registerComponentView(F5),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=AO(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},G5)}function q5(r){Gt(ww),Gt(Gd)}var K5=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,a,n,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(i),c=n.get("type");if(c&&c!=="none"){var v=cT(n),d=J5[c](s,l,h,f);d.style=v,e.graphicKey=d.type,e.pointer=d}var p=n.get(["label","margin"]),g=j5(i,a,n,l,p);dT(e,a,n,o,g)},t}(vT);function j5(r,t,e,i,a){var n=t.axis,o=n.dataToCoord(r),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,f,h;if(n.dim==="radius"){var c=Fe();Ci(c,c,s),Hr(c,c,[i.cx,i.cy]),u=rr([o,-a],c);var v=t.getModel("axisLabel").get("rotate")||0,d=Ti.innerTextLayout(s,v*Math.PI/180,-1);f=d.textAlign,h=d.textVerticalAlign}else{var p=l[1];u=i.coordToPoint([p+a,o]);var g=i.cx,y=i.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var J5={line:function(r,t,e,i){return r.dim==="angle"?{type:"Line",shape:yT(t.coordToPoint([i[0],e]),t.coordToPoint([i[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,i){var a=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:w0(t.cx,t.cy,i[0],i[1],(-e-a/2)*n,(-e+a/2)*n)}:{type:"Sector",shape:w0(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},Q5=K5,tz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var i,a=this.ecModel;return a.eachComponent(e,function(n){n.getCoordSysModel()===this&&(i=n)},this),i},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(ut),ez=tz,Hd=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",zt).models[0]},t.type="polarAxis",t}(ut);Yt(Hd,is);var rz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(Hd),iz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(Hd),Wd=function(r){R(t,r);function t(e,i){return r.call(this,"radius",e,i)||this}return t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t}(lr);Wd.prototype.dataToRadius=lr.prototype.dataToCoord;Wd.prototype.radiusToData=lr.prototype.coordToData;var az=Wd,nz=xt(),$d=function(r){R(t,r);function t(e,i){return r.call(this,"angle",e,i||[0,360])||this}return t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,i=e.getLabelModel(),a=e.scale,n=a.getExtent(),o=a.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=Zo(s==null?"":s+"",i.getFont(),"center","top"),h=Math.max(f.height,7),c=h/u;isNaN(c)&&(c=1/0);var v=Math.max(0,Math.floor(c)),d=nz(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-v)<=1&&Math.abs(g-o)<=1&&p>v?v=p:(d.lastTickCount=o,d.lastAutoInterval=v),v},t}(lr);$d.prototype.dataToAngle=lr.prototype.dataToCoord;$d.prototype.angleToData=lr.prototype.coordToData;var oz=$d,ST=["radius","angle"],sz=function(){function r(t){this.dimensions=ST,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new az,this._angleAxis=new oz,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],i=this._angleAxis,a=this._radiusAxis;return i.scale.type===t&&e.push(i),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,a=this.getAngleAxis(),n=a.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+i*i);e/=l,i/=l;for(var u=Math.atan2(-i,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],i=t[1]/180*Math.PI,a=Math.cos(i)*e+this.cx,n=-Math.sin(i)*e+this.cy;return[a,n]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),i=e.getExtent().slice();i[0]>i[1]&&i.reverse();var a=t.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-a[0]*n,endAngle:-a[1]*n,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,c=this.r0;return f<=h*h&&f>=c*c}}},r.prototype.convertToPixel=function(t,e,i){var a=L0(e);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(t,e,i){var a=L0(e);return a===this?this.pointToData(i):null},r}();function L0(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}var lz=sz;function uz(r,t,e){var i=t.get("center"),a=e.getWidth(),n=e.getHeight();r.cx=K(i[0],a),r.cy=K(i[1],n);var o=r.getRadiusAxis(),s=Math.min(a,n)/2,l=t.get("radius");l==null?l=[0,"100%"]:N(l)||(l=[0,l]);var u=[K(l[0],s),K(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function fz(r,t){var e=this,i=e.getAngleAxis(),a=e.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();w(Ul(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),w(Ul(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),cn(i.scale,i.model),cn(a.scale,a.model),i.type==="category"&&!i.onBand){var n=i.getExtent(),o=360/i.scale.count();i.inverse?n[1]+=o:n[1]-=o,i.setExtent(n[0],n[1])}}function hz(r){return r.mainType==="angleAxis"}function I0(r,t){if(r.type=t.get("type"),r.scale=Fu(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),hz(t)){r.inverse=r.inverse!==t.get("clockwise");var e=t.get("startAngle");r.setExtent(e,e+(r.inverse?-360:360))}t.axis=r,r.model=t}var vz={dimensions:ST,create:function(r,t){var e=[];return r.eachComponent("polar",function(i,a){var n=new lz(a+"");n.update=fz;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");I0(o,l),I0(s,u),uz(n,i,t),e.push(n),i.coordinateSystem=n,n.model=i}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var a=i.getReferringComponents("polar",zt).models[0];i.coordinateSystem=a.coordinateSystem}}),e}},cz=vz,dz=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function qs(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var i=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function Ks(r){var t=r.getRadiusAxis();return t.inverse?0:1}function R0(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var pz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,i){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,n=a.polar,o=n.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=z(a.getViewLabels(),function(f){f=X(f);var h=a.scale,c=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(c),f});R0(u),R0(s),w(dz,function(f){e.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&gz[f](this.group,e,n,s,l,o,u)},this)}},t.type="angleAxis",t}(as),gz={axisLine:function(r,t,e,i,a,n){var o=t.getModel(["axisLine","lineStyle"]),s=Ks(e),l=s?0:1,u;n[l]===0?u=new ar({shape:{cx:e.cx,cy:e.cy,r:n[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Ko({shape:{cx:e.cx,cy:e.cy,r:n[s],r0:n[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,t,e,i,a,n){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[Ks(e)],u=z(i,function(f){return new ne({shape:qs(e,[l,l+s],f.coord)})});r.add(Be(u,{style:Z(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,i,a,n){if(!!a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[Ks(e)],f=[],h=0;h<a.length;h++)for(var c=0;c<a[h].length;c++)f.push(new ne({shape:qs(e,[u,u+l],a[h][c].coord)}));r.add(Be(f,{style:Z(s.getModel("lineStyle").getLineStyle(),Z(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,i,a,n,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");w(o,function(h,c){var v=l,d=h.tickValue,p=n[Ks(e)],g=e.coordToPoint([p+u,h.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];U(b)&&b.textStyle&&(v=new Tt(b.textStyle,l,l.ecModel))}var x=new pt({silent:Ti.isLabelSilent(t),style:Ot(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var T=Ti.makeAxisEventDataBase(t);T.targetType="axisLabel",T.value=h.rawLabel,nt(x).eventData=T}},this)},splitLine:function(r,t,e,i,a,n){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<i.length;h++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new ne({shape:qs(e,n,i[h].coord)}))}for(var h=0;h<f.length;h++)r.add(Be(f[h],{style:Z({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,i,a,n){if(!!a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new ne({shape:qs(e,n,a[u][f].coord)}));r.add(Be(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,i,a,n){if(!!i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=Math.PI/180,c=-i[0].coord*h,v=Math.min(n[0],n[1]),d=Math.max(n[0],n[1]),p=t.get("clockwise"),g=1,y=i.length;g<=y;g++){var m=g===y?i[0].coord:i[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Ar({shape:{cx:e.cx,cy:e.cy,r0:v,r:d,startAngle:c,endAngle:-m*h,clockwise:p},silent:!0})),c=-m*h}for(var g=0;g<f.length;g++)r.add(Be(f[g],{style:Z({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},yz=pz,mz=["axisLine","axisTickLabel","axisName"],_z=["splitLine","splitArea","minorSplitLine"],Sz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,i){if(this.group.removeAll(),!!e.get("show")){var a=this._axisGroup,n=this._axisGroup=new rt;this.group.add(n);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),h=l.getExtent()[0],c=o.getExtent(),v=bz(s,e,h),d=new Ti(e,v);w(mz,d.add,d),n.add(d.getGroup()),Su(a,n,e),w(_z,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&xz[p](this.group,e,s,h,c,u,f)},this)}},t.type="radiusAxis",t}(as),xz={splitLine:function(r,t,e,i,a,n){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<n.length;h++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new ar({shape:{cx:e.cx,cy:e.cy,r:Math.max(n[h].coord,0)}}))}for(var h=0;h<f.length;h++)r.add(Be(f[h],{style:Z({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,i,a,n,o){if(!!o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var h=0;h<o[f].length;h++)u.push(new ar({shape:{cx:e.cx,cy:e.cy,r:o[f][h].coord}}));r.add(Be(u,{style:Z({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,i,a,n){if(!!n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=n[0].coord,c=1;c<n.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Ar({shape:{cx:e.cx,cy:e.cy,r0:h,r:n[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=n[c].coord}for(var c=0;c<f.length;c++)r.add(Be(f[c],{style:Z({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function bz(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var wz=Sz;function xT(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function bT(r,t){return t.dim+r.model.componentIndex}function Tz(r,t,e){var i={},a=Cz(Ct(t.getSeriesByType(r),function(n){return!t.isSeriesFiltered(n)&&n.coordinateSystem&&n.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(n){if(n.coordinateSystem.type==="polar"){var o=n.getData(),s=n.coordinateSystem,l=s.getBaseAxis(),u=bT(s,l),f=xT(n),h=a[u][f],c=h.offset,v=h.width,d=s.getOtherAxis(l),p=n.coordinateSystem.cx,g=n.coordinateSystem.cy,y=n.get("barMinHeight")||0,m=n.get("barMinAngle")||0;i[f]=i[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),b=bi(o,_),x=l.dim!=="radius"||!n.get("roundCap",!0),T=d.dataToCoord(0),C=0,A=o.count();C<A;C++){var D=o.get(_,C),M=o.get(S,C),P=D>=0?"p":"n",L=T;b&&(i[f][M]||(i[f][M]={p:T,n:T}),L=i[f][M][P]);var I=void 0,E=void 0,k=void 0,W=void 0;if(d.dim==="radius"){var B=d.dataToCoord(D)-T,F=l.dataToCoord(M);Math.abs(B)<y&&(B=(B<0?-1:1)*y),I=L,E=L+B,k=F-c,W=k-v,b&&(i[f][M][P]=E)}else{var Y=d.dataToCoord(D,x)-T,tt=l.dataToCoord(M);Math.abs(Y)<m&&(Y=(Y<0?-1:1)*m),I=tt+c,E=I+v,k=L,W=L+Y,b&&(i[f][M][P]=W)}o.setItemLayout(C,{cx:p,cy:g,r0:I,r:E,startAngle:-k*Math.PI/180,endAngle:-W*Math.PI/180,clockwise:k>=W})}}})}function Cz(r){var t={};w(r,function(i,a){var n=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=bT(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/n.count(),h=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=h.stacks;t[l]=h;var v=xT(i);c[v]||h.autoWidthCount++,c[v]=c[v]||{width:0,maxWidth:0};var d=K(i.get("barWidth"),f),p=K(i.get("barMaxWidth"),f),g=i.get("barGap"),y=i.get("barCategoryGap");d&&!c[v].width&&(d=Math.min(h.remainedWidth,d),c[v].width=d,h.remainedWidth-=d),p&&(c[v].maxWidth=p),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var e={};return w(t,function(i,a){e[a]={};var n=i.stacks,o=i.bandWidth,s=K(i.categoryGap,o),l=K(i.gap,1),u=i.remainedWidth,f=i.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),w(n,function(p,g){var y=p.maxWidth;y&&y<h&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var c=0,v;w(n,function(p,g){p.width||(p.width=h),v=p,c+=p.width*(1+l)}),v&&(c-=v.width*l);var d=-c/2;w(n,function(p,g){e[a][g]=e[a][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var Az={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Mz={splitNumber:5},Dz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Dt);function Pz(r){Gt(Gd),as.registerAxisPointerClass("PolarAxisPointer",Q5),r.registerCoordinateSystem("polar",cz),r.registerComponentModel(ez),r.registerComponentView(Dz),zo(r,"angle",rz,Az),zo(r,"radius",iz,Mz),r.registerComponentView(yz),r.registerComponentView(wz),r.registerLayout(ft(Tz,"bar"))}var Lz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i,a){var n=bn(e);r.prototype.init.apply(this,arguments),E0(e,n)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),E0(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.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}},t}(ut);function E0(r,t){var e=r.cellSize,i;N(e)?i=e:i=r.cellSize=[e,e],i.length===1&&(i[1]=i[0]);var a=z([0,1],function(n){return fP(t,n)&&(i[n]="auto"),i[n]!=null&&i[n]!=="auto"});xi(r,t,{type:"box",ignoreSize:a})}var Iz=Lz,Rz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a){var n=this.group;n.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(e,s,n),this._renderLines(e,s,l,n),this._renderYearText(e,s,l,n),this._renderMonthText(e,u,l,n),this._renderWeekText(e,u,s,l,n)},t.prototype._renderDayRect=function(e,i,a){for(var n=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=i.start.time;u<=i.end.time;u=n.getNextNDay(u,1).time){var f=n.dataToRect([u],!1).tl,h=new dt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(h)}},t.prototype._renderLines=function(e,i,a,n){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,c=0;h.time<=i.end.time;c++){d(h.formatedDate),c===0&&(h=s.getDateInfo(i.start.y+"-"+i.start.m));var v=h.date;v.setMonth(v.getMonth()+1),h=s.getDateInfo(v)}d(s.getNextNDay(i.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,n)},t.prototype._getEdgesPoints=function(e,i,a){var n=[e[0].slice(),e[e.length-1].slice()],o=a==="horizontal"?0:1;return n[0][o]=n[0][o]-i/2,n[1][o]=n[1][o]+i/2,n},t.prototype._drawSplitline=function(e,i,a){var n=new He({z2:20,shape:{points:e},style:i});a.add(n)},t.prototype._getLinePointsOfOneWeek=function(e,i,a){for(var n=e.coordinateSystem,o=n.getDateInfo(i),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),f=n.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,i){return V(e)&&e?sP(e,i):q(e)?e(i):i.nameMap},t.prototype._yearTextPositionControl=function(e,i,a,n,o){var s=i[0],l=i[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(n==="left"||n==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,i,a,n){var o=e.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,c=a==="horizontal"?0:1,v={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],h],right:[u[c][0],h]},d=i.start.y;+i.end.y>+i.start.y&&(d=d+"-"+i.end.y);var p=o.get("formatter"),g={start:i.start.y,end:i.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new pt({z2:30,style:Ot(o,{text:y})});m.attr(this._yearTextPositionControl(m,v[l],a,l,s)),n.add(m)}},t.prototype._monthTextPositionControl=function(e,i,a,n,o){var s="left",l="top",u=e[0],f=e[1];return a==="horizontal"?(f=f+o,i&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,i&&(l="middle"),n==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,i,a,n){var o=e.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||V(s))&&(s&&(i=hv(s)||i),s=i.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=0;p<h[c].length-1;p++){var g=h[c][p].slice(),y=this._firstDayOfMonth[p];if(d){var m=this._firstDayPoints[p];g[v]=(m[v]+h[0][p+1][v])/2}var _=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},x=this._formatterLabel(_,b),T=new pt({z2:30,style:O(Ot(o,{text:x}),this._monthTextPositionControl(g,d,a,u,l))});n.add(T)}}},t.prototype._weekTextPositionControl=function(e,i,a,n,o){var s="center",l="middle",u=e[0],f=e[1],h=a==="start";return i==="horizontal"?(u=u+n+(h?1:-1)*o[0]/2,s=h?"right":"left"):(f=f+n+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,i,a,n,o){var s=e.getModel("dayLabel");if(!!s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),h=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||V(f)){f&&(i=hv(f)||i);var v=i.get(["time","dayOfWeekShort"]);f=v||z(i.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];h=K(h,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,h=-h);for(var g=0;g<7;g++){var y=l.getNextNDay(d,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+c)%7);var S=new pt({z2:30,style:O(Ot(s,{text:f[_]}),this._weekTextPositionControl(m,n,u,h,p))});o.add(S)}}},t.type="calendar",t}(Dt),Ez=Rz,Sh=864e5,kz=function(){function r(t,e,i){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=Ce(t);var e=t.getFullYear(),i=t.getMonth()+1,a=i<10?"0"+i:""+i,n=t.getDate(),o=n<10?"0"+n:""+n,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+a+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.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 i=this._rangeInfo.weeks||1,a=["width","height"],n=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];w([0,1],function(h){f(n,h)&&(o[a[h]]=n[h]*s[h])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ue(o,l);w([0,1],function(h){f(n,h)||(n[h]=u[a[h]]/s[h])});function f(h,c){return h[c]!=null&&h[c]!=="auto"}this._sw=n[0],this._sh=n[1]},r.prototype.dataToPoint=function(t,e){N(t)&&(t=t[0]),e==null&&(e=!0);var i=this.getDateInfo(t),a=this._rangeInfo,n=i.formatedDate;if(e&&!(i.time>=a.start.time&&i.time<a.end.time+Sh))return[NaN,NaN];var o=i.day,s=this._getRangeInfo([a.start.time,n]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var i=this.dataToPoint(t,e);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,e-1,a):this._getDateByWeeksAndDay(e,i-1,a)},r.prototype.convertToPixel=function(t,e,i){var a=k0(e);return a===this?a.dataToPoint(i):null},r.prototype.convertFromPixel=function(t,e,i){var a=k0(e);return a===this?a.pointToData(i):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(N(t)&&t.length===1&&(t=t[0]),N(t))e=t;else{var i=t.toString();if(/^\d{4}$/.test(i)&&(e=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var a=this.getDateInfo(i),n=a.date;n.setMonth(n.getMonth()+1);var o=this.getNextNDay(n,-1);e=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(e=[i,i])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],i;e[0].time>e[1].time&&(i=!0,e.reverse());var a=Math.floor(e[1].time/Sh)-Math.floor(e[0].time/Sh)+1,n=new Date(e[0].time),o=n.getDate(),s=e[1].date.getDate();n.setDate(o+a-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-e[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-e[1].time)*u>0;)a-=u,n.setDate(l-u);var f=Math.floor((a+e[0].day+6)/7),h=i?-f+1:f-1;return i&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:f,nthWeek:h,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,i){var a=this._getRangeInfo(i);if(t>a.weeks||t===0&&e<a.fweek||t===a.weeks&&e>a.lweek)return null;var n=(t-1)*7-a.fweek+e,o=new Date(a.start.time);return o.setDate(+a.start.d+n),this.getDateInfo(o)},r.create=function(t,e){var i=[];return t.eachComponent("calendar",function(a){var n=new r(a);i.push(n),a.coordinateSystem=n}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=i[a.get("calendarIndex")||0])}),i},r.dimensions=["time","value"],r}();function k0(r){var t=r.calendarModel,e=r.seriesModel,i=t?t.coordinateSystem:e?e.coordinateSystem:null;return i}var Oz=kz;function Bz(r){r.registerComponentModel(Iz),r.registerComponentView(Ez),r.registerCoordinateSystem("calendar",Oz)}function Nz(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var i=t.parentOption;i?t.parentId=i.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function O0(r,t){var e;return w(t,function(i){r[i]!=null&&r[i]!=="auto"&&(e=!0)}),e}function zz(r,t,e){var i=O({},e),a=r[t],n=e.$action||"merge";n==="merge"?a?(Q(a,i,!0),xi(a,i,{ignoreSize:!0}),tx(e,a),js(e,a),js(e,a,"shape"),js(e,a,"style"),js(e,a,"extra"),e.clipPath=a.clipPath):r[t]=i:n==="replace"?r[t]=i:n==="remove"&&a&&(r[t]=null)}var wT=["transition","enterFrom","leaveTo"],Vz=wT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function js(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var i=e?wT:Vz,a=0;a<i.length;a++){var n=i[a];r[n]==null&&t[n]!=null&&(r[n]=t[n])}}function Fz(r,t){if(!!r&&(r.hv=t.hv=[O0(t,["left","right"]),O0(t,["top","bottom"])],r.type==="group")){var e=r,i=t;e.width==null&&(e.width=i.width=0),e.height==null&&(e.height=i.height=0)}}var Gz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,i){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,i),this.option.elements=a},t.prototype.optionUpdated=function(e,i){var a=this.option,n=(i?a:e).elements,o=a.elements=i?[]:a.elements,s=[];this._flatten(n,s,null);var l=G1(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];w(l,function(f,h){var c=f.newOption;!c||(u.push(c),Nz(f,c),zz(o,h,c),Fz(o[h],c))},this),a.elements=Ct(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,i,a){w(e,function(n){if(!!n){a&&(n.parentOption=a),i.push(n);var o=n.children;o&&o.length&&this._flatten(o,i,n),delete n.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(ut),B0={path:null,compoundPath:null,group:rt,image:fe,text:pt},ke=xt(),Hz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=$()},t.prototype.render=function(e,i,a){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,a)},t.prototype._updateElements=function(e){var i=e.useElOptionsToUpdate();if(!!i){var a=this._elMap,n=this.group,o=e.get("z"),s=e.get("zlevel");w(i,function(l){var u=Jt(l.id,null),f=u!=null?a.get(u):null,h=Jt(l.parentId,null),c=h!=null?a.get(h):n,v=l.type,d=l.style;v==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&h5(d,v,!!g,!!p)){var y=v5(d,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=Wz(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,T=f;x?T=N0(u,c,l.type,a):(T&&(ke(T).isNew=!1),T5(T)),T&&(yh(T,m,e,{isInit:x}),z0(T,l,o,s))}else if(b){gl(f,l,a,e);var C=N0(u,c,l.type,a);C&&(yh(C,m,e,{isInit:!0}),z0(C,l,o,s))}else _==="remove"&&(uT(f,l),gl(f,l,a,e));var A=a.get(u);if(A&&p)if(S){var D=A.getTextContent();D?D.attr(p):A.setTextContent(new pt(p))}else b&&A.setTextContent(new pt(p));if(A){var M=l.clipPath;if(M){var P=M.type,L=void 0,x=!1;if(S){var I=A.getClipPath();x=!I||ke(I).type!==P,L=x?$v(P):I}else b&&(x=!0,L=$v(P));A.setClipPath(L),yh(L,M,e,{isInit:x}),Hv(L,M.keyframeAnimation,e)}var E=ke(A);A.setTextConfig(g),E.option=l,$z(A,e,l),Sn({el:A,componentModel:e,itemName:A.name,itemTooltipOption:l.tooltip}),Hv(A,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,i){for(var a=e.option.elements,n=this.group,o=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],f=0;f<a.length;f++){var h=a[f],c=Jt(h.id,null),v=c!=null?o.get(c):null;if(!(!v||!v.isGroup)){var d=v.parent,p=d===n,g=ke(v),y=ke(d);g.width=K(g.option.width,p?s:y.width)||0,g.height=K(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var h=a[f],c=Jt(h.id,null),v=c!=null?o.get(c):null;if(!!v){var d=v.parent,y=ke(d),m=d===n?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Zc(v,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!ke(v).isNew&&S){for(var b=h.transition,x={},T=0;T<u.length;T++){var C=u[T],A=_[C];b&&(ga(b)||ot(b,C)>=0)?x[C]=A:v[C]=A}Mt(v,x,e,0)}else v.attr(_)}}},t.prototype._clear=function(){var e=this,i=this._elMap;i.each(function(a){gl(a,ke(a).option,i,e._lastGraphicModel)}),this._elMap=$()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Dt);function $v(r){var t=G(B0,r)?B0[r]:kc(r),e=new t({});return ke(e).type=r,e}function N0(r,t,e,i){var a=$v(e);return t.add(a),i.set(r,a),ke(a).id=r,ke(a).isNew=!0,a}function gl(r,t,e,i){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(n){gl(n,t,e,i)}),c5(r,t,i),e.removeKey(ke(r).id))}function z0(r,t,e,i){r.isGroup||w([["cursor",$r.prototype.cursor],["zlevel",i||0],["z",e||0],["z2",0]],function(a){var n=a[0];G(t,n)?r[n]=it(t[n],a[1]):r[n]==null&&(r[n]=a[1])}),w(at(t),function(a){if(a.indexOf("on")===0){var n=t[a];r[a]=q(n)?n:null}}),G(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Wz(r){return r=O({},r),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(QS),function(t){delete r[t]}),r}function $z(r,t,e){var i=nt(r).eventData;!r.silent&&!r.ignore&&!i&&(i=nt(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),i&&(i.info=e.info)}function Uz(r){r.registerComponentModel(Gz),r.registerComponentView(Hz),r.registerPreprocessor(function(t){var e=t.graphic;N(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var V0=["x","y","radius","angle","single"],Yz=["cartesian2d","polar","singleAxis"];function Xz(r){var t=r.get("coordinateSystem");return ot(Yz,t)>=0}function ci(r){return r+"Axis"}function Zz(r,t){var e=$(),i=[],a=$();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(f){!a.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){a.set(f.uid,!0),i.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return i}function TT(r){var t=r.ecModel,e={infoList:[],infoMap:$()};return r.eachTargetAxis(function(i,a){var n=t.getComponent(ci(i),a);if(!!n){var o=n.getCoordSysModel();if(!!o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(n)}}}),e}var xh=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),qz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,i,a){var n=F0(e);this.settledOption=n,this.mergeDefaultAndTheme(e,a),this._doInit(n)},t.prototype.mergeOption=function(e){var i=F0(e);Q(this.option,e,!0),Q(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(i[n[0]]=a[n[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=$(),a=this._fillSpecifiedTargetAxis(i);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return w(V0,function(a){var n=this.getReferringComponents(ci(a),EM);if(!!n.specified){i=!0;var o=new xh;w(n.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var a=this.ecModel,n=!0;if(n){var o=i==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var h=u[0];if(!!h){var c=new xh;if(c.add(h.componentIndex),e.set(f,c),n=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",zt).models[0];v&&w(u,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",zt).models[0]&&c.add(d.componentIndex)})}}}n&&w(V0,function(u){if(!!n){var f=a.findComponents({mainType:ci(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new xh;h.add(f[0].componentIndex),e.set(u,h),n=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(i){!e&&(e=i)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var i=this._rangePropMode,a=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(n,o){var s=e[n[0]]!=null,l=e[n[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":a?i[o]=a[o]:s&&(i[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,a){e==null&&(e=this.ecModel.getComponent(ci(i),a))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(a,n){w(a.indexList,function(o){e.call(i,n,o)})})},t.prototype.getAxisProxy=function(e,i){var a=this.getAxisModel(e,i);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(e,i){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[i])return this.ecModel.getComponent(ci(e),i)},t.prototype.setRawRange=function(e){var i=this.option,a=this.settledOption;w([["start","startValue"],["end","endValue"]],function(n){(e[n[0]]!=null||e[n[1]]!=null)&&(i[n[0]]=a[n[0]]=e[n[0]],i[n[1]]=a[n[1]]=e[n[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;w(["start","startValue","end","endValue"],function(a){i[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,i){if(e==null&&i==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(e,i).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var i,a=this._targetAxisInfoMap.keys(),n=0;n<a.length;n++)for(var o=a[n],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(ut);function F0(r){var t={};return w(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var Ho=qz,Kz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Ho),jz=Kz,Jz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a,n){this.dataZoomModel=e,this.ecModel=i,this.api=a},t.type="dataZoom",t}(Dt),Ud=Jz,Qz=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Ud),tV=Qz,Xa=w,G0=_r,eV=function(){function r(t,e,i,a){this._dimName=t,this._axisIndex=e,this.ecModel=a,this._dataZoomModel=i}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(Xz(e)){var i=ci(this._dimName),a=e.getReferringComponents(i,zt).models[0];a&&this._axisIndex===a.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return X(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,i=this.getAxisModel(),a=i.axis.scale,n=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Xa(["start","end"],function(c,v){var d=t[c],p=t[c+"Value"];n[v]==="percent"?(d==null&&(d=o[v]),p=a.parse(bt(d,o,e))):(u=!0,p=p==null?e[v]:a.parse(p),d=bt(p,e,o)),l[v]=p,s[v]=d}),G0(l),G0(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(c,v,d,p,g){var y=g?"Span":"ValueSpan";Ca(0,c,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=bt(c[m],d,p,!0),g&&(v[m]=a.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=rV(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var i=this._dimName,a=this.getTargetSeriesModels(),n=t.get("filterMode"),o=this._valueWindow;if(n==="none")return;Xa(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(!!f.length){if(n==="weakFilter"){var h=u.getStore(),c=z(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,y=0;y<f.length;y++){var m=h.get(c[y],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else Xa(f,function(v){if(n==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});Xa(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;Xa(["min","max"],function(a){var n=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=bt(i[0]+o,i,[0,100],!0):n!=null&&(o=bt(n,[0,100],i,!0)-i[0]),t[a+"Span"]=n,t[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(!!e){var a=gc(i,[0,500]);a=Math.min(a,20);var n=t.axis.scale.rawExtentInfo;e[0]!==0&&n.setDeterminedMinMax("min",+i[0].toFixed(a)),e[1]!==100&&n.setDeterminedMinMax("max",+i[1].toFixed(a)),n.freeze()}},r}();function rV(r,t,e){var i=[1/0,-1/0];Xa(e,function(o){oE(i,o.getData(),t)});var a=r.getAxisModel(),n=zb(a.axis.scale,a,i).calculate();return[n.min,n.max]}var iV=eV,aV={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(ci(o),s);a(o,s,l,n)})})}t(function(a,n,o,s){o.__dzAxisProxy=null});var e=[];t(function(a,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new iV(a,n,s,r),e.push(o.__dzAxisProxy))});var i=$();return w(e,function(a){w(a.getTargetSeriesModels(),function(n){i.set(n.uid,n)})}),i},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(i,a){e.getAxisProxy(i,a).reset(e)}),e.eachTargetAxis(function(i,a){e.getAxisProxy(i,a).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var a=i.getDataPercentWindow(),n=i.getDataValueWindow();e.setCalculatedRange({start:a[0],end:a[1],startValue:n[0],endValue:n[1]})}})}},nV=aV;function oV(r){r.registerAction("dataZoom",function(t,e){var i=Zz(e,t);w(i,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var H0=!1;function Yd(r){H0||(H0=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,nV),oV(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function sV(r){r.registerComponentModel(jz),r.registerComponentView(tV),Yd(r)}var Je=function(){function r(){}return r}(),CT={};function Xn(r,t){CT[r]=t}function AT(r){return CT[r]}var lV=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;w(this.option.feature,function(i,a){var n=AT(a);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(e)),Q(i,n.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ut),uV=lV;function fV(r,t,e){var i=t.getBoxLayoutParams(),a=t.get("padding"),n={width:e.getWidth(),height:e.getHeight()},o=ue(i,n,a);va(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Zc(r,i,n,a)}function MT(r,t){var e=Ta(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new dt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var hV=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,i,a,n){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),h=[];w(u,function(d,p){h.push(p)}),new gd(this._featureNames||[],h).add(c).update(c).remove(ft(c,null)).execute(),this._featureNames=h;function c(d,p){var g=h[d],y=h[p],m=u[g],_=new Tt(m,e,e.ecModel),S;if(n&&n.newTitle!=null&&n.featureName===g&&(m.title=n.newTitle),g&&!y){if(vV(g))S={onclick:_.option.onclick,featureName:g};else{var b=AT(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=xn("toolbox-feature"),S.model=_,S.ecModel=i,S.api=a;var x=S instanceof Je;if(!g&&y){x&&S.dispose&&S.dispose(i,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(i,a);return}v(_,S,g),_.setIconStatus=function(T,C){var A=this.option,D=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[T]=C,D[T]&&(C==="emphasis"?un:fn)(D[T])},S instanceof Je&&S.render&&S.render(_,i,a,n)}function v(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof Je&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;V(_)?(b={},b[g]=_):b=_,V(S)?(x={},x[g]=S):x=S;var T=d.iconPaths={};w(b,function(C,A){var D=_n(C,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var M=D.ensureState("emphasis");M.style=m.getItemStyle();var P=new pt({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});D.setTextContent(P),Sn({el:D,componentModel:e,itemName:A,formatterParamsExtra:{title:x[A]}}),D.__title=x[A],D.on("mouseover",function(){var L=m.getItemStyle(),I=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||I}),P.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),P.hide()}),(d.get(["iconStatus",A])==="emphasis"?un:fn)(D),o.add(D),D.on("click",H(p.onclick,p,i,a,A)),T[A]=D})}fV(o,e,a),o.add(MT(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!q(_)&&p){var S=_.style||(_.style={}),b=Zo(p,pt.makeFont(S)),x=d.x+o.x,T=d.y+o.y+s,C=!1;T+b.height>a.getHeight()&&(y.position="top",C=!0);var A=C?-5-b.height:s+10;x+b.width/2>a.getWidth()?(y.position=["100%",A],S.align="right"):x-b.width/2<0&&(y.position=[0,A],S.align="left")}})},t.prototype.updateView=function(e,i,a,n){w(this._features,function(o){o instanceof Je&&o.updateView&&o.updateView(o.model,i,a,n)})},t.prototype.remove=function(e,i){w(this._features,function(a){a instanceof Je&&a.remove&&a.remove(e,i)}),this.group.removeAll()},t.prototype.dispose=function(e,i){w(this._features,function(a){a instanceof Je&&a.dispose&&a.dispose(e,i)})},t.type="toolbox",t}(Dt);function vV(r){return r.indexOf("my")===0}var cV=hV,dV=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){var a=this.model,n=a.get("name")||e.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=vt.browser;if(q(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=n+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var p=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=a.get("lang"),T='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',C=window.open();C.document.write(T),C.document.title=n}},t.getDefaultOption=function(e){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},t}(Je),pV=dV,W0="__ec_magicType_stack__",gV=[["line","bar"],["stack"]],yV=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,i=e.get("icon"),a={};return w(e.get("type"),function(n){i[n]&&(a[n]=i[n])}),a},t.getDefaultOption=function(e){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},t.prototype.onclick=function(e,i,a){var n=this.model,o=n.get(["seriesIndex",a]);if(!!$0[a]){var s={series:[]},l=function(h){var c=h.subType,v=h.id,d=$0[a](c,v,h,n);d&&(Z(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,zt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};w(gV,function(h){ot(h,a)>=0&&w(h,function(c){n.setIconStatus(c,"normal")})}),n.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=Q({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Je),$0={line:function(r,t,e,i){if(r==="bar")return Q({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,t,e,i){if(r==="line")return Q({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,t,e,i){var a=e.get("stack")===W0;if(r==="line"||r==="bar")return i.setIconStatus("stack",a?"normal":"emphasis"),Q({id:t,stack:a?"":W0},i.get(["option","stack"])||{},!0)}};sr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var mV=yV,$u=new Array(60).join("-"),gn="	";function _V(r){var t={},e=[],i=[];return r.eachRawSeries(function(a){var n=a.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:i}}function SV(r){var t=[];return w(r,function(e,i){var a=e.categoryAxis,n=e.valueAxis,o=n.dim,s=[" "].concat(z(e.series,function(v){return v.name})),l=[a.model.getCategories()];w(e.series,function(v){var d=v.getRawData();l.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(gn)],f=0;f<l[0].length;f++){for(var h=[],c=0;c<l.length;c++)h.push(l[c][f]);u.push(h.join(gn))}t.push(u.join(`
`))}),t.join(`

`+$u+`

`)}function xV(r){return z(r,function(t){var e=t.getRawData(),i=[t.name],a=[];return e.each(e.dimensions,function(){for(var n=arguments.length,o=arguments[n-1],s=e.getName(o),l=0;l<n-1;l++)a[l]=arguments[l];i.push((s?s+gn:"")+a.join(gn))}),i.join(`
`)}).join(`

`+$u+`

`)}function bV(r){var t=_V(r);return{value:Ct([SV(t.seriesGroupByCategoryAxis),xV(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`

`+$u+`

`),meta:t.meta}}function Ql(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function wV(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(gn)>=0)return!0}var Uv=new RegExp("["+gn+"]+","g");function TV(r){for(var t=r.split(/\n+/g),e=Ql(t.shift()).split(Uv),i=[],a=z(e,function(l){return{name:l,data:[]}}),n=0;n<t.length;n++){var o=Ql(t[n]).split(Uv);i.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[n]=o[s])}return{series:a,categories:i}}function CV(r){for(var t=r.split(/\n+/g),e=Ql(t.shift()),i=[],a=0;a<t.length;a++){var n=Ql(t[a]);if(!!n){var o=n.split(Uv),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[a]={name:s,value:[]},l=i[a].value):l=i[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?i[a].value=l[0]:i[a]=l[0])}}return{name:e,data:i}}function AV(r,t){var e=r.split(new RegExp(`
*`+$u+`
*`,"g")),i={series:[]};return w(e,function(a,n){if(wV(a)){var o=TV(a),s=t[n],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{var o=CV(a);i.series.push(o)}}),i}var MV=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var a=i.getDom(),n=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=n.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin:10px 20px",s.style.color=n.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=n.get("optionToContent"),c=n.get("contentToOption"),v=bV(e);if(q(h)){var d=h(i.getOption());V(d)?u.innerHTML=d:nn(d)&&u.appendChild(d)}else{f.readOnly=n.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=n.get("textColor"),p.borderColor=n.get("textareaBorderColor"),p.backgroundColor=n.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+n.get("buttonColor"),m+=";color:"+n.get("buttonTextColor");var b=this;function x(){a.removeChild(o),b._dom=null}Vh(_,"click",x),Vh(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){x();return}var T;try{q(c)?T=c(u,i.getOption()):T=AV(f.value,g)}catch(C){throw x(),new Error("Data view format error "+C)}T&&i.dispatchAction({type:"changeDataView",newOption:T}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!n.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(e,i){this._dom&&i.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,i){this.remove(e,i)},t.getDefaultOption=function(e){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},t}(Je);function DV(r,t){return z(r,function(e,i){var a=t&&t[i];if(U(a)&&!N(a)){var n=U(e)&&!N(e);n||(e={value:e});var o=a.name!=null&&e.name==null;return e=Z(e,a),o&&delete e.name,e}else return e})}sr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];w(r.newOption.series,function(i){var a=t.getSeriesByName(i.name)[0];if(!a)e.push(O({type:"scatter"},i));else{var n=a.get("data");e.push({name:i.name,data:DV(i.data,n)})}}),t.mergeOption(Z({series:e},r.newOption))});var PV=MV,DT=w,PT=xt();function LV(r,t){var e=Xd(r);DT(t,function(i,a){for(var n=e.length-1;n>=0;n--){var o=e[n];if(o[a])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function IV(r){var t=Xd(r),e=t[t.length-1];t.length>1&&t.pop();var i={};return DT(e,function(a,n){for(var o=t.length-1;o>=0;o--)if(a=t[o][n],a){i[n]=a;break}}),i}function RV(r){PT(r).snapshots=null}function EV(r){return Xd(r).length}function Xd(r){var t=PT(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var kV=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){RV(e),i.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return i},t}(Je);sr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var OV=kV,BV=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],NV=function(){function r(t,e,i){var a=this;this._targetInfoList=[];var n=U0(e,t);w(zV,function(o,s){(!i||!i.include||ot(i.include,s)>=0)&&o(n,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(i,a,n){if((i.coordRanges||(i.coordRanges=[])).push(a),!i.coordRange){i.coordRange=a;var o=bh[i.brushType](0,n,a);i.__rangeOffset={offset:q0[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,i){w(t,function(a){var n=this.findTargetInfo(a,e);n&&n!==!0&&w(n.coordSyses,function(o){var s=bh[a.brushType](1,o,a.range,!0);i(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(i){var a=this.findTargetInfo(i,e);if(i.range=i.range||[],a&&a!==!0){i.panelId=a.panelId;var n=bh[i.brushType](0,a.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?q0[i.brushType](n.values,o.offset,VV(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,function(i){var a=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e?e(i):null,clipPath:Qw(a),isTargetByCursor:eT(a,t,i.coordSysModel),getLinearBrushOtherExtent:tT(a)}})},r.prototype.controlSeries=function(t,e,i){var a=this.findTargetInfo(t,i);return a===!0||a&&ot(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var i=this._targetInfoList,a=U0(e,t),n=0;n<i.length;n++){var o=i[n],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Y0.length;l++)if(Y0[l](a,o))return o}return!0},r}();function Yv(r){return r[0]>r[1]&&r.reverse(),r}function U0(r,t){return fo(r,t,{includeMainTypes:BV})}var zV={grid:function(r,t){var e=r.xAxisModels,i=r.yAxisModels,a=r.gridModels,n=$(),o={},s={};!e&&!i&&!a||(w(e,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),w(i,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),w(a,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(h,c){(ot(e,h.getAxis("x").model)>=0||ot(i,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:X0.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:X0.geo})})}},Y0=[function(r,t){var e=r.xAxisModel,i=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&i&&(a=i.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],X0={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(gi(r)),t}},bh={lineX:ft(Z0,0),lineY:ft(Z0,1),rect:function(r,t,e,i){var a=r?t.pointToData([e[0][0],e[1][0]],i):t.dataToPoint([e[0][0],e[1][0]],i),n=r?t.pointToData([e[0][1],e[1][1]],i):t.dataToPoint([e[0][1],e[1][1]],i),o=[Yv([a[0],n[0]]),Yv([a[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,i){var a=[[1/0,-1/0],[1/0,-1/0]],n=z(e,function(o){var s=r?t.pointToData(o,i):t.dataToPoint(o,i);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:n,xyMinMax:a}}};function Z0(r,t,e,i){var a=e.getAxis(["x","y"][r]),n=Yv(z([0,1],function(s){return t?a.coordToData(a.toLocalCoord(i[s]),!0):a.toGlobalCoord(a.dataToCoord(i[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var q0={lineX:ft(K0,0),lineY:ft(K0,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return z(r,function(i,a){return[i[0]-e[0]*t[a][0],i[1]-e[1]*t[a][1]]})}};function K0(r,t,e,i){return[t[0]-i[r]*e[0],t[1]-i[r]*e[1]]}function VV(r,t){var e=j0(r),i=j0(t),a=[e[0]/i[0],e[1]/i[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function j0(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var LT=NV,Xv=w,FV=DM("toolbox-dataZoom_"),GV=function(r){R(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,i,a,n){this._brushController||(this._brushController=new Jw(a.getZr()),this._brushController.on("brush",H(this._onBrush,this)).mount()),$V(e,i,this,n,a),WV(e,i)},t.prototype.onclick=function(e,i,a){HV[a].call(this)},t.prototype.remove=function(e,i){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,i){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var i=e.areas;if(!e.isEnd||!i.length)return;var a={},n=this.ecModel;this._brushController.updateCovers([]);var o=new LT(Zd(this.model),n,{include:["grid"]});o.matchOutputRanges(i,n,function(u,f,h){if(h.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),LV(n,a),this._dispatchZoomAction(a);function s(u,f,h){var c=f.getAxis(u),v=c.model,d=l(u,v,n),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=Ca(0,h.slice(),c.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(a[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(u,f.componentIndex);d&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var i=[];Xv(e,function(a,n){i.push(X(a))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},t.getDefaultOption=function(e){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},t}(Je),HV={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(IV(this.ecModel))}};function Zd(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function WV(r,t){r.setIconStatus("back",EV(t)>1?"emphasis":"normal")}function $V(r,t,e,i,a){var n=e._isZoomActive;i&&i.type==="takeGlobalCursor"&&(n=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),e._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new LT(Zd(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}yP("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var i=t.getModel(e),a=[],n=Zd(i),o=fo(r,n);Xv(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Xv(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:FV+u+h};c[f]=h,a.push(c)}return a});var UV=GV;function YV(r){r.registerComponentModel(uV),r.registerComponentView(cV),Xn("saveAsImage",pV),Xn("magicType",mV),Xn("dataView",PV),Xn("dataZoom",UV),Xn("restore",OV),Gt(sV)}var XV=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t}(ut),ZV=XV;function IT(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function RT(r){if(!!vt.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var ET=RT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),qV=RT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function kT(r,t){if(!r)return t;t=Uc(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function KV(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var jV=kT(qV,"transition"),qd=kT(ET,"transform"),JV="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(vt.transform3dSupported?"will-change:transform;":"");function QV(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function tF(r,t,e){if(!V(e)||e==="inside")return"";var i=r.get("backgroundColor"),a=r.get("borderWidth");t=ma(t);var n=QV(e),o=Math.max(Math.round(a)*1.5,6),s="",l=qd+":",u;ot(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+a,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-h)/2)*100)/100;s+=";"+n+":-"+v+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+p.join("")+'"></div>'}function eF(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,a="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,a+=vt.transformSupported?","+qd+i:",left"+i+",top"+i),jV+":"+a}function J0(r,t,e){var i=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!vt.transformSupported)return e?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=vt.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return e?"top:0;left:0;"+qd+":"+o+";":[["top",0],["left",0],[ET,o]]}function rF(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var a=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&n&&t.push("text-shadow:"+o+"px "+s+"px "+n+"px "+a),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function iF(r,t,e){var i=[],a=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=Rx(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),t&&a&&i.push(eF(a,e)),n&&i.push("background-color:"+n),w(["width","color","radius"],function(v){var d="border-"+v,p=Uc(d),g=r.get(p);g!=null&&i.push(d+":"+g+(v==="color"?"":"px"))}),i.push(rF(f)),h!=null&&i.push("padding:"+Ta(h).join("px ")+"px"),i.join(";")+";"}function Q0(r,t,e,i,a){var n=t&&t.painter;if(e){var o=n&&n.getViewportRoot();o&&$C(r,o,document.body,i,a)}else{r[0]=i,r[1]=a;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var aF=function(){function r(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,vt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;Q0(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(a):t.appendChild(a),this._container=t;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Ie(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,i=KV(e,"position"),a=e.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative");var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=JV+iF(t,!this._firstShow,this._longHide)+J0(n[0],n[1],!0)+("border-color:"+ma(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,a,n){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(V(n)&&i.get("trigger")==="item"&&!IT(i)&&(s=tF(i,a,n)),V(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var l=0;l<t.length;l++)nn(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var i=this._styleCoord;if(Q0(i,this._zr,this._appendToBody,t,e),i[0]!=null&&i[1]!=null){var a=this.el.style,n=J0(i[0],i[1]);w(n,function(o){a[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",vt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}(),nF=aF,oF=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),e_(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,i,a,n){var o=this;U(t)&&ae(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new pt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Rx(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=t_(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var a=this._styleCoord;e_(a,this._zr,t,e),t=a[0],e=a[1];var n=i.style,o=si(n.borderWidth||0),s=t_(n);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function si(r){return Math.max(0,r)}function t_(r){var t=si(r.shadowBlur||0),e=si(r.shadowOffsetX||0),i=si(r.shadowOffsetY||0);return{left:si(t-e),right:si(t+e),top:si(t-i),bottom:si(t+i)}}function e_(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var sF=oF,lF=new dt({shape:{x:-1,y:-1,width:2,height:2}}),uF=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(vt.node||!i.getDom())){var a=e.getComponent("tooltip"),n=this._renderMode=OM(a.get("renderMode"));this._tooltipContent=n==="richText"?new sF(i):new nF(i.getDom(),i,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(e,i,a){if(!(vt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=a,this._alwaysShowContent=e.get("alwaysShowContent");var n=this._tooltipContent;n.update(e),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?ts(this,"_updatePosition",50,"fixRate"):ko(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");mT("itemTooltip",this._api,H(function(a,n,o){i!=="none"&&(i.indexOf(a)>=0?this._tryShow(n,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,a=this._api,n=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,i,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,a,n){if(!(n.from===this.uid||vt.node||!a.getDom())){var o=r_(n,a);this._ticket="";var s=n.dataByCoordSys,l=cF(n,i,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var f=lF;f.x=n.x,f.y=n.y,f.update(),nt(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,a,n))return;var h=_T(n,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:a.getZr().findHover(n.x,n.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,a,n){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(r_(n,a))},t.prototype._manuallyAxisShowTip=function(e,i,a,n){var o=n.seriesIndex,s=n.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(!!u){var f=u.getData(),h=Zn([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},t.prototype._tryShow=function(e,i){var a=e.target,n=this._tooltipModel;if(!!n){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){this._lastDataByCoordSys=null;var s,l;ja(a,function(u){if(nt(u).dataIndex!=null)return s=u,!0;if(nt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,i):l?this._showComponentItemTooltip(e,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var a=e.get("showDelay");i=H(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},t.prototype._showAxisTooltip=function(e,i){var a=this._ecModel,n=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Zn([i.tooltipOption],n),l=this._renderMode,u=[],f=Cr("section",{blocks:[],noHeader:!0}),h=[],c=new Vf;w(e,function(m){w(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=pT(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=Cr("section",{header:x,noHeader:!ze(x),sortBlocks:!0,blocks:[]});f.blocks.push(T),w(_.seriesDataIndices,function(C){var A=a.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,M=A.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=bd(S.axis,{value:b}),M.axisValueLabel=x,M.marker=c.makeTooltipMarker("item",ma(M.color),l);var P=Yg(A.formatTooltip(D,!0,null)),L=P.frag;if(L){var I=Zn([A],n).get("valueFormatter");T.blocks.push(I?O({valueFormatter:I},L):L)}P.text&&h.push(P.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),p=jg(f,c,l,d,a.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?`

`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,a){var n=this._ecModel,o=nt(i),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,p=Zn([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Vf;y.marker=m.makeTooltipMarker("item",ma(y.color),v);var _=Yg(u.formatTooltip(f,!1,h)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,T=x?jg(b?O({valueFormatter:b},x):x,m,v,S,n.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,y,C,e.offsetX,e.offsetY,e.position,e.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,a){var n=nt(i),o=n.tooltipConfig,s=o.option||{};if(V(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(n.componentMainType,n.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=e.positionDefault,c=Zn(u,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",p=new Vf;this._showOrMove(c,function(){var g=X(c.get("formatterParams")||{});this._showTooltipContent(c,v,g,d,e.offsetX,e.offsetY,e.position,i,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,a,n,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=i,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),p=d.color;if(c)if(V(c)){var g=e.ecModel.get("useUTC"),y=N(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Qo(y.axisValue,v,g)),v=Yc(v,a,!0)}else if(q(c)){var _=H(function(S,b){S===this._ticket&&(h.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,h,a,u))},this);this._ticket=n,v=c(a,n,_)}else v=c;h.setContent(v,f,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,a,u)}},t.prototype._getNearestPoint=function(e,i,a,n){if(a==="axis"||N(i))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!N(i))return{color:n||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,a,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),q(i)&&(i=i([a,n],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),N(i))a=K(i[0],u),n=K(i[1],f);else if(U(i)){var p=i;p.width=h[0],p.height=h[1];var g=ue(p,{width:u,height:f});a=g.x,n=g.y,c=null,v=null}else if(V(i)&&l){var y=vF(i,d,h,e.get("borderWidth"));a=y[0],n=y[1]}else{var y=fF(a,n,o,u,f,c?null:20,v?null:20);a=y[0],n=y[1]}if(c&&(a-=i_(c)?h[0]/2:c==="right"?h[0]:0),v&&(n-=i_(v)?h[1]/2:v==="bottom"?h[1]:0),IT(e)){var y=hF(a,n,o,u,f);a=y[0],n=y[1]}o.moveTo(a,n)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var a=this._lastDataByCoordSys,n=this._cbParamsList,o=!!a&&a.length===e.length;return o&&w(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&w(u,function(c,v){var d=h[v]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&w(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),n&&w(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=i[m],S=n[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){vt.node||!i.getDom()||(ko(this,"_updatePosition"),this._tooltipContent.dispose(),Wv("itemTooltip",i))},t.type="tooltip",t}(Dt);function Zn(r,t,e){var i=t.ecModel,a;e?(a=new Tt(e,i,i),a=new Tt(t.option,a,i)):a=t;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof Tt&&(o=o.get("tooltip",!0)),V(o)&&(o={formatter:o}),o&&(a=new Tt(o,a,i)))}return a}function r_(r,t){return r.dispatchAction||H(t.dispatchAction,t)}function fF(r,t,e,i,a,n,o){var s=e.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>i?r-=l+n:r+=n),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function hF(r,t,e,i,a){var n=e.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function vF(r,t,e,i){var a=e[0],n=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-n/2;break;case"top":s=t.x+u/2-a/2,l=t.y-n-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-n/2;break;case"right":s=t.x+u+o,l=t.y+f/2-n/2}return[s,l]}function i_(r){return r==="center"||r==="middle"}function cF(r,t,e){var i=xc(r).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=qo(t,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=nt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var dF=uF;function pF(r){Gt(Gd),r.registerComponentModel(ZV),r.registerComponentView(dF),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Wt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Wt)}var a_=w;function n_(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function o_(r,t,e){var i={};return a_(t,function(n){var o=i[n]=a();a_(r[n],function(s,l){if(!!se.isValidType(l)){var u={type:l,visual:s};e&&e(u,n),o[l]=new se(u),l==="opacity"&&(u=X(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new se(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function gF(r,t,e){var i;w(e,function(a){t.hasOwnProperty(a)&&n_(t[a])&&(i=!0)}),i&&w(e,function(a){t.hasOwnProperty(a)&&n_(t[a])?r[a]=X(t[a]):delete r[a]})}function KG(r,t,e,i,a,n){var o={};w(r,function(h){var c=se.prepareVisualTypes(t[h]);o[h]=c});var s;function l(h){return ad(e,s,h)}function u(h,c){Hx(e,s,h,c)}n==null?e.each(f):e.each([n],f);function f(h,c){s=n==null?h:c;var v=e.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var d=i.call(a,h),p=t[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(h,l,u)}}}function yF(r,t,e,i){var a={};return w(r,function(n){var o=se.prepareVisualTypes(t[n]);a[n]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(b){return ad(s,h,b)}function f(b,x){Hx(s,h,b,x)}for(var h,c=s.getStore();(h=o.next())!=null;){var v=s.getRawDataItem(h);if(!(v&&v.visualMap===!1))for(var d=i!=null?c.get(l,h):h,p=e(d),g=t[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}var mF=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.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"}},t}(ut),_F=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,a){if(this.group.removeAll(),!!e.get("show")){var n=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=it(e.get("textBaseline"),e.get("textVerticalAlign")),f=new pt({style:Ot(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new pt({style:Ot(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Mg(d,"_"+e.get("target"))}),p&&v.on("click",function(){Mg(p,"_"+e.get("subtarget"))}),nt(f).eventData=nt(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,n.add(f),c&&n.add(v);var y=n.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=ue(m,{width:a.getWidth(),height:a.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),n.x=_.x,n.y=_.y,n.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=n.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var T=new dt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});n.add(T)}},t.type="title",t}(Dt);function SF(r){r.registerComponentModel(mF),r.registerComponentView(_F)}var xF=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,i,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var i=this._data.count();this.option.loop?e=(e%i+i)%i:(e>=i&&(e=i-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,i=e.data||[],a=e.axisType,n=this._names=[],o;a==="category"?(o=[],w(i,function(u,f){var h=Jt(mn(u),""),c;U(u)?(c=X(u),c.value=f):c=f,o.push(c),n.push(h)})):o=i;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Bu([{name:"value",type:s}],this);l.initData(o,n)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.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:[]},t}(ut),s_=xF,OT=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=Ai(s_.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:[]}),t}(s_);Yt(OT,Sx.prototype);var bF=OT,wF=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Dt),TF=wF,CF=function(r){R(t,r);function t(e,i,a,n){var o=r.call(this,e,i,a)||this;return o.type=n||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(lr),AF=CF,wh=Math.PI,l_=xt(),MF=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){this.api=i},t.prototype.render=function(e,i,a){if(this.model=e,this.api=a,this.ecModel=i,this.group.removeAll(),e.get("show",!0)){var n=this._layout(e,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Cr("nameValue",{noName:!0,value:f})},w(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,e)},this),this._renderAxisLabel(n,s,l,e),this._position(n,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,i){var a=e.get(["label","position"]),n=e.get("orient"),o=PF(e,i),s;a==null||a==="auto"?s=n==="horizontal"?o.y+o.height/2<i.getHeight()/2?"-":"+":o.x+o.width/2<i.getWidth()/2?"+":"-":V(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:wh/2},h=n==="vertical"?o.height:o.width,c=e.getModel("controlStyle"),v=c.get("show",!0),d=v?c.get("itemSize"):0,p=v?c.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*wh/180;var m,_,S,b=c.get("position",!0),x=v&&c.get("showPlayBtn",!0),T=v&&c.get("showPrevBtn",!0),C=v&&c.get("showNextBtn",!0),A=0,D=h;b==="left"||b==="bottom"?(x&&(m=[0,0],A+=g),T&&(_=[A,0],A+=g),C&&(S=[D-d,0],D-=g)):(x&&(m=[D-d,0],D-=g),T&&(_=[0,0],A+=g),C&&(S=[D-d,0],D-=g));var M=[A,D];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:n,rotation:f[n],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[n],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[n],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:d,controlGap:p}},t.prototype._position=function(e,i){var a=this._mainGroup,n=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Fe(),l=o.x,u=o.y+o.height;Hr(s,s,[-l,-u]),Ci(s,s,-wh/2),Hr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(a.getBoundingRect()),c=m(n.getBoundingRect()),v=[a.x,a.y],d=[n.x,n.y];d[0]=v[0]=f[0][0];var p=e.labelPosOpt;if(p==null||V(p)){var g=p==="+"?0:1;_(v,h,f,1,g),_(d,c,f,1,1-g)}else{var g=p>=0?0:1;_(v,h,f,1,g),d[1]=v[1]+p}a.setPosition(v),n.setPosition(d),a.rotation=n.rotation=e.rotation,y(a),y(n);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,T,C){S[T]+=x[T][C]-b[T][C]}},t.prototype._createAxis=function(e,i){var a=i.getData(),n=i.get("axisType"),o=DF(i,n);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new AF("value",o,e.axisExtent,n);return l.model=i,l},t.prototype._createGroup=function(e){var i=this[e]=new rt;return this.group.add(i),i},t.prototype._renderAxisLine=function(e,i,a,n){var o=a.getExtent();if(!!n.get(["lineStyle","show"])){var s=new ne({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:O({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new ne({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Z({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},t.prototype._renderAxisTick=function(e,i,a,n){var o=this,s=n.getData(),l=a.scale.getTicks();this._tickSymbols=[],w(l,function(u){var f=a.dataToCoord(u.value),h=s.getItemModel(u.value),c=h.getModel("itemStyle"),v=h.getModel(["emphasis","itemStyle"]),d=h.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:H(o._changeTimeline,o,u.value)},g=u_(h,c,i,p);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),pi(g);var y=nt(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=n):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,i,a,n){var o=this,s=a.getLabelModel();if(!!s.get("show")){var l=n.getData(),u=a.getViewLabels();this._tickLabels=[],w(u,function(f){var h=f.tickValue,c=l.getItemModel(h),v=c.getModel("label"),d=c.getModel(["emphasis","label"]),p=c.getModel(["progress","label"]),g=a.dataToCoord(f.tickValue),y=new pt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:H(o._changeTimeline,o,h),silent:!1,style:Ot(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Ot(d),y.ensureState("progress").style=Ot(p),i.add(y),pi(y),l_(y).dataIndex=h,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,i,a,n){var o=e.controlSize,s=e.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),f=n.getPlayState(),h=n.get("inverse",!0);c(e.nextBtnPosition,"next",H(this._changeTimeline,this,h?"-":"+")),c(e.prevBtnPosition,"prev",H(this._changeTimeline,this,h?"+":"-")),c(e.playPosition,f?"stop":"play",H(this._handlePlayClick,this,!f),!0);function c(v,d,p,g){if(!!v){var y=ir(it(n.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=LF(n,d+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,i.add(_),pi(_)}}},t.prototype._renderCurrentPointer=function(e,i,a,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=H(u._handlePointerDrag,u),h.ondragend=H(u._handlePointerDragend,u),f_(h,u._progressLine,s,a,n,!0)},onUpdate:function(h){f_(h,u._progressLine,s,a,n)}};this._currentPointer=u_(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,i,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,i){var a=this._toAxisCoord(e)[0],n=this._axis,o=_r(n.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw(),this._progressLine.shape.x2=a,this._progressLine.dirty();var s=this._findNearestTick(a),l=this.model;(i||s!==l.getCurrentIndex()&&l.get("realtime"))&&this._changeTimeline(s)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=e.model;e._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var i=this._mainGroup.getLocalTransform();return rr(e,i,!0)},t.prototype._findNearestTick=function(e){var i=this.model.getData(),a=1/0,n,o=this._axis;return i.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<a&&(a=f,n=l)}),n},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var i=this.model.getCurrentIndex();e==="+"?e=i+1:e==="-"&&(e=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),i=this._tickSymbols,a=this._tickLabels;if(i)for(var n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",n<e);if(a)for(var n=0;n<a.length;n++)a&&a[n]&&a[n].toggleState("progress",l_(a[n]).dataIndex<=e)},t.type="timeline.slider",t}(TF);function DF(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new md({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Bb({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new wi}}function PF(r,t){return ue(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function LF(r,t,e,i){var a=i.style,n=_n(r.get(["controlStyle",t]),i||{},new ht(e[0],e[1],e[2],e[3]));return a&&n.setStyle(a),n}function u_(r,t,e,i,a,n){var o=t.get("color");if(a)a.setColor(o),e.add(a),n&&n.onUpdate(a);else{var s=r.get("symbol");a=Ut(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),e.add(a),n&&n.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),i=Q({rectHover:!0,z2:100},i,!0);var u=nd(r.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var f=Eu(r.get("symbolOffset"),u);f&&(i.x=(i.x||0)+f[0],i.y=(i.y||0)+f[1]);var h=r.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,a.attr(i),a.updateTransform(),a}function f_(r,t,e,i,a,n){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=i.dataToCoord(a.getData().get("value",e));if(n||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var IF=MF;function RF(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,i){var a=e.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),Z({currentIndex:a.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&t.playState!=null&&i.setPlayState(t.playState)})}function EF(r){var t=r&&r.timeline;N(t)||(t=t?[t]:[]),w(t,function(e){!e||kF(e)})}function kF(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),h_(r),ra(r,"controlPosition")){var i=r.controlStyle||(r.controlStyle={});ra(i,"position")||(i.position=r.controlPosition),i.position==="none"&&!ra(i,"show")&&(i.show=!1,delete i.position),delete r.controlPosition}w(r.data||[],function(a){U(a)&&!N(a)&&(!ra(a,"value")&&ra(a,"name")&&(a.value=a.name),h_(a))})}function h_(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),i=r.label||r.label||{},a=i.normal||(i.normal={}),n={normal:1,emphasis:1};w(i,function(o,s){!n[s]&&!ra(a,s)&&(a[s]=o)}),e.label&&!ra(i,"emphasis")&&(i.emphasis=e.label,delete e.label)}function ra(r,t){return r.hasOwnProperty(t)}function OF(r){r.registerComponentModel(bF),r.registerComponentView(IF),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),RF(r),r.registerPreprocessor(EF)}var BF=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},NF=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,a){this.mergeDefaultAndTheme(e,a),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,a=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),N(i)&&w(i,function(n,o){V(n)&&(n={type:n}),i[o]=Q(n,BF(a,n.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,a=0;a<e.length;a++){var n=e[a].get("name");if(this.isSelected(n)){this.select(n),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],a=[];e.eachRawSeries(function(s){var l=s.name;a.push(l);var u;if(s.legendVisualProvider){var f=s.legendVisualProvider,h=f.getAllNames();e.isSeriesFiltered(s)||(a=a.concat(h)),h.length?i=i.concat(h):u=!0}else u=!0;u&&Sc(s)&&i.push(s.name)}),this._availableNames=a;var n=this.get("data")||i,o=z(n,function(s){return(V(s)||yt(s))&&(s={name:s}),new Tt(s,this,this.ecModel)},this);this._data=o},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,a=this.get("selectedMode");if(a==="single"){var n=this._data;w(n,function(o){i[o.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;w(e,function(a){i[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;w(e,function(a){var n=a.get("name",!0);i.hasOwnProperty(n)||(i[n]=!0),i[n]=!i[n]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&ot(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.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}},t}(ut),Zv=NF,Wa=ft,qv=w,Js=rt,zF=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Js),this.group.add(this._selectorGroup=new Js),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,a){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,a,l,s,u);var f=e.getBoxLayoutParams(),h={width:a.getWidth(),height:a.getHeight()},c=e.get("padding"),v=ue(f,h,c),d=this.layoutInner(e,o,v,n,l,u),p=ue(Z({width:d.width,height:d.height},f),h,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=MT(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,a,n,o,s,l){var u=this.getContentGroup(),f=$(),h=i.get("selectedMode"),c=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),qv(i.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new Js;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,p,d,v,i,e,_,b,S,h,n);x.on("click",Wa(v_,p,null,n,c)).on("mouseover",Wa(Kv,y.name,null,n,c)).on("mouseout",Wa(jv,y.name,null,n,c)),f.set(p,!0)}else a.eachRawSeries(function(T){if(!f.get(p)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(p))return;var A=C.indexOfName(p),D=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),P=oe(D.fill);P&&P[3]===0&&(P[3]=.2,D=O(O({},D),{fill:er(P,"rgba")}));var L=this._createItem(T,p,d,v,i,e,{},D,M,h,n);L.on("click",Wa(v_,null,p,n,c)).on("mouseover",Wa(Kv,null,p,n,c)).on("mouseout",Wa(jv,null,p,n,c)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,i,n,s,l)},t.prototype._createSelector=function(e,i,a,n,o){var s=this.getSelectorGroup();qv(e,function(u){var f=u.type,h=new pt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);Zr(h,{normal:c,emphasis:v},{defaultText:u.title}),pi(h)})},t.prototype._createItem=function(e,i,a,n,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(i),y=n.get("symbolRotate"),m=n.get("symbolKeepAspect"),_=n.get("icon");f=_||f||"roundRect";var S=VF(f,n,l,u,v,g,c),b=new Js,x=n.getModel("textStyle");if(q(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(FF({itemWidth:d,itemHeight:p,icon:f,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,A=s,D=o.get("formatter"),M=i;V(D)&&D?M=D.replace("{name}",i!=null?i:""):q(D)&&(M=D(i));var P=n.get("inactiveColor");b.add(new pt({style:Ot(x,{text:M,x:C,y:p/2,fill:g?x.getTextColor():P,align:A,verticalAlign:"middle"})}));var L=new dt({shape:b.getBoundingRect(),invisible:!0}),I=n.getModel("tooltip");return I.get("show")&&Sn({el:L,componentModel:o,itemName:i,itemTooltipOption:I.option}),b.add(L),b.eachChild(function(E){E.silent=!0}),L.silent=!h,this.getContentGroup().add(b),pi(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,i,a,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();va(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){va("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:h[p]+=c[g]+d,v[1-p]+=f[y]/2-c[y]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Dt);function VF(r,t,e,i,a,n,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),qv(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:Fl(h,o),u.fill==="inherit"&&(u.fill=i[a]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?i:e).opacity),s(u,i);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!n){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?i.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function FF(r){var t=r.icon||"roundRect",e=Ut(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function v_(r,t,e,i){jv(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Kv(r,t,e,i)}function BT(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,a=t.length;i<a&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function Kv(r,t,e,i){BT(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function jv(r,t,e,i){BT(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}var NT=zF;function GF(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function qn(r,t,e){var i={},a=r==="toggleSelected",n;return e.eachComponent("legend",function(o){a&&n!=null?o[n?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),n=o.isSelected(t.name));var s=o.getData();w(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var f=o.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&f:i[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:i}:{name:t.name,selected:i}}function HF(r){r.registerAction("legendToggleSelect","legendselectchanged",ft(qn,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ft(qn,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ft(qn,"inverseSelect")),r.registerAction("legendSelect","legendselected",ft(qn,"select")),r.registerAction("legendUnSelect","legendunselected",ft(qn,"unSelect"))}function zT(r){r.registerComponentModel(Zv),r.registerComponentView(NT),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,GF),r.registerSubTypeDefaulter("legend",function(){return"plain"}),HF(r)}var WF=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,a){var n=bn(e);r.prototype.init.call(this,e,i,a),c_(this,e,n)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),c_(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Ai(Zv.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}),t}(Zv);function c_(r,t,e){var i=r.getOrient(),a=[1,1];a[i.index]=0,xi(t,e,{type:"box",ignoreSize:!!a})}var $F=WF,d_=rt,Th=["width","height"],Ch=["x","y"],UF=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new d_),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new d_)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,a,n,o,s,l){var u=this;r.prototype.renderInner.call(this,e,i,a,n,o,s,l);var f=this._controllerGroup,h=i.get("pageIconSize",!0),c=N(h)?h:[h,h];d("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new pt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=_n(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:H(u._pageGo,u,y,i,n)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,i,a,n,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Th[u],h=Ch[u],c=Th[1-u],v=Ch[1-u];o&&va("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=X(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(e,n,y,u,f,c,v,h);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[h]-=_}m[f]+=p[f]+d,g[1-u]+=m[v]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[v]=Math.min(m[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,a,n,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;va(e.get("orient"),f,e.get("itemGap"),n?a.width:null,n?null:a.height),va("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=v[o]>a[o],g=[-v.x,-v.y];i||(g[n]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=it(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[n]+=a[o]-d[o]:y[n]+=d[o]+_}m[1-n]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=p?a[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-n]),h.__rectSize=a[o],p){var x={x:0,y:0};x[o]=Math.max(a[o]-d[o]-_,0),x[s]=b[s],h.setClipPath(new dt({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(e);return T.pageIndex!=null&&Mt(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?e:null),this._updatePageInfoView(e,T),b},t.prototype._pageGo=function(e,i,a){var n=this._getPageInfo(i)[e];n!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var a=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=i[h]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var n=a.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;n&&o&&n.setStyle("text",V(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),a=this.getContentGroup(),n=this._containerGroup.__rectSize,o=e.getOrient().index,s=Th[o],l=Ch[o],u=this._findTargetItemIndex(i),f=a.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+n||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var T=x.getBoundingRect(),C=T[l]+x[l];return{s:C,e:C+T[s],i:x.__legendDataIndex}}}function b(x,T){return x.e>=T&&x.s<=T+n}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,a=this.getContentGroup(),n;return a.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===e&&(i=s)}),i!=null?i:n},t.type="legend.scroll",t}(NT),YF=UF;function XF(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(i)})})}function ZF(r){Gt(zT),r.registerComponentModel($F),r.registerComponentView(YF),XF(r)}function qF(r){Gt(zT),Gt(ZF)}var KF=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=Ai(Ho.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ho),jF=KF,Kd=xt();function JF(r,t,e){Kd(r).coordSysRecordMap.each(function(i){var a=i.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function QF(r,t){for(var e=Kd(r).coordSysRecordMap,i=e.keys(),a=0;a<i.length;a++){var n=i[a],o=e.get(n),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||VT(e,o))}}}function VT(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function t3(r,t){var e={model:t,containsPoint:ft(r3,t),dispatchAction:ft(e3,r),dataZoomInfoMap:null,controller:null},i=e.controller=new Aw(r.getZr());return w(["pan","zoom","scrollMove"],function(a){i.on(a,function(n){var o=[];e.dataZoomInfoMap.each(function(s){if(!!n.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,n);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function e3(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function r3(r,t,e,i){return r.coordinateSystem.containPoint([e,i])}function i3(r){var t,e="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(n){var o=n.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;i[e+s]>i[e+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function a3(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=Kd(e),a=i.coordSysRecordMap||(i.coordSysRecordMap=$());a.each(function(n){n.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=TT(n);w(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,t3(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=$());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),a.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){VT(a,n);return}var f=i3(l);o.enable(f.controlType,f.opt),o.setPointerChecker(n.containsPoint),ts(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var n3=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,i,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),JF(a,e,{pan:H(Ah.pan,this),zoom:H(Ah.zoom,this),scrollMove:H(Ah.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){QF(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Ud),Ah={zoom:function(r,t,e,i){var a=this.range,n=a.slice(),o=r.axisModels[0];if(!!o){var s=Mh[t](null,[i.originX,i.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/i.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ca(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,a[0]!==n[0]||a[1]!==n[1])return n}},pan:p_(function(r,t,e,i,a,n){var o=Mh[i]([n.oldX,n.oldY],[n.newX,n.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:p_(function(r,t,e,i,a,n){var o=Mh[i]([0,0],[n.scrollDelta,n.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*n.scrollDelta})};function p_(r){return function(t,e,i,a){var n=this.range,o=n.slice(),s=t.axisModels[0];if(!!s){var l=r(o,s,t,e,i,a);if(Ca(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var Mh={grid:function(r,t,e,i,a){var n=e.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,t,e,i,a){var n=e.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,t,e,i,a){var n=e.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}},o3=n3;function s3(r){Yd(r),r.registerComponentModel(jF),r.registerComponentView(o3),a3(r)}var l3=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ai(Ho.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"}}}),t}(Ho),u3=l3,Kn=dt,g_=7,f3=1,Dh=30,h3=7,jn="horizontal",y_="vertical",v3=5,c3=["line","bar","candlestick","scatter"],d3={easing:"cubicOut",duration:100,delay:0},p3=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,i){this.api=i,this._onBrush=H(this._onBrush,this),this._onBrushEnd=H(this._onBrushEnd,this)},t.prototype.render=function(e,i,a,n){if(r.prototype.render.apply(this,arguments),ts(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ko(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new rt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,a=e.get("brushSelect"),n=a?h3:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===jn?{right:s.width-o.x-o.width,top:s.height-Dh-g_-n,width:o.width,height:Dh}:{right:g_,top:o.y,width:Dh,height:o.height},u=bn(e.option);w(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=ue(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===y_&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,a=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===jn&&!o?{scaleY:l?1:-1,scaleX:1}:a===jn&&o?{scaleY:l?1:-1,scaleX:-1}:a===y_&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=i.x-u.x,e.y=i.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,a=this._displayables.sliderGroup,n=e.get("brushSelect");a.add(new Kn({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Kn({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:H(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var i=this._size,a=this._shadowSize||[],n=e.series,o=n.getRawData(),s=n.getShadowDim?n.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||i[0]!==a[0]||i[1]!==a[1]){var f=o.getDataExtent(s),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var c=[0,i[1]],v=[0,i[0]],d=[[i[0],0],[0,0]],p=[],g=v[1]/(o.count()-1),y=0,m=Math.round(o.count()/i[0]),_;o.each([s],function(C,A){if(m>0&&A%m){y+=g;return}var D=C==null||isNaN(C)||C==="",M=D?0:bt(C,f,c,!0);D&&!_&&A?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!D&&_&&(d.push([y,0]),p.push([y,0])),d.push([y,M]),p.push([y,M]),y+=g,_=D}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=s,this._shadowSize=[i[0],i[1]];var S=this.dataZoomModel;function b(C){var A=S.getModel(C?"selectedDataBackground":"dataBackground"),D=new rt,M=new Mr({shape:{points:l},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new He({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(M),D.add(P),D}for(var x=0;x<3;x++){var T=b(x===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var a,n=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!a&&!(i!==!0&&ot(c3,u.get("type"))<0)){var f=n.getComponent(ci(o),s).axis,h=g3(o),c,v=u.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),a={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:c}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,a=i.handles=[null,null],n=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),c=i.filler=new Kn({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Kn({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:f3,fill:"rgba(0,0,0,0)"}})),w([0,1],function(_){var S=l.get("handleIcon");!Nl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=Ut(S,-1,0,2,2,null,!0);b.attr({cursor:m_(this._orient),draggable:!0,drift:H(this._onDragMove,this,_),ondragend:H(this._onDragEnd,this),onmouseover:H(this._showDataInfo,this,!0),onmouseout:H(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),T=l.get("handleSize");this._handleHeight=K(T,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),pi(b);var C=l.get("handleColor");C!=null&&(b.style.fill=C),o.add(a[_]=b);var A=l.getModel("textStyle");e.add(n[_]=new pt({silent:!0,invisible:!0,style:Ot(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var v=c;if(h){var d=K(l.get("moveHandleSize"),s[1]),p=i.moveHandle=new dt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=i.moveHandleIcon=Ut(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=i.moveZone=new dt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:m_(this._orient),drift:H(this._onDragMove,this,"all"),ondragstart:H(this._showDataInfo,this,!0),ondragend:H(this._onDragEnd,this),onmouseover:H(this._showDataInfo,this,!0),onmouseout:H(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[bt(e[0],[0,100],i,!0),bt(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var a=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ca(i,n,o,a.get("zoomLock")?"all":e,s.minSpan!=null?bt(s.minSpan,l,o,!0):null,s.maxSpan!=null?bt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=_r([bt(n[0],o,l,!0),bt(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var i=this._displayables,a=this._handleEnds,n=_r(a.slice()),o=this._size;w([0,1],function(v){var d=i.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[v]+(v?-1:1),y:o[1]/2-p/2})},this),i.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,n[0],n[1],o[0]],f=0;f<l.length;f++){var h=l[f],c=h.getClipPath();c||(c=new dt,h.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,a=this._displayables,n=a.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var c=_r(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=gi(a.handles[d].parent,this.group),g=_u(d===0?"right":"left",p),y=this._handleWidth/2+v3,m=rr([c[d]+(d===0?-y:y),this._size[1]/2],p);n[d].setStyle({x:m[0],y:m[1],verticalAlign:o===jn?"middle":g,align:o===jn?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,i){var a=this.dataZoomModel,n=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=i.getPixelPrecision());var s=e==null||isNaN(e)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return q(n)?n(e,s):V(n)?n.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var i=this._displayables,a=i.handleLabels;a[0].attr("invisible",!e),a[1].attr("invisible",!e),i.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},t.prototype._onDragMove=function(e,i,a,n){this._dragging=!0,Gr(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=rr([i,a],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(a[0]<0||a[0]>i[0]||a[1]<0||a[1]>i[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,a=e.offsetY;this._brushStart=new et(i,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(!!this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var a=i.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=_r([bt(a.x,o,s,!0),bt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Gr(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var a=this._displayables,n=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Kn({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,i),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?d3:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=TT(this.dataZoomModel).infoList;if(!e&&i.length){var a=i[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var n=this.api.getWidth(),o=this.api.getHeight();e={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Ud);function g3(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function m_(r){return r==="vertical"?"ns-resize":"ew-resize"}var y3=p3;function m3(r){r.registerComponentModel(u3),r.registerComponentView(y3),Yd(r)}function _3(r){Gt(s3),Gt(m3)}var S3={get:function(r,t,e){var i=X((x3[r]||{})[t]);return e&&N(i)?i[i.length-1]:i}},x3={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},FT=S3,__=se.mapVisual,b3=se.eachVisual,w3=N,S_=w,T3=_r,C3=bt,A3=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,i,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,i){var a=this.option;!i&&gF(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var i=this.stateList;e=H(e,this),this.controllerVisuals=o_(this.option.controller,i,e),this.targetVisuals=o_(this.option.target,i,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,i=[];return e==null||e==="all"?this.ecModel.eachSeries(function(a,n){i.push(n)}):i=At(e),i},t.prototype.eachTargetSeries=function(e,i){w(this.getTargetSeriesIndices(),function(a){var n=this.ecModel.getSeriesByIndex(a);n&&e.call(i,n)},this)},t.prototype.isTargetSeries=function(e){var i=!1;return this.eachTargetSeries(function(a){a===e&&(i=!0)}),i},t.prototype.formatValueText=function(e,i,a){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;a=a||["<",">"],N(e)&&(e=e.slice(),u=!0);var f=i?e:u?[h(e[0]),h(e[1])]:h(e);if(V(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(q(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?a[0]+" "+f[1]:e[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,i=T3([e.min,e.max]);this._dataExtent=i},t.prototype.getDataDimensionIndex=function(e){var i=this.option.dimension;if(i!=null)return e.getDimensionIndex(i);for(var a=e.dimensions,n=a.length-1;n>=0;n--){var o=a[n],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,i=this.option,a={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={});Q(n,a),Q(o,a);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),f.call(this,o);function l(h){w3(i.color)&&!h.inRange&&(h.inRange={color:i.color.slice().reverse()}),h.inRange=h.inRange||{color:e.get("gradientColor")}}function u(h,c,v){var d=h[c],p=h[v];d&&!p&&(p=h[v]={},S_(d,function(g,y){if(!!se.isValidType(y)){var m=FT.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(h){var c=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,v=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";S_(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=c&&X(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&X(v)||(s?m[0]:[m[0],m[0]])),_.symbol=__(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;b3(S,function(x){x>b&&(b=x)}),_.symbolSize=__(S,function(x){return C3(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(ut),tu=A3,x_=[20,140],M3=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=x_[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=x_[1])},t.prototype._resetRange=function(){var e=this.getExtent(),i=this.option.range;!i||i.auto?(e.auto=1,this.option.range=e):N(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],e[0]),i[1]=Math.min(i[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),w(this.stateList,function(e){var i=this.option.controller[e].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),i=_r((this.get("range")||[]).slice());return i[0]>e[1]&&(i[0]=e[1]),i[1]>e[1]&&(i[1]=e[1]),i[0]<e[0]&&(i[0]=e[0]),i[1]<e[0]&&(i[1]=e[0]),i},t.prototype.getValueState=function(e){var i=this.option.range,a=this.getExtent();return(i[0]<=a[0]||i[0]<=e)&&(i[1]>=a[1]||e<=i[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[];return this.eachTargetSeries(function(a){var n=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&n.push(l)},this),i.push({seriesId:a.id,dataIndex:n})},this),i},t.prototype.getVisualMeta=function(e){var i=b_(this,"outOfRange",this.getExtent()),a=b_(this,"inRange",this.option.range.slice()),n=[];function o(v,d){n.push({value:v,color:e(v,d)})}for(var s=0,l=0,u=a.length,f=i.length;l<f&&(!a.length||i[l]<=a[0]);l++)i[l]<a[s]&&o(i[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&n.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var h=1;l<f;l++)(!a.length||a[a.length-1]<i[l])&&(h&&(n.length&&o(n[n.length-1].value,"outOfRange"),h=0),o(i[l],"outOfRange"));var c=n.length;return{stops:n,outerColors:[c?n[0].color:"transparent",c?n[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Ai(tu.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(tu);function b_(r,t,e){if(e[0]===e[1])return e.slice();for(var i=200,a=(e[1]-e[0])/i,n=e[0],o=[],s=0;s<=i&&n<e[1];s++)o.push(n),n+=a;return o.push(e[1]),o}var D3=M3,P3=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,i){this.ecModel=e,this.api=i},t.prototype.render=function(e,i,a,n){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,i,a,n)},t.prototype.renderBackground=function(e){var i=this.visualMapModel,a=Ta(i.get("padding")||0),n=e.getBoundingRect();e.add(new dt({z2:-1,silent:!0,shape:{x:n.x-a[3],y:n.y-a[0],width:n.width+a[3]+a[1],height:n.height+a[0]+a[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,i,a){a=a||{};var n=a.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var h=o.controllerVisuals[n||o.getValueState(e)],c=se.prepareVisualTypes(h);return w(c,function(v){var d=h[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=h.__alphaForOpacity),se.dependsOn(v,i)&&d&&d.applyVisual(e,u,f)}),s[i]},t.prototype.positionGroup=function(e){var i=this.visualMapModel,a=this.api;Zc(e,i.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(e,i,a,n){},t.type="visualMap",t}(Dt),GT=P3,w_=[["left","right","width"],["top","bottom","height"]];function HT(r,t,e){var i=r.option,a=i.align;if(a!=null&&a!=="auto")return a;for(var n={width:t.getWidth(),height:t.getHeight()},o=i.orient==="horizontal"?1:0,s=w_[o],l=[0,null,10],u={},f=0;f<3;f++)u[w_[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:i[s[f]];var h=[["x","width",3],["y","height",0]][o],c=ue(u,n,i.padding);return s[(c.margin[h[2]]||0)+c[h[0]]+c[h[1]]*.5<n[h[1]]*.5?0:1]}function yl(r,t){return w(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var dr=bt,L3=w,T_=Math.min,Ph=Math.max,I3=12,R3=6,E3=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.doRender=function(e,i,a,n){this._api=a,(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,i=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(i);var a=e.get("text");this._renderEndsText(i,a,0),this._renderEndsText(i,a,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},t.prototype._renderEndsText=function(e,i,a){if(!!i){var n=i[1-a];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),h=this._applyTransform(a===0?"bottom":"top",u),c=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new pt({style:Ot(v,{x:f[0],y:f[1],verticalAlign:c==="horizontal"?"middle":h,align:c==="horizontal"?h:"center",text:n})}))}},t.prototype._renderBar=function(e){var i=this.visualMapModel,a=this._shapes,n=i.itemSize,o=this._orient,s=this._useHandle,l=HT(i,this.api,n),u=a.mainGroup=this._createBarGroup(l),f=new rt;u.add(f),f.add(a.outOfRange=C_()),f.add(a.inRange=C_(null,s?M_(this._orient):null,H(this._dragHandle,this,"all",!1),H(this._dragHandle,this,"all",!0))),f.setClipPath(new dt({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var h=i.textStyleModel.getTextRect("\u56FD"),c=Ph(h.width,h.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(i,u,0,n,c,o),this._createHandle(i,u,1,n,c,o)),this._createIndicator(i,u,n,c,o),e.add(u)},t.prototype._createHandle=function(e,i,a,n,o,s){var l=H(this._dragHandle,this,a,!1),u=H(this._dragHandle,this,a,!0),f=ir(e.get("handleSize"),n[0]),h=Ut(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=M_(this._orient);h.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Gr(y.event)}}),h.x=n[0]/2,h.useStyle(e.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Pc(h,!0),i.add(h);var v=this.visualMapModel.textStyleModel,d=new pt({cursor:c,draggable:!0,drift:l,onmousemove:function(y){Gr(y.event)},ondragend:u,style:Ot(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=h,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},t.prototype._createIndicator=function(e,i,a,n,o){var s=ir(e.get("indicatorSize"),a[0]),l=Ut(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof fe){var f=l.style;l.useStyle(O({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);i.add(l);var h=this.visualMapModel.textStyleModel,c=new pt({silent:!0,invisible:!0,style:Ot(h,{x:0,y:0,text:""})});this.group.add(c);var v=[(o==="horizontal"?n/2:R3)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=c,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,i,a,n){if(!!this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([a,n],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():A_(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,i=this._dataInterval=e.getSelected(),a=e.getExtent(),n=[0,e.itemSize[1]];this._handleEnds=[dr(i[0],a,n,!0),dr(i[1],a,n,!0)]},t.prototype._updateInterval=function(e,i){i=i||0;var a=this.visualMapModel,n=this._handleEnds,o=[0,a.itemSize[1]];Ca(i,n,o,e,0);var s=a.getExtent();this._dataInterval=[dr(n[0],o,s,!0),dr(n[1],o,s,!0)]},t.prototype._updateView=function(e){var i=this.visualMapModel,a=i.getExtent(),n=this._shapes,o=[0,i.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,i,a,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new jo(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,i){var a=100,n=[],o=(e[1]-e[0])/a;n.push({color:this.getControllerVisual(e[0],"color",i),offset:0});for(var s=1;s<a;s++){var l=e[0]+o*s;if(l>e[1])break;n.push({color:this.getControllerVisual(l,"color",i),offset:s/a})}return n.push({color:this.getControllerVisual(e[1],"color",i),offset:1}),n},t.prototype._createBarPoints=function(e,i){var a=this.visualMapModel.itemSize;return[[a[0]-i[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-i[1],e[1]]]},t.prototype._createBarGroup=function(e){var i=this._orient,a=this.visualMapModel.get("inverse");return new rt(i==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,i){if(!!this._useHandle){var a=this._shapes,n=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=n.itemSize,u=n.getExtent();L3([0,1],function(f){var h=o[f];h.setStyle("fill",i.handlesColor[f]),h.y=e[f];var c=dr(e[f],[0,l[1]],u,!0),v=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=v/l[0],h.x=l[0]-v/2;var d=rr(a.handleLabelPoints[f],gi(h,this.group));s[f].setStyle({x:d[0],y:d[1],text:n.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,i,a,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(!!h){h.attr("invisible",!1);var c={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",c),d=this.getControllerVisual(e,"symbolSize"),p=dr(e,s,u,!0),g=l[0]-d/2,y={x:h.x,y:h.y};h.y=p,h.x=g;var m=rr(f.indicatorLabelPoint,gi(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(i),verticalAlign:x?S:"middle",align:x?"center":S});var T={x:g,y:p,style:{fill:v}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(T,A),_.animateTo(C,A)}else h.attr(T),_.attr(C);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this._api.enterBlur(D[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(i){if(e._hovering=!0,!e._dragging){var a=e.visualMapModel.itemSize,n=e._applyTransform([i.offsetX,i.offsetY],e._shapes.mainGroup,!0,!0);n[1]=T_(Ph(0,n[1]),a[1]),e._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=a[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,i){var a=this.visualMapModel,n=a.itemSize;if(!!a.option.hoverLink){var o=[0,n[1]],s=a.getExtent();e=T_(Ph(o[0],e),o[1]);var l=k3(a,s,o),u=[e-l,e+l],f=dr(e,o,s,!0),h=[dr(u[0],o,s,!0),dr(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),i&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var c=this._hoverLinkDataIndices,v=[];(i||A_(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(h));var d=IM(c,v);this._dispatchHighDown("downplay",yl(d[0],a)),this._dispatchHighDown("highlight",yl(d[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var i=e.target,a=this.visualMapModel;if(!(!i||nt(i).dataIndex==null)){var n=nt(i),o=this.ecModel.getSeriesByIndex(n.seriesIndex);if(!!a.isTargetSeries(o)){var s=o.getData(n.dataType),l=s.getStore().get(a.getDataDimensionIndex(s),n.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var a=0;a<i.length;a++)this._api.leaveBlur(i[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",yl(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,i,a,n){var o=gi(i,n?null:this.group);return N(e)?rr(e,o,a):_u(e,o,a)},t.prototype._dispatchHighDown=function(e,i){i&&i.length&&this.api.dispatchAction({type:e,batch:i})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(GT);function C_(r,t,e,i){return new Mr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(a){Gr(a.event)},ondragend:i})}function k3(r,t,e){var i=I3/2,a=r.get("hoverLinkDataSize");return a&&(i=dr(a,t,e,!0)/2),i}function A_(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function M_(r){return r==="vertical"?"ns-resize":"ew-resize"}var O3=E3,B3={type:"selectDataRange",event:"dataRangeSelected",update:"update"},N3=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},z3=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(i){var a=r.pipelineContext;!i.isTargetSeries(r)||a&&a.large||e.push(yF(i.stateList,i.targetVisuals,H(i.getValueState,i),i.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),i=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var n=a.getVisualMeta(H(V3,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(e);o>=0&&(n.dimension=o,i.push(n))}}),r.getData().setVisual("visualMeta",i)}}];function V3(r,t,e,i){for(var a=t.targetVisuals[i],n=se.prepareVisualTypes(a),o={color:Gx(r.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,h,c)}return o.color;function h(v){return o[v]}function c(v,d){o[v]=d}}var D_=w;function F3(r){var t=r&&r.visualMap;N(t)||(t=t?[t]:[]),D_(t,function(e){if(!!e){$a(e,"splitList")&&!$a(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var i=e.pieces;i&&N(i)&&D_(i,function(a){U(a)&&($a(a,"start")&&!$a(a,"min")&&(a.min=a.start),$a(a,"end")&&!$a(a,"max")&&(a.max=a.end))})}})}function $a(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var P_=!1;function WT(r){P_||(P_=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(B3,N3),w(z3,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(F3))}function G3(r){r.registerComponentModel(D3),r.registerComponentView(O3),WT(r)}var H3=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],W3[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var n=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=X(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=z(this._pieceList,function(l){return l=X(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,i={},a=se.listVisualTypes(),n=this.isCategory();w(e.pieces,function(s){w(a,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),w(i,function(s,l){var u=!1;w(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&w(this.stateList,function(f){(e[f]||(e[f]={}))[l]=FT.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,i){var a=this.option,n=this._pieceList,o=(i?a:e).selected||{};if(a.selected=o,w(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;w(n,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=X(e)},t.prototype.getValueState=function(e){var i=se.findPieceIndex(e,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[],a=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=se.findPieceIndex(l,a);f===e&&o.push(u)},this),i.push({seriesId:n.id,dataIndex:o})},this),i},t.prototype.getRepresentValue=function(e){var i;if(this.isCategory())i=e.value;else if(e.value!=null)i=e.value;else{var a=e.interval||[];i=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return i},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var i=[],a=["",""],n=this;function o(f,h){var c=n.getRepresentValue({interval:f});h||(h=n.getValueState(c));var v=e(c,h);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:i.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return w(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:i,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=Ai(tu.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(tu),W3={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),i=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var n=(i[1]-i[0])/a;+n.toFixed(e)!==n&&e<5;)e++;t.precision=e,n=+n.toFixed(e),t.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<a;s+=n,o++){var l=o===a-1?i[1]:s+n;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[i[1],1/0],close:[0,0]}),Qh(r),w(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;w(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),L_(t,r)},pieces:function(r){var t=this.option;w(t.pieces,function(e,i){U(e)||(e={value:e});var a={text:"",index:i};if(e.label!=null&&(a.text=e.label),e.hasOwnProperty("value")){var n=a.value=e.value;a.interval=[n,n],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],h=0;h<2;h++){for(var c=[["gte","gt","min"],["lte","lt","max"]][h],v=0;v<3&&o[h]==null;v++)o[h]=e[c[v]],s[h]=l[v],f[h]=v===2;o[h]==null&&(o[h]=u[h])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=se.retrieveVisuals(e),r.push(a)},this),L_(t,r),Qh(r),w(r,function(e){var i=e.close,a=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function L_(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var $3=H3,U3=function(r){R(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var i=this.visualMapModel,a=i.get("textGap"),n=i.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=i.itemSize,f=this._getViewData(),h=f.endsText,c=Fr(i.get("showLabel",!0),!h);h&&this._renderEndsText(e,h[0],u,c,l),w(f.viewPieceList,function(v){var d=v.piece,p=new rt;p.onclick=H(this._onItemClick,this,d),this._enableHoverLink(p,v.indexInModelPieceList);var g=i.getRepresentValue(d);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),c){var y=this.visualMapModel.getValueState(g);p.add(new pt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(p)},this),h&&this._renderEndsText(e,h[1],u,c,l),va(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,i){var a=this;e.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:yl(s.findTargetDataIndices(i),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,i=e.option;if(i.orient==="vertical")return HT(e,this.api,e.itemSize);var a=i.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,i,a,n,o){if(!!i){var s=new rt,l=this.visualMapModel.textStyleModel;s.add(new pt({style:Ot(l,{x:n?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:n?o:"center",text:i})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,i=z(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=e.get("text"),n=e.get("orient"),o=e.get("inverse");return(n==="horizontal"?o:!o)?i.reverse():a&&(a=a.slice().reverse()),{viewPieceList:i,endsText:a}},t.prototype._createItemSymbol=function(e,i,a){e.add(Ut(this.getControllerVisual(i,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(i,"color")))},t.prototype._onItemClick=function(e){var i=this.visualMapModel,a=i.option,n=a.selectedMode;if(!!n){var o=X(a.selected),s=i.getSelectedMapKey(e);n==="single"||n===!0?(o[s]=!0,w(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(GT),Y3=U3;function X3(r){r.registerComponentModel($3),r.registerComponentView(Y3),WT(r)}function Z3(r){Gt(G3),Gt(X3)}var q3={label:{enabled:!0},decal:{show:!1}},I_=xt(),K3={};function j3(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var i=X(q3);Q(i.label,r.getLocaleModel().get("aria"),!1),Q(e.option,i,!1),a(),n();function a(){var u=e.getModel("decal"),f=u.get("show");if(f){var h=$();r.eachSeries(function(c){if(!c.isColorBySeries()){var v=h.get(c.type);v||(v={},h.set(c.type,v)),I_(c).scope=v}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(q(c.enableAriaDecal)){c.enableAriaDecal();return}var v=c.getData();if(c.isColorBySeries()){var m=Pg(c.ecModel,c.name,K3,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=c.getRawData(),p={},g=I_(c).scope;v.each(function(b){var x=v.getRawIndex(b);p[x]=b});var y=d.count();d.each(function(b){var x=p[b],T=d.getName(b)||b+"",C=Pg(c.ecModel,T,g,y),A=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(A,C))})}function S(b,x){var T=b?O(O({},x),b):x;return T.dirty=!0,T}})}}function n(){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=Z(f.option,u),!!f.get("enabled")){var h=t.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(c,d),g;if(!(c<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:c}),r.eachSeries(function(C,A){if(A<p){var D=void 0,M=C.get("name"),P=M?"withName":"withoutName";D=c>1?f.get(["series","multiple",P]):f.get(["series","single",P]),D=o(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var L=C.getData();if(L.count()>v){var I=f.get(["data","partialData"]);D+=o(I,{displayCnt:v})}else D+=f.get(["data","allData"]);for(var E=f.get(["data","separator","middle"]),k=f.get(["data","separator","end"]),W=[],B=0;B<L.count();B++)if(B<v){var F=L.getName(B),Y=L.getValues(B),tt=f.get(["data",F?"withName":"withoutName"]);W.push(o(tt,{name:F,value:Y.join(E)}))}D+=W.join(E)+k,_.push(D)}});var b=f.getModel(["series","multiple","separator"]),x=b.get("middle"),T=b.get("end");g+=_.join(x)+T,h.setAttribute("aria-label",g)}}}function o(u,f){if(!V(u))return u;var h=u;return w(f,function(c,v){h=h.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),c)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"\u81EA\u5B9A\u4E49\u56FE"}}function J3(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},w(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function Q3(r){r.registerPreprocessor(J3),r.registerVisual(r.PRIORITY.VISUAL.ARIA,j3)}var Lh=Math.sin,Ih=Math.cos,$T=Math.PI,Ki=Math.PI*2,tG=180/$T,eG=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,i,a,n,o){this._add("C",t,e,i,a,n,o)},r.prototype.quadraticCurveTo=function(t,e,i,a){this._add("Q",t,e,i,a)},r.prototype.arc=function(t,e,i,a,n,o){this.ellipse(t,e,i,i,0,a,n,o)},r.prototype.ellipse=function(t,e,i,a,n,o,s,l){var u=s-o,f=!l,h=Math.abs(u),c=fi(h-Ki)||(f?u>=Ki:-u>=Ki),v=u>0?u%Ki:u%Ki+Ki,d=!1;c?d=!0:fi(h)?d=!1:d=v>=$T==!!f;var p=t+i*Ih(o),g=e+a*Lh(o);this._start&&this._add("M",p,g);var y=Math.round(n*tG);if(c){var m=1/this._p,_=(f?1:-1)*(Ki-m);this._add("A",i,a,y,1,+f,t+i*Ih(o+_),e+a*Lh(o+_)),m>.01&&this._add("A",i,a,y,0,+f,p,g)}else{var S=t+i*Ih(s),b=e+a*Lh(s);this._add("A",i,a,y,+d,+f,S,b)}},r.prototype.rect=function(t,e,i,a){this._add("M",t,e),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,i,a,n,o,s,l,u){for(var f=[],h=this._p,c=1;c<arguments.length;c++){var v=arguments[c];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*h)/h)}this._d.push(t+f.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),UT=eG,So="none",rG=Math.round;function iG(r){var t=r.fill;return t!=null&&t!==So}function aG(r){var t=r.stroke;return t!=null&&t!==So}var Jv=["lineCap","miterLimit","lineJoin"],nG=z(Jv,function(r){return"stroke-"+r.toLowerCase()});function oG(r,t,e,i){var a=t.opacity==null?1:t.opacity;if(e instanceof fe){r("opacity",a);return}if(iG(t)){var n=sn(t.fill);r("fill",n.color);var o=t.fillOpacity!=null?t.fillOpacity*n.opacity*a:n.opacity*a;(i||o<1)&&r("fill-opacity",o)}else r("fill",So);if(aG(t)){var s=sn(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,h=t.strokeFirst;if((i||u!==1)&&r("stroke-width",u),(i||h)&&r("paint-order",h?"stroke":"fill"),(i||f<1)&&r("stroke-opacity",f),t.lineDash){var c=od(e),v=c[0],d=c[1];v&&(d=rG(d||0),r("stroke-dasharray",v.join(",")),(d||i)&&r("stroke-dashoffset",d))}else i&&r("stroke-dasharray",So);for(var p=0;p<Jv.length;p++){var g=Jv[p];if(i||t[g]!==Dl[g]){var y=t[g]||Dl[g];y&&r(nG[p],y)}}}else i&&r("stroke",So)}var YT="http://www.w3.org/2000/svg",XT="http://www.w3.org/1999/xlink",sG="http://www.w3.org/2000/xmlns/",lG="http://www.w3.org/XML/1998/namespace";function ZT(r){return document.createElementNS(YT,r)}function Nt(r,t,e,i,a){return{tag:r,attrs:e||{},children:i,text:a,key:t}}function uG(r,t){var e=[];if(t)for(var i in t){var a=t[i],n=i;a!==!1&&(a!==!0&&a!=null&&(n+='="'+a+'"'),e.push(n))}return"<"+r+" "+e.join(" ")+">"}function fG(r){return"</"+r+">"}function jd(r,t){t=t||{};var e=t.newline?`
`:"";function i(a){var n=a.children,o=a.tag,s=a.attrs;return uG(o,s)+(a.text||"")+(n?""+e+z(n,function(l){return i(l)}).join(e)+e:"")+fG(o)}return i(r)}function hG(r,t,e){e=e||{};var i=e.newline?`
`:"",a=" {"+i,n=i+"}",o=z(at(r),function(l){return l+a+z(at(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+n}).join(i),s=z(at(t),function(l){return"@keyframes "+l+a+z(at(t[l]),function(u){return u+a+z(at(t[l][u]),function(f){var h=t[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(i)+n}).join(i)+n}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function Qv(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function R_(r,t,e,i){return Nt("svg","root",{width:r,height:t,xmlns:YT,"xmlns:xlink":XT,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+t:!1},e)}var E_={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"},ta="transform-origin";function vG(r,t,e){var i=O({},r.shape);O(i,t),r.buildPath(e,i);var a=new UT;return a.reset(w1(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function cG(r,t){var e=t.originX,i=t.originY;(e||i)&&(r[ta]=e+"px "+i+"px")}var dG={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function qT(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function pG(r,t,e){var i=r.shape.paths,a={},n,o;if(w(i,function(l){var u=Qv(e.zrId);u.animation=!0,Uu(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,c=at(f),v=c.length;if(!!v){o=c[v-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(n=m)}}}),!!n){t.d=!1;var s=qT(a,e);return n.replace(o,s)}}function k_(r){return V(r)?E_[r]?"cubic-bezier("+E_[r]+")":hc(r)?r:"":""}function Uu(r,t,e,i){var a=r.animators,n=a.length,o=[];if(r instanceof yu){var s=pG(r,t,e);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var f=a[u],h=[f.getMaxTime()/1e3+"s"],c=k_(f.getClip().easing),v=f.getDelay();c?h.push(c):h.push("linear"),v&&h.push(v/1e3+"s"),f.getLoop()&&h.push("infinite");var d=h.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,b={},x={},T={},C="animation-timing-function";function A(Vt,Pt,wt){for(var j=Vt.getTracks(),lt=Vt.getMaxTime(),he=0;he<j.length;he++){var Lt=j[he];if(Lt.needsAnimate()){var Ue=Lt.keyframes,ve=Lt.propName;if(wt&&(ve=wt(ve)),ve)for(var Pr=0;Pr<Ue.length;Pr++){var Aa=Ue[Pr],Ye=Math.round(Aa.time/lt*100)+"%",ns=k_(Aa.easing),jr=Aa.rawValue;(V(jr)||yt(jr))&&(Pt[Ye]=Pt[Ye]||{},Pt[Ye][ve]=Aa.rawValue,ns&&(Pt[Ye][C]=ns))}}}}for(var D=0;D<S;D++){var M=_[D],P=M.targetName;P?P==="shape"&&A(M,x):!i&&A(M,b)}for(var L in b){var I={};D1(I,r),O(I,b[L]);var E=T1(I),k=b[L][C];T[L]=E?{transform:E}:{},cG(T[L],I),k&&(T[L][C]=k)}var W,B=!0;for(var L in x){T[L]=T[L]||{};var F=!W,k=x[L][C];F&&(W=new Ur);var Y=W.len();W.reset(),T[L].d=vG(r,x[L],W);var tt=W.len();if(!F&&Y!==tt){B=!1;break}k&&(T[L][C]=k)}if(!B)for(var L in T)delete T[L].d;if(!i)for(var D=0;D<S;D++){var M=_[D],P=M.targetName;P==="style"&&A(M,T,function(j){return dG[j]})}for(var J=at(T),st=!0,ct,D=1;D<J.length;D++){var Et=J[D-1],St=J[D];if(T[Et][ta]!==T[St][ta]){st=!1;break}ct=T[Et][ta]}if(st&&ct){for(var L in T)T[L][ta]&&delete T[L][ta];t[ta]=ct}if(Ct(J,function(Vt){return at(T[Vt]).length>0}).length){var Xt=qT(T,e);return Xt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+e.cssClassIdx++;e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}var Wo=Math.round;function KT(r){return r&&V(r.src)}function jT(r){return r&&q(r.toDataURL)}function Jd(r,t,e,i){oG(function(a,n){var o=a==="fill"||a==="stroke";o&&RA(n)?wG(t,r,a,i):o&&IA(n)?TG(e,r,a,i):r[a]=n},t,e,!1),bG(e,r,i)}function O_(r){return fi(r[0]-1)&&fi(r[1])&&fi(r[2])&&fi(r[3]-1)}function gG(r){return fi(r[4])&&fi(r[5])}function Qd(r,t,e){if(t&&!(gG(t)&&O_(t))){var i=e?10:1e4;r.transform=O_(t)?"translate("+Wo(t[4]*i)/i+" "+Wo(t[5]*i)/i+")":CA(t)}}function B_(r,t,e){for(var i=r.points,a=[],n=0;n<i.length;n++)a.push(Wo(i[n][0]*e)/e),a.push(Wo(i[n][1]*e)/e);t.points=a.join(" ")}function N_(r){return!r.smooth}function yG(r){var t=z(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,i,a){for(var n=0;n<t.length;n++){var o=t[n],s=e[o[0]];s!=null&&(i[o[1]]=Wo(s*a)/a)}}}var mG={circle:[yG(["cx","cy","r"])],polyline:[B_,N_],polygon:[B_,N_]};function _G(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function JT(r,t){var e=r.style,i=r.shape,a=mG[r.type],n={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&w1(r)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](i))&&!(o&&_G(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](i,n,f)}else{r.path||r.createPathProxy();var h=r.path;r.shapeChanged()&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var c=h.getVersion(),v=r,d=v.__svgPathBuilder;(v.__svgPathVersion!==c||!d||l!==v.__svgPathStrokePercent)&&(d||(d=v.__svgPathBuilder=new UT),d.reset(u),h.rebuildPath(d,l),d.generateStr(),v.__svgPathVersion=c,v.__svgPathStrokePercent=l),n.d=d.getStr()}return Qd(n,r.transform),Jd(n,e,r,t),t.animation&&Uu(r,n,t),Nt(s,r.id+"",n)}function SG(r,t){var e=r.style,i=e.image;if(i&&!V(i)&&(KT(i)?i=i.src:jT(i)&&(i=i.toDataURL())),!!i){var a=e.x||0,n=e.y||0,o=e.width,s=e.height,l={href:i,width:o,height:s};return a&&(l.x=a),n&&(l.y=n),Qd(l,r.transform),Jd(l,e,r,t),t.animation&&Uu(r,l,t),Nt("image",r.id+"",l)}}function xG(r,t){var e=r.style,i=e.text;if(i!=null&&(i+=""),!(!i||isNaN(e.x)||isNaN(e.y))){var a=e.font||mi,n=e.x||0,o=MA(e.y||0,su(a),e.textBaseline),s=AA[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(nS(e)){var u="",f=e.fontStyle,h=aS(e.fontSize);if(!parseFloat(h))return;var c=e.fontFamily||$_,v=e.fontWeight;u+="font-size:"+h+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return i.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),Qd(l,r.transform),Jd(l,e,r,t),t.animation&&Uu(r,l,t),Nt("text",r.id+"",l,void 0,i)}}function z_(r,t){if(r instanceof gt)return JT(r,t);if(r instanceof fe)return SG(r,t);if(r instanceof Mo)return xG(r,t)}function bG(r,t,e){var i=r.style;if(DA(i)){var a=PA(r),n=e.shadowCache,o=n[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,h=i.shadowOffsetY||0,c=i.shadowBlur,v=sn(i.shadowColor),d=v.opacity,p=v.color,g=c/2/l,y=c/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=Nt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Nt("feDropShadow","",{dx:f/l,dy:h/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),n[a]=o}t.filter=nu(o)}}function wG(r,t,e,i){var a=r[e],n,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(x1(a))n="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(b1(a))n="radialGradient",o.cx=it(a.x,.5),o.cy=it(a.y,.5),o.r=it(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var h=Wh(s[u].offset)*100+"%",c=s[u].color,v=sn(c),d=v.color,p=v.opacity,g={offset:h};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Nt("stop",u+"",g))}var y=Nt(n,"",o,l),m=jd(y),_=i.gradientCache,S=_[m];S||(S=i.zrId+"-g"+i.gradientIdx++,_[m]=S,o.id=S,i.defs[S]=Nt(n,S,o,l)),t[e]=nu(S)}function TG(r,t,e,i){var a=r.style[e],n={patternUnits:"userSpaceOnUse"},o;if(S1(a)){var s=a.imageWidth,l=a.imageHeight,u=void 0,f=a.image;if(V(f)?u=f:KT(f)?u=f.src:jT(f)&&(u=f.toDataURL()),typeof Image=="undefined"){var h="Image width/height must been given explictly in svg-ssr renderer.";le(s,h),le(l,h)}else if(s==null||l==null){var c=function(m,_){if(m){var S=m.elm,b=m.attrs.width=s||_.width,x=m.attrs.height=l||_.height;S&&(S.setAttribute("width",b),S.setAttribute("height",x))}},v=wc(u,null,r,function(m){c(d,m),c(o,m)});v&&v.width&&v.height&&(s=s||v.width,l=l||v.height)}o=Nt("image","img",{href:u,width:s,height:l}),n.width=s,n.height=l}else a.svgElement&&(o=X(a.svgElement),n.width=a.svgWidth,n.height=a.svgHeight);if(!!o){n.patternTransform=T1(a);var d=Nt("pattern","",n,[o]),p=jd(d),g=i.patternCache,y=g[p];y||(y=i.zrId+"-p"+i.patternIdx++,g[p]=y,n.id=y,d=i.defs[y]=Nt("pattern",y,n,[o])),t[e]=nu(y)}}function CG(r,t,e){var i=e.clipPathCache,a=e.defs,n=i[r.id];if(!n){n=e.zrId+"-c"+e.clipPathIdx++;var o={id:n};i[r.id]=n,a[n]=Nt("clipPath",n,o,[JT(r,e)])}t["clip-path"]=nu(n)}function V_(r){return document.createTextNode(r)}function ia(r,t,e){r.insertBefore(t,e)}function F_(r,t){r.removeChild(t)}function G_(r,t){r.appendChild(t)}function QT(r){return r.parentNode}function tC(r){return r.nextSibling}function Rh(r,t){r.textContent=t}var H_=58,AG=120,MG=Nt("","");function tc(r){return r===void 0}function pr(r){return r!==void 0}function DG(r,t,e){for(var i={},a=t;a<=e;++a){var n=r[a].key;n!==void 0&&(i[n]=a)}return i}function no(r,t){var e=r.key===t.key,i=r.tag===t.tag;return i&&e}function $o(r){var t,e=r.children,i=r.tag;if(pr(i)){var a=r.elm=ZT(i);if(tp(MG,r),N(e))for(t=0;t<e.length;++t){var n=e[t];n!=null&&G_(a,$o(n))}else pr(r.text)&&!U(r.text)&&G_(a,V_(r.text))}else r.elm=V_(r.text);return r.elm}function eC(r,t,e,i,a){for(;i<=a;++i){var n=e[i];n!=null&&ia(r,$o(n),t)}}function eu(r,t,e,i){for(;e<=i;++e){var a=t[e];if(a!=null)if(pr(a.tag)){var n=QT(a.elm);F_(n,a.elm)}else F_(r,a.elm)}}function tp(r,t){var e,i=t.elm,a=r&&r.attrs||{},n=t.attrs||{};if(a!==n){for(e in n){var o=n[e],s=a[e];s!==o&&(o===!0?i.setAttribute(e,""):o===!1?i.removeAttribute(e):e.charCodeAt(0)!==AG?i.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?i.setAttributeNS(sG,e,o):e.charCodeAt(3)===H_?i.setAttributeNS(lG,e,o):e.charCodeAt(5)===H_?i.setAttributeNS(XT,e,o):i.setAttribute(e,o))}for(e in a)e in n||i.removeAttribute(e)}}function PG(r,t,e){for(var i=0,a=0,n=t.length-1,o=t[0],s=t[n],l=e.length-1,u=e[0],f=e[l],h,c,v,d;i<=n&&a<=l;)o==null?o=t[++i]:s==null?s=t[--n]:u==null?u=e[++a]:f==null?f=e[--l]:no(o,u)?(Za(o,u),o=t[++i],u=e[++a]):no(s,f)?(Za(s,f),s=t[--n],f=e[--l]):no(o,f)?(Za(o,f),ia(r,o.elm,tC(s.elm)),o=t[++i],f=e[--l]):no(s,u)?(Za(s,u),ia(r,s.elm,o.elm),s=t[--n],u=e[++a]):(tc(h)&&(h=DG(t,i,n)),c=h[u.key],tc(c)?ia(r,$o(u),o.elm):(v=t[c],v.tag!==u.tag?ia(r,$o(u),o.elm):(Za(v,u),t[c]=void 0,ia(r,v.elm,o.elm))),u=e[++a]);(i<=n||a<=l)&&(i>n?(d=e[l+1]==null?null:e[l+1].elm,eC(r,d,e,a,l)):eu(r,t,i,n))}function Za(r,t){var e=t.elm=r.elm,i=r.children,a=t.children;r!==t&&(tp(r,t),tc(t.text)?pr(i)&&pr(a)?i!==a&&PG(e,i,a):pr(a)?(pr(r.text)&&Rh(e,""),eC(e,null,a,0,a.length-1)):pr(i)?eu(e,i,0,i.length-1):pr(r.text)&&Rh(e,""):r.text!==t.text&&(pr(i)&&eu(e,i,0,i.length-1),Rh(e,t.text)))}function LG(r,t){if(no(r,t))Za(r,t);else{var e=r.elm,i=QT(e);$o(t),i!==null&&(ia(i,t.elm,tC(e)),eu(i,[r],0,0))}return t}var IG=0,RG=function(){function r(t,e,i){if(this.type="svg",this.refreshHover=W_(),this.configLayer=W_(),this.storage=e,this._opts=i=O({},i),this.root=t,this._id="zr"+IG++,this._oldVNode=R_(i.width,i.height),t&&!i.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=ZT("svg");tp(null,this._oldVNode),a.appendChild(n),t.appendChild(a)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",LG(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return z_(t,Qv(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),i=this._backgroundColor,a=this._width,n=this._height,o=Qv(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var s=[];if(i&&i!=="none"){var l=sn(i),u=l.color,f=l.opacity;this._bgVNode=Nt("rect","bg",{width:a,height:n,x:"0",y:"0",id:"0",fill:u,"fill-opacity":f}),s.push(this._bgVNode)}else this._bgVNode=null;var h=t.compress?null:this._mainVNode=Nt("g","main",{},[]);this._paintList(e,o,h?h.children:s),h&&s.push(h);var c=z(at(o.defs),function(p){return o.defs[p]});if(c.length&&s.push(Nt("defs","defs",{},c)),t.animation){var v=hG(o.cssNodes,o.cssAnims,{newline:!0});if(v){var d=Nt("style","stl",{},[],v);s.push(d)}}return R_(a,n,s,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},jd(this.renderToVNode({animation:it(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:it(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var i=sn(t),a=i.color,n=i.opacity;e.elm.setAttribute("fill",a),n<1&&e.elm.setAttribute("fill-opacity",n)}},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,i){for(var a=t.length,n=[],o=0,s,l,u=0,f=0;f<a;f++){var h=t[f];if(!h.invisible){var c=h.__clipPaths,v=c&&c.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(v-1,d-1);p>=0&&!(c&&l&&c[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=n[o-1];for(var y=p+1;y<v;y++){var m={};CG(c[y],m,e);var _=Nt("g","clip-g-"+u++,m,[]);(s?s.children:i).push(_),n[o++]=_,s=_}l=c;var S=z_(h,e);S&&(s?s.children:i).push(S)}}},r.prototype.resize=function(t,e){var i=this._opts,a=this.root,n=this._viewport;if(t!=null&&(i.width=t),e!=null&&(i.height=e),a&&n&&(n.style.display="none",t=hy(a,0,i),e=hy(a,1,i),n.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,n){var o=n.style;o.width=t+"px",o.height=e+"px"}var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),i="data:image/svg+xml;";return t?(e=EA(e),e&&i+"base64,"+e):i+"charset=UTF-8,"+e},r}();function W_(r){return function(){}}var EG=RG;function kG(r){r.registerPainter("svg",EG)}Gt([qF,SF,pF,q5,Pz,Q3,jN,Vk,xk,jk,eN,iB,kG,f5,Tw,YV,_3,Z3,OF,Bz,Uz,GO]);function jG(r,t="default"){const{getDarkMode:e}=nC(),i=np(()=>t==="default"?e.value:t);let a=null,n=h;const o=oC({});let s=()=>{};n=vC(h,200);const l=np(()=>i.value!=="dark"?o.value:ap({backgroundColor:"transparent"},o.value));function u(v=t){const d=Ma(r);if(!d||!Ma(d))return;a=Zy.init(d,v);const{removeEvent:p}=fC({el:window,name:"resize",listener:n});s=p;const{widthRef:g,screenEnum:y}=hC();(Ma(g)<=y.MD||d.offsetHeight===0)&&Xu(()=>{n()},30)}function f(v,d=!0){var p;if(o.value=v,((p=Ma(r))==null?void 0:p.offsetHeight)===0){Xu(()=>{f(Ma(l))},30);return}sC(()=>{Xu(()=>{!a&&(u(i.value),!a)||(d&&(a==null||a.clear()),a==null||a.setOption(Ma(l)))},30)})}function h(){a==null||a.resize({animation:{duration:300,easing:"quadraticIn"}})}lC(()=>i.value,v=>{a&&(a.dispose(),u(v),f(o.value))}),uC(()=>{!a||(s(),a.dispose(),a=null)});function c(){return a||u(i.value),a}return{setOptions:f,resize:h,echarts:Zy,getInstance:c}}export{Tt as $,lB as A,ht as B,$t as C,J_ as D,iv as E,Lc as F,rt as G,vu as H,Z as I,hn as J,Mc as K,Do as L,ft as M,le as N,O,gt as P,z as Q,Aw as R,Td as S,aa as T,N as U,Ew as V,Jt as W,yd as X,Bu as Y,V as Z,R as _,XG as a,lD as a$,Cr as a0,be as a1,KB as a2,Wt as a3,Pg as a4,$ as a5,At as a6,Zc as a7,HG as a8,Mr as a9,lc as aA,r1 as aB,IC as aC,Q_ as aD,RC as aE,xa as aF,bt as aG,ne as aH,Ge as aI,Rt as aJ,Si as aK,un as aL,fn as aM,nd as aN,Eu as aO,Ut as aP,xu as aQ,Tl as aR,Kt as aS,ua as aT,tw as aU,Yt as aV,es as aW,Du as aX,pw as aY,Ml as aZ,TL as a_,pt as aa,sS as ab,ln as ac,gd as ad,H as ae,Hr as af,dc as ag,Mg as ah,ov as ai,Pc as aj,qD as ak,Zr as al,qr as am,sc as an,$r as ao,Fe as ap,dt as aq,il as ar,_1 as as,se as at,Fr as au,mM as av,yt as aw,Ja as ax,t1 as ay,e1 as az,XE as b,as as b$,Ot as b0,kD as b1,fe as b2,V2 as b3,rm as b4,Ar as b5,Md as b6,He as b7,Po as b8,et as b9,hD as bA,Z_ as bB,_i as bC,Cd as bD,ok as bE,zt as bF,Fl as bG,Ws as bH,Pl as bI,Hh as bJ,c5 as bK,Gu as bL,mg as bM,qG as bN,G as bO,YG as bP,z2 as bQ,h5 as bR,v5 as bS,mu as bT,kc as bU,T5 as bV,yh as bW,Hv as bX,Ti as bY,Su as bZ,OO as b_,Il as ba,nx as bb,cw as bc,Wr as bd,xo as be,Gt as bf,jN as bg,jo as bh,NG as bi,fR as bj,pP as bk,bu as bl,_r as bm,SM as bn,xe as bo,ae as bp,sk as bq,U as br,rd as bs,R2 as bt,Nr as bu,Ad as bv,jA as bw,Sl as bx,_p as by,Ra as bz,ZE as c,Rc as c$,Be as c0,kO as c1,ut as c2,is as c3,lr as c4,Fu as c5,cn as c6,cT as c7,M5 as c8,gT as c9,bb as cA,te as cB,WG as cC,$G as cD,DC as cE,tL as cF,or as cG,pL as cH,UG as cI,Vr as cJ,PC as cK,gr as cL,nr as cM,Dp as cN,iu as cO,fy as cP,MC as cQ,py as cR,Sv as cS,Yx as cT,gp as cU,nc as cV,hy as cW,Ur as cX,wl as cY,VG as cZ,tl as c_,vT as ca,yT as cb,D5 as cc,Dt as cd,Gd as ce,zo as cf,Gy as cg,k2 as ch,X as ci,o_ as cj,KG as ck,LT as cl,ts as cm,Jw as cn,gF as co,Q as cp,Je as cq,Xn as cr,vt as cs,Sx as ct,vl as cu,bi as cv,Sr as cw,HD as cx,hS as cy,Gx as cz,UE as d,AL as d0,FG as d1,kG as d2,xk as d3,Vk as d4,jk as d5,GO as d6,iB as d7,eN as d8,f5 as d9,q5 as da,Pz as db,tN as dc,Bz as dd,Uz as de,YV as df,pF as dg,SF as dh,OF as di,qF as dj,_3 as dk,s3 as dl,m3 as dm,Z3 as dn,G3 as dp,X3 as dq,Q3 as dr,db as ds,w as e,Ct as f,nt as g,qE as h,q as i,YE as j,at as k,po as l,xt as m,Jo as n,Qt as o,K as p,ot as q,it as r,ZG as s,Mt as t,jG as u,GG as v,ue as w,zG as x,Mw as y,sB as z};
