1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- var vC=Object.defineProperty;var sd=Object.getOwnPropertySymbols;var cC=Object.prototype.hasOwnProperty,pC=Object.prototype.propertyIsEnumerable;var ld=(r,t,e)=>t in r?vC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,ud=(r,t)=>{for(var e in t||(t={}))cC.call(t,e)&&ld(r,e,t[e]);if(sd)for(var e of sd(t))pC.call(t,e)&&ld(r,e,t[e]);return r};import{bB as dC,f as fd,s as gC,a7 as yC,cc as mC,i as La,b4 as qu,al as _C,du as SC,ed as xC,bs as bC}from"./index.7e08ba81.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 Bh=function(r,t){return Bh=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])},Bh(r,t)};function O(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Bh(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var wC=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),TC=function(){function r(){this.browser=new wC,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 TC;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):CC(navigator.userAgent,Ji);function CC(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 ht=Ji,nc=12,K_="sans-serif",_i=nc+"px "+K_,AC=20,MC=100,DC="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function PC(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)-AC)/MC;t[i]=a}return t}var LC=PC(DC),Si={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,i){if(!r){var a=Si.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==i&&(t=r.font=i||_i),r.measureText(e);e=e||"",i=i||_i;var n=/(\d+)px/.exec(i),o=n&&+n[1]||nc,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=LC[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 j_(r){for(var t in Si)r[t]&&(Si[t]=r[t])}var J_=Ve(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Q_=Ve(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),yn=Object.prototype.toString,au=Array.prototype,IC=au.forEach,RC=au.filter,oc=au.slice,EC=au.map,hd=function(){}.constructor,us=hd?hd.prototype:null,sc="__proto__",kC=2311;function lc(){return kC++}function uc(){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(!en(r)){t=[];for(var i=0,a=r.length;i<a;i++)t[i]=X(r[i])}}else if(Q_[e]){if(!en(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(!J_[e]&&!en(r)&&!sn(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==sc&&(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!==sc){var a=r[i],n=t[i];U(n)&&U(a)&&!N(n)&&!N(a)&&!sn(n)&&!sn(a)&&!Nh(n)&&!Nh(a)&&!en(n)&&!en(a)?Q(a,n,e):(e||!(i in r))&&(r[i]=X(t[i]))}return r}function t1(r,t){for(var e=r[0],i=1,a=r.length;i<a;i++)e=Q(e,r[i],t);return e}function k(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==sc&&(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 OC=Si.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 fc(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 Xt(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 ee(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function w(r,t,e){if(!!(r&&t))if(r.forEach&&r.forEach===IC)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 ou(r);if(r.map&&r.map===EC)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 ou(r);if(r.filter&&r.filter===RC)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 e1(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 BC(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(oc.call(arguments)))}}var H=us&&q(us.bind)?us.call.bind(us.bind):BC;function vt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(oc.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 Sl(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 Nh(r){return!!J_[yn.call(r)]}function xe(r){return!!Q_[yn.call(r)]}function sn(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function nu(r){return r.colorStops!=null}function NC(r){return r.image!=null}function zC(r){return yn.call(r)==="[object RegExp]"}function bo(r){return r!==r}function Gr(){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 rt(r,t){return r!=null?r:t}function tn(r,t,e){return r!=null?r:t!=null?t:e}function ou(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return oc.apply(r,t)}function hc(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 he(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 r1="__ec_primitive__";function wo(r){r[r1]=!0}function en(r){return r[r1]}var VC=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return at(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r}(),i1=typeof Map=="function";function FC(){return i1?new Map:new VC}var a1=function(){function r(t){var e=N(t);this.data=FC();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.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,a){t.call(e,i,a)})},r.prototype.keys=function(){var t=this.data.keys();return i1?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function $(r){return new a1(r)}function n1(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 Zo(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&k(e,t),e}function GC(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 Gt(){}var so=180/Math.PI,HC=Object.freeze(Object.defineProperty({__proto__:null,guid:lc,logError:uc,clone:X,merge:Q,mergeAll:t1,extend:k,defaults:Z,createCanvas:OC,indexOf:ot,inherits:fc,mixin:Xt,isArrayLike:ee,each:w,map:z,reduce:Ve,filter:Ct,find:e1,keys:at,bind:H,curry:vt,isArray:N,isFunction:q,isString:V,isStringSafe:Sl,isNumber:yt,isObject:U,isBuiltInObject:Nh,isTypedArray:xe,isDom:sn,isGradientObject:nu,isImagePatternObject:NC,isRegExp:zC,eqNaN:bo,retrieve:Gr,retrieve2:rt,retrieve3:tn,slice:ou,normalizeCssArray:hc,assert:he,trim:ze,setAsPrimitive:wo,isPrimitive:en,HashMap:a1,createHashMap:$,concatArray:n1,createObject:Zo,disableUserSelect:GC,hasOwn:G,noop:Gt,RADIAN_TO_DEGREE:so},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
- 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 zh=function(r,t){return zh=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])},zh(r,t)};function bt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zh(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Ta(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function o1(r,t){return r[0]=t[0],r[1]=t[1],r}function s1(r){return[r[0],r[1]]}function WC(r,t,e){return r[0]=t,r[1]=e,r}function Vh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function $C(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function l1(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function vc(r){return Math.sqrt(cc(r))}var UC=vc;function cc(r){return r[0]*r[0]+r[1]*r[1]}var YC=cc;function XC(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function ZC(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function qC(r,t){return r[0]*t[0]+r[1]*t[1]}function el(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function u1(r,t){var e=vc(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function xl(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var bl=xl;function f1(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var ha=f1;function KC(r,t){return r[0]=-t[0],r[1]=-t[1],r}function rl(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 Ht(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 Br(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Nr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var jC=Object.freeze(Object.defineProperty({__proto__:null,create:Ta,copy:o1,clone:s1,set:WC,add:Vh,scaleAndAdd:$C,sub:l1,len:vc,length:UC,lenSquare:cc,lengthSquare:YC,mul:XC,div:ZC,dot:qC,scale:el,normalize:u1,distance:xl,dist:bl,distanceSquare:f1,distSquare:ha,negate:KC,lerp:rl,applyTransform:Ht,min:Br,max:Nr},Symbol.toStringTag,{value:"Module"})),Ia=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),JC=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 Ia(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 Ia(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 Ia(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ia(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ia(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ia(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),QC=JC,tA=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}(),or=tA,eA=Math.log(2);function Fh(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)/eA);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 p=1<<c;p&a||(h+=(v%2?-1:1)*r[e][c]*Fh(r,t-1,f,u,a|p,n),v++)}return n[o]=h,h}function vd(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=Fh(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)*Fh(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 cd="___zrEVENTSAVED",Ku=[];function rA(r,t,e,i,a){return Gh(Ku,t,i,a,!0)&&Gh(r,e,Ku[0],Ku[1])}function Gh(r,t,e,i,a){if(t.getBoundingClientRect&&ht.domSupported&&!h1(t)){var n=t[cd]||(t[cd]={}),o=iA(t,n),s=aA(o,n,a);if(s)return s(r,e,i),!0}return!1}function iA(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 aA(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?vd(s,o):vd(o,s))}function h1(r){return r.nodeName.toUpperCase()==="CANVAS"}var nA=/([&<>"'])/g,oA={"&":"&","<":"<",">":">",'"':""","'":"'"};function oe(r){return r==null?"":(r+"").replace(nA,function(t,e){return oA[e]})}var sA=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ju=[],lA=ht.browser.firefox&&+ht.browser.version.split(".")[0]<39;function Hh(r,t,e,i){return e=e||{},i?pd(r,t,e):lA&&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):pd(r,t,e),e}function pd(r,t,e){if(ht.domSupported&&r.getBoundingClientRect){var i=t.clientX,a=t.clientY;if(h1(r)){var n=r.getBoundingClientRect();e.zrX=i-n.left,e.zrY=a-n.top;return}else if(Gh(ju,r,i,a)){e.zrX=ju[0],e.zrY=ju[1];return}}e.zrX=e.zrY=0}function pc(r){return r||window.event}function Ie(r,t,e){if(t=pc(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&&Hh(r,o,t,e)}else{Hh(r,t,t,e);var n=uA(t);t.zrDelta=n?n/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&sA.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function uA(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 Wh(r,t,e,i){r.addEventListener(t,e,i)}function fA(r,t,e,i){r.removeEventListener(t,e,i)}var Hr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function dd(r){return r.which===2||r.which===3}var hA=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=Hh(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 Ju)if(Ju.hasOwnProperty(e)){var i=Ju[e](this._track,t);if(i)return i}},r}();function gd(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function vA(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Ju={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=gd(i)/gd(a);!isFinite(n)&&(n=1),t.pinchScale=n;var o=vA(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Fe(){return[1,0,0,1,0,0]}function qo(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function su(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 Tr(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 Wr(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 Ai(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 Ca(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 cA(r){var t=Fe();return su(t,r),t}var pA=Object.freeze(Object.defineProperty({__proto__:null,create:Fe,identity:qo,copy:su,mul:Tr,translate:Wr,rotate:Ai,scale:dc,invert:Ca,clone:cA},Symbol.toStringTag,{value:"Module"})),dA=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=dA,fs=Math.min,hs=Math.max,Pi=new et,Li=new et,Ii=new et,Ri=new et,Cn=new et,An=new et,gA=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=fs(t.x,this.x),i=fs(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hs(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=hs(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 Wr(n,n,[-e.x,-e.y]),dc(n,n,[i,a]),Wr(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,p=0,d=Math.abs(n-l),g=Math.abs(u-a),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(d,g),S=Math.min(y,m);n<l||u<a?_>p&&(p=_,d<g?et.set(An,-d,0):et.set(An,g,0)):_<v&&(v=_,d<g?et.set(Cn,d,0):et.set(Cn,-g,0)),s<f||h<o?S>p&&(p=S,y<m?et.set(An,0,-y):et.set(An,0,m)):_<v&&(v=_,y<m?et.set(Cn,0,y):et.set(Cn,0,-m))}return e&&et.copy(e,c?Cn:An),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}Pi.x=Ii.x=e.x,Pi.y=Ri.y=e.y,Li.x=Ri.x=e.x+e.width,Li.y=Ii.y=e.y+e.height,Pi.transform(i),Ri.transform(i),Li.transform(i),Ii.transform(i),t.x=fs(Pi.x,Li.x,Ii.x,Ri.x),t.y=fs(Pi.y,Li.y,Ii.y,Ri.y);var l=hs(Pi.x,Li.x,Ii.x,Ri.x),u=hs(Pi.y,Li.y,Ii.y,Ri.y);t.width=l-t.x,t.height=u-t.y},r}(),st=gA,v1="silent";function yA(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:mA}}function mA(){Hr(this.event)}var _A=function(r){bt(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}(or),Mn=function(){function r(t,e){this.x=t,this.y=e}return r}(),SA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Qu=new st(0,0,0,0),c1=function(r){bt(t,r);function t(e,i,a,n,o){var s=r.call(this)||this;return s._hovered=new Mn(0,0),s.storage=e,s.painter=i,s.painterRoot=n,s._pointerSize=o,a=a||new _A,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new QC(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(w(SA,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=p1(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 Mn(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 Mn(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=yA(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){var n=this.storage.getDisplayList(),o=new Mn(e,i);if(yd(n,o,e,i,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new st(e-u,i-u,l,l),h=n.length-1;h>=0;h--){var c=n[h];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Qu.copy(c.getBoundingRect()),c.transform&&Qu.applyTransform(c.transform),Qu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,p=Math.PI/12,d=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<d;y+=p){var m=e+g*Math.cos(y),_=i+g*Math.sin(y);if(yd(s,o,m,_,a),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new hA);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 Mn;s.target=n.target,this.dispatchToElement(s,o,n.event)}},t}(or);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){c1.prototype[r]=function(t){var e=t.zrX,i=t.zrY,a=p1(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||bl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,t)}});function xA(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?v1:!0}return!1}function yd(r,t,e,i,a){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==a&&!o.ignore&&(s=xA(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==v1)){t.target=o;break}}}function p1(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var bA=c1,d1=32,Dn=7;function wA(r){for(var t=0;r>=d1;)t|=r&1,r>>=1;return r+t}function md(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++;TA(r,t,a)}else for(;a<e&&i(r[a],r[a-1])>=0;)a++;return a-t}function TA(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function _d(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 tf(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 ef(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 CA(r,t){var e=Dn,i,a,n=0;r.length;var o=[];i=[],a=[];function s(v,p){i[n]=v,a[n]=p,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 p=i[v],d=a[v],g=i[v+1],y=a[v+1];a[v]=d+y,v===n-3&&(i[v+1]=i[v+2],a[v+1]=a[v+2]),n--;var m=ef(r[g],r,p,d,0,t);p+=m,d-=m,d!==0&&(y=tf(r[p+d-1],r,g,y,y-1,t),y!==0&&(d<=y?h(p,d,g,y):c(p,d,g,y)))}function h(v,p,d,g){var y=0;for(y=0;y<p;y++)o[y]=r[v+y];var m=0,_=d,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<p;y++)r[S+y]=o[m+y];return}if(p===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,--p===1){C=!0;break}while((x|T)<b);if(C)break;do{if(x=ef(r[_],o,m,p,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,p-=x,p<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(T=tf(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++],--p===1){C=!0;break}b--}while(x>=Dn||T>=Dn);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)r[S+y]=o[m+y]}}function c(v,p,d,g){var y=0;for(y=0;y<g;y++)o[y]=r[d+y];var m=v+p-1,_=g-1,S=d+g-1,b=0,x=0;if(r[S--]=r[m--],--p===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-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,--p===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=p-ef(o[_],r,v,p,p-1,t),C!==0){for(S-=C,m-=C,p-=C,x=S+1,b=m+1,y=C-1;y>=0;y--)r[x+y]=r[b+y];if(p===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(A=g-tf(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--],--p===0){D=!0;break}T--}while(C>=Dn||A>=Dn);if(D)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-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 il(r,t,e,i){e||(e=0),i||(i=r.length);var a=i-e;if(!(a<2)){var n=0;if(a<d1){n=md(r,e,i,t),_d(r,e,i,e+n,t);return}var o=CA(r,t),s=wA(a);do{if(n=md(r,e,i,t),n<s){var l=a;l>s&&(l=s),_d(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 yr=1,Jn=2,Za=4,Sd=!1;function rf(){Sd||(Sd=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function xd(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var AA=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=xd}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,il(i,xd)},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|=yr),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)&&(rf(),f.z=0),isNaN(f.z2)&&(rf(),f.z2=0),isNaN(f.zlevel)&&(rf(),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}(),MA=AA,g1;g1=ht.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var bd=g1,al={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-al.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?al.bounceIn(r*2)*.5:al.bounceOut(r*2-1)*.5+.5}},y1=al,vs=Math.pow,di=Math.sqrt,wl=1e-8,m1=1e-4,wd=di(3),cs=1/3,mr=Ta(),Oe=Ta(),rn=Ta();function ui(r){return r>-wl&&r<wl}function _1(r){return r>wl||r<-wl}function Nt(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 Td(r,t,e,i,a){var n=1-a;return 3*(((t-r)*n+2*(e-t)*a)*n+(i-e)*a*a)}function Tl(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(ui(f)&&ui(h))if(ui(s))n[0]=0;else{var p=-l/s;p>=0&&p<=1&&(n[v++]=p)}else{var d=h*h-4*f*c;if(ui(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(n[v++]=p),y>=0&&y<=1&&(n[v++]=y)}else if(d>0){var m=di(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-vs(-_,cs):_=vs(_,cs),S<0?S=-vs(-S,cs):S=vs(S,cs);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(n[v++]=p)}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),p=(-s-2*T*C)/(3*o),y=(-s+T*(C+wd*Math.sin(x)))/(3*o),A=(-s+T*(C-wd*Math.sin(x)))/(3*o);p>=0&&p<=1&&(n[v++]=p),y>=0&&y<=1&&(n[v++]=y),A>=0&&A<=1&&(n[v++]=A)}}return v}function S1(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(ui(o)){if(_1(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if(ui(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 Cl(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 x1(r,t,e,i,a,n,o,s,l,u,f){var h,c=.005,v=1/0,p,d,g,y;mr[0]=l,mr[1]=u;for(var m=0;m<1;m+=.05)Oe[0]=Nt(r,e,a,o,m),Oe[1]=Nt(t,i,n,s,m),g=ha(mr,Oe),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<m1);_++)p=h-c,d=h+c,Oe[0]=Nt(r,e,a,o,p),Oe[1]=Nt(t,i,n,s,p),g=ha(Oe,mr),p>=0&&g<v?(h=p,v=g):(rn[0]=Nt(r,e,a,o,d),rn[1]=Nt(t,i,n,s,d),y=ha(rn,mr),d<=1&&y<v?(h=d,v=y):c*=.5);return f&&(f[0]=Nt(r,e,a,o,h),f[1]=Nt(t,i,n,s,h)),di(v)}function DA(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 p=v*c,d=Nt(r,e,a,o,p),g=Nt(t,i,n,s,p),y=d-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=d,f=g}return h}function jt(r,t,e,i){var a=1-i;return a*(a*r+2*i*t)+i*i*e}function Cd(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function PA(r,t,e,i,a){var n=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(ui(n)){if(_1(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if(ui(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 b1(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Al(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 w1(r,t,e,i,a,n,o,s,l){var u,f=.005,h=1/0;mr[0]=o,mr[1]=s;for(var c=0;c<1;c+=.05){Oe[0]=jt(r,e,a,c),Oe[1]=jt(t,i,n,c);var v=ha(mr,Oe);v<h&&(u=c,h=v)}h=1/0;for(var p=0;p<32&&!(f<m1);p++){var d=u-f,g=u+f;Oe[0]=jt(r,e,a,d),Oe[1]=jt(t,i,n,d);var v=ha(Oe,mr);if(d>=0&&v<h)u=d,h=v;else{rn[0]=jt(r,e,a,g),rn[1]=jt(t,i,n,g);var y=ha(rn,mr);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=jt(r,e,a,u),l[1]=jt(t,i,n,u)),di(h)}function LA(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=jt(r,e,a,c),p=jt(t,i,n,c),d=v-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=v,l=p}return u}var IA=/cubic-bezier\(([0-9,\.e ]+)\)/;function gc(r){var t=r&&IA.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:Tl(0,i,n,1,l,s)&&Nt(0,a,o,1,s[0])}}}var RA=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||Gt,this.ondestroy=t.ondestroy||Gt,this.onrestart=t.onrestart||Gt,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:y1[t]||gc(t)},r}(),EA=RA,T1=function(){function r(t){this.value=t}return r}(),kA=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new T1(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}(),OA=function(){function r(t){this._list=new kA,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 T1(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}(),Ko=OA,Ad={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 er(r){return r=Math.round(r),r<0?0:r>255?255:r}function BA(r){return r=Math.round(r),r<0?0:r>360?360:r}function To(r){return r<0?0:r>1?1:r}function af(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?er(parseFloat(t)/100*255):er(parseInt(t,10))}function va(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?To(parseFloat(t)/100):To(parseFloat(t))}function nf(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 fi(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 $h(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var C1=new Ko(20),ps=null;function Ra(r,t){ps&&$h(ps,t),ps=C1.put(r,ps||t.slice())}function ue(r,t){if(!!r){t=t||[];var e=C1.get(r);if(e)return $h(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Ad)return $h(t,Ad[i]),Ra(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),Ra(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),Ra(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=va(u.pop());case"rgb":if(u.length>=3)return Le(t,af(u[0]),af(u[1]),af(u[2]),u.length===3?f:va(u[3])),Ra(r,t),t;Le(t,0,0,0,1);return;case"hsla":if(u.length!==4){Le(t,0,0,0,1);return}return u[3]=va(u[3]),Uh(u,t),Ra(r,t),t;case"hsl":if(u.length!==3){Le(t,0,0,0,1);return}return Uh(u,t),Ra(r,t),t;default:return}}Le(t,0,0,0,1)}}function Uh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=va(r[1]),a=va(r[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return t=t||[],Le(t,er(nf(o,n,e+1/3)*255),er(nf(o,n,e)*255),er(nf(o,n,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function NA(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 Yh(r,t){var e=ue(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 rr(e,e.length===4?"rgba":"rgb")}}function zA(r){var t=ue(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function lo(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]=er(fi(o[0],s[0],l)),e[1]=er(fi(o[1],s[1],l)),e[2]=er(fi(o[2],s[2],l)),e[3]=To(fi(o[3],s[3],l)),e}}var VA=lo;function yc(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=ue(t[a]),s=ue(t[n]),l=i-a,u=rr([er(fi(o[0],s[0],l)),er(fi(o[1],s[1],l)),er(fi(o[2],s[2],l)),To(fi(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}var FA=yc;function nl(r,t,e,i){var a=ue(r);if(r)return a=NA(a),t!=null&&(a[0]=BA(t)),e!=null&&(a[1]=va(e)),i!=null&&(a[2]=va(i)),rr(Uh(a),"rgba")}function A1(r,t){var e=ue(r);if(e&&t!=null)return e[3]=To(t),rr(e,"rgba")}function rr(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 Co(r,t){var e=ue(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function GA(){return rr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var HA=Object.freeze(Object.defineProperty({__proto__:null,parse:ue,lift:Yh,toHex:zA,fastLerp:lo,fastMapToColor:VA,lerp:yc,mapToColor:FA,modifyHSL:nl,modifyAlpha:A1,stringify:rr,lum:Co,random:GA},Symbol.toStringTag,{value:"Module"})),Ml=Math.round;function Ao(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=ue(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var Md=1e-4;function hi(r){return r<Md&&r>-Md}function ds(r){return Ml(r*1e3)/1e3}function Xh(r){return Ml(r*1e4)/1e4}function WA(r){return"matrix("+ds(r[0])+","+ds(r[1])+","+ds(r[2])+","+ds(r[3])+","+Xh(r[4])+","+Xh(r[5])+")"}var $A={left:"start",right:"end",center:"middle",middle:"middle"};function UA(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function YA(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function XA(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 M1(r){return r&&!!r.image}function ZA(r){return r&&!!r.svgElement}function mc(r){return M1(r)||ZA(r)}function D1(r){return r.type==="linear"}function P1(r){return r.type==="radial"}function L1(r){return r&&(r.type==="linear"||r.type==="radial")}function lu(r){return"url(#"+r+")"}function I1(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 R1(r){var t=r.x||0,e=r.y||0,i=(r.rotation||0)*so,a=rt(r.scaleX,1),n=rt(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("+Ml(o*so)+"deg, "+Ml(s*so)+"deg)"),l.join(" ")}var qA=function(){return ht.hasGlobalWindow&&q(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Zh=Array.prototype.slice;function kr(r,t,e){return(t-r)*e+r}function of(r,t,e,i){for(var a=t.length,n=0;n<a;n++)r[n]=kr(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]=kr(t[o][s],e[o][s],i)}return r}function gs(r,t,e,i){for(var a=t.length,n=0;n<a;n++)r[n]=t[n]+e[n]*i;return r}function Dd(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 jA(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 JA(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]:Zh.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 uo(r){if(ee(r)){var t=r.length;if(ee(r[0])){for(var e=[],i=0;i<t;i++)e.push(Zh.call(r[i]));return e}return Zh.call(r)}return r}function ol(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 QA(r){return ee(r&&r[0])?2:1}var ys=0,sl=1,E1=2,Qn=3,qh=4,Kh=5,Pd=6;function Ld(r){return r===qh||r===Kh}function ms(r){return r===sl||r===E1}var Pn=[0,0,0,0],tM=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=Pd,l=e;if(ee(e)){var u=QA(e);s=u,(u===1&&!yt(e[0])||u===2&&!yt(e[0][0]))&&(o=!0)}else if(yt(e)&&!bo(e))s=ys;else if(V(e))if(!isNaN(+e))s=ys;else{var f=ue(e);f&&(l=f,s=Qn)}else if(nu(e)){var h=k({},l);h.colorStops=z(e.colorStops,function(v){return{offset:v.offset,color:ue(v.color)}}),D1(e)?s=qh:P1(e)&&(s=Kh),l=h}n===0?this.valType=s:(s!==this.valType||s===Pd)&&(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:y1[i]||gc(i)),a.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(d,g){return d.time-g.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=ms(a),u=Ld(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?JA(c,v,a):u&&jA(c.colorStops,v.colorStops))}if(!s&&a!==Kh&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var p=i[0].value,f=0;f<n;f++)a===ys?i[f].additiveValue=i[f].value-p:a===Qn?i[f].additiveValue=gs([],i[f].value,p,-1):ms(a)&&(i[f].additiveValue=a===sl?gs([],i[f].value,p,-1):Dd([],i[f].value,p,-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,p;if(s===1)v=p=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var d=c(h+1,s-1);for(f=d;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)}p=o[f+1],v=o[f]}if(!!(v&&p)){this._lastFr=f,this._lastFrP=e;var g=p.percent-v.percent,y=g===0?1:c((e-v.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=i?this._additiveValue:u?Pn:t[l];if((ms(n)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:p.rawValue;else if(ms(n))n===sl?of(m,v[a],p[a],y):KA(m,v[a],p[a],y);else if(Ld(n)){var _=v[a],S=p[a],b=n===qh;t[l]={type:b?"linear":"radial",x:kr(_.x,S.x,y),y:kr(_.y,S.y,y),colorStops:z(_.colorStops,function(T,C){var A=S.colorStops[C];return{offset:kr(T.offset,A.offset,y),color:ol(of([],T.color,A.color,y))}}),global:S.global},b?(t[l].x2=kr(_.x2,S.x2,y),t[l].y2=kr(_.y2,S.y2,y)):t[l].r=kr(_.r,S.r,y)}else if(u)of(m,v[a],p[a],y),i||(t[l]=ol(m));else{var x=kr(v[a],p[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===ys?t[i]=t[i]+a:e===Qn?(ue(t[i],Pn),gs(Pn,Pn,a,1),t[i]=ol(Pn)):e===sl?gs(t[i],t[i],a,1):e===E1&&Dd(t[i],t[i],a,1)},r}(),eM=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){uc("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 tM(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=ol(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,uo(u),a),this._trackKeys.push(s)}l.addKeyframe(t,uo(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 EA({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var p=e._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(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]=uo(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}(),_c=eM;function Ja(){return new Date().getTime()}var rM=function(r){bt(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=Ja()-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&&(bd(i),!e._paused&&e.update())}bd(i)},t.prototype.start=function(){this._running||(this._time=Ja(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ja(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ja()-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 _c(e,i.loop);return this.addAnimator(a),a},t}(or),iM=rM,aM=300,sf=ht.domSupported,lf=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}}(),Id={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Rd=!1;function jh(r){var t=r.pointerType;return t==="pen"||t==="touch"}function nM(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 uf(r){r&&(r.zrByTouch=!0)}function oM(r,t){return Ie(r.dom,new sM(r,t),!0)}function k1(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 sM=function(){function r(t,e){this.stopPropagation=Gt,this.stopImmediatePropagation=Gt,this.preventDefault=Gt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Ke={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;k1(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Rd=!0,r=Ie(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Rd||(r=Ie(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ie(this.dom,r),uf(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ke.mousemove.call(this,r),Ke.mousedown.call(this,r)},touchmove:function(r){r=Ie(this.dom,r),uf(r),this.handler.processGesture(r,"change"),Ke.mousemove.call(this,r)},touchend:function(r){r=Ie(this.dom,r),uf(r),this.handler.processGesture(r,"end"),Ke.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<aM&&Ke.click.call(this,r)},pointerdown:function(r){Ke.mousedown.call(this,r)},pointermove:function(r){jh(r)||Ke.mousemove.call(this,r)},pointerup:function(r){Ke.mouseup.call(this,r)},pointerout:function(r){jh(r)||Ke.mouseout.call(this,r)}};w(["click","dblclick","contextmenu"],function(r){Ke[r]=function(t){t=Ie(this.dom,t),this.trigger(r,t)}});var Jh={pointermove:function(r){jh(r)||Jh.mousemove.call(this,r)},pointerup:function(r){Jh.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 lM(r,t){var e=t.domHandlers;ht.pointerEventsSupported?w(lf.pointer,function(i){ll(t,i,function(a){e[i].call(r,a)})}):(ht.touchEventsSupported&&w(lf.touch,function(i){ll(t,i,function(a){e[i].call(r,a),nM(t)})}),w(lf.mouse,function(i){ll(t,i,function(a){a=pc(a),t.touching||e[i].call(r,a)})}))}function uM(r,t){ht.pointerEventsSupported?w(Id.pointer,e):ht.touchEventsSupported||w(Id.mouse,e);function e(i){function a(n){n=pc(n),k1(r,n.target)||(n=oM(r,n),t.domHandlers[i].call(r,n))}ll(t,i,a,{capture:!0})}}function ll(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,Wh(r.domTarget,t,e,i)}function ff(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&fA(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Ed=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),fM=function(r){bt(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 Ed(e,Ke),sf&&(a._globalHandlerScope=new Ed(document,Jh)),lM(a,a._localHandlerScope),a}return t.prototype.dispose=function(){ff(this._localHandlerScope),sf&&ff(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,sf&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?uM(this,i):ff(i)}},t}(or),hM=fM,O1=1;ht.hasGlobalWindow&&(O1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var kd=O1,Qh=.4,tv="#333",ev="#ccc",vM="#eee",Od=qo,Bd=5e-5;function Ei(r){return r>Bd||r<-Bd}var ki=[],Ea=[],hf=Fe(),vf=Math.abs,cM=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 Ei(this.rotation)||Ei(this.x)||Ei(this.y)||Ei(this.scaleX-1)||Ei(this.scaleY-1)||Ei(this.skewX)||Ei(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(Od(i),this.invTransform=null);return}i=i||Fe(),e?this.getLocalTransform(i):Od(i),t&&(e?Tr(i,t,i):su(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(ki);var i=ki[0]<0?-1:1,a=ki[1]<0?-1:1,n=((ki[0]-i)*e+i)/ki[0]||0,o=((ki[1]-a)*e+a)/ki[1]||0;t[0]*=n,t[1]*=n,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Fe(),Ca(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&&(Tr(Ea,t.invTransform,e),e=Ea);var i=this.originX,a=this.originY;(i||a)&&(hf[4]=i,hf[5]=a,Tr(Ea,e,hf),Ea[4]-=i,Ea[5]-=a,e=Ea),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&&Ht(i,i,a),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],a=this.transform;return a&&Ht(i,i,a),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&vf(t[0]-1)>1e-10&&vf(t[3]-1)>1e-10?Math.sqrt(vf(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){B1(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 p=i+s,d=a+l;e[4]=-p*n-c*d*o,e[5]=-d*o-v*p*n}else e[4]=e[5]=0;return e[0]=n,e[3]=o,e[1]=v*n,e[2]=c*o,u&&Ai(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}(),Cr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function B1(r,t){for(var e=0;e<Cr.length;e++){var i=Cr[e];r[i]=t[i]}}var na=cM,Nd={};function Ce(r,t){t=t||_i;var e=Nd[t];e||(e=Nd[t]=new Ko(500));var i=e.get(r);return i==null&&(i=Si.measureText(r,t).width,e.put(r,i)),i}function zd(r,t,e,i){var a=Ce(r,t),n=uu(t),o=to(0,a,e),s=qa(0,n,i),l=new st(o,s,a,n);return l}function jo(r,t,e,i){var a=((r||"")+"").split(`
- `),n=a.length;if(n===1)return zd(a[0],t,e,i);for(var o=new st(0,0,0,0),s=0;s<a.length;s++){var l=zd(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 qa(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function uu(r){return Ce("\u56FD",r)}function ar(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Dl(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+=ar(i[0],e.width),u+=ar(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 cf="__zr_normal__",pf=Cr.concat(["ignore"]),pM=Ve(Cr,function(r,t){return r[t]=!0,r},{ignore:!1}),ka={},dM=new st(0,0,0,0),Sc=function(){function r(t){this.id=lc(),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=dM;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),a||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ka,i,f):Dl(ka,i,f),n.x=ka.x,n.y=ka.y,o=ka.align,s=ka.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=ar(h[0],f.width),v=ar(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 p=i.offset;p&&(n.x+=p[0],n.y+=p[1],u||(n.originX=-p[0],n.originY=-p[1]));var d=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;d&&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|=yr,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()?ev:tv},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&ue(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,rr(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||{},k(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!==cf)){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,pf)},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(cf,!1,t)},r.prototype.useState=function(t,e,i,a){var n=t===cf,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){uc("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&=~yr),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),p=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.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&=~yr)}},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];k(e,n),n.textConfig&&(i=i||{},k(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=k({},a?this.textConfig:i.textConfig),k(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<pf.length;f++){var h=pf[f],c=n&&pM[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],p=v.targetName;v.getLoop()||v.__changeFinalValue(p?(e||i)[p]: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 na,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),k(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|=yr;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 _c(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){df(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){df(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,a){for(var n=df(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=yr;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}();Xt(Sc,or);Xt(Sc,na);function df(r,t,e,i,a){e=e||{};var n=[];N1(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(p,d){e.during(d)});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 gf(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function gM(r){return ee(r[0])}function yM(r,t,e){if(ee(t[e]))if(ee(r[e])||(r[e]=[]),xe(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),gf(r[e],t[e],i))}else{var a=t[e],n=r[e],o=a.length;if(gM(a))for(var s=a[0].length,l=0;l<o;l++)n[l]?gf(n[l],a[l],s):n[l]=Array.prototype.slice.call(a[l]);else gf(n,a,o);n.length=a.length}else r[e]=t[e]}function mM(r,t){return r===t||ee(r)&&ee(t)&&_M(r,t)}function _M(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 N1(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),p=r.animators,d=[],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)&&!ee(m)&&!nu(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}N1(r,y,e[y],m,a,n&&n[y],o,s)}else d.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),d.push(y))}var _=d.length;if(!h&&_)for(var S=0;S<p.length;S++){var b=p[S];if(b.targetName===t){var x=b.stopTracks(d);if(x){var T=ot(p,b);p.splice(T,1)}}}if(a.force||(d=Ct(d,function(M){return!mM(i[M],e[M])}),_=d.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=d[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=d[S];D[y]=uo(e[y]),yM(e,i,y)}}var b=new _c(e,!1,!1,h?Ct(p,function(P){return P.targetName===t}):null);b.targetName=t,a.scope&&(b.scope=a.scope),c&&C&&b.whenWithKeys(0,C,d),D&&b.whenWithKeys(0,D,d),b.whenWithKeys(u==null?500:u,s?A:i,d).delay(f||0),r.addAnimator(b,t),o.push(b)}}var z1=Sc,V1=function(r){bt(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 st(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?(st.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t}(z1);V1.prototype.type="group";var it=V1;/*!
- * 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 ul={},oa={};function SM(r){delete oa[r]}function xM(r){if(!r)return!1;if(typeof r=="string")return Co(r,1)<Qh;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,a=0;a<i;a++)e+=Co(t[a].color,1);return e/=i,e<Qh}return!1}var bM=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 MA,o=i.renderer||"canvas";ul[o]||(o=at(ul)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new ul[o](e,n,i,t),l=i.ssr||s.ssrOnly;this.storage=n,this.painter=s;var u=!ht.node&&!ht.worker&&!l?new hM(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?ht.touchEventsSupported:!!f,c=44,v;h&&(v=rt(i.pointerSize,c)),this.handler=new bA(n,s,u,s.root,v),this.animation=new iM({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=xM(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=Ja();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var a=Ja();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 it&&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,SM(this.id)},r}();function rv(r,t){var e=new bM(lc(),r,t);return oa[e.id]=e,e}function wM(r){r.dispose()}function TM(){for(var r in oa)oa.hasOwnProperty(r)&&oa[r].dispose();oa={}}function CM(r){return oa[r]}function F1(r,t){ul[r]=t}var AM="5.4.4",MM=Object.freeze(Object.defineProperty({__proto__:null,init:rv,dispose:wM,disposeAll:TM,getInstance:CM,registerPainter:F1,version:AM},Symbol.toStringTag,{value:"Module"})),Vd=1e-4,G1=20;function DM(r){return r.replace(/^\s+|\s+$/g,"")}function wt(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)?DM(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Et(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),G1),r=(+r).toFixed(t),e?r:+r}function Sr(r){return r.sort(function(t,e){return t-e}),r}function xr(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 H1(r)}function H1(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 xc(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 PM(r,t,e){if(!r[t])return 0;var i=W1(r,e);return i[t]||0}function W1(r,t){var e=Ve(r,function(v,p){return v+(isNaN(p)?0:p)},0);if(e===0)return[];for(var i=Math.pow(10,t),a=z(r,function(v){return(isNaN(v)?0:v)/e*i*100}),n=i*100,o=z(a,function(v){return Math.floor(v)}),s=Ve(o,function(v,p){return v+p},0),l=z(a,function(v,p){return v-o[p]});s<n;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return z(o,function(v){return v/i})}function LM(r,t){var e=Math.max(xr(r),xr(t)),i=r+t;return e>G1?i:Et(i,e)}var IM=9007199254740991;function bc(r){var t=Math.PI*2;return(r%t+t)%t}function Mo(r){return r>-Vd&&r<Vd}var RM=/^(?:(\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 Ae(r){if(r instanceof Date)return r;if(V(r)){var t=RM.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 $1(r){return Math.pow(10,fu(r))}function fu(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 wc(r,t){var e=fu(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 EM(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 iv(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 $r(r){var t=parseFloat(r);return t==r&&(t!==0||!V(r)||r.indexOf("x")<=0)?t:NaN}function Tc(r){return!isNaN($r(r))}function U1(){return Math.round(Math.random()*9)}function Y1(r,t){return t===0?r:Y1(t,r%t)}function Fd(r,t){return r==null?t:t==null?r:r*t/Y1(r,t)}function se(r){throw new Error(r)}function Gd(r,t,e){return(t-r)*e+r}var X1="series\0",Z1="\0_ec_\0";function Mt(r){return r instanceof Array?r:r==null?[]:[r]}function Pl(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 Hd=["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 kM(r){return U(r)&&!(r instanceof Array)}function q1(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=OM(r,o,e);return(i||a)&&BM(s,r,o,t),i&&NM(s,t),i||a?zM(s,t,a):n&&VM(s,t),FM(s),s}function OM(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"||Do(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return i}function BM(r,t,e,i){w(i,function(a,n){if(!(!a||a.id==null)){var o=fo(a.id),s=e.get(o);if(s!=null){var l=r[s];he(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],i[n]=null}}})}function NM(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)&&!Do(e)&&!Do(n)&&K1("name",n,e)){r[a].newOption=e,t[i]=null;return}}})}function zM(r,t,e){w(t,function(i){if(!!i){for(var a,n=0;(a=r[n])&&(a.newOption||Do(a.existing)||a.existing&&i.id!=null&&!K1("id",i,a.existing));)n++;a?(a.newOption=i,a.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),n++}})}function VM(r,t){w(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function FM(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;he(!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?fo(n.name):a?a.name:X1+i,a)o.id=fo(a.id);else if(n.id!=null)o.id=fo(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 K1(r,t,e){var i=Qt(t[r],null),a=Qt(e[r],null);return i!=null&&a!=null&&i===a}function fo(r){return Qt(r,"")}function Qt(r,t){return r==null?t:V(r)?r:yt(r)||Sl(r)?r+"":t}function Cc(r){var t=r.name;return!!(t&&t.indexOf(X1))}function Do(r){return r&&r.id!=null&&fo(r.id).indexOf(Z1)===0}function GM(r){return Z1+r}function HM(r,t,e){w(r,function(i){var a=i.newOption;U(a)&&(i.keyInfo.mainType=t,i.keyInfo.subType=WM(t,a,i.existing,e))})}function WM(r,t,e,i){var a=t.type?t.type:e?e.subType:i.determineSubType(r,t);return a}function $M(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=Qt(o[u].seriesId,null);if(h==null)return;for(var c=Mt(o[u].dataIndex),v=l&&l[h],p=0,d=c.length;p<d;p++){var g=c[p];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 Sa(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 St(){var r="__ec_inner_"+UM++;return function(t){return t[r]||(t[r]={})}}var UM=U1();function ho(r,t,e){var i=Ac(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=Jo(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 Ac(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},YM={useDefault:!1,enableAll:!0,enableNone:!0};function Jo(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?(he(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(he(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 j1(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function XM(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function ZM(r){return r==="auto"?ht.domSupported?"html":"richText":r||"html"}function UG(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 J1(r,t,e,i,a){var n=t==null||t==="auto";if(i==null)return i;if(yt(i)){var o=Gd(e||0,i,a);return Et(o,n?Math.max(xr(e||0),xr(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,p=u[h],o=Gd(v,p,a);s[h]=Et(o,n?Math.max(xr(v),xr(p)):t)}}return s}}var qM=".",Oi="___EC__COMPONENT__CONTAINER___",Q1="___EC__EXTENDED_CLASS___";function br(r){var t={main:"",sub:""};if(r){var e=r.split(qM);t.main=e[0]||"",t.sub=e[1]||""}return t}function KM(r){he(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function jM(r){return!!(r&&r[Q1])}function Mc(r,t){r.$constructor=r,r.extend=function(e){var i=this,a;return JM(i)?a=function(n){O(o,n);function o(){return n.apply(this,arguments)||this}return o}(i):(a=function(){(e.$constructor||i).apply(this,arguments)},fc(a,this)),k(a.prototype,e),a[Q1]=!0,a.extend=this.extend,a.superCall=eD,a.superApply=rD,a.superClass=i,a}}function JM(r){return q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function tS(r,t){r.extend=t.extend}var QM=Math.round(Math.random()*10);function tD(r){var t=["__\0is_clz",QM++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function eD(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 rD(r,t,e){return this.superClass.prototype[t].apply(r,e)}function hu(r){var t={};r.registerClass=function(i){var a=i.type||i.prototype.type;if(a){KM(a),i.prototype.type=a;var n=br(a);if(!n.sub)t[n.main]=i;else if(n.sub!==Oi){var o=e(n);o[n.sub]=i}}return i},r.getClass=function(i,a,n){var o=t[i];if(o&&o[Oi]&&(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=br(i),n=[],o=t[a.main];return o&&o[Oi]?w(o,function(s,l){l!==Oi&&n.push(s)}):n.push(o),n},r.hasClass=function(i){var a=br(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=br(i),n=t[a.main];return n&&n[Oi]};function e(i){var a=t[i.main];return(!a||!a[Oi])&&(a=t[i.main]={},a[Oi]=!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 iD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],aD=ln(iD),nD=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return aD(this,t,e)},r}(),av=new Ko(50);function oD(r){if(typeof r=="string"){var t=av.get(r);return t&&t.image}else return r}function Dc(r,t,e,i,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var n=av.get(r),o={hostEl:e,cb:i,cbPayload:a};return n?(t=n.image,!vu(t)&&n.pending.push(o)):(t=Si.loadImage(r,Wd,Wd),t.__zrImageSrc=r,av.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Wd(){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 vu(r){return r&&r.width&&r.height}var yf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function eS(r,t,e,i,a){if(!t)return"";var n=(r+"").split(`
- `);a=rS(t,e,i,a);for(var o=0,s=n.length;o<s;o++)n[o]=iS(n[o],a);return n.join(`
- `)}function rS(r,t,e,i){i=i||{};var a=k({},i);a.font=t,e=rt(e,"..."),a.maxIterations=rt(i.maxIterations,2);var n=a.minChar=rt(i.minChar,0);a.cnCharWidth=Ce("\u56FD",t);var o=a.ascCharWidth=Ce("a",t);a.placeholder=rt(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<n&&s>=o;l++)s-=o;var u=Ce(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 iS(r,t){var e=t.containerWidth,i=t.font,a=t.contentWidth;if(!e)return"";var n=Ce(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?sD(r,a,t.ascCharWidth,t.cnCharWidth):n>0?Math.floor(r.length*a/n):0;r=r.substr(0,s),n=Ce(r,i)}return r===""&&(r=t.placeholder),r}function sD(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 lD(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,a=t.font,n=e==="truncate",o=uu(a),s=rt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?aS(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
- `):[];var c=h.length*s,v=rt(t.height,c);if(c>v&&u){var p=Math.floor(v/s);h=h.slice(0,p)}if(r&&n&&f!=null)for(var d=rS(f,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<h.length;g++)h[g]=iS(h[g],d);for(var y=v,m=0,g=0;g<h.length;g++)m=Math.max(Ce(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 uD=function(){function r(){}return r}(),$d=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),fD=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 hD(r,t){var e=new fD;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=yf.lastIndex=0,l;(l=yf.exec(r))!=null;){var u=l.index;u>s&&mf(e,r.substring(s,u),t,o),mf(e,l[2],t,o,l[1]),s=yf.lastIndex}s<r.length&&mf(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,p=n==="truncate",d=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=uu(D);var M=rt(T.height,x.contentHeight);if(x.innerHeight=M,C&&(M+=C[0]+C[2]),x.height=M,x.lineHeight=tn(T.lineHeight,t.lineHeight,M),x.align=T&&T.align||t.align,x.verticalAlign=T&&T.verticalAlign||"middle",d&&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=Ce(x.text,D);else{if(L){var I=T.backgroundColor,R=I&&I.image;R&&(R=oD(R),vu(R)&&(x.width=Math.max(x.width,R.width*M/R.height)))}var E=p&&i!=null?i-S:null;E!=null&&E<x.width?!L||E<A?(x.text="",x.width=x.contentWidth=0):(x.text=eS(x.text,E-A,D,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=Ce(x.text,D)):x.contentWidth=Ce(x.text,D)}x.width+=A,S+=x.width,T&&(_=Math.max(_,x.lineHeight))}g(m,S,_)}e.outerWidth=e.width=rt(i,c),e.outerHeight=e.height=rt(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 mf(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 p=ar(o.width,i.width)+v;s.length>0&&p+i.accumWidth>i.width&&(f=t.split(`
- `),u=!0),i.accumWidth=p}else{var d=aS(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+v,h=d.linesWidths,f=d.lines}}else f=t.split(`
- `);for(var g=0;g<f.length;g++){var y=f[g],m=new uD;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!n,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Ce(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new $d)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||n)&&_.push(m)}else s.push(new $d([m]))}}function vD(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var cD=Ve(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function pD(r){return vD(r)?!!cD[r]:!0}function aS(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=Ce(c,t),p=i?!1:!pD(c);if(n.length?f+v>e:a+f+v>e){f?(s||l)&&(p?(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)):p?(n.push(l),o.push(u),l=c,u=v):(n.push(c),o.push(v));continue}f+=v,p?(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 nv="__zr_style_"+Math.round(Math.random()*10),ca={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},cu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ca[nv]=!0;var Ud=["z","z2","invisible"],dD=["invisible"],gD=function(r){bt(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&&yD(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 st(0,0,0,0)),i?st.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 st(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:k(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 Zo(ca,e)},t.prototype.useStyle=function(e){e[nv]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[nv]},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,Ud)},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 p=at(u),c=0;c<p.length;c++){var v=p[c];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var d=this.__inHover?dD:Ud,c=0;c<d.length;c++){var v=d[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 k(e,i),e},t.prototype.getAnimationStyleProps=function(){return cu},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=yr|Jn}(),t}(z1),_f=new st(0,0,0,0),Sf=new st(0,0,0,0);function yD(r,t,e){return _f.copy(r.getBoundingRect()),r.transform&&_f.applyTransform(r.transform),Sf.width=t,Sf.height=e,!_f.intersect(Sf)}var Ur=gD,me=Math.min,_e=Math.max,xf=Math.sin,bf=Math.cos,Bi=Math.PI*2,_s=Ta(),Ss=Ta(),xs=Ta();function YG(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=me(a,i[0]),n=_e(n,i[0]),o=me(o,i[1]),s=_e(s,i[1]);t[0]=a,t[1]=o,e[0]=n,e[1]=s}}function Yd(r,t,e,i,a,n){a[0]=me(r,e),a[1]=me(t,i),n[0]=_e(r,e),n[1]=_e(t,i)}var Xd=[],Zd=[];function mD(r,t,e,i,a,n,o,s,l,u){var f=S1,h=Nt,c=f(r,e,a,o,Xd);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var p=h(r,e,a,o,Xd[v]);l[0]=me(p,l[0]),u[0]=_e(p,u[0])}c=f(t,i,n,s,Zd);for(var v=0;v<c;v++){var d=h(t,i,n,s,Zd[v]);l[1]=me(d,l[1]),u[1]=_e(d,u[1])}l[0]=me(r,l[0]),u[0]=_e(r,u[0]),l[0]=me(o,l[0]),u[0]=_e(o,u[0]),l[1]=me(t,l[1]),u[1]=_e(t,u[1]),l[1]=me(s,l[1]),u[1]=_e(s,u[1])}function _D(r,t,e,i,a,n,o,s){var l=b1,u=jt,f=_e(me(l(r,e,a),1),0),h=_e(me(l(t,i,n),1),0),c=u(r,e,a,f),v=u(t,i,n,h);o[0]=me(r,a,c),o[1]=me(t,n,v),s[0]=_e(r,a,c),s[1]=_e(t,n,v)}function SD(r,t,e,i,a,n,o,s,l){var u=Br,f=Nr,h=Math.abs(a-n);if(h%Bi<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(_s[0]=bf(a)*e+r,_s[1]=xf(a)*i+t,Ss[0]=bf(n)*e+r,Ss[1]=xf(n)*i+t,u(s,_s,Ss),f(l,_s,Ss),a=a%Bi,a<0&&(a=a+Bi),n=n%Bi,n<0&&(n=n+Bi),a>n&&!o?n+=Bi:a<n&&o&&(a+=Bi),o){var c=n;n=a,a=c}for(var v=0;v<n;v+=Math.PI/2)v>a&&(xs[0]=bf(v)*e+r,xs[1]=xf(v)*i+t,u(s,xs,s),f(l,xs,l))}var mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ni=[],zi=[],fr=[],Qr=[],hr=[],vr=[],wf=Math.min,Tf=Math.max,Vi=Math.cos,Fi=Math.sin,Ir=Math.abs,ov=Math.PI,si=ov*2,Cf=typeof Float32Array!="undefined",Ln=[];function Af(r){var t=Math.round(r/ov*1e8)/1e8;return t%2*ov}function xD(r,t){var e=Af(r[0]);e<0&&(e+=si);var i=e-r[0],a=r[1];a+=i,!t&&a-e>=si?a=e+si:t&&e-a>=si?a=e-si:!t&&e>a?a=e+(si-Af(e-a)):t&&e<a&&(a=e-(si-Af(a-e))),r[0]=e,r[1]=a}var bD=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=Ir(i/kd/t)||0,this._uy=Ir(i/kd/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=Ir(t-this._xi),a=Ir(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,xD(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=Vi(n)*i+t,this._yi=Fi(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)&&Cf&&(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();Cf&&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,Cf&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){fr[0]=fr[1]=hr[0]=hr[1]=Number.MAX_VALUE,Qr[0]=Qr[1]=vr[0]=vr[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++],hr[0]=a,hr[1]=n,vr[0]=a,vr[1]=n;break;case mt.L:Yd(e,i,t[o],t[o+1],hr,vr),e=t[o++],i=t[o++];break;case mt.C:mD(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],hr,vr),e=t[o++],i=t[o++];break;case mt.Q:_D(e,i,t[o++],t[o++],t[o],t[o+1],hr,vr),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++],p=t[o++]+v;o+=1;var d=!t[o++];l&&(a=Vi(v)*h+u,n=Fi(v)*c+f),SD(u,f,h,c,v,p,d,hr,vr),e=Vi(p)*h+u,i=Fi(p)*c+f;break;case mt.R:a=e=t[o++],n=i=t[o++];var g=t[o++],y=t[o++];Yd(a,n,a+g,n+y,hr,vr);break;case mt.Z:e=a,i=n;break}Br(fr,fr,hr),Nr(Qr,Qr,vr)}return o===0&&(fr[0]=fr[1]=Qr[0]=Qr[1]=0),new st(fr[0],fr[1],Qr[0]-fr[0],Qr[1]-fr[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++],p=c===1;p&&(n=t[c],o=t[c+1],s=n,l=o);var d=-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;(Ir(m)>i||Ir(_)>a||c===e-1)&&(d=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++];d=DA(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++];d=LA(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++],p&&(s=Vi(P)*D+C,l=Fi(P)*M+A),d=Tf(D,M)*wf(si,Math.abs(L)),n=Vi(I)*D+C,o=Fi(I)*M+A;break;case mt.R:{s=n=t[c++],l=o=t[c++];var R=t[c++],E=t[c++];d=R*2+E*2;break}case mt.Z:{var m=s-n,_=l-o;d=Math.sqrt(m*m+_*_),n=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}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,p,d,g=0,y=0,m,_=0,S,b;if(v&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=e*d,!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=Ir(h-u),D=Ir(c-f);if(A>a||D>n){if(v){var M=p[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++],R=i[x++],E=i[x++],W=i[x++],B=i[x++],F=i[x++];if(v){var M=p[y++];if(g+M>m){var P=(m-g)/M;Cl(u,I,E,B,P,Ni),Cl(f,R,W,F,P,zi),t.bezierCurveTo(Ni[1],zi[1],Ni[2],zi[2],Ni[3],zi[3]);break t}g+=M}t.bezierCurveTo(I,R,E,W,B,F),u=B,f=F;break}case mt.Q:{var I=i[x++],R=i[x++],E=i[x++],W=i[x++];if(v){var M=p[y++];if(g+M>m){var P=(m-g)/M;Al(u,I,E,P,Ni),Al(f,R,W,P,zi),t.quadraticCurveTo(Ni[1],zi[1],Ni[2],zi[2]);break t}g+=M}t.quadraticCurveTo(I,R,E,W),u=E,f=W;break}case mt.A:var Y=i[x++],tt=i[x++],J=i[x++],lt=i[x++],ct=i[x++],kt=i[x++],xt=i[x++],Zt=!i[x++],Ft=J>lt?J:lt,Lt=Ir(J-lt)>.001,Tt=ct+kt,j=!1;if(v){var M=p[y++];g+M>m&&(Tt=ct+kt*(m-g)/M,j=!0),g+=M}if(Lt&&t.ellipse?t.ellipse(Y,tt,J,lt,xt,ct,Tt,Zt):t.arc(Y,tt,Ft,ct,Tt,Zt),j)break t;C&&(s=Vi(ct)*J+Y,l=Fi(ct)*lt+tt),u=Vi(Tt)*J+Y,f=Fi(Tt)*lt+tt;break;case mt.R:s=u=i[x],l=f=i[x+1],h=i[x++],c=i[x++];var ut=i[x++],pe=i[x++];if(v){var M=p[y++];if(g+M>m){var It=m-g;t.moveTo(h,c),t.lineTo(h+wf(It,ut),c),It-=ut,It>0&&t.lineTo(h+ut,c+wf(It,pe)),It-=pe,It>0&&t.lineTo(h+Tf(ut-It,0),c+pe),It-=ut,It>0&&t.lineTo(h,c+Tf(pe-It,0));break t}g+=M}t.rect(h,c,ut,pe);break;case mt.Z:if(v){var M=p[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}(),Yr=bD;function Oa(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 wD(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=x1(r,t,e,i,a,n,o,s,u,f,null);return c<=h/2}function TD(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=w1(r,t,e,i,a,n,s,l,null);return f<=u/2}var qd=Math.PI*2;function vi(r){return r%=qd,r<0&&(r+=qd),r}var In=Math.PI*2;function CD(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=vi(a),a=vi(h)}else i=vi(i),a=vi(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 Or(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 ti=Yr.CMD,Gi=Math.PI*2,AD=1e-4;function MD(r,t){return Math.abs(r-t)<AD}var ie=[-1,-1,-1],Ee=[-1,-1];function DD(){var r=Ee[0];Ee[0]=Ee[1],Ee[1]=r}function PD(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=Tl(t,i,n,s,u,ie);if(f===0)return 0;for(var h=0,c=-1,v=void 0,p=void 0,d=0;d<f;d++){var g=ie[d],y=g===0||g===1?.5:1,m=Nt(r,e,a,o,g);m<l||(c<0&&(c=S1(t,i,n,s,Ee),Ee[1]<Ee[0]&&c>1&&DD(),v=Nt(t,i,n,s,Ee[0]),c>1&&(p=Nt(t,i,n,s,Ee[1]))),c===2?g<Ee[0]?h+=v<t?y:-y:g<Ee[1]?h+=p<v?y:-y:h+=s<p?y:-y:g<Ee[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function LD(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=PA(t,i,n,s,ie);if(l===0)return 0;var u=b1(t,i,n);if(u>=0&&u<=1){for(var f=0,h=jt(t,i,n,u),c=0;c<l;c++){var v=ie[c]===0||ie[c]===1?.5:1,p=jt(r,e,a,ie[c]);p<o||(ie[c]<u?f+=h<t?v:-v:f+=n<h?v:-v)}return f}else{var v=ie[0]===0||ie[0]===1?.5:1,p=jt(r,e,a,ie[0]);return p<o?0:n<t?v:-v}}function ID(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);ie[0]=-l,ie[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=Gi-1e-4){i=0,a=Gi;var f=n?1:-1;return o>=ie[0]+r&&o<=ie[1]+r?f:0}if(i>a){var h=i;i=a,a=h}i<0&&(i+=Gi,a+=Gi);for(var c=0,v=0;v<2;v++){var p=ie[v];if(p+r>o){var d=Math.atan2(s,p),f=n?1:-1;d<0&&(d=Gi+d),(d>=i&&d<=a||d+Gi>=i&&d+Gi<=a)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),c+=f)}}return c}function nS(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,p=0;p<o;){var d=n[p++],g=p===1;switch(d===ti.M&&p>1&&(e||(s+=Or(l,u,f,h,i,a))),g&&(l=n[p],u=n[p+1],f=l,h=u),d){case ti.M:f=n[p++],h=n[p++],l=f,u=h;break;case ti.L:if(e){if(Oa(l,u,n[p],n[p+1],t,i,a))return!0}else s+=Or(l,u,n[p],n[p+1],i,a)||0;l=n[p++],u=n[p++];break;case ti.C:if(e){if(wD(l,u,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],t,i,a))return!0}else s+=PD(l,u,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],i,a)||0;l=n[p++],u=n[p++];break;case ti.Q:if(e){if(TD(l,u,n[p++],n[p++],n[p],n[p+1],t,i,a))return!0}else s+=LD(l,u,n[p++],n[p++],n[p],n[p+1],i,a)||0;l=n[p++],u=n[p++];break;case ti.A:var y=n[p++],m=n[p++],_=n[p++],S=n[p++],b=n[p++],x=n[p++];p+=1;var T=!!(1-n[p++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,g?(f=c,h=v):s+=Or(l,u,c,v,i,a);var C=(i-y)*S/_+y;if(e){if(CD(y,m,S,b,b+x,T,t,C,a))return!0}else s+=ID(y,m,S,b,b+x,T,C,a);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case ti.R:f=l=n[p++],h=u=n[p++];var A=n[p++],D=n[p++];if(c=f+A,v=h+D,e){if(Oa(f,h,c,h,t,i,a)||Oa(c,h,c,v,t,i,a)||Oa(c,v,f,v,t,i,a)||Oa(f,v,f,h,t,i,a))return!0}else s+=Or(c,h,c,v,i,a),s+=Or(f,v,f,h,i,a);break;case ti.Z:if(e){if(Oa(l,u,f,h,t,i,a))return!0}else s+=Or(l,u,f,h,i,a);l=f,u=h;break}}return!e&&!MD(u,h)&&(s+=Or(l,u,f,h,i,a)||0),s!==0}function RD(r,t,e){return nS(r,0,!1,t,e)}function ED(r,t,e,i){return nS(r,t,!0,e,i)}var Ll=Z({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ca),kD={style:Z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},cu.style)},Mf=Cr.concat(["invisible","culling","z","z2","zlevel","parent"]),OD=function(r){bt(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<Mf.length;++s)a[Mf[s]]=this[Mf[s]];a.__dirty|=yr}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?k(this.style,s):this.useStyle(s):o==="shape"?k(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=Co(e,0);return i>.5?tv:i>.2?vM:ev}else if(e)return ev}return tv},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(V(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=Co(e,0)<Qh;if(n===o)return i}},t.prototype.buildPath=function(e,i,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Za},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 Yr(!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&Za)&&(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)),ED(s,l/u,e,i)))return!0}if(this.hasFill())return RD(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Za,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:k(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Za)},t.prototype.createStyle=function(e){return Zo(Ll,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=k({},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=k({},a.shape),k(u,i.shape)):(u=k({},n?this.shape:a.shape),k(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=k({},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 kD},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=function(n){bt(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=yr|Jn|Za}(),t}(Ur),gt=OD,BD=Z({strokeFirst:!0,font:_i,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ll),oS=function(r){bt(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 Zo(BD,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=jo(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}(Ur);oS.prototype.type="tspan";var Po=oS,ND=Z({x:0,y:0},ca),zD={style:Z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},cu.style)};function VD(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var sS=function(r){bt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Zo(ND,e)},t.prototype._getSize=function(e){var i=this.style,a=i[e];if(a!=null)return a;var n=VD(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 zD},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new st(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ur);sS.prototype.type="image";var ce=sS;function FD(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 Qa=Math.round;function lS(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&&(Qa(i*2)===Qa(a*2)&&(r.x1=r.x2=sa(i,s,!0)),Qa(n*2)===Qa(o*2)&&(r.y1=r.y2=sa(n,s,!0))),r}}function uS(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=sa(i,s,!0),r.y=sa(a,s,!0),r.width=Math.max(sa(i+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(sa(a+o,s,!1)-r.y,o===0?0:1)),r}}function sa(r,t,e){if(!t)return r;var i=Qa(r*2);return(i+Qa(t))%2===0?i/2:(i+(e?1:-1))/2}var GD=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),HD={},fS=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new GD},t.prototype.buildPath=function(e,i){var a,n,o,s;if(this.subPixelOptimize){var l=uS(HD,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?FD(e,i):e.rect(a,n,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(gt);fS.prototype.type="rect";var pt=fS,Kd={fill:"#000"},jd=2,WD={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},cu.style)},hS=function(r){bt(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Kd,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,YD(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 st(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||Kd},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var a=i.rich,n=e.rich||a&&{};return k(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]||{},k(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return WD},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||_i,a=e.padding,n=ag(e),o=lD(n,e),s=Df(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,p=this._defaultStyle,d=e.x||0,g=e.y||0,y=e.align||p.align||"left",m=e.verticalAlign||p.verticalAlign||"top",_=d,S=qa(g,o.contentHeight,m);if(s||a){var b=to(d,f,y),x=qa(g,u,m);s&&this._renderBackground(e,e,b,x,f,u)}S+=v/2,a&&(_=ig(d,y,a),m==="top"?S+=a[0]:m==="bottom"&&(S-=a[2]));for(var T=0,C=!1,A=rg("fill"in e?e.fill:(C=!0,p.fill)),D=eg("stroke"in e?e.stroke:!l&&(!p.autoStroke||C)?(T=jd,p.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 R=this._getOrCreateChild(Po),E=R.createStyle();R.useStyle(E),E.text=c[I],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=e.opacity,E.strokeFirst=!0,M&&(E.shadowBlur=e.textShadowBlur||0,E.shadowColor=e.textShadowColor||"transparent",E.shadowOffsetX=e.textShadowOffsetX||0,E.shadowOffsetY=e.textShadowOffsetY||0),E.stroke=D,E.fill=A,D&&(E.lineWidth=e.lineWidth||T,E.lineDash=e.lineDash,E.lineDashOffset=e.lineDashOffset||0),E.font=i,Qd(E,e),S+=v,P&&R.setBoundingRect(new st(to(E.x,e.width,E.textAlign),qa(E.y,L,E.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,i=ag(e),a=hD(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,p=to(u,o,c),d=qa(f,s,v),g=p,y=d;l&&(g+=l[3],y+=l[0]);var m=g+n;Df(e)&&this._renderBackground(e,e,p,d,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&&Df(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,p=e.textPadding;p&&(o=ig(o,s,p),h-=e.height/2-p[0]-e.innerHeight/2);var d=this._getOrCreateChild(Po),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=rg("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),b=eg("stroke"in u?u.stroke:"stroke"in i?i.stroke:!v&&!l&&(!y.autoStroke||m)?(_=jd,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||_i,g.opacity=tn(u.opacity,i.opacity,1),Qd(g,u),b&&(g.lineWidth=tn(u.lineWidth,i.lineWidth,_),g.lineDash=rt(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var T=e.contentWidth,C=e.contentHeight;d.setBoundingRect(new st(to(g.x,T,g.textAlign),qa(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,p=this,d,g;if(c||e.lineHeight||u&&f){d=this._getOrCreateChild(pt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=a,y.y=n,y.width=o,y.height=s,y.r=v,d.dirtyShape()}if(c){var m=d.style;m.fill=l||null,m.fillOpacity=rt(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(ce),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=n,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=rt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=tn(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return cS(e)&&(i=[e.fontStyle,e.fontWeight,vS(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&ze(i)||e.textFont||e.font},t}(Ur),$D={left:!0,right:1,center:1},UD={top:1,bottom:1,middle:1},Jd=["fontStyle","fontWeight","fontSize","fontFamily"];function vS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?nc+"px":r+"px"}function Qd(r,t){for(var e=0;e<Jd.length;e++){var i=Jd[e],a=t[i];a!=null&&(r[i]=a)}}function cS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function YD(r){return tg(r),w(r.rich,tg),r}function tg(r){if(r){r.font=hS.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||$D[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||UD[e]?e:"top";var i=r.padding;i&&(r.padding=hc(r.padding))}}function eg(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function rg(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function ig(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function ag(r){var t=r.text;return t!=null&&(t+=""),t}function Df(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var dt=hS,nt=St(),XD=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})}},ng=1,og={},pS=St(),Pc=St(),Lc=0,pu=1,du=2,Ge=["emphasis","blur","select"],Il=["normal","emphasis","blur","select"],dS=10,ZD=9,pa="highlight",fl="downplay",vo="select",hl="unselect",co="toggleSelect";function Ba(r){return r!=null&&r!=="none"}var sg=new Ko(100);function lg(r){if(V(r)){var t=sg.get(r);return t||(t=Yh(r,-.1),sg.put(r,t)),t}else if(nu(r)){var e=k({},r);return e.colorStops=z(r.colorStops,function(i){return{offset:i.offset,color:Yh(i.color,-.1)}}),e}return r}function gu(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function gS(r){gu(r,"emphasis",du)}function yS(r){r.hoverState===du&&gu(r,"normal",Lc)}function Ic(r){gu(r,"blur",pu)}function mS(r){r.hoverState===pu&&gu(r,"normal",Lc)}function qD(r){r.selected=!0}function KD(r){r.selected=!1}function ug(r,t,e){t(r,e)}function Zr(r,t,e){ug(r,t,e),r.isGroup&&r.traverse(function(i){ug(i,t,e)})}function sv(r,t){switch(t){case"emphasis":r.hoverState=du;break;case"normal":r.hoverState=Lc;break;case"blur":r.hoverState=pu;break;case"select":r.selected=!0}}function jD(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 JD(r,t,e,i){var a=e&&ot(e,"select")>=0,n=!1;if(r instanceof gt){var o=pS(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Ba(s)||Ba(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=k({},i),u=k({},u),u.fill=s):!Ba(u.fill)&&Ba(s)?(n=!0,i=k({},i),u=k({},u),u.fill=lg(s)):!Ba(u.stroke)&&Ba(l)&&(n||(i=k({},i),u=k({},u)),u.stroke=lg(l)),i.style=u}}if(i&&i.z2==null){n||(i=k({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f!=null?f:dS)}return i}function QD(r,t,e){if(e&&e.z2==null){e=k({},e);var i=r.z2SelectLift;e.z2=r.z2+(i!=null?i:ZD)}return e}function t2(r,t,e){var i=ot(r.currentStates,t)>=0,a=r.style.opacity,n=i?null:jD(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=k({},e),o=k({opacity:i?a:n.opacity*.1},o),e.style=o),e}function Pf(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return JD(this,r,t,e);if(r==="blur")return t2(this,r,e);if(r==="select")return QD(this,r,e)}return e}function Rc(r){r.stateProxy=Pf;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Pf),e&&(e.stateProxy=Pf)}function fg(r,t){!bS(r,t)&&!r.__highByOuter&&Zr(r,gS)}function hg(r,t){!bS(r,t)&&!r.__highByOuter&&Zr(r,yS)}function un(r,t){r.__highByOuter|=1<<(t||0),Zr(r,gS)}function fn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Zr(r,yS)}function e2(r){Zr(r,Ic)}function _S(r){Zr(r,mS)}function SS(r){Zr(r,qD)}function xS(r){Zr(r,KD)}function bS(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function wS(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(a,n){var o=Pc(n),s=a==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){mS(u)}),s&&e.push(n)),o.isBlured=!1}),w(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function lv(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&&_S(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){g.__highByOuter&&f&&t==="self"||Ic(g)}),ee(t))n(u.getData(),t);else if(U(t))for(var p=at(t),d=0;d<p.length;d++)n(u.getData(p[d]),t[p[d]]);l.push(u),Pc(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 uv(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(!!i){Pc(i).isBlured=!0;var a=e.getViewOfComponentModel(i);!a||!a.focusBlurEnabled||a.group.traverse(function(n){Ic(n)})}}}function r2(r,t,e){var i=r.seriesIndex,a=r.getData(t.dataType);if(!!a){var n=Sa(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);lv(i,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&lv(i,f,h,e)}}}function Ec(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 i2(r,t,e){var i=nt(r),a=Ec(i.componentMainType,i.componentIndex,i.componentHighDownName,e),n=a.dispatchers,o=a.focusSelf;n?(o&&uv(i.componentMainType,i.componentIndex,e),w(n,function(s){return fg(s,t)})):(lv(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&uv(i.componentMainType,i.componentIndex,e),fg(r,t))}function a2(r,t,e){wS(e);var i=nt(r),a=Ec(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;a?w(a,function(n){return hg(n,t)}):hg(r,t)}function n2(r,t,e){if(!!hv(t)){var i=t.dataType,a=r.getData(i),n=Sa(a,t);N(n)||(n=[n]),r[t.type===co?"toggleSelect":t.type===vo?"select":"unselect"](n,i)}}function vg(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)?SS(n):xS(n)})})}function o2(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 gi(r,t,e){kc(r,!0),Zr(r,Rc),l2(r,t,e)}function s2(r){kc(r,!1)}function xi(r,t,e,i){i?s2(r):gi(r,t,e)}function l2(r,t,e){var i=nt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var cg=["emphasis","blur","select"],u2={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function hn(r,t,e,i){e=e||"itemStyle";for(var a=0;a<cg.length;a++){var n=cg[a],o=t.getModel([n,e]),s=r.ensureState(n);s.style=i?i(o):o[u2[e]]()}}function kc(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 fv(r){return!!(r&&r.__highDownDispatcher)}function f2(r,t,e){var i=nt(r);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=e}function h2(r){var t=og[r];return t==null&&ng<=32&&(t=og[r]=ng++),t}function hv(r){var t=r.type;return t===vo||t===hl||t===co}function pg(r){var t=r.type;return t===pa||t===fl}function v2(r){var t=pS(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 Na=Yr.CMD,c2=[[],[],[]],dg=Math.sqrt,p2=Math.atan2;function TS(r,t){if(!!t){var e=r.data,i=r.len(),a,n,o,s,l,u,f=Na.M,h=Na.C,c=Na.L,v=Na.R,p=Na.A,d=Na.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 d:n=2;break;case p:var g=t[4],y=t[5],m=dg(t[0]*t[0]+t[1]*t[1]),_=dg(t[2]*t[2]+t[3]*t[3]),S=p2(-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++],Ht(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Ht(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<n;l++){var b=c2[l];b[0]=e[o++],b[1]=e[o++],Ht(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Lf=Math.sqrt,bs=Math.sin,ws=Math.cos,Rn=Math.PI;function gg(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function vv(r,t){return(r[0]*t[0]+r[1]*t[1])/(gg(r)*gg(t))}function yg(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(vv(r,t))}function mg(r,t,e,i,a,n,o,s,l,u,f){var h=l*(Rn/180),c=ws(h)*(r-e)/2+bs(h)*(t-i)/2,v=-1*bs(h)*(r-e)/2+ws(h)*(t-i)/2,p=c*c/(o*o)+v*v/(s*s);p>1&&(o*=Lf(p),s*=Lf(p));var d=(a===n?-1:1)*Lf((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=d*o*v/s,y=d*-s*c/o,m=(r+e)/2+ws(h)*g-bs(h)*y,_=(t+i)/2+bs(h)*g+ws(h)*y,S=yg([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=yg(b,x);if(vv(b,x)<=-1&&(T=Rn),vv(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 d2=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,g2=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function y2(r){var t=new Yr;if(!r)return t;var e=0,i=0,a=e,n=i,o,s=Yr.CMD,l=r.match(d2);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(g2)||[],p=v.length,d=0;d<p;d++)v[d]=parseFloat(v[d]);for(var g=0;g<p;){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,mg(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,mg(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 CS=function(r){bt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(gt);function AS(r){return r.setData!=null}function MS(r,t){var e=y2(r),i=k({},t);return i.buildPath=function(a){if(AS(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){TS(e,a),this.dirtyShape()},i}function DS(r,t){return new CS(MS(r,t))}function m2(r,t){var e=MS(r,t),i=function(a){bt(n,a);function n(o){var s=a.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return n}(CS);return i}function _2(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(AS(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function XG(r,t){t=t||{};var e=new gt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?TS(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}(),PS=function(r){bt(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);PS.prototype.type="circle";var nr=PS,x2=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),LS=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new x2},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);LS.prototype.type="ellipse";var yu=LS,IS=Math.PI,If=IS*2,Hi=Math.sin,za=Math.cos,b2=Math.acos,qt=Math.atan2,_g=Math.abs,po=Math.sqrt,eo=Math.max,cr=Math.min,qe=1e-4;function w2(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<qe))return c=(f*(t-n)-h*(r-a))/c,[r+c*l,t+c*u]}function Ts(r,t,e,i,a,n,o){var s=r-e,l=t-i,u=(o?n:-n)/po(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=t+h,p=e+f,d=i+h,g=(c+p)/2,y=(v+d)/2,m=p-c,_=d-v,S=m*m+_*_,b=a-n,x=c*d-p*v,T=(_<0?-1:1)*po(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,R=M-y;return P*P+L*L>I*I+R*R&&(C=D,A=M),{cx:C,cy:A,x0:-f,y0:-h,x1:C*(a/b-1),y1:A*(a/b-1)}}function T2(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 C2(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=_g(u-l),p=v>If&&v%If;if(p>qe&&(v=p),!(i>qe))r.moveTo(f,h);else if(v>If-qe)r.moveTo(f+i*za(l),h+i*Hi(l)),r.arc(f,h,i,l,u,!c),a>qe&&(r.moveTo(f+a*za(u),h+a*Hi(u)),r.arc(f,h,a,u,l,c));else{var d=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,R=i*za(l),E=i*Hi(l),W=a*za(u),B=a*Hi(u),F=v>qe;if(F){var Y=t.cornerRadius;Y&&(e=T2(Y),d=e[0],g=e[1],y=e[2],m=e[3]);var tt=_g(i-a)/2;if(_=cr(tt,y),S=cr(tt,m),b=cr(tt,d),x=cr(tt,g),A=T=eo(_,S),D=C=eo(b,x),(T>qe||C>qe)&&(M=i*za(u),P=i*Hi(u),L=a*za(l),I=a*Hi(l),v<IS)){var J=w2(R,E,L,I,M,P,W,B);if(J){var lt=R-J[0],ct=E-J[1],kt=M-J[0],xt=P-J[1],Zt=1/Hi(b2((lt*kt+ct*xt)/(po(lt*lt+ct*ct)*po(kt*kt+xt*xt)))/2),Ft=po(J[0]*J[0]+J[1]*J[1]);A=cr(T,(i-Ft)/(Zt+1)),D=cr(C,(a-Ft)/(Zt-1))}}}if(!F)r.moveTo(f+R,h+E);else if(A>qe){var Lt=cr(y,A),Tt=cr(m,A),j=Ts(L,I,R,E,i,Lt,c),ut=Ts(M,P,W,B,i,Tt,c);r.moveTo(f+j.cx+j.x0,h+j.cy+j.y0),A<T&&Lt===Tt?r.arc(f+j.cx,h+j.cy,A,qt(j.y0,j.x0),qt(ut.y0,ut.x0),!c):(Lt>0&&r.arc(f+j.cx,h+j.cy,Lt,qt(j.y0,j.x0),qt(j.y1,j.x1),!c),r.arc(f,h,i,qt(j.cy+j.y1,j.cx+j.x1),qt(ut.cy+ut.y1,ut.cx+ut.x1),!c),Tt>0&&r.arc(f+ut.cx,h+ut.cy,Tt,qt(ut.y1,ut.x1),qt(ut.y0,ut.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,i,l,u,!c);if(!(a>qe)||!F)r.lineTo(f+W,h+B);else if(D>qe){var Lt=cr(d,D),Tt=cr(g,D),j=Ts(W,B,M,P,a,-Tt,c),ut=Ts(R,E,L,I,a,-Lt,c);r.lineTo(f+j.cx+j.x0,h+j.cy+j.y0),D<C&&Lt===Tt?r.arc(f+j.cx,h+j.cy,D,qt(j.y0,j.x0),qt(ut.y0,ut.x0),!c):(Tt>0&&r.arc(f+j.cx,h+j.cy,Tt,qt(j.y0,j.x0),qt(j.y1,j.x1),!c),r.arc(f,h,a,qt(j.cy+j.y1,j.cx+j.x1),qt(ut.cy+ut.y1,ut.cx+ut.x1),c),Lt>0&&r.arc(f+ut.cx,h+ut.cy,Lt,qt(ut.y1,ut.x1),qt(ut.y0,ut.x0),!c))}else r.lineTo(f+W,h+B),r.arc(f,h,a,u,l,c)}r.closePath()}}}var A2=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}(),RS=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new A2},t.prototype.buildPath=function(e,i){C2(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(gt);RS.prototype.type="sector";var Mr=RS,M2=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),ES=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new M2},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);ES.prototype.type="ring";var Qo=ES;function D2(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++)Br(f,f,r[c]),Nr(h,h,r[c]);Br(f,f,i[0]),Nr(h,h,i[1])}for(var c=0,v=r.length;c<v;c++){var p=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(s1(r[c]));continue}else l=r[c-1],u=r[c+1];l1(n,u,l),el(n,n,t);var d=xl(p,l),g=xl(p,u),y=d+g;y!==0&&(d/=y,g/=y),el(o,n,-d),el(s,n,g);var m=Vh([],p,o),_=Vh([],p,s);i&&(Nr(m,m,f),Br(m,m,h),Nr(_,_,f),Br(_,_,h)),a.push(m),a.push(_)}return e&&a.push(a.shift()),a}function kS(r,t,e){var i=t.smooth,a=t.points;if(a&&a.length>=2){if(i){var n=D2(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 P2=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),OS=function(r){bt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new P2},t.prototype.buildPath=function(e,i){kS(e,i,!0)},t}(gt);OS.prototype.type="polygon";var Dr=OS,L2=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),BS=function(r){bt(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 L2},t.prototype.buildPath=function(e,i){kS(e,i,!1)},t}(gt);BS.prototype.type="polyline";var He=BS,I2={},R2=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),NS=function(r){bt(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 R2},t.prototype.buildPath=function(e,i){var a,n,o,s;if(this.subPixelOptimize){var l=lS(I2,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);NS.prototype.type="line";var le=NS,ge=[],E2=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 Sg(r,t,e){var i=r.cpx2,a=r.cpy2;return i!=null||a!=null?[(e?Td:Nt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Td:Nt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Cd:jt)(r.x1,r.cpx1,r.x2,t),(e?Cd:jt)(r.y1,r.cpy1,r.y2,t)]}var zS=function(r){bt(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 E2},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&&(Al(a,l,o,c,ge),l=ge[1],o=ge[2],Al(n,u,s,c,ge),u=ge[1],s=ge[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(Cl(a,l,f,o,c,ge),l=ge[1],f=ge[2],o=ge[3],Cl(n,u,h,s,c,ge),u=ge[1],h=ge[2],s=ge[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return Sg(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=Sg(this.shape,e,!0);return u1(i,i)},t}(gt);zS.prototype.type="bezier-curve";var Oc=zS,k2=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}(),VS=function(r){bt(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 k2},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);VS.prototype.type="arc";var mu=VS,O2=function(r){bt(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),_u=O2,B2=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),FS=B2,N2=function(r){bt(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}(FS),ts=N2,z2=function(r){bt(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}(FS),Bc=z2,Wi=[0,0],$i=[0,0],Cs=new et,As=new et,V2=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 Cs.set(1/0,1/0),As.set(0,0),!this._intersectCheckOneSide(this,t,Cs,As,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,Cs,As,a,-1)&&(i=!1,a)||a||et.copy(e,i?Cs:As),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,Wi),this._getProjMinMaxOnAxis(l,e._corners,$i),Wi[1]<$i[0]||Wi[0]>$i[1]){if(s=!1,n)return s;var f=Math.abs($i[0]-Wi[1]),h=Math.abs(Wi[0]-$i[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($i[0]-Wi[1]),h=Math.abs(Wi[0]-$i[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}(),Rl=V2,F2=[],G2=function(r){bt(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 st(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(F2)),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}(Ur),GS=G2,HS=St();function Nc(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=rt(i.duration,200),f=rt(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 zc(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=Nc(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,p={duration:h,delay:c||0,easing:v,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,p):t.animateTo(e,p)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),n&&n()}function Dt(r,t,e,i,a,n){zc("update",r,t,e,i,a,n)}function te(r,t,e,i,a,n){zc("enter",r,t,e,i,a,n)}function go(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 Lo(r,t,e,i,a,n){go(r)||zc("leave",r,t,e,i,a,n)}function xg(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Lo(r,{style:{opacity:0}},t,e,i)}function El(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||xg(a,t,e,i)}):xg(r,t,e,i)}function Io(r){HS(r).oldStyle=r.style}function ZG(r){return HS(r).oldStyle}var kl=Math.max,Ol=Math.min,cv={};function WS(r){return gt.extend(r)}var H2=m2;function $S(r,t){return H2(r,t)}function We(r,t){cv[r]=t}function Vc(r){if(cv.hasOwnProperty(r))return cv[r]}function Su(r,t,e,i){var a=DS(r,t);return e&&(i==="center"&&(e=US(e,a.getBoundingRect())),Gc(a,e)),a}function Fc(r,t,e){var i=new ce({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(US(t,n))}}});return i}function US(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=_2;function Gc(r,t){if(!!r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function Ro(r,t){return lS(r,r,{lineWidth:t}),r}function W2(r){return uS(r.shape,r.shape,r.style),r}var $2=sa;function yi(r,t){for(var e=qo([]);r&&r!==t;)Tr(e,r.getLocalTransform(),e),r=r.parent;return e}function ir(r,t,e){return t&&!ee(t)&&(t=na.getLocalTransform(t)),e&&(t=Ca([],t)),Ht([],r,t)}function xu(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=ir(n,t,e),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function bg(r){return!r.isGroup}function U2(r){return r.shape!=null}function bu(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){bg(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return U2(o)&&(s.shape=k({},o.shape)),s}var n=i(r);t.traverse(function(o){if(bg(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),Dt(o,l,e,nt(o).dataIndex)}}})}function Hc(r,t){return z(r,function(e){var i=e[0];i=kl(i,t.x),i=Ol(i,t.x+t.width);var a=e[1];return a=kl(a,t.y),a=Ol(a,t.y+t.height),[i,a]})}function YS(r,t){var e=kl(r.x,t.x),i=Ol(r.x+r.width,t.x+t.width),a=kl(r.y,t.y),n=Ol(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=k({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 ce(i)):Su(r.replace("path://",""),i,e,"center")}function Y2(r,t,e,i,a){for(var n=0,o=a[a.length-1];n<a.length;n++){var s=a[n];if(XS(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function XS(r,t,e,i,a,n,o,s){var l=e-r,u=i-t,f=o-a,h=s-n,c=Rf(f,h,l,u);if(X2(c))return!1;var v=r-a,p=t-n,d=Rf(v,p,l,u)/c;if(d<0||d>1)return!1;var g=Rf(v,p,f,h)/c;return!(g<0||g>1)}function Rf(r,t,e,i){return r*i-e*t}function X2(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 wg(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function wu(r,t){if(r)if(N(r))for(var e=0;e<r.length;e++)wg(r[e],t);else wg(r,t)}We("circle",nr);We("ellipse",yu);We("sector",Mr);We("ring",Qo);We("polygon",Dr);We("polyline",He);We("rect",pt);We("line",le);We("bezierCurve",Oc);We("arc",mu);var Tu=Object.freeze(Object.defineProperty({__proto__:null,updateProps:Dt,initProps:te,removeElement:Lo,removeElementWithFadeOut:El,isElementRemoved:go,extendShape:WS,extendPath:$S,registerShape:We,getShapeClass:Vc,makePath:Su,makeImage:Fc,mergePath:Be,resizePath:Gc,subPixelOptimizeLine:Ro,subPixelOptimizeRect:W2,subPixelOptimize:$2,getTransform:yi,applyTransform:ir,transformDirection:xu,groupTransition:bu,clipPointsByRect:Hc,clipRectByRect:YS,createIcon:_n,linePolygonIntersect:Y2,lineLineIntersect:XS,setTooltipConfig:Sn,traverseElements:wu,Group:it,Image:ce,Text:dt,Circle:nr,Ellipse:yu,Sector:Mr,Ring:Qo,Polygon:Dr,Polyline:He,Rect:pt,Line:le,BezierCurve:Oc,Arc:mu,IncrementalDisplayable:GS,CompoundPath:_u,LinearGradient:ts,RadialGradient:Bc,BoundingRect:st,OrientedBoundingRect:Rl,Point:et,Path:gt},Symbol.toStringTag,{value:"Module"})),Cu={};function ZS(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 pv(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]=rt(i?i.getFormattedLabel(a,f,null,n,h&&h.get("formatter")):null,s)}return l}function qr(r,t,e,i){e=e||Cu;for(var a=r instanceof dt,n=!1,o=0;o<Il.length;o++){var s=t[Il[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=a?r:r.getTextContent();if(n){a||(l||(l=new dt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=pv(e,t),f=t.normal,h=!!f.getShallow("show"),c=Bt(f,i&&i.normal,e,!1,!a);c.text=u.normal,a||r.setTextConfig(Tg(f,e,!1));for(var o=0;o<Ge.length;o++){var v=Ge[o],s=t[v];if(s){var p=l.ensureState(v),d=!!rt(s.getShallow("show"),h);if(d!==h&&(p.ignore=!d),p.style=Bt(s,i&&i[v],e,!0,!a),p.style.text=u[v],!a){var g=r.ensureState(v);g.textConfig=Tg(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&&(es(l).setLabelText=function(y){var m=pv(e,t,y);ZS(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Kr(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 Bt(r,t,e,i,a){var n={};return Z2(n,r,e,i,a),t&&k(n,t),n}function Tg(r,t,e){t=t||{};var i={},a,n=r.getShallow("rotate"),o=rt(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 Z2(r,t,e,i,a){e=e||Cu;var n=t.ecModel,o=n&&n.option.textStyle,s=q2(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Dg(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),Dg(r,t,o,e,i,a,!0,!1)}function q2(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Cu).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 Cg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ag=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Mg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Dg(r,t,e,i,a,n,o,s){e=!a&&e||Cu;var l=i&&i.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=rt(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=rt(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=rt(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var p=rt(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!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 d=0;d<Cg.length;d++){var g=Cg[d],y=rt(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var d=0;d<Ag.length;d++){var g=Ag[d],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 d=0;d<Mg.length;d++){var g=Mg[d],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 K2(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 es=St();function j2(r,t,e,i){if(!!r){var a=es(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 qG(r,t,e,i,a){var n=es(r);if(!n.valueAnimation||n.prevValue===n.value)return;var o=n.defaultInterpolatedText,s=rt(n.interpolatedValue,n.prevValue),l=n.value;function u(f){var h=J1(e,n.precision,s,l,f);n.interpolatedValue=f===1?null:h;var c=pv({labelDataIndex:t,labelFetcher:a,defaultText:o?o(h):h+""},n.statesModels,h);ZS(r,c)}r.percent=0,(n.prevValue==null?te:Dt)(r,{percent:1},i,t,null,u)}var J2=["textStyle","color"],Ef=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],kf=new dt,Q2=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(J2):null)},r.prototype.getFont=function(){return K2({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<Ef.length;i++)e[Ef[i]]=this.getShallow(Ef[i]);return kf.useStyle(e),kf.update(),kf.getBoundingRect()},r}(),tP=Q2,qS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],eP=ln(qS),rP=function(){function r(){}return r.prototype.getLineStyle=function(t){return eP(this,t)},r}(),KS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],iP=ln(KS),aP=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return iP(this,t,e)},r}(),Aa=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(!ht.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}();Mc(Aa);tD(Aa);Xt(Aa,rP);Xt(Aa,aP);Xt(Aa,nD);Xt(Aa,tP);var At=Aa,nP=Math.round(Math.random()*10);function xn(r){return[r||"",nP++].join("_")}function oP(r){var t={};r.registerSubTypeDefaulter=function(e,i){var a=br(e);t[a.main]=i},r.determineSubType=function(e,i){var a=i.type;if(!a){var n=br(e).main;r.hasSubTypes(e)&&t[n]&&(a=t[n](i))}return a}}function sP(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(),p=f[v],d=!!c[v];d&&(s.call(l,v,p.originalDeps.slice()),delete c[v]),w(p.successor,d?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 Mi(r,t){return Q(Q({},r,!0),t,!0)}var lP={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:". "}}}},uP={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:""}}}},Bl="ZH",Wc="EN",Eo=Wc,vl={},$c={},jS=ht.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Bl)>-1?Bl:Eo}():Eo;function Uc(r,t){r=r.toUpperCase(),$c[r]=new At(t),vl[r]=t}function fP(r){if(V(r)){var t=vl[r.toUpperCase()]||{};return r===Bl||r===Wc?X(t):Q(X(t),X(vl[Eo]),!1)}else return Q(X(r),X(vl[Eo]),!1)}function dv(r){return $c[r]}function hP(){return $c[Eo]}Uc(Wc,lP);Uc(Bl,uP);var Yc=1e3,Xc=Yc*60,yo=Xc*60,Ne=yo*24,Pg=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}"},Ms="{yyyy}-{MM}-{dd}",Lg={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ms,hour:Ms+" "+ro.hour,minute:Ms+" "+ro.minute,second:Ms+" "+ro.second,millisecond:ro.none},Of=["year","month","day","hour","minute","second","millisecond"],JS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ae(r,t){return r+="","0000".substr(0,t-r.length)+r}function an(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 vP(r){return r===an(r)}function cP(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function rs(r,t,e,i){var a=Ae(r),n=a[Zc(e)](),o=a[nn(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Au(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[ko(e)](),h=(f-1)%12+1,c=a[Mu(e)](),v=a[Du(e)](),p=a[Pu(e)](),d=i instanceof At?i:dv(i||jS)||hP(),g=d.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,ae(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,ae(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ae(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ae(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ae(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ae(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,ae(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ae(p,3)).replace(/{S}/g,p+"")}function pP(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=k({},ro);if(r.level>0)for(var s=0;s<Of.length;++s)o[Of[s]]="{primary|"+o[Of[s]]+"}";var l=e?e.inherit===!1?e:Z(e,o):o,u=QS(r.value,a);if(l[u])n=l[u];else if(l.inherit){for(var f=JS.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 rs(new Date(r.value),n,a,i)}function QS(r,t){var e=Ae(r),i=e[nn(t)]()+1,a=e[Au(t)](),n=e[ko(t)](),o=e[Mu(t)](),s=e[Du(t)](),l=e[Pu(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&n===0,v=c&&a===1,p=v&&i===1;return p?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Ig(r,t,e){var i=yt(r)?Ae(r):r;switch(t=t||QS(r,e),t){case"year":return i[Zc(e)]();case"half-year":return i[nn(e)]()>=6?1:0;case"quarter":return Math.floor((i[nn(e)]()+1)/4);case"month":return i[nn(e)]();case"day":return i[Au(e)]();case"half-day":return i[ko(e)]()/24;case"hour":return i[ko(e)]();case"minute":return i[Mu(e)]();case"second":return i[Du(e)]();case"millisecond":return i[Pu(e)]()}}function Zc(r){return r?"getUTCFullYear":"getFullYear"}function nn(r){return r?"getUTCMonth":"getMonth"}function Au(r){return r?"getUTCDate":"getDate"}function ko(r){return r?"getUTCHours":"getHours"}function Mu(r){return r?"getUTCMinutes":"getMinutes"}function Du(r){return r?"getUTCSeconds":"getSeconds"}function Pu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function dP(r){return r?"setUTCFullYear":"setFullYear"}function tx(r){return r?"setUTCMonth":"setMonth"}function ex(r){return r?"setUTCDate":"setDate"}function rx(r){return r?"setUTCHours":"setHours"}function ix(r){return r?"setUTCMinutes":"setMinutes"}function ax(r){return r?"setUTCSeconds":"setSeconds"}function nx(r){return r?"setUTCMilliseconds":"setMilliseconds"}function gP(r,t,e,i,a,n,o,s){var l=new dt({style:{text:r,font:t,align:e,verticalAlign:i,padding:a,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function qc(r){if(!Tc(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 Kc(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 Ma=hc;function gv(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?Ae(r):r;if(isNaN(+l)){if(s)return"-"}else return rs(l,i,e)}if(t==="ordinal")return Sl(r)?a(r):yt(r)&&n(r)?r+"":"-";var u=$r(r);return n(u)?qc(u):Sl(r)?a(r):typeof r=="boolean"?r+"":"-"}var Rg=["a","b","c","d","e","f","g"],Bf=function(r,t){return"{"+r+(t==null?"":t)+"}"};function jc(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=Rg[n];r=r.replace(Bf(o),Bf(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(Bf(Rg[l],s),e?oe(u):u)}return r}function yP(r,t,e){return w(t,function(i,a){r=r.replace("{"+a+"}",e?oe(i):i)}),r}function ox(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:'+oe(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+oe(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 mP(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
- yyyy`);var i=Ae(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",ae(o,2)).replace("M",o).replace("yyyy",n).replace("yy",ae(n%100+"",2)).replace("dd",ae(s,2)).replace("d",s).replace("hh",ae(l,2)).replace("h",l).replace("mm",ae(u,2)).replace("m",u).replace("ss",ae(f,2)).replace("s",f).replace("SSS",ae(h,3)),r}function _P(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function xa(r,t){return t=t||"transparent",V(r)?r:U(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Eg(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var cl=w,sx=["left","right","top","bottom","width","height"],la=[["width","left","right"],["height","top","bottom"]];function Jc(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,p;if(r==="horizontal"){var d=f.width+(c?-c.x+f.x:0);v=n+d,v>i||l.newline?(n=0,v=d,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);p=o+g,p>a||l.newline?(n+=s+e,o=0,p=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=p+e)})}var da=Jc;vt(Jc,"vertical");vt(Jc,"horizontal");function KG(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=Ma(e||0),{width:Math.max(s-n-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function ve(r,t,e){e=Ma(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 p=new st(n+e[3],o+e[0],u,f);return p.margin=e,p}function Qc(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 st(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=ve(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 SP(r,t){return r[la[t][0]]!=null||r[la[t][1]]!=null&&r[la[t][2]]!=null}function Oo(r){var t=r.layoutMode||r.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function bi(r,t,e){var i=e&&e.ignoreSize;!N(i)&&(i=[i,i]);var a=o(la[0],0),n=o(la[1],1);u(la[0],r,a),u(la[1],r,n);function o(f,h){var c={},v=0,p={},d=0,g=2;if(cl(f,function(_){p[_]=r[_]}),cl(f,function(_){s(t,_)&&(c[_]=p[_]=t[_]),l(c,_)&&v++,l(p,_)&&d++}),i[h])return l(t,f[1])?p[f[2]]=null:l(t,f[2])&&(p[f[1]]=null),p;if(d===g||!v)return p;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){cl(f,function(v){h[v]=c[v]})}}function bn(r){return lx({},r)}function lx(r,t){return t&&r&&cl(sx,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var xP=St(),wn=function(r){O(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=Oo(this),n=a?bn(e):{},o=i.getTheme();Q(e,o.get(this.mainType)),Q(e,this.getDefaultOption()),a&&bi(e,n,a)},t.prototype.mergeOption=function(e,i){Q(this.option,e,!0);var a=Oo(this);a&&bi(this.option,e,a)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!jM(e))return e.defaultOption;var i=xP(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 Jo(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}(At);tS(wn,At);hu(wn);oP(wn);sP(wn,bP);function bP(r){var t=[];return w(wn.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return br(e).main}),r!=="dataset"&&ot(t,"dataset")<=0&&t.unshift("dataset"),t}var ft=wn,ux="";typeof navigator!="undefined"&&(ux=navigator.platform||"");var Va="rgba(0, 0, 0, 0.2)",wP={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Va,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Va,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Va,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Va,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Va,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Va,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ux.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},fx=$(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),$e="original",be="arrayRows",sr="objectRows",Pr="keyedColumns",mi="typedArray",hx="unknown",Fr="column",Tn="row",$t={Must:1,Might:2,Not:3},vx=St();function TP(r){vx(r).datasetMap=$()}function CP(r,t,e){var i={},a=tp(t);if(!a||!r)return i;var n=[],o=[],s=t.ecModel,l=vx(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),w(r,function(d,g){var y=U(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),i[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});w(r,function(d,g){var y=d.name,m=p(d);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(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return n.length&&(i.itemName=n),o.length&&(i.seriesName=o),i}function cx(r,t,e){var i={},a=tp(r);if(!a)return i;var n=t.sourceFormat,o=t.dimensionsDefine,s;(n===sr||n===Pr)&&w(o,function(f,h){(U(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,p=Math.min(5,e);v<p;v++){var d=dx(t.data,n,t.seriesLayoutBy,o,t.startIndex,v);c.push(d);var g=d===$t.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===$t.Not)&&(f.n=v),y(f)&&c[f.n]!==$t.Not)return f;g||(d===$t.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 tp(r){var t=r.get("data",!0);if(!t)return Jo(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},zt).models[0]}function AP(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Jo(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},zt).models}function px(r,t){return dx(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function dx(r,t,e,i,a,n){var o,s=5;if(xe(r))return $t.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"?$t.Must:$t.Not;if(t===be){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 p=h[a+v];if(p&&(o=S(p[n]))!=null)return o}}else if(t===sr){var d=r;if(!l)return $t.Not;for(var v=0;v<d.length&&v<s;v++){var g=d[v];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Pr){var y=r;if(!l)return $t.Not;var c=y[l];if(!c||xe(c))return $t.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 $t.Not;if((o=S(_[n]))!=null)return o}function S(b){var x=V(b);if(b!=null&&isFinite(b)&&b!=="")return x?$t.Might:$t.Not;if(x&&b!=="-")return $t.Must}return $t.Not}var yv=$();function MP(r,t){he(yv.get(r)==null&&t),yv.set(r,t)}function DP(r,t,e){var i=yv.get(t);if(!i)return e;var a=i(r);return a?e.concat(a):e}var kg=St(),PP=St(),ep=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var a=Mt(this.get("color",!0)),n=this.get("colorLayer",!0);return gx(this,kg,a,n,t,e,i)},r.prototype.clearColorPalette=function(){IP(this,kg)},r}();function Og(r,t,e,i){var a=Mt(r.get(["aria","decal","decals"]));return gx(r,PP,a,null,t,e,i)}function LP(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 gx(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:LP(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 IP(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Ds,En,Bg,Ng="\0_ec_inner",RP=1,yx=function(r){O(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 At(n),this._locale=new At(o),this._optionManager=s},t.prototype.setOption=function(e,i,a){var n=Fg(i);this._optionManager.setOption(e,a,n),this._resetOption(null,n)},t.prototype.resetOption=function(e,i){return this._resetOption(e,Fg(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"?Bg(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;TP(this),w(e,function(h,c){h!=null&&(ft.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){ft.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),ft.topologicalTravel(s,ft.getAllClassMainTypes(),f,this);function f(h){var c=DP(this,h,Mt(e[h])),v=n.get(h),p=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=q1(v,c,p);HM(d,h,ft),a[h]=null,n.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;w(d,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=ft.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=k({componentIndex:b},S.keyInfo);x=new A(T,this,this,D),k(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"&&Ds(this)}this._seriesIndices||Ds(this)},t.prototype.getOption=function(){var e=X(this.option);return w(e,function(i,a){if(ft.hasClass(a)){for(var n=Mt(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!Do(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,e[a]=n}}),delete e[Ng],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(Mt(a),function(u){s[u]&&l.push(s[u])})):n!=null?l=zg("id",n,s):o!=null?l=zg("name",o,s):l=Ct(s,function(u){return!!u}),Vg(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(Vg(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 p=h[v];p&&s.call(o,c,p,p.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=Qt(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){Ds(this);var i=this._componentsMap,a=[];i.each(function(n,o){ft.hasClass(o)&&a.push(o)}),ft.topologicalTravel(a,ft.getAllClassMainTypes(),function(n){w(i.get(n),function(o){o&&(n!=="series"||!EP(o,e))&&o.restoreData()})})},t.internalField=function(){Ds=function(e){var i=e._seriesIndices=[];w(e._componentsMap.get("series"),function(a){a&&i.push(a.componentIndex)}),e._seriesIndicesMap=$(i)},En=function(e){},Bg=function(e,i){e.option={},e.option[Ng]=RP,e._componentsMap=$({series:[]}),e._componentsCount=$();var a=i.aria;U(a)&&a.enabled==null&&(a.enabled=!0),kP(i,e._theme.option),Q(i,wP,!1),e._mergeOption(i,null)}}(),t}(At);function EP(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 kP(r,t){var e=r.color&&!r.colorLayer;w(t,function(i,a){a==="colorLayer"&&e||ft.hasClass(a)||(typeof i=="object"?r[a]=r[a]?Q(r[a],i,!1):X(i):r[a]==null&&(r[a]=i))})}function zg(r,t,e){if(N(t)){var i=$();return w(t,function(n){if(n!=null){var o=Qt(n,null);o!=null&&i.set(n,!0)}}),Ct(e,function(n){return n&&i.get(n[r])})}else{var a=Qt(t,null);return Ct(e,function(n){return n&&a!=null&&n[r]===a})}}function Vg(r,t){return t.hasOwnProperty("subType")?Ct(r,function(e){return e&&e.subType===t.subType}):r}function Fg(r){var t=$();return r&&w(Mt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Xt(yx,ep);var mx=yx,OP=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],BP=function(){function r(t){w(OP,function(e){this[e]=H(t[e],t)},this)}return r}(),_x=BP,Nf={},NP=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var i=[];w(Nf,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){Nf[t]=e},r.get=function(t){return Nf[t]},r}(),Lu=NP,zP=/^(min|max)?(.+)$/,VP=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(w(Mt(t.series),function(o){o&&o.data&&xe(o.data)&&wo(o.data)}),w(Mt(t.dataset),function(o){o&&o.source&&xe(o.source)&&wo(o.source)})),t=X(t);var a=this._optionBackup,n=FP(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++)GP(a[l].query,e,i)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!WP(o,this._currentMediaIndices)&&(s=z(o,function(f){return X(f===-1?n.option:a[f].option)})),this._currentMediaIndices=o,s},r}();function FP(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(p){p(v,e)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:a,mediaList:i}}function GP(r,t,e){var i={width:t,height:e,aspectratio:t/e},a=!0;return w(r,function(n,o){var s=o.match(zP);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();HP(i[u],n,l)||(a=!1)}}),a}function HP(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function WP(r,t){return r.join(",")===t.join(",")}var $P=VP,Xe=w,Bo=U,Gg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function zf(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,i=Gg.length;e<i;e++){var a=Gg[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 Ot(r,t){var e=Bo(r)&&r[t],i=Bo(e)&&e.textStyle;if(i)for(var a=0,n=Hd.length;a<n;a++){var o=Hd[a];i.hasOwnProperty(o)&&(e[o]=i[o])}}function Re(r){r&&(io(r),Ot(r,"label"),r.emphasis&&Ot(r.emphasis,"label"))}function UP(r){if(!!Bo(r)){zf(r),io(r),Ot(r,"label"),Ot(r,"upperLabel"),Ot(r,"edgeLabel"),r.emphasis&&(Ot(r.emphasis,"label"),Ot(r.emphasis,"upperLabel"),Ot(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(zf(t),Re(t));var e=r.markLine;e&&(zf(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&&!xe(n))for(var o=0;o<n.length;o++)Re(n[o]);w(r.categories,function(u){io(u)})}if(a&&!xe(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"?(Ot(r,"axisLabel"),Ot(r,"title"),Ot(r,"detail")):r.type==="treemap"?(Jt(r.breadcrumb,"itemStyle"),w(r.levels,function(u){io(u)})):r.type==="tree"&&io(r.leaves)}}function Rr(r){return N(r)?r:r?[r]:[]}function Hg(r){return(N(r)?r[0]:r)||{}}function YP(r,t){Xe(Rr(r.series),function(i){Bo(i)&&UP(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Xe(e,function(i){Xe(Rr(r[i]),function(a){a&&(Ot(a,"axisLabel"),Ot(a.axisPointer,"label"))})}),Xe(Rr(r.parallel),function(i){var a=i&&i.parallelAxisDefault;Ot(a,"axisLabel"),Ot(a&&a.axisPointer,"label")}),Xe(Rr(r.calendar),function(i){Jt(i,"itemStyle"),Ot(i,"dayLabel"),Ot(i,"monthLabel"),Ot(i,"yearLabel")}),Xe(Rr(r.radar),function(i){Ot(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(Rr(r.geo),function(i){Bo(i)&&(Re(i),Xe(Rr(i.regions),function(a){Re(a)}))}),Xe(Rr(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(Rr(r.toolbox),function(i){Jt(i,"iconStyle"),Xe(i.feature,function(a){Jt(a,"iconStyle")})}),Ot(Hg(r.axisPointer),"label"),Ot(Hg(r.tooltip).axisPointer,"label")}function XP(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 Wg(r){r&&w(qP,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var qP=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],KP=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Vf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function kn(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Vf.length;e++){var i=Vf[e][1],a=Vf[e][0];t[i]!=null&&(t[a]=t[i])}}function $g(r){!r||r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Ug(r){!r||r.downplay&&!r.blur&&(r.blur=r.downplay)}function jP(r){!r||r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Sx(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Sx(r[e].children,t)}function xx(r,t){YP(r,t),r.series=Mt(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),$g(e.label);var a=e.data;if(a&&!xe(a))for(var n=0;n<a.length;n++)$g(a[n]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=XP(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&&!xe(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)),Ug(e),Sx(e.data,Ug)}else i==="graph"||i==="sankey"?jP(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)),Wg(e)}}),r.dataRange&&(r.visualMap=r.dataRange),w(KP,function(e){var i=r[e];i&&(N(i)||(i=[i]),w(i,function(a){Wg(a)}))})}function JP(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(QP)}function QP(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,p;s?p=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var d=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,v)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=LM(c,m),d=m;break}}}return i[0]=c,i[1]=d,i})})}var Iu=function(){function r(t){this.data=t.data||(t.sourceFormat===Pr?{}:[]),this.sourceFormat=t.sourceFormat||hx,this.seriesLayoutBy=t.seriesLayoutBy||Fr,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&&px(this,i)===$t.Must&&(a.type="ordinal")}}return r}();function rp(r){return r instanceof Iu}function mv(r,t,e){e=e||bx(r);var i=t.seriesLayoutBy,a=eL(r,e,i,t.sourceHeader,t.dimensions),n=new Iu({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:X(t)});return n}function ip(r){return new Iu({data:r,sourceFormat:xe(r)?mi:$e})}function tL(r){return new Iu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:X(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function bx(r){var t=hx;if(xe(r))t=mi;else if(N(r)){r.length===0&&(t=be);for(var e=0,i=r.length;e<i;e++){var a=r[e];if(a!=null){if(N(a)){t=be;break}else if(U(a)){t=sr;break}}}}else if(U(r)){for(var n in r)if(G(r,n)&&ee(r[n])){t=Pr;break}}return t}function eL(r,t,e,i,a){var n,o;if(!r)return{dimensionsDefine:Yg(a),startIndex:o,dimensionsDetectedCount:n};if(t===be){var s=r;i==="auto"||i==null?Xg(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=[],Xg(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===sr)a||(a=rL(r));else if(t===Pr)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:Yg(a),dimensionsDetectedCount:n}}function rL(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return at(e)}function Yg(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 Xg(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 Tx(r){var t=r.sourceFormat;return t===sr||t===Pr}var Ui,Yi,Xi,Zg,qg,Cx=function(){function r(t,e){var i=rp(t)?t:ip(t);this._source=i;var a=this._data=i.data;i.sourceFormat===mi&&(this._offset=0,this._dimSize=e,this._data=a),qg(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;qg=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=Zg[ap(u,f)];if(k(o,v),u===mi)o.getItem=e,o.count=a,o.fillStorage=i;else{var p=Ax(u,f);o.getItem=H(p,null,s,h,c);var d=Mx(u,f);o.count=H(d,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],p=v[0]==null?1/0:v[0],d=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]=_,_<p&&(p=_),_>d&&(d=_)}v[0]=p,v[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};Zg=(t={},t[be+"_"+Fr]={pure:!0,appendData:n},t[be+"_"+Tn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[sr]={pure:!0,appendData:n},t[Pr]={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[mi]={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}(),Kg=function(r,t,e,i){return r[i]},iL=(Ui={},Ui[be+"_"+Fr]=function(r,t,e,i){return r[i+t]},Ui[be+"_"+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},Ui[sr]=Kg,Ui[Pr]=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},Ui[$e]=Kg,Ui);function Ax(r,t){var e=iL[ap(r,t)];return e}var jg=function(r,t,e){return r.length},aL=(Yi={},Yi[be+"_"+Fr]=function(r,t,e){return Math.max(0,r.length-t)},Yi[be+"_"+Tn]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Yi[sr]=jg,Yi[Pr]=function(r,t,e){var i=e[0].name,a=r[i];return a?a.length:0},Yi[$e]=jg,Yi);function Mx(r,t){var e=aL[ap(r,t)];return e}var Ff=function(r,t,e){return r[t]},nL=(Xi={},Xi[be]=Ff,Xi[sr]=function(r,t,e){return r[e]},Xi[Pr]=Ff,Xi[$e]=function(r,t,e){var i=mn(r);return i instanceof Array?i[t]:i},Xi[mi]=Ff,Xi);function Dx(r){var t=nL[r];return t}function ap(r,t){return r===be?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 Dx(n)(i,o,s)}else{var l=i;return n===$e&&(l=mn(i)),l}}}}var oL=/\{@(.+?)\}/g,Px=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=jc(n,l);return f.replace(oL,function(h,c){var v=c.length,p=c;p.charAt(0)==="["&&p.charAt(v-1)==="]"&&(p=+p.slice(1,v-1));var d=vn(s,t,p);if(o&&N(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return vn(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function Jg(r){var t,e;return U(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function mo(r){return new sL(r)}var sL=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,p=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v<p)){var d=this._progress;if(N(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],v,p,l,u);else this._doProgress(d,v,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;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){Qg.reset(e,i,a,n),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Qg.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}(),Qg=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 pl(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!yt(r)&&r!=null&&r!=="-"&&(r=+Ae(r)),r==null||r===""?NaN:+r)}var lL=$({number:function(r){return parseFloat(r)},time:function(r){return+Ae(r)},trim:function(r){return V(r)?ze(r):r}});function jG(r){return lL.get(r)}var Lx={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}},uL=function(){function r(t,e){if(!yt(e)){var i="";se(i)}this._opFn=Lx[t],this._rvalFloat=$r(e)}return r.prototype.evaluate=function(t){return yt(t)?this._opFn(t,this._rvalFloat):this._opFn($r(t),this._rvalFloat)},r}(),fL=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:$r(t),a=yt(e)?e:$r(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}(),hL=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=$r(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=$r(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function JG(r,t){return r==="eq"||r==="ne"?new hL(r==="eq",t):G(Lx,r)?new uL(r,t):null}var vL=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 pl(t,e)},r}();function cL(r,t){var e=new vL,i=r.data,a=e.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Fr&&se(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";G(l,y)&&se(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=Ax(a,Fr);t.__isBuiltIn&&(e.getRawDataItem=function(d){return h(i,n,s,d)},e.getRawData=H(pL,null,r)),e.cloneRawData=H(dL,null,r);var c=Mx(a,Fr);e.count=H(c,null,i,n,s);var v=Dx(a);e.retrieveValue=function(d,g){var y=h(i,n,s,d);return p(y,g)};var p=e.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return v(d,g,y.name)}};return e.getDimensionInfo=H(gL,null,s,l),e.cloneAllDimensionInfo=H(yL,null,s),e}function pL(r){var t=r.sourceFormat;if(!np(t)){var e="";se(e)}return r.data}function dL(r){var t=r.sourceFormat,e=r.data;if(!np(t)){var i="";se(i)}if(t===be){for(var a=[],n=0,o=e.length;n<o;n++)a.push(e[n].slice());return a}else if(t===sr){for(var a=[],n=0,o=e.length;n<o;n++)a.push(k({},e[n]));return a}}function gL(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 yL(r){return X(r)}var Ix=$();function mL(r){r=X(r);var t=r.type,e="";t||se(e);var i=t.split(":");i.length!==2&&se(e);var a=!1;i[0]==="echarts"&&(t=i[1],a=!0),r.__isBuiltIn=a,Ix.set(t,r)}function _L(r,t,e){var i=Mt(r),a=i.length,n="";a||se(n);for(var o=0,s=a;o<s;o++){var l=i[o];t=SL(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function SL(r,t,e,i){var a="";t.length||se(a),U(r)||se(a);var n=r.type,o=Ix.get(n);o||se(a);var s=z(t,function(u){return cL(u,o)}),l=Mt(o.transform({upstream:s[0],upstreamList:s,config:X(r.config)}));return z(l,function(u,f){var h="";U(u)||se(h),u.data||se(h);var c=bx(u.data);np(c)||se(h);var v,p=t[0];if(p&&f===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),v={seriesLayoutBy:Fr,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else v={seriesLayoutBy:Fr,sourceHeader:0,dimensions:u.dimensions};return mv(u.data,v,null)})}function np(r){return r===be||r===sr}var Ru="undefined",xL=typeof Uint32Array===Ru?Array:Uint32Array,bL=typeof Uint16Array===Ru?Array:Uint16Array,Rx=typeof Int32Array===Ru?Array:Int32Array,ty=typeof Float64Array===Ru?Array:Float64Array,Ex={float:ty,int:Rx,ordinal:Array,number:Array,time:ty},Gf;function On(r){return r>65535?xL:bL}function Fa(){return[1/0,-1/0]}function wL(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function ey(r,t,e,i,a){var n=Ex[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 TL=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=Gf[a.sourceFormat];this._dimValueGetter=i||n,this._rawExtent=[],Tx(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 Ex[e||"float"](this._rawCount),this._rawExtent[n]=Fa(),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]=Fa());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];ey(i,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,p=0;p<n;p++){var f=a[p],d=Gf.arrayRows.call(this,t[v]||h,f.property,v,p);i[p][c]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}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]=Fa()),ey(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 p=0;p<s;p++){var d=n[p],g=this._dimValueGetter(c,u[p],v,p);d[v]=g;var y=l[p];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],p=Math.abs(v);p<=i&&((p<s||p===s&&v>=0&&l<0)&&(s=p,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,p=i.getRawIndex(c);if(l===0)v=e(c);else if(l===1){var d=h[f][p];v=e(d,c)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][p];s[g]=c,v=e.apply(null,s)}v&&(o[u++]=p)}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,p=!1;if(!e._indices){var d=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++]=d),d++}p=!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++]=d),d++}p=!0}}if(!p)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]]=Fa();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 p=i&&i.apply(null,l);if(p!=null){typeof p!="object"&&(n[0]=p,p=n);for(var f=0;f<p.length;f++){var d=e[f],g=p[f],y=u[d],m=a[d];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 p=1;p<o-1;p+=l){for(var d=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+d)/2,m=0,_=d;_<g;_++){var S=this.getRawIndex(_),b=n[S];isNaN(b)||(m+=b)}m/=g-d;var x=p,T=Math.min(p+l,o),C=p-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]=Fa(),c=new(On(this._rawCount))(Math.ceil(f/l)),v=0,p=0;p<f;p+=l){l>f-p&&(l=f-p,s.length=l);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=i(s),m=this.getRawIndex(Math.min(p+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=Fa();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]?wL(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 pl(e[n],this._dimensions[n])}Gf={arrayRows:t,objectRows:function(e,i,a,n){return pl(e[i],this._dimensions[n])},keyedColumns:t,original:function(e,i,a,n){var o=e&&(e.value==null?e:e.value);return pl(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(e,i,a,n){return e[n]}}}(),r}(),_v=TL,CL=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(Ps(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=xe(s)?mi:$e,n=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=rt(h.seriesLayoutBy,c.seriesLayoutBy)||null,p=rt(h.sourceHeader,c.sourceHeader),d=rt(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||d;a=g?[mv(s,{seriesLayoutBy:v,sourceHeader:p,dimensions:d},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=[mv(_,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&&ry(n)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(a||0),h="";a!=null&&!f&&ry(h),s.push(f),l.push(u._getVersionSign())}),i?o=_L(i,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[tL(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];Ps(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,i):(s=new _v,s.initData(new Cx(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Ps(t)){var e=tp(t);return e?[e.getSourceManager()]:[]}else return z(AP(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,a;if(Ps(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 QG(r){var t=r.option.transform;t&&wo(r.option.transform)}function Ps(r){return r.mainType==="series"}function ry(r){throw new Error(r)}var kx="line-height:1";function Ox(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:"+oe(i+"")+"px;color:"+oe(e)+";font-weight:"+oe(a+""),valueStyle:"font-size:"+oe(o+"")+"px;color:"+oe(n)+";font-weight:"+oe(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:a},valueStyle:{fontSize:o,fill:n,fontWeight:s}}}var AL=[0,10,20,30],ML=["",`
- `,`
- `,`
- `];function Ar(r,t){return t.type=r,t}function Sv(r){return r.type==="section"}function Bx(r){return Sv(r)?DL:PL}function Nx(r){if(Sv(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return w(r.blocks,function(a){var n=Nx(a);n>=t&&(t=n+ +(i&&(!n||Sv(a)&&!a.noHeader)))}),t}return 0}function DL(r,t,e,i){var a=t.noHeader,n=LL(Nx(t)),o=[],s=t.blocks||[];he(!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 fL(u[l],null);s.sort(function(p,d){return f.evaluate(p.sortParam,d.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(p,d){var g=t.valueFormatter,y=Bx(p)(g?k(k({},r),{valueFormatter:g}):r,p,d>0?n.html:0,i);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(n.richText):xv(o.join(""),a?e:n.html);if(a)return h;var c=gv(t.header,"ordinal",r.useUTC),v=Ox(i,r.renderMode).nameStyle;return r.renderMode==="richText"?zx(r,c,v)+n.richText+h:xv('<div style="'+v+";"+kx+';">'+oe(c)+"</div>"+h,e)}function PL(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 gv(b,N(v)?v[x]:v,u)})};if(!(n&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),c=n?"":gv(l,"ordinal",u),v=t.valueType,p=o?[]:f(t.value),d=!s||!n,g=!s&&n,y=Ox(i,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":h)+(n?"":zx(r,c,m))+(o?"":EL(r,p,d,g,_)):xv((s?"":h)+(n?"":IL(c,!s,m))+(o?"":RL(p,d,g,_)),e)}}function iy(r,t,e,i,a,n){if(!!r){var o=Bx(r),s={useUTC:a,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function LL(r){return{html:AL[r],richText:ML[r]}}function xv(r,t){var e='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+kx+';">'+r+e+"</div>"}function IL(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+oe(r)+"</span>"}function RL(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 oe(o)}).join(" ")+"</span>"}function zx(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function EL(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 Vx(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return xa(i)}function Fx(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Hf=function(){function r(){this.richTextStyles={},this._nextStyleNameId=U1()}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=ox({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 k(i,n)}):k(i,e);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+t+"}"},r}();function kL(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=Vx(t,e),f,h,c,v;if(o>1||l&&!o){var p=OL(s,t,e,n,u);f=p.inlineValues,h=p.inlineValueTypes,c=p.blocks,v=p.inlineValues[0]}else if(o){var d=a.getDimensionInfo(n[0]);v=f=vn(a,e,n[0]),h=d.type}else v=f=l?s[0]:s;var g=Cc(t),y=g&&t.name||"",m=a.getName(e),_=i?y:m;return Ar("section",{header:y,noHeader:i||!g,sortParam:v,blocks:[Ar("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ze(_),value:f,valueType:h})].concat(c||[])})}function OL(r,t,e,i,a){var n=t.getData(),o=Ve(r,function(h,c,v){var p=n.getDimensionInfo(v);return h=h||p&&p.tooltip!==!1&&p.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(Ar("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 ei=St();function Ls(r,t){return r.getName(t)||r.getId(t)}var BL="__universalTransitionEnabled",Eu=function(r){O(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=mo({count:zL,reset:VL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var n=ei(this).sourceManager=new CL(this);n.prepareSource();var o=this.getInitialData(e,a);ny(o,this),this.dataTask.context.data=o,ei(this).dataBeforeProcessed=o,ay(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var a=Oo(this),n=a?bn(e):{},o=this.subType;ft.hasClass(o)&&(o+="Series"),Q(e,i.getTheme().get(this.subType)),Q(e,this.getDefaultOption()),Pl(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&bi(e,n,a)},t.prototype.mergeOption=function(e,i){e=Q(this.option,e,!0),this.fillDataTextStyle(e.data);var a=Oo(this);a&&bi(this.option,e,a);var n=ei(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(e,i);ny(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ei(this).dataBeforeProcessed=o,ay(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!xe(e))for(var i=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&Pl(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=bv(this);if(i){var a=i.context.data;return e==null?a:a.getLinkedData(e)}else return ei(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=bv(this);if(i){var a=i.context;a.outputData=e,i!==this.dataTask&&(a.data=e)}ei(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return $(e)},t.prototype.getSourceManager=function(){return ei(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ei(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 kL({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(ht.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=ep.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=Ls(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[Ls(n,e)])&&!n.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[BL])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=Ls(e,h);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[l-1],c=Ls(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 ft.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}(ft);Xt(Eu,Px);Xt(Eu,ep);tS(Eu,ft);function ay(r){var t=r.name;Cc(r)||(r.name=NL(r)||t)}function NL(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 zL(r){return r.model.getRawData().count()}function VL(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),FL}function FL(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ny(r,t){w(n1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,vt(GL,t))})}function GL(r,t){var e=bv(r);return e&&e.setOutputEnd((t||this).count()),t}function bv(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 we=Eu,op=function(){function r(){this.group=new it,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}();Mc(op);hu(op);var Pt=op;function sp(){var r=St();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 Gx=St(),HL=sp(),lp=function(){function r(){this.group=new it,this.uid=xn("viewChart"),this.renderTask=mo({plan:WL,reset:$L}),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||sy(n,a,"emphasis")},r.prototype.downplay=function(t,e,i,a){var n=t.getData(a&&a.dataType);!n||sy(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){wu(this.group,t)},r.markUpdateMethod=function(t,e){Gx(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function oy(r,t,e){r&&fv(r)&&(t==="emphasis"?un:fn)(r,e)}function sy(r,t,e){var i=Sa(r,t),a=t&&t.highlightKey!=null?h2(t.highlightKey):null;i!=null?w(Mt(i),function(n){oy(r.getItemGraphicEl(n),e,a)}):r.eachItemGraphicEl(function(n){oy(n,e,a)})}Mc(lp);hu(lp);function WL(r){return HL(r.model)}function $L(r){var t=r.model,e=r.ecModel,i=r.api,a=r.payload,n=t.pipelineContext.progressiveRender,o=r.view,s=a&&Gx(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,a),UL[l]}var UL={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)}}},Ut=lp,Nl="\0__throttleOriginMethod",ly="\0__throttleRate",uy="\0__throttleType";function ku(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=[],p=0;p<arguments.length;p++)v[p]=arguments[p];i=new Date().getTime(),l=this,u=v;var d=f||t,g=f||e;f=null,s=i-(g?a:n)-d,clearTimeout(o),g?o=setTimeout(h,d):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 is(r,t,e,i){var a=r[t];if(!!a){var n=a[Nl]||a,o=a[uy],s=a[ly];if(s!==e||o!==i){if(e==null||!i)return r[t]=n;a=r[t]=ku(n,e,i==="debounce"),a[Nl]=n,a[uy]=i,a[ly]=e}return a}}function No(r,t){var e=r[t];e&&e[Nl]&&(e.clear&&e.clear(),r[t]=e[Nl])}var fy=St(),hy={itemStyle:ln(KS,!0),lineStyle:ln(qS,!0)},YL={lineStyle:"stroke",itemStyle:"fill"};function Hx(r,t){var e=r.visualStyleMapper||hy[t];return e||(console.warn("Unknown style type '"+t+"'."),hy.itemStyle)}function Wx(r,t){var e=r.visualDrawType||YL[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var XL={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=r.getModel(i),n=Hx(r,i),o=n(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Wx(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,p){var d=r.getDataParams(p),g=k({},o);g[l]=f(d),v.setItemVisual(p,"style",g)}}}},Bn=new At,ZL={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=Hx(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");k(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}}}},qL={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)),fy(e).scope=n}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),a={},n=e.getData(),o=fy(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Wx(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+"",p=i.count();c[l]=e.getColorFromPalette(v,o,p)}})}})}},Is=Math.PI;function KL(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 it,i=new pt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var a=new dt({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 pt({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 mu({shape:{startAngle:-Is/2,endAngle:-Is/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:Is*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Is*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 jL=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="";he(!(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,p=c.agentStubMap;p.each(function(g){s(a,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var d=o.getPerformArgs(c,a.block);p.each(function(g){g.perform(d)}),c.perform(d)&&(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)||mo({plan:rI,reset:iI,count:nI}));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||mo({reset:JL});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="";he(!t.createOnAllSeries,v),u?i.eachRawSeriesByType(u,p):f?f(i,a).each(p):(h=!1,w(i.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(c=!0,mo({reset:QL,onDirty:eI})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,n._pipe(d,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:oI(t)}),t.uid=xn("stageHandler"),e&&(t.visualType=e),t},r}();function JL(r){r.overallReset(r.ecModel,r.api,r.payload)}function QL(r){return r.overallProgress&&tI}function tI(){this.agent.dirty(),this.getDownstream().dirty()}function eI(){this.agent&&this.agent.dirty()}function rI(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function iI(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Mt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,i){return $x(i)}):aI}var aI=$x(0);function $x(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 nI(r){return r.data.count()}function oI(r){zl=null;try{r(zo,Ux)}catch(t){}return zl}var zo={},Ux={},zl;Yx(zo,mx);Yx(Ux,_x);zo.eachSeriesByType=zo.eachRawSeriesByType=function(r){zl=r};zo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(zl=r.subType)};function Yx(r,t){for(var e in t.prototype)r[e]=Gt}var Xx=jL,vy=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],sI={color:vy,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],vy]},re="#B9B8CE",cy="#100C2A",Rs=function(){return{axisLine:{lineStyle:{color:re}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},py=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Zx={darkMode:!0,color:py,backgroundColor:cy,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:re}},textStyle:{color:re},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:re}},dataZoom:{borderColor:"#71708A",textStyle:{color:re},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:re}},timeline:{lineStyle:{color:re},label:{color:re},controlStyle:{color:re,borderColor:re}},calendar:{itemStyle:{color:cy},dayLabel:{color:re},monthLabel:{color:re},yearLabel:{color:re}},timeAxis:Rs(),logAxis:Rs(),valueAxis:Rs(),categoryAxis:Rs(),line:{symbol:"circle"},graph:{color:py},gauge:{title:{color:re},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:re},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Zx.categoryAxis.splitLine.show=!1;var lI=Zx,uI=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},a={};if(V(t)){var n=br(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 p=u.slice(0,v);p!=="data"&&(e.mainType=p,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,p){return h[v]==null||c[p||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),wv=["symbol","symbolSize","symbolRotate","symbolOffset"],dy=wv.concat(["symbolKeepAspect"]),fI={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<wv.length;o++){var s=wv[o],l=r.get(s);q(l)?(n=!0,a[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(k({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),p=r.getDataParams(c),d=0;d<u.length;d++){var g=u[d];h.setItemVisual(c,g,a[g](v,p))}}return{dataEach:n?f:null}}},hI={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<dy.length;s++){var l=dy[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(n,l,u)}}return{dataEach:e.hasItemOption?i:null}}};function up(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 qx(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 Kx(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 jx(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=k({},a),o.dispatchAction(k(a,{type:i[1],seriesIndex:e(n,a)}))})})}function Ga(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=Sa(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:k({},l)})}})}function vI(r,t,e){r.on("selectchanged",function(i){var a=e.getModel();i.isFromClick?(Ga("map","selectchanged",t,a,i),Ga("pie","selectchanged",t,a,i)):i.fromAction==="select"?(Ga("map","selected",t,a,i),Ga("pie","selected",t,a,i)):i.fromAction==="unselect"&&(Ga("map","unselected",t,a,i),Ga("pie","unselected",t,a,i))})}function ua(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var cI=Math.round(Math.random()*9),pI=typeof Object.defineProperty=="function",dI=function(){function r(){this._id="__ec_inner_"+cI++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return pI?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}(),gI=dI,yI=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()}}),mI=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()}}),_I=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,p=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-p,e,i),r.bezierCurveTo(e,i-p,e-f+h*v,l+s+c*v,e-f,l+s),r.closePath()}}),SI=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()}}),xI={line:le,rect:pt,roundRect:pt,square:pt,circle:nr,diamond:mI,pin:_I,arrow:SI,triangle:yI},bI={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}},Vl={};w(xI,function(r,t){Vl[t]=new r});var wI=gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=Dl(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=Vl[i];a||(i="rect",a=Vl[i]),bI[i](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function TI(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 Yt(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=Fc(r.slice(8),new st(t,e,i,a),o?"center":"cover"):r.indexOf("path://")===0?l=Su(r.slice(7),{},new st(t,e,i,a),o?"center":"cover"):l=new wI({shape:{symbolType:r,x:t,y:e,width:i,height:a}}),l.__isEmptyBrush=s,l.setColor=TI,n&&l.setColor(n),l}function fp(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Ou(r,t){if(r!=null)return N(r)||(r=[r,r]),[K(r[0],t[0])||0,K(rt(r[1],r[0]),t[1])||0]}function fa(r){return isFinite(r)}function CI(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=fa(i)?i:0,a=fa(a)?a:1,n=fa(n)?n:0,o=fa(o)?o:0;var s=r.createLinearGradient(i,n,a,o);return s}function AI(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=fa(o)?o:.5,s=fa(s)?s:.5,l=l>=0&&fa(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function gy(r,t,e){for(var i=t.type==="radial"?AI(r,t,e):CI(r,t,e),a=t.colorStops,n=0;n<a.length;n++)i.addColorStop(a[n].offset,a[n].color);return i}function MI(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 Es(r){return parseInt(r,10)}function yy(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]||Es(s[i])||Es(r.style[i]))-(Es(s[n])||0)-(Es(s[o])||0)|0}function DI(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 hp(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&DI(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 PI=new Yr(!0);function Fl(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function my(r){return typeof r=="string"&&r!=="none"}function Gl(r){var t=r.fill;return t!=null&&t!=="none"}function _y(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 Sy(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 xy(r,t,e){var i=Dc(t.image,t.__image,e);if(vu(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)*so),n.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(n)}return a}}function LI(r,t,e,i){var a,n=Fl(e),o=Gl(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||PI,h=t.__dirty;if(!i){var c=e.fill,v=e.stroke,p=o&&!!c.colorStops,d=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;(p||d)&&(x=t.getBoundingRect()),p&&(m=h?gy(r,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),d&&(_=h?gy(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?xy(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?xy(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?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=hp(t),C=a[0],A=a[1]);var D=!0;(u||h&Za)&&(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&&Sy(r,e),o&&_y(r,e)):(o&&_y(r,e),n&&Sy(r,e))),C&&r.setLineDash([])}function II(r,t,e){var i=t.__image=Dc(e.image,t.__image,t,t.onload);if(!(!i||!vu(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 RI(r,t,e){var i,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||_i,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var n=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=hp(t),n=i[0],o=i[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),e.strokeFirst?(Fl(e)&&r.strokeText(a,e.x,e.y),Gl(e)&&r.fillText(a,e.x,e.y)):(Gl(e)&&r.fillText(a,e.x,e.y),Fl(e)&&r.strokeText(a,e.x,e.y)),n&&r.setLineDash([])}}var by=["shadowBlur","shadowOffsetX","shadowOffsetY"],wy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Jx(r,t,e,i,a){var n=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){Se(r,a),n=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?ca.opacity:o}(i||t.blend!==e.blend)&&(n||(Se(r,a),n=!0),r.globalCompositeOperation=t.blend||ca.blend);for(var s=0;s<by.length;s++){var l=by[s];(i||t[l]!==e[l])&&(n||(Se(r,a),n=!0),r[l]=r.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(n||(Se(r,a),n=!0),r.shadowColor=t.shadowColor||ca.shadowColor),n}function Ty(r,t,e,i,a){var n=Vo(t,a.inHover),o=i?null:e&&Vo(e,a.inHover)||{};if(n===o)return!1;var s=Jx(r,n,o,i,a);if((i||n.fill!==o.fill)&&(s||(Se(r,a),s=!0),my(n.fill)&&(r.fillStyle=n.fill)),(i||n.stroke!==o.stroke)&&(s||(Se(r,a),s=!0),my(n.stroke)&&(r.strokeStyle=n.stroke)),(i||n.opacity!==o.opacity)&&(s||(Se(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||(Se(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<wy.length;f++){var h=wy[f],c=h[0];(i||n[c]!==o[c])&&(s||(Se(r,a),s=!0),r[c]=n[c]||h[1])}return s}function EI(r,t,e,i,a){return Jx(r,Vo(t,a.inHover),e&&Vo(e,a.inHover),i,a)}function Qx(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 kI(r,t,e){for(var i=!1,a=0;a<r.length;a++){var n=r[a];i=i||n.isZeroArea(),Qx(t,n),t.beginPath(),n.buildPath(t,n.shape),t.clip()}e.allClipped=i}function OI(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 Cy=1,Ay=2,My=3,Dy=4;function BI(r){var t=Gl(r),e=Fl(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 Se(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Vo(r,t){return t&&r.__hoverStyle||r.style}function tb(r,t){Tv(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Tv(r,t,e,i){var a=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~yr,t.__isRendered=!1;return}var n=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||MI(n,o))&&(o&&o.length&&(Se(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),n&&n.length&&(Se(r,e),r.save(),kI(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&&BI(t.style);s||OI(a,u.transform)?(Se(r,e),Qx(r,t)):f||Se(r,e);var h=Vo(t,e.inHover);t instanceof gt?(e.lastDrawType!==Cy&&(l=!0,e.lastDrawType=Cy),Ty(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),LI(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Po?(e.lastDrawType!==My&&(l=!0,e.lastDrawType=My),Ty(r,t,u,l,e),RI(r,t,h)):t instanceof ce?(e.lastDrawType!==Ay&&(l=!0,e.lastDrawType=Ay),EI(r,t,u,l,e),II(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==Dy&&(l=!0,e.lastDrawType=Dy),NI(r,t,e)),f&&i&&Se(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function NI(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(),Tv(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(),Tv(r,l,n,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Wf=new gI,Py=new Ko(100),Ly=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),a=i.painter.type==="svg";r.dirty&&Wf.delete(r);var n=Wf.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,Wf.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,c=0;c<Ly.length;++c){var v=o[Ly[c]];if(v!=null&&!N(v)&&!V(v)&&!yt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var p;if(h){p=f.join(",")+(a?"-svg":"");var d=Py.get(p);d&&(a?u.svgElement=d:u.image=d)}var g=rb(o.dashArrayX),y=zI(o.dashArrayY),m=eb(o.symbol),_=VI(g),S=ib(y),b=!a&&Si.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&&Py.put(p,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=Fd(M,_[P]);for(var I=1,P=0,L=m.length;P<L;++P)I=Fd(I,m[P].length);M*=I;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(R,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,R=0,E=0;L<T.height;){if(I%2===0){for(var W=R/2%m.length,B=0,F=0,Y=0;B<T.width*2;){for(var tt=0,P=0;P<g[E].length;++P)tt+=g[E][P];if(tt<=0)break;if(F%2===0){var J=(1-o.symbolSize)*.5,lt=B+g[E][F]*J,ct=L+y[I]*J,kt=g[E][F]*o.symbolSize,xt=y[I]*o.symbolSize,Zt=Y/2%m[W].length;Ft(lt,ct,kt,xt,m[W][Zt])}B+=g[E][F],++Y,++F,F===g[E].length&&(F=0)}++E,E===g.length&&(E=0)}L+=y[I],++R,++I,I===y.length&&(I=0)}function Ft(Lt,Tt,j,ut,pe){var It=a?1:e,Ue=Yt(pe,Lt*It,Tt*It,j*It,ut*It,o.color,o.symbolKeepAspect);if(a){var de=i.painter.renderOneToVNode(Ue);de&&x.children.push(de)}else tb(C,Ue)}}}}function eb(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 eb([r]);for(var i=[],e=0;e<r.length;++e)V(r[e])?i.push([r[e]]):i.push(r[e]);return i}function rb(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 rb([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 zI(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 VI(r){return z(r,function(t){return ib(t)})}function ib(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function FI(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=Hl(s,t)}});var a=i.getVisual("decal");if(a){var n=i.getVisual("style");n.decal=Hl(a,t)}}})}var GI=new or,je=GI,ab={};function HI(r,t){ab[r]=t}function nb(r){return ab[r]}var WI="5.4.3",$I={zrender:"5.4.4"},UI=1,YI=800,XI=900,ZI=1e3,qI=2e3,KI=5e3,ob=1e3,jI=1100,vp=2e3,sb=3e3,JI=4e3,Bu=4500,QI=4600,tR=5e3,eR=6e3,lb=7e3,ub={PROCESSOR:{FILTER:ZI,SERIES_FILTER:YI,STATISTIC:KI},VISUAL:{LAYOUT:ob,PROGRESSIVE_LAYOUT:jI,GLOBAL:vp,CHART:sb,POST_CHART_LAYOUT:QI,COMPONENT:JI,BRUSH:tR,CHART_ITEM:Bu,ARIA:eR,DECAL:lb}},Kt="__flagInMainProcess",ye="__pendingUpdate",$f="__needsUpdateStatus",Iy=/^[a-zA-Z0-9_]+$/,Uf="__connectUpdateStatus",Ry=0,rR=1,iR=2;function fb(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return vb(this,r,t)}}function hb(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return vb(this,r,t)}}function vb(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),or.prototype[t].apply(r,e)}var cb=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(or),pb=cb.prototype;pb.on=hb("on");pb.off=hb("off");var Ha,Yf,ks,ri,Xf,Zf,qf,Nn,zn,Ey,ky,Kf,Oy,Os,By,db,Me,Ny,Wl=function(r){O(t,r);function t(e,i,a){var n=r.call(this,new uI)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],a=a||{},V(i)&&(i=gb[i]),n._dom=e;var o="canvas",s="auto",l=!1,u=n._zr=rv(e,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:rt(a.useDirtyRect,l),useCoarsePointer:rt(a.useCoarsePointer,s),pointerSize:a.pointerSize});n._ssr=a.ssr,n._throttledZrFlush=ku(H(u.flush,u),17),i=X(i),i&&xx(i,!0),n._theme=i,n._locale=fP(a.locale||jS),n._coordSysMgr=new Lu;var f=n._api=By(n);function h(c,v){return c.__prio-v.__prio}return il(Ul,h),il(Cv,h),n._scheduler=new Xx(n,f,Cv,Ul),n._messageCenter=new cb,n._initEvents(),n.resize=H(n.resize,n),u.animation.on("frame",n._onframe,n),Ey(u,n),ky(u,n),wo(n),n}return t.prototype._onframe=function(){if(!this._disposed){Ny(this);var e=this._scheduler;if(this[ye]){var i=this[ye].silent;this[Kt]=!0;try{Ha(this),ri.update.call(this,null,this[ye].updateParams)}catch(l){throw this[Kt]=!1,this[ye]=null,l}this._zr.flush(),this[Kt]=!1,this[ye]=null,Nn.call(this,i),zn.call(this,i)}else if(e.unfinished){var a=UI,n=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(n),e.performDataProcessorTasks(n),Zf(this,n),e.performVisualTasks(n),Os(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[Kt]){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[Kt]=!0,!this._model||i){var l=new $P(this._api),u=this._theme,f=this._model=new mx;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Av);var h={seriesTransition:s,optionChanged:!0};if(a)this[ye]={silent:n,updateParams:h},this[Kt]=!1,this.getZr().wakeUp();else{try{Ha(this),ri.update.call(this,null,h)}catch(c){throw this[ye]=null,this[Kt]=!1,c}this._ssr||this._zr.flush(),this[ye]=null,this[Kt]=!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||ht.hasGlobalWindow&&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(!!ht.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(Yl[a]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(ga,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 p=f-l,d=h-u,g=Si.createCanvas(),y=rv(g,{renderer:i?"svg":"canvas"});if(y.resize({width:p,height:d}),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 pt({shape:{x:0,y:0,width:p,height:d},style:{fill:e.connectedBackgroundColor}})),w(c,function(_){var S=new ce({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 Xf(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Xf(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var a=this._model,n,o=ho(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=ho(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?up(s,l,i):qx(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(aR,function(i){var a=function(n){var o=e.getModel(),s=n.target,l,u=i==="globalout";if(u?l={}:s&&ua(s,function(p){var d=nt(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=k({},d.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(_o,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)}),vI(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&&j1(this.getDom(),pp,"");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 ga[i.id]},t.prototype.resize=function(e){if(!this[Kt]){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[ye]&&(n==null&&(n=this[ye].silent),a=!0,this[ye]=null),this[Kt]=!0;try{a&&Ha(this),ri.update.call(this,{type:"resize",animation:k({duration:0},e&&e.animation)})}catch(o){throw this[Kt]=!1,o}this[Kt]=!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(),!!Mv[e]){var a=Mv[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=k({},e);return i.type=_o[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(U(i)||(i={silent:!!i}),!!$l[e.type]&&!!this._model){if(this[Kt]){this._pendingActions.push(e);return}var a=i.silent;qf.call(this,e,a);var n=i.flush;n?this._zr.flush():n!==!1&&ht.browser.weChat&&this._throttledZrFlush(),Nn.call(this,a),zn.call(this,a)}},t.prototype.updateLabelLayout=function(){je.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(){Ha=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Yf(h,!0),Yf(h,!1),c.plan()},Yf=function(h,c){for(var v=h._model,p=h._scheduler,d=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<d.length;_++)d[_].__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=br(x.type),M=c?Pt.getClass(D.main,D.sub):Ut.getClass(D.sub);A=new M,A.init(v,m),g[C]=A,d.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&&p.prepareView(A,x,v,m)}for(var _=0;_<d.length;){var b=d[_];b.__alive?_++:(!c&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),d.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ks=function(h,c,v,p,d){var g=h._model;if(g.setUpdatePayload(v),!p){w([].concat(h._componentsViews).concat(h._chartsViews),b);return}var y={};y[p+"Id"]=v[p+"Id"],y[p+"Index"]=v[p+"Index"],y[p+"Name"]=v[p+"Name"];var m={mainType:p,query:y};d&&(m.subType=d);var _=v.excludeSeriesId,S;_!=null&&(S=$(),w(Mt(_),function(x){var T=Qt(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(pg(v))if(x instanceof we)v.type===pa&&!v.notBlur&&!x.get(["emphasis","disabled"])&&r2(x,v,h._api);else{var C=Ec(x.mainType,x.componentIndex,v.name,h._api),A=C.focusSelf,D=C.dispatchers;v.type===pa&&A&&!v.notBlur&&uv(x.mainType,x.componentIndex,h._api),D&&w(D,function(M){v.type===pa?un(M):fn(M)})}else hv(v)&&x instanceof we&&(n2(x,v,h._api),vg(x),Me(h))},h),g&&g.eachComponent(m,function(x){var T=S&&S.get(x.id)!=null;T||b(h[p==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function b(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,h._api,v)}},ri={prepareAndUpdate:function(h){Ha(this),ri.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,p=this._api,d=this._zr,g=this._coordSysMgr,y=this._scheduler;if(!!v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),g.create(v,p),y.performDataProcessorTasks(v,h),Zf(this,v),g.update(v,p),e(v),y.performVisualTasks(v,h),Kf(this,v,p,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");d.setBackgroundColor(m),_!=null&&_!=="auto"&&d.setDarkMode(_),je.trigger("afterupdate",v,p)}},updateTransform:function(h){var c=this,v=this._model,p=this._api;if(!!v){v.setUpdatePayload(h);var d=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,p,h);S&&S.update&&d.push(_)}else d.push(_)}});var g=$();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,p,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),Os(this,v,p,h,{},g),je.trigger("afterupdate",v,p)}},updateView:function(h){var c=this._model;!c||(c.setUpdatePayload(h),Ut.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Kf(this,c,this._api,h,{}),je.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;!v||(v.setUpdatePayload(h),v.eachSeries(function(p){p.getData().clearAllVisual()}),Ut.markUpdateMethod(h,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(p,d){if(p!=="series"){var g=c.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,v,c._api,h)}}),v.eachSeries(function(p){var d=c._chartsMap[p.__viewId];d.updateVisual(p,v,c._api,h)}),je.trigger("afterupdate",v,this._api))},updateLayout:function(h){ri.update.call(this,h)}},Xf=function(h,c,v,p){if(h._disposed){h.id;return}for(var d=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=ho(d,v),_=0;_<g.length;_++){var S=g[_];if(S[c]&&(y=S[c](d,m,p))!=null)return y}},Zf=function(h,c){var v=h._chartsMap,p=h._scheduler;c.eachSeries(function(d){p.updateStreamModes(d,v[d.__viewId])})},qf=function(h,c){var v=this,p=this.getModel(),d=h.type,g=h.escapeConnect,y=$l[d],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&br(_[0]);this[Kt]=!0;var x=[h],T=!1;h.batch&&(T=!0,x=z(h.batch,function(I){return I=Z(k({},I),h),I.batch=null,I}));var C=[],A,D=hv(h),M=pg(h);if(M&&wS(this._api),w(x,function(I){if(A=y.action(I,v._model,v._api),A=A||k({},I),A.type=m.event||A.type,C.push(A),M){var R=Ac(h),E=R.queryOptionMap,W=R.mainTypeSpecified,B=W?E.keys()[0]:"series";ks(v,S,I,B),Me(v)}else D?(ks(v,S,I,"series"),Me(v)):b&&ks(v,S,I,b.main,b.sub)}),S!=="none"&&!M&&!D&&!b)try{this[ye]?(Ha(this),ri.update.call(this,h),this[ye]=null):ri[S].call(this,h)}catch(I){throw this[Kt]=!1,I}if(T?A={type:m.event||d,escapeConnect:g,batch:C}:A=C[0],this[Kt]=!1,!c){var P=this._messageCenter;if(P.trigger(A.type,A),D){var L={type:"selectchanged",escapeConnect:g,selected:o2(p),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();qf.call(this,v,h)}},zn=function(h){!h&&this.trigger("updated")},Ey=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[ye]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},ky=function(h,c){h.on("mouseover",function(v){var p=v.target,d=ua(p,fv);d&&(i2(d,v,c._api),Me(c))}).on("mouseout",function(v){var p=v.target,d=ua(p,fv);d&&(a2(d,v,c._api),Me(c))}).on("click",function(v){var p=v.target,d=ua(p,function(m){return nt(m).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",y=nt(d);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=[],p=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();p=p||!!x,(m==="series"?v:c).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),p){var d=c.concat(v),g,y;il(d,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),w(d,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)})}}Kf=function(h,c,v,p,d){i(c),Oy(h,c,v,p,d),w(h._chartsViews,function(g){g.__alive=!1}),Os(h,c,v,p,d),w(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},Oy=function(h,c,v,p,d,g){w(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,p),s(m,y),f(m,y)})},Os=function(h,c,v,p,d,g){var y=h._scheduler;d=k(d||{},{updatedSeries:c.getSeries()}),je.trigger("series:beforeupdate",c,v,d);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,p),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),vg(_)}),y.unfinished=m||y.unfinished,je.trigger("series:layoutlabels",c,v,d),je.trigger("series:transition",c,v,d),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),n(h,c),je.trigger("series:afterupdate",c,v,d)},Me=function(h){h[$f]=!0,h.getZr().wakeUp()},Ny=function(h){!h[$f]||(h.getZr().storage.traverse(function(c){go(c)||a(c)}),h[$f]=!1)};function a(h){for(var c=[],v=h.currentStates,p=0;p<v.length;p++){var d=v[p];d==="emphasis"||d==="blur"||d==="select"||c.push(d)}h.selected&&h.states.select&&c.push("select"),h.hoverState===du&&h.states.emphasis?c.push("emphasis"):h.hoverState===pu&&h.states.blur&&c.push("blur"),h.useStates(c)}function n(h,c){var v=h._zr,p=v.storage,d=0;p.traverse(function(g){g.isGroup||d++}),d>c.get("hoverLayerThreshold")&&!ht.node&&!ht.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(p){p.isGroup||(p.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,p=h.get("zlevel")||0;c.eachRendered(function(d){return l(d,v,p,-1/0),!0})}}function l(h,c,v,p){var d=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)p=Math.max(l(m[_],c,v,p),p);else h.z=c,h.zlevel=v,p=Math.max(h.z2,p);if(d&&(d.z=c,d.zlevel=v,isFinite(p)&&(d.z2=p+2)),g){var S=h.textGuideLineConfig;g.z=c,g.zlevel=v,isFinite(p)&&(g.z2=p+(S&&S.showAbove?1:-1))}return p}function u(h,c){c.eachRendered(function(v){if(!go(v)){var p=v.getTextContent(),d=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),p=h.isAnimationEnabled(),d=v.get("duration"),g=d>0?{duration:d,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(go(y))return;if(y instanceof gt&&v2(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}By=function(h){return new(function(c){O(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(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return h._model.getComponent(d.mainType,d.index);p=p.parent}},v.prototype.enterEmphasis=function(p,d){un(p,d),Me(h)},v.prototype.leaveEmphasis=function(p,d){fn(p,d),Me(h)},v.prototype.enterBlur=function(p){e2(p),Me(h)},v.prototype.leaveBlur=function(p){_S(p),Me(h)},v.prototype.enterSelect=function(p){SS(p),Me(h)},v.prototype.leaveSelect=function(p){xS(p),Me(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},v.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},v}(_x))(h)},db=function(h){function c(v,p){for(var d=0;d<v.length;d++){var g=v[d];g[Uf]=p}}w(_o,function(v,p){h._messageCenter.on(p,function(d){if(Yl[h.group]&&h[Uf]!==Ry){if(d&&d.escapeConnect)return;var g=h.makeActionFromEvent(d),y=[];w(ga,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,Ry),w(y,function(m){m[Uf]!==rR&&m.dispatchAction(g)}),c(y,iR)}})})}}(),t}(or),cp=Wl.prototype;cp.on=fb("on");cp.off=fb("off");cp.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 aR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var $l={},_o={},Cv=[],Av=[],Ul=[],gb={},Mv={},ga={},Yl={},nR=+new Date-0,oR=+new Date-0,pp="_echarts_instance_";function sR(r,t,e){var i=!(e&&e.ssr);if(i){var a=dp(r);if(a)return a}var n=new Wl(r,t,e);return n.id="ec_"+nR++,ga[n.id]=n,i&&j1(r,pp,n.id),db(n),je.trigger("afterinit",n),n}function lR(r){if(N(r)){var t=r;r=null,w(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+oR++,w(t,function(e){e.group=r})}return Yl[r]=!0,r}function yb(r){Yl[r]=!1}var uR=yb;function fR(r){V(r)?r=ga[r]:r instanceof Wl||(r=dp(r)),r instanceof Wl&&!r.isDisposed()&&r.dispose()}function dp(r){return ga[XM(r,pp)]}function hR(r){return ga[r]}function gp(r,t){gb[r]=t}function yp(r){ot(Av,r)<0&&Av.push(r)}function mp(r,t){_p(Cv,r,t,qI)}function mb(r){Nu("afterinit",r)}function _b(r){Nu("afterupdate",r)}function Nu(r,t){je.on(r,t)}function lr(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,!_o[t]&&(he(Iy.test(i)&&Iy.test(t)),$l[i]||($l[i]={action:e,actionInfo:r}),_o[t]=i)}function Sb(r,t){Lu.register(r,t)}function vR(r){var t=Lu.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function xb(r,t){_p(Ul,r,t,ob,"layout")}function Di(r,t){_p(Ul,r,t,sb,"visual")}var zy=[];function _p(r,t,e,i,a){if((q(t)||U(t))&&(e=t,t=i),!(ot(zy,e)>=0)){zy.push(e);var n=Xx.wrapStageHandler(e,a);n.__prio=t,n.__raw=e,r.push(n)}}function Sp(r,t){Mv[r]=t}function cR(r){j_({createCanvas:r})}function bb(r,t,e){var i=nb("registerMap");i&&i(r,t,e)}function pR(r){var t=nb("getMap");return t&&t(r)}var wb=mL;Di(vp,XL);Di(Bu,ZL);Di(Bu,qL);Di(vp,fI);Di(Bu,hI);Di(lb,FI);yp(xx);mp(XI,JP);Sp("default",KL);lr({type:pa,event:pa,update:pa},Gt);lr({type:fl,event:fl,update:fl},Gt);lr({type:vo,event:vo,update:vo},Gt);lr({type:hl,event:hl,update:hl},Gt);lr({type:co,event:co,update:co},Gt);gp("light",sI);gp("dark",lI);var dR={};function Vn(r){return r==null?0:r.length||1}function Vy(r){return r}var gR=function(){function r(t,e,i,a,n,o){this._old=t,this._new=e,this._oldKeyGetter=i||Vy,this._newKeyGetter=a||Vy,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}(),xp=gR,yR=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 mR(r,t){var e={},i=e.encode={},a=$(),n=[],o=[],s={};w(r.dimensions,function(c){var v=r.getDimensionInfo(c),p=v.coordDim;if(p){var d=v.coordDimIndex;jf(i,p)[d]=c,v.isExtraCoord||(a.set(p,1),SR(v.type)&&(n[0]=c),jf(s,p)[d]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}fx.each(function(g,y){var m=jf(i,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};a.each(function(c,v){var p=i[v];u[v]=p[0],l=l.concat(p)}),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 yR(s,t),e}function jf(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function _R(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function SR(r){return!(r==="ordinal"||r==="time")}var xR=function(){function r(t){this.otherDims={},t!=null&&k(this,t)}return r}(),dl=xR,bR=St(),wR={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Tb=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=Mb(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return rt(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=Tx(this.source),i=!Db(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+=wR[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,p=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:n,hash:p}},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 Cb(r){return r instanceof Tb}function Ab(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 Mb(r){var t=bR(r);return t.dimNameMap||(t.dimNameMap=Ab(r.dimensionsDefine))}function Db(r){return r>30}var Fn=U,ii=z,TR=typeof Int32Array=="undefined"?Array:Int32Array,CR="e\0\0",Fy=-1,AR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],MR=["_approximateExtent"],Gy,Bs,Gn,Hn,Jf,Ns,Qf,DR=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;Cb(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 dl({name:h}):h instanceof dl?h:new dl(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var p=c.otherDims=c.otherDims||{};o.push(v),n[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),p.itemName===0&&(this._nameDimIdx=f),p.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 d=this._dimIdxToName=$();w(o,function(g){d.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 _v&&(n=t),!n){var o=this.dimensions,s=rp(t)||ee(t)?new Cx(t,o.length):t;n=new _v;var l=ii(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=mR(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&&Qf(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!==mi&&!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&&kM(h)&&(this.hasItemOption=!0),h){var c=h.name;n[f]==null&&c!=null&&(n[f]=Qt(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Qt(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Qf(this,f);Gy(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)?k(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 Bs(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(ii(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)?Fy: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=ii(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=ii(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=ii(Hn(t),this._getStoreDimIndex,this),s=Ns(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=ii(Hn(t),this._getStoreDimIndex,this);this._store.modify(o,n?H(e,n):e)},r.prototype.downSample=function(t,e,i,a){var n=Ns(this);return n._store=this._store.downSample(this._getStoreDimIndex(t),e,i,a),n},r.prototype.lttbDownSample=function(t,e){var i=Ns(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 At(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new xp(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Bs(t,i)},function(i){return Bs(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)?k(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=k({},n)),a[e]=n),n},r.prototype.setItemVisual=function(t,e,i){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Fn(e)?k(a,e):a[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Fn(t)?k(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?k(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;XD(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:ii(this.dimensions,this._getDimInfo,this),this.hostModel)),Jf(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(ou(arguments)))})},r.internalField=function(){Gy=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 TR(o.categories.length);for(var l=0;l<i.length;l++)i[l]=Fy;for(var l=0;l<s.count();l++)i[s.get(n.storeDimIndex,l)]=l}})},Gn=function(t,e,i){return Qt(t._getCategory(e,i),null)},Bs=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Gn(t,t._idDimIdx,e)),i==null&&(i=CR+e),i},Hn=function(t){return N(t)||(t=t!=null?[t]:[]),t},Ns=function(t){var e=new r(t._schema?t._schema:ii(t.dimensions,t._getDimInfo,t),t.hostModel);return Jf(e,t),e},Jf=function(t,e){w(AR.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=k({},e._calculationInfo)},Qf=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}(),zu=DR;function PR(r,t){return bp(r,t).dimensions}function bp(r,t){rp(r)||(r=ip(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],a=$(),n=[],o=IR(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Db(o),l=i===r.dimensionsDefine,u=l?Mb(r):Ab(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=$(f),c=new Rx(o),v=0;v<c.length;v++)c[v]=-1;function p(A){var D=c[A];if(D<0){var M=i[A],P=U(M)?M:{name:M},L=new dl,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 R=n.length;return c[A]=R,L.storeDimIndex=A,n.push(L),L}return n[D]}if(!s)for(var v=0;v<o;v++)p(v);h.each(function(A,D){var M=Mt(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 R=V(L)?u.get(L):L;R!=null&&R<o&&(P[I]=R,g(p(R),D,I))})});var d=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=k({},L),L.ordinalMeta=I,M=L.dimsDef,P=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(D);if(R!==!1){if(R=Mt(R),!R.length)for(var E=0;E<(M&&M.length||1);E++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&R.push(d++)}w(R,function(W,B){var F=p(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){fx.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=p(x),C=T.coordDim;C==null&&(T.coordDim=RR(S,a,_),T.coordDimIndex=0,(!y||m<=0)&&(T.isExtraCoord=!0),m--),b(T),T.type==null&&(px(r,x)===$t.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return LR(n),new Tb({source:r,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function LR(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 IR(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 RR(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}var ER=function(){function r(t){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=t}return r}();function kR(r){var t=r.get("coordinateSystem"),e=new ER(t),i=OR[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var OR={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),Wa(a)&&(i.set("x",a),t.firstCategoryDimIndex=0),Wa(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),Wa(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),Wa(n)&&(i.set("radius",n),t.firstCategoryDimIndex=0),Wa(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),Wa(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Wa(r){return r.get("type")==="category"}function Pb(r,t,e){e=e||{};var i=e.byIndex,a=e.stackedCoordDimension,n,o,s;BR(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,p=f.type,d=0;w(n,function(m){m.coordDim===v&&d++});var g={name:h,coordDim:v,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},y={name:c,coordDim:c,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),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 BR(r){return!Cb(r.schema)}function wi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Lb(r,t){return wi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function NR(r,t){var e=r.get("coordinateSystem"),i=Lu.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=_R(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function zR(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 as(r,t,e){e=e||{};var i=t.getSourceManager(),a,n=!1;r?(n=!0,a=ip(r)):(a=i.getSource(),n=a.sourceFormat===$e);var o=kR(t),s=NR(t,o),l=e.useEncodeDefaulter,u=q(l)?l:l?vt(CP,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},h=bp(a,f),c=zR(h.dimensions,e.createInvertedIndices,o),v=n?null:i.getSharedDataStore(h),p=Pb(t,{schema:h,store:v}),d=new zu(h,t);d.setCalculationInfo(p);var g=c!=null&&VR(a)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(n?a:v,null,g),d}function VR(r){if(r.sourceFormat===$e){var t=FR(r.data||[]);return!N(mn(t))}}function FR(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Ib=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}();hu(Ib);var jr=Ib,GR=0,HR=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++GR}return r.createByAxisModel=function(t){var e=t.option,i=e.data,a=i&&z(i,WR);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 WR(r){return U(r)&&r.value!=null?r.value:r+""}var Dv=HR;function Pv(r){return r.type==="interval"||r.type==="log"}function $R(r,t,e,i){var a={},n=r[1]-r[0],o=a.interval=wc(n/t,!0);e!=null&&o<e&&(o=a.interval=e),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=Rb(o),l=a.niceTickExtent=[Et(Math.ceil(r[0]/o)*o,s),Et(Math.floor(r[1]/o)*o,s)];return UR(l,r),a}function th(r){var t=Math.pow(10,fu(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Et(e*t)}function Rb(r){return xr(r)+2}function Hy(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function UR(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Hy(r,0,t),Hy(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Vu(r,t){return r>=t[0]&&r<=t[1]}function Fu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Gu(r,t){return r*(t[1]-t[0])+t[0]}var Eb=function(r){O(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var a=i.getSetting("ordinalMeta");return a||(a=new Dv({})),N(a)&&(a=new Dv({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),Vu(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Fu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Gu(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}(jr);jr.registerClass(Eb);var wp=Eb,Zi=Et,kb=function(r){O(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 Vu(e,this._extent)},t.prototype.normalize=function(e){return Fu(e,this._extent)},t.prototype.scale=function(e){return Gu(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=Rb(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:Zi(n[0]-i,o)}):s.push({value:a[0]}));for(var u=n[0];u<=n[1]&&(s.push({value:u}),u=Zi(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:Zi(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=Zi(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=xr(e.value)||0:a==="auto"&&(a=this._intervalPrecision);var n=Zi(e.value,a,!0);return qc(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=$R(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=Math.abs(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]=Zi(Math.floor(i[0]/o)*o)),e.fixMax||(i[1]=Zi(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t}(jr);jr.registerClass(kb);var Ti=kb,Ob=typeof Float32Array!="undefined",YR=Ob?Float32Array:Array;function zr(r){return N(r)?Ob?new Float32Array(r):r:new YR(r)}var Lv="__ec_stack_";function Tp(r){return r.get("stack")||Lv+r.seriesIndex}function Cp(r){return r.dim+r.index}function tH(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:Lv+n},r));for(var o=zb(t),s=[],n=0;n<r.count;n++){var l=o[i][Lv+n];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Bb(r,t){var e=[];return t.eachSeriesByType(r,function(i){Gb(i)&&e.push(i)}),e}function XR(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)),p=h.getStore(),d=0,g=p.count();d<g;++d){var y=p.get(v,d);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 Nb(r){var t=XR(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 p=K(i.get("barWidth"),s),d=K(i.get("barMaxWidth"),s),g=K(i.get("barMinWidth")||(Hb(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Cp(n),stackId:Tp(i)})}),zb(e)}function zb(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 p=i.barCategoryGap;p!=null&&(s.categoryGap=p)});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 p=0,d;w(n,function(y,m){y.width||(y.width=v),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/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 ZR(r,t,e){if(r&&t){var i=r[Cp(t)];return i!=null&&e!=null?i[Tp(e)]:i}}function Vb(r,t){var e=Bb(r,t),i=Nb(e);w(e,function(a){var n=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Tp(a),u=i[Cp(s)][l],f=u.offset,h=u.width;n.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function Fb(r){return{seriesType:r,plan:sp(),reset:function(t){if(!!Gb(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=wi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=n.isHorizontal(),v=qR(a,n),p=Hb(t),d=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=p&&zr(b*3),T=p&&l&&zr(b*3),C=p&&zr(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),R=P.get(s,M),E=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,R]);if(h){var lt=i.dataToPoint([W,R]);E=lt[0]}B=E,F=J[1]+m,Y=J[0]-E,tt=y,Math.abs(Y)<d&&(Y=(Y<0?-1:1)*d)}else{var J=i.dataToPoint([R,I]);if(h){var lt=i.dataToPoint([R,W]);E=lt[1]}B=J[0]+m,F=E,Y=y,tt=J[1]-E,Math.abs(tt)<d&&(tt=(tt<=0?-1:1)*d)}p?(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}p&&S.setLayout({largePoints:x,largeDataIndices:C,largeBackgroundPoints:T,valueAxisHorizontal:c})}}}}}}function Gb(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Hb(r){return r.pipelineContext&&r.pipelineContext.large}function qR(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var KR=function(r,t,e,i){for(;e<i;){var a=e+i>>>1;r[a][1]<t?e=a+1:i=a}return e},Wb=function(r){O(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 rs(e.value,Lg[cP(an(this._minLevelUnit))]||Lg.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,a){var n=this.getSetting("useUTC"),o=this.getSetting("locale");return pP(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=iE(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=zs.length,l=Math.min(KR(zs,this._approxInterval,0,s),s-1);this._interval=zs[l][1],this._minLevelUnit=zs[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return yt(e)?e:+Ae(e)},t.prototype.contain=function(e){return Vu(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Fu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Gu(e,this._extent)},t.type="time",t}(Ti),zs=[["second",Yc],["minute",Xc],["hour",yo],["quarter-day",yo*6],["half-day",yo*12],["day",Ne*1.2],["half-week",Ne*3.5],["week",Ne*7],["month",Ne*31],["quarter",Ne*95],["half-year",Pg/2],["year",Pg]];function jR(r,t,e,i){var a=Ae(t),n=Ae(e),o=function(p){return Ig(a,p,i)===Ig(n,p,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 JR(r,t){return r/=Ne,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function QR(r){var t=30*Ne;return r/=t,r>6?6:r>3?3:r>2?2:1}function tE(r){return r/=yo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Wy(r,t){return r/=t?Xc:Yc,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function eE(r){return wc(r,!0)}function rE(r,t,e){var i=new Date(r);switch(an(t)){case"year":case"month":i[tx(e)](0);case"day":i[ex(e)](1);case"hour":i[rx(e)](0);case"minute":i[ix(e)](0);case"second":i[ax(e)](0),i[nx(e)](0)}return i.getTime()}function iE(r,t,e,i){var a=1e4,n=JS,o=0;function s(D,M,P,L,I,R,E){for(var W=new Date(M),B=M,F=W[L]();B<P&&B<=i[1];)E.push({value:B}),F+=D,W[I](F),B=W.getTime();E.push({value:B,notAdd:!0})}function l(D,M,P){var L=[],I=!M.length;if(!jR(an(D),i[0],i[1],e)){I&&(M=[{value:rE(new Date(i[0]),D,e)},{value:i[1]}]);for(var R=0;R<M.length-1;R++){var E=M[R].value,W=M[R+1].value;if(E!==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=Zc(e),Y=dP(e);break;case"half-year":case"quarter":case"month":B=QR(t),F=nn(e),Y=tx(e);break;case"week":case"half-week":case"day":B=JR(t),F=Au(e),Y=ex(e),tt=!0;break;case"half-day":case"quarter-day":case"hour":B=tE(t),F=ko(e),Y=rx(e);break;case"minute":B=Wy(t,!0),F=Mu(e),Y=ix(e);break;case"second":B=Wy(t,!1),F=Du(e),Y=ax(e);break;case"millisecond":B=eE(t),F=Pu(e),Y=nx(e);break}s(B,E,W,F,Y,tt,L),D==="year"&&P.length>1&&R===0&&P.unshift({value:P[0].value-B})}}for(var R=0;R<L.length;R++)P.push(L[R]);return L}}for(var u=[],f=[],h=0,c=0,v=0;v<n.length&&o++<a;++v){var p=an(n[v]);if(!!vP(n[v])){l(n[v],u[u.length-1]||[],f);var d=n[v+1]?an(n[v+1]):null;if(p!==d){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}jr.registerClass(Wb);var $b=Wb,$y=jr.prototype,So=Ti.prototype,aE=Et,nE=Math.floor,oE=Math.ceil,Vs=Math.pow,Ze=Math.log,Ap=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Ti,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,a=this._extent,n=i.getExtent(),o=So.getTicks.call(this,e);return z(o,function(s){var l=s.value,u=Et(Vs(this.base,l));return u=l===a[0]&&this._fixMin?Fs(u,n[0]):u,u=l===a[1]&&this._fixMax?Fs(u,n[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,i){var a=Ze(this.base);e=Ze(Math.max(0,e))/a,i=Ze(Math.max(0,i))/a,So.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=$y.getExtent.call(this);i[0]=Vs(e,i[0]),i[1]=Vs(e,i[1]);var a=this._originalScale,n=a.getExtent();return this._fixMin&&(i[0]=Fs(i[0],n[0])),this._fixMax&&(i[1]=Fs(i[1],n[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=Ze(e[0])/Ze(i),e[1]=Ze(e[1])/Ze(i),$y.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=$1(a),o=e/a*n;for(o<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var s=[Et(oE(i[0]/n)*n),Et(nE(i[1]/n)*n)];this._interval=n,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){So.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=Ze(e)/Ze(this.base),Vu(e,this._extent)},t.prototype.normalize=function(e){return e=Ze(e)/Ze(this.base),Fu(e,this._extent)},t.prototype.scale=function(e){return e=Gu(e,this._extent),Vs(this.base,e)},t.type="log",t}(jr),Ub=Ap.prototype;Ub.getMinorTicks=So.getMinorTicks;Ub.getLabel=So.getLabel;function Fs(r,t){return aE(r,xr(t))}jr.registerClass(Ap);var sE=Ap,lE=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=Gs(t,n({min:i[0],max:i[1]})):n!=="dataMin"&&(this._modelMinNum=Gs(t,n));var o=this._modelMaxRaw=e.get("max",!0);if(q(o)?this._modelMaxNum=Gs(t,o({min:i[0],max:i[1]})):o!=="dataMax"&&(this._modelMaxNum=Gs(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=[ar(l[0],1),ar(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=bo(s)||bo(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[fE[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=uE[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),uE={min:"_determinedMin",max:"_determinedMax"},fE={min:"_dataMin",max:"_dataMax"};function Yb(r,t,e){var i=r.rawExtentInfo;return i||(i=new lE(r,t,e),r.rawExtentInfo=i,i)}function Gs(r,t){return t==null?null:bo(t)?NaN:r.parse(t)}function Xb(r,t){var e=r.type,i=Yb(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=Bb("bar",o),l=!1;if(w(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Nb(s),f=hE(a,n,t,u);a=f.min,n=f.max}}return{extent:[a,n],fixMin:i.minFixed,fixMax:i.maxFixed}}function hE(r,t,e,i){var a=e.axis.getExtent(),n=a[1]-a[0],o=ZR(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=Xb(r,e),a=i.extent,n=e.get("splitNumber");r instanceof sE&&(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 Hu(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new wp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new $b({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(jr.getClass(t)||Ti)}}function vE(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function ns(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(Mp(r,a),n,a.level!=null?{level:a.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function Mp(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function cE(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,a,n=e.getExtent();e instanceof wp?a=e.count():(i=e.getTicks(),a=i.length);var o=r.getLabelModel(),s=ns(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),p=pE(v,o.get("rotate")||0);l?l.union(p):l=p}return l}}function pE(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 st(r.x,r.y,n,o);return s}function Dp(r){var t=r.get("interval");return t==null?"auto":t}function Zb(r){return r.type==="category"&&Dp(r.getLabelModel())===0}function Xl(r,t){var e={};return w(r.mapDimensionsAll(t),function(i){e[Lb(r,i)]=!0}),at(e)}function dE(r,t,e){t&&w(Xl(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 os=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function gE(r){return as(null,r)}var yE={isDimensionStacked:wi,enableDataStack:Pb,getStackedDimension:Lb};function mE(r,t){var e=t;t instanceof At||(e=new At(t));var i=Hu(e);return i.setExtent(r[0],r[1]),cn(i,e),i}function _E(r){Xt(r,os)}function SE(r,t){return t=t||{},Bt(r,null,null,t.state!=="normal")}var xE=Object.freeze(Object.defineProperty({__proto__:null,createList:gE,getLayoutRect:ve,dataStack:yE,createScale:mE,mixinAxisModelCommonMethods:_E,getECData:nt,createTextStyle:SE,createDimensions:PR,createSymbol:Yt,enableHoverEmphasis:gi},Symbol.toStringTag,{value:"Module"})),Uy=[],bE={registerPreprocessor:yp,registerProcessor:mp,registerPostInit:mb,registerPostUpdate:_b,registerUpdateLifecycle:Nu,registerAction:lr,registerCoordinateSystem:Sb,registerLayout:xb,registerVisual:Di,registerTransform:wb,registerLoading:Sp,registerMap:bb,registerImpl:HI,PRIORITY:ub,ComponentModel:ft,ComponentView:Pt,SeriesModel:we,ChartView:Ut,registerComponentModel:function(r){ft.registerClass(r)},registerComponentView:function(r){Pt.registerClass(r)},registerSeriesModel:function(r){we.registerClass(r)},registerChartView:function(r){Ut.registerClass(r)},registerSubTypeDefaulter:function(r,t){ft.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){F1(r,t)}};function Wt(r){if(N(r)){w(r,function(t){Wt(t)});return}ot(Uy,r)>=0||(Uy.push(r),q(r)&&(r={install:r}),r.install(bE))}var wE=1e-8;function Yy(r,t){return Math.abs(r-t)<wE}function Xy(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+=Or(a[0],a[1],o[0],o[1],t,e),a=o}var s=r[0];return(!Yy(a[0],s[0])||!Yy(a[1],s[1]))&&(i+=Or(a[0],a[1],s[0],s[1],t,e)),i!==0}var TE=[];function eh(r,t){for(var e=0;e<r.length;e++)Ht(r[e],r[e],t)}function Zy(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])&&(Br(t,t,n),Nr(e,e,n))}}function CE(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 qb=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}(),qy=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Ky=function(){function r(t){this.type="linestring",this.points=t}return r}(),Kb=function(r){O(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 CE(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"?Zy(s.exterior,a,n,e):w(s.points,function(l){Zy(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 st(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(Xy(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Xy(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 st(e,i,a,n),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(eh(c.exterior,u),w(c.interiors,function(v){eh(v,u)})):w(c.points,function(v){eh(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}(qb),AE=function(r){O(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=qo(TE),o=e;o&&!o.isGeoSVGGraphicRoot;)Tr(n,o.getLocalTransform(),n),o=o.parent;return Ca(n,n),Ht(a,a,n),a},t}(qb);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=jb(s,o,e);break;case"Polygon":rh(s,o,e);break;case"MultiLineString":rh(s,o,e);break;case"MultiPolygon":w(s,function(l,u){return rh(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function rh(r,t,e){for(var i=0;i<r.length;i++)r[i]=jb(r[i],t[i],e)}function jb(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 Iv(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 qy(o[0],o.slice(1)));break;case"MultiPolygon":w(a.coordinates,function(l){l[0]&&n.push(new qy(l[0],l.slice(1)))});break;case"LineString":n.push(new Ky([a.coordinates]));break;case"MultiLineString":n.push(new Ky(a.coordinates))}var s=new Kb(i[t||"name"],n,i.cp);return s.properties=i,s})}var DE=Object.freeze(Object.defineProperty({__proto__:null,linearMap:wt,round:Et,asc:Sr,getPrecision:xr,getPrecisionSafe:H1,getPixelPrecision:xc,getPercentWithPrecision:PM,MAX_SAFE_INTEGER:IM,remRadian:bc,isRadianAroundZero:Mo,parseDate:Ae,quantity:$1,quantityExponent:fu,nice:wc,quantile:EM,reformIntervals:iv,isNumeric:Tc,numericToNumber:$r},Symbol.toStringTag,{value:"Module"})),PE=Object.freeze(Object.defineProperty({__proto__:null,parse:Ae,format:rs},Symbol.toStringTag,{value:"Module"})),LE=Object.freeze(Object.defineProperty({__proto__:null,extendShape:WS,extendPath:$S,makePath:Su,makeImage:Fc,mergePath:Be,resizePath:Gc,createIcon:_n,updateProps:Dt,initProps:te,getTransform:yi,clipPointsByRect:Hc,clipRectByRect:YS,registerShape:We,getShapeClass:Vc,Group:it,Image:ce,Text:dt,Circle:nr,Ellipse:yu,Sector:Mr,Ring:Qo,Polygon:Dr,Polyline:He,Rect:pt,Line:le,BezierCurve:Oc,Arc:mu,IncrementalDisplayable:GS,CompoundPath:_u,LinearGradient:ts,RadialGradient:Bc,BoundingRect:st},Symbol.toStringTag,{value:"Module"})),IE=Object.freeze(Object.defineProperty({__proto__:null,addCommas:qc,toCamelCase:Kc,normalizeCssArray:Ma,encodeHTML:oe,formatTpl:jc,getTooltipMarker:ox,formatTime:mP,capitalFirst:_P,truncateText:eS,getTextRect:gP},Symbol.toStringTag,{value:"Module"})),RE=Object.freeze(Object.defineProperty({__proto__:null,map:z,each:w,indexOf:ot,inherits:fc,reduce:Ve,filter:Ct,bind:H,curry:vt,isArray:N,isString:V,isObject:U,isFunction:q,extend:k,defaults:Z,clone:X,merge:Q},Symbol.toStringTag,{value:"Module"})),Fo=St();function EE(r){return r.type==="category"?OE(r):NE(r)}function kE(r,t){return r.type==="category"?BE(r,t):{ticks:z(r.scale.getTicks(),function(e){return e.value})}}function OE(r){var t=r.getLabelModel(),e=Jb(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Jb(r,t){var e=Qb(r,"labels"),i=Dp(t),a=tw(e,i);if(a)return a;var n,o;return q(i)?n=iw(r,i):(o=i==="auto"?zE(r):i,n=rw(r,o)),ew(e,i,{labels:n,labelCategoryInterval:o})}function BE(r,t){var e=Qb(r,"ticks"),i=Dp(t),a=tw(e,i);if(a)return a;var n,o;if((!t.get("show")||r.scale.isBlank())&&(n=[]),q(i))n=iw(r,i,!0);else if(i==="auto"){var s=Jb(r,r.getLabelModel());o=s.labelCategoryInterval,n=z(s.labels,function(l){return l.tickValue})}else o=i,n=rw(r,o,!0);return ew(e,i,{ticks:n,tickCategoryInterval:o})}function NE(r){var t=r.scale.getTicks(),e=ns(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 Qb(r,t){return Fo(r)[t]||(Fo(r)[t]=[])}function tw(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function ew(r,t,e){return r.push({key:t,value:e}),e}function zE(r){var t=Fo(r).autoInterval;return t!=null?t:Fo(r).autoInterval=r.calculateCategoryInterval()}function VE(r){var t=FE(r),e=ns(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 p=0,d=0,g=jo(e({value:l}),t.font,"center","top");p=g.width*1.3,d=g.height*1.3,c=Math.max(c,p,7),v=Math.max(v,d,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=Fo(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 FE(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 rw(r,t,e){var i=ns(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=Zb(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==n[0]&&d(n[0]);for(var p=u;p<=n[1];p+=l)d(p);v&&p-l!==n[1]&&d(n[1]);function d(g){var y={value:g};s.push(e?g:{formattedLabel:i(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function iw(r,t,e){var i=r.scale,a=ns(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 jy=[0,1],GE=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 xc(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(),Jy(i,a.count())),wt(t,jy,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(i=i.slice(),Jy(i,a.count()));var n=wt(t,i,jy,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=kE(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 HE(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 EE(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 VE(this)},r}();function Jy(r,t){var e=r[1]-r[0],i=t,a=e/i/2;r[0]+=a,r[1]-=a}function HE(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[1]};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,p){return v=Et(v),p=Et(p),h?v>p:v<p}}var ur=GE;function WE(r){var t=ft.extend(r);return ft.registerClass(t),t}function $E(r){var t=Pt.extend(r);return Pt.registerClass(t),t}function UE(r){var t=we.extend(r);return we.registerClass(t),t}function YE(r){var t=Ut.extend(r);return Ut.registerClass(t),t}var Wn=Math.PI*2,qi=Yr.CMD,XE=["top","right","bottom","left"];function ZE(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 qE(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=vi(a),a=vi(c)}else i=vi(i),a=vi(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 p=e*Math.cos(i)+r,d=e*Math.sin(i)+t,g=e*Math.cos(a)+r,y=e*Math.sin(a)+t,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Zl(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,p=v/c;s&&(p=Math.min(Math.max(p,0),1)),p*=c;var d=o[0]=r+p*f,g=o[1]=t+p*h;return Math.sqrt((d-a)*(d-a)+(g-n)*(g-n))}function aw(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 KE(r,t,e){var i=aw(t.x,t.y,t.width,t.height,r.x,r.y,Je);return e.set(Je[0],Je[1]),i}function jE(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 p=f[v++];v===1&&(i=f[v],a=f[v+1],n=i,o=a);var d=u;switch(p){case qi.M:n=f[v++],o=f[v++],i=n,a=o;break;case qi.L:d=Zl(i,a,f[v],f[v+1],h,c,Je,!0),i=f[v++],a=f[v++];break;case qi.C:d=x1(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 qi.Q:d=w1(i,a,f[v++],f[v++],f[v],f[v+1],h,c,Je),i=f[v++],a=f[v++];break;case qi.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;d=qE(g,y,_,S,S+b,x,T,c,Je),i=Math.cos(S+b)*m+g,a=Math.sin(S+b)*_+y;break;case qi.R:n=i=f[v++],o=a=f[v++];var C=f[v++],A=f[v++];d=aw(n,o,C,A,h,c,Je);break;case qi.Z:d=Zl(i,a,n,o,h,c,Je,!0),i=n,a=o;break}d<u&&(u=d,e.set(Je[0],Je[1]))}return u}var tr=new et,_t=new et,Rt=new et,wr=new et,_r=new et;function eH(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||XE,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),h=f&&Ca([],f),c=t.get("length2")||0;u&&Rt.copy(u);for(var v=0;v<o.length;v++){var p=o[v];ZE(p,0,s,tr,wr),et.scaleAndAdd(_t,tr,wr,c),_t.transform(h);var d=r.getBoundingRect(),g=u?u.distance(_t):r instanceof gt?jE(_t,r.path,Rt):KE(_t,d,Rt);g<l&&(l=g,_t.transform(f),Rt.transform(f),Rt.toArray(n[0]),_t.toArray(n[1]),tr.toArray(n[2]))}nw(n,t.get("minTurnAngle")),e.setShape({points:n})}}}var ql=[],ne=new et;function nw(r,t){if(t<=180&&t>0){t=t/180*Math.PI,tr.fromArray(r[0]),_t.fromArray(r[1]),Rt.fromArray(r[2]),et.sub(wr,tr,_t),et.sub(_r,Rt,_t);var e=wr.len(),i=_r.len();if(!(e<.001||i<.001)){wr.scale(1/e),_r.scale(1/i);var a=wr.dot(_r),n=Math.cos(t);if(n<a){var o=Zl(_t.x,_t.y,Rt.x,Rt.y,tr.x,tr.y,ql,!1);ne.fromArray(ql),ne.scaleAndAdd(_r,o/Math.tan(Math.PI-t));var s=Rt.x!==_t.x?(ne.x-_t.x)/(Rt.x-_t.x):(ne.y-_t.y)/(Rt.y-_t.y);if(isNaN(s))return;s<0?et.copy(ne,_t):s>1&&et.copy(ne,Rt),ne.toArray(r[1])}}}}function JE(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,tr.fromArray(r[0]),_t.fromArray(r[1]),Rt.fromArray(r[2]),et.sub(wr,_t,tr),et.sub(_r,Rt,_t);var i=wr.len(),a=_r.len();if(!(i<.001||a<.001)){wr.scale(1/i),_r.scale(1/a);var n=wr.dot(t),o=Math.cos(e);if(n<o){var s=Zl(_t.x,_t.y,Rt.x,Rt.y,tr.x,tr.y,ql,!1);ne.fromArray(ql);var l=Math.PI/2,u=Math.acos(_r.dot(t)),f=l+u-e;if(f>=l)et.copy(ne,Rt);else{ne.scaleAndAdd(_r,s/Math.tan(Math.PI/2-f));var h=Rt.x!==_t.x?(ne.x-_t.x)/(Rt.x-_t.x):(ne.y-_t.y)/(Rt.y-_t.y);if(isNaN(h))return;h<0?et.copy(ne,_t):h>1&&et.copy(ne,Rt)}ne.toArray(r[1])}}}}function Qy(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 QE(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=bl(i[0],i[1]),n=bl(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=rl([],i[1],i[0],o/a),l=rl([],i[1],i[2],o/n),u=rl([],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 tk(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<Il.length;l++){var u=Il[l],f=t[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:rt(a.states[u]&&a.states[u].ignore,s);if(v||!rt(c,o)){var p=h?i:i&&i.states[u];p&&(p.ignore=!0);continue}i||(i=new He,r.setTextGuideLine(i),!h&&(s||!o)&&Qy(i,!0,"normal",t.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),Qy(i,!1,u,f)}}if(i){Z(i.style,e),i.style.fill=null;var d=n.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,i.buildPath=QE}}function ek(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 rk(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 Rl(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 ow(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 p=Math.max(-l,0);f+=p,s=v[t]+v[e]}f>0&&n&&b(-f/o,0,o);var d=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=d.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 R=Math.min(Math.abs(C)/M,A);if(C>0)for(var P=0;P<o-1;P++){var E=D[P]*R;b(E,0,P+1)}else for(var P=o-1;P>0;P--){var E=D[P-1]*R;b(-E,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 rH(r,t,e,i){return ow(r,"x","width",t,e,i)}function ik(r,t,e,i){return ow(r,"y","height",t,e,i)}function ak(r){var t=[];r.sort(function(d,g){return g.priority-d.priority});var e=new st(0,0,0,0);function i(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.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 p=t[v];if(!!e.intersect(p.rect)){if(o&&p.axisAligned){c=!0;break}if(p.obb||(p.obb=new Rl(p.localRect,p.transform)),h||(h=new Rl(s,l)),h.intersect(p.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 tm=Object.freeze(Object.defineProperty({__proto__:null,registerLocale:Uc,version:WI,dependencies:$I,PRIORITY:ub,init:sR,connect:lR,disconnect:yb,disConnect:uR,dispose:fR,getInstanceByDom:dp,getInstanceById:hR,registerTheme:gp,registerPreprocessor:yp,registerProcessor:mp,registerPostInit:mb,registerPostUpdate:_b,registerUpdateLifecycle:Nu,registerAction:lr,registerCoordinateSystem:Sb,getCoordinateSystemDimensions:vR,registerLayout:xb,registerVisual:Di,registerLoading:Sp,setCanvasCreator:cR,registerMap:bb,getMap:pR,registerTransform:wb,dataTool:dR,throttle:ku,use:Wt,setPlatformAPI:j_,parseGeoJSON:Iv,parseGeoJson:Iv,env:ht,Model:At,Axis:ur,innerDrawElementOnCanvas:tb,zrender:MM,matrix:pA,vector:jC,zrUtil:HC,color:HA,helper:xE,number:DE,time:PE,graphic:LE,format:IE,util:RE,List:zu,ComponentModel:ft,ComponentView:Pt,SeriesModel:we,ChartView:Ut,extendComponentModel:WE,extendComponentView:$E,extendSeriesModel:UE,extendChartView:YE},Symbol.toStringTag,{value:"Module"})),nk=function(r){O(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 as(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new it,a=Yt("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=Yt(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}(we),ok=nk;function Wu(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 sw(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 sk=function(r){O(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=Yt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=lk,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):Dt(c,v,s,i),Io(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,te(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,p,d,g,y;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,h=n.selectItemStyle,c=n.focus,v=n.blurScope,d=n.labelStatesModels,g=n.hoverScale,y=n.cursorStyle,p=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"),p=_.get("disabled"),d=Kr(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=Ou(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 ce){var C=s.style;s.useStyle(k({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},x))}else s.__isEmptyBrush?s.useStyle(k({},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;qr(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:P,inheritColor:T,defaultOpacity:x.opacity});function P(R){return M?e.getName(R):Wu(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var I=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*I,L.scaleY=this._sizeY*I,this.setSymbolScale(1),xi(this,c,v,p)},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&&Lo(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Lo(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return fp(e.getItemVisual(i,"symbolSize"))},t}(it);function lk(r,t){this.parent.drift(r,t)}var Pp=sk;function ih(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 em(r){return r!=null&&!U(r)&&(r={isIgnore:r}),r||{}}function rm(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:Kr(t),cursorStyle:t.get("cursor")}}var uk=function(){function r(t){this.group=new it,this._SymbolCtor=t||Pp}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=em(e);var i=this.group,a=t.hostModel,n=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=rm(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(ih(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),p=f(h);if(!ih(t,p,h,e)){i.remove(v);return}var d=t.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==d)i.remove(v),v=new o(t,h,l,u),v.setPosition(p);else{v.updateData(t,h,l,u);var y={x:p[0],y:p[1]};s?v.attr(y):Dt(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=rm(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=em(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(ih(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){wu(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}(),lw=uk;function uw(r,t,e){var i=r.getBaseAxis(),a=r.getOtherAxis(i),n=fk(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(p){return t.mapDimension(p)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return wi(t,h[0])&&(c=!0,h[0]=v),wi(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 fk(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 fw(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 hk(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 vk(r,t,e,i,a,n,o,s){for(var l=hk(r,t),u=[],f=[],h=[],c=[],v=[],p=[],d=[],g=uw(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]),d.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 R=fw(g,a,t,P);h.push(R[0],R[1]),c.push(i[T],i[T+1]),d.push(t.getRawIndex(P));break;case"-":b=!1}b&&(v.push(S),p.push(p.length))}p.sort(function(kt,xt){return d[kt]-d[xt]});for(var E=u.length,W=zr(E),B=zr(E),F=zr(E),Y=zr(E),tt=[],_=0;_<p.length;_++){var J=p[_],lt=_*2,ct=J*2;W[lt]=u[ct],W[lt+1]=u[ct+1],B[lt]=f[ct],B[lt+1]=f[ct+1],F[lt]=h[ct],F[lt+1]=h[ct+1],Y[lt]=c[ct],Y[lt+1]=c[ct+1],tt[_]=v[J]}return{current:W,next:B,stackedOnCurrent:F,stackedOnNext:Y,status:tt}}var ai=Math.min,ni=Math.max;function ya(r,t){return isNaN(r)||isNaN(t)}function Rv(r,t,e,i,a,n,o,s,l){for(var u,f,h,c,v,p,d=e,g=0;g<i;g++){var y=t[d*2],m=t[d*2+1];if(d>=a||d<0)break;if(ya(y,m)){if(l){d+=n;continue}break}if(d===e)r[n>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=n;continue}if(o>0){for(var b=d+n,x=t[b*2],T=t[b*2+1];x===y&&T===m&&g<i;)g++,b+=n,d+=n,x=t[b*2],T=t[b*2+1],y=t[d*2],m=t[d*2+1],_=y-u,S=m-f;var C=g+1;if(l)for(;ya(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||ya(x,T))v=y,p=m;else{D=x-u,M=T-f;var I=y-u,R=x-y,E=m-f,W=T-m,B=void 0,F=void 0;if(s==="x"){B=Math.abs(I),F=Math.abs(R);var Y=D>0?1:-1;v=y-Y*B*o,p=m,P=y+Y*F*o,L=m}else if(s==="y"){B=Math.abs(E),F=Math.abs(W);var tt=M>0?1:-1;v=y,p=m-tt*B*o,P=y,L=m+tt*F*o}else B=Math.sqrt(I*I+E*E),F=Math.sqrt(R*R+W*W),A=F/(F+B),v=y-D*o*(1-A),p=m-M*o*(1-A),P=y+D*o*A,L=m+M*o*A,P=ai(P,ni(x,y)),L=ai(L,ni(T,m)),P=ni(P,ai(x,y)),L=ni(L,ai(T,m)),D=P-y,M=L-m,v=y-D*B/F,p=m-M*B/F,v=ai(v,ni(u,y)),p=ai(p,ni(f,m)),v=ni(v,ai(u,y)),p=ni(p,ai(f,m)),D=y-v,M=m-p,P=y+D*F/B,L=m+M*F/B}r.bezierCurveTo(h,c,v,p,y,m),h=P,c=L}else r.lineTo(y,m)}u=y,f=m,d+=n}return g}var hw=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),ck=function(r){O(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 hw},t.prototype.buildPath=function(e,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&ya(a[o*2-2],a[o*2-1]);o--);for(;n<o&&ya(a[n*2],a[n*2+1]);n++);}for(;n<o;)n+=Rv(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=Yr.CMD,s,l,u=i==="x",f=[],h=0;h<n.length;){var c=n[h++],v=void 0,p=void 0,d=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++],p=n[h++],_=u?(e-s)/(v-s):(e-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=p;break;case o.C:v=n[h++],p=n[h++],d=n[h++],g=n[h++],y=n[h++],m=n[h++];var b=u?Tl(s,v,d,y,e,f):Tl(l,p,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?Nt(l,p,g,m,T):Nt(s,v,d,y,T);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(gt),pk=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(hw),dk=function(r){O(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 pk},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&&ya(a[s*2-2],a[s*2-1]);s--);for(;o<s&&ya(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=Rv(e,a,o,s,s,1,i.smooth,l,i.connectNulls);Rv(e,n,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,e.closePath()}},t}(gt);function vw(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 pt({shape:{x:o,y:s,width:l,height:u}});if(t){var c=r.getBaseAxis(),v=c.isHorizontal(),p=c.inverse;v?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var d=q(a)?function(g){a(g,h)}:null;te(h,{shape:{width:l,height:u,x:o,y:s}},e,null,i,d)}return h}function cw(r,t,e){var i=r.getArea(),a=Et(i.r0,1),n=Et(i.r,1),o=new Mr({shape:{cx:Et(r.cx,1),cy:Et(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,te(o,{shape:{endAngle:i.endAngle,r:n}},e)}return o}function gk(r,t,e,i,a){if(r){if(r.type==="polar")return cw(r,t,e);if(r.type==="cartesian2d")return vw(r,t,e,i,a)}else return null;return null}function Lp(r,t){return r.type===t}function im(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function am(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 nm(r,t){var e=am(r),i=e[0],a=e[1],n=am(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 om(r){return yt(r)?r:r?.5:0}function yk(r,t,e){if(!e.valueDim)return[];for(var i=t.count(),a=zr(i*2),n=0;n<i;n++){var o=fw(e,r,t,n);a[n*2]=o[0],a[n*2+1]=o[1]}return a}function oi(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 mk(r,t){var e=[],i=r.length,a,n;function o(f,h,c){var v=f.coord,p=(c-v)/(h.coord-v),d=yc(p,[f.color,h.color]);return{coord:c,color:d}}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 _k(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=mk(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 p=10,d=c[0].coord-p,g=c[v-1].coord+p,y=g-d;if(y<.001)return"transparent";w(c,function(_){_.offset=(_.coord-d)/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 ts(0,0,0,0,c,!0);return m[a]=d,m[a+"2"]=g,m}}}function Sk(r,t,e){var i=r.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=e.getAxesByScale("ordinal")[0];if(!!n&&!(a&&xk(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 xk(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(Pp.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function bk(r,t){return isNaN(r)||isNaN(t)}function wk(r){for(var t=r.length/2;t>0&&bk(r[t*2-2],r[t*2-1]);t--);return t-1}function sm(r,t){return[r[t*2],r[t*2+1]]}function Tk(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 pw(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 ah(r,t,e,i){if(Lp(t,"cartesian2d")){var a=i.getModel("endLabel"),n=a.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=pw(i)?function(v,p){r._endLabelOnDuring(v,p,o,s,n,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=vw(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 cw(t,e,i)}function Ck(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 Ak=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new it,i=new lw;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,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,m=!i.ssr&&e.isAnimationEnabled(),_=!f.isEmpty(),S=f.get("origin"),b=uw(o,l,S),x=_&&yk(o,l,b),T=e.get("showSymbol"),C=e.get("connectNulls"),A=T&&!c&&Sk(e,l,o),D=this._data;D&&D.eachItemGraphicEl(function(xt,Zt){xt.__temp&&(s.remove(xt),D.setItemGraphicEl(Zt,null))}),T||p.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=_k(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(d&&v.type===o.type&&M===this._step))T&&p.updateData(l,{isIgnore:A,clipShape:P,disableAnimation:!0,getSymbolPoint:function(xt){return[h[xt*2],h[xt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,P),M&&(h=oi(h,o,M,C),x&&(x=oi(x,o,M,C))),d=this._newPolyline(h),_?g=this._newPolygon(h,x):g&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,xa(L)),y.setClipPath(ah(this,o,!0,e));else{_&&!g?g=this._newPolygon(h,x):g&&!_&&(y.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(e,o,xa(L));var I=y.getClipPath();if(I){var R=ah(this,o,!1,e);te(I,{shape:R.shape},e)}else y.setClipPath(ah(this,o,!0,e));T&&p.updateData(l,{isIgnore:A,clipShape:P,disableAnimation:!0,getSymbolPoint:function(xt){return[h[xt*2],h[xt*2+1]]}}),(!im(this._stackedOnPoints,x)||!im(this._points,h))&&(m?this._doUpdateAnimation(l,x,o,a,M,S,C):(M&&(h=oi(h,o,M,C),x&&(x=oi(x,o,M,C))),d.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:x})))}var E=e.getModel("emphasis"),W=E.get("focus"),B=E.get("blurScope"),F=E.get("disabled");if(d.useStyle(Z(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),hn(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Y=d.getState("emphasis").style;Y.lineWidth=+d.style.lineWidth+1}nt(d).seriesIndex=e.seriesIndex,xi(d,W,B,F);var tt=om(e.get("smooth")),J=e.get("smoothMonotone");if(d.setShape({smooth:tt,smoothMonotone:J,connectNulls:C}),g){var lt=l.getCalculationInfo("stackedOnSeries"),ct=0;g.useStyle(Z(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),lt&&(ct=om(lt.get("smooth"))),g.setShape({smooth:tt,stackedOnSmooth:ct,smoothMonotone:J,connectNulls:C}),hn(g,e,"areaStyle"),nt(g).seriesIndex=e.seriesIndex,xi(g,W,B,F)}var kt=function(xt){n._changePolyState(xt)};l.eachItemGraphicEl(function(xt){xt&&(xt.onHoverStateChange=kt)}),this._polyline.onHoverStateChange=kt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=M,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,d),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=Sa(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")||0,v=e.get("z")||0;u=new Pp(o,s),u.x=f,u.y=h,u.setZ(c,v);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=v,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ut.prototype.highlight.call(this,e,i,a,n)},t.prototype.downplay=function(e,i,a,n){var o=e.getData(),s=Sa(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 Ut.prototype.downplay.call(this,e,i,a,n)},t.prototype._changePolyState=function(e){var i=this._polygon;sv(this._polyline,e),i&&sv(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new ck({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 dk({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,p){var d=v;if(d){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(p):f*T+c,A=d.getSymbolPath(),D=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.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(pw(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 dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=wk(l);f>=0&&(qr(s,Kr(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?sw(o,v):Wu(o,h)},enableTextSetter:!0},Ck(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"),p=s.get("precision"),d=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?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),T=y?"x":"y",C=Tk(h,S,T),A=C.range,D=A[1]-A[0],M=void 0;if(D>=1){if(D>1&&!v){var P=sm(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=J1(a,p,L,I,C.t))}n.lastFrameIndex=A[0]}else{var R=e===1||n.lastFrameIndex>0?A[0]:0,P=sm(h,R);o&&(M=c.getRawValue(R)),u.attr({x:P[0]+b,y:P[1]+x})}if(o){var E=es(u);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=vk(this._data,e,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin),v=c.current,p=c.stackedOnCurrent,d=c.next,g=c.stackedOnNext;if(o&&(v=oi(c.current,a,o,l),p=oi(c.stackedOnCurrent,a,o,l),d=oi(c.next,a,o,l),g=oi(c.stackedOnNext,a,o,l)),nm(v,d)>3e3||f&&nm(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=v;var y={shape:{points:d}};c.current!==v&&(y.shape.__points=c.next),u.stopAnimation(),Dt(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:p}),f.stopAnimation(),Dt(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}(Ut),Mk=Ak;function Ip(r,t){return{seriesType:r,plan:sp(),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");wi(i,s[0])&&(s[0]=u),wi(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,p){for(var d=v.end-v.start,g=o&&zr(d*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]):p.setItemLayout(_,b.slice())}o&&p.setLayout("points",g)}}}}}}var Dk={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]}},Pk=function(r){return Math.round(r.length/2)};function dw(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 p=void 0;V(n)?p=Dk[n]:q(n)&&(p=n),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/v,p,Pk))}}}}}function Lk(r){r.registerChartView(Mk),r.registerSeriesModel(ok),r.registerLayout(Ip("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,dw("line"))}var gw=function(r){O(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 as(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,a){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(e),s=n.dataToPoint(o);if(a)w(n.getAxes(),function(c,v){if(c.type==="category"&&i!=null){var p=c.getTicksCoords(),d=o[v],g=i[v]==="x1"||i[v]==="y1";if(g&&(d+=1),p.length<2)return;if(p.length===2){s[v]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,_=1,S=0;S<p.length;S++){var b=p[S].coord,x=S===p.length-1?p[S-1].tickValue+_:p[S].tickValue;if(x===d){m=b;break}else if(x<d)y=b;else if(y!=null&&x>d){m=(b+y)/2;break}S===1&&(_=x-p[0].tickValue)}m==null&&(y?y&&(m=p[p.length-1].coord):m=p[0].coord),s[v]=c.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=n.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}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}(we);we.registerClass(gw);var Kl=gw,Ik=function(r){O(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 as(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=Mi(Kl.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}(Kl),Rk=Ik,Ek=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}(),kk=function(r){O(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new Ek},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,p=c?h-f<v:f-h<v;p||(f=h-(c?v:-v));var d=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);p?(e.moveTo(d*o+a,g*o+n),e.arc(d*u+a,g*u+n,l,-Math.PI+f,f,!c)):e.moveTo(d*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),lm=kk;function Ok(r,t){t=t||{};var e=t.isRoundCap;return function(i,a,n){var o=a.position;if(!o||o instanceof Array)return Dl(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,p=(c+v)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=e?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,b=f+c*_(d),x=h+c*S(d),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+p*_(d)+Hs(d,l+m,!1),x=h+p*S(d)+Ws(d,l+m,!1),T="right",C="middle";break;case"insideStartAngle":b=f+p*_(d)+Hs(d,-l+m,!1),x=h+p*S(d)+Ws(d,-l+m,!1),T="left",C="middle";break;case"middle":b=f+p*_(y),x=h+p*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+p*_(g)+Hs(g,l+m,!0),x=h+p*S(g)+Ws(g,l+m,!0),T="left",C="middle";break;case"insideEndAngle":b=f+p*_(g)+Hs(g,-l+m,!0),x=h+p*S(g)+Ws(g,-l+m,!0),T="right",C="middle";break;default:return Dl(i,a,n)}return i=i||{},i.x=b,i.y=x,i.align=T,i.verticalAlign=C,i}}function Bk(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 Hs(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Ws(r,t,e){return t*Math.cos(r)*(e?1:-1)}function ao(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 ar(n,a)})}}var nh=Math.max,oh=Math.min;function Nk(r,t){var e=r.getArea&&r.getArea();if(Lp(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 zk=function(r){O(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){wu(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=Vk(e,u);v&&this._enableRealtimeSort(v,s,a);var p=e.get("clip",!0)||v,d=Nk(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=$s[u.type](s,M),L=Yk(u,h,P);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[M]=L,L}s.diff(l).add(function(M){var P=s.getItemModel(M),L=$s[u.type](s,M,P);if(y&&C(M),!(!s.hasValue(M)||!cm[u.type](L))){var I=!1;p&&(I=um[u.type](d,L));var R=fm[u.type](e,s,M,L,h,c,f.model,!1,g);v&&(R.forceLabelAnimation=!0),pm(R,s,M,P,L,e,h,u.type==="polar"),x?R.attr({shape:L}):v?hm(v,c,R,L,M,h,!1,!1):te(R,{shape:L},e,M),s.setItemGraphicEl(M,R),o.add(R),R.ignore=I}}).update(function(M,P){var L=s.getItemModel(M),I=$s[u.type](s,M,L);if(y){var R=void 0;b.length===0?R=C(P):(R=b[P],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[M]=R);var E=$s[u.type](s,M),W=mw(h,E,u);Dt(R,{shape:W},c,M)}var B=l.getItemGraphicEl(P);if(!s.hasValue(M)||!cm[u.type](I)){o.remove(B);return}var F=!1;if(p&&(F=um[u.type](d,I),F&&o.remove(B)),B?Io(B):B=fm[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=es(Y);tt.prevValue!=null&&(tt.prevValue=tt.value)}}else pm(B,s,M,L,I,e,h,u.type==="polar");x?B.attr({shape:I}):v?hm(v,c,B,I,M,h,!0,T):Dt(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&&El(P,e,M)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new it);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(),gm(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),gm(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&gk(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){El(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}(Ut),um={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=nh(t.x,r.x),s=oh(t.x+t.width,a),l=nh(t.y,r.y),u=oh(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=oh(t.r,r.r),n=nh(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}},fm={cartesian2d:function(r,t,e,i,a,n,o,s,l){var u=new pt({shape:k({},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?lm:Mr,f=new u({shape:i,z2:1});f.name="item";var h=yw(a);if(f.calculateTextPosition=Ok(h,{isRoundCap:u===lm}),n){var c=f.shape,v=a?"r":"endAngle",p={};c[v]=a?i.r0:i.startAngle,p[v]=i[v],(s?Dt:te)(f,{shape:p},n)}return f}};function Vk(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 hm(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?Dt:te)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Dt:te)(e,{shape:u},f,a)}function vm(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var Fk=["x","y","width","height"],Gk=["cx","cy","r","startAngle","endAngle"],cm={cartesian2d:function(r){return!vm(r,Fk)},polar:function(r){return!vm(r,Gk)}},$s={cartesian2d:function(r,t,e){var i=r.getItemLayout(t),a=e?Wk(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 Hk(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function yw(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 pm(r,t,e,i,a,n,o,s){var l=t.getItemVisual(e,"style");if(s){if(!n.get("roundCap")){var f=r.shape,h=ao(i.getModel("itemStyle"),f,!0);k(f,h),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var v=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",p=Kr(i);qr(r,p,{labelFetcher:n,labelDataIndex:e,defaultText:Wu(n.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var d=r.getTextContent();if(s&&d){var g=i.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,Bk(r,g==="outside"?v:g,yw(o),i.get(["label","rotate"]))}j2(d,p,n.getRawValue(e),function(m){return sw(t,m)});var y=i.getModel(["emphasis"]);xi(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),hn(r,i),Hk(a)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Wk(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 $k=function(){function r(){}return r}(),dm=function(r){O(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new $k},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 gm(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 dm({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 dm({shape:{points:a.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,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",ym),h.on("mousemove",ym)),e&&e.push(h)}var ym=ku(function(r){var t=this,e=Uk(t,r.offsetX,r.offsetY);nt(t).dataIndex=e>=0?e:null},30,!1);function Uk(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 mw(r,t,e){if(Lp(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 Yk(r,t,e){var i=r.type==="polar"?Mr:pt;return new i({shape:mw(t,e,r),silent:!0,z2:0})}var Xk=zk;function Zk(r){r.registerChartView(Xk),r.registerSeriesModel(Rk),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,vt(Vb,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Fb("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,dw("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 Us=Math.PI*2,mm=Math.PI/180;function _w(r,t){return ve(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Sw(r,t){var e=_w(r,t),i=r.get("center"),a=r.get("radius");N(a)||(a=[0,a]);var n=K(e.width,t.getWidth()),o=K(e.height,t.getHeight()),s=Math.min(n,o),l=K(a[0],s/2),u=K(a[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(i);f=v[0]||0,h=v[1]||0}else N(i)||(i=[i,i]),f=K(i[0],n)+e.x,h=K(i[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function qk(r,t,e){t.eachSeriesByType(r,function(i){var a=i.getData(),n=a.mapDimension("value"),o=_w(i,e),s=Sw(i,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-i.get("startAngle")*mm,v=i.get("minAngle")*mm,p=0;a.each(n,function(D){!isNaN(D)&&p++});var d=a.getSum(n),g=Math.PI/(d||p)*2,y=i.get("clockwise"),m=i.get("roseType"),_=i.get("stillShowZeroSum"),S=a.getDataExtent(n);S[0]=0;var b=Us,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=d===0&&_?g:D*g:P=Us/p,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?wt(D,S,[h,f]):f}),T=L}),b<Us&&p)if(b<=.001){var A=Us/p;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 xw(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 Kk=Math.PI/180;function _m(r,t,e,i,a,n,o,s,l,u){if(r.length<2)return;function f(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var _=d.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;bw(_,D,!0),_.label.x=C}}function h(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if(d[m].labelAlignTo==="none"){var _=d[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 p=r[v].label.x-u;r[v].linePoints[1][0]+=p,r[v].label.x=u}ik(r,l,l+o)&&h(r)}function jk(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;sh(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 p=r[c];if(!sh(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var v=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?v.x<t?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+a-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?v.x<t?g=f-o-p.bleedMargin:g=o+a-h-p.bleedMargin:v.x<t?g=v.x-o-p.bleedMargin:g=o+a-v.x-p.bleedMargin,p.targetTextWidth=g,bw(p,g)}}_m(u,t,e,i,1,a,n,o,s,h),_m(l,t,e,i,-1,a,n,o,s,f);for(var c=0;c<r.length;c++){var p=r[c];if(!sh(p)&&p.linePoints){var v=p.label,d=p.linePoints,y=p.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=p.rect.width+S,x=d[1][0]-d[2][0];y?v.x<t?d[2][0]=o+p.edgeDistance+b+p.labelDistance:d[2][0]=o+a-p.edgeDistance-b-p.labelDistance:(v.x<t?d[2][0]=v.x+p.labelDistance:d[2][0]=v.x-p.labelDistance,d[1][0]=d[2][0]+x),d[1][1]=d[2][1]=v.y}}}function bw(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,p=t<f?v:e?v>r.unconstrainedWidth?null:v:null;i.setStyle("width",p)}var d=i.getBoundingRect();n.width=d.width;var g=(i.style.margin||0)+2.1;n.height=d.height+g,n.y-=(n.height-h)/2}}}function sh(r){return r.position==="center"}function Jk(r){var t=r.getData(),e=[],i,a,n=!1,o=(r.get("minShowLabelAngle")||0)*Kk,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 p(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"),R=P.get("alignTo"),E=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,D&&(w(D.states,v),D.ignore=!0);return}if(!!p(A)){var tt=(C.startAngle+C.endAngle)/2,J=Math.cos(tt),lt=Math.sin(tt),ct,kt,xt,Zt;i=C.cx,a=C.cy;var Ft=L==="inside"||L==="inner";if(L==="center")ct=C.cx,kt=C.cy,Zt="center";else{var Lt=(Ft?(C.r+C.r0)/2*J:C.r*J)+i,Tt=(Ft?(C.r+C.r0)/2*lt:C.r*lt)+a;if(ct=Lt+J*3,kt=Tt+lt*3,!Ft){var j=Lt+J*(F+l-C.r),ut=Tt+lt*(F+l-C.r),pe=j+(J<0?-1:1)*Y,It=ut;R==="edge"?ct=J<0?f+E:f+u-E:ct=pe+(J<0?-I:I),kt=It,xt=[[Lt,Tt],[j,ut],[pe,It]]}Zt=Ft?"center":R==="edge"?J>0?"right":"left":J>0?"left":"right"}var Ue=Math.PI,de=0,Lr=P.get("rotate");if(yt(Lr))de=Lr*(Ue/180);else if(L==="center")de=0;else if(Lr==="radial"||Lr===!0){var Pa=J<0?-tt+Ue:-tt;de=Pa}else if(Lr==="tangential"&&L!=="outside"&&L!=="outer"){var Ye=Math.atan2(J,lt);Ye<0&&(Ye=Ue*2+Ye);var ls=lt>0;ls&&(Ye=Ue+Ye),de=Ye-Ue}if(n=!!de,A.x=ct,A.y=kt,A.rotation=de,A.setStyle({verticalAlign:"middle"}),Ft){A.setStyle({align:Zt});var Zu=A.states.select;Zu&&(Zu.x+=A.x,Zu.y+=A.y)}else{var Jr=A.getBoundingRect().clone();Jr.applyTransform(A.getComputedTransform());var od=(A.style.margin||0)+2.1;Jr.y-=od/2,Jr.height+=od,e.push({label:A,labelLine:D,position:L,len:F,len2:Y,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new et(J,lt),linePoints:xt,textAlign:Zt,labelDistance:I,labelAlignTo:R,edgeDistance:E,bleedMargin:W,rect:Jr,unconstrainedWidth:Jr.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:Ft})}}),!n&&r.get("avoidLabelOverlap")&&jk(e,i,a,l,u,c,f,h);for(var d=0;d<e.length;d++){var g=e[d],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):(nw(b,g.minTurnAngle),JE(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new et(b[0][0],b[0][1])})}}}var Qk=function(r){O(t,r);function t(e,i,a){var n=r.call(this)||this;n.z2=2;var o=new dt;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=k(ao(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?(te(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,te(o,{shape:{r:f.r}},s,i)):a!=null?(o.setShape({startAngle:a,endAngle:a}),te(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Dt(o,{shape:{endAngle:f.endAngle}},s,i))}else Io(o),Dt(o,{shape:h},s,i);o.useStyle(e.getItemVisual(i,"style")),hn(o,l);var v=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(v)*p,g=Math.sin(v)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,i),o.ensureState("emphasis").shape=k({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},ao(u.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:d,y:g,shape:ao(l.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:ao(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&k(m.ensureState("select"),{x:d,y:g}),k(_.ensureState("select"),{x:d,y:g}),xi(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;qr(n,Kr(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)),tk(this,ek(o),{stroke:u,opacity:tn(s.get(["lineStyle","opacity"]),f,1)})}},t}(Mr),tO=function(r){O(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 Mr({shape:Sw(e,a)});c.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(v){var p=new Qk(o,v,u);o.setItemGraphicEl(v,p),l.add(p)}).update(function(v,p){var d=s.getItemGraphicEl(p);d.updateData(o,v,u),d.off("click"),l.add(d),o.setItemGraphicEl(v,d)}).remove(function(v){var p=s.getItemGraphicEl(v);El(p,e,v)}).execute(),Jk(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}(Ut),eO=tO;function Rp(r,t,e){t=N(t)&&{coordDimensions:t}||k({encodeDefine:r.getEncode()},t);var i=r.getSource(),a=bp(i,t).dimensions,n=new zu(a,r);return n.initData(i,e),n}var rO=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}(),ww=rO,iO=St(),aO=function(r){O(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 ww(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 Rp(this,{coordDimensions:["value"],encodeDefaulter:vt(cx,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),a=iO(i),n=a.seats;if(!n){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),n=a.seats=W1(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=n[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Pl(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}(we),nO=aO;function oO(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 sO(r){r.registerChartView(eO),r.registerSeriesModel(nO),jx("pie",r.registerAction),r.registerLayout(vt(qk,"pie")),r.registerProcessor(xw("pie")),r.registerProcessor(oO("pie"))}var lO=function(r){O(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 as(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}(we),uO=lO,Tw=4,fO=function(){function r(){}return r}(),hO=function(r){O(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 fO},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]<Tw,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++],p=a[c++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(p,u),h=Math.max(p,h)}e=this._rect=new st(l-o/2,u-s/2,f-l+o,h-u+s)}return e},t}(gt),vO=function(){function r(){this.group=new it}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 hO({cursor:"default"});return t.ignoreCoarsePointer=!0,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=Yt(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Tw;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}(),cO=vO,pO=function(r){O(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=Ip("").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 cO:new lw,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}(Ut),dO=pO,gO=function(r){O(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}(ft),yO=gO,Ev=function(r){O(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}(ft);Xt(Ev,os);var Cw={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)"]}}},mO=Q({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Cw),Ep=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}}},Cw),_O=Q({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ep),SO=Z({logBase:10},Ep),Aw={category:mO,value:Ep,time:_O,log:SO},xO={value:1,category:1,time:1,log:1};function Go(r,t,e,i){w(xO,function(a,n){var o=Q(Q({},Aw[n],!0),i,!0),s=function(l){O(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=Oo(this),v=c?bn(f):{},p=h.getTheme();Q(f,p.get(n+"Axis")),Q(f,this.getDefaultOption()),f.type=Sm(f),c&&bi(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Dv.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",Sm)}function Sm(r){return r.type||(r.data?"category":"value")}var bO=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}(),wO=bO,kv=["x","y"];function xm(r){return r.type==="interval"||r.type==="time"}var TO=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=kv,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!xm(e)||!xm(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,p=this._transform=[f,0,0,h,c,v];this._invTransform=Ca([],p)}}},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 st(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 Ht(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 Ht(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 st(a,n,o,s)},t}(wO),CO=function(r){O(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}(ur),AO=CO;function Ov(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,p=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[c.onZero]=Math.max(Math.min(d,p[1]),p[0])}n.position=[u==="y"?p[c[l]]:h[0],u==="x"?p[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?p[c[s]]-p[c.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Gr(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 bm(r){return r.get("coordinateSystem")==="cartesian2d"}function wm(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 lh=Math.log;function Mw(r,t,e){var i=Ti.prototype,a=i.getTicks.call(e),n=i.getTicks.call(e,!0),o=a.length-1,s=i.getInterval.call(e),l=Xb(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=lh(r.base);u=[lh(u[0])/c,lh(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 p=i.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=th(p),g=u[0]+p*o;else if(h)for(d=u[1]-p*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=th(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=th(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Et(g-m),d<0&&u[0]>=0?(d=0,g=Et(m)):g>0&&u[1]<=0&&(g=0,d=-Et(m))}var _=(a[0].value-n[0].value)/s,S=(a[o].value-n[o].value)/s;i.setExtent.call(r,d+p*_,g+p*S),i.setInterval.call(r,p),(_||S)&&i.setNiceExtent.call(r,d+p,g-p)}var MO=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kv,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],p=v.model,d=v.scale;Pv(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(cn(d,p),Pv(d)&&(s=v))}f.length&&(s||(s=f.pop(),cn(s.scale,s.model)),w(f,function(g){Mw(g.scale,g.model,s.scale)}))}}a(i.x),a(i.y);var n={};w(i.x,function(o){Tm(i,"y",o,n)}),w(i.y,function(o){Tm(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=ve(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=cE(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]),DO(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 p="x"+h+"y"+v,d=new TO(p);d.master=a,d.model=t,a._coordsMap[p]=d,a._coordsList.push(d),d.addAxis(f),d.addAxis(c)})});function u(f){return function(h,c){if(!!uh(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 p=new AO(f,Hu(h),[0,0],h.get("type"),v),d=p.type==="category";p.onBand=d&&h.get("boundaryGap"),p.inverse=h.get("inverse"),h.axis=p,p.model=h,p.grid=n,p.index=c,n._axesList.push(p),s[f][c]=p,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(bm(a)){var n=wm(a),o=n.xAxisModel,s=n.yAxisModel;if(!uh(o,e)||!uh(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(Xl(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(!!bm(a)){var n=wm(a),o=n.xAxisModel,s=n.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=kv,r}();function uh(r,t){return r.getCoordSysModel()===t}function Tm(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)Cm(a[l])&&(n=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&Cm(a[u])&&!i[f(a[u])]){n=a[u];break}n&&(i[f(n)]=!0);function f(h){return h.dim+"_"+h.index}}function Cm(r){return r&&r.type!=="category"&&r.type!=="time"&&vE(r)}function DO(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 PO=MO,ci=Math.PI,ma=function(){function r(t,e){this.group=new it,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 it({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(t){return!!Am[t]},r.prototype.add=function(t){Am[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,i){var a=bc(e-t),n,o;return Mo(a)?(o=i>0?"top":"bottom",n="center"):Mo(a-ci)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a<ci?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}(),Am={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],u=s[0]>l[0];o&&(Ht(s,s,o),Ht(l,l,o));var f=k({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new le({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ro(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);V(c)&&(c=[c,c]),(V(v)||yt(v))&&(v=[v,v]);var p=Ou(t.get(["axisLine","symbolOffset"])||0,v),d=v[0],g=v[1];w([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=Yt(c[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var a=RO(e,i,t,r),n=kO(e,i,t,r);if(IO(t,n,a),EO(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=rk(z(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));ak(o)}},axisName:function(r,t,e,i){var a=Gr(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,Dm(n)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*ci/180);var p;Dm(n)?c=ma.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=LO(r.rotation,n,v||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(c.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Gr(r.nameTruncateMaxWidth,g.maxWidth,p),_=new dt({x:h[0],y:h[1],rotation:c.rotation,silent:ma.isLabelSilent(t),style:Bt(s,{text:a,font:d,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=ma.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,nt(_).eventData=S}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function LO(r,t,e,i){var a=bc(e-r),n,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Mo(a-ci/2)?(o=l?"bottom":"top",n="center"):Mo(a-ci*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",a<ci*1.5&&a>ci/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function IO(r,t,e){if(!Zb(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)):Mm(n,o)&&(i?(De(o),De(f)):(De(n),De(u))),a===!1?(De(s),De(h)):Mm(l,s)&&(a?(De(l),De(c)):(De(s),De(h)))}}function De(r){r&&(r.ignore=!0)}function Mm(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var a=qo([]);return Ai(a,a,-r.rotation),e.applyTransform(Tr([],a,r.getLocalTransform())),i.applyTransform(Tr([],a,t.getLocalTransform())),e.intersect(i)}}function Dm(r){return r==="middle"||r==="center"}function Dw(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&&(Ht(o,o,t),Ht(s,s,t));var f=new le({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Ro(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,n.push(f)}return n}function RO(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=Dw(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 EO(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=Dw(o[f],t.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function kO(r,t,e,i){var a=e.axis,n=Gr(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!n||a.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Gr(i.labelRotate,o.get("rotate"))||0)*ci/180,f=ma.innerTextLayout(i.rotation,u,i.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],v=ma.isLabelSilent(e),p=e.get("triggerEvent");return w(l,function(d,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,m=d.formattedLabel,_=d.rawLabel,S=o;if(h&&h[y]){var b=h[y];U(b)&&b.textStyle&&(S=new At(b.textStyle,o,e.ecModel))}var x=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(y),C=new dt({x:T,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(d.level||0),style:Bt(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,p){var A=ma.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 Ci=ma;function OO(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return BO(e,r,t),e.seriesInvolved&&zO(e,r),e}function BO(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=Ho(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",i);if(w(s.getAxes(),vt(d,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&w(p.baseAxes,vt(d,v?"cross":!0,c)),v&&w(p.otherAxes,vt(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Bv(_))){y==null&&(y=_.get("triggerTooltip")),_=g?NO(m,h,a,t,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),T=Ho(m.model),C=y||b||m.type==="category",A=r.axesInfo[T]={key:T,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:C,snap:b,useHandle:Bv(_),seriesModels:[],linkGroup:null};u[T]=A,r.seriesInvolved=r.seriesInvolved||C;var D=VO(n,m);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[T]=A,M.mapper=n[D].mapper,A.linkGroup=M}}}})}function NO(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 At(l,e,i))}function zO(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[Ho(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 VO(r,t){for(var e=t.model,i=t.dim,a=0;a<r.length;a++){var n=r[a]||{};if(fh(n[i+"AxisId"],e.id)||fh(n[i+"AxisIndex"],e.componentIndex)||fh(n[i+"AxisName"],e.name))return a}}function fh(r,t){return r==="all"||N(r)&&ot(r,t)>=0||r===t}function FO(r){var t=kp(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=Bv(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 kp(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ho(r)]}function GO(r){var t=kp(r);return t&&t.axisPointerModel}function Bv(r){return!!r.get(["handle","show"])}function Ho(r){return r.type+"||"+r.id}var Pm={},HO=function(r){O(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&&FO(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=GO(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){Pm[e]=i},t.getAxisPointerClass=function(e){return e&&Pm[e]},t.type="axis",t}(Pt),ss=HO,Nv=St();function WO(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=Nv(r).splitAreaColors,c=$(),v=0;if(h)for(var p=0;p<u.length;p++){var d=h.get(u[p].tickValue);if(d!=null){v=(d+(f-1)*p)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=N(s)?s:[s];for(var p=1;p<u.length;p++){var m=a.toGlobalCoord(u[p].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[p-1].tickValue;T!=null&&c.set(T,v),t.add(new pt({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}Nv(r).splitAreaColors=c}}}function $O(r){Nv(r).splitAreaColors=null}var UO=["axisLine","axisTickLabel","axisName"],YO=["splitArea","splitLine","minorSplitLine"],Pw=function(r){O(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 it,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Ov(s,e),u=new Ci(e,k({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(Pv(c[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));w(UO,u.add,u),this._axisGroup.add(u.getGroup()),w(YO,function(h){e.get([h,"show"])&&XO[h](this,this._axisGroup,e,s)},this);var f=n&&n.type==="changeAxisOrder"&&n.isInitSort;f||bu(o,this._axisGroup,e),r.prototype.render.call(this,e,i,a,n)}},t.prototype.remove=function(){$O(this)},t.type="cartesianAxis",t}(ss),XO={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=[],p=o.getLineStyle(),d=0;d<h.length;d++){var g=a.toGlobalCoord(h[d].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[d].tickValue,_=new le({anid:m!=null?"line_"+h[d].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:Z({stroke:s[y]},p),silent:!0});Ro(_.shape,p.lineWidth),t.add(_)}}},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 p=0;p<u[v].length;p++){var d=a.toGlobalCoord(u[v][p].coord);l?(f[0]=d,f[1]=s.y,h[0]=d,h[1]=s.y+s.height):(f[0]=s.x,f[1]=d,h[0]=s.x+s.width,h[1]=d);var g=new le({anid:"minor_line_"+u[v][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0});Ro(g.shape,c.lineWidth),t.add(g)}},splitArea:function(r,t,e,i){WO(r,t,e,i)}},Lw=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(Pw),ZO=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Lw.type,e}return t.type="yAxis",t}(Pw),qO=function(r){O(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 pt({shape:e.coordinateSystem.getRect(),style:Z({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Pt),Lm={offset:0};function Iw(r){r.registerComponentView(qO),r.registerComponentModel(yO),r.registerCoordinateSystem("cartesian2d",PO),Go(r,"x",Ev,Lm),Go(r,"y",Ev,Lm),r.registerComponentView(Lw),r.registerComponentView(ZO),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function KO(r){Wt(Iw),r.registerSeriesModel(uO),r.registerChartView(dO),r.registerLayout(Ip("scatter"))}function jO(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]=Im(f)?f:Rm(a)})}),e.each(function(o){var s=e1(i[o],function(l){return Im(l)})||Rm(a);i[o].push(s.slice()),e.setItemLayout(o,i[o])})}})}function Im(r){return!isNaN(r[0])&&!isNaN(r[1])}function Rm(r){return[r.cx,r.cy]}function JO(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 QO=function(r){O(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 p=c.getItemVisual(v,"symbol")||"circle";if(p!=="none"){var d=fp(c.getItemVisual(v,"symbolSize")),g=Yt(p,-1,-1,2,2),y=c.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,v,p,d,g,y){p.removeAll();for(var m=0;m<v.length-1;m++){var _=u(d,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),Tu[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,g)):_.setPosition(v[m]),p.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 p=new Dr,d=new He,g={shape:{points:v}};p.shape.points=h(v),d.shape.points=h(v),te(p,g,e,c),te(d,g,e,c);var y=new it,m=new it;y.add(d),y.add(p),y.add(m),f(d.shape.points,v,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,v){var p=l.getItemGraphicEl(v),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(c)}};!m.shape.points||(f(d.shape.points,m.shape.points,y,s,c,!1),Io(g),Io(d),Dt(d,m,e),Dt(g,m,e),s.setItemGraphicEl(c,p))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,v){var p=s.getItemModel(v),d=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(c),d.useStyle(Z(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),hn(d,p,"lineStyle"),hn(g,p,"areaStyle");var S=p.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,w(["emphasis","select","blur"],function(C){var A=p.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=p.getModel("emphasis"),T=x.getModel("itemStyle").getItemStyle();y.eachChild(function(C){if(C instanceof ce){var A=C.style;C.useStyle(k({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=""),qr(C,Kr(p),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),xi(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}(Ut),tB=QO,eB=function(r){O(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 ww(H(this.getData,this),H(this.getRawData,this))},t.prototype.getInitialData=function(e,i){return Rp(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=Vx(this,e);return Ar("section",{header:u,sortBlocks:!0,blocks:z(s,function(h){var c=n.get(n.mapDimension(h.dim),e);return Ar("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}(we),rB=eB,$n=Aw.value;function Ys(r,t){return Z({show:t},r)}var iB=function(r){O(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(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=Z({color:p.color},l));var g=Q(X(p),{boundaryGap:e,splitNumber:i,scale:a,axisLine:n,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,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 At(g,null,this.ecModel);return Xt(m,os.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:Ys($n.axisLabel,!1),axisTick:Ys($n.axisTick,!1),splitLine:Ys($n.splitLine,!0),splitArea:Ys($n.splitArea,!0),indicator:[]},t}(ft),aB=iB,nB=["axisLine","axisTickLabel","axisName"],oB=function(r){O(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 Ci(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(nB,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"),p=N(c)?c:[c],d=N(v)?v:[v],g=[],y=[];function m(R,E,W){var B=W%E.length;return R[B]=R[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,p,x);g[T].push(new nr({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var T=m(y,d,x);y[T].push(new Qo({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var C,A=z(a,function(R,E){var W=R.getTicksCoords();return C=C==null?W.length-1:Math.min(W.length-1,C),z(W,function(B){return i.coordToPoint(B.coord,E)})}),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,p,x);g[T].push(new He({shape:{points:M}}))}if(h&&D){var T=m(y,d,x-1);y[T].push(new Dr({shape:{points:M.concat(D)}}))}D=M.slice().reverse()}var L=l.getLineStyle(),I=u.getAreaStyle();w(y,function(R,E){this.group.add(Be(R,{style:Z({stroke:"none",fill:d[E%d.length]},I),silent:!0}))},this),w(g,function(R,E){this.group.add(Be(R,{style:Z({fill:"none",stroke:p[E%p.length]},L),silent:!0}))},this)},t.type="radar",t}(Pt),sB=oB,lB=function(r){O(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}(ur),uB=lB,fB=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 uB(o,new Ti);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 Ti;o.setExtent(0,n),o.setInterval(1),w(i,function(s,l){Mw(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}(),hB=fB;function Rw(r){r.registerCoordinateSystem("radar",hB),r.registerComponentModel(aB),r.registerComponentView(sB),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 vB(r){Wt(Rw),r.registerChartView(tB),r.registerSeriesModel(rB),r.registerLayout(jO),r.registerProcessor(xw("radar")),r.registerPreprocessor(JO)}var Em="\0_ec_interaction_mutex";function cB(r,t,e){var i=Op(r);i[t]=e}function pB(r,t,e){var i=Op(r),a=i[t];a===e&&(i[t]=null)}function km(r,t){return!!Op(r)[t]}function Op(r){return r[Em]||(r[Em]={})}lr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Gt);var dB=function(r){O(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(!dd(e)){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var a=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,a,n)&&(this._x=a,this._y=n,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!gl("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||km(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&&Hr(e.event),Ew(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:n,oldY:o,newX:i,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){dd(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var i=gl("zoomOnMouseWheel",e,this._opt),a=gl("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;hh(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);hh(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!km(this._zr,"globalPan")){var i=e.pinchScale>1?1.1:1/1.1;hh(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(or);function hh(r,t,e,i,a){r.pointerChecker&&r.pointerChecker(i,a.originX,a.originY)&&(Hr(i.event),Ew(r,t,e,i,a))}function Ew(r,t,e,i,a){a.isAvailableBehavior=H(gl,null,e,i),r.trigger(t,a)}function gl(r,t,e){var i=e[r];return!r||i&&(!V(i)||t.event[i+"Key"])}var kw=dB;function gB(r,t,e){var i=r.target;i.x+=t,i.y+=e,i.dirty()}function yB(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 mB={axisPointer:1,tooltip:1,brush:1};function Ow(r,t,e){var i=t.getComponentByElement(r.topTarget),a=i&&i.coordinateSystem;return i&&i!==e&&!mB.hasOwnProperty(i.mainType)&&a&&a.model!==e}function Bw(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 vh,jl={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"},Om=at(jl),Jl={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Bm=at(Jl),_B=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var i=Bw(t);this._defsUsePending=[];var a=new it;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),Te(i,a,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,a,n,null,!1,!1),u=u.nextSibling;bB(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var c=$u(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=zw(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var v=a;a=new it,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 pt({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=vh[s];if(f&&G(vh,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=Nm[s];if(v&&G(Nm,s)){var p=v.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=p)}}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 Po({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Pe(e,i),Te(t,i,this._defsUsePending,!1,!1),SB(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(){vh={g:function(t,e){var i=new it;return Pe(e,i),Te(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new pt;return Pe(e,i),Te(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 nr;return Pe(e,i),Te(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 le;return Pe(e,i),Te(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 yu;return Pe(e,i),Te(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=Fm(i));var n=new Dr({shape:{points:a||[]},silent:!0});return Pe(e,n),Te(t,n,this._defsUsePending,!1,!1),n},polyline:function(t,e){var i=t.getAttribute("points"),a;i&&(a=Fm(i));var n=new He({shape:{points:a||[]},silent:!0});return Pe(e,n),Te(t,n,this._defsUsePending,!1,!1),n},image:function(t,e){var i=new ce;return Pe(e,i),Te(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 it;return Pe(e,s),Te(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 it;return Pe(e,s),Te(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=DS(i);return Pe(e,a),Te(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),Nm={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 ts(t,e,i,a);return zm(r,n),Vm(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 Bc(t,e,i);return zm(r,a),Vm(r,a),a}};function zm(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function Vm(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={};Nw(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 Fm(r){for(var t=$u(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 Te(r,t,e,i,a){var n=t,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};r.nodeType===1&&(CB(r,t),Nw(r,o,s),i||AB(r,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=Gm(n,"fill",o.fill,e)),o.stroke!=null&&(n.style.stroke=Gm(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($u(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0)}function SB(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 xB=/^url\(\s*#(.*?)\)/;function Gm(r,t,e,i){var a=e&&e.match(xB);if(a){var n=ze(a[1]);i.push([r,t,n]);return}return e==="none"&&(e=null),e}function bB(r,t){for(var e=0;e<t.length;e++){var i=t[e];i[0].style[i[1]]=r[i[2]]}}var wB=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function $u(r){return r.match(wB)||[]}var TB=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ch=Math.PI/180;function CB(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var i=[],a=null;e.replace(TB,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=$u(o);switch(a=a||Fe(),s){case"translate":Wr(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":Ai(a,a,-parseFloat(l[0])*ch);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ch);Tr(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*ch);Tr(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 Hm=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Nw(r,t,e){var i=r.getAttribute("style");if(!!i){Hm.lastIndex=0;for(var a;(a=Hm.exec(i))!=null;){var n=a[1],o=G(jl,n)?jl[n]:null;o&&(t[o]=a[2]);var s=G(Jl,n)?Jl[n]:null;s&&(e[s]=a[2])}}}function AB(r,t,e){for(var i=0;i<Om.length;i++){var a=Om[i],n=r.getAttribute(a);n!=null&&(t[jl[a]]=n)}for(var i=0;i<Bm.length;i++){var a=Bm[i],n=r.getAttribute(a);n!=null&&(e[Jl[a]]=n)}}function zw(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 _B;return e.parse(r,t)}var DB=$(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),PB=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=$(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Bw(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=IB(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,he(i!=null)}catch(g){throw new Error(`Invalid svg format
- `+g.message)}var a=new it;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 st(u,f,h,c)}if(s){var p=zw(s,l);i.scaleX=i.scaleY=p.scale,i.x=p.x,i.y=p.y}a.setClipPath(new pt({shape:l.plain()}));var d=[];return w(e.named,function(g){DB.get(g.svgNodeTagLower)!=null&&(d.push(g),LB(g.el))}),{root:a,boundingRect:l,named:d}},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 LB(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function IB(r){var t=[],e=$();return w(r,function(i){if(i.namedFrom==null){var a=new AE(i.name,i.el);t.push(a),e.set(i.name,a)}}),{regions:t,regionsMap:e}}var zv=[126,25],Wm="\u5357\u6D77\u8BF8\u5C9B",Qi=[[[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 Ki=0;Ki<Qi.length;Ki++)for(var $a=0;$a<Qi[Ki].length;$a++)Qi[Ki][$a][0]/=10.5,Qi[Ki][$a][1]/=-10.5/.75,Qi[Ki][$a][0]+=zv[0],Qi[Ki][$a][1]+=zv[1];function RB(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Wm)return;t.push(new Kb(Wm,z(Qi,function(i){return{type:"polygon",exterior:i}}),zv))}}var EB={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function kB(r,t){if(r==="china"){var e=EB[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 OB=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function BB(r,t){r==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:OB[0]})}var NB="name",zB=function(){function r(t,e,i){this.type="geoJSON",this._parsedMap=$(),this._mapName=t,this._specialAreas=i,this._geoJSON=FB(e)}return r.prototype.load=function(t,e){e=e||NB;var i=this._parsedMap.get(e);if(!i){var a=this._parseToRegions(e);i=this._parsedMap.set(e,{regions:a,boundingRect:VB(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 st(0,0,0,0),regionsMap:n}},r.prototype._parseToRegions=function(t){var e=this._mapName,i=this._geoJSON,a;try{a=i?Iv(i,t):[]}catch(n){throw new Error(`Invalid geoJson format
- `+n.message)}return RB(e,a),w(a,function(n){var o=n.name;kB(e,n),BB(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 VB(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 FB(r){return V(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Un=$(),Xr={registerMap:function(r,t,e){if(t.svg){var i=new PB(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 zB(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)}},Bp=["rect","circle","line","ellipse","polygon","polyline","path"],GB=$(Bp),HB=$(Bp.concat(["g"])),WB=$(Bp.concat(["g"])),Vw=St();function Xs(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function $m(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var $B=function(){function r(t){var e=new it;this.uid=xn("ec_map_draw"),this._controller=new kw(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new it),e.add(this._svgGroup=new it)}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,p=!u.childAt(0)||n;p?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Dt(f,v,t);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:i,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:d,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,p){return p&&(v=p(v)),v&&[v[0]*n.scaleX+n.x,v[1]*n.scaleY+n.y]}function h(v){for(var p=[],d=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],d);y&&p.push(y)}return p}function c(v){return{shape:{points:h(v)}}}a.removeAll(),w(t.geo.regions,function(v){var p=v.name,d=e.get(p),g=i.get(p)||{},y=g.dataIdx,m=g.regionModel;d||(d=e.set(p,new it),a.add(d),y=s?s.indexOfName(p):null,m=t.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,i.set(p,{dataIdx:y,regionModel:m}));var _=[],S=[];w(v.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=Km(C,u)),w(C,function(D){_.push(new Dr(c(D)))})}else{var A=T.points;u&&(A=Km(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 _u({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});d.add(A),Um(t,A,y,m),Ym(t,A,p,m,o,y,b),C&&($m(A),w(A.states,$m))}}x(_),x(S,!0)}),e.each(function(v,p){var d=i.get(p),g=d.dataIdx,y=d.regionModel;Xm(t,v,p,y,o,g),Zm(t,v,p,y,o),qm(t,v,p,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(GB.get(f)!=null&&h instanceof Ur&&Um(t,h,c,v),h instanceof Ur&&(h.culling=!0),h.z2EmphasisLift=0,!o.namedFrom&&(WB.get(f)!=null&&Ym(t,h,s,v,l,c,null),Xm(t,h,s,v,l,c),Zm(t,h,s,v,l),HB.get(f)!=null)){var p=qm(t,h,s,v,l);p==="self"&&(n=!0);var d=a.get(s)||a.set(s,[]);d.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){Rc(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=Xr.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=Xr.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,gB(o,u.dx,u.dy),i.dispatchAction(k(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),n.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,yB(o,u.scale,u.originX,u.originY),i.dispatchAction(k(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])&&!Ow(u,i,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=Vw(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 Um(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=Xs(a),u=Xs(n),f=Xs(s),h=Xs(o),c=r.data;if(c){var v=c.getItemVisual(e,"style"),p=c.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),p&&(l.decal=Hl(p,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=h,Rc(t)}function Ym(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;qr(t,Kr(i),{labelFetcher:c,labelDataIndex:h,defaultText:e},v);var p=t.getTextContent();if(p&&(Vw(p).ignore=p.ignore,t.textConfig&&o)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Xm(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 Zm(r,t,e,i,a){r.data||Sn({el:t,componentModel:a,itemName:e,itemTooltipOption:i.get("tooltip")})}function qm(r,t,e,i,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var n=i.getModel("emphasis"),o=n.get("focus");return xi(t,o,n.get("blurScope"),n.get("disabled")),r.isGeo&&f2(t,a,e),o}function Km(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 Fw=$B,UB=function(r){O(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 Fw(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 nr({style:{fill:e.getData().getVisual("style").fill},shape:{cx:f[0]+h*9,cy:f[1],r:3},silent:!0,z2:8+(h?0:dS+1)});if(!h){var v=e.mainSeries.getData(),p=n.getName(l),d=v.indexOfName(p),g=n.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(d);qr(c,Kr(g),{labelFetcher:{getFormattedLabel:function(_,S){return e.getFormattedLabel(d,S)}},defaultText:p}),c.disableLabelAnimation=!0,y.get("position")||c.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){sv(c,_)}}o.add(c)}}})},t.type="map",t}(Ut),YB=UB,XB=function(r){O(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=Rp(this,{coordDimensions:["value"],encodeDefaulter:vt(cx,this)}),a=$(),n=[],o=0,s=i.count();o<s;o++){var l=i.getName(o);a.set(l,!0)}var u=Xr.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 Ar("section",{header:u.join(", "),noHeader:!u.length,blocks:[Ar("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=Yt(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}(we),ZB=XB;function qB(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 KB(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=qB(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 jB(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,p=s.dataToPoint(c.getCenter());a[h]=v+1,l.setItemLayout(f,{point:p,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 jm=Ht,JB=function(r){O(t,r);function t(e){var i=r.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new na,i._rawTransformable=new na,i.name=e,i}return t.prototype.setBoundingRect=function(e,i,a,n){return this._rect=new st(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 st(e,i,a,n)},t.prototype._transformTo=function(e,i,a,n){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new st(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=Ht([],n,e),a=Ht([],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(),su(this.transform||(this.transform=[]),i.transform||Fe()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],Ca(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,i=this._roamTransformable,a=new na;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?jm(a,e,n):o1(a,e)},t.prototype.pointToData=function(e){var i=this.invTransform;return i?jm([],e,i):[e[0],e[1]]},t.prototype.convertToPixel=function(e,i,a){var n=Jm(i);return n===this?n.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,i,a){var n=Jm(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}(na);function Jm(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var Gw=JB,QB={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Hw=["lng","lat"],Ww=function(r){O(t,r);function t(e,i,a){var n=r.call(this,e)||this;n.dimensions=Hw,n.type="geo",n._nameCoordMap=$(),n.map=i;var o=a.projection,s=Xr.load(i,a.nameMap,a.nameProperty),l=Xr.getGeoResource(i);n.resourceType=l?l.type:null;var u=n.regions=s.regions,f=QB[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:rt(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 st(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=Qm(i);return n===this?n.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,i,a){var n=Qm(i);return n===this?n.pointToData(a):null},t}(Gw);Xt(Ww,Gw);function Qm(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",zt).models[0]||{}).coordinateSystem:null}var t0=Ww;function e0(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]);Br(i,i,I),Nr(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"),p=t.getWidth(),d=t.getHeight(),g=h.width/h.height*this.aspectScale,y=!1,m,_;c&&v&&(m=[K(c[0],p),K(c[1],d)],_=K(v,Math.min(p,d)),!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=ve(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function tN(r,t){w(t.get("geoCoord"),function(e,i){r.addGeoCoord(i,e)})}var eN=function(){function r(){this.dimensions=Hw}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 t0(l+s,l,k({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),i.push(u),o.coordinateSystem=u,u.model=o,u.resize=e0,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 t0(s,s,k({nameMap:t1(l)},a(o[0])));u.zoomLimit=Gr.apply(null,z(o,function(f){return f.get("scaleLimit")})),i.push(u),u.resize=e0,u.resize(o[0],e),w(o,function(f){f.coordinateSystem=u,tN(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=Xr.load(e,i,a);return w(l.regions,function(u){var f=u.name;!o.get(f)&&n.push({name:f})}),n},r}(),rN=new eN,$w=rN,iN=function(r){O(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=Xr.getGeoResource(e.map);if(n&&n.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,a),Pl(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,i=this.option;i.regions=$w.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 At(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 At(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}(ft),aN=iN;function r0(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function nN(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(r0(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(r0(r,s),i),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var oN=function(r){O(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 Fw(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;ua(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}(Pt),sN=oN;function lN(r,t,e){Xr.registerMap(r,t,e)}function uN(r){r.registerCoordinateSystem("geo",$w),r.registerComponentModel(aN),r.registerComponentView(sN),r.registerImpl("registerMap",lN),r.registerImpl("getMap",function(e){return Xr.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=nN(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 fN(r){Wt(uN),r.registerChartView(YB),r.registerSeriesModel(ZB),r.registerLayout(jB),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,KB),jx("map",r.registerAction)}var Wo=w,hN=U,Ql=-1,Np=function(){function r(t){var e=t.mappingMethod,i=t.type,a=this.option=X(t);this.type=i,this.mappingMethod=e,this._normalizeData=pN[e];var n=r.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[e],e==="piecewise"?(ph(a),vN(a)):e==="category"?a.categories?cN(a):ph(a,!0):(he(e!=="linear"||a.dataExtent),ph(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&&Wo(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(hN(t)){var e=[];Wo(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(qs(h[1],t,f[1]))return o}else if(f[1]===1/0){if(qs(h[0],f[0],t))return o}else if(qs(h[0],f[0],t)&&qs(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,p){var d=Math.abs(v-t);d<n&&(n=d,a=p)}},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)),no.call(this,e)}:function(e,i,a){var n=!!a;return!i&&(e=this._normalizeData(e)),a=lo(e,t.parsedVisual,a),n?a:rr(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return rr(lo(t,this.option.parsedVisual),"rgba")},category:no,piecewise:function(t,e){var i=Fv.call(this,e);return i==null&&(i=rr(lo(t,this.option.parsedVisual),"rgba")),i},fixed:ta}},colorHue:Zs(function(t,e){return nl(t,e)}),colorSaturation:Zs(function(t,e){return nl(t,null,e)}),colorLightness:Zs(function(t,e){return nl(t,null,null,e)}),colorAlpha:Zs(function(t,e){return A1(t,e)}),decal:{applyVisual:Yn("decal"),_normalizedToVisual:{linear:null,category:no,piecewise:null,fixed:null}},opacity:{applyVisual:Yn("opacity"),_normalizedToVisual:Vv([0,1])},liftZ:{applyVisual:Yn("liftZ"),_normalizedToVisual:{linear:ta,category:ta,piecewise:ta,fixed:ta}},symbol:{applyVisual:function(t,e,i){var a=this.mapValueToVisual(t);i("symbol",a)},_normalizedToVisual:{linear:i0,category:no,piecewise:function(t,e){var i=Fv.call(this,e);return i==null&&(i=i0.call(this,t)),i},fixed:ta}},symbolSize:{applyVisual:Yn("symbolSize"),_normalizedToVisual:Vv([0,1])}},r}();function vN(r){var t=r.pieceList;r.hasSpecialVisual=!1,w(t,function(e,i){e.originIndex=i,e.visual!=null&&(r.hasSpecialVisual=!0)})}function cN(r){var t=r.categories,e=r.categoryMap={},i=r.visual;if(Wo(t,function(o,s){e[o]=s}),!N(i)){var a=[];U(i)?Wo(i,function(o,s){var l=e[s];a[l!=null?l:Ql]=o}):a[Ql]=i,i=Uw(r,a)}for(var n=t.length-1;n>=0;n--)i[n]==null&&(delete e[t[n]],t.pop())}function ph(r,t){var e=r.visual,i=[];U(e)?Wo(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]),Uw(r,i)}function Zs(r){return{applyVisual:function(t,e,i){var a=this.mapValueToVisual(t);i("color",r(e("color"),a))},_normalizedToVisual:Vv([0,1])}}function i0(r){var t=this.option.visual;return t[Math.round(wt(r,[0,1],[0,t.length-1],!0))]||{}}function Yn(r){return function(t,e,i){i(r,this.mapValueToVisual(t))}}function no(r){var t=this.option.visual;return t[this.option.loop&&r!==Ql?r%t.length:r]}function ta(){return this.option.visual[0]}function Vv(r){return{linear:function(t){return wt(t,r,this.option.visual,!0)},category:no,piecewise:function(t,e){var i=Fv.call(this,e);return i==null&&(i=wt(t,r,this.option.visual,!0)),i},fixed:ta}}function Fv(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var i=Np.findPieceIndex(r,e),a=e[i];if(a&&a.visual)return a.visual[this.type]}}function Uw(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=z(t,function(e){var i=ue(e);return i||[0,0,0,1]})),t}var pN={linear:function(r){return wt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Np.findPieceIndex(r,t,!0);if(e!=null)return wt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?Ql:t},fixed:Gt};function qs(r,t,e){return r?t<=e:t<e}var fe=Np;function dN(r){gN(r),yN(r)}function gN(r){if(!r.parallel){var t=!1;w(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function yN(r){var t=Mt(r.parallelAxis);w(t,function(e){if(!!U(e)){var i=e.parallelIndex||0,a=Mt(r.parallel)[i];a&&a.parallelAxisDefault&&Q(e,a.parallelAxisDefault,!1)}})}var mN=5,_N=function(r){O(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(SN,function(n,o){a.getZr().on(o,this._handlers[o]=H(n,this))},this)),is(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,i){No(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(k({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Pt),SN={mousedown:function(r){dh(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(dh(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>mN)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||!dh(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 dh(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var xN=_N,bN=function(r){O(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}(ft),wN=bN,TN=function(r){O(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}(ur),CN=TN;function Da(r,t,e,i,a,n){r=r||0;var o=e[1]-e[0];if(a!=null&&(a=Ua(a,[0,o])),n!=null&&(n=Math.max(n,a!=null?a:0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=Ua(s,[0,o]),a=n=Ua(s,[a,n]),i=0}t[0]=Ua(t[0],e),t[1]=Ua(t[1],e);var l=gh(t,i);t[i]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[i]=Ua(t[i],f);var h;return h=gh(t,i),a!=null&&(h.sign!==l.sign||h.span<a)&&(t[1-i]=t[i]+l.sign*a),h=gh(t,i),n!=null&&h.span>n&&(t[1-i]=t[i]+h.sign*n),t}function gh(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 Ua(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var yh=w,Yw=Math.min,Xw=Math.max,a0=Math.floor,AN=Math.ceil,n0=Et,MN=Math.PI,DN=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;yh(a,function(o,s){var l=n[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new CN(o,Hu(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();yh(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=ve(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=Ks(t.get("axisExpandWidth"),l),h=Ks(t.get("axisExpandCount")||0,[0,u]),c=t.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,v=t.get("axisExpandWindow"),p;if(v)p=Ks(v[1]-v[0],l),v[1]=v[0]+p;else{p=Ks(f*(h-1),l);var d=t.get("axisExpandCenter")||a0(u/2);v=[f*d-p/2],v[1]=v[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[a0(n0(v[0]/f,1))+1,AN(n0(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])}),yh(i,function(o,s){var l=(a.axisExpandable?LN:PN)(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();Ai(v,v,c),Wr(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,p=o.length;v<p;v++){var d=l[v].getActiveState(c[v]);if(d==="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 ir([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?Da(l,a,o,"all"):u="none";else{var v=a[1]-a[0],p=o[1]*s/v;a=[Xw(0,p-v/2)],a[1]=Yw(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function Ks(r,t){return Yw(Xw(r,t[0]),t[1])}function PN(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function LN(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 IN=DN;function RN(r,t){var e=[];return r.eachComponent("parallel",function(i,a){var n=new IN(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 EN={create:RN},kN=EN,Zw=function(r){O(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--)Sr(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}(ft);Xt(Zw,os);var o0=Zw,ba=!0,$o=Math.min,pn=Math.max,ON=Math.pow,BN=1e4,NN=6,zN=6,s0="globalPan",VN={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},FN={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},l0={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},GN=0,HN=function(r){O(t,r);function t(e){var i=r.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=e,i.group=new it,i._uid="brushController_"+GN++,w(qN,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||cB(i,s0,this._uid),w(this._handlers,function(a,n){i.on(n,a)}),this._brushType=e.brushType,this._brushOption=Q(X(l0),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;pB(e,s0,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(l0),c,!0)});var i="\0-brush-index-",a=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new xp(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 p=e[c];if(v!=null&&a[v]===s)n[c]=a[v];else{var d=n[c]=v!=null?(a[v].__brushOption=p,a[v]):Kw(o,qw(o,p));zp(o,d)}}function h(c){a[c]!==s&&o.group.remove(a[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),Gv(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(or);function qw(r,t){var e=Uu[t.brushType].createCover(r,t);return e.__brushOption=t,Jw(e,t),r.group.add(e),e}function Kw(r,t){var e=Vp(t);return e.endCreating&&(e.endCreating(r,t),Jw(t,t.__brushOption)),t}function jw(r,t){var e=t.__brushOption;Vp(t).updateCoverShape(r,t,e.range,e)}function Jw(r,t){var e=t.z;e==null&&(e=BN),r.traverse(function(i){i.z=e,i.z2=e})}function zp(r,t){Vp(t).updateCommon(r,t),jw(r,t)}function Vp(r){return Uu[r.__brushOption.brushType]}function Fp(r,t,e){var i=r._panels;if(!i)return ba;var a,n=r._transform;return w(i,function(o){o.isTargetByCursor(t,e,n)&&(a=o)}),a}function Qw(r,t){var e=r._panels;if(!e)return ba;var i=t.__brushOption.panelId;return i!=null?e[i]:ba}function Gv(r){var t=r._covers,e=t.length;return w(t,function(i){r.group.remove(i)},r),t.length=0,!!e}function wa(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 WN(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=ON(a*a+n*n,.5);return o>NN}function tT(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function eT(r,t,e,i){var a=new it;return a.add(new pt({name:"main",style:Gp(e),silent:!0,draggable:!0,cursor:"move",drift:vt(u0,r,t,a,["n","s","w","e"]),ondragend:vt(wa,t,{isEnd:!0})})),w(i,function(n){a.add(new pt({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:vt(u0,r,t,a,n),ondragend:vt(wa,t,{isEnd:!0})}))}),a}function rT(r,t,e,i){var a=i.brushStyle.lineWidth||0,n=pn(a,zN),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,p=f-o,d=h-s,g=p+a,y=d+a;Er(r,t,"main",o,s,p,d),i.transformable&&(Er(r,t,"w",l,u,n,y),Er(r,t,"e",c,u,n,y),Er(r,t,"n",l,u,g,n),Er(r,t,"s",l,v,g,n),Er(r,t,"nw",l,u,n,n),Er(r,t,"ne",c,u,n,n),Er(r,t,"sw",l,v,n,n),Er(r,t,"se",c,v,n,n))}function Hv(r,t){var e=t.__brushOption,i=e.transformable,a=t.childAt(0);a.useStyle(Gp(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?Wv(r,n[0]):UN(r,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?FN[s]+"-resize":null})})}function Er(r,t,e,i,a,n,o){var s=t.childOfName(e);s&&s.setShape(XN(Hp(r,t,[[i,a],[i+n,a+o]])))}function Gp(r){return Z({strokeNoScale:!0},r.brushStyle)}function iT(r,t,e,i){var a=[$o(r,e),$o(t,i)],n=[pn(r,e),pn(t,i)];return[[a[0],n[0]],[a[1],n[1]]]}function $N(r){return yi(r.group)}function Wv(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=xu(e[t],$N(r));return i[a]}function UN(r,t){var e=[Wv(r,t[0]),Wv(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function u0(r,t,e,i,a,n){var o=e.__brushOption,s=r.toRectRange(o.range),l=aT(t,a,n);w(i,function(u){var f=VN[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(iT(s[0][0],s[1][0],s[0][1],s[1][1])),zp(t,e),wa(t,{isEnd:!1})}function YN(r,t,e,i){var a=t.__brushOption.range,n=aT(r,e,i);w(a,function(o){o[0]+=n[0],o[1]+=n[1]}),zp(r,t),wa(r,{isEnd:!1})}function aT(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 Hp(r,t,e){var i=Qw(r,t);return i&&i!==ba?i.clipPath(e,r._transform):X(e)}function XN(r){var t=$o(r[0][0],r[1][0]),e=$o(r[0][1],r[1][1]),i=pn(r[0][0],r[1][0]),a=pn(r[0][1],r[1][1]);return{x:t,y:e,width:i-t,height:a-e}}function ZN(r,t,e){if(!(!r._brushType||KN(r,t.offsetX,t.offsetY))){var i=r._zr,a=r._covers,n=Fp(r,t,e);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(n&&(n===ba||s.panelId===n.panelId)&&Uu[s.brushType].contain(a[o],e[0],e[1]))return}n&&i.setCursorStyle("crosshair")}}function $v(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Uv(r,t,e){return r.childOfName("main").contain(t,e)}function nT(r,t,e,i){var a=r._creatingCover,n=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),WN(r)||a){if(n&&!a){o.brushMode==="single"&&Gv(r);var l=X(o);l.brushType=f0(l.brushType,n),l.panelId=n===ba?null:n.panelId,a=r._creatingCover=qw(r,l),r._covers.push(a)}if(a){var u=Uu[f0(r._brushType,n)],f=a.__brushOption;f.range=u.getCreatingRange(Hp(r,a,r._track)),i&&(Kw(r,a),u.updateCommon(r,a)),jw(r,a),s={isEnd:i}}}else i&&o.brushMode==="single"&&o.removeOnClick&&Fp(r,t,e)&&Gv(r)&&(s={isEnd:i,removeOnClick:!0});return s}function f0(r,t){return r==="auto"?t.defaultBrushType:r}var qN={mousedown:function(r){if(this._dragging)h0(this,r);else if(!r.target||!r.target.draggable){$v(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Fp(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(ZN(this,r,i),this._dragging){$v(r);var a=nT(this,r,i,!1);a&&wa(this,a)}},mouseup:function(r){h0(this,r)}};function h0(r,t){if(r._dragging){$v(t);var e=t.offsetX,i=t.offsetY,a=r.group.transformCoordToLocal(e,i),n=nT(r,t,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,n&&wa(r,n)}}function KN(r,t,e){var i=r._zr;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Uu={lineX:v0(0),lineY:v0(1),rect:{createCover:function(r,t){function e(i){return i}return eT({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=tT(r);return iT(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,i){rT(r,t,e,i)},updateCommon:Hv,contain:Uv},polygon:{createCover:function(r,t){var e=new it;return e.add(new He({name:"main",style:Gp(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Dr({name:"main",draggable:!0,drift:vt(YN,r,t),ondragend:vt(wa,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,i){t.childAt(0).setShape({points:Hp(r,t,e)})},updateCommon:Hv,contain:Uv}};function v0(r){return{createCover:function(t,e){return eT({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=tT(t),i=$o(e[0][r],e[1][r]),a=pn(e[0][r],e[1][r]);return[i,a]},updateCoverShape:function(t,e,i,a){var n,o=Qw(t,e);if(o!==ba&&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(),rT(t,e,l,a)},updateCommon:Hv,contain:Uv}}var oT=HN;function sT(r){return r=Wp(r),function(t){return Hc(t,r)}}function lT(r,t){return r=Wp(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 uT(r,t,e){var i=Wp(r);return function(a,n){return i.contain(n[0],n[1])&&!Ow(a,t,e)}}function Wp(r){return st.create(r)}var jN=["axisLine","axisTickLabel","axisName"],JN=function(r){O(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 oT(i.getZr())).on("brush",H(this._onBrush,this))},t.prototype.render=function(e,i,a,n){if(!QN(e,i,n)){this.axisModel=e,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!e.get("show")){var s=e5(e,i),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,h=e.axis.dim,c=l.getAxisLayout(h),v=k({strokeContainThreshold:f},c),p=new Ci(e,v);w(jN,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(v,u,e,s,f,a),bu(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=st.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:sT(h),isTargetByCursor:uT(h,s,n),getLinearBrushOtherExtent:lT(h,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(t5(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}(Pt);function QN(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function t5(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 e5(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var r5=JN,i5={type:"axisAreaSelect",event:"axisAreaSelected"};function a5(r){r.registerAction(i5,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 n5={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function o5(r){r.registerComponentView(xN),r.registerComponentModel(wN),r.registerCoordinateSystem("parallel",kN),r.registerPreprocessor(dN),r.registerComponentModel(o0),r.registerComponentView(r5),Go(r,"parallel",o0,n5),a5(r)}var s5=["itemStyle","borderWidth"],c0=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],mh=new nr,l5=function(r){O(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:c0[+f],categoryDim:c0[1-+f]};return o.diff(s).add(function(v){if(!!o.hasValue(v)){var p=d0(o,v),d=p0(o,v,p,c),g=g0(o,c,d);o.setItemGraphicEl(v,g),n.add(g),m0(g,c,d)}}).update(function(v,p){var d=s.getItemGraphicEl(p);if(!o.hasValue(v)){n.remove(d);return}var g=d0(o,v),y=p0(o,v,g,c),m=dT(o,y);d&&m!==d.__pictorialShapeStr&&(n.remove(d),o.setItemGraphicEl(v,null),d=null),d?d5(d,c,y):d=g0(o,c,y,!0),o.setItemGraphicEl(v,d),d.__pictorialSymbolMeta=y,n.add(d),m0(d,c,y)}).remove(function(v){var p=s.getItemGraphicEl(v);p&&y0(s,v,p.__pictorialSymbolMeta.animationModel,p)}).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){y0(n,nt(o).dataIndex,e,o)}):a.removeAll()},t.type="pictorialBar",t}(Ut);function p0(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};u5(e,n,a,i,c),f5(r,t,a,n,o,c.boundingLength,c.pxSign,f,i,c),h5(e,c.symbolScale,u,i,c);var v=c.symbolSize,p=Ou(e.get("symbolOffset"),v);return v5(e,v,a,n,o,p,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function u5(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=[_h(s,o[0])-l,_h(s,o[1])-l];h[1]<h[0]&&h.reverse(),f=h[u]}else o!=null?f=_h(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 _h(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function f5(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"),p;N(v)?p=v.slice():v==null?p=["100%","100%"]:p=[v,v],p[h.index]=K(p[h.index],c),p[f.index]=K(p[f.index],i?c:Math.abs(n)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function h5(r,t,e,i,a){var n=r.get(s5)||0;n&&(mh.attr({scaleX:t[0],scaleY:t[1],rotation:e}),mh.updateTransform(),n/=mh.getLineScale(),n*=t[i.valueDim.index]),a.valueLineWidth=n||0}function v5(r,t,e,i,a,n,o,s,l,u,f,h){var c=f.categoryDim,v=f.valueDim,p=h.pxSign,d=Math.max(t[v.index]+s,0),g=d;if(i){var y=Math.abs(l),m=Gr(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(d+S*2,0),x=_?0:S*2,T=Tc(i),C=T?i:_0((y+x)/b),A=y-C*d;S=A/2/(_?C:Math.max(C-1,1)),b=d+S*2,x=_?0:S*2,!T&&i!=="fixed"&&(C=u?_0((Math.abs(u)+x)/b):0),g=C*b-x,h.repeatTimes=C,h.symbolMargin=S}var D=p*(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=k({},e);L[v.wh]=p*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 fT(r){var t=r.symbolPatternSize,e=Yt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function hT(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($p(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?on(d,null,p(f),e,i):on(d,null,{scaleX:0,scaleY:0},e,i,function(){a.remove(d)}),f++});f<u;f++){var c=fT(e);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,a.add(c);var v=p(f);on(c,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},e,i)}function p(d){var g=s.slice(),y=e.pxSign,m=d;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),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 vT(r,t,e,i){var a=r.__pictorialBundle,n=r.__pictorialMainPath;n?on(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=fT(e),a.add(n),on(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 cT(r,t,e){var i=k({},t.barRectShape),a=r.__pictorialBarRect;a?on(a,null,{shape:i},t,e):(a=r.__pictorialBarRect=new pt({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function pT(r,t,e,i){if(e.symbolClip){var a=r.__pictorialClipPath,n=k({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)Dt(a,{shape:n},s,l);else{n[o.wh]=0,a=new pt({shape:n}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],Tu[i?"updateProps":"initProps"](a,{shape:u},s,l)}}}function d0(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=c5,e.isAnimationEnabled=p5,e}function c5(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function p5(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function g0(r,t,e,i){var a=new it,n=new it;return a.add(n),a.__pictorialBundle=n,n.x=e.bundlePosition[0],n.y=e.bundlePosition[1],e.symbolRepeat?hT(a,t,e):vT(a,t,e),cT(a,e,i),pT(a,t,e,i),a.__pictorialShapeStr=dT(r,e),a.__pictorialSymbolMeta=e,a}function d5(r,t,e){var i=e.animationModel,a=e.dataIndex,n=r.__pictorialBundle;Dt(n,{x:e.bundlePosition[0],y:e.bundlePosition[1]},i,a),e.symbolRepeat?hT(r,t,e,!0):vT(r,t,e,!0),cT(r,e,!0),pT(r,t,e,!0)}function y0(r,t,e,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var n=[];$p(i,function(o){n.push(o)}),i.__pictorialMainPath&&n.push(i.__pictorialMainPath),i.__pictorialClipPath&&(e=null),w(n,function(o){Lo(o,{scaleX:0,scaleY:0},e,t,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(t,null)}function dT(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function $p(r,t,e){w(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&t.call(e,i)})}function on(r,t,e,i,a,n){t&&r.attr(t),i.symbolClip&&!a?e&&r.attr(e):e&&Tu[a?"updateProps":"initProps"](r,e,i.animationModel,i.dataIndex,n)}function m0(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");$p(r,function(d){if(d instanceof ce){var g=d.style;d.useStyle(k({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else d.useStyle(e.style);var y=d.ensureState("emphasis");y.style=o,c&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],p=r.__pictorialBarRect;qr(p,Kr(a),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:Wu(t.seriesModel.getData(),i),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),xi(r,f,h,n.get("disabled"))}function _0(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var g5=l5,y5=function(r){O(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=Mi(Kl.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}(Kl),m5=y5;function _5(r){r.registerChartView(g5),r.registerSeriesModel(m5),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,vt(Vb,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Fb("pictorialBar"))}function S5(r,t,e,i){return r&&(r.legacy||r.legacy!==!1&&!e&&!i&&t!=="tspan"&&(t==="text"||G(r,"text")))}function x5(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 S0(o,r),w(o.rich,function(l){S0(l,l)}),{textConfig:a,textContent:n}}function S0(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 iH(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";x0(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){x0(s,s)}),i}function x0(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 gT={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},b0=at(gT);Ve(Cr,function(r,t){return r[t]=1,r},{});Cr.join(", ");var tu=["","style","shape","extra"],dn=St();function Up(r,t,e,i,a){var n=r+"Animation",o=Nc(r,i,a)||{},s=dn(t).userDuring;return o.duration>0&&(o.during=s?H(M5,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),k(o,e[n]),o}function Sh(r,t,e,i){i=i||{};var a=i.dataIndex,n=i.isInit,o=i.clearStyle,s=e.isAnimationEnabled(),l=dn(r),u=t.style;l.userDuring=t.during;var f={},h={};if(P5(r,t,h),T0("shape",t,h),T0("extra",t,h),!n&&s&&(D5(r,t,f),w0("shape",r,t,f),w0("extra",r,t,f),L5(r,t,u,f)),h.style=u,w5(r,h,o),C5(r,t),s)if(n){var c={};w(tu,function(p){var d=p?t[p]:t;d&&d.enterFrom&&(p&&(c[p]=c[p]||{}),k(p?c[p]:c,d.enterFrom))});var v=Up("enter",r,t,e,a);v.duration>0&&r.animateFrom(c,v)}else T5(r,t,a||0,e,f);yT(r,t),u?r.dirty():r.markRedraw()}function yT(r,t){for(var e=dn(r).leaveToProps,i=0;i<tu.length;i++){var a=tu[i],n=a?t[a]:t;n&&n.leaveTo&&(e||(e=dn(r).leaveToProps={}),a&&(e[a]=e[a]||{}),k(a?e[a]:e,n.leaveTo))}}function b5(r,t,e,i){if(r){var a=r.parent,n=dn(r).leaveToProps;if(n){var o=Up("update",r,t,e,0);o.done=function(){a.remove(r),i&&i()},r.animateTo(n,o)}else a.remove(r),i&&i()}}function _a(r){return r==="all"}function w5(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 T5(r,t,e,i,a){if(a){var n=Up("update",r,t,i,e);n.duration>0&&r.animateFrom(a,n)}}function C5(r,t){G(t,"silent")&&(r.silent=t.silent),G(t,"ignore")&&(r.ignore=t.ignore),r instanceof Ur&&G(t,"invisible")&&(r.invisible=t.invisible),r instanceof gt&&G(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var pr={},A5={setTransform:function(r,t){return pr.el[r]=t,this},getTransform:function(r){return pr.el[r]},setShape:function(r,t){var e=pr.el,i=e.shape||(e.shape={});return i[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=pr.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=pr.el,i=e.style;return i&&(i[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=pr.el.style;if(t)return t[r]},setExtra:function(r,t){var e=pr.el.extra||(pr.el.extra={});return e[r]=t,this},getExtra:function(r){var t=pr.el.extra;if(t)return t[r]}};function M5(){var r=this,t=r.el;if(!!t){var e=dn(t).userDuring,i=r.userDuring;if(e!==i){r.el=r.userDuring=null;return}pr.el=t,i(A5)}}function w0(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]={}),_a(l))k(o,n);else for(var u=Mt(l),f=0;f<u.length;f++){var h=u[f],c=n[h];o[h]=c}else if(_a(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];I5(a[h],c)&&(o[h]=c)}}}}}function T0(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]=uo(i[s])}}function D5(r,t,e){for(var i=t.transition,a=_a(i)?Cr:Mt(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 P5(r,t,e){for(var i=0;i<b0.length;i++){var a=b0[i],n=gT[a],o=t[a];o&&(e[n[0]]=o[0],e[n[1]]=o[1])}for(var i=0;i<Cr.length;i++){var s=Cr[i];t[s]!=null&&(e[s]=t[s])}}function L5(r,t,e,i){if(!!e){var a=r.style,n;if(a){var o=e.transition,s=t.transition;if(o&&!_a(o)){var l=Mt(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&&(_a(s)||_a(o)||ot(s,"style")>=0)){var c=r.getAnimationStyleProps(),v=c?c.style:null;if(v){!n&&(n=i.style={});for(var p=at(e),u=0;u<p.length;u++){var f=p[u];if(v[f]){var h=a[f];n[f]=h}}}}}}}function I5(r,t){return ee(r)?r!==t:r!=null&&isFinite(r)}var mT=St(),R5=["percent","easing","shape","style","extra"];function E5(r){r.stopAnimation("keyframe"),r.attr(mT(r))}function Yv(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(N(t)){w(t,function(s){Yv(r,s,e)});return}var i=t.keyframes,a=t.duration;if(e&&a==null){var n=Nc("enter",e,0);a=n&&n.duration}if(!(!i||!a)){var o=mT(r);w(tu,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(d){return ot(R5,d)<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 p=s?o[s]:o;w(c,function(d){p[d]=((s?r[s]:r)||{})[d]}),l.whenWithKeys(a*u.percent,h,c,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var ra=St(),C0=X,xh=H,k5=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 it,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);else{var c=vt(A0,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}D0(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=kp(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=ra(t).pointerEl=new Tu[n.type](C0(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,a){if(e.label){var n=ra(t).labelEl=new dt(C0(e.label));t.add(n),M0(n,a)}},r.prototype.updatePointerEl=function(t,e,i){var a=ra(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=ra(t).labelEl;n&&(n.setStyle(e.label.style),i(n,{x:e.label.x,y:e.label.y}),M0(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){Hr(u.event)},onmousedown:xh(this._onHandleDragMove,this,0,0),drift:xh(this._onHandleDragMove,this),ondragend:xh(this._onHandleDragEnd,this)}),i.add(a)),D0(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,is(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){A0(this._axisPointerModel,!e&&this._moveAnimation,this._handle,bh(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(bh(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(bh(a)),ra(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),No(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 A0(r,t,e,i){_T(ra(e).lastProp,i)||(ra(e).lastProp=i,t?Dt(e,i,r):(e.stopAnimation(),e.attr(i)))}function _T(r,t){if(U(r)&&U(t)){var e=!0;return w(t,function(i,a){e=e&&_T(r[a],i)}),!!e}else return r===t}function M0(r,t){r[t.get(["label","show"])?"show":"hide"]()}function bh(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function D0(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 ST=k5;function xT(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 bT(r,t,e,i,a){var n=e.get("value"),o=wT(n,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ma(s.get("padding")||0),u=s.getFont(),f=jo(o,u),h=a.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],p=a.align;p==="right"&&(h[0]-=c),p==="center"&&(h[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(h[1]-=v),d==="middle"&&(h[1]-=v/2),O5(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:Bt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function O5(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 wT(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:Mp(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 TT(r,t,e){var i=Fe();return Ai(i,i,e.rotation),Wr(i,i,e.position),ir([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function B5(r,t,e,i,a,n){var o=Ci.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),bT(t,i,a,n,{position:TT(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function CT(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function N5(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function P0(r,t,e,i,a,n){return{cx:r,cy:t,r0:e,r:i,startAngle:a,endAngle:n,clockwise:!0}}var z5=function(r){O(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=L0(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=xT(n),v=V5[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var p=Ov(l.model,a);B5(i,e,p,a,n,o)},t.prototype.getHandleTransform=function(e,i,a){var n=Ov(i.axis.grid.model,i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=TT(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=L0(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 p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:p[f]}},t}(ST);function L0(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var V5={line:function(r,t,e){var i=CT([t,e[0]],[t,e[1]],I0(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:N5([t-i/2,e[0]],[i,a],I0(r))}}};function I0(r){return r.dim==="x"?0:1}var F5=z5,G5=function(r){O(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,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ft),H5=G5,Vr=St(),W5=w;function AT(r,t,e){if(!ht.node){var i=t.getZr();Vr(i).records||(Vr(i).records={}),$5(i,t);var a=Vr(i).records[r]||(Vr(i).records[r]={});a.handler=e}}function $5(r,t){if(Vr(r).initialized)return;Vr(r).initialized=!0,e("click",vt(R0,"click")),e("mousemove",vt(R0,"mousemove")),e("globalout",Y5);function e(i,a){r.on(i,function(n){var o=X5(t);W5(Vr(r).records,function(s){s&&a(s,n,o.dispatchAction)}),U5(o.pendings,t)})}}function U5(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 Y5(r,t,e){r.handler("leave",null,e)}function R0(r,t,e,i){t.handler(r,e,i)}function X5(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 Xv(r,t){if(!ht.node){var e=t.getZr(),i=(Vr(e).records||{})[r];i&&(Vr(e).records[r]=null)}}var Z5=function(r){O(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";AT("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){Xv("axisPointer",i)},t.prototype.dispose=function(e,i){Xv("axisPointer",i)},t.type="axisPointer",t}(Pt),q5=Z5;function MT(r,t){var e=[],i=r.seriesIndex,a;if(i==null||!(a=t.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=Sa(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,p=n.mapDimension(c),d=[];d[v]=n.get(p,o),d[1-v]=n.get(n.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(d)||[]}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 E0=St();function K5(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){yl(a)&&(a=MT({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},t).point);var l=yl(a),u=n.axesInfo,f=s.axesInfo,h=i==="leave"||yl(a),c={},v={},p={list:[],map:{}},d={showPointer:vt(J5,v),showTooltip:vt(Q5,p)};w(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);w(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,T=iz(u,S);if(!h&&_&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=x.pointToData(a)),C!=null&&k0(S,C,d,!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,O0(S),O0(y)))),g[y.key]=T}})}),w(g,function(y,m){k0(f[m],y,d,!0,c)}),tz(v,f,c),ez(p,a,r,o),rz(f,o,e),c}}function k0(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=j5(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&k(a,s[0]),!i&&r.snap&&n.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function j5(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 p=r-h,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,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 J5(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function Q5(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=Ho(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 tz(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 ez(r,t,e,i){if(yl(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 rz(r,t,e){var i=e.getZr(),a="axisPointerLastHighlights",n=E0(i)[a]||{},o=E0(i)[a]={};w(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&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 iz(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 O0(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 yl(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Yp(r){ss.registerAxisPointerClass("CartesianAxisPointer",F5),r.registerComponentModel(H5),r.registerComponentView(q5),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=OO(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},K5)}function az(r){Wt(Iw),Wt(Yp)}var nz=function(r){O(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=xT(n),p=sz[c](s,l,h,f);p.style=v,e.graphicKey=p.type,e.pointer=p}var d=n.get(["label","margin"]),g=oz(i,a,n,l,d);bT(e,a,n,o,g)},t}(ST);function oz(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();Ai(c,c,s),Wr(c,c,[i.cx,i.cy]),u=ir([o,-a],c);var v=t.getModel("axisLabel").get("rotate")||0,p=Ci.innerTextLayout(s,v*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=i.coordToPoint([d+a,o]);var g=i.cx,y=i.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var sz={line:function(r,t,e,i){return r.dim==="angle"?{type:"Line",shape:CT(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:P0(t.cx,t.cy,i[0],i[1],(-e-a/2)*n,(-e+a/2)*n)}:{type:"Sector",shape:P0(t.cx,t.cy,e-a/2,e+a/2,0,Math.PI*2)}}},lz=nz,uz=function(r){O(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}(ft),fz=uz,Xp=function(r){O(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}(ft);Xt(Xp,os);var hz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(Xp),vz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(Xp),Zp=function(r){O(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}(ur);Zp.prototype.dataToRadius=ur.prototype.dataToCoord;Zp.prototype.radiusToData=ur.prototype.coordToData;var cz=Zp,pz=St(),qp=function(r){O(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=jo(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)),p=pz(e.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-v)<=1&&Math.abs(g-o)<=1&&d>v?v=d:(p.lastTickCount=o,p.lastAutoInterval=v),v},t}(ur);qp.prototype.dataToAngle=ur.prototype.dataToCoord;qp.prototype.angleToData=ur.prototype.coordToData;var dz=qp,DT=["radius","angle"],gz=function(){function r(t){this.dimensions=DT,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new cz,this._angleAxis=new dz,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=B0(e);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(t,e,i){var a=B0(e);return a===this?this.pointToData(i):null},r}();function B0(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}var yz=gz;function mz(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 _z(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(Xl(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),w(Xl(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 Sz(r){return r.mainType==="angleAxis"}function N0(r,t){if(r.type=t.get("type"),r.scale=Hu(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),Sz(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 xz={dimensions:DT,create:function(r,t){var e=[];return r.eachComponent("polar",function(i,a){var n=new yz(a+"");n.update=_z;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");N0(o,l),N0(s,u),mz(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}},bz=xz,wz=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function js(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 Js(r){var t=r.getRadiusAxis();return t.inverse?0:1}function z0(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 Tz=function(r){O(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});z0(u),z0(s),w(wz,function(f){e.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&Cz[f](this.group,e,n,s,l,o,u)},this)}},t.type="angleAxis",t}(ss),Cz={axisLine:function(r,t,e,i,a,n){var o=t.getModel(["axisLine","lineStyle"]),s=Js(e),l=s?0:1,u;n[l]===0?u=new nr({shape:{cx:e.cx,cy:e.cy,r:n[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Qo({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[Js(e)],u=z(i,function(f){return new le({shape:js(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[Js(e)],f=[],h=0;h<a.length;h++)for(var c=0;c<a[h].length;c++)f.push(new le({shape:js(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,p=h.tickValue,d=n[Js(e)],g=e.coordToPoint([d+u,h.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];U(b)&&b.textStyle&&(v=new At(b.textStyle,l,l.ecModel))}var x=new dt({silent:Ci.isLabelSilent(t),style:Bt(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=Ci.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 le({shape:js(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 le({shape:js(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]),p=Math.max(n[0],n[1]),d=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 Mr({shape:{cx:e.cx,cy:e.cy,r0:v,r:p,startAngle:c,endAngle:-m*h,clockwise:d},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}))}}},Az=Tz,Mz=["axisLine","axisTickLabel","axisName"],Dz=["splitLine","splitArea","minorSplitLine"],Pz=function(r){O(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 it;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=Iz(s,e,h),p=new Ci(e,v);w(Mz,p.add,p),n.add(p.getGroup()),bu(a,n,e),w(Dz,function(d){e.get([d,"show"])&&!o.scale.isBlank()&&Lz[d](this.group,e,s,h,c,u,f)},this)}},t.type="radiusAxis",t}(ss),Lz={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 nr({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 nr({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 Mr({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 Iz(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 Rz=Pz;function PT(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function LT(r,t){return t.dim+r.model.componentIndex}function Ez(r,t,e){var i={},a=kz(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=LT(s,l),f=PT(n),h=a[u][f],c=h.offset,v=h.width,p=s.getOtherAxis(l),d=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(p.dim),S=o.mapDimension(l.dim),b=wi(o,_),x=l.dim!=="radius"||!n.get("roundCap",!0),T=p.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,R=void 0,E=void 0,W=void 0;if(p.dim==="radius"){var B=p.dataToCoord(D)-T,F=l.dataToCoord(M);Math.abs(B)<y&&(B=(B<0?-1:1)*y),I=L,R=L+B,E=F-c,W=E-v,b&&(i[f][M][P]=R)}else{var Y=p.dataToCoord(D,x)-T,tt=l.dataToCoord(M);Math.abs(Y)<m&&(Y=(Y<0?-1:1)*m),I=tt+c,R=I+v,E=L,W=L+Y,b&&(i[f][M][P]=W)}o.setItemLayout(C,{cx:d,cy:g,r0:I,r:R,startAngle:-E*Math.PI/180,endAngle:-W*Math.PI/180,clockwise:E>=W})}}})}function kz(r){var t={};w(r,function(i,a){var n=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=LT(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=PT(i);c[v]||h.autoWidthCount++,c[v]=c[v]||{width:0,maxWidth:0};var p=K(i.get("barWidth"),f),d=K(i.get("barMaxWidth"),f),g=i.get("barGap"),y=i.get("barCategoryGap");p&&!c[v].width&&(p=Math.min(h.remainedWidth,p),c[v].width=p,h.remainedWidth-=p),d&&(c[v].maxWidth=d),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(d,g){var y=d.maxWidth;y&&y<h&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var c=0,v;w(n,function(d,g){d.width||(d.width=h),v=d,c+=d.width*(1+l)}),v&&(c-=v.width*l);var p=-c/2;w(n,function(d,g){e[a][g]=e[a][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),e}var Oz={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Bz={splitNumber:5},Nz=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Pt);function zz(r){Wt(Yp),ss.registerAxisPointerClass("PolarAxisPointer",lz),r.registerCoordinateSystem("polar",bz),r.registerComponentModel(fz),r.registerComponentView(Nz),Go(r,"angle",hz,Oz),Go(r,"radius",vz,Bz),r.registerComponentView(Az),r.registerComponentView(Rz),r.registerLayout(vt(Ez,"bar"))}var Vz=function(r){O(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),V0(e,n)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),V0(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}(ft);function V0(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 SP(t,n)&&(i[n]="auto"),i[n]!=null&&i[n]!=="auto"});bi(r,t,{type:"box",ignoreSize:a})}var Fz=Vz,Gz=function(r){O(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 pt({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++){p(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)}p(s.getNextNDay(i.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(e,d,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?yP(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]},p=i.start.y;+i.end.y>+i.start.y&&(p=p+"-"+i.end.y);var d=o.get("formatter"),g={start:i.start.y,end:i.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new dt({z2:30,style:Bt(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=dv(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 p=f==="center",d=0;d<h[c].length-1;d++){var g=h[c][d].slice(),y=this._firstDayOfMonth[d];if(p){var m=this._firstDayPoints[d];g[v]=(m[v]+h[0][d+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 dt({z2:30,style:k(Bt(o,{text:x}),this._monthTextPositionControl(g,p,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=dv(f)||i);var v=i.get(["time","dayOfWeekShort"]);f=v||z(i.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(a.end.time,7-a.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];h=K(h,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(a.start.time,-(7+a.fweek)).time,h=-h);for(var g=0;g<7;g++){var y=l.getNextNDay(p,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+c)%7);var S=new dt({z2:30,style:k(Bt(s,{text:f[_]}),this._weekTextPositionControl(m,n,u,h,d))});o.add(S)}}},t.type="calendar",t}(Pt),Hz=Gz,wh=864e5,Wz=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=Ae(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=ve(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+wh))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=F0(e);return a===this?a.dataToPoint(i):null},r.prototype.convertFromPixel=function(t,e,i){var a=F0(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/wh)-Math.floor(e[0].time/wh)+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 F0(r){var t=r.calendarModel,e=r.seriesModel,i=t?t.coordinateSystem:e?e.coordinateSystem:null;return i}var $z=Wz;function Uz(r){r.registerComponentModel(Fz),r.registerComponentView(Hz),r.registerCoordinateSystem("calendar",$z)}function Yz(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 G0(r,t){var e;return w(t,function(i){r[i]!=null&&r[i]!=="auto"&&(e=!0)}),e}function Xz(r,t,e){var i=k({},e),a=r[t],n=e.$action||"merge";n==="merge"?a?(Q(a,i,!0),bi(a,i,{ignoreSize:!0}),lx(e,a),Qs(e,a),Qs(e,a,"shape"),Qs(e,a,"style"),Qs(e,a,"extra"),e.clipPath=a.clipPath):r[t]=i:n==="replace"?r[t]=i:n==="remove"&&a&&(r[t]=null)}var IT=["transition","enterFrom","leaveTo"],Zz=IT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Qs(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var i=e?IT:Zz,a=0;a<i.length;a++){var n=i[a];r[n]==null&&t[n]!=null&&(r[n]=t[n])}}function qz(r,t){if(!!r&&(r.hv=t.hv=[G0(t,["left","right"]),G0(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 Kz=function(r){O(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=q1(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];w(l,function(f,h){var c=f.newOption;!c||(u.push(c),Yz(f,c),Xz(o,h,c),qz(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}(ft),H0={path:null,compoundPath:null,group:it,image:ce,text:dt},ke=St(),jz=function(r){O(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=Qt(l.id,null),f=u!=null?a.get(u):null,h=Qt(l.parentId,null),c=h!=null?a.get(h):n,v=l.type,p=l.style;v==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&S5(p,v,!!g,!!d)){var y=x5(p,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=Jz(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,T=f;x?T=W0(u,c,l.type,a):(T&&(ke(T).isNew=!1),E5(T)),T&&(Sh(T,m,e,{isInit:x}),$0(T,l,o,s))}else if(b){ml(f,l,a,e);var C=W0(u,c,l.type,a);C&&(Sh(C,m,e,{isInit:!0}),$0(C,l,o,s))}else _==="remove"&&(yT(f,l),ml(f,l,a,e));var A=a.get(u);if(A&&d)if(S){var D=A.getTextContent();D?D.attr(d):A.setTextContent(new dt(d))}else b&&A.setTextContent(new dt(d));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?Zv(P):I}else b&&(x=!0,L=Zv(P));A.setClipPath(L),Sh(L,M,e,{isInit:x}),Yv(L,M.keyframeAnimation,e)}var R=ke(A);A.setTextConfig(g),R.option=l,Qz(A,e,l),Sn({el:A,componentModel:e,itemName:A.name,itemTooltipOption:l.tooltip}),Yv(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=Qt(h.id,null),v=c!=null?o.get(c):null;if(!(!v||!v.isGroup)){var p=v.parent,d=p===n,g=ke(v),y=ke(p);g.width=K(g.option.width,d?s:y.width)||0,g.height=K(g.option.height,d?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var h=a[f],c=Qt(h.id,null),v=c!=null?o.get(c):null;if(!!v){var p=v.parent,y=ke(p),m=p===n?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Qc(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&&(_a(b)||ot(b,C)>=0)?x[C]=A:v[C]=A}Dt(v,x,e,0)}else v.attr(_)}}},t.prototype._clear=function(){var e=this,i=this._elMap;i.each(function(a){ml(a,ke(a).option,i,e._lastGraphicModel)}),this._elMap=$()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Pt);function Zv(r){var t=G(H0,r)?H0[r]:Vc(r),e=new t({});return ke(e).type=r,e}function W0(r,t,e,i){var a=Zv(e);return t.add(a),i.set(r,a),ke(a).id=r,ke(a).isNew=!0,a}function ml(r,t,e,i){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(n){ml(n,t,e,i)}),b5(r,t,i),e.removeKey(ke(r).id))}function $0(r,t,e,i){r.isGroup||w([["cursor",Ur.prototype.cursor],["zlevel",i||0],["z",e||0],["z2",0]],function(a){var n=a[0];G(t,n)?r[n]=rt(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 Jz(r){return r=k({},r),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(sx),function(t){delete r[t]}),r}function Qz(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 tV(r){r.registerComponentModel(Kz),r.registerComponentView(jz),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 U0=["x","y","radius","angle","single"],eV=["cartesian2d","polar","singleAxis"];function rV(r){var t=r.get("coordinateSystem");return ot(eV,t)>=0}function pi(r){return r+"Axis"}function iV(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 p=e.get(c);p&&p[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return i}function RT(r){var t=r.ecModel,e={infoList:[],infoMap:$()};return r.eachTargetAxis(function(i,a){var n=t.getComponent(pi(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 Th=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}(),aV=function(r){O(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=Y0(e);this.settledOption=n,this.mergeDefaultAndTheme(e,a),this._doInit(n)},t.prototype.mergeOption=function(e){var i=Y0(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(U0,function(a){var n=this.getReferringComponents(pi(a),YM);if(!!n.specified){i=!0;var o=new Th;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 Th;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(p){h.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",zt).models[0]&&c.add(p.componentIndex)})}}}n&&w(U0,function(u){if(!!n){var f=a.findComponents({mainType:pi(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new Th;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(pi(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(pi(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}(ft);function Y0(r){var t={};return w(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var Uo=aV,nV=function(r){O(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}(Uo),oV=nV,sV=function(r){O(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}(Pt),Kp=sV,lV=function(r){O(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}(Kp),uV=lV,Ka=w,X0=Sr,fV=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(rV(e)){var i=pi(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;Ka(["start","end"],function(c,v){var p=t[c],d=t[c+"Value"];n[v]==="percent"?(p==null&&(p=o[v]),d=a.parse(wt(p,o,e))):(u=!0,d=d==null?e[v]:a.parse(d),p=wt(d,e,o)),l[v]=d==null||isNaN(d)?e[v]:d,s[v]=p==null||isNaN(p)?o[v]:p}),X0(l),X0(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(c,v,p,d,g){var y=g?"Span":"ValueSpan";Da(0,c,p,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=wt(c[m],p,d,!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=hV(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;Ka(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 p,d,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&&(p=!0),b&&(d=!0)}return g&&p&&d})}else Ka(f,function(v){if(n==="empty")l.setData(u=u.map(v,function(d){return s(d)?d:NaN}));else{var p={};p[v]=o,u.selectRange(p)}});Ka(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;Ka(["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=wt(i[0]+o,i,[0,100],!0):n!=null&&(o=wt(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=xc(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 hV(r,t,e){var i=[1/0,-1/0];Ka(e,function(o){dE(i,o.getData(),t)});var a=r.getAxisModel(),n=Yb(a.axis.scale,a,i).calculate();return[n.min,n.max]}var vV=fV,cV={getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(pi(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 vV(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]})}})}},pV=cV;function dV(r){r.registerAction("dataZoom",function(t,e){var i=iV(e,t);w(i,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Z0=!1;function jp(r){Z0||(Z0=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,pV),dV(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function gV(r){r.registerComponentModel(oV),r.registerComponentView(uV),jp(r)}var Qe=function(){function r(){}return r}(),ET={};function Xn(r,t){ET[r]=t}function kT(r){return ET[r]}var yV=function(r){O(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=kT(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}(ft),mV=yV;function _V(r,t,e){var i=t.getBoxLayoutParams(),a=t.get("padding"),n={width:e.getWidth(),height:e.getHeight()},o=ve(i,n,a);da(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Qc(r,i,n,a)}function OT(r,t){var e=Ma(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new pt({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 SV=function(r){O(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(p,d){h.push(d)}),new xp(this._featureNames||[],h).add(c).update(c).remove(vt(c,null)).execute(),this._featureNames=h;function c(p,d){var g=h[p],y=h[d],m=u[g],_=new At(m,e,e.ecModel),S;if(n&&n.newTitle!=null&&n.featureName===g&&(m.title=n.newTitle),g&&!y){if(xV(g))S={onclick:_.option.onclick,featureName:g};else{var b=kT(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 Qe;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 Qe&&S.render&&S.render(_,i,a,n)}function v(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof Qe&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,x;V(_)?(b={},b[g]=_):b=_,V(S)?(x={},x[g]=S):x=S;var T=p.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 dt({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(){p.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),P.hide()}),(p.get(["iconStatus",A])==="emphasis"?un:fn)(D),o.add(D),D.on("click",H(d.onclick,d,i,a,A)),T[A]=D})}_V(o,e,a),o.add(OT(o.getBoundingRect(),e)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!q(_)&&d){var S=_.style||(_.style={}),b=jo(d,dt.makeFont(S)),x=p.x+o.x,T=p.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 Qe&&o.updateView&&o.updateView(o.model,i,a,n)})},t.prototype.remove=function(e,i){w(this._features,function(a){a instanceof Qe&&a.remove&&a.remove(e,i)}),this.group.removeAll()},t.prototype.dispose=function(e,i){w(this._features,function(a){a instanceof Qe&&a.dispose&&a.dispose(e,i)})},t.type="toolbox",t}(Pt);function xV(r){return r.indexOf("my")===0}var bV=SV,wV=function(r){O(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=ht.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,p=o?decodeURIComponent(c[1]):c[1];v&&(p=window.atob(p));var d=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),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}(Qe),TV=wV,q0="__ec_magicType_stack__",CV=[["line","bar"],["stack"]],AV=function(r){O(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(!!K0[a]){var s={series:[]},l=function(h){var c=h.subType,v=h.id,p=K0[a](c,v,h,n);p&&(Z(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=d.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(CV,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}(Qe),K0={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")===q0;if(r==="line"||r==="bar")return i.setIconStatus("stack",a?"normal":"emphasis"),Q({id:t,stack:a?"":q0},i.get(["option","stack"])||{},!0)}};lr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var MV=AV,Yu=new Array(60).join("-"),gn=" ";function DV(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 PV(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 p=v.getRawData();l.push(v.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});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(`
- `+Yu+`
- `)}function LV(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(`
- `+Yu+`
- `)}function IV(r){var t=DV(r);return{value:Ct([PV(t.seriesGroupByCategoryAxis),LV(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
- `+Yu+`
- `),meta:t.meta}}function eu(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function RV(r){var t=r.slice(0,r.indexOf(`
- `));if(t.indexOf(gn)>=0)return!0}var qv=new RegExp("["+gn+"]+","g");function EV(r){for(var t=r.split(/\n+/g),e=eu(t.shift()).split(qv),i=[],a=z(e,function(l){return{name:l,data:[]}}),n=0;n<t.length;n++){var o=eu(t[n]).split(qv);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 kV(r){for(var t=r.split(/\n+/g),e=eu(t.shift()),i=[],a=0;a<t.length;a++){var n=eu(t[a]);if(!!n){var o=n.split(qv),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 OV(r,t){var e=r.split(new RegExp(`
- *`+Yu+`
- *`,"g")),i={series:[]};return w(e,function(a,n){if(RV(a)){var o=EV(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=kV(a);i.series.push(o)}}),i}var BV=function(r){O(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=IV(e);if(q(h)){var p=h(i.getOption());V(p)?u.innerHTML=p:sn(p)&&u.appendChild(p)}else{f.readOnly=n.get("readOnly");var d=f.style;d.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",d.color=n.get("textColor"),d.borderColor=n.get("textareaBorderColor"),d.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}Wh(_,"click",x),Wh(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=OV(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}(Qe);function NV(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})}lr({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(k({type:"scatter"},i));else{var n=a.get("data");e.push({name:i.name,data:NV(i.data,n)})}}),t.mergeOption(Z({series:e},r.newOption))});var zV=BV,BT=w,NT=St();function VV(r,t){var e=Jp(r);BT(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 FV(r){var t=Jp(r),e=t[t.length-1];t.length>1&&t.pop();var i={};return BT(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 GV(r){NT(r).snapshots=null}function HV(r){return Jp(r).length}function Jp(r){var t=NT(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var WV=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){GV(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}(Qe);lr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var $V=WV,UV=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],YV=function(){function r(t,e,i){var a=this;this._targetInfoList=[];var n=j0(e,t);w(XV,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=Ch[i.brushType](0,n,a);i.__rangeOffset={offset:e_[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=Ch[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=Ch[i.brushType](0,a.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?e_[i.brushType](n.values,o.offset,ZV(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:sT(a),isTargetByCursor:uT(a,t,i.coordSysModel),getLinearBrushOtherExtent:lT(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=j0(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<J0.length;l++)if(J0[l](a,o))return o}return!0},r}();function Kv(r){return r[0]>r[1]&&r.reverse(),r}function j0(r,t){return ho(r,t,{includeMainTypes:UV})}var XV={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:Q0.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:Q0.geo})})}},J0=[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}],Q0={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(yi(r)),t}},Ch={lineX:vt(t_,0),lineY:vt(t_,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=[Kv([a[0],n[0]]),Kv([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 t_(r,t,e,i){var a=e.getAxis(["x","y"][r]),n=Kv(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 e_={lineX:vt(r_,0),lineY:vt(r_,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 r_(r,t,e,i){return[t[0]-i[r]*e[0],t[1]-i[r]*e[1]]}function ZV(r,t){var e=i_(r),i=i_(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 i_(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var zT=YV,jv=w,qV=GM("toolbox-dataZoom_"),KV=function(r){O(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 oT(a.getZr()),this._brushController.on("brush",H(this._onBrush,this)).mount()),QV(e,i,this,n,a),JV(e,i)},t.prototype.onclick=function(e,i,a){jV[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 zT(Qp(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)}}),VV(n,a),this._dispatchZoomAction(a);function s(u,f,h){var c=f.getAxis(u),v=c.model,p=l(u,v,n),d=p.findRepresentativeAxisProxy(v).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=Da(0,h.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var p=v.getAxisModel(u,f.componentIndex);p&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var i=[];jv(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}(Qe),jV={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(FV(this.ecModel))}};function Qp(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 JV(r,t){r.setIconStatus("back",HV(t)>1?"emphasis":"normal")}function QV(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 zT(Qp(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)}MP("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=Qp(i),o=ho(r,n);jv(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),jv(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:qV+u+h};c[f]=h,a.push(c)}return a});var tF=KV;function eF(r){r.registerComponentModel(mV),r.registerComponentView(bV),Xn("saveAsImage",TV),Xn("magicType",MV),Xn("dataView",zV),Xn("dataZoom",tF),Xn("restore",$V),Wt(gV)}var rF=function(r){O(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}(ft),iF=rF;function VT(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function FT(r){if(!!ht.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var GT=FT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aF=FT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function HT(r,t){if(!r)return t;t=Kc(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function nF(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var oF=HT(aF,"transition"),td=HT(GT,"transform"),sF="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ht.transform3dSupported?"will-change:transform;":"");function lF(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function uF(r,t,e){if(!V(e)||e==="inside")return"";var i=r.get("backgroundColor"),a=r.get("borderWidth");t=xa(t);var n=lF(e),o=Math.max(Math.round(a)*1.5,6),s="",l=td+":",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 p=t+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function fF(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+=ht.transformSupported?","+td+i:",left"+i+",top"+i),oF+":"+a}function a_(r,t,e){var i=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ht.transformSupported)return e?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=ht.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return e?"top:0;left:0;"+td+":"+o+";":[["top",0],["left",0],[GT,o]]}function hF(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 vF(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=Fx(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),t&&a&&i.push(fF(a,e)),n&&i.push("background-color:"+n),w(["width","color","radius"],function(v){var p="border-"+v,d=Kc(p),g=r.get(d);g!=null&&i.push(p+":"+g+(v==="color"?"":"px"))}),i.push(hF(f)),h!=null&&i.push("padding:"+Ma(h).join("px ")+"px"),i.join(";")+";"}function n_(r,t,e,i,a){var n=t&&t.painter;if(e){var o=n&&n.getViewportRoot();o&&rA(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 cF=function(){function r(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ht.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;n_(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=nF(e,"position"),a=e.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative");var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,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=sF+vF(t,!this._firstShow,this._longHide)+a_(n[0],n[1],!0)+("border-color:"+xa(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"&&!VT(i)&&(s=uF(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++)sn(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(n_(i,this._zr,this._appendToBody,t,e),i[0]!=null&&i[1]!=null){var a=this.el.style,n=a_(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",ht.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)&&!this._alwaysShowContent&&(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}(),pF=cF,dF=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),s_(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},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)&&se(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new dt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Fx(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=o_(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;s_(a,this._zr,t,e),t=a[0],e=a[1];var n=i.style,o=li(n.borderWidth||0),s=o_(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)&&!this._alwaysShowContent&&(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 li(r){return Math.max(0,r)}function o_(r){var t=li(r.shadowBlur||0),e=li(r.shadowOffsetX||0),i=li(r.shadowOffsetY||0);return{left:li(t-e),right:li(t+e),top:li(t-i),bottom:li(t+i)}}function s_(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var gF=dF,yF=new pt({shape:{x:-1,y:-1,width:2,height:2}}),mF=function(r){O(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(!(ht.node||!i.getDom())){var a=e.getComponent("tooltip"),n=this._renderMode=ZM(a.get("renderMode"));this._tooltipContent=n==="richText"?new gF(i):new pF(i.getDom(),i,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(e,i,a){if(!(ht.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=a;var n=this._tooltipContent;n.update(e),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?is(this,"_updatePosition",50,"fixRate"):No(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");AT("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||ht.node||!a.getDom())){var o=l_(n,a);this._ticket="";var s=n.dataByCoordSys,l=bF(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=yF;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=MT(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._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(l_(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;ua(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=Ar("section",{blocks:[],noHeader:!0}),h=[],c=new Hf;w(e,function(m){w(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=wT(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=Ar("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=Mp(S.axis,{value:b}),M.axisValueLabel=x,M.marker=c.makeTooltipMarker("item",xa(M.color),l);var P=Jg(A.formatTooltip(D,!0,null)),L=P.frag;if(L){var I=Zn([A],n).get("valueFormatter");T.blocks.push(I?k({valueFormatter:I},L):L)}P.text&&h.push(P.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,p=s.get("order"),d=iy(f,c,l,p,a.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);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,p=e.positionDefault,d=Zn([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Hf;y.marker=m.makeTooltipMarker("item",xa(y.color),v);var _=Jg(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,T=x?iy(b?k({valueFormatter:b},x):x,m,v,S,n.get("useUTC"),d.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,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"),p=Math.random()+"",d=new Hf;this._showOrMove(c,function(){var g=X(c.get("formatterParams")||{});this._showTooltipContent(c,v,g,p,e.offsetX,e.offsetY,e.position,i,d)}),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,p=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor")),d=p.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=rs(y.axisValue,v,g)),v=jc(v,a,!0)}else if(q(c)){var _=H(function(S,b){S===this._ticket&&(h.setContent(b,f,e,d,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,d,l),h.show(e,d),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"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),q(i)&&(i=i([a,n],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),N(i))a=K(i[0],u),n=K(i[1],f);else if(U(i)){var d=i;d.width=h[0],d.height=h[1];var g=ve(d,{width:u,height:f});a=g.x,n=g.y,c=null,v=null}else if(V(i)&&l){var y=xF(i,p,h,e.get("borderWidth"));a=y[0],n=y[1]}else{var y=_F(a,n,o,u,f,c?null:20,v?null:20);a=y[0],n=y[1]}if(c&&(a-=u_(c)?h[0]/2:c==="right"?h[0]:0),v&&(n-=u_(v)?h[1]/2:v==="bottom"?h[1]:0),VT(e)){var y=SF(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 p=h[v]||{},d=c.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&c.value===p.value&&c.axisType===p.axisType&&c.axisId===p.axisId&&d.length===g.length,o&&w(d,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){ht.node||!i.getDom()||(No(this,"_updatePosition"),this._tooltipContent.dispose(),Xv("itemTooltip",i))},t.type="tooltip",t}(Pt);function Zn(r,t,e){var i=t.ecModel,a;e?(a=new At(e,i,i),a=new At(t.option,a,i)):a=t;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof At&&(o=o.get("tooltip",!0)),V(o)&&(o={formatter:o}),o&&(a=new At(o,a,i)))}return a}function l_(r,t){return r.dispatchAction||H(t.dispatchAction,t)}function _F(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 SF(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 xF(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 u_(r){return r==="center"||r==="middle"}function bF(r,t,e){var i=Ac(r).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=Jo(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 wF=mF;function TF(r){Wt(Yp),r.registerComponentModel(iF),r.registerComponentView(wF),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Gt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Gt)}var f_=w;function h_(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function v_(r,t,e){var i={};return f_(t,function(n){var o=i[n]=a();f_(r[n],function(s,l){if(!!fe.isValidType(l)){var u={type:l,visual:s};e&&e(u,n),o[l]=new fe(u),l==="opacity"&&(u=X(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new fe(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function CF(r,t,e){var i;w(e,function(a){t.hasOwnProperty(a)&&h_(t[a])&&(i=!0)}),i&&w(e,function(a){t.hasOwnProperty(a)&&h_(t[a])?r[a]=X(t[a]):delete r[a]})}function aH(r,t,e,i,a,n){var o={};w(r,function(h){var c=fe.prepareVisualTypes(t[h]);o[h]=c});var s;function l(h){return up(e,s,h)}function u(h,c){Kx(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 p=i.call(a,h),d=t[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(h,l,u)}}}function AF(r,t,e,i){var a={};return w(r,function(n){var o=fe.prepareVisualTypes(t[n]);a[n]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(b){return up(s,h,b)}function f(b,x){Kx(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 p=i!=null?c.get(l,h):h,d=e(p),g=t[d],y=a[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}var MF=function(r){O(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}(ft),DF=function(r){O(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=rt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new dt({style:Bt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new dt({style:Bt(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),d=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!p&&!g,v.silent=!d&&!g,p&&f.on("click",function(){Eg(p,"_"+e.get("target"))}),d&&v.on("click",function(){Eg(d,"_"+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 _=ve(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 pt({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}(Pt);function PF(r){r.registerComponentModel(MF),r.registerComponentView(DF)}var LF=function(r){O(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=Qt(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 zu([{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}(ft),c_=LF,WT=function(r){O(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=Mi(c_.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}(c_);Xt(WT,Px.prototype);var IF=WT,RF=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Pt),EF=RF,kF=function(r){O(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}(ur),OF=kF,Ah=Math.PI,p_=St(),BF=function(r){O(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 Ar("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=zF(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:Ah/2},h=n==="vertical"?o.height:o.width,c=e.getModel("controlStyle"),v=c.get("show",!0),p=v?c.get("itemSize"):0,d=v?c.get("itemGap"):0,g=p+d,y=e.get(["label","rotate"])||0;y=y*Ah/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-p,0],D-=g)):(x&&(m=[D-p,0],D-=g),T&&(_=[0,0],A+=g),C&&(S=[D-p,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:p,controlGap:d}},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;Wr(s,s,[-l,-u]),Ai(s,s,-Ah/2),Wr(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],p=[n.x,n.y];p[0]=v[0]=f[0][0];var d=e.labelPosOpt;if(d==null||V(d)){var g=d==="+"?0:1;_(v,h,f,1,g),_(p,c,f,1,1-g)}else{var g=d>=0?0:1;_(v,h,f,1,g),p[1]=v[1]+d}a.setPosition(v),n.setPosition(p),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=NF(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 OF("value",o,e.axisExtent,n);return l.model=i,l},t.prototype._createGroup=function(e){var i=this[e]=new it;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 le({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:k({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new le({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"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:H(o._changeTimeline,o,u.value)},g=d_(h,c,i,d);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),gi(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"),p=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),g=a.dataToCoord(f.tickValue),y=new dt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:H(o._changeTimeline,o,h),silent:!1,style:Bt(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Bt(p),y.ensureState("progress").style=Bt(d),i.add(y),gi(y),p_(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,p,d,g){if(!!v){var y=ar(rt(n.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=VF(n,p+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,i.add(_),gi(_)}}},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),g_(h,u._progressLine,s,a,n,!0)},onUpdate:function(h){g_(h,u._progressLine,s,a,n)}};this._currentPointer=d_(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=Sr(n.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(i||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},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 ir(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",p_(a[n]).dataIndex<=e)},t.type="timeline.slider",t}(EF);function NF(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new wp({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new $b({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Ti}}function zF(r,t){return ve(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function VF(r,t,e,i){var a=i.style,n=_n(r.get(["controlStyle",t]),i||{},new st(e[0],e[1],e[2],e[3]));return a&&n.setStyle(a),n}function d_(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=Yt(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=fp(r.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var f=Ou(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 g_(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 FF=BF;function GF(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 HF(r){var t=r&&r.timeline;N(t)||(t=t?[t]:[]),w(t,function(e){!e||WF(e)})}function WF(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),y_(r),ia(r,"controlPosition")){var i=r.controlStyle||(r.controlStyle={});ia(i,"position")||(i.position=r.controlPosition),i.position==="none"&&!ia(i,"show")&&(i.show=!1,delete i.position),delete r.controlPosition}w(r.data||[],function(a){U(a)&&!N(a)&&(!ia(a,"value")&&ia(a,"name")&&(a.value=a.name),y_(a))})}function y_(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]&&!ia(a,s)&&(a[s]=o)}),e.label&&!ia(i,"emphasis")&&(i.emphasis=e.label,delete e.label)}function ia(r,t){return r.hasOwnProperty(t)}function $F(r){r.registerComponentModel(IF),r.registerComponentView(FF),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),GF(r),r.registerPreprocessor(HF)}var UF=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"])}},YF=function(r){O(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,UF(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(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(l)||(a=a.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&Cc(l)&&i.push(l.name)}),this._availableNames=a;var n=this.get("data")||i,o=$(),s=z(n,function(l){return(V(l)||yt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new At(l,this,this.ecModel))},this);this._data=Ct(s,function(l){return!!l})},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}(ft),Jv=YF,Ya=vt,Qv=w,tl=it,XF=function(r){O(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 tl),this.group.add(this._selectorGroup=new tl),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=ve(f,h,c),p=this.layoutInner(e,o,v,n,l,u),d=ve(Z({width:p.width,height:p.height},f),h,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=OT(p,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,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===`
- `)){var g=new tl;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,v,i,e,_,b,S,h,n);x.on("click",Ya(m_,d,null,n,c)).on("mouseover",Ya(tc,y.name,null,n,c)).on("mouseout",Ya(ec,y.name,null,n,c)),f.set(d,!0)}else a.eachRawSeries(function(T){if(!f.get(d)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(d))return;var A=C.indexOfName(d),D=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),P=ue(D.fill);P&&P[3]===0&&(P[3]=.2,D=k(k({},D),{fill:rr(P,"rgba")}));var L=this._createItem(T,d,p,v,i,e,{},D,M,h,n);L.on("click",Ya(m_,null,d,n,c)).on("mouseover",Ya(tc,null,d,n,c)).on("mouseout",Ya(ec,null,d,n,c)),f.set(d,!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 dt({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"]);qr(h,{normal:c,emphasis:v},{defaultText:u.title}),gi(h)})},t.prototype._createItem=function(e,i,a,n,o,s,l,u,f,h,c){var v=e.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(i),y=n.get("symbolRotate"),m=n.get("symbolKeepAspect"),_=n.get("icon");f=_||f||"roundRect";var S=ZF(f,n,l,u,v,g,c),b=new tl,x=n.getModel("textStyle");if(q(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:p,itemHeight:d,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(qF({itemWidth:p,itemHeight:d,icon:f,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?p+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=g?x.getTextColor():n.get("inactiveColor");b.add(new dt({style:Bt(x,{text:M,x:C,y:d/2,fill:P,align:A,verticalAlign:"middle"},{inheritColor:P})}));var L=new pt({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(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(b),gi(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(e,i,a,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();da(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){da("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],p=e.get("selectorButtonGap",!0),d=e.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?v[d]+=f[g]+p:h[d]+=c[g]+p,v[1-d]+=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]+p+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-d]),_}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}(Pt);function ZF(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:Hl(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 p=t.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?i.lineWidth>0&&d?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 qF(r){var t=r.icon||"roundRect",e=Yt(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 m_(r,t,e,i){ec(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),tc(r,t,e,i)}function $T(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 tc(r,t,e,i){$T(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function ec(r,t,e,i){$T(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}var UT=XF;function KF(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 jF(r){r.registerAction("legendToggleSelect","legendselectchanged",vt(qn,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",vt(qn,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",vt(qn,"inverseSelect")),r.registerAction("legendSelect","legendselected",vt(qn,"select")),r.registerAction("legendUnSelect","legendunselected",vt(qn,"unSelect"))}function YT(r){r.registerComponentModel(Jv),r.registerComponentView(UT),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,KF),r.registerSubTypeDefaulter("legend",function(){return"plain"}),jF(r)}var JF=function(r){O(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),__(this,e,n)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),__(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Mi(Jv.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}(Jv);function __(r,t,e){var i=r.getOrient(),a=[1,1];a[i.index]=0,bi(t,e,{type:"box",ignoreSize:!!a})}var QF=JF,S_=it,Mh=["width","height"],Dh=["x","y"],t3=function(r){O(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 S_),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new S_)},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];p("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new dt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"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=d,f.add(m)}},t.prototype.layoutInner=function(e,i,a,n,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Mh[u],h=Dh[u],c=Mh[1-u],v=Dh[1-u];o&&da("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=X(a);o&&(y[f]=a[f]-d[f]-p);var m=this._layoutContentAndController(e,n,y,u,f,c,v,h);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[v]+m[c]/2-d[c]/2,m[c]=Math.max(m[c],d[c]),m[v]=Math.min(m[v],d[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;da(e.get("orient"),f,e.get("itemGap"),n?a.width:null,n?null:a.height),da("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=v[o]>a[o],g=[-v.x,-v.y];i||(g[n]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=rt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var S=e.get("pageButtonPosition",!0);S==="end"?m[n]+=a[o]-p[o]:y[n]+=p[o]+_}m[1-n]+=v[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=d?a[o]:v[o],b[s]=Math.max(v[s],p[s]),b[l]=Math.min(0,p[l]+m[1-n]),h.__rectSize=a[o],d){var x={x:0,y:0};x[o]=Math.max(a[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new pt({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&&Dt(f,{x:T.contentPosition[0],y:T.contentPosition[1]},d?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=Mh[o],l=Dh[o],u=this._findTargetItemIndex(i),f=a.children(),h=f[u],c=f.length,v=c?1:0,p={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+n||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;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}(UT),e3=t3;function r3(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 i3(r){Wt(YT),r.registerComponentModel(QF),r.registerComponentView(e3),r3(r)}function a3(r){Wt(YT),Wt(i3)}var n3=function(r){O(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=Mi(Uo.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Uo),o3=n3,ed=St();function s3(r,t,e){ed(r).coordSysRecordMap.each(function(i){var a=i.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function l3(r,t){for(var e=ed(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||XT(e,o))}}}function XT(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function u3(r,t){var e={model:t,containsPoint:vt(h3,t),dispatchAction:vt(f3,r),dataZoomInfoMap:null,controller:null},i=e.controller=new kw(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 f3(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function h3(r,t,e,i){return r.coordinateSystem.containPoint([e,i])}function v3(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 c3(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=ed(e),a=i.coordSysRecordMap||(i.coordSysRecordMap=$());a.each(function(n){n.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=RT(n);w(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,u3(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){XT(a,n);return}var f=v3(l);o.enable(f.controlType,f.opt),o.setPointerChecker(n.containsPoint),is(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var p3=function(r){O(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(),s3(a,e,{pan:H(Ph.pan,this),zoom:H(Ph.zoom,this),scrollMove:H(Ph.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){l3(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Kp),Ph={zoom:function(r,t,e,i){var a=this.range,n=a.slice(),o=r.axisModels[0];if(!!o){var s=Lh[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(Da(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,a[0]!==n[0]||a[1]!==n[1])return n}},pan:x_(function(r,t,e,i,a,n){var o=Lh[i]([n.oldX,n.oldY],[n.newX,n.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:x_(function(r,t,e,i,a,n){var o=Lh[i]([0,0],[n.scrollDelta,n.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*n.scrollDelta})};function x_(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(Da(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var Lh={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}},d3=p3;function g3(r){jp(r),r.registerComponentModel(o3),r.registerComponentView(d3),c3(r)}var y3=function(r){O(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=Mi(Uo.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}(Uo),m3=y3,Kn=pt,b_=7,_3=1,Ih=30,S3=7,jn="horizontal",w_="vertical",x3=5,b3=["line","bar","candlestick","scatter"],w3={easing:"cubicOut",duration:100,delay:0},T3=function(r){O(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),is(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(){No(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 it;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?S3: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-Ih-b_-n,width:o.width,height:Ih}:{right:b_,top:o.y,width:Ih,height:o.height},u=bn(e.option);w(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=ve(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===w_&&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===w_&&!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(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==a[0]||i[1]!==a[1]){var h=o.getDataExtent(l),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var v=[0,i[1]],p=[0,i[0]],d=[[i[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/i[0]),S;o.each([l],function(A,D){if(_>0&&D%_){m+=y;return}var M=A==null||isNaN(A)||A==="",P=M?0:wt(A,h,v,!0);M&&!S&&D?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,P]),g.push([m,P]),m+=y,S=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var b=this.dataZoomModel;function x(A){var D=b.getModel(A?"selectedDataBackground":"dataBackground"),M=new it,P=new Dr({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new He({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(P),M.add(L),M}for(var T=0;T<3;T++){var C=x(T===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},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(b3,u.get("type"))<0)){var f=n.getComponent(pi(o),s).axis,h=C3(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:_3,fill:"rgba(0,0,0,0)"}})),w([0,1],function(_){var S=l.get("handleIcon");!Vl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=Yt(S,-1,0,2,2,null,!0);b.attr({cursor:T_(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(),gi(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 dt({silent:!0,invisible:!0,style:Bt(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 p=K(l.get("moveHandleSize"),s[1]),d=i.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=i.moveHandleIcon=Yt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));v=i.moveZone=new pt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),v.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:T_(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=[wt(e[0],[0,100],i,!0),wt(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];Da(i,n,o,a.get("zoomLock")?"all":e,s.minSpan!=null?wt(s.minSpan,l,o,!0):null,s.maxSpan!=null?wt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Sr([wt(n[0],o,l,!0),wt(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=Sr(a.slice()),o=this._size;w([0,1],function(v){var p=i.handles[v],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:a[v]+(v?-1:1),y:o[1]/2-d/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 pt,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=Sr(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(p){var d=yi(a.handles[p].parent,this.group),g=xu(p===0?"right":"left",d),y=this._handleWidth/2+x3,m=ir([c[p]+(p===0?-y:y),this._size[1]/2],d);n[p].setStyle({x:m[0],y:m[1],verticalAlign:o===jn?"middle":g,align:o===jn?g:"center",text:s[p]})}},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,Hr(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ir([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=Sr([wt(a.x,o,s,!0),wt(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&&(Hr(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?w3:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=RT(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}(Kp);function C3(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function T_(r){return r==="vertical"?"ns-resize":"ew-resize"}var A3=T3;function M3(r){r.registerComponentModel(m3),r.registerComponentView(A3),jp(r)}function D3(r){Wt(g3),Wt(M3)}var P3={get:function(r,t,e){var i=X((L3[r]||{})[t]);return e&&N(i)?i[i.length-1]:i}},L3={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]}},ZT=P3,C_=fe.mapVisual,I3=fe.eachVisual,R3=N,A_=w,E3=Sr,k3=wt,O3=function(r){O(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&&CF(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=v_(this.option.controller,i,e),this.targetVisuals=v_(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=Mt(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=E3([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){R3(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 p=h[c],d=h[v];p&&!d&&(d=h[v]={},A_(p,function(g,y){if(!!fe.isValidType(y)){var m=ZT.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var c=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,v=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";A_(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=c&&X(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&X(v)||(s?m[0]:[m[0],m[0]])),_.symbol=C_(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;I3(S,function(x){x>b&&(b=x)}),_.symbolSize=C_(S,function(x){return k3(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}(ft),ru=O3,M_=[20,140],B3=function(r){O(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]=M_[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=M_[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=Sr((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=D_(this,"outOfRange",this.getExtent()),a=D_(this,"inRange",this.option.range.slice()),n=[];function o(v,p){n.push({value:v,color:e(v,p)})}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=Mi(ru.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}(ru);function D_(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 N3=B3,z3=function(r){O(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=Ma(i.get("padding")||0),n=e.getBoundingRect();e.add(new pt({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,p){s[v]=p}var h=o.controllerVisuals[n||o.getValueState(e)],c=fe.prepareVisualTypes(h);return w(c,function(v){var p=h[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",p=h.__alphaForOpacity),fe.dependsOn(v,i)&&p&&p.applyVisual(e,u,f)}),s[i]},t.prototype.positionGroup=function(e){var i=this.visualMapModel,a=this.api;Qc(e,i.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(e,i,a,n){},t.type="visualMap",t}(Pt),qT=z3,P_=[["left","right","width"],["top","bottom","height"]];function KT(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=P_[o],l=[0,null,10],u={},f=0;f<3;f++)u[P_[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=ve(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 _l(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=wt,V3=w,L_=Math.min,Rh=Math.max,F3=12,G3=6,H3=function(r){O(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 dt({style:Bt(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=KT(i,this.api,n),u=a.mainGroup=this._createBarGroup(l),f=new it;u.add(f),f.add(a.outOfRange=I_()),f.add(a.inRange=I_(null,s?E_(this._orient):null,H(this._dragHandle,this,"all",!1),H(this._dragHandle,this,"all",!0))),f.setClipPath(new pt({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var h=i.textStyleModel.getTextRect("\u56FD"),c=Rh(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=ar(e.get("handleSize"),n[0]),h=Yt(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=E_(this._orient);h.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Hr(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(),kc(h,!0),i.add(h);var v=this.visualMapModel.textStyleModel,p=new dt({cursor:c,draggable:!0,drift:l,onmousemove:function(y){Hr(y.event)},ondragend:u,style:Bt(v,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[a]=h,g.handleLabelPoints[a]=d,g.handleLabels[a]=p},t.prototype._createIndicator=function(e,i,a,n,o){var s=ar(e.get("indicatorSize"),a[0]),l=Yt(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 ce){var f=l.style;l.useStyle(k({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 dt({silent:!0,invisible:!0,style:Bt(h,{x:0,y:0,text:""})});this.group.add(c);var v=[(o==="horizontal"?n/2:G3)+a[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=c,p.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():R_(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]];Da(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 ts(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 it(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();V3([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 p=ir(a.handleLabelPoints[f],yi(h,this.group));s[f].setStyle({x:p[0],y:p[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),p=this.getControllerVisual(e,"symbolSize"),d=dr(e,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=ir(f.indicatorLabelPoint,yi(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:d,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]=L_(Rh(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=L_(Rh(o[0],e),o[1]);var l=W3(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||R_(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(h));var p=$M(c,v);this._dispatchHighDown("downplay",_l(p[0],a)),this._dispatchHighDown("highlight",_l(p[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var i;if(ua(e.target,function(l){var u=nt(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var a=this.ecModel.getSeriesByIndex(i.seriesIndex),n=this.visualMapModel;if(!!n.isTargetSeries(a)){var o=a.getData(i.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},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",_l(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=yi(i,n?null:this.group);return N(e)?ir(e,o,a):xu(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}(qT);function I_(r,t,e,i){return new Dr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(a){Hr(a.event)},ondragend:i})}function W3(r,t,e){var i=F3/2,a=r.get("hoverLinkDataSize");return a&&(i=dr(a,t,e,!0)/2),i}function R_(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function E_(r){return r==="vertical"?"ns-resize":"ew-resize"}var $3=H3,U3={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Y3=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},X3=[{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(AF(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(Z3,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(e);o>=0&&(n.dimension=o,i.push(n))}}),r.getData().setVisual("visualMeta",i)}}];function Z3(r,t,e,i){for(var a=t.targetVisuals[i],n=fe.prepareVisualTypes(a),o={color:qx(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,p){o[v]=p}}var k_=w;function q3(r){var t=r&&r.visualMap;N(t)||(t=t?[t]:[]),k_(t,function(e){if(!!e){Xa(e,"splitList")&&!Xa(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var i=e.pieces;i&&N(i)&&k_(i,function(a){U(a)&&(Xa(a,"start")&&!Xa(a,"min")&&(a.min=a.start),Xa(a,"end")&&!Xa(a,"max")&&(a.max=a.end))})}})}function Xa(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var O_=!1;function jT(r){O_||(O_=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(U3,Y3),w(X3,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(q3))}function K3(r){r.registerComponentModel(N3),r.registerComponentView($3),jT(r)}var j3=function(r){O(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=[],J3[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=fe.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]=ZT.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=fe.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=fe.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=Mi(ru.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}(ru),J3={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]}),iv(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),B_(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=fe.retrieveVisuals(e),r.push(a)},this),B_(t,r),iv(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 B_(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Q3=j3,tG=function(r){O(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=Gr(i.get("showLabel",!0),!h);h&&this._renderEndsText(e,h[0],u,c,l),w(f.viewPieceList,function(v){var p=v.piece,d=new it;d.onclick=H(this._onItemClick,this,p),this._enableHoverLink(d,v.indexInModelPieceList);var g=i.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),c){var y=this.visualMapModel.getValueState(g);d.add(new dt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(d)},this),h&&this._renderEndsText(e,h[1],u,c,l),da(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:_l(s.findTargetDataIndices(i),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,i=e.option;if(i.orient==="vertical")return KT(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 it,l=this.visualMapModel.textStyleModel;s.add(new dt({style:Bt(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(Yt(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}(qT),eG=tG;function rG(r){r.registerComponentModel(Q3),r.registerComponentView(eG),jT(r)}function iG(r){Wt(K3),Wt(rG)}var aG={label:{enabled:!0},decal:{show:!1}},N_=St(),nG={};function oG(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var i=X(aG);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)),N_(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=Og(c.ecModel,c.name,nG,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var p=c.getRawData(),d={},g=N_(c).scope;v.each(function(b){var x=v.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],T=p.getName(b)||b+"",C=Og(c.ecModel,T,g,y),A=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(A,C))})}function S(b,x){var T=b?k(k({},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,p=f.get(["series","maxCount"])||10,d=Math.min(c,p),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<d){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 R=f.get(["data","separator","middle"]),E=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(R)}))}D+=W.join(R)+E,_.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 sG(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 lG(r){r.registerPreprocessor(sG),r.registerVisual(r.PRIORITY.VISUAL.ARIA,oG)}var Eh=Math.sin,kh=Math.cos,JT=Math.PI,ji=Math.PI*2,uG=180/JT,fG=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=hi(h-ji)||(f?u>=ji:-u>=ji),v=u>0?u%ji:u%ji+ji,p=!1;c?p=!0:hi(h)?p=!1:p=v>=JT==!!f;var d=t+i*kh(o),g=e+a*Eh(o);this._start&&this._add("M",d,g);var y=Math.round(n*uG);if(c){var m=1/this._p,_=(f?1:-1)*(ji-m);this._add("A",i,a,y,1,+f,t+i*kh(o+_),e+a*Eh(o+_)),m>.01&&this._add("A",i,a,y,0,+f,d,g)}else{var S=t+i*kh(s),b=e+a*Eh(s);this._add("A",i,a,y,+p,+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}(),QT=fG,xo="none",hG=Math.round;function vG(r){var t=r.fill;return t!=null&&t!==xo}function cG(r){var t=r.stroke;return t!=null&&t!==xo}var rc=["lineCap","miterLimit","lineJoin"],pG=z(rc,function(r){return"stroke-"+r.toLowerCase()});function dG(r,t,e,i){var a=t.opacity==null?1:t.opacity;if(e instanceof ce){r("opacity",a);return}if(vG(t)){var n=Ao(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",xo);if(cG(t)){var s=Ao(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=hp(e),v=c[0],p=c[1];v&&(p=hG(p||0),r("stroke-dasharray",v.join(",")),(p||i)&&r("stroke-dashoffset",p))}else i&&r("stroke-dasharray",xo);for(var d=0;d<rc.length;d++){var g=rc[d];if(i||t[g]!==Ll[g]){var y=t[g]||Ll[g];y&&r(pG[d],y)}}}else i&&r("stroke",xo)}var tC="http://www.w3.org/2000/svg",eC="http://www.w3.org/1999/xlink",gG="http://www.w3.org/2000/xmlns/",yG="http://www.w3.org/XML/1998/namespace";function rC(r){return document.createElementNS(tC,r)}function Vt(r,t,e,i,a){return{tag:r,attrs:e||{},children:i,text:a,key:t}}function mG(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 _G(r){return"</"+r+">"}function rd(r,t){t=t||{};var e=t.newline?`
- `:"";function i(a){var n=a.children,o=a.tag,s=a.attrs,l=a.text;return mG(o,s)+(o!=="style"?oe(l):l||"")+(n?""+e+z(n,function(u){return i(u)}).join(e)+e:"")+_G(o)}return i(r)}function SG(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 ic(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function z_(r,t,e,i){return Vt("svg","root",{width:r,height:t,xmlns:tC,"xmlns:xlink":eC,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+t:!1},e)}var V_={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"},ea="transform-origin";function xG(r,t,e){var i=k({},r.shape);k(i,t),r.buildPath(e,i);var a=new QT;return a.reset(I1(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function bG(r,t){var e=t.originX,i=t.originY;(e||i)&&(r[ea]=e+"px "+i+"px")}var wG={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function iC(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function TG(r,t,e){var i=r.shape.paths,a={},n,o;if(w(i,function(l){var u=ic(e.zrId);u.animation=!0,Xu(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,c=at(f),v=c.length;if(!!v){o=c[v-1];var p=f[o];for(var d in p){var g=p[d];a[d]=a[d]||{d:""},a[d].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=iC(a,e);return n.replace(o,s)}}function F_(r){return V(r)?V_[r]?"cubic-bezier("+V_[r]+")":gc(r)?r:"":""}function Xu(r,t,e,i){var a=r.animators,n=a.length,o=[];if(r instanceof _u){var s=TG(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=F_(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 p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,b={},x={},T={},C="animation-timing-function";function A(Ft,Lt,Tt){for(var j=Ft.getTracks(),ut=Ft.getMaxTime(),pe=0;pe<j.length;pe++){var It=j[pe];if(It.needsAnimate()){var Ue=It.keyframes,de=It.propName;if(Tt&&(de=Tt(de)),de)for(var Lr=0;Lr<Ue.length;Lr++){var Pa=Ue[Lr],Ye=Math.round(Pa.time/ut*100)+"%",ls=F_(Pa.easing),Jr=Pa.rawValue;(V(Jr)||yt(Jr))&&(Lt[Ye]=Lt[Ye]||{},Lt[Ye][de]=Pa.rawValue,ls&&(Lt[Ye][C]=ls))}}}}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={};B1(I,r),k(I,b[L]);var R=R1(I),E=b[L][C];T[L]=R?{transform:R}:{},bG(T[L],I),E&&(T[L][C]=E)}var W,B=!0;for(var L in x){T[L]=T[L]||{};var F=!W,E=x[L][C];F&&(W=new Yr);var Y=W.len();W.reset(),T[L].d=xG(r,x[L],W);var tt=W.len();if(!F&&Y!==tt){B=!1;break}E&&(T[L][C]=E)}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 wG[j]})}for(var J=at(T),lt=!0,ct,D=1;D<J.length;D++){var kt=J[D-1],xt=J[D];if(T[kt][ea]!==T[xt][ea]){lt=!1;break}ct=T[kt][ea]}if(lt&&ct){for(var L in T)T[L][ea]&&delete T[L][ea];t[ea]=ct}if(Ct(J,function(Ft){return at(T[Ft]).length>0}).length){var Zt=iC(T,e);return Zt+" "+m[0]+" both"}}for(var g in l){var s=d(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 Yo=Math.round;function aC(r){return r&&V(r.src)}function nC(r){return r&&q(r.toDataURL)}function id(r,t,e,i){dG(function(a,n){var o=a==="fill"||a==="stroke";o&&L1(n)?sC(t,r,a,i):o&&mc(n)?lC(e,r,a,i):r[a]=n},t,e,!1),IG(e,r,i)}function G_(r){return hi(r[0]-1)&&hi(r[1])&&hi(r[2])&&hi(r[3]-1)}function CG(r){return hi(r[4])&&hi(r[5])}function ad(r,t,e){if(t&&!(CG(t)&&G_(t))){var i=e?10:1e4;r.transform=G_(t)?"translate("+Yo(t[4]*i)/i+" "+Yo(t[5]*i)/i+")":WA(t)}}function H_(r,t,e){for(var i=r.points,a=[],n=0;n<i.length;n++)a.push(Yo(i[n][0]*e)/e),a.push(Yo(i[n][1]*e)/e);t.points=a.join(" ")}function W_(r){return!r.smooth}function AG(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]]=Yo(s*a)/a)}}}var MG={circle:[AG(["cx","cy","r"])],polyline:[H_,W_],polygon:[H_,W_]};function DG(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function oC(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&&I1(r)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](i))&&!(o&&DG(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](i,n,f)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;h&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var v=c.getVersion(),p=r,d=p.__svgPathBuilder;(p.__svgPathVersion!==v||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new QT),d.reset(u),c.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=v,p.__svgPathStrokePercent=l),n.d=d.getStr()}return ad(n,r.transform),id(n,e,r,t),t.animation&&Xu(r,n,t),Vt(s,r.id+"",n)}function PG(r,t){var e=r.style,i=e.image;if(i&&!V(i)&&(aC(i)?i=i.src:nC(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),ad(l,r.transform),id(l,e,r,t),t.animation&&Xu(r,l,t),Vt("image",r.id+"",l)}}function LG(r,t){var e=r.style,i=e.text;if(i!=null&&(i+=""),!(!i||isNaN(e.x)||isNaN(e.y))){var a=e.font||_i,n=e.x||0,o=UA(e.y||0,uu(a),e.textBaseline),s=$A[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(cS(e)){var u="",f=e.fontStyle,h=vS(e.fontSize);if(!parseFloat(h))return;var c=e.fontFamily||K_,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),ad(l,r.transform),id(l,e,r,t),t.animation&&Xu(r,l,t),Vt("text",r.id+"",l,void 0,i)}}function $_(r,t){if(r instanceof gt)return oC(r,t);if(r instanceof ce)return PG(r,t);if(r instanceof Po)return LG(r,t)}function IG(r,t,e){var i=r.style;if(YA(i)){var a=XA(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=Ao(i.shadowColor),p=v.opacity,d=v.color,g=c/2/l,y=c/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=Vt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Vt("feDropShadow","",{dx:f/l,dy:h/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),n[a]=o}t.filter=lu(o)}}function sC(r,t,e,i){var a=r[e],n,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(D1(a))n="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(P1(a))n="radialGradient",o.cx=rt(a.x,.5),o.cy=rt(a.y,.5),o.r=rt(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var h=Xh(s[u].offset)*100+"%",c=s[u].color,v=Ao(c),p=v.color,d=v.opacity,g={offset:h};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(Vt("stop",u+"",g))}var y=Vt(n,"",o,l),m=rd(y),_=i.gradientCache,S=_[m];S||(S=i.zrId+"-g"+i.gradientIdx++,_[m]=S,o.id=S,i.defs[S]=Vt(n,S,o,l)),t[e]=lu(S)}function lC(r,t,e,i){var a=r.style[e],n=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",h;if(M1(a)){var c=a.imageWidth,v=a.imageHeight,p=void 0,d=a.image;if(V(d)?p=d:aC(d)?p=d.src:nC(d)&&(p=d.toDataURL()),typeof Image=="undefined"){var g="Image width/height must been given explictly in svg-ssr renderer.";he(c,g),he(v,g)}else if(c==null||v==null){var y=function(D,M){if(D){var P=D.elm,L=c||M.width,I=v||M.height;D.tag==="pattern"&&(u?(I=1,L/=n.width):f&&(L=1,I/=n.height)),D.attrs.width=L,D.attrs.height=I,P&&(P.setAttribute("width",L),P.setAttribute("height",I))}},m=Dc(p,null,r,function(D){l||y(x,D),y(h,D)});m&&m.width&&m.height&&(c=c||m.width,v=v||m.height)}h=Vt("image","img",{href:p,width:c,height:v}),o.width=c,o.height=v}else a.svgElement&&(h=X(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(!!h){var _,S;l?_=S=1:u?(S=1,_=o.width/n.width):f?(_=1,S=o.height/n.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=R1(a);b&&(o.patternTransform=b);var x=Vt("pattern","",o,[h]),T=rd(x),C=i.patternCache,A=C[T];A||(A=i.zrId+"-p"+i.patternIdx++,C[T]=A,o.id=A,x=i.defs[A]=Vt("pattern",A,o,[h])),t[e]=lu(A)}}function RG(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]=Vt("clipPath",n,o,[oC(r,e)])}t["clip-path"]=lu(n)}function U_(r){return document.createTextNode(r)}function aa(r,t,e){r.insertBefore(t,e)}function Y_(r,t){r.removeChild(t)}function X_(r,t){r.appendChild(t)}function uC(r){return r.parentNode}function fC(r){return r.nextSibling}function Oh(r,t){r.textContent=t}var Z_=58,EG=120,kG=Vt("","");function ac(r){return r===void 0}function gr(r){return r!==void 0}function OG(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 oo(r,t){var e=r.key===t.key,i=r.tag===t.tag;return i&&e}function Xo(r){var t,e=r.children,i=r.tag;if(gr(i)){var a=r.elm=rC(i);if(nd(kG,r),N(e))for(t=0;t<e.length;++t){var n=e[t];n!=null&&X_(a,Xo(n))}else gr(r.text)&&!U(r.text)&&X_(a,U_(r.text))}else r.elm=U_(r.text);return r.elm}function hC(r,t,e,i,a){for(;i<=a;++i){var n=e[i];n!=null&&aa(r,Xo(n),t)}}function iu(r,t,e,i){for(;e<=i;++e){var a=t[e];if(a!=null)if(gr(a.tag)){var n=uC(a.elm);Y_(n,a.elm)}else Y_(r,a.elm)}}function nd(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)!==EG?i.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?i.setAttributeNS(gG,e,o):e.charCodeAt(3)===Z_?i.setAttributeNS(yG,e,o):e.charCodeAt(5)===Z_?i.setAttributeNS(eC,e,o):i.setAttribute(e,o))}for(e in a)e in n||i.removeAttribute(e)}}function BG(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,p;i<=n&&a<=l;)o==null?o=t[++i]:s==null?s=t[--n]:u==null?u=e[++a]:f==null?f=e[--l]:oo(o,u)?(ja(o,u),o=t[++i],u=e[++a]):oo(s,f)?(ja(s,f),s=t[--n],f=e[--l]):oo(o,f)?(ja(o,f),aa(r,o.elm,fC(s.elm)),o=t[++i],f=e[--l]):oo(s,u)?(ja(s,u),aa(r,s.elm,o.elm),s=t[--n],u=e[++a]):(ac(h)&&(h=OG(t,i,n)),c=h[u.key],ac(c)?aa(r,Xo(u),o.elm):(v=t[c],v.tag!==u.tag?aa(r,Xo(u),o.elm):(ja(v,u),t[c]=void 0,aa(r,v.elm,o.elm))),u=e[++a]);(i<=n||a<=l)&&(i>n?(p=e[l+1]==null?null:e[l+1].elm,hC(r,p,e,a,l)):iu(r,t,i,n))}function ja(r,t){var e=t.elm=r.elm,i=r.children,a=t.children;r!==t&&(nd(r,t),ac(t.text)?gr(i)&&gr(a)?i!==a&&BG(e,i,a):gr(a)?(gr(r.text)&&Oh(e,""),hC(e,null,a,0,a.length-1)):gr(i)?iu(e,i,0,i.length-1):gr(r.text)&&Oh(e,""):r.text!==t.text&&(gr(i)&&iu(e,i,0,i.length-1),Oh(e,t.text)))}function NG(r,t){if(oo(r,t))ja(r,t);else{var e=r.elm,i=uC(e);Xo(t),i!==null&&(aa(i,t.elm,fC(e)),iu(i,[r],0,0))}return t}var zG=0,VG=function(){function r(t,e,i){if(this.type="svg",this.refreshHover=q_(),this.configLayer=q_(),this.storage=e,this._opts=i=k({},i),this.root=t,this._id="zr"+zG++,this._oldVNode=z_(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=rC("svg");nd(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",NG(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return $_(t,ic(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=ic(this._id);n.animation=t.animation,n.willUpdate=t.willUpdate,n.compress=t.compress;var o=[],s=this._bgVNode=FG(i,a,this._backgroundColor,n);s&&o.push(s);var l=t.compress?null:this._mainVNode=Vt("g","main",{},[]);this._paintList(e,n,l?l.children:o),l&&o.push(l);var u=z(at(n.defs),function(c){return n.defs[c]});if(u.length&&o.push(Vt("defs","defs",{},u)),t.animation){var f=SG(n.cssNodes,n.cssAnims,{newline:!0});if(f){var h=Vt("style","stl",{},[],f);o.push(h)}}return z_(i,a,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},rd(this.renderToVNode({animation:rt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:rt(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},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,p=l&&l.length||0,d=void 0;for(d=Math.max(v-1,p-1);d>=0&&!(c&&l&&c[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=n[o-1];for(var y=d+1;y<v;y++){var m={};RG(c[y],m,e);var _=Vt("g","clip-g-"+u++,m,[]);(s?s.children:i).push(_),n[o++]=_,s=_}l=c;var S=$_(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=yy(a,0,i),e=yy(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"}if(mc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.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=this.renderToString(),i="data:image/svg+xml;";return t?(e=qA(e),e&&i+"base64,"+e):i+"charset=UTF-8,"+encodeURIComponent(e)},r}();function q_(r){return function(){}}function FG(r,t,e,i){var a;if(e&&e!=="none")if(a=Vt("rect","bg",{width:r,height:t,x:"0",y:"0",id:"0"}),L1(e))sC({fill:e},a.attrs,"fill",i);else if(mc(e))lC({style:{fill:e},dirty:Gt,getBoundingRect:function(){return{width:r,height:t}}},a.attrs,"fill",i);else{var n=Ao(e),o=n.color,s=n.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}var GG=VG;function HG(r){r.registerPainter("svg",GG)}Wt([a3,PF,TF,az,zz,lG,o5,Zk,Lk,sO,fN,vB,HG,_5,Rw,eF,D3,iG,$F,Uz,tV,KO]);function nH(r,t="default"){const{getDarkMode:e}=dC(),i=fd(()=>t==="default"?e.value:t);let a=null,n=h;const o=gC({});let s=()=>{};n=bC(h,200);const l=fd(()=>i.value!=="dark"?o.value:ud({backgroundColor:"transparent"},o.value));function u(v=t){const p=La(r);if(!p||!La(p))return;a=tm.init(p,v);const{removeEvent:d}=SC({el:window,name:"resize",listener:n});s=d;const{widthRef:g,screenEnum:y}=xC();(La(g)<=y.MD||p.offsetHeight===0)&&qu(()=>{n()},30)}function f(v,p=!0){var d;if(o.value=v,((d=La(r))==null?void 0:d.offsetHeight)===0){qu(()=>{f(La(l))},30);return}_C(()=>{qu(()=>{!a&&(u(i.value),!a)||(p&&(a==null||a.clear()),a==null||a.setOption(La(l)))},30)})}function h(){a==null||a.resize({animation:{duration:300,easing:"quadraticIn"}})}yC(()=>i.value,v=>{a&&(a.dispose(),u(v),f(o.value))}),mC(()=>{!a||(s(),a.dispose(),a=null)});function c(){return a||u(i.value),a}return{setOptions:f,resize:h,echarts:tm,getInstance:c}}export{V as $,gB as A,st as B,yB as C,Ut as D,n1 as E,sv as F,it as G,pu as H,Oc as I,Z as J,hn as K,Rc as L,Lo as M,vt as N,he as O,gt as P,k as Q,kw as R,Pp as S,na as T,z as U,Gw as V,N as W,Qt as X,bp as Y,zu as Z,O as _,rk as a,ww as a$,At as a0,Ar as a1,we as a2,nN as a3,Gt as a4,Og as a5,$ as a6,Mt as a7,Qc as a8,KG as a9,tn as aA,s1 as aB,u1 as aC,el as aD,Ta as aE,l1 as aF,vc as aG,WC as aH,o1 as aI,$C as aJ,wt as aK,le as aL,Ge as aM,Et as aN,un as aO,fn as aP,fp as aQ,Ou as aR,Yt as aS,wu as aT,Al as aU,jt as aV,ha as aW,lw as aX,Xt as aY,as as aZ,Lu as a_,Dr as aa,dt as ab,Bt as ac,dS as ad,xi as ae,ln as af,xp as ag,H as ah,Wr as ai,dc as aj,Eg as ak,Fe as al,fv as am,kc as an,l2 as ao,qr as ap,Kr as aq,hc as ar,Ur as as,pt as at,nl as au,A1 as av,fe as aw,Gr as ax,IM as ay,yt as az,ik as b,bu as b$,Pl as b0,kL as b1,xD as b2,XD as b3,ce as b4,j2 as b5,lm as b6,Mr as b7,Rp as b8,He as b9,Cd as bA,Oa as bB,TD as bC,t1 as bD,Si as bE,Lp as bF,dk as bG,zt as bH,Hl as bI,ao as bJ,Il as bK,Yh as bL,b5 as bM,Wu as bN,Tg as bO,iH as bP,G as bQ,tH as bR,K2 as bS,S5 as bT,x5 as bU,Su as bV,Vc as bW,E5 as bX,Sh as bY,Yv as bZ,Ci as b_,Io as ba,et as bb,El as bc,cx as bd,xw as be,$r as bf,bo as bg,Wt as bh,o5 as bi,ts as bj,UG as bk,_R as bl,CP as bm,Tu as bn,Sr as bo,EM as bp,be as bq,se as br,gk as bs,U as bt,sp as bu,$2 as bv,zr as bw,Ip as bx,cA as by,bl as bz,tk as c,Yr as c$,$O as c0,ss as c1,Ro as c2,Be as c3,WO as c4,ft as c5,os as c6,ur as c7,Hu as c8,cn as c9,e2 as cA,_S as cB,qx as cC,Lb as cD,jG as cE,JG as cF,ee as cG,zC as cH,fL as cI,sr as cJ,CL as cK,QG as cL,Fr as cM,bt as cN,GC as cO,yr as cP,or as cQ,kd as cR,nu as cS,gy as cT,NC as cU,xy as cV,Tv as cW,tb as cX,bd as cY,uc as cZ,yy as c_,xT as ca,B5 as cb,TT as cc,ST as cd,CT as ce,N5 as cf,Pt as cg,Yp as ch,Go as ci,Xy as cj,Y2 as ck,X as cl,v_ as cm,aH as cn,zT as co,is as cp,oT as cq,CF as cr,Q as cs,Qe as ct,Xn as cu,ht as cv,Px as cw,wi as cx,xr as cy,pl as cz,ek as d,Cl as d0,XG as d1,rl as d2,Nc as d3,BL as d4,ZG as d5,HG as d6,Lk as d7,Zk as d8,sO as d9,KO as da,vB as db,fN as dc,_5 as dd,az as de,zz as df,uN as dg,Uz as dh,tV as di,eF as dj,TF as dk,PF as dl,$F as dm,a3 as dn,D3 as dp,g3 as dq,M3 as dr,iG as ds,K3 as dt,rG as du,lG as dv,bb as dw,w as e,Ct as f,nt as g,ak as h,q as i,eH as j,at as k,go as l,St as m,vi as n,es as o,K as p,te as q,rt as r,rH as s,ot as t,nH as u,Dt as v,qG as w,ve as x,YG as y,Ow as z};
|