/*! *****************************************************************************
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 Jf=function(r,e){return Jf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},Jf(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Jf(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var vw=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),cw=function(){function r(){this.browser=new vw,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<"u"}return r}(),J=new cw;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(J.wxa=!0,J.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?J.worker=!0:!J.hasGlobalWindow||"Deno"in window?(J.node=!0,J.svgSupported=!0):pw(navigator.userAgent,J);function pw(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),i&&(t.ie=!0,t.version=i[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var wv=12,dw="sans-serif",Yn=wv+"px "+dw,gw=20,yw=100,mw="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function _w(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),i=(r.charCodeAt(t)-gw)/yw;e[n]=i}return e}var Sw=_w(mw),Hi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,n){if(!r){var i=Hi.createCanvas();r=i&&i.getContext("2d")}if(r)return e!==n&&(e=r.font=n||Yn),r.measureText(t);t=t||"",n=n||Yn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||wv,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=Sw[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}},i0=Tr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),a0=Tr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Wi=Object.prototype.toString,gl=Array.prototype,bw=gl.forEach,ww=gl.filter,xv=gl.slice,xw=gl.map,Uc=(function(){}).constructor,xo=Uc?Uc.prototype:null,Tv="__proto__",Tw=2311;function o0(){return Tw++}function Mv(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function $(r){if(r==null||typeof r!="object")return r;var e=r,t=Wi.call(r);if(t==="[object Array]"){if(!Va(r)){e=[];for(var n=0,i=r.length;n<i;n++)e[n]=$(r[n])}}else if(a0[t]){if(!Va(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var n=0,i=r.length;n<i;n++)e[n]=r[n]}}}else if(!i0[t]&&!Va(r)&&!Ni(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==Tv&&(e[o]=$(r[o]))}return e}function Q(r,e,t){if(!X(e)||!X(r))return t?$(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==Tv){var i=r[n],a=e[n];X(a)&&X(i)&&!B(a)&&!B(i)&&!Ni(a)&&!Ni(i)&&!Yc(a)&&!Yc(i)&&!Va(a)&&!Va(i)?Q(i,a,t):(t||!(n in r))&&(r[n]=$(e[n]))}return r}function Mw(r,e){for(var t=r[0],n=1,i=r.length;n<i;n++)t=Q(t,r[n],e);return t}function N(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Tv&&(r[t]=e[t]);return r}function nt(r,e,t){for(var n=_t(e),i=0,a=n.length;i<a;i++){var o=n[i];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function ut(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function Cw(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var i in t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);r.prototype.constructor=r,r.superClass=e}function ue(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}else nt(r,e,t)}function ae(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function T(r,e,t){if(r&&e)if(r.forEach&&r.forEach===bw)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function F(r,e,t){if(!r)return[];if(!e)return Cv(r);if(r.map&&r.map===xw)return r.map(e,t);for(var n=[],i=0,a=r.length;i<a;i++)n.push(e.call(t,r[i],i,r));return n}function Tr(r,e,t,n){if(r&&e){for(var i=0,a=r.length;i<a;i++)t=e.call(n,t,r[i],i,r);return t}}function Ct(r,e,t){if(!r)return[];if(!e)return Cv(r);if(r.filter&&r.filter===ww)return r.filter(e,t);for(var n=[],i=0,a=r.length;i<a;i++)e.call(t,r[i],i,r)&&n.push(r[i]);return n}function Dw(r,e,t){if(r&&e){for(var n=0,i=r.length;n<i;n++)if(e.call(t,r[n],n,r))return r[n]}}function _t(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function Aw(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(xv.call(arguments)))}}var U=xo&&q(xo.bind)?xo.call.bind(xo.bind):Aw;function it(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(xv.call(arguments)))}}function B(r){return Array.isArray?Array.isArray(r):Wi.call(r)==="[object Array]"}function q(r){return typeof r=="function"}function W(r){return typeof r=="string"}function jf(r){return Wi.call(r)==="[object String]"}function pt(r){return typeof r=="number"}function X(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Yc(r){return!!i0[Wi.call(r)]}function oe(r){return!!a0[Wi.call(r)]}function Ni(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function yl(r){return r.colorStops!=null}function Iw(r){return r.image!=null}function nN(r){return Wi.call(r)==="[object RegExp]"}function Rs(r){return r!==r}function jr(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function K(r,e){return r??e}function Fa(r,e,t){return r??e??t}function Cv(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return xv.apply(r,e)}function s0(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Ae(r,e){if(!r)throw new Error(e)}function Be(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var l0="__ec_primitive__";function ks(r){r[l0]=!0}function Va(r){return r[l0]}var Lw=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return _t(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r}(),u0=typeof Map=="function";function Pw(){return u0?new Map:new Lw}var Rw=function(){function r(e){var t=B(e);this.data=Pw();var n=this;e instanceof r?e.each(i):e&&T(e,i);function i(a,o){t?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,i){e.call(t,n,i)})},r.prototype.keys=function(){var e=this.data.keys();return u0?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function Y(r){return new Rw(r)}function kw(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var i=r.length,n=0;n<e.length;n++)t[n+i]=e[n];return t}function ml(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&N(t,e),t}function f0(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ge(r,e){return r.hasOwnProperty(e)}function Rt(){}var gs=180/Math.PI;function Ui(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function Ew(r,e){return r[0]=e[0],r[1]=e[1],r}function Ow(r){return[r[0],r[1]]}function iN(r,e,t){return r[0]=e,r[1]=t,r}function Zc(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function aN(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function h0(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Nw(r){return Math.sqrt(Bw(r))}function Bw(r){return r[0]*r[0]+r[1]*r[1]}function iu(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Dv(r,e){var t=Nw(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function th(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var eh=th;function Fw(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Ii=Fw;function au(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function Nt(r,e,t){var n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i+t[4],r[1]=t[1]*n+t[3]*i+t[5],r}function Wr(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ur(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var ai=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),Vw=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ai(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(a,o,e),this.handler.dispatchToElement(new ai(t,e),"drag",e.event);var s=this.handler.findHover(n,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ai(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ai(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ai(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ai(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}(),Ie=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==t&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=t[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r}(),zw=Math.log(2);function rh(r,e,t,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/zw);return r[t][l]}for(var u=n|1<<t,f=t+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var p=1<<c;p&i||(h+=(v%2?-1:1)*r[t][c]*rh(r,e-1,f,u,i|p,a),v++)}return a[o]=h,h}function Xc(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},i=rh(t,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*rh(t,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var $c="___zrEVENTSAVED",ou=[];function Gw(r,e,t,n,i){return nh(ou,e,n,i,!0)&&nh(r,t,ou[0],ou[1])}function nh(r,e,t,n,i){if(e.getBoundingClientRect&&J.domSupported&&!v0(e)){var a=e[$c]||(e[$c]={}),o=Hw(e,a),s=Ww(o,a,i);if(s)return s(r,t,n),!0}return!1}function Hw(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function Ww(r,e,t){for(var n=t?"invTrans":"trans",i=e[n],a=e.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&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=t?Xc(s,o):Xc(o,s))}function v0(r){return r.nodeName.toUpperCase()==="CANVAS"}var Uw=/([&<>"'])/g,Yw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ee(r){return r==null?"":(r+"").replace(Uw,function(e,t){return Yw[t]})}var Zw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,su=[],Xw=J.browser.firefox&&+J.browser.version.split(".")[0]<39;function ih(r,e,t,n){return t=t||{},n?qc(r,e,t):Xw&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):qc(r,e,t),t}function qc(r,e,t){if(J.domSupported&&r.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(v0(r)){var a=r.getBoundingClientRect();t.zrX=n-a.left,t.zrY=i-a.top;return}else if(nh(su,r,n,i)){t.zrX=su[0],t.zrY=su[1];return}}t.zrX=t.zrY=0}function Av(r){return r||window.event}function we(r,e,t){if(e=Av(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&ih(r,o,e,t)}else{ih(r,e,e,t);var a=$w(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Zw.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function $w(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var i=Math.abs(n!==0?n:t),a=n>0?-1:n<0?1:t>0?-1:1;return 3*i*a}function ah(r,e,t,n){r.addEventListener(e,t,n)}function qw(r,e,t,n){r.removeEventListener(e,t,n)}var Mr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Kc(r){return r.which===2||r.which===3}var Kw=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=ih(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in lu)if(lu.hasOwnProperty(t)){var n=lu[t](this._track,e);if(n)return n}},r}();function Qc(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function Qw(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var lu={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,i=(r[t-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Qc(n)/Qc(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=Qw(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function _r(){return[1,0,0,1,0,0]}function _l(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Iv(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Sr(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Es(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Sl(r,e,t,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-n[0])+f*(u-n[1])+n[0],r[5]=h*(u-n[1])-f*(o-n[0])+n[1],r}function c0(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function Yi(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}function oN(r){var e=_r();return Iv(e,r),e}var j=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r}(),To=Math.min,Mo=Math.max,an=new j,on=new j,sn=new j,ln=new j,ra=new j,na=new j,at=function(){function r(e,t,n,i){n<0&&(e=e+n,n=-n),i<0&&(t=t+i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return r.prototype.union=function(e){var t=To(e.x,this.x),n=To(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Mo(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Mo(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=_r();return Es(a,a,[-t.x,-t.y]),c0(a,a,[n,i]),Es(a,a,[e.x,e.y]),a},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,c=!(a<l||u<i||s<f||h<o);if(t){var v=1/0,p=0,d=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(d,g),S=Math.min(y,m);a<l||u<i?_>p&&(p=_,d<g?j.set(na,-d,0):j.set(na,g,0)):_<v&&(v=_,d<g?j.set(ra,d,0):j.set(ra,-g,0)),s<f||h<o?S>p&&(p=S,y<m?j.set(na,0,-y):j.set(na,0,m)):_<v&&(v=_,y<m?j.set(ra,0,y):j.set(ra,0,-m))}return t&&j.copy(t,c?ra:na),c},r.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},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(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}an.x=sn.x=t.x,an.y=ln.y=t.y,on.x=ln.x=t.x+t.width,on.y=sn.y=t.y+t.height,an.transform(n),ln.transform(n),on.transform(n),sn.transform(n),e.x=To(an.x,on.x,sn.x,ln.x),e.y=To(an.y,on.y,sn.y,ln.y);var l=Mo(an.x,on.x,sn.x,ln.x),u=Mo(an.y,on.y,sn.y,ln.y);e.width=l-e.x,e.height=u-e.y},r}(),p0="silent";function Jw(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:jw}}function jw(){Mr(this.event)}var tx=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ie),ia=function(){function r(e,t){this.x=e,this.y=t}return r}(),ex=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],uu=new at(0,0,0,0),d0=function(r){k(e,r);function e(t,n,i,a,o){var s=r.call(this)||this;return s._hovered=new ia(0,0),s.storage=t,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new tx,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Vw(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(T(ex,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,i=t.zrY,a=g0(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ia(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ia(0,0)},e.prototype.dispatch=function(t,n){var i=this[t];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+n,s=Jw(n,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,i){var a=this.storage.getDisplayList(),o=new ia(t,n);if(Jc(a,o,t,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new at(t-u,n-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(uu.copy(c.getBoundingRect()),c.transform&&uu.applyTransform(c.transform),uu.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=t+g*Math.cos(y),_=n+g*Math.sin(y);if(Jc(s,o,m,_,i),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new Kw);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;t.gestureEvent=o;var s=new ia;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(Ie);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){d0.prototype[r]=function(e){var t=e.zrX,n=e.zrY,i=g0(this,t,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(t,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||eh(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function rx(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?p0:!0}return!1}function Jc(r,e,t,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=rx(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==p0)){e.target=o;break}}}function g0(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var y0=32,aa=7;function nx(r){for(var e=0;r>=y0;)e|=r&1,r>>=1;return r+e}function jc(r,e,t,n){var i=e+1;if(i===t)return 1;if(n(r[i++],r[e])<0){for(;i<t&&n(r[i],r[i-1])<0;)i++;ix(r,e,i)}else for(;i<t&&n(r[i],r[i-1])>=0;)i++;return i-e}function ix(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function tp(r,e,t,n,i){for(n===e&&n++;n<t;n++){for(var a=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-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]=a}}function fu(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])>0){for(s=n-i;l<s&&a(r,e[t+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,e[t+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])>0?o=f+1:l=f}return l}function hu(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])<0){for(s=i+1;l<s&&a(r,e[t+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,e[t+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])<0?l=f:o=f+1}return l}function ax(r,e){var t=aa,n,i,a=0,o=[];n=[],i=[];function s(v,p){n[a]=v,i[a]=p,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var p=n[v],d=i[v],g=n[v+1],y=i[v+1];i[v]=d+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=hu(r[g],r,p,d,0,e);p+=m,d-=m,d!==0&&(y=fu(r[p+d-1],r,g,y,y-1,e),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 w=t,b,x,M;;){b=0,x=0,M=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],x++,b=0,--g===0){M=!0;break}}else if(r[S++]=o[m++],b++,x=0,--p===1){M=!0;break}while((b|x)<w);if(M)break;do{if(b=hu(r[_],o,m,p,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,p-=b,p<=1){M=!0;break}}if(r[S++]=r[_++],--g===0){M=!0;break}if(x=fu(o[m],r,_,g,0,e),x!==0){for(y=0;y<x;y++)r[S+y]=r[_+y];if(S+=x,_+=x,g-=x,g===0){M=!0;break}}if(r[S++]=o[m++],--p===1){M=!0;break}w--}while(b>=aa||x>=aa);if(M)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=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,w=0,b=0;if(r[S--]=r[m--],--p===0){for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y];return}if(g===1){for(S-=p,m-=p,b=S+1,w=m+1,y=p-1;y>=0;y--)r[b+y]=r[w+y];r[S]=o[_];return}for(var x=t;;){var M=0,C=0,A=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],M++,C=0,--p===0){A=!0;break}}else if(r[S--]=o[_--],C++,M=0,--g===1){A=!0;break}while((M|C)<x);if(A)break;do{if(M=p-hu(o[_],r,v,p,p-1,e),M!==0){for(S-=M,m-=M,p-=M,b=S+1,w=m+1,y=M-1;y>=0;y--)r[b+y]=r[w+y];if(p===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-fu(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,b=S+1,w=_+1,y=0;y<C;y++)r[b+y]=o[w+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--p===0){A=!0;break}x--}while(M>=aa||C>=aa);if(A)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),g===1){for(S-=p,m-=p,b=S+1,w=m+1,y=p-1;y>=0;y--)r[b+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ys(r,e,t,n){t||(t=0),n||(n=r.length);var i=n-t;if(!(i<2)){var a=0;if(i<y0){a=jc(r,t,n,e),tp(r,t,n,t+a,e);return}var o=ax(r,e),s=nx(i);do{if(a=jc(r,t,n,e),a<s){var l=i;l>s&&(l=s),tp(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var ve=1,Ia=2,xi=4,ep=!1;function vu(){ep||(ep=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function rp(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var ox=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rp}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,a=t.length;i<a;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,ys(n,rp)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t?t=t.slice():t=[];for(var a=i,o=e;a;)a.parent=o,a.updateTransform(),t.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=ve),this._updateAndAddDisplayable(u,t,n)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(vu(),f.z=0),isNaN(f.z2)&&(vu(),f.z2=0),isNaN(f.zlevel)&&(vu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,n);var c=e.getTextGuideLine();c&&this._updateAndAddDisplayable(c,t,n);var v=e.getTextContent();v&&this._updateAndAddDisplayable(v,t,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var i=ut(this._roots,e);i>=0&&this._roots.splice(i,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}(),Os;Os=J.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var za={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 e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-za.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?za.bounceIn(r*2)*.5:za.bounceOut(r*2-1)*.5+.5}},Co=Math.pow,Kr=Math.sqrt,Ns=1e-8,m0=1e-4,np=Kr(3),Do=1/3,je=Ui(),Me=Ui(),Li=Ui();function Yr(r){return r>-Ns&&r<Ns}function _0(r){return r>Ns||r<-Ns}function It(r,e,t,n,i){var a=1-i;return a*a*(a*r+3*i*e)+i*i*(i*n+3*a*t)}function ip(r,e,t,n,i){var a=1-i;return 3*(((e-r)*a+2*(t-e)*i)*a+(n-t)*i*i)}function Bs(r,e,t,n,i,a){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(Yr(f)&&Yr(h))if(Yr(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[v++]=p)}else{var d=h*h-4*f*c;if(Yr(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(a[v++]=p),y>=0&&y<=1&&(a[v++]=y)}else if(d>0){var m=Kr(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Co(-_,Do):_=Co(_,Do),S<0?S=-Co(-S,Do):S=Co(S,Do);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(a[v++]=p)}else{var w=(2*f*s-3*o*h)/(2*Kr(f*f*f)),b=Math.acos(w)/3,x=Kr(f),M=Math.cos(b),p=(-s-2*x*M)/(3*o),y=(-s+x*(M+np*Math.sin(b)))/(3*o),C=(-s+x*(M-np*Math.sin(b)))/(3*o);p>=0&&p<=1&&(a[v++]=p),y>=0&&y<=1&&(a[v++]=y),C>=0&&C<=1&&(a[v++]=C)}}return v}function S0(r,e,t,n,i){var a=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(Yr(o)){if(_0(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Yr(f))i[0]=-a/(2*o);else if(f>0){var h=Kr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function Fs(r,e,t,n,i,a){var o=(e-r)*i+r,s=(t-e)*i+e,l=(n-t)*i+t,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function b0(r,e,t,n,i,a,o,s,l,u,f){var h,c=.005,v=1/0,p,d,g,y;je[0]=l,je[1]=u;for(var m=0;m<1;m+=.05)Me[0]=It(r,t,i,o,m),Me[1]=It(e,n,a,s,m),g=Ii(je,Me),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<m0);_++)p=h-c,d=h+c,Me[0]=It(r,t,i,o,p),Me[1]=It(e,n,a,s,p),g=Ii(Me,je),p>=0&&g<v?(h=p,v=g):(Li[0]=It(r,t,i,o,d),Li[1]=It(e,n,a,s,d),y=Ii(Li,je),d<=1&&y<v?(h=d,v=y):c*=.5);return f&&(f[0]=It(r,t,i,o,h),f[1]=It(e,n,a,s,h)),Kr(v)}function sx(r,e,t,n,i,a,o,s,l){for(var u=r,f=e,h=0,c=1/l,v=1;v<=l;v++){var p=v*c,d=It(r,t,i,o,p),g=It(e,n,a,s,p),y=d-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=d,f=g}return h}function Ht(r,e,t,n){var i=1-n;return i*(i*r+2*n*e)+n*n*t}function ap(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function lx(r,e,t,n,i){var a=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(Yr(a)){if(_0(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Yr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Kr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function w0(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Vs(r,e,t,n,i){var a=(e-r)*n+r,o=(t-e)*n+e,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function x0(r,e,t,n,i,a,o,s,l){var u,f=.005,h=1/0;je[0]=o,je[1]=s;for(var c=0;c<1;c+=.05){Me[0]=Ht(r,t,i,c),Me[1]=Ht(e,n,a,c);var v=Ii(je,Me);v<h&&(u=c,h=v)}h=1/0;for(var p=0;p<32&&!(f<m0);p++){var d=u-f,g=u+f;Me[0]=Ht(r,t,i,d),Me[1]=Ht(e,n,a,d);var v=Ii(Me,je);if(d>=0&&v<h)u=d,h=v;else{Li[0]=Ht(r,t,i,g),Li[1]=Ht(e,n,a,g);var y=Ii(Li,je);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=Ht(r,t,i,u),l[1]=Ht(e,n,a,u)),Kr(h)}function ux(r,e,t,n,i,a,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Ht(r,t,i,c),p=Ht(e,n,a,c),d=v-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=v,l=p}return u}var fx=/cubic-bezier\(([0-9,\.e ]+)\)/;function T0(r){var e=r&&fx.exec(r);if(e){var t=e[1].split(","),n=+Be(t[0]),i=+Be(t[1]),a=+Be(t[2]),o=+Be(t[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Bs(0,n,a,1,l,s)&&It(0,i,o,1,s[0])}}}var hx=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Rt,this.ondestroy=e.ondestroy||Rt,this.onrestart=e.onrestart||Rt,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-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(e){this.easing=e,this.easingFunc=q(e)?e:za[e]||T0(e)},r}(),M0=function(){function r(e){this.value=e}return r}(),vx=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new M0(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),go=function(){function r(e){this._list=new vx,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new M0(t),s.key=e,n.insertEntry(s),i[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),op={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 Ve(r){return r=Math.round(r),r<0?0:r>255?255:r}function cx(r){return r=Math.round(r),r<0?0:r>360?360:r}function Ja(r){return r<0?0:r>1?1:r}function cu(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ve(parseFloat(e)/100*255):Ve(parseInt(e,10))}function Vn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Ja(parseFloat(e)/100):Ja(parseFloat(e))}function pu(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Zr(r,e,t){return r+(e-r)*t}function be(r,e,t,n,i){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}function oh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var C0=new go(20),Ao=null;function oi(r,e){Ao&&oh(Ao,e),Ao=C0.put(r,Ao||e.slice())}function ce(r,e){if(r){e=e||[];var t=C0.get(r);if(t)return oh(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in op)return oh(e,op[n]),oi(r,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){be(e,0,0,0,1);return}return be(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),oi(r,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){be(e,0,0,0,1);return}return be(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),oi(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?be(e,+u[0],+u[1],+u[2],1):be(e,0,0,0,1);f=Vn(u.pop());case"rgb":if(u.length>=3)return be(e,cu(u[0]),cu(u[1]),cu(u[2]),u.length===3?f:Vn(u[3])),oi(r,e),e;be(e,0,0,0,1);return;case"hsla":if(u.length!==4){be(e,0,0,0,1);return}return u[3]=Vn(u[3]),sh(u,e),oi(r,e),e;case"hsl":if(u.length!==3){be(e,0,0,0,1);return}return sh(u,e),oi(r,e),e;default:return}}be(e,0,0,0,1)}}function sh(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=Vn(r[1]),i=Vn(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],be(e,Ve(pu(o,a,t+1/3)*255),Ve(pu(o,a,t)*255),Ve(pu(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function px(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,h=((a-t)/6+o/2)/o,c=((a-n)/6+o/2)/o;e===a?l=c-h:t===a?l=1/3+f-c:n===a&&(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 sp(r,e){var t=ce(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return br(t,t.length===4?"rgba":"rgb")}}function du(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return t[0]=Ve(Zr(o[0],s[0],l)),t[1]=Ve(Zr(o[1],s[1],l)),t[2]=Ve(Zr(o[2],s[2],l)),t[3]=Ja(Zr(o[3],s[3],l)),t}}function dx(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=ce(e[i]),s=ce(e[a]),l=n-i,u=br([Ve(Zr(o[0],s[0],l)),Ve(Zr(o[1],s[1],l)),Ve(Zr(o[2],s[2],l)),Ja(Zr(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function gu(r,e,t,n){var i=ce(r);if(r)return i=px(i),e!=null&&(i[0]=cx(e)),t!=null&&(i[1]=Vn(t)),n!=null&&(i[2]=Vn(n)),br(sh(i),"rgba")}function gx(r,e){var t=ce(r);if(t&&e!=null)return t[3]=Ja(e),br(t,"rgba")}function br(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function zs(r,e){var t=ce(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var lp=new go(100);function up(r){if(W(r)){var e=lp.get(r);return e||(e=sp(r,-.1),lp.put(r,e)),e}else if(yl(r)){var t=N({},r);return t.colorStops=F(r.colorStops,function(n){return{offset:n.offset,color:sp(n.color,-.1)}}),t}return r}var Gs=Math.round;function sN(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=ce(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var fp=1e-4;function lN(r){return r<fp&&r>-fp}function Io(r){return Gs(r*1e3)/1e3}function hp(r){return Gs(r*1e4)/1e4}function uN(r){return"matrix("+Io(r[0])+","+Io(r[1])+","+Io(r[2])+","+Io(r[3])+","+hp(r[4])+","+hp(r[5])+")"}var fN={left:"start",right:"end",center:"middle",middle:"middle"};function hN(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function vN(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function cN(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function yx(r){return r&&!!r.image}function mx(r){return r&&!!r.svgElement}function pN(r){return yx(r)||mx(r)}function _x(r){return r.type==="linear"}function Sx(r){return r.type==="radial"}function dN(r){return r&&(r.type==="linear"||r.type==="radial")}function gN(r){return"url(#"+r+")"}function yN(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function mN(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*gs,i=K(r.scaleX,1),a=K(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Gs(o*gs)+"deg, "+Gs(s*gs)+"deg)"),l.join(" ")}var _N=function(){return J.hasGlobalWindow&&q(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),lh=Array.prototype.slice;function gr(r,e,t){return(e-r)*t+r}function yu(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=gr(e[a],t[a],n);return r}function bx(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=gr(e[o][s],t[o][s],n)}return r}function Lo(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=e[a]+t[a]*n;return r}function vp(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function xx(r,e){for(var t=r.length,n=e.length,i=t>n?e:r,a=Math.min(t,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function Tx(r,e,t){var n=r,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(t===1?i[l]:lh.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function ms(r){if(ae(r)){var e=r.length;if(ae(r[0])){for(var t=[],n=0;n<e;n++)t.push(lh.call(r[n]));return t}return lh.call(r)}return r}function _s(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 Mx(r){return ae(r&&r[0])?2:1}var Po=0,Ss=1,D0=2,La=3,uh=4,fh=5,cp=6;function pp(r){return r===uh||r===fh}function Ro(r){return r===Ss||r===D0}var oa=[0,0,0,0],Cx=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}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(e,t,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=cp,l=t;if(ae(t)){var u=Mx(t);s=u,(u===1&&!pt(t[0])||u===2&&!pt(t[0][0]))&&(o=!0)}else if(pt(t)&&!Rs(t))s=Po;else if(W(t))if(!isNaN(+t))s=Po;else{var f=ce(t);f&&(l=f,s=La)}else if(yl(t)){var h=N({},l);h.colorStops=F(t.colorStops,function(v){return{offset:v.offset,color:ce(v.color)}}),_x(t)?s=uh:Sx(t)&&(s=fh),l=h}a===0?this.valType=s:(s!==this.valType||s===cp)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return n&&(c.easing=n,c.easingFunc=q(n)?n:za[n]||T0(n)),i.push(c),c},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(d,g){return d.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ro(i),u=pp(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/e,s||(l&&f!==a-1?Tx(c,v,i):u&&xx(c.colorStops,v.colorStops))}if(!s&&i!==fh&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,f=0;f<a;f++)i===Po?n[f].additiveValue=n[f].value-p:i===La?n[f].additiveValue=Lo([],n[f].value,p,-1):Ro(i)&&(n[f].additiveValue=i===Ss?Lo([],n[f].value,p,-1):vp([],n[f].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===La,f,h=this._lastFr,c=Math.min,v,p;if(s===1)v=p=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var d=c(h+1,s-1);for(f=d;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}p=o[f+1],v=o[f]}if(v&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-v.percent,y=g===0?1:c((t-v.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=n?this._additiveValue:u?oa:e[l];if((Ro(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?v.rawValue:p.rawValue;else if(Ro(a))a===Ss?yu(m,v[i],p[i],y):bx(m,v[i],p[i],y);else if(pp(a)){var _=v[i],S=p[i],w=a===uh;e[l]={type:w?"linear":"radial",x:gr(_.x,S.x,y),y:gr(_.y,S.y,y),colorStops:F(_.colorStops,function(x,M){var C=S.colorStops[M];return{offset:gr(x.offset,C.offset,y),color:_s(yu([],x.color,C.color,y))}}),global:S.global},w?(e[l].x2=gr(_.x2,S.x2,y),e[l].y2=gr(_.y2,S.y2,y)):e[l].r=gr(_.r,S.r,y)}else if(u)yu(m,v[i],p[i],y),n||(e[l]=_s(m));else{var b=gr(v[i],p[i],y);n?this._additiveValue=b:e[l]=b}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===Po?e[n]=e[n]+i:t===La?(ce(e[n],oa),Lo(oa,oa,i,1),e[n]=_s(oa)):t===Ss?Lo(e[n],e[n],i,1):t===D0&&vp(e[n],e[n],i,1)},r}(),Lv=function(){function r(e,t,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){Mv("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}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(e){this._target=e},r.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,_t(t),n)},r.prototype.whenWithKeys=function(e,t,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Cx(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===La&&u&&(u=_s(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,ms(u),i),this._trackKeys.push(s)}l.addKeyframe(e,ms(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),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(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new hx({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var p=t._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(t._target,v);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return F(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var a=t[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=ms(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||_t(e);for(var n=0;n<t.length;n++){var i=t[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function Di(){return new Date().getTime()}var Dx=function(r){k(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,i=t.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=Di()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(Os(n),!t._paused&&t.update())}Os(n)},e.prototype.start=function(){this._running||(this._time=Di(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Di(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Di()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var i=new Lv(t,n.loop);return this.addAnimator(i),i},e}(Ie),Ax=300,mu=J.domSupported,_u=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=F(r,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:r,touch:e,pointer:n}}(),dp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},gp=!1;function hh(r){var e=r.pointerType;return e==="pen"||e==="touch"}function Ix(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 Su(r){r&&(r.zrByTouch=!0)}function Lx(r,e){return we(r.dom,new Px(r,e),!0)}function A0(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var Px=function(){function r(e,t){this.stopPropagation=Rt,this.stopImmediatePropagation=Rt,this.preventDefault=Rt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Ee={mousedown:function(r){r=we(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=we(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=we(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=we(this.dom,r);var e=r.toElement||r.relatedTarget;A0(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){gp=!0,r=we(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){gp||(r=we(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=we(this.dom,r),Su(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ee.mousemove.call(this,r),Ee.mousedown.call(this,r)},touchmove:function(r){r=we(this.dom,r),Su(r),this.handler.processGesture(r,"change"),Ee.mousemove.call(this,r)},touchend:function(r){r=we(this.dom,r),Su(r),this.handler.processGesture(r,"end"),Ee.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Ax&&Ee.click.call(this,r)},pointerdown:function(r){Ee.mousedown.call(this,r)},pointermove:function(r){hh(r)||Ee.mousemove.call(this,r)},pointerup:function(r){Ee.mouseup.call(this,r)},pointerout:function(r){hh(r)||Ee.mouseout.call(this,r)}};T(["click","dblclick","contextmenu"],function(r){Ee[r]=function(e){e=we(this.dom,e),this.trigger(r,e)}});var vh={pointermove:function(r){hh(r)||vh.mousemove.call(this,r)},pointerup:function(r){vh.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Rx(r,e){var t=e.domHandlers;J.pointerEventsSupported?T(_u.pointer,function(n){bs(e,n,function(i){t[n].call(r,i)})}):(J.touchEventsSupported&&T(_u.touch,function(n){bs(e,n,function(i){t[n].call(r,i),Ix(e)})}),T(_u.mouse,function(n){bs(e,n,function(i){i=Av(i),e.touching||t[n].call(r,i)})}))}function kx(r,e){J.pointerEventsSupported?T(dp.pointer,t):J.touchEventsSupported||T(dp.mouse,t);function t(n){function i(a){a=Av(a),A0(r,a.target)||(a=Lx(r,a),e.domHandlers[n].call(r,a))}bs(e,n,i,{capture:!0})}}function bs(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,ah(r.domTarget,e,t,n)}function bu(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&qw(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var yp=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),Ex=function(r){k(e,r);function e(t,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new yp(t,Ee),mu&&(i._globalHandlerScope=new yp(document,vh)),Rx(i,i._localHandlerScope),i}return e.prototype.dispose=function(){bu(this._localHandlerScope),mu&&bu(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,mu&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?kx(this,n):bu(n)}},e}(Ie),I0=1;J.hasGlobalWindow&&(I0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Hs=I0,ch=.4,ph="#333",dh="#ccc",Ox="#eee",mp=_l,_p=5e-5;function un(r){return r>_p||r<-_p}var fn=[],si=[],wu=_r(),xu=Math.abs,Rn=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return un(this.rotation)||un(this.x)||un(this.y)||un(this.scaleX-1)||un(this.scaleY-1)||un(this.skewX)||un(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(mp(n),this.invTransform=null);return}n=n||_r(),t?this.getLocalTransform(n):mp(n),e&&(t?Sr(n,e,n):Iv(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(fn);var n=fn[0]<0?-1:1,i=fn[1]<0?-1:1,a=((fn[0]-n)*t+n)/fn[0]||0,o=((fn[1]-i)*t+i)/fn[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||_r(),Yi(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||_r(),Sr(si,e.invTransform,t),t=si);var n=this.originX,i=this.originY;(n||i)&&(wu[4]=n,wu[5]=i,Sr(si,t,wu),si[4]-=n,si[5]-=i,t=si),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&Nt(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&Nt(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&xu(e[0]-1)>1e-10&&xu(e[3]-1)>1e-10?Math.sqrt(xu(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Nx(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,c=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,d=i+l;t[4]=-p*a-c*d*o,t[5]=-d*o-v*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=v*a,t[2]=c*o,u&&Sl(t,t,u),t[4]+=n+f,t[5]+=i+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),ja=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Nx(r,e){for(var t=0;t<ja.length;t++){var n=ja[t];r[n]=e[n]}}var Sp={};function pe(r,e){e=e||Yn;var t=Sp[e];t||(t=Sp[e]=new go(500));var n=t.get(r);return n==null&&(n=Hi.measureText(r,e).width,t.put(r,n)),n}function bp(r,e,t,n){var i=pe(r,e),a=Pv(e),o=Pa(0,i,t),s=Ti(0,a,n),l=new at(o,s,i,a);return l}function bl(r,e,t,n){var i=((r||"")+"").split(`
`),a=i.length;if(a===1)return bp(i[0],e,t,n);for(var o=new at(0,0,0,0),s=0;s<i.length;s++){var l=bp(i[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function Pa(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Ti(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function Pv(r){return pe("国",r)}function ar(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Ws(r,e,t){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",h="top";if(n instanceof Array)l+=ar(n[0],t.width),u+=ar(n[1],t.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Tu="__zr_normal__",Mu=ja.concat(["ignore"]),Bx=Tr(ja,function(r,e){return r[e]=!0,r},{ignore:!1}),li={},Fx=new at(0,0,0,0),wl=function(){function r(e){this.id=o0(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(t),n.position!=null){var f=Fx;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(li,n,f):Ws(li,n,f),a.x=li.x,a.y=li.y,o=li.align,s=li.verticalAlign;var h=n.origin;if(h&&n.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,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var d=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.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,t.setDefaultTextStyle(g)),t.__dirty|=ve,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?dh:ph},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&ce(t);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,br(n,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},N(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(X(e))for(var n=e,i=_t(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Tu)){var o=i.targetName,s=o?t[o]:t;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Mu)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Tu,!1,e)},r.prototype.useState=function(e,t,n,i){var a=e===Tu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ut(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Mv("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(e,t,n,f),c&&c.useState(e,t,n,f),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ve),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,c),g&&g.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ve)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=ut(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),a=ut(i,e),o=ut(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:n&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,i=0;i<e.length;i++){var a=e[i];N(t,a),a.textConfig&&(n=n||{},N(n,a.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,i,a,o){var s=!(t&&i);t&&t.textConfig?(this.textConfig=N({},i?this.textConfig:n.textConfig),N(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Mu.length;f++){var h=Mu[f],c=a&&Bx[h];t&&t[h]!=null?c?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&n[h]!=null&&(c?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],p=v.targetName;v.getLoop()||v.__changeFinalValue(p?(t||n)[p]:t||n)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Rn,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ve;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var i=e?this[e]:this,a=new Lv(i,t,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var a=i.animators,o=ut(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,n){Cu(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){Cu(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,i){for(var a=Cu(this,t,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=ve;function t(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))}(),r}();ue(wl,Ie);ue(wl,Rn);function Cu(r,e,t,n,i){t=t||{};var a=[];L0(r,"",r,e,t,n,a,i);var o=a.length,s=!1,l=t.done,u=t.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(),a.length>0&&t.during&&a[0].during(function(p,d){t.during(d)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),t.force&&v.duration(t.duration),v.start(t.easing)}return a}function Du(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function Vx(r){return ae(r[0])}function zx(r,e,t){if(ae(e[t]))if(ae(r[t])||(r[t]=[]),oe(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),Du(r[t],e[t],n))}else{var i=e[t],a=r[t],o=i.length;if(Vx(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Du(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Du(a,i,o);a.length=i.length}else r[t]=e[t]}function Gx(r,e){return r===e||ae(r)&&ae(e)&&Hx(r,e)}function Hx(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function L0(r,e,t,n,i,a,o,s){for(var l=_t(n),u=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!X(a),p=r.animators,d=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&t[y]!=null&&(v||a[y]))if(X(m)&&!ae(m)&&!yl(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}L0(r,y,t[y],m,i,a&&a[y],o,s)}else d.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),d.push(y))}var _=d.length;if(!h&&_)for(var S=0;S<p.length;S++){var w=p[S];if(w.targetName===e){var b=w.stopTracks(d);if(b){var x=ut(p,w);p.splice(x,1)}}}if(i.force||(d=Ct(d,function(D){return!Gx(n[D],t[D])}),_=d.length),_>0||i.force&&!o.length){var M=void 0,C=void 0,A=void 0;if(s){C={},c&&(M={});for(var S=0;S<_;S++){var y=d[S];C[y]=t[y],c?M[y]=n[y]:t[y]=n[y]}}else if(c){A={};for(var S=0;S<_;S++){var y=d[S];A[y]=ms(t[y]),zx(t,n,y)}}var w=new Lv(t,!1,!1,h?Ct(p,function(I){return I.targetName===e}):null);w.targetName=e,i.scope&&(w.scope=i.scope),c&&M&&w.whenWithKeys(0,M,d),A&&w.whenWithKeys(0,A,d),w.whenWithKeys(u??500,s?C:n,d).delay(f||0),r.addAnimator(w,e),o.push(w)}}var st=function(r){k(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===t)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var i=ut(this._children,t);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(t,n){var i=this._children,a=i[n];if(t&&t!==this&&t.parent!==this&&t!==a){i[n]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,i=this._children,a=ut(i,t);return a<0?this:(i.splice(a,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,i=0;i<t.length;i++){var a=t[i];n&&a.removeSelfFromZr(n),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];t.call(n,o,a)}return this},e.prototype.traverse=function(t,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=t.call(n,a);a.isGroup&&!o&&a.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new at(0,0,0,0),i=t||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(at.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(wl);st.prototype.type="group";/*!
* 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 ws={},P0={};function Wx(r){delete P0[r]}function Ux(r){if(!r)return!1;if(typeof r=="string")return zs(r,1)<ch;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,i=0;i<n;i++)t+=zs(e[i].color,1);return t/=n,t<ch}return!1}var Yx=function(){function r(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new ox,o=n.renderer||"canvas";ws[o]||(o=_t(ws)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ws[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!J.node&&!J.worker&&!l?new Ex(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?J.touchEventsSupported:!!f,c=44,v;h&&(v=K(n.pointerSize,c)),this.handler=new d0(a,s,u,s.root,v),this.animation=new Dx({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Ux(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,n=Di();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=Di();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof st&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Wx(this.id))},r}();function wp(r,e){var t=new Yx(o0(),r,e);return P0[t.id]=t,t}function Zx(r,e){ws[r]=e}var gh;function SN(r){if(typeof gh=="function")return gh(r)}function Xx(r){gh=r}var xp=1e-4,R0=20;function $x(r){return r.replace(/^\s+|\s+$/g,"")}function wt(r,e,t,n){var i=e[0],a=e[1],o=t[0],s=t[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function tt(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return W(r)?$x(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Dt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),R0),r=(+r).toFixed(e),t?r:+r}function kn(r){return r.sort(function(e,t){return e-t}),r}function er(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return qx(r)}function qx(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function k0(r,e){var t=Math.log,n=Math.LN10,i=Math.floor(t(r[1]-r[0])/n),a=Math.round(t(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Kx(r,e){var t=Tr(r,function(v,p){return v+(isNaN(p)?0:p)},0);if(t===0)return[];for(var n=Math.pow(10,e),i=F(r,function(v){return(isNaN(v)?0:v)/t*n*100}),a=n*100,o=F(i,function(v){return Math.floor(v)}),s=Tr(o,function(v,p){return v+p},0),l=F(i,function(v,p){return v-o[p]});s<a;){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 F(o,function(v){return v/n})}function Qx(r,e){var t=Math.max(er(r),er(e)),n=r+e;return t>R0?n:Dt(n,t)}var bN=9007199254740991;function E0(r){var e=Math.PI*2;return(r%e+e)%e}function Us(r){return r>-xp&&r<xp}var Jx=/^(?:(\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 Cr(r){if(r instanceof Date)return r;if(W(r)){var e=Jx.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function jx(r){return Math.pow(10,Rv(r))}function Rv(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function O0(r,e){var t=Rv(r),n=Math.pow(10,t),i=r/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,r=a*n,t>=-20?+r.toFixed(t<0?-t:0):r}function wN(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),i=+r[n-1],a=t-n;return a?i+a*(r[n]-i):i}function Tp(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-t),e=i[o],t=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}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 tn(r){var e=parseFloat(r);return e==r&&(e!==0||!W(r)||r.indexOf("x")<=0)?e:NaN}function tT(r){return!isNaN(tn(r))}function N0(){return Math.round(Math.random()*9)}function B0(r,e){return e===0?r:B0(e,r%e)}function Mp(r,e){return r==null?e:e==null?r:r*e/B0(r,e)}function $t(r){throw new Error(r)}function Cp(r,e,t){return(e-r)*t+r}var F0="series\0",V0="\0_ec_\0";function Lt(r){return r instanceof Array?r:r==null?[]:[r]}function to(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,i=t.length;n<i;n++){var a=t[n];!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a)&&(r.emphasis[e][a]=r[e][a])}}}var Dp=["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 yo(r){return X(r)&&!B(r)&&!(r instanceof Date)?r.value:r}function eT(r){return X(r)&&!(r instanceof Array)}function rT(r,e,t){var n=t==="normalMerge",i=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=Y();T(e,function(l,u){if(!X(l)){e[u]=null;return}});var s=nT(r,o,t);return(n||i)&&iT(s,r,o,e),n&&aT(s,e),n||i?oT(s,e,i):a&&sT(s,e),lT(s),s}function nT(r,e,t){var n=[];if(t==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:t==="replaceMerge"||eo(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function iT(r,e,t,n){T(n,function(i,a){if(!(!i||i.id==null)){var o=Ga(i.id),s=t.get(o);if(s!=null){var l=r[s];Ae(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function aT(r,e){T(e,function(t,n){if(!(!t||t.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||t.id==null)&&!eo(t)&&!eo(a)&&z0("name",a,t)){r[i].newOption=t,e[n]=null;return}}})}function oT(r,e,t){T(e,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||eo(i.existing)||i.existing&&n.id!=null&&!z0("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),a++}})}function sT(r,e){T(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function lT(r){var e=Y();T(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),T(r,function(t){var n=t.newOption;Ae(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),T(r,function(t,n){var i=t.existing,a=t.newOption,o=t.keyInfo;if(X(a)){if(o.name=a.name!=null?Ga(a.name):i?i.name:F0+n,i)o.id=Ga(i.id);else if(a.id!=null)o.id=Ga(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function z0(r,e,t){var n=ze(e[r],null),i=ze(t[r],null);return n!=null&&i!=null&&n===i}function Ga(r){return ze(r,"")}function ze(r,e){return r==null?e:W(r)?r:pt(r)||jf(r)?r+"":e}function kv(r){var e=r.name;return!!(e&&e.indexOf(F0))}function eo(r){return r&&r.id!=null&&Ga(r.id).indexOf(V0)===0}function uT(r){return V0+r}function fT(r,e,t){T(r,function(n){var i=n.newOption;X(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=hT(e,i,n.existing,t))})}function hT(r,e,t,n){var i=e.type?e.type:t?t.subType:n.determineSubType(r,e);return i}function vT(r,e){var t={},n={};return i(r||[],t),i(e||[],n,t),[a(t),a(n)];function i(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=ze(o[u].seriesId,null);if(h==null)return;for(var c=Lt(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 a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=a(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Zn(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return B(e.dataIndex)?F(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return B(e.name)?F(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function St(){var r="__ec_inner_"+cT++;return function(e){return e[r]||(e[r]={})}}var cT=N0();function Ha(r,e,t){var n=Ev(e,t),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=mo(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Ev(r,e){var t;if(W(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var i=Y(),a={},o=!1;return T(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&ut(e.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ut={useDefault:!0,enableAll:!1,enableNone:!1},pT={useDefault:!1,enableAll:!0,enableNone:!0};function mo(r,e,t,n){n=n||Ut;var i=t.index,a=t.id,o=t.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(Ae(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Ae(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:e,index:i,id:a,name:o}),s)}function G0(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function dT(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function gT(r){return r==="auto"?J.domSupported?"html":"richText":r||"html"}function xN(r,e){var t=Y(),n=[];return T(r,function(i){var a=e(i);(t.get(a)||(n.push(a),t.set(a,[]))).push(i)}),{keys:n,buckets:t}}function H0(r,e,t,n,i){var a=e==null||e==="auto";if(n==null)return n;if(pt(n)){var o=Cp(t||0,n,i);return Dt(o,a?Math.max(er(t||0),er(n)):e)}else{if(W(n))return i<1?t:n;for(var s=[],l=t,u=n,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]=(i<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,p=u[h],o=Cp(v,p,i);s[h]=Dt(o,a?Math.max(er(v),er(p)):e)}}return s}}var yT=".",hn="___EC__COMPONENT__CONTAINER___",W0="___EC__EXTENDED_CLASS___";function rr(r){var e={main:"",sub:""};if(r){var t=r.split(yT);e.main=t[0]||"",e.sub=t[1]||""}return e}function mT(r){Ae(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function _T(r){return!!(r&&r[W0])}function Ov(r,e){r.$constructor=r,r.extend=function(t){var n=this,i;return ST(n)?i=function(a){k(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(t.$constructor||n).apply(this,arguments)},Cw(i,this)),N(i.prototype,t),i[W0]=!0,i.extend=this.extend,i.superCall=xT,i.superApply=TT,i.superClass=n,i}}function ST(r){return q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function U0(r,e){r.extend=e.extend}var bT=Math.round(Math.random()*10);function wT(r){var e=["__\0is_clz",bT++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function xT(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function TT(r,e,t){return this.superClass.prototype[e].apply(r,t)}function xl(r){var e={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){mT(i),n.prototype.type=i;var a=rr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==hn){var o=t(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=e[n];if(o&&o[hn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=rr(n),a=[],o=e[i.main];return o&&o[hn]?T(o,function(s,l){l!==hn&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=rr(n);return!!e[i.main]},r.getAllClassMainTypes=function(){var n=[];return T(e,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=rr(n),a=e[i.main];return a&&a[hn]};function t(n){var i=e[n.main];return(!i||!i[hn])&&(i=e[n.main]={},i[hn]=!0),i}}function ro(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&ut(i,l)>=0||a&&ut(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var MT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],CT=ro(MT),DT=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return CT(this,e,t)},r}(),yh=new go(50);function AT(r){if(typeof r=="string"){var e=yh.get(r);return e&&e.image}else return r}function Y0(r,e,t,n,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=yh.get(r),o={hostEl:t,cb:n,cbPayload:i};return a?(e=a.image,!Tl(e)&&a.pending.push(o)):(e=Hi.loadImage(r,Ap,Ap),e.__zrImageSrc=r,yh.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Ap(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Tl(r){return r&&r.width&&r.height}var Au=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function IT(r,e,t,n,i,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
`);a=Z0(t,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)X0(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function Z0(r,e,t,n){n=n||{};var i=N({},n);i.font=e,t=K(t,"..."),i.maxIterations=K(n.maxIterations,2);var a=i.minChar=K(n.minChar,0);i.cnCharWidth=pe("国",e);var o=i.ascCharWidth=pe("a",e);i.placeholder=K(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=pe(t,e);return u>s&&(t="",u=0),s=r-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function X0(r,e,t){var n=t.containerWidth,i=t.font,a=t.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=pe(e,i);if(o<=n){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?LT(e,a,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=pe(e,i)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function LT(r,e,t,n){for(var i=0,a=0,o=r.length;a<o&&i<e;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?t:n}return a}function PT(r,e){r!=null&&(r+="");var t=e.overflow,n=e.padding,i=e.font,a=t==="truncate",o=Pv(i),s=K(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,h=e.width,c;h!=null&&(t==="break"||t==="breakAll")?c=r?$0(r,e.font,h,t==="breakAll",0).lines:[]:c=r?r.split(`
`):[];var v=c.length*s,p=K(e.height,v);if(v>p&&u){var d=Math.floor(p/s);f=f||c.length>d,c=c.slice(0,d)}if(r&&a&&h!=null)for(var g=Z0(h,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},m=0;m<c.length;m++)X0(y,c[m],g),c[m]=y.textLine,f=f||y.isTruncated;for(var _=p,S=0,m=0;m<c.length;m++)S=Math.max(pe(c[m],i),S);h==null&&(h=S);var w=S;return n&&(_+=n[0]+n[2],w+=n[1]+n[3],h+=n[1]+n[3]),l&&(w=h),{lines:c,height:p,outerWidth:w,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:v,width:h,isTruncated:f}}var RT=function(){function r(){}return r}(),Ip=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),kT=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function ET(r,e){var t=new kT;if(r!=null&&(r+=""),!r)return t;for(var n=e.width,i=e.height,a=e.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Au.lastIndex=0,l;(l=Au.exec(r))!=null;){var u=l.index;u>s&&Iu(t,r.substring(s,u),e,o),Iu(t,l[2],e,o,l[1]),s=Au.lastIndex}s<r.length&&Iu(t,r.substring(s,r.length),e,o);var f=[],h=0,c=0,v=e.padding,p=a==="truncate",d=e.lineOverflow==="truncate",g={};function y(G,H,Z){G.width=H,G.lineHeight=Z,h+=Z,c=Math.max(c,H)}t:for(var m=0;m<t.lines.length;m++){for(var _=t.lines[m],S=0,w=0,b=0;b<_.tokens.length;b++){var x=_.tokens[b],M=x.styleName&&e.rich[x.styleName]||{},C=x.textPadding=M.padding,A=C?C[1]+C[3]:0,D=x.font=M.font||e.font;x.contentHeight=Pv(D);var I=K(M.height,x.contentHeight);if(x.innerHeight=I,C&&(I+=C[0]+C[2]),x.height=I,x.lineHeight=Fa(M.lineHeight,e.lineHeight,I),x.align=M&&M.align||e.align,x.verticalAlign=M&&M.verticalAlign||"middle",d&&i!=null&&h+x.lineHeight>i){var L=t.lines.length;b>0?(_.tokens=_.tokens.slice(0,b),y(_,w,S),t.lines=t.lines.slice(0,m+1)):t.lines=t.lines.slice(0,m),t.isTruncated=t.isTruncated||t.lines.length<L;break t}var P=M.width,R=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")x.percentWidth=P,f.push(x),x.contentWidth=pe(x.text,D);else{if(R){var E=M.backgroundColor,z=E&&E.image;z&&(z=AT(z),Tl(z)&&(x.width=Math.max(x.width,z.width*I/z.height)))}var O=p&&n!=null?n-w:null;O!=null&&O<x.width?!R||O<A?(x.text="",x.width=x.contentWidth=0):(IT(g,x.text,O-A,D,e.ellipsis,{minChar:e.truncateMinChar}),x.text=g.text,t.isTruncated=t.isTruncated||g.isTruncated,x.width=x.contentWidth=pe(x.text,D)):x.contentWidth=pe(x.text,D)}x.width+=A,w+=x.width,M&&(S=Math.max(S,x.lineHeight))}y(_,w,S)}t.outerWidth=t.width=K(n,c),t.outerHeight=t.height=K(i,h),t.contentHeight=h,t.contentWidth=c,v&&(t.outerWidth+=v[1]+v[3],t.outerHeight+=v[0]+v[2]);for(var m=0;m<f.length;m++){var x=f[m],V=x.percentWidth;x.width=parseInt(V,10)/100*t.width}return t}function Iu(r,e,t,n,i){var a=e==="",o=i&&t.rich[i]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var p=ar(o.width,n.width)+v;s.length>0&&p+n.accumWidth>n.width&&(f=e.split(`
`),u=!0),n.accumWidth=p}else{var d=$0(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+v,h=d.linesWidths,f=d.lines}}else f=e.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new RT;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:pe(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Ip)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new Ip([m]))}}function OT(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var NT=Tr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function BT(r){return OT(r)?!!NT[r]:!0}function $0(r,e,t,n,i){for(var a=[],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),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=pe(c,e),p=n?!1:!BT(c);if(a.length?f+v>t:i+f+v>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):p?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,p?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var mh="__zr_style_"+Math.round(Math.random()*10),zn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ml={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};zn[mh]=!0;var Lp=["z","z2","invisible"],FT=["invisible"],Xn=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=_t(t),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(t[a]):r.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&VT(this,t,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new at(0,0,0,0)),n?at.applyTransform(t,i,n):t.copy(i),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new at(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:N(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Ia,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ia)},e.prototype.styleUpdated=function(){this.__dirty&=~Ia},e.prototype.createStyle=function(t){return ml(zn,t)},e.prototype.useStyle=function(t){t[mh]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[mh]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Lp)},e.prototype._applyStateObj=function(t,n,i,a,o,s){r.prototype._applyStateObj.call(this,t,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=_t(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=_t(u),c=0;c<p.length;c++){var v=p[c];this.style[v]=this.style[v]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var d=this.__inHover?FT:Lp,c=0;c<d.length;c++){var v=d[c];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),i,a=0;a<t.length;a++){var o=t[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(t,n){return N(t,n),t},e.prototype.getAnimationStyleProps=function(){return Ml},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=ve|Ia}(),e}(wl),Lu=new at(0,0,0,0),Pu=new at(0,0,0,0);function VT(r,e,t){return Lu.copy(r.getBoundingRect()),r.transform&&Lu.applyTransform(r.transform),Pu.width=e,Pu.height=t,!Lu.intersect(Pu)}var re=Math.min,ne=Math.max,Ru=Math.sin,ku=Math.cos,vn=Math.PI*2,ko=Ui(),Eo=Ui(),Oo=Ui();function TN(r,e,t){if(r.length!==0){for(var n=r[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],i=re(i,n[0]),a=ne(a,n[0]),o=re(o,n[1]),s=ne(s,n[1]);e[0]=i,e[1]=o,t[0]=a,t[1]=s}}function Pp(r,e,t,n,i,a){i[0]=re(r,t),i[1]=re(e,n),a[0]=ne(r,t),a[1]=ne(e,n)}var Rp=[],kp=[];function zT(r,e,t,n,i,a,o,s,l,u){var f=S0,h=It,c=f(r,t,i,o,Rp);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,t,i,o,Rp[v]);l[0]=re(p,l[0]),u[0]=ne(p,u[0])}c=f(e,n,a,s,kp);for(var v=0;v<c;v++){var d=h(e,n,a,s,kp[v]);l[1]=re(d,l[1]),u[1]=ne(d,u[1])}l[0]=re(r,l[0]),u[0]=ne(r,u[0]),l[0]=re(o,l[0]),u[0]=ne(o,u[0]),l[1]=re(e,l[1]),u[1]=ne(e,u[1]),l[1]=re(s,l[1]),u[1]=ne(s,u[1])}function GT(r,e,t,n,i,a,o,s){var l=w0,u=Ht,f=ne(re(l(r,t,i),1),0),h=ne(re(l(e,n,a),1),0),c=u(r,t,i,f),v=u(e,n,a,h);o[0]=re(r,i,c),o[1]=re(e,a,v),s[0]=ne(r,i,c),s[1]=ne(e,a,v)}function HT(r,e,t,n,i,a,o,s,l){var u=Wr,f=Ur,h=Math.abs(i-a);if(h%vn<1e-4&&h>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(ko[0]=ku(i)*t+r,ko[1]=Ru(i)*n+e,Eo[0]=ku(a)*t+r,Eo[1]=Ru(a)*n+e,u(s,ko,Eo),f(l,ko,Eo),i=i%vn,i<0&&(i=i+vn),a=a%vn,a<0&&(a=a+vn),i>a&&!o?a+=vn:i<a&&o&&(i+=vn),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Oo[0]=ku(v)*t+r,Oo[1]=Ru(v)*n+e,u(s,Oo,s),f(l,Oo,l))}var gt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},cn=[],pn=[],$e=[],Rr=[],qe=[],Ke=[],Eu=Math.min,Ou=Math.max,dn=Math.cos,gn=Math.sin,cr=Math.abs,_h=Math.PI,Gr=_h*2,Nu=typeof Float32Array<"u",sa=[];function Bu(r){var e=Math.round(r/_h*1e8)/1e8;return e%2*_h}function q0(r,e){var t=Bu(r[0]);t<0&&(t+=Gr);var n=t-r[0],i=r[1];i+=n,!e&&i-t>=Gr?i=t+Gr:e&&t-i>=Gr?i=t-Gr:!e&&t>i?i=t+(Gr-Bu(t-i)):e&&t<i&&(i=t-(Gr-Bu(i-t))),r[0]=t,r[1]=i}var en=function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(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(e,t,n){n=n||0,n>0&&(this._ux=cr(n/Hs/e)||0,this._uy=cr(n/Hs/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},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(e,t){return this._drawPendingPt(),this.addData(gt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var n=cr(e-this._xi),i=cr(t-this._yi),a=n>this._ux||i>this._uy;if(this.addData(gt.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,i,a,o){return this._drawPendingPt(),this.addData(gt.C,e,t,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(gt.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(e,t,n,i,a,o){this._drawPendingPt(),sa[0]=i,sa[1]=a,q0(sa,o),i=sa[0],a=sa[1];var s=a-i;return this.addData(gt.A,e,t,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,a,o),this._xi=dn(a)*n+e,this._yi=gn(a)*n+t,this},r.prototype.arcTo=function(e,t,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,a),this},r.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(gt.R,e,t,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(gt.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Nu&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,a=0;a<t;a++)n+=e[a].len();Nu&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<t;a++)for(var o=e[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(e,t,n,i,a,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 e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Nu&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){$e[0]=$e[1]=qe[0]=qe[1]=Number.MAX_VALUE,Rr[0]=Rr[1]=Ke[0]=Ke[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],i=t,a=n),s){case gt.M:t=i=e[o++],n=a=e[o++],qe[0]=i,qe[1]=a,Ke[0]=i,Ke[1]=a;break;case gt.L:Pp(t,n,e[o],e[o+1],qe,Ke),t=e[o++],n=e[o++];break;case gt.C:zT(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],qe,Ke),t=e[o++],n=e[o++];break;case gt.Q:GT(t,n,e[o++],e[o++],e[o],e[o+1],qe,Ke),t=e[o++],n=e[o++];break;case gt.A:var u=e[o++],f=e[o++],h=e[o++],c=e[o++],v=e[o++],p=e[o++]+v;o+=1;var d=!e[o++];l&&(i=dn(v)*h+u,a=gn(v)*c+f),HT(u,f,h,c,v,p,d,qe,Ke),t=dn(p)*h+u,n=gn(p)*c+f;break;case gt.R:i=t=e[o++],a=n=e[o++];var g=e[o++],y=e[o++];Pp(i,a,i+g,a+y,qe,Ke);break;case gt.Z:t=i,n=a;break}Wr($e,$e,qe),Ur(Rr,Rr,Ke)}return o===0&&($e[0]=$e[1]=Rr[0]=Rr[1]=0),new at($e[0],$e[1],Rr[0]-$e[0],Rr[1]-$e[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<t;){var v=e[c++],p=c===1;p&&(a=e[c],o=e[c+1],s=a,l=o);var d=-1;switch(v){case gt.M:a=s=e[c++],o=l=e[c++];break;case gt.L:{var g=e[c++],y=e[c++],m=g-a,_=y-o;(cr(m)>n||cr(_)>i||c===t-1)&&(d=Math.sqrt(m*m+_*_),a=g,o=y);break}case gt.C:{var S=e[c++],w=e[c++],g=e[c++],y=e[c++],b=e[c++],x=e[c++];d=sx(a,o,S,w,g,y,b,x,10),a=b,o=x;break}case gt.Q:{var S=e[c++],w=e[c++],g=e[c++],y=e[c++];d=ux(a,o,S,w,g,y,10),a=g,o=y;break}case gt.A:var M=e[c++],C=e[c++],A=e[c++],D=e[c++],I=e[c++],L=e[c++],P=L+I;c+=1,p&&(s=dn(I)*A+M,l=gn(I)*D+C),d=Ou(A,D)*Eu(Gr,Math.abs(L)),a=dn(P)*A+M,o=gn(P)*D+C;break;case gt.R:{s=a=e[c++],l=o=e[c++];var R=e[c++],E=e[c++];d=R*2+E*2;break}case gt.Z:{var m=s-a,_=l-o;d=Math.sqrt(m*m+_*_),a=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=t<1,p,d,g=0,y=0,m,_=0,S,w;if(!(v&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m)))t:for(var b=0;b<o;){var x=n[b++],M=b===1;switch(M&&(u=n[b],f=n[b+1],s=u,l=f),x!==gt.L&&_>0&&(e.lineTo(S,w),_=0),x){case gt.M:s=u=n[b++],l=f=n[b++],e.moveTo(u,f);break;case gt.L:{h=n[b++],c=n[b++];var C=cr(h-u),A=cr(c-f);if(C>i||A>a){if(v){var D=p[y++];if(g+D>m){var I=(m-g)/D;e.lineTo(u*(1-I)+h*I,f*(1-I)+c*I);break t}g+=D}e.lineTo(h,c),u=h,f=c,_=0}else{var L=C*C+A*A;L>_&&(S=h,w=c,_=L)}break}case gt.C:{var P=n[b++],R=n[b++],E=n[b++],z=n[b++],O=n[b++],V=n[b++];if(v){var D=p[y++];if(g+D>m){var I=(m-g)/D;Fs(u,P,E,O,I,cn),Fs(f,R,z,V,I,pn),e.bezierCurveTo(cn[1],pn[1],cn[2],pn[2],cn[3],pn[3]);break t}g+=D}e.bezierCurveTo(P,R,E,z,O,V),u=O,f=V;break}case gt.Q:{var P=n[b++],R=n[b++],E=n[b++],z=n[b++];if(v){var D=p[y++];if(g+D>m){var I=(m-g)/D;Vs(u,P,E,I,cn),Vs(f,R,z,I,pn),e.quadraticCurveTo(cn[1],pn[1],cn[2],pn[2]);break t}g+=D}e.quadraticCurveTo(P,R,E,z),u=E,f=z;break}case gt.A:var G=n[b++],H=n[b++],Z=n[b++],et=n[b++],lt=n[b++],vt=n[b++],Jt=n[b++],ye=!n[b++],fe=Z>et?Z:et,Et=cr(Z-et)>.001,Tt=lt+vt,rt=!1;if(v){var D=p[y++];g+D>m&&(Tt=lt+vt*(m-g)/D,rt=!0),g+=D}if(Et&&e.ellipse?e.ellipse(G,H,Z,et,Jt,lt,Tt,ye):e.arc(G,H,fe,lt,Tt,ye),rt)break t;M&&(s=dn(lt)*Z+G,l=gn(lt)*et+H),u=dn(Tt)*Z+G,f=gn(Tt)*et+H;break;case gt.R:s=u=n[b],l=f=n[b+1],h=n[b++],c=n[b++];var ft=n[b++],Xe=n[b++];if(v){var D=p[y++];if(g+D>m){var Pt=m-g;e.moveTo(h,c),e.lineTo(h+Eu(Pt,ft),c),Pt-=ft,Pt>0&&e.lineTo(h+ft,c+Eu(Pt,Xe)),Pt-=Xe,Pt>0&&e.lineTo(h+Ou(ft-Pt,0),c+Xe),Pt-=ft,Pt>0&&e.lineTo(h,c+Ou(Xe-Pt,0));break t}g+=D}e.rect(h,c,ft,Xe);break;case gt.Z:if(v){var D=p[y++];if(g+D>m){var I=(m-g)/D;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.CMD=gt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();function ui(r,e,t,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>r+s&&a>t+s||a<r-s&&a<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function WT(r,e,t,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>e+h&&f>n+h&&f>a+h&&f>s+h||f<e-h&&f<n-h&&f<a-h&&f<s-h||u>r+h&&u>t+h&&u>i+h&&u>o+h||u<r-h&&u<t-h&&u<i-h&&u<o-h)return!1;var c=b0(r,e,t,n,i,a,o,s,u,f,null);return c<=h/2}function UT(r,e,t,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>r+u&&s>t+u&&s>i+u||s<r-u&&s<t-u&&s<i-u)return!1;var f=x0(r,e,t,n,i,a,s,l,null);return f<=u/2}var Ep=Math.PI*2;function Xr(r){return r%=Ep,r<0&&(r+=Ep),r}var la=Math.PI*2;function YT(r,e,t,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(n-i)%la<1e-4)return!0;if(a){var h=n;n=Xr(i),i=Xr(h)}else n=Xr(n),i=Xr(i);n>i&&(i+=la);var c=Math.atan2(l,s);return c<0&&(c+=la),c>=n&&c<=i||c+la>=n&&c+la<=i}function yr(r,e,t,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===i?1/0:l>i?s:0}var kr=en.CMD,yn=Math.PI*2,ZT=1e-4;function XT(r,e){return Math.abs(r-e)<ZT}var Zt=[-1,-1,-1],Te=[-1,-1];function $T(){var r=Te[0];Te[0]=Te[1],Te[1]=r}function qT(r,e,t,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=Bs(e,n,a,s,u,Zt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,p=void 0,d=0;d<f;d++){var g=Zt[d],y=g===0||g===1?.5:1,m=It(r,t,i,o,g);m<l||(c<0&&(c=S0(e,n,a,s,Te),Te[1]<Te[0]&&c>1&&$T(),v=It(e,n,a,s,Te[0]),c>1&&(p=It(e,n,a,s,Te[1]))),c===2?g<Te[0]?h+=v<e?y:-y:g<Te[1]?h+=p<v?y:-y:h+=s<p?y:-y:g<Te[0]?h+=v<e?y:-y:h+=s<v?y:-y)}return h}function KT(r,e,t,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=lx(e,n,a,s,Zt);if(l===0)return 0;var u=w0(e,n,a);if(u>=0&&u<=1){for(var f=0,h=Ht(e,n,a,u),c=0;c<l;c++){var v=Zt[c]===0||Zt[c]===1?.5:1,p=Ht(r,t,i,Zt[c]);p<o||(Zt[c]<u?f+=h<e?v:-v:f+=a<h?v:-v)}return f}else{var v=Zt[0]===0||Zt[0]===1?.5:1,p=Ht(r,t,i,Zt[0]);return p<o?0:a<e?v:-v}}function QT(r,e,t,n,i,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Zt[0]=-l,Zt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=yn-1e-4){n=0,i=yn;var f=a?1:-1;return o>=Zt[0]+r&&o<=Zt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=yn,i+=yn);for(var c=0,v=0;v<2;v++){var p=Zt[v];if(p+r>o){var d=Math.atan2(s,p),f=a?1:-1;d<0&&(d=yn+d),(d>=n&&d<=i||d+yn>=n&&d+yn<=i)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),c+=f)}}return c}function K0(r,e,t,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,p=0;p<o;){var d=a[p++],g=p===1;switch(d===kr.M&&p>1&&(t||(s+=yr(l,u,f,h,n,i))),g&&(l=a[p],u=a[p+1],f=l,h=u),d){case kr.M:f=a[p++],h=a[p++],l=f,u=h;break;case kr.L:if(t){if(ui(l,u,a[p],a[p+1],e,n,i))return!0}else s+=yr(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case kr.C:if(t){if(WT(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],e,n,i))return!0}else s+=qT(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case kr.Q:if(t){if(UT(l,u,a[p++],a[p++],a[p],a[p+1],e,n,i))return!0}else s+=KT(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case kr.A:var y=a[p++],m=a[p++],_=a[p++],S=a[p++],w=a[p++],b=a[p++];p+=1;var x=!!(1-a[p++]);c=Math.cos(w)*_+y,v=Math.sin(w)*S+m,g?(f=c,h=v):s+=yr(l,u,c,v,n,i);var M=(n-y)*S/_+y;if(t){if(YT(y,m,S,w,w+b,x,e,M,i))return!0}else s+=QT(y,m,S,w,w+b,x,M,i);l=Math.cos(w+b)*_+y,u=Math.sin(w+b)*S+m;break;case kr.R:f=l=a[p++],h=u=a[p++];var C=a[p++],A=a[p++];if(c=f+C,v=h+A,t){if(ui(f,h,c,h,e,n,i)||ui(c,h,c,v,e,n,i)||ui(c,v,f,v,e,n,i)||ui(f,v,f,h,e,n,i))return!0}else s+=yr(c,h,c,v,n,i),s+=yr(f,v,f,h,n,i);break;case kr.Z:if(t){if(ui(l,u,f,h,e,n,i))return!0}else s+=yr(l,u,f,h,n,i);l=f,u=h;break}}return!t&&!XT(u,h)&&(s+=yr(l,u,f,h,n,i)||0),s!==0}function JT(r,e,t){return K0(r,0,!1,e,t)}function jT(r,e,t,n){return K0(r,e,!0,t,n)}var Q0=nt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},zn),tM={style:nt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ml.style)},Fu=ja.concat(["invisible","culling","z","z2","zlevel","parent"]),ct=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Fu.length;++s)i[Fu[s]]=this[Fu[s]];i.__dirty|=ve}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=_t(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=t[o];o==="style"?this.style?N(this.style,s):this.useStyle(s):o==="shape"?N(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(W(t)){var n=zs(t,0);return n>.5?ph:n>.2?Ox:dh}else if(t)return dh}return ph},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(W(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=zs(t,0)<ch;if(a===o)return n}},e.prototype.buildPath=function(t,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~xi},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new en(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,i=!t;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&xi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect(),o=this.style;if(t=i[0],n=i[1],a.contain(t,n)){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)),jT(s,l/u,t,n)))return!0}if(this.hasFill())return JT(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=xi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=n:N(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&xi)},e.prototype.createStyle=function(t){return ml(Q0,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=N({},this.shape))},e.prototype._applyStateObj=function(t,n,i,a,o,s){r.prototype._applyStateObj.call(this,t,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=N({},i.shape),N(u,n.shape)):(u=N({},a?this.shape:i.shape),N(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=N({},this.shape);for(var f={},h=_t(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(t,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),i,a=0;a<t.length;a++){var o=t[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return tM},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(a){k(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return $(t.style)},o.prototype.getDefaultShape=function(){return $(t.shape)},o}(e);for(var i in t)typeof t[i]=="function"&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=ve|Ia|xi}(),e}(Xn),eM=nt({strokeFirst:!0,font:Yn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Q0),no=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return n!=null&&n!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return ml(eM,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var n=t.text;n!=null?n+="":n="";var i=bl(n,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var a=t.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Xn);no.prototype.type="tspan";var rM=nt({x:0,y:0},zn),nM={style:nt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ml.style)};function iM(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var We=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return ml(rM,t)},e.prototype._getSize=function(t){var n=this.style,i=n[t];if(i!=null)return i;var a=iM(n.image)?n.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return nM},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new at(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Xn);We.prototype.type="image";function aM(r,e){var t=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),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>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(t+s,n),r.lineTo(t+i-l,n),l!==0&&r.arc(t+i-l,n+l,l,-Math.PI/2,0),r.lineTo(t+i,n+a-u),u!==0&&r.arc(t+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(t+f,n+a),f!==0&&r.arc(t+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5)}var Ai=Math.round;function J0(r,e,t){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&(Ai(n*2)===Ai(i*2)&&(r.x1=r.x2=En(n,s,!0)),Ai(a*2)===Ai(o*2)&&(r.y1=r.y2=En(a,s,!0))),r}}function j0(r,e,t){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=En(n,s,!0),r.y=En(i,s,!0),r.width=Math.max(En(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(En(i+o,s,!1)-r.y,o===0?0:1)),r}}function En(r,e,t){if(!e)return r;var n=Ai(r*2);return(n+Ai(e))%2===0?n/2:(n+(t?1:-1))/2}var oM=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),sM={},dt=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new oM},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=j0(sM,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?aM(t,n):t.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ct);dt.prototype.type="rect";var Op={fill:"#000"},Np=2,lM={style:nt({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},Ml.style)},bt=function(r){k(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Op,n.attr(t),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,cM(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new at(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t)):(a=a||l.clone(),a.union(l))}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Op},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,n){if(!n)return t;var i=n.rich,a=t.rich||i&&{};return N(t,n),i&&a?(this._mergeRich(a,i),t.rich=a):a&&(t.rich=a),t},e.prototype._mergeRich=function(t,n){for(var i=_t(n),a=0;a<i.length;a++){var o=i[a];t[o]=t[o]||{},N(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return lM},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||Yn,i=t.padding,a=Wp(t),o=PT(a,t),s=Vu(t),l=!!t.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,p=this._defaultStyle;this.isTruncated=!!o.isTruncated;var d=t.x||0,g=t.y||0,y=t.align||p.align||"left",m=t.verticalAlign||p.verticalAlign||"top",_=d,S=Ti(g,o.contentHeight,m);if(s||i){var w=Pa(d,f,y),b=Ti(g,u,m);s&&this._renderBackground(t,t,w,b,f,u)}S+=v/2,i&&(_=Hp(d,y,i),m==="top"?S+=i[0]:m==="bottom"&&(S-=i[2]));for(var x=0,M=!1,C=Gp("fill"in t?t.fill:(M=!0,p.fill)),A=zp("stroke"in t?t.stroke:!l&&(!p.autoStroke||M)?(x=Np,p.stroke):null),D=t.textShadowBlur>0,I=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<c.length;P++){var R=this._getOrCreateChild(no),E=R.createStyle();R.useStyle(E),E.text=c[P],E.x=_,E.y=S,E.textAlign=y,E.textBaseline="middle",E.opacity=t.opacity,E.strokeFirst=!0,D&&(E.shadowBlur=t.textShadowBlur||0,E.shadowColor=t.textShadowColor||"transparent",E.shadowOffsetX=t.textShadowOffsetX||0,E.shadowOffsetY=t.textShadowOffsetY||0),E.stroke=A,E.fill=C,A&&(E.lineWidth=t.lineWidth||x,E.lineDash=t.lineDash,E.lineDashOffset=t.lineDashOffset||0),E.font=n,Fp(E,t),S+=v,I&&R.setBoundingRect(new at(Pa(E.x,h,E.textAlign),Ti(E.y,L,E.textBaseline),h,L))}},e.prototype._updateRichTexts=function(){var t=this.style,n=Wp(t),i=ET(n,t),a=i.width,o=i.outerWidth,s=i.outerHeight,l=t.padding,u=t.x||0,f=t.y||0,h=this._defaultStyle,c=t.align||h.align,v=t.verticalAlign||h.verticalAlign;this.isTruncated=!!i.isTruncated;var p=Pa(u,o,c),d=Ti(f,s,v),g=p,y=d;l&&(g+=l[3],y+=l[0]);var m=g+a;Vu(t)&&this._renderBackground(t,t,p,d,o,s);for(var _=!!t.backgroundColor,S=0;S<i.lines.length;S++){for(var w=i.lines[S],b=w.tokens,x=b.length,M=w.lineHeight,C=w.width,A=0,D=g,I=m,L=x-1,P=void 0;A<x&&(P=b[A],!P.align||P.align==="left");)this._placeToken(P,t,M,y,D,"left",_),C-=P.width,D+=P.width,A++;for(;L>=0&&(P=b[L],P.align==="right");)this._placeToken(P,t,M,y,I,"right",_),C-=P.width,I-=P.width,L--;for(D+=(a-(D-g)-(m-I)-C)/2;A<=L;)P=b[A],this._placeToken(P,t,M,y,D+P.width/2,"center",_),D+=P.width,A++;y+=M}},e.prototype._placeToken=function(t,n,i,a,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=a+i/2;f==="top"?h=a+t.height/2:f==="bottom"&&(h=a+i-t.height/2);var c=!t.isLineHolder&&Vu(u);c&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var v=!!u.backgroundColor,p=t.textPadding;p&&(o=Hp(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(no),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Gp("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=zp("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=Np,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||Yn,g.opacity=Fa(u.opacity,n.opacity,1),Fp(g,u),w&&(g.lineWidth=Fa(u.lineWidth,n.lineWidth,_),g.lineDash=K(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var x=t.contentWidth,M=t.contentHeight;d.setBoundingRect(new at(Pa(g.x,x,g.textAlign),Ti(g.y,M,g.textBaseline),x,M))},e.prototype._renderBackground=function(t,n,i,a,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,c=l&&!h,v=t.borderRadius,p=this,d,g;if(c||t.lineHeight||u&&f){d=this._getOrCreateChild(dt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,d.dirtyShape()}if(c){var m=d.style;m.fill=l||null,m.fillOpacity=K(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(We),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=K(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Fa(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return vM(t)&&(n=[t.fontStyle,t.fontWeight,hM(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&Be(n)||t.textFont||t.font},e}(Xn),uM={left:!0,right:1,center:1},fM={top:1,bottom:1,middle:1},Bp=["fontStyle","fontWeight","fontSize","fontFamily"];function hM(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?wv+"px":r+"px"}function Fp(r,e){for(var t=0;t<Bp.length;t++){var n=Bp[t],i=e[n];i!=null&&(r[n]=i)}}function vM(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function cM(r){return Vp(r),T(r.rich,Vp),r}function Vp(r){if(r){r.font=bt.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||uM[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||fM[t]?t:"top";var n=r.padding;n&&(r.padding=s0(r.padding))}}function zp(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Gp(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Hp(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function Wp(r){var e=r.text;return e!=null&&(e+=""),e}function Vu(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ot=St(),pM=function(r,e,t,n){if(n){var i=ot(n);i.dataIndex=t,i.dataType=e,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ot(a);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},Up=1,Yp={},t_=St(),Nv=St(),Bv=0,Cl=1,Dl=2,se=["emphasis","blur","select"],Ys=["normal","emphasis","blur","select"],e_=10,dM=9,Gn="highlight",xs="downplay",Wa="select",Ts="unselect",Ua="toggleSelect";function fi(r){return r!=null&&r!=="none"}function Al(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function r_(r){Al(r,"emphasis",Dl)}function n_(r){r.hoverState===Dl&&Al(r,"normal",Bv)}function Fv(r){Al(r,"blur",Cl)}function i_(r){r.hoverState===Cl&&Al(r,"normal",Bv)}function gM(r){r.selected=!0}function yM(r){r.selected=!1}function Zp(r,e,t){e(r,t)}function Ir(r,e,t){Zp(r,e,t),r.isGroup&&r.traverse(function(n){Zp(n,e,t)})}function Sh(r,e){switch(e){case"emphasis":r.hoverState=Dl;break;case"normal":r.hoverState=Bv;break;case"blur":r.hoverState=Cl;break;case"select":r.selected=!0}}function mM(r,e,t,n){for(var i=r.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function _M(r,e,t,n){var i=t&&ut(t,"select")>=0,a=!1;if(r instanceof ct){var o=t_(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(fi(s)||fi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=N({},n),u=N({},u),u.fill=s):!fi(u.fill)&&fi(s)?(a=!0,n=N({},n),u=N({},u),u.fill=up(s)):!fi(u.stroke)&&fi(l)&&(a||(n=N({},n),u=N({},u)),u.stroke=up(l)),n.style=u}}if(n&&n.z2==null){a||(n=N({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??e_)}return n}function SM(r,e,t){if(t&&t.z2==null){t=N({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??dM)}return t}function bM(r,e,t){var n=ut(r.currentStates,e)>=0,i=r.style.opacity,a=n?null:mM(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=N({},t),o=N({opacity:n?i:a.opacity*.1},o),t.style=o),t}function zu(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return _M(this,r,e,t);if(r==="blur")return bM(this,r,t);if(r==="select")return SM(this,r,t)}return t}function Vv(r){r.stateProxy=zu;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=zu),t&&(t.stateProxy=zu)}function Xp(r,e){!l_(r,e)&&!r.__highByOuter&&Ir(r,r_)}function $p(r,e){!l_(r,e)&&!r.__highByOuter&&Ir(r,n_)}function $n(r,e){r.__highByOuter|=1<<(e||0),Ir(r,r_)}function qn(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ir(r,n_)}function a_(r){Ir(r,Fv)}function zv(r){Ir(r,i_)}function o_(r){Ir(r,gM)}function s_(r){Ir(r,yM)}function l_(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function u_(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(i,a){var o=Nv(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){i_(u)}),s&&t.push(a)),o.isBlured=!1}),T(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function bh(r,e,t,n){var i=n.getModel();t=t||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&zv(c)}}if(r!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!c||e==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Fv(g)}),ae(e))a(u.getData(),e);else if(X(e))for(var p=_t(e),d=0;d<p.length;d++)a(u.getData(p[d]),e[p[d]]);l.push(u),Nv(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function wh(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){Nv(n).isBlured=!0;var i=t.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Fv(a)})}}}function wM(r,e,t){var n=r.seriesIndex,i=r.getData(e.dataType);if(i){var a=Zn(i,e);a=(B(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ot(o);bh(n,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&bh(n,f,h,t)}}}function Gv(r,e,t,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return i;var a=n.getModel().getComponent(r,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(ot(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function xM(r,e,t){var n=ot(r),i=Gv(n.componentMainType,n.componentIndex,n.componentHighDownName,t),a=i.dispatchers,o=i.focusSelf;a?(o&&wh(n.componentMainType,n.componentIndex,t),T(a,function(s){return Xp(s,e)})):(bh(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&wh(n.componentMainType,n.componentIndex,t),Xp(r,e))}function TM(r,e,t){u_(t);var n=ot(r),i=Gv(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;i?T(i,function(a){return $p(a,e)}):$p(r,e)}function MM(r,e,t){if(Th(e)){var n=e.dataType,i=r.getData(n),a=Zn(i,e);B(a)||(a=[a]),r[e.type===Ua?"toggleSelect":e.type===Wa?"select":"unselect"](a,n)}}function qp(r){var e=r.getAllData();T(e,function(t){var n=t.data,i=t.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?o_(a):s_(a)})})}function CM(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();T(n,function(i){i.data;var a=i.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Zs(r,e,t){Hv(r,!0),Ir(r,Vv),AM(r,e,t)}function DM(r){Hv(r,!1)}function Dr(r,e,t,n){n?DM(r):Zs(r,e,t)}function AM(r,e,t){var n=ot(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var Kp=["emphasis","blur","select"],IM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kn(r,e,t,n){t=t||"itemStyle";for(var i=0;i<Kp.length;i++){var a=Kp[i],o=e.getModel([a,t]),s=r.ensureState(a);s.style=n?n(o):o[IM[t]]()}}function Hv(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function xh(r){return!!(r&&r.__highDownDispatcher)}function LM(r,e,t){var n=ot(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function PM(r){var e=Yp[r];return e==null&&Up<=32&&(e=Yp[r]=Up++),e}function Th(r){var e=r.type;return e===Wa||e===Ts||e===Ua}function Qp(r){var e=r.type;return e===Gn||e===xs}function RM(r){var e=t_(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var hi=en.CMD,kM=[[],[],[]],Jp=Math.sqrt,EM=Math.atan2;function f_(r,e){if(e){var t=r.data,n=r.len(),i,a,o,s,l,u,f=hi.M,h=hi.C,c=hi.L,v=hi.R,p=hi.A,d=hi.Q;for(o=0,s=0;o<n;){switch(i=t[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case d:a=2;break;case p:var g=e[4],y=e[5],m=Jp(e[0]*e[0]+e[1]*e[1]),_=Jp(e[2]*e[2]+e[3]*e[3]),S=EM(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],Nt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],Nt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var w=kM[l];w[0]=t[o++],w[1]=t[o++],Nt(w,w,e),t[s++]=w[0],t[s++]=w[1]}}r.increaseVersion()}}var Gu=Math.sqrt,No=Math.sin,Bo=Math.cos,ua=Math.PI;function jp(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Mh(r,e){return(r[0]*e[0]+r[1]*e[1])/(jp(r)*jp(e))}function td(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Mh(r,e))}function ed(r,e,t,n,i,a,o,s,l,u,f){var h=l*(ua/180),c=Bo(h)*(r-t)/2+No(h)*(e-n)/2,v=-1*No(h)*(r-t)/2+Bo(h)*(e-n)/2,p=c*c/(o*o)+v*v/(s*s);p>1&&(o*=Gu(p),s*=Gu(p));var d=(i===a?-1:1)*Gu((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+t)/2+Bo(h)*g-No(h)*y,_=(e+n)/2+No(h)*g+Bo(h)*y,S=td([1,0],[(c-g)/o,(v-y)/s]),w=[(c-g)/o,(v-y)/s],b=[(-1*c-g)/o,(-1*v-y)/s],x=td(w,b);if(Mh(w,b)<=-1&&(x=ua),Mh(w,b)>=1&&(x=0),x<0){var M=Math.round(x/ua*1e6)/1e6;x=ua*2+M%2*ua}f.addData(u,m,_,o,s,S,x,h,a)}var OM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,NM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BM(r){var e=new en;if(!r)return e;var t=0,n=0,i=t,a=n,o,s=en.CMD,l=r.match(OM);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(NM)||[],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,w=void 0,b=void 0,x=void 0,M=t,C=n,A=void 0,D=void 0;switch(h){case"l":t+=v[g++],n+=v[g++],c=s.L,e.addData(c,t,n);break;case"L":t=v[g++],n=v[g++],c=s.L,e.addData(c,t,n);break;case"m":t+=v[g++],n+=v[g++],c=s.M,e.addData(c,t,n),i=t,a=n,h="l";break;case"M":t=v[g++],n=v[g++],c=s.M,e.addData(c,t,n),i=t,a=n,h="L";break;case"h":t+=v[g++],c=s.L,e.addData(c,t,n);break;case"H":t=v[g++],c=s.L,e.addData(c,t,n);break;case"v":n+=v[g++],c=s.L,e.addData(c,t,n);break;case"V":n=v[g++],c=s.L,e.addData(c,t,n);break;case"C":c=s.C,e.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),t=v[g-2],n=v[g-1];break;case"c":c=s.C,e.addData(c,v[g++]+t,v[g++]+n,v[g++]+t,v[g++]+n,v[g++]+t,v[g++]+n),t+=v[g-2],n+=v[g-1];break;case"S":y=t,m=n,A=e.len(),D=e.data,o===s.C&&(y+=t-D[A-4],m+=n-D[A-3]),c=s.C,M=v[g++],C=v[g++],t=v[g++],n=v[g++],e.addData(c,y,m,M,C,t,n);break;case"s":y=t,m=n,A=e.len(),D=e.data,o===s.C&&(y+=t-D[A-4],m+=n-D[A-3]),c=s.C,M=t+v[g++],C=n+v[g++],t+=v[g++],n+=v[g++],e.addData(c,y,m,M,C,t,n);break;case"Q":M=v[g++],C=v[g++],t=v[g++],n=v[g++],c=s.Q,e.addData(c,M,C,t,n);break;case"q":M=v[g++]+t,C=v[g++]+n,t+=v[g++],n+=v[g++],c=s.Q,e.addData(c,M,C,t,n);break;case"T":y=t,m=n,A=e.len(),D=e.data,o===s.Q&&(y+=t-D[A-4],m+=n-D[A-3]),t=v[g++],n=v[g++],c=s.Q,e.addData(c,y,m,t,n);break;case"t":y=t,m=n,A=e.len(),D=e.data,o===s.Q&&(y+=t-D[A-4],m+=n-D[A-3]),t+=v[g++],n+=v[g++],c=s.Q,e.addData(c,y,m,t,n);break;case"A":_=v[g++],S=v[g++],w=v[g++],b=v[g++],x=v[g++],M=t,C=n,t=v[g++],n=v[g++],c=s.A,ed(M,C,t,n,b,x,_,S,w,c,e);break;case"a":_=v[g++],S=v[g++],w=v[g++],b=v[g++],x=v[g++],M=t,C=n,t+=v[g++],n+=v[g++],c=s.A,ed(M,C,t,n,b,x,_,S,w,c,e);break}}(h==="z"||h==="Z")&&(c=s.Z,e.addData(c),t=i,n=a),o=c}return e.toStatic(),e}var h_=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(ct);function v_(r){return r.setData!=null}function c_(r,e){var t=BM(r),n=N({},e);return n.buildPath=function(i){if(v_(i)){i.setData(t.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;t.rebuildPath(a,1)}},n.applyTransform=function(i){f_(t,i),this.dirtyShape()},n}function p_(r,e){return new h_(c_(r,e))}function FM(r,e){var t=c_(r,e),n=function(i){k(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a}(h_);return n}function VM(r,e){for(var t=[],n=r.length,i=0;i<n;i++){var a=r[i];t.push(a.getUpdatedPathProxy(!0))}var o=new ct(e);return o.createPathProxy(),o.buildPath=function(s){if(v_(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function MN(r,e){e=e||{};var t=new ct;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?f_(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var zM=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),ri=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new zM},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(ct);ri.prototype.type="circle";var GM=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Il=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new GM},e.prototype.buildPath=function(t,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),t.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),t.closePath()},e}(ct);Il.prototype.type="ellipse";var d_=Math.PI,Hu=d_*2,mn=Math.sin,vi=Math.cos,HM=Math.acos,Vt=Math.atan2,rd=Math.abs,Ya=Math.sqrt,Ra=Math.max,Qe=Math.min,ke=1e-4;function WM(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,f=o-i,h=s-a,c=h*l-f*u;if(!(c*c<ke))return c=(f*(e-a)-h*(r-i))/c,[r+c*l,e+c*u]}function Fo(r,e,t,n,i,a,o){var s=r-t,l=e-n,u=(o?a:-a)/Ya(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=e+h,p=t+f,d=n+h,g=(c+p)/2,y=(v+d)/2,m=p-c,_=d-v,S=m*m+_*_,w=i-a,b=c*d-p*v,x=(_<0?-1:1)*Ya(Ra(0,w*w*S-b*b)),M=(b*_-m*x)/S,C=(-b*m-_*x)/S,A=(b*_+m*x)/S,D=(-b*m+_*x)/S,I=M-g,L=C-y,P=A-g,R=D-y;return I*I+L*L>P*P+R*R&&(M=A,C=D),{cx:M,cy:C,x0:-f,y0:-h,x1:M*(i/w-1),y1:C*(i/w-1)}}function UM(r){var e;if(B(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function YM(r,e){var t,n=Ra(e.r,0),i=Ra(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,c=!!e.clockwise,v=rd(u-l),p=v>Hu&&v%Hu;if(p>ke&&(v=p),!(n>ke))r.moveTo(f,h);else if(v>Hu-ke)r.moveTo(f+n*vi(l),h+n*mn(l)),r.arc(f,h,n,l,u,!c),i>ke&&(r.moveTo(f+i*vi(u),h+i*mn(u)),r.arc(f,h,i,u,l,c));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,b=void 0,x=void 0,M=void 0,C=void 0,A=void 0,D=void 0,I=void 0,L=void 0,P=void 0,R=n*vi(l),E=n*mn(l),z=i*vi(u),O=i*mn(u),V=v>ke;if(V){var G=e.cornerRadius;G&&(t=UM(G),d=t[0],g=t[1],y=t[2],m=t[3]);var H=rd(n-i)/2;if(_=Qe(H,y),S=Qe(H,m),w=Qe(H,d),b=Qe(H,g),C=x=Ra(_,S),A=M=Ra(w,b),(x>ke||M>ke)&&(D=n*vi(u),I=n*mn(u),L=i*vi(l),P=i*mn(l),v<d_)){var Z=WM(R,E,L,P,D,I,z,O);if(Z){var et=R-Z[0],lt=E-Z[1],vt=D-Z[0],Jt=I-Z[1],ye=1/mn(HM((et*vt+lt*Jt)/(Ya(et*et+lt*lt)*Ya(vt*vt+Jt*Jt)))/2),fe=Ya(Z[0]*Z[0]+Z[1]*Z[1]);C=Qe(x,(n-fe)/(ye+1)),A=Qe(M,(i-fe)/(ye-1))}}}if(!V)r.moveTo(f+R,h+E);else if(C>ke){var Et=Qe(y,C),Tt=Qe(m,C),rt=Fo(L,P,R,E,n,Et,c),ft=Fo(D,I,z,O,n,Tt,c);r.moveTo(f+rt.cx+rt.x0,h+rt.cy+rt.y0),C<x&&Et===Tt?r.arc(f+rt.cx,h+rt.cy,C,Vt(rt.y0,rt.x0),Vt(ft.y0,ft.x0),!c):(Et>0&&r.arc(f+rt.cx,h+rt.cy,Et,Vt(rt.y0,rt.x0),Vt(rt.y1,rt.x1),!c),r.arc(f,h,n,Vt(rt.cy+rt.y1,rt.cx+rt.x1),Vt(ft.cy+ft.y1,ft.cx+ft.x1),!c),Tt>0&&r.arc(f+ft.cx,h+ft.cy,Tt,Vt(ft.y1,ft.x1),Vt(ft.y0,ft.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,n,l,u,!c);if(!(i>ke)||!V)r.lineTo(f+z,h+O);else if(A>ke){var Et=Qe(d,A),Tt=Qe(g,A),rt=Fo(z,O,D,I,i,-Tt,c),ft=Fo(R,E,L,P,i,-Et,c);r.lineTo(f+rt.cx+rt.x0,h+rt.cy+rt.y0),A<M&&Et===Tt?r.arc(f+rt.cx,h+rt.cy,A,Vt(rt.y0,rt.x0),Vt(ft.y0,ft.x0),!c):(Tt>0&&r.arc(f+rt.cx,h+rt.cy,Tt,Vt(rt.y0,rt.x0),Vt(rt.y1,rt.x1),!c),r.arc(f,h,i,Vt(rt.cy+rt.y1,rt.cx+rt.x1),Vt(ft.cy+ft.y1,ft.cx+ft.x1),c),Et>0&&r.arc(f+ft.cx,h+ft.cy,Et,Vt(ft.y1,ft.x1),Vt(ft.y0,ft.x0),!c))}else r.lineTo(f+z,h+O),r.arc(f,h,i,u,l,c)}r.closePath()}}}var ZM=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}(),nn=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ZM},e.prototype.buildPath=function(t,n){YM(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ct);nn.prototype.type="sector";var XM=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Ll=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new XM},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.PI*2;t.moveTo(i+n.r,a),t.arc(i,a,n.r,0,o,!1),t.moveTo(i+n.r0,a),t.arc(i,a,n.r0,0,o,!0)},e}(ct);Ll.prototype.type="ring";function $M(r,e,t,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)Wr(f,f,r[c]),Ur(h,h,r[c]);Wr(f,f,n[0]),Ur(h,h,n[1])}for(var c=0,v=r.length;c<v;c++){var p=r[c];if(t)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){i.push(Ow(r[c]));continue}else l=r[c-1],u=r[c+1];h0(a,u,l),iu(a,a,e);var d=th(p,l),g=th(p,u),y=d+g;y!==0&&(d/=y,g/=y),iu(o,a,-d),iu(s,a,g);var m=Zc([],p,o),_=Zc([],p,s);n&&(Ur(m,m,f),Wr(m,m,h),Ur(_,_,f),Wr(_,_,h)),i.push(m),i.push(_)}return t&&i.push(i.shift()),i}function g_(r,e,t){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=$M(i,n,t,e.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)r.lineTo(i[s][0],i[s][1])}t&&r.closePath()}}var qM=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),sr=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new qM},e.prototype.buildPath=function(t,n){g_(t,n,!0)},e}(ct);sr.prototype.type="polygon";var KM=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),Ue=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new KM},e.prototype.buildPath=function(t,n){g_(t,n,!1)},e}(ct);Ue.prototype.type="polyline";var QM={},JM=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),or=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new JM},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=J0(QM,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e}(ct);or.prototype.type="line";var jt=[],jM=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 nd(r,e,t){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(t?ip:It)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?ip:It)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?ap:Ht)(r.x1,r.cpx1,r.x2,e),(t?ap:Ht)(r.y1,r.cpy1,r.y2,e)]}var Pl=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new jM},e.prototype.buildPath=function(t,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(t.moveTo(i,a),f==null||h==null?(c<1&&(Vs(i,l,o,c,jt),l=jt[1],o=jt[2],Vs(a,u,s,c,jt),u=jt[1],s=jt[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(Fs(i,l,f,o,c,jt),l=jt[1],f=jt[2],o=jt[3],Fs(a,u,h,s,c,jt),u=jt[1],h=jt[2],s=jt[3]),t.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(t){return nd(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=nd(this.shape,t,!0);return Dv(n,n)},e}(ct);Pl.prototype.type="bezier-curve";var tC=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}(),Rl=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tC},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);t.moveTo(f*o+i,h*o+a),t.arc(i,a,o,s,l,!u)},e}(ct);Rl.prototype.type="arc";var y_=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,n=this.shapeChanged(),i=0;i<t.length;i++)n=n||t[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(n[0],n[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(t,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ct.prototype.getBoundingRect.call(this)},e}(ct),m_=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}(),kl=function(r){k(e,r);function e(t,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e}(m_),__=function(r){k(e,r);function e(t,n,i,a,o){var s=r.call(this,a)||this;return s.x=t??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e}(m_),_n=[0,0],Sn=[0,0],Vo=new j,zo=new j,Xs=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new j;for(var n=0;n<2;n++)this._axes[n]=new j;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),t)for(var u=0;u<4;u++)n[u].transform(t);j.sub(i[0],n[1],n[0]),j.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(e,t){var n=!0,i=!t;return Vo.set(1/0,1/0),zo.set(0,0),!this._intersectCheckOneSide(this,e,Vo,zo,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,Vo,zo,i,-1)&&(n=!1,i)||i||j.copy(t,n?Vo:zo),n},r.prototype._intersectCheckOneSide=function(e,t,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,_n),this._getProjMinMaxOnAxis(l,t._corners,Sn),_n[1]<Sn[0]||_n[0]>Sn[1]){if(s=!1,a)return s;var f=Math.abs(Sn[0]-_n[1]),h=Math.abs(_n[0]-Sn[1]);Math.min(f,h)>i.len()&&(f<h?j.scale(i,u,-f*o):j.scale(i,u,h*o))}else if(n){var f=Math.abs(Sn[0]-_n[1]),h=Math.abs(_n[0]-Sn[1]);Math.min(f,h)<n.len()&&(f<h?j.scale(n,u,f*o):j.scale(n,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],a=this._origin,o=t[0].dot(i)+a[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(i)+a[e];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}(),eC=[],rC=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new at(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(eC)),t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e}(Xn),S_=St();function nC(r,e,t,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=K(n.duration,200),f=K(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),q(h)&&(h=h(t,i)),q(u)&&(u=u(t));var c={duration:u||0,delay:h,easing:f};return c}else return null}function Wv(r,e,t,n,i,a,o){var s=!1,l;q(i)?(o=a,a=i,i=null):X(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=nC(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):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:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function At(r,e,t,n,i,a){Wv("update",r,e,t,n,i,a)}function Bt(r,e,t,n,i,a){Wv("enter",r,e,t,n,i,a)}function Za(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function $s(r,e,t,n,i,a){Za(r)||Wv("leave",r,e,t,n,i,a)}function id(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),$s(r,{style:{opacity:0}},e,t,n)}function qs(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||id(i,e,t,n)}):id(r,e,t,n)}function Bi(r){S_(r).oldStyle=r.style}function CN(r){return S_(r).oldStyle}var Ks=Math.max,Qs=Math.min,Ch={};function iC(r){return ct.extend(r)}var aC=FM;function oC(r,e){return aC(r,e)}function Ye(r,e){Ch[r]=e}function sC(r){if(Ch.hasOwnProperty(r))return Ch[r]}function Uv(r,e,t,n){var i=p_(r,e);return t&&(n==="center"&&(t=w_(t,i.getBoundingRect())),x_(i,t)),i}function b_(r,e,t){var n=new We({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(t==="center"){var a={width:i.width,height:i.height};n.setStyle(w_(e,a))}}});return n}function w_(r,e){var t=e.width/e.height,n=r.height*t,i;n<=r.width?i=r.height:(n=r.width,i=n/t);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Dh=VM;function x_(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function io(r,e){return J0(r,r,{lineWidth:e}),r}function lC(r){return j0(r.shape,r.shape,r.style),r}var Ms=En;function Hn(r,e){for(var t=_l([]);r&&r!==e;)Sr(t,r.getLocalTransform(),t),r=r.parent;return t}function Qr(r,e,t){return e&&!ae(e)&&(e=Rn.getLocalTransform(e)),t&&(e=Yi([],e)),Nt([],r,e)}function El(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=Qr(a,e,t),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function ad(r){return!r.isGroup}function uC(r){return r.shape!=null}function T_(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){ad(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return uC(o)&&(s.shape=N({},o.shape)),s}var a=n(r);e.traverse(function(o){if(ad(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),At(o,l,t,ot(o).dataIndex)}}})}function M_(r,e){return F(r,function(t){var n=t[0];n=Ks(n,e.x),n=Qs(n,e.x+e.width);var i=t[1];return i=Ks(i,e.y),i=Qs(i,e.y+e.height),[n,i]})}function fC(r,e){var t=Ks(r.x,e.x),n=Qs(r.x+r.width,e.x+e.width),i=Ks(r.y,e.y),a=Qs(r.y+r.height,e.y+e.height);if(n>=t&&a>=i)return{x:t,y:i,width:n-t,height:a-i}}function Ol(r,e,t){var n=N({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),nt(i,t),new We(n)):Uv(r.replace("path://",""),n,t,"center")}function ka(r,e,t,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(C_(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function C_(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,f=o-i,h=s-a,c=Wu(f,h,l,u);if(hC(c))return!1;var v=r-i,p=e-a,d=Wu(v,p,l,u)/c;if(d<0||d>1)return!1;var g=Wu(v,p,f,h)/c;return!(g<0||g>1)}function Wu(r,e,t,n){return r*n-t*e}function hC(r){return r<=1e-6&&r>=-1e-6}function Zi(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,i=W(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&T(_t(l),function(f){ge(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ot(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:nt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function od(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Xi(r,e){if(r)if(B(r))for(var t=0;t<r.length;t++)od(r[t],e);else od(r,e)}Ye("circle",ri);Ye("ellipse",Il);Ye("sector",nn);Ye("ring",Ll);Ye("polygon",sr);Ye("polyline",Ue);Ye("rect",dt);Ye("line",or);Ye("bezierCurve",Pl);Ye("arc",Rl);const D_=Object.freeze(Object.defineProperty({__proto__:null,Arc:Rl,BezierCurve:Pl,BoundingRect:at,Circle:ri,CompoundPath:y_,Ellipse:Il,Group:st,Image:We,IncrementalDisplayable:rC,Line:or,LinearGradient:kl,OrientedBoundingRect:Xs,Path:ct,Point:j,Polygon:sr,Polyline:Ue,RadialGradient:__,Rect:dt,Ring:Ll,Sector:nn,Text:bt,applyTransform:Qr,clipPointsByRect:M_,clipRectByRect:fC,createIcon:Ol,extendPath:oC,extendShape:iC,getShapeClass:sC,getTransform:Hn,groupTransition:T_,initProps:Bt,isElementRemoved:Za,lineLineIntersect:C_,linePolygonIntersect:ka,makeImage:b_,makePath:Uv,mergePath:Dh,registerShape:Ye,removeElement:$s,removeElementWithFadeOut:qs,resizePath:x_,setTooltipConfig:Zi,subPixelOptimize:Ms,subPixelOptimizeLine:io,subPixelOptimizeRect:lC,transformDirection:El,traverseElements:Xi,updateProps:At},Symbol.toStringTag,{value:"Module"}));var Nl={};function A_(r,e){for(var t=0;t<se.length;t++){var n=se[t],i=e[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Ah(r,e,t){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=q(r.defaultText)?r.defaultText(i,r,t):r.defaultText);for(var l={normal:s},u=0;u<se.length;u++){var f=se[u],h=e[f];l[f]=K(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function Lr(r,e,t,n){t=t||Nl;for(var i=r instanceof bt,a=!1,o=0;o<Ys.length;o++){var s=e[Ys[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new bt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Ah(t,e),f=e.normal,h=!!f.getShallow("show"),c=de(f,n&&n.normal,t,!1,!i);c.text=u.normal,i||r.setTextConfig(sd(f,t,!1));for(var o=0;o<se.length;o++){var v=se[o],s=e[v];if(s){var p=l.ensureState(v),d=!!K(s.getShallow("show"),h);if(d!==h&&(p.ignore=!d),p.style=de(s,n&&n[v],t,!0,!i),p.style.text=u[v],!i){var g=r.ensureState(v);g.textConfig=sd(s,t,!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(),t.enableTextSetter&&(_o(l).setLabelText=function(y){var m=Ah(t,e,y);A_(l,m)})}else l&&(l.ignore=!0);r.dirty()}function lr(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<se.length;n++){var i=se[n];t[i]=r.getModel([i,e])}return t}function de(r,e,t,n,i){var a={};return vC(a,r,t,n,i),e&&N(a,e),a}function sd(r,e,t){e=e||{};var n={},i,a=r.getShallow("rotate"),o=K(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(t?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",n}function vC(r,e,t,n,i){t=t||Nl;var a=e.ecModel,o=a&&a.option.textStyle,s=cC(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);hd(l[u]={},f,o,t,n,i,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var c=e.get("minMargin");c!=null&&(r.margin=c),hd(r,e,o,t,n,i,!0,!1)}function cC(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Nl).rich;if(t){e=e||{};for(var n=_t(t),i=0;i<n.length;i++){var a=n[i];e[a]=1}}r=r.parentModel}return e}var ld=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ud=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],fd=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function hd(r,e,t,n,i,a,o,s){t=!i&&t||Nl;var l=n&&n.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),h=K(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||t.color,f=f||t.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=K(e.getShallow("textBorderWidth"),t.textBorderWidth);c!=null&&(r.lineWidth=c);var v=K(e.getShallow("textBorderType"),t.textBorderType);v!=null&&(r.lineDash=v);var p=K(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var d=0;d<ld.length;d++){var g=ld[d],y=K(e.getShallow(g),t[g]);y!=null&&(r[g]=y)}for(var d=0;d<ud.length;d++){var g=ud[d],y=e.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var d=0;d<fd.length;d++){var g=fd[d],y=e.getShallow(g);y!=null&&(r[g]=y)}var _=e.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 I_(r,e){var t=e&&e.getModel("textStyle");return Be([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var _o=St();function pC(r,e,t,n){if(r){var i=_o(r);i.prevValue=i.value,i.value=t;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}function DN(r,e,t,n,i){var a=_o(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=K(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var h=H0(t,a.precision,s,l,f);a.interpolatedValue=f===1?null:h;var c=Ah({labelDataIndex:e,labelFetcher:i,defaultText:o?o(h):h+""},a.statesModels,h);A_(r,c)}r.percent=0,(a.prevValue==null?Bt:At)(r,{percent:1},n,e,null,u)}var dC=["textStyle","color"],Uu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Yu=new bt,gC=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(dC):null)},r.prototype.getFont=function(){return I_({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Uu.length;n++)t[Uu[n]]=this.getShallow(Uu[n]);return Yu.useStyle(t),Yu.update(),Yu.getBoundingRect()},r}(),L_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],yC=ro(L_),mC=function(){function r(){}return r.prototype.getLineStyle=function(e){return yC(this,e)},r}(),P_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],_C=ro(P_),SC=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return _C(this,e,t)},r}(),mt=function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){Q(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,i=n==null?n:n[e];if(i==null&&!t){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},r.prototype.getModel=function(e,t){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e($(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!J.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r}();Ov(mt);wT(mt);ue(mt,mC);ue(mt,SC);ue(mt,DT);ue(mt,gC);var bC=Math.round(Math.random()*10);function $i(r){return[r||"",bC++].join("_")}function wC(r){var e={};r.registerSubTypeDefaulter=function(t,n){var i=rr(t);e[i.main]=n},r.determineSubType=function(t,n){var i=n.type;if(!i){var a=rr(t).main;r.hasSubTypes(t)&&e[a]&&(i=e[a](n))}return i}}function xC(r,e){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),f=u.graph,h=u.noEntryList,c={};for(T(a,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]),T(p.successor,d?y:g)}T(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 t(a){var o={},s=[];return T(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),T(h,function(c){ut(u.predecessor,c)<0&&u.predecessor.push(c);var v=n(o,c);ut(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return T(a,function(l){ut(o,l)>=0&&s.push(l)}),s}}function qi(r,e){return Q(Q({},r,!0),e,!0)}const TC={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},MC={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var Js="ZH",Yv="EN",Pi=Yv,Cs={},Zv={},R_=J.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Pi).toUpperCase();return r.indexOf(Js)>-1?Js:Pi}():Pi;function k_(r,e){r=r.toUpperCase(),Zv[r]=new mt(e),Cs[r]=e}function CC(r){if(W(r)){var e=Cs[r.toUpperCase()]||{};return r===Js||r===Yv?$(e):Q($(e),$(Cs[Pi]),!1)}else return Q($(r),$(Cs[Pi]),!1)}function DC(r){return Zv[r]}function AC(){return Zv[Pi]}k_(Yv,TC);k_(Js,MC);var Xv=1e3,$v=Xv*60,Xa=$v*60,De=Xa*24,vd=De*365,Ea={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}"},Go="{yyyy}-{MM}-{dd}",cd={year:"{yyyy}",month:"{yyyy}-{MM}",day:Go,hour:Go+" "+Ea.hour,minute:Go+" "+Ea.minute,second:Go+" "+Ea.second,millisecond:Ea.none},Zu=["year","month","day","hour","minute","second","millisecond"],E_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Er(r,e){return r+="","0000".substr(0,e-r.length)+r}function Ri(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 IC(r){return r===Ri(r)}function LC(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Bl(r,e,t,n){var i=Cr(r),a=i[qv(t)](),o=i[ki(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[Fl(t)](),u=i["get"+(t?"UTC":"")+"Day"](),f=i[ao(t)](),h=(f-1)%12+1,c=i[Vl(t)](),v=i[zl(t)](),p=i[Gl(t)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=n instanceof mt?n:DC(n||R_)||AC(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),w=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Er(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Er(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Er(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Er(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Er(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Er(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Er(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Er(p,3)).replace(/{S}/g,p+"")}function PC(r,e,t,n,i){var a=null;if(W(t))a=t;else if(q(t))a=t(r.value,e,{level:r.level});else{var o=N({},Ea);if(r.level>0)for(var s=0;s<Zu.length;++s)o[Zu[s]]="{primary|"+o[Zu[s]]+"}";var l=t?t.inherit===!1?t:nt(t,o):o,u=O_(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=E_.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(B(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Bl(new Date(r.value),a,i,n)}function O_(r,e){var t=Cr(r),n=t[ki(e)]()+1,i=t[Fl(e)](),a=t[ao(e)](),o=t[Vl(e)](),s=t[zl(e)](),l=t[Gl(e)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,p=v&&n===1;return p?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function pd(r,e,t){var n=pt(r)?Cr(r):r;switch(e=e||O_(r,t),e){case"year":return n[qv(t)]();case"half-year":return n[ki(t)]()>=6?1:0;case"quarter":return Math.floor((n[ki(t)]()+1)/4);case"month":return n[ki(t)]();case"day":return n[Fl(t)]();case"half-day":return n[ao(t)]()/24;case"hour":return n[ao(t)]();case"minute":return n[Vl(t)]();case"second":return n[zl(t)]();case"millisecond":return n[Gl(t)]()}}function qv(r){return r?"getUTCFullYear":"getFullYear"}function ki(r){return r?"getUTCMonth":"getMonth"}function Fl(r){return r?"getUTCDate":"getDate"}function ao(r){return r?"getUTCHours":"getHours"}function Vl(r){return r?"getUTCMinutes":"getMinutes"}function zl(r){return r?"getUTCSeconds":"getSeconds"}function Gl(r){return r?"getUTCMilliseconds":"getMilliseconds"}function RC(r){return r?"setUTCFullYear":"setFullYear"}function N_(r){return r?"setUTCMonth":"setMonth"}function B_(r){return r?"setUTCDate":"setDate"}function F_(r){return r?"setUTCHours":"setHours"}function V_(r){return r?"setUTCMinutes":"setMinutes"}function z_(r){return r?"setUTCSeconds":"setSeconds"}function G_(r){return r?"setUTCMilliseconds":"setMilliseconds"}function H_(r){if(!tT(r))return W(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function W_(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ki=s0;function Ih(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Be(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Cr(r):r;if(isNaN(+l)){if(s)return"-"}else return Bl(l,n,t)}if(e==="ordinal")return jf(r)?i(r):pt(r)&&a(r)?r+"":"-";var u=tn(r);return a(u)?H_(u):jf(r)?i(r):typeof r=="boolean"?r+"":"-"}var dd=["a","b","c","d","e","f","g"],Xu=function(r,e){return"{"+r+(e??"")+"}"};function U_(r,e,t){B(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=dd[a];r=r.replace(Xu(o),Xu(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];r=r.replace(Xu(dd[l],s),t?ee(u):u)}return r}function AN(r,e,t){return T(e,function(n,i){r=r.replace("{"+i+"}",n)}),r}function kC(r,e){var t=W(r)?{color:r,extraCssText:e}:r||{},n=t.color,i=t.type;e=t.extraCssText;var a=t.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ee(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ee(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|}  ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Qn(r,e){return e=e||"transparent",W(r)?r:X(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function gd(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Ds=T,EC=["left","right","top","bottom","width","height"],On=[["width","left","right"],["height","top","bottom"]];function Kv(r,e,t,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),c=h&&h.getBoundingRect(),v,p;if(r==="horizontal"){var d=f.width+(c?-c.x+f.x:0);v=a+d,v>n||l.newline?(a=0,v=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);p=o+g,p>i||l.newline?(a+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+t:o=p+t)})}var Wn=Kv;it(Kv,"vertical");it(Kv,"horizontal");function IN(r,e,t){var n=e.width,i=e.height,a=tt(r.left,n),o=tt(r.top,i),s=tt(r.right,n),l=tt(r.bottom,i);return(isNaN(a)||isNaN(parseFloat(r.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),t=Ki(t||0),{width:Math.max(s-a-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function Ge(r,e,t){t=Ki(t||0);var n=e.width,i=e.height,a=tt(r.left,n),o=tt(r.top,i),s=tt(r.right,n),l=tt(r.bottom,i),u=tt(r.width,n),f=tt(r.height,i),h=t[2]+t[0],c=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-c-a),isNaN(f)&&(f=i-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-c),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-t[3];break;case"right":a=n-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-t[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var p=new at(a+t[3],o+t[0],u,f);return p.margin=t,p}function Y_(r,e,t,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new at(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=Ge(nt({width:u.width,height:u.height},e),t,n),c=o?h.x-u.x:0,v=s?h.y-u.y:0;return l==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===r&&r.markRedraw(),!0}function LN(r,e){return r[On[e][0]]!=null||r[On[e][1]]!=null&&r[On[e][2]]!=null}function oo(r){var e=r.layoutMode||r.constructor.layoutMode;return X(e)?e:e?{type:e}:null}function Fi(r,e,t){var n=t&&t.ignoreSize;!B(n)&&(n=[n,n]);var i=o(On[0],0),a=o(On[1],1);u(On[0],r,i),u(On[1],r,a);function o(f,h){var c={},v=0,p={},d=0,g=2;if(Ds(f,function(_){p[_]=r[_]}),Ds(f,function(_){s(e,_)&&(c[_]=p[_]=e[_]),l(c,_)&&v++,l(p,_)&&d++}),n[h])return l(e,f[1])?p[f[2]]=null:l(e,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){Ds(f,function(v){h[v]=c[v]})}}function So(r){return OC({},r)}function OC(r,e){return e&&r&&Ds(EC,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var NC=St(),ht=function(r){k(e,r);function e(t,n,i){var a=r.call(this,t,n,i)||this;return a.uid=$i("ec_cpt_model"),a}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=oo(this),a=i?So(t):{},o=n.getTheme();Q(t,o.get(this.mainType)),Q(t,this.getDefaultOption()),i&&Fi(t,a,i)},e.prototype.mergeOption=function(t,n){Q(this.option,t,!0);var i=oo(this);i&&Fi(this.option,t,i)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!_T(t))return t.defaultOption;var n=NC(this);if(!n.defaultOption){for(var i=[],a=t;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Q(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var i=t+"Index",a=t+"Id";return mo(this.ecModel,t,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(mt);U0(ht,mt);xl(ht);wC(ht);xC(ht,BC);function BC(r){var e=[];return T(ht.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=F(e,function(t){return rr(t).main}),r!=="dataset"&&ut(e,"dataset")<=0&&e.unshift("dataset"),e}var Z_="";typeof navigator<"u"&&(Z_=navigator.platform||"");var ci="rgba(0, 0, 0, 0.2)";const FC={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ci,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ci,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ci,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ci,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ci,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ci,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Z_.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};var X_=Y(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Le="original",le="arrayRows",Ze="objectRows",ur="keyedColumns",Jr="typedArray",$_="unknown",wr="column",Qi="row",Ot={Must:1,Might:2,Not:3},q_=St();function VC(r){q_(r).datasetMap=Y()}function K_(r,e,t){var n={},i=Qv(e);if(!i||!r)return n;var a=[],o=[],s=e.ecModel,l=q_(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),T(r,function(d,g){var y=X(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),n[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});T(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[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 a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Q_(r,e,t){var n={},i=Qv(r);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Ze||a===ur)&&T(o,function(f,h){(X(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,p=Math.min(5,t);v<p;v++){var d=j_(e.data,a,e.seriesLayoutBy,o,e.startIndex,v);c.push(d);var g=d===Ot.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===Ot.Not)&&(f.n=v),y(f)&&c[f.n]!==Ot.Not)return f;g||(d===Ot.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){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Qv(r){var e=r.get("data",!0);if(!e)return mo(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ut).models[0]}function zC(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:mo(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ut).models}function J_(r,e){return j_(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function j_(r,e,t,n,i,a){var o,s=5;if(oe(r))return Ot.Not;var l,u;if(n){var f=n[a];X(f)?(l=f.name,u=f.type):W(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ot.Must:Ot.Not;if(e===le){var h=r;if(t===Qi){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var p=h[i+v];if(p&&(o=S(p[a]))!=null)return o}}else if(e===Ze){var d=r;if(!l)return Ot.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(e===ur){var y=r;if(!l)return Ot.Not;var c=y[l];if(!c||oe(c))return Ot.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(e===Le)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=yo(g);if(!B(_))return Ot.Not;if((o=S(_[a]))!=null)return o}function S(w){var b=W(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return b?Ot.Might:Ot.Not;if(b&&w!=="-")return Ot.Must}return Ot.Not}var Lh=Y();function GC(r,e){Ae(Lh.get(r)==null&&e),Lh.set(r,e)}function HC(r,e,t){var n=Lh.get(e);if(!n)return t;var i=n(r);return i?t.concat(i):t}var yd=St(),WC=St(),Jv=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var i=Lt(this.get("color",!0)),a=this.get("colorLayer",!0);return t1(this,yd,i,a,e,t,n)},r.prototype.clearColorPalette=function(){YC(this,yd)},r}();function PN(r,e,t,n){var i=Lt(r.get(["aria","decal","decals"]));return t1(r,WC,i,null,e,t,n)}function UC(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function t1(r,e,t,n,i,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?t:UC(n,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function YC(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Ho,fa,md,_d="\0_ec_inner",ZC=1,jv=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,i,a,o,s){a=a||{},this.option=null,this._theme=new mt(a),this._locale=new mt(o),this._optionManager=s},e.prototype.setOption=function(t,n,i){var a=wd(n);this._optionManager.setOption(t,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,n){return this._resetOption(t,wd(n))},e.prototype._resetOption=function(t,n){var i=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?md(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&T(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Y(),u=n&&n.replaceMergeMainTypeMap;VC(this),T(t,function(h,c){h!=null&&(ht.hasClass(c)?c&&(s.push(c),l.set(c,!0)):i[c]=i[c]==null?$(h):Q(i[c],h,!0))}),u&&u.each(function(h,c){ht.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),ht.topologicalTravel(s,ht.getAllClassMainTypes(),f,this);function f(h){var c=HC(this,h,Lt(t[h])),v=a.get(h),p=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=rT(v,c,p);fT(d,h,ht),i[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;T(d,function(S,w){var b=S.existing,x=S.newOption;if(!x)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var M=h==="series",C=ht.getClass(h,S.keyInfo.subType,!M);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=S.keyInfo.name,b.mergeOption(x,this),b.optionUpdated(x,!1);else{var A=N({componentIndex:w},S.keyInfo);b=new C(x,this,this,A),N(b,A),S.brandNew&&(b.__requireNewView=!0),b.init(x,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),i[h]=g,a.set(h,y),o.set(h,m),h==="series"&&Ho(this)}this._seriesIndices||Ho(this)},e.prototype.getOption=function(){var t=$(this.option);return T(t,function(n,i){if(ht.hasClass(i)){for(var a=Lt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!eo(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[i]=a}}),delete t[_d],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var i=this._componentsMap.get(t);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var i=t.index,a=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],T(Lt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Sd("id",a,s):o!=null?l=Sd("name",o,s):l=Ct(s,function(u){return!!u}),bd(l,t)},e.prototype.findComponents=function(t){var n=t.query,i=t.mainType,a=s(n),o=a?this.queryComponents(a):Ct(this._componentsMap.get(i),function(u){return!!u});return l(bd(o,t));function s(u){var f=i+"Index",h=i+"Id",c=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:i,index:u[f],id:u[h],name:u[c]}:null}function l(u){return t.filter?Ct(u,t.filter):u}},e.prototype.eachComponent=function(t,n,i){var a=this._componentsMap;if(q(t)){var o=n,s=t;a.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=W(t)?a.get(t):X(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=ze(t,null);return Ct(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Ct(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return Ct(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){fa(this),T(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];t.call(n,a,i)},this)},e.prototype.eachRawSeries=function(t,n){T(this._componentsMap.get("series"),function(i){i&&t.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,i){fa(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===t&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,n,i){return T(this.getSeriesByType(t),n,i)},e.prototype.isSeriesFiltered=function(t){return fa(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){fa(this);var i=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Y(i)},e.prototype.restoreData=function(t){Ho(this);var n=this._componentsMap,i=[];n.each(function(a,o){ht.hasClass(o)&&i.push(o)}),ht.topologicalTravel(i,ht.getAllClassMainTypes(),function(a){T(n.get(a),function(o){o&&(a!=="series"||!XC(o,t))&&o.restoreData()})})},e.internalField=function(){Ho=function(t){var n=t._seriesIndices=[];T(t._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),t._seriesIndicesMap=Y(n)},fa=function(t){},md=function(t,n){t.option={},t.option[_d]=ZC,t._componentsMap=Y({series:[]}),t._componentsCount=Y();var i=n.aria;X(i)&&i.enabled==null&&(i.enabled=!0),$C(n,t._theme.option),Q(n,FC,!1),t._mergeOption(n,null)}}(),e}(mt);function XC(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,i=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||i!=null&&r.name!==i}}function $C(r,e){var t=r.color&&!r.colorLayer;T(e,function(n,i){i==="colorLayer"&&t||ht.hasClass(i)||(typeof n=="object"?r[i]=r[i]?Q(r[i],n,!1):$(n):r[i]==null&&(r[i]=n))})}function Sd(r,e,t){if(B(e)){var n=Y();return T(e,function(a){if(a!=null){var o=ze(a,null);o!=null&&n.set(a,!0)}}),Ct(t,function(a){return a&&n.get(a[r])})}else{var i=ze(e,null);return Ct(t,function(a){return a&&i!=null&&a[r]===i})}}function bd(r,e){return e.hasOwnProperty("subType")?Ct(r,function(t){return t&&t.subType===e.subType}):r}function wd(r){var e=Y();return r&&T(Lt(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ue(jv,Jv);var qC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],e1=function(){function r(e){T(qC,function(t){this[t]=U(e[t],e)},this)}return r}(),$u={},tc=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var n=[];T($u,function(i,a){var o=i.create(e,t);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(e,t){T(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){$u[e]=t},r.get=function(e){return $u[e]},r}(),KC=/^(min|max)?(.+)$/,QC=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(T(Lt(e.series),function(o){o&&o.data&&oe(o.data)&&ks(o.data)}),T(Lt(e.dataset),function(o){o&&o.source&&oe(o.source)&&ks(o.source)})),e=$(e);var i=this._optionBackup,a=JC(e,t,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],$(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=$(n[i.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)jC(i[l].query,t,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!eD(o,this._currentMediaIndices)&&(s=F(o,function(f){return $(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function JC(r,e,t){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&B(u)&&T(u,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),c(a),T(l,function(v){return c(v)}),T(n,function(v){return c(v.option)});function c(v){T(e,function(p){p(v,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function jC(r,e,t){var n={width:e,height:t,aspectratio:e/t},i=!0;return T(r,function(a,o){var s=o.match(KC);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();tD(n[u],a,l)||(i=!1)}}),i}function tD(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function eD(r,e){return r.join(",")===e.join(",")}var Pe=T,so=X,xd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function qu(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=xd.length;t<n;t++){var i=xd[t],a=e.normal,o=e.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?Q(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?Q(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Wt(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,i=r[e].emphasis;n&&(t?(r[e].normal=r[e].emphasis=null,nt(r[e],n)):r[e]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[e]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function Oa(r){Wt(r,"itemStyle"),Wt(r,"lineStyle"),Wt(r,"areaStyle"),Wt(r,"label"),Wt(r,"labelLine"),Wt(r,"upperLabel"),Wt(r,"edgeLabel")}function Mt(r,e){var t=so(r)&&r[e],n=so(t)&&t.textStyle;if(n)for(var i=0,a=Dp.length;i<a;i++){var o=Dp[i];n.hasOwnProperty(o)&&(t[o]=n[o])}}function xe(r){r&&(Oa(r),Mt(r,"label"),r.emphasis&&Mt(r.emphasis,"label"))}function rD(r){if(so(r)){qu(r),Oa(r),Mt(r,"label"),Mt(r,"upperLabel"),Mt(r,"edgeLabel"),r.emphasis&&(Mt(r.emphasis,"label"),Mt(r.emphasis,"upperLabel"),Mt(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(qu(e),xe(e));var t=r.markLine;t&&(qu(t),xe(t));var n=r.markArea;n&&xe(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!oe(a))for(var o=0;o<a.length;o++)xe(a[o]);T(r.categories,function(u){Oa(u)})}if(i&&!oe(i))for(var o=0;o<i.length;o++)xe(i[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)xe(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)B(l[o])?(xe(l[o][0]),xe(l[o][1])):xe(l[o]);r.type==="gauge"?(Mt(r,"axisLabel"),Mt(r,"title"),Mt(r,"detail")):r.type==="treemap"?(Wt(r.breadcrumb,"itemStyle"),T(r.levels,function(u){Oa(u)})):r.type==="tree"&&Oa(r.leaves)}}function pr(r){return B(r)?r:r?[r]:[]}function Td(r){return(B(r)?r[0]:r)||{}}function nD(r,e){Pe(pr(r.series),function(n){so(n)&&rD(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Pe(t,function(n){Pe(pr(r[n]),function(i){i&&(Mt(i,"axisLabel"),Mt(i.axisPointer,"label"))})}),Pe(pr(r.parallel),function(n){var i=n&&n.parallelAxisDefault;Mt(i,"axisLabel"),Mt(i&&i.axisPointer,"label")}),Pe(pr(r.calendar),function(n){Wt(n,"itemStyle"),Mt(n,"dayLabel"),Mt(n,"monthLabel"),Mt(n,"yearLabel")}),Pe(pr(r.radar),function(n){Mt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Pe(pr(r.geo),function(n){so(n)&&(xe(n),Pe(pr(n.regions),function(i){xe(i)}))}),Pe(pr(r.timeline),function(n){xe(n),Wt(n,"label"),Wt(n,"itemStyle"),Wt(n,"controlStyle",!0);var i=n.data;B(i)&&T(i,function(a){X(a)&&(Wt(a,"label"),Wt(a,"itemStyle"))})}),Pe(pr(r.toolbox),function(n){Wt(n,"iconStyle"),Pe(n.feature,function(i){Wt(i,"iconStyle")})}),Mt(Td(r.axisPointer),"label"),Mt(Td(r.tooltip).axisPointer,"label")}function iD(r,e){for(var t=e.split(","),n=r,i=0;i<t.length&&(n=n&&n[t[i]],n!=null);i++);return n}function aD(r,e,t,n){for(var i=e.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=t)}function Md(r){r&&T(oD,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var oD=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],sD=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ku=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ha(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Ku.length;t++){var n=Ku[t][1],i=Ku[t][0];e[n]!=null&&(e[i]=e[n])}}function Cd(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Dd(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function lD(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function r1(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&r1(r[t].children,e)}function n1(r,e){nD(r,e),r.series=Lt(r.series),T(r.series,function(t){if(X(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),Cd(t.label);var i=t.data;if(i&&!oe(i))for(var a=0;a<i.length;a++)Cd(i[a]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=iD(t,"pointer.color");o!=null&&aD(t,"itemStyle.color",o)}else if(n==="bar"){ha(t),ha(t.backgroundStyle),ha(t.emphasis);var i=t.data;if(i&&!oe(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(ha(i[a]),ha(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Dd(t),r1(t.data,Dd)}else n==="graph"||n==="sankey"?lD(t):n==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&nt(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),Md(t)}}),r.dataRange&&(r.visualMap=r.dataRange),T(sD,function(t){var n=r[t];n&&(B(n)||(n=[n]),T(n,function(i){Md(i)}))})}function uD(r){var e=Y();r.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=t.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(fD)}function fD(r){T(r,function(e,t){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var c=o.get(e.stackedDimension,h);if(isNaN(c))return i;var v,p;s?p=o.getRawIndex(h):v=o.get(e.stackedByDimension,h);for(var d=NaN,g=t-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=Qx(c,m),d=m;break}}}return n[0]=c,n[1]=d,n})})}var Hl=function(){function r(e){this.data=e.data||(e.sourceFormat===ur?{}:[]),this.sourceFormat=e.sourceFormat||$_,this.seriesLayoutBy=e.seriesLayoutBy||wr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];i.type==null&&J_(this,n)===Ot.Must&&(i.type="ordinal")}}return r}();function ec(r){return r instanceof Hl}function Ph(r,e,t){t=t||i1(r);var n=e.seriesLayoutBy,i=vD(r,t,n,e.sourceHeader,e.dimensions),a=new Hl({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:$(e)});return a}function rc(r){return new Hl({data:r,sourceFormat:oe(r)?Jr:Le})}function hD(r){return new Hl({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:$(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function i1(r){var e=$_;if(oe(r))e=Jr;else if(B(r)){r.length===0&&(e=le);for(var t=0,n=r.length;t<n;t++){var i=r[t];if(i!=null){if(B(i)||oe(i)){e=le;break}else if(X(i)){e=Ze;break}}}}else if(X(r)){for(var a in r)if(ge(r,a)&&ae(r[a])){e=ur;break}}return e}function vD(r,e,t,n,i){var a,o;if(!r)return{dimensionsDefine:Ad(i),startIndex:o,dimensionsDetectedCount:a};if(e===le){var s=r;n==="auto"||n==null?Id(function(u){u!=null&&u!=="-"&&(W(u)?o==null&&(o=1):o=0)},t,s,10):o=pt(n)?n:n?1:0,!i&&o===1&&(i=[],Id(function(u,f){i[f]=u!=null?u+"":""},t,s,1/0)),a=i?i.length:t===Qi?s.length:s[0]?s[0].length:null}else if(e===Ze)i||(i=cD(r));else if(e===ur)i||(i=[],T(r,function(u,f){i.push(f)}));else if(e===Le){var l=yo(r[0]);a=B(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Ad(i),dimensionsDetectedCount:a}}function cD(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return _t(t)}function Ad(r){if(r){var e=Y();return F(r,function(t,n){t=X(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Id(r,e,t,n){if(e===Qi)for(var i=0;i<t.length&&i<n;i++)r(t[i]?t[i][0]:null,i);else for(var a=t[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function a1(r){var e=r.sourceFormat;return e===Ze||e===ur}var bn,wn,xn,Ld,Pd,o1=function(){function r(e,t){var n=ec(e)?e:rc(e);this._source=n;var i=this._data=n.data;n.sourceFormat===Jr&&(this._offset=0,this._dimSize=t,this._data=i),Pd(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;Pd=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=Ld[nc(u,f)];if(N(o,v),u===Jr)o.getItem=t,o.count=i,o.fillStorage=n;else{var p=s1(u,f);o.getItem=U(p,null,s,h,c);var d=l1(u,f);o.count=U(d,null,s,h,c)}};var t=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},n=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}},i=function(){return this._data?this._data.length/this._dimSize:0};Ld=(e={},e[le+"_"+wr]={pure:!0,appendData:a},e[le+"_"+Qi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ze]={pure:!0,appendData:a},e[ur]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[Le]={appendData:a},e[Jr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Rd=function(r,e,t,n){return r[n]},pD=(bn={},bn[le+"_"+wr]=function(r,e,t,n){return r[n+e]},bn[le+"_"+Qi]=function(r,e,t,n,i){n+=e;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},bn[Ze]=Rd,bn[ur]=function(r,e,t,n,i){for(var a=i||[],o=0;o<t.length;o++){var s=t[o].name,l=r[s];a[o]=l?l[n]:null}return a},bn[Le]=Rd,bn);function s1(r,e){var t=pD[nc(r,e)];return t}var kd=function(r,e,t){return r.length},dD=(wn={},wn[le+"_"+wr]=function(r,e,t){return Math.max(0,r.length-e)},wn[le+"_"+Qi]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},wn[Ze]=kd,wn[ur]=function(r,e,t){var n=t[0].name,i=r[n];return i?i.length:0},wn[Le]=kd,wn);function l1(r,e){var t=dD[nc(r,e)];return t}var Qu=function(r,e,t){return r[e]},gD=(xn={},xn[le]=Qu,xn[Ze]=function(r,e,t){return r[t]},xn[ur]=Qu,xn[Le]=function(r,e,t){var n=yo(r);return n instanceof Array?n[e]:n},xn[Jr]=Qu,xn);function u1(r){var e=gD[r];return e}function nc(r,e){return r===le?r+"_"+e:r}function Vi(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=i.getDimensionProperty(o);return u1(a)(n,o,s)}else{var l=n;return a===Le&&(l=yo(n)),l}}}}var yD=/\{@(.+?)\}/g,ic=function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.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:a,data:s,dataType:t,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,i,a,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&B(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(q(a))return l.status=t,l.dimensionIndex=i,a(l);if(W(a)){var f=U_(a,l);return f.replace(yD,function(h,c){var v=c.length,p=c;p.charAt(0)==="["&&p.charAt(v-1)==="]"&&(p=+p.slice(1,v-1));var d=Vi(s,e,p);if(o&&B(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Vi(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function Ed(r){var e,t;return X(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function $a(r){return new mD(r)}var mD=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._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(!n&&(h||v<p)){var d=this._progress;if(B(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(e,t,n,i,a){Od.reset(t,n,i,a),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Od.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),B(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),Od=function(){var r,e,t,n,i,a={reset:function(l,u,f,h){e=l,r=u,t=f,n=h,i=Math.ceil(n/t),a.next=t>1&&n>0?s:o}};return a;function o(){return e<r?e++:null}function s(){var l=e%i*t+Math.ceil(e/i),u=e>=r?null:l<n?l:e;return e++,u}}();function Ei(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!pt(r)&&r!=null&&r!=="-"&&(r=+Cr(r)),r==null||r===""?NaN:Number(r))}var _D=Y({number:function(r){return parseFloat(r)},time:function(r){return+Cr(r)},trim:function(r){return W(r)?Be(r):r}});function RN(r){return _D.get(r)}var f1={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},SD=function(){function r(e,t){if(!pt(t)){var n="";$t(n)}this._opFn=f1[e],this._rvalFloat=tn(t)}return r.prototype.evaluate=function(e){return pt(e)?this._opFn(e,this._rvalFloat):this._opFn(tn(e),this._rvalFloat)},r}(),bD=function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=pt(e)?e:tn(e),i=pt(t)?t:tn(t),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=W(e),l=W(t);s&&(n=l?e:0),l&&(i=s?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),wD=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=tn(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(t=tn(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function kN(r,e){return r==="eq"||r==="ne"?new wD(r==="eq",e):ge(f1,r)?new SD(r,e):null}var xD=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ei(e,t)},r}();function TD(r,e){var t=new xD,n=r.data,i=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==wr&&$t(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";ge(l,y)&&$t(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=s1(i,wr);e.__isBuiltIn&&(t.getRawDataItem=function(d){return h(n,a,s,d)},t.getRawData=U(MD,null,r)),t.cloneRawData=U(CD,null,r);var c=l1(i,wr);t.count=U(c,null,n,a,s);var v=u1(i);t.retrieveValue=function(d,g){var y=h(n,a,s,d);return p(y,g)};var p=t.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return v(d,g,y.name)}};return t.getDimensionInfo=U(DD,null,s,l),t.cloneAllDimensionInfo=U(AD,null,s),t}function MD(r){var e=r.sourceFormat;if(!ac(e)){var t="";$t(t)}return r.data}function CD(r){var e=r.sourceFormat,t=r.data;if(!ac(e)){var n="";$t(n)}if(e===le){for(var i=[],a=0,o=t.length;a<o;a++)i.push(t[a].slice());return i}else if(e===Ze){for(var i=[],a=0,o=t.length;a<o;a++)i.push(N({},t[a]));return i}}function DD(r,e,t){if(t!=null){if(pt(t)||!isNaN(t)&&!ge(e,t))return r[t];if(ge(e,t))return e[t]}}function AD(r){return $(r)}var h1=Y();function ID(r){r=$(r);var e=r.type,t="";e||$t(t);var n=e.split(":");n.length!==2&&$t(t);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),r.__isBuiltIn=i,h1.set(e,r)}function LD(r,e,t){var n=Lt(r),i=n.length,a="";i||$t(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=PD(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function PD(r,e,t,n){var i="";e.length||$t(i),X(r)||$t(i);var a=r.type,o=h1.get(a);o||$t(i);var s=F(e,function(u){return TD(u,o)}),l=Lt(o.transform({upstream:s[0],upstreamList:s,config:$(r.config)}));return F(l,function(u,f){var h="";X(u)||$t(h),u.data||$t(h);var c=i1(u.data);ac(c)||$t(h);var v,p=e[0];if(p&&f===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),v={seriesLayoutBy:wr,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else v={seriesLayoutBy:wr,sourceHeader:0,dimensions:u.dimensions};return Ph(u.data,v,null)})}function ac(r){return r===le||r===Ze}var Wl="undefined",RD=typeof Uint32Array===Wl?Array:Uint32Array,kD=typeof Uint16Array===Wl?Array:Uint16Array,v1=typeof Int32Array===Wl?Array:Int32Array,Nd=typeof Float64Array===Wl?Array:Float64Array,c1={float:Nd,int:v1,ordinal:Array,number:Array,time:Nd},Ju;function pi(r){return r>65535?RD:kD}function di(){return[1/0,-1/0]}function ED(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Bd(r,e,t,n,i){var a=c1[t||"float"];if(i){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new a(n)}var Rh=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return r.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=Ju[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],a1(i),this._dimensions=F(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===t)return a}else a=i.length;return i[a]={type:t},n.set(e,a),this._chunks[a]=new c1[t||"float"](this._rawCount),this._rawExtent[a]=di(),a},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=di());for(var l=a[e],u=o;u<s;u++){var f=n[u]=t.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=t,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<a;u++){var f=i[u];Bd(n,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,p=0;p<a;p++){var f=i[p],d=Ju.arrayRows.call(this,e[v]||h,f.property,v,p);n[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(e,t,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=di()),Bd(a,f,h.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,a,l);else for(var c=[],v=e;v<t;v++){c=i.getItem(v,c);for(var p=0;p<s;p++){var d=a[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)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],i=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)});var n=t.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(t[o]<e)i=o+1;else if(t[o]>e)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=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=t-a[c],p=Math.abs(v);p<=n&&((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 e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=t[a]}else e=new n(t.buffer,0,i)}else{var n=pi(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=pi(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],h=n._chunks,c=0;c<i;c++){var v=void 0,p=n.getRawIndex(c);if(l===0)v=t(c);else if(l===1){var d=h[f][p];v=t(d,c)}else{for(var g=0;g<l;g++)s[g]=h[e[g]][p];s[g]=c,v=t.apply(null,s)}v&&(o[u++]=p)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=_t(e),a=i.length;if(!a)return this;var o=t.count(),s=pi(t._rawCount),l=new s(o),u=0,f=i[0],h=e[f][0],c=e[f][1],v=t._chunks,p=!1;if(!t._indices){var d=0;if(a===1){for(var g=v[i[0]],y=0;y<n;y++){var m=g[y];(m>=h&&m<=c||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],S=e[i[1]][0],w=e[i[1]][1],y=0;y<n;y++){var m=g[y],b=_[y];(m>=h&&m<=c||isNaN(m))&&(b>=S&&b<=w||isNaN(b))&&(l[u++]=d),d++}p=!0}}if(!p)if(a===1)for(var y=0;y<o;y++){var x=t.getRawIndex(y),m=v[i[0]][x];(m>=h&&m<=c||isNaN(m))&&(l[u++]=x)}else for(var y=0;y<o;y++){for(var M=!0,x=t.getRawIndex(y),C=0;C<a;C++){var A=i[C],m=v[A][x];(m<e[A][0]||m>e[A][1])&&(M=!1)}M&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var i=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=di();for(var h=0;h<s;h++){for(var c=e.getRawIndex(h),v=0;v<o;v++)l[v]=i[t[v]][c];l[o]=h;var p=n&&n.apply(null,l);if(p!=null){typeof p!="object"&&(a[0]=p,p=a);for(var f=0;f<p.length;f++){var d=t[f],g=p[f],y=u[d],m=i[d];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,c,v=new(pi(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(_),w=a[S];isNaN(w)||(m+=w)}m/=g-d;var b=p,x=Math.min(p+l,o),M=p-1,C=a[u];f=-1,c=b;for(var A=-1,D=0,_=b;_<x;_++){var S=this.getRawIndex(_),w=a[S];if(isNaN(w)){D++,A<0&&(A=S);continue}h=Math.abs((M-y)*(w-C)-(M-_)*(m-C)),h>f&&(f=h,c=S)}D>0&&D<x-b&&(v[s++]=Math.min(A,c),c=Math.max(A,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/t),o=i[e],s=this.count(),l=new(pi(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,p=o[this.getRawIndex(v)],d=a;f+a>s&&(d=s-f);for(var g=0;g<d;g++){var y=this.getRawIndex(f+g),m=o[y];m<c&&(c=m,h=f+g),m>p&&(p=m,v=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),h=a._rawExtent[e]=di(),c=new(pi(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=n(s),m=this.getRawIndex(Math.min(p+i(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:t(a);break;case 1:t(i[e[0]][s],a);break;case 2:t(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],n=di();if(!t)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=t[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][t]);return n},r.prototype.clone=function(e,t){var n=new r,i=this._chunks,a=e&&Tr(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?ED(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=$(this._extent),e._rawExtent=$(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,n,i,a){return Ei(t[a],this._dimensions[a])}Ju={arrayRows:e,objectRows:function(t,n,i,a){return Ei(t[n],this._dimensions[a])},keyedColumns:e,original:function(t,n,i,a){var o=t&&(t.value==null?t:t.value);return Ei(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,n,i,a){return t[a]}}}(),r}(),OD=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,i,a;if(Wo(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=oe(s)?Jr:Le,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=K(h.seriesLayoutBy,c.seriesLayoutBy)||null,p=K(h.sourceHeader,c.sourceHeader),d=K(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||d;i=g?[Ph(s,{seriesLayoutBy:v,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(n){var m=this._applyTransform(t);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[Ph(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&Fd(a)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&Fd(h),s.push(f),l.push(u._getVersionSign())}),n?o=LD(n,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[hD(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Wo(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new Rh,s.initData(new o1(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Wo(e)){var t=Qv(e);return t?[t.getSourceManager()]:[]}else return F(zC(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,i;if(Wo(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:i}},r}();function EN(r){var e=r.option.transform;e&&ks(r.option.transform)}function Wo(r){return r.mainType==="series"}function Fd(r){throw new Error(r)}var ND="line-height:1";function p1(r){var e=r.lineHeight;return e==null?ND:"line-height:"+ee(e+"")+"px"}function d1(r,e){var t=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+ee(n+"")+"px;color:"+ee(t)+";font-weight:"+ee(i+""),valueStyle:"font-size:"+ee(o+"")+"px;color:"+ee(a)+";font-weight:"+ee(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var BD=[0,10,20,30],FD=["",`
`,`

`,`


`];function He(r,e){return e.type=r,e}function kh(r){return r.type==="section"}function g1(r){return kh(r)?VD:zD}function y1(r){if(kh(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return T(r.blocks,function(i){var a=y1(i);a>=e&&(e=a+ +(n&&(!a||kh(i)&&!i.noHeader)))}),e}return 0}function VD(r,e,t,n){var i=e.noHeader,a=GD(y1(e)),o=[],s=e.blocks||[];Ae(!s||B(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ge(u,l)){var f=new bD(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,g){var y=e.valueFormatter,m=g1(d)(y?N(N({},r),{valueFormatter:y}):r,d,g>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):Eh(n,o.join(""),i?t:a.html);if(i)return h;var c=Ih(e.header,"ordinal",r.useUTC),v=d1(n,r.renderMode).nameStyle,p=p1(n);return r.renderMode==="richText"?m1(r,c,v)+a.richText+h:Eh(n,'<div style="'+v+";"+p+';">'+ee(c)+"</div>"+h,t)}function zD(r,e,t,n){var i=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=B(S)?S:[S],F(S,function(w,b){return Ih(w,B(v)?v[b]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),c=a?"":Ih(l,"ordinal",u),v=e.valueType,p=o?[]:f(e.value,e.dataIndex),d=!s||!a,g=!s&&a,y=d1(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":m1(r,c,m))+(o?"":UD(r,p,d,g,_)):Eh(n,(s?"":h)+(a?"":HD(c,!s,m))+(o?"":WD(p,d,g,_)),t)}}function Vd(r,e,t,n,i,a){if(r){var o=g1(r),s={useUTC:i,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function GD(r){return{html:BD[r],richText:FD[r]}}function Eh(r,e,t){var n='<div style="clear:both"></div>',i="margin: "+t+"px 0 0",a=p1(r);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function HD(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+ee(r)+"</span>"}function WD(r,e,t,n){var i=t?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return r=B(r)?r:[r],'<span style="'+a+";"+n+'">'+F(r,function(o){return ee(o)}).join("&nbsp;&nbsp;")+"</span>"}function m1(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function UD(r,e,t,n,i){var a=[i],o=n?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(B(e)?e.join("  "):e,a)}function _1(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return Qn(n)}function S1(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var ju=function(){function r(){this.richTextStyles={},this._nextStyleNameId=N0()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var i=n==="richText"?this._generateStyleName():null,a=kC({color:t,type:e,renderMode:n,markerId:i});return W(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?T(t,function(a){return N(n,a)}):N(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},r}();function YD(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=B(s),u=_1(e,t),f,h,c,v;if(o>1||l&&!o){var p=ZD(s,e,t,a,u);f=p.inlineValues,h=p.inlineValueTypes,c=p.blocks,v=p.inlineValues[0]}else if(o){var d=i.getDimensionInfo(a[0]);v=f=Vi(i,t,a[0]),h=d.type}else v=f=l?s[0]:s;var g=kv(e),y=g&&e.name||"",m=i.getName(t),_=n?y:m;return He("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[He("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Be(_),value:f,valueType:h,dataIndex:t})].concat(c||[])})}function ZD(r,e,t,n,i){var a=e.getData(),o=Tr(r,function(h,c,v){var p=a.getDimensionInfo(v);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?T(n,function(h){f(Vi(a,t,h),h)}):T(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(He("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Or=St();function Uo(r,e){return r.getName(e)||r.getId(e)}var XD="__universalTransitionEnabled",qt=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=$a({count:qD,reset:KD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var a=Or(this).sourceManager=new OD(this);a.prepareSource();var o=this.getInitialData(t,i);Gd(o,this),this.dataTask.context.data=o,Or(this).dataBeforeProcessed=o,zd(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=oo(this),a=i?So(t):{},o=this.subType;ht.hasClass(o)&&(o+="Series"),Q(t,n.getTheme().get(this.subType)),Q(t,this.getDefaultOption()),to(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&Fi(t,a,i)},e.prototype.mergeOption=function(t,n){t=Q(this.option,t,!0),this.fillDataTextStyle(t.data);var i=oo(this);i&&Fi(this.option,t,i);var a=Or(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,n);Gd(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Or(this).dataBeforeProcessed=o,zd(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!oe(t))for(var n=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&to(t[i],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=Oh(this);if(n){var i=n.context.data;return t==null||!i.getLinkedData?i:i.getLinkedData(t)}else return Or(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=Oh(this);if(n){var i=n.context;i.outputData=t,n!==this.dataTask&&(i.data=t)}Or(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return Y(t)},e.prototype.getSourceManager=function(){return Or(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Or(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,n,i){return YD({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(J.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,i){var a=this.ecModel,o=Jv.prototype.getColorFromPalette.call(this,t,n,i);return o||(o=a.getColorFromPalette(t,n,i)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Uo(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var i=[],a=0;a<t.length;a++)i[0]=t[a],this.isSelected(t[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=_t(t),i=[],a=0;a<n.length;a++){var o=t[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(t,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Uo(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[XD])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){X(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],c=Uo(t,h);u[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[l-1],c=Uo(t,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=t.getRawIndex(v),a)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(i){var a=t.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return ht.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ht);ue(qt,ic);ue(qt,Jv);U0(qt,ht);function zd(r){var e=r.name;kv(r)||(r.name=$D(r)||e)}function $D(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return T(t,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function qD(r){return r.model.getRawData().count()}function KD(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),QD}function QD(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Gd(r,e){T(kw(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,it(JD,e))})}function JD(r,e){var t=Oh(r);return t&&t.setOutputEnd((e||this).count()),e}function Oh(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var kt=function(){function r(){this.group=new st,this.uid=$i("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){},r.prototype.updateLayout=function(e,t,n,i){},r.prototype.updateVisual=function(e,t,n,i){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Ov(kt);xl(kt);function bo(){var r=St();return function(e){var t=r(e),n=e.pipelineContext,i=!!t.large,a=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var b1=St(),jD=bo(),Yt=function(){function r(){this.group=new st,this.uid=$i("viewChart"),this.renderTask=$a({plan:tA,reset:eA}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.highlight=function(e,t,n,i){var a=e.getData(i&&i.dataType);a&&Wd(a,i,"emphasis")},r.prototype.downplay=function(e,t,n,i){var a=e.getData(i&&i.dataType);a&&Wd(a,i,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.eachRendered=function(e){Xi(this.group,e)},r.markUpdateMethod=function(e,t){b1(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function Hd(r,e,t){r&&xh(r)&&(e==="emphasis"?$n:qn)(r,t)}function Wd(r,e,t){var n=Zn(r,e),i=e&&e.highlightKey!=null?PM(e.highlightKey):null;n!=null?T(Lt(n),function(a){Hd(r.getItemGraphicEl(a),t,i)}):r.eachItemGraphicEl(function(a){Hd(a,t,i)})}Ov(Yt);xl(Yt);function tA(r){return jD(r.model)}function eA(r){var e=r.model,t=r.ecModel,n=r.api,i=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=i&&b1(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,i),rA[l]}var rA={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},js="\0__throttleOriginMethod",Ud="\0__throttleRate",Yd="\0__throttleType";function oc(r,e,t){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function h(){a=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];n=new Date().getTime(),l=this,u=v;var d=f||e,g=f||t;f=null,s=n-(g?i:a)-d,clearTimeout(o),g?o=setTimeout(h,d):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function wo(r,e,t,n){var i=r[e];if(i){var a=i[js]||i,o=i[Yd],s=i[Ud];if(s!==t||o!==n){if(t==null||!n)return r[e]=a;i=r[e]=oc(a,t,n==="debounce"),i[js]=a,i[Yd]=n,i[Ud]=t}return i}}function tl(r,e){var t=r[e];t&&t[js]&&(t.clear&&t.clear(),r[e]=t[js])}var Zd=St(),Xd={itemStyle:ro(P_,!0),lineStyle:ro(L_,!0)},nA={lineStyle:"stroke",itemStyle:"fill"};function w1(r,e){var t=r.visualStyleMapper||Xd[e];return t||(console.warn("Unknown style type '"+e+"'."),Xd.itemStyle)}function x1(r,e){var t=r.visualDrawType||nA[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var iA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=w1(r,n),o=a(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=x1(r,n),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,e.getSeriesCount());o[l]||(o[l]=c,t.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(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,p){var d=r.getDataParams(p),g=N({},o);g[l]=f(d),v.setItemVisual(p,"style",g)}}}},va=new mt,aA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=w1(r,n),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){va.option=l[n];var u=i(va),f=o.ensureUniqueItemVisual(s,"style");N(f,u),va.option.decal&&(o.setItemVisual(s,"decal",va.option.decal),va.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},oA={performRawSeries:!0,overallReset:function(r){var e=Y();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),Zd(t).scope=a}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),i={},a=t.getData(),o=Zd(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=x1(t,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",p=n.count();c[l]=t.getColorFromPalette(v,o,p)}})}})}},Yo=Math.PI;function sA(r,e){e=e||{},nt(e,{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 t=new st,n=new dt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var i=new bt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new dt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new Rl({shape:{startAngle:-Yo/2,endAngle:-Yo/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Yo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Yo*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var T1=function(){function r(e,t,n,i){this._stageTaskMap=Y(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Y();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;T(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Ae(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,t,n),i.overallReset&&this._createOverallStageTask(i,a,t,n)},this)},r.prototype.prepareView=function(e,t,n,i){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,i){i=i||{};var a=!1,o=this;T(e,function(l,u){if(!(i.visualType&&i.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(i,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,i.block);p.each(function(g){g.perform(d)}),c.perform(d)&&(a=!0)}else h&&h.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,i){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Y(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||$a({plan:vA,reset:cA,count:dA}));v.context={model:h,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(e,t,n,i){var a=this,o=t.overallTask=t.overallTask||$a({reset:lA});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Y(),u=e.seriesType,f=e.getTargetSeries,h=!0,c=!1,v="";Ae(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,p):f?f(n,i).each(p):(h=!1,T(n.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(c=!0,$a({reset:uA,onDirty:hA})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,a._pipe(d,y)}c&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},r.wrapStageHandler=function(e,t){return q(e)&&(e={overallReset:e,seriesType:gA(e)}),e.uid=$i("stageHandler"),t&&(e.visualType=t),e},r}();function lA(r){r.overallReset(r.ecModel,r.api,r.payload)}function uA(r){return r.overallProgress&&fA}function fA(){this.agent.dirty(),this.getDownstream().dirty()}function hA(){this.agent&&this.agent.dirty()}function vA(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function cA(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Lt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?F(e,function(t,n){return M1(n)}):pA}var pA=M1(0);function M1(r){return function(e,t){var n=t.data,i=t.resetDefines[r];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function dA(r){return r.data.count()}function gA(r){el=null;try{r(lo,C1)}catch{}return el}var lo={},C1={},el;D1(lo,jv);D1(C1,e1);lo.eachSeriesByType=lo.eachRawSeriesByType=function(r){el=r};lo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(el=r.subType)};function D1(r,e){for(var t in e.prototype)r[t]=Rt}var $d=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const yA={color:$d,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$d]};var Gt="#B9B8CE",qd="#100C2A",Zo=function(){return{axisLine:{lineStyle:{color:Gt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Kd=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],A1={darkMode:!0,color:Kd,backgroundColor:qd,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Gt},pageTextStyle:{color:Gt}},textStyle:{color:Gt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Gt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Gt},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:Gt}},timeline:{lineStyle:{color:Gt},label:{color:Gt},controlStyle:{color:Gt,borderColor:Gt}},calendar:{itemStyle:{color:qd},dayLabel:{color:Gt},monthLabel:{color:Gt},yearLabel:{color:Gt}},timeAxis:Zo(),logAxis:Zo(),valueAxis:Zo(),categoryAxis:Zo(),line:{symbol:"circle"},graph:{color:Kd},gauge:{title:{color:Gt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Gt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};A1.categoryAxis.splitLine.show=!1;var mA=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},i={};if(W(e)){var a=rr(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(e,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"&&(t.mainType=p,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,a));function f(h,c,v,p){return h[v]==null||c[p||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Nh=["symbol","symbolSize","symbolRotate","symbolOffset"],Qd=Nh.concat(["symbolKeepAspect"]),_A={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Nh.length;o++){var s=Nh[o],l=r.get(s);q(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(N({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=_t(i);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,i[g](v,p))}}return{dataEach:a?f:null}}},SA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Qd.length;s++){var l=Qd[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function sc(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Ul(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function I1(r,e,t,n){switch(t){case"color":var i=r.ensureUniqueItemVisual(e,"style");i[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break}}function L1(r,e){function t(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=N({},i),o.dispatchAction(N(i,{type:n[1],seriesIndex:t(a,i)}))})})}function gi(r,e,t,n,i){var a=r+e;t.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=Zn(h,i.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:B(c)?h.getName(c[0]):h.getName(c),selected:W(l)?l:N({},l)})}})}function bA(r,e,t){r.on("selectchanged",function(n){var i=t.getModel();n.isFromClick?(gi("map","selectchanged",e,i,n),gi("pie","selectchanged",e,i,n)):n.fromAction==="select"?(gi("map","selected",e,i,n),gi("pie","selected",e,i,n)):n.fromAction==="unselect"&&(gi("map","unselected",e,i,n),gi("pie","unselected",e,i,n))})}function Nn(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var wA=Math.round(Math.random()*9),xA=typeof Object.defineProperty=="function",TA=function(){function r(){this._id="__ec_inner_"+wA++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return xA?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}(),MA=ct.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,i=e.width/2,a=e.height/2;r.moveTo(t,n-a),r.lineTo(t+i,n+a),r.lineTo(t-i,n+a),r.closePath()}}),CA=ct.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,i=e.width/2,a=e.height/2;r.moveTo(t,n-a),r.lineTo(t+i,n),r.lineTo(t,n+a),r.lineTo(t-i,n),r.closePath()}}),DA=ct.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+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(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-h*v,l+s+c*v,t,n-p,t,n),r.bezierCurveTo(t,n-p,t-f+h*v,l+s+c*v,t-f,l+s),r.closePath()}}),AA=ct.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+t),r.lineTo(i,a+t/4*3),r.lineTo(i-o,a+t),r.lineTo(i,a),r.closePath()}}),IA={line:or,rect:dt,roundRect:dt,square:dt,circle:ri,diamond:CA,pin:DA,arrow:AA,triangle:MA},LA={line:function(r,e,t,n,i){i.x1=r,i.y1=e+n/2,i.x2=r+t,i.y2=e+n/2},rect:function(r,e,t,n,i){i.x=r,i.y=e,i.width=t,i.height=n},roundRect:function(r,e,t,n,i){i.x=r,i.y=e,i.width=t,i.height=n,i.r=Math.min(t,n)/4},square:function(r,e,t,n,i){var a=Math.min(t,n);i.x=r,i.y=e,i.width=a,i.height=a},circle:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.r=Math.min(t,n)/2},diamond:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.width=t,i.height=n},pin:function(r,e,t,n,i){i.x=r+t/2,i.y=e+n/2,i.width=t,i.height=n},arrow:function(r,e,t,n,i){i.x=r+t/2,i.y=e+n/2,i.width=t,i.height=n},triangle:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.width=t,i.height=n}},rl={};T(IA,function(r,e){rl[e]=new r});var PA=ct.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Ws(r,e,t),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var i=rl[n];i||(n="rect",i=rl[n]),LA[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(r,i.shape,t)}}});function RA(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Kt(r,e,t,n,i,a,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=b_(r.slice(8),new at(e,t,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=Uv(r.slice(7),{},new at(e,t,n,i),o?"center":"cover"):l=new PA({shape:{symbolType:r,x:e,y:t,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=RA,a&&l.setColor(a),l}function Yl(r){return B(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Zl(r,e){if(r!=null)return B(r)||(r=[r,r]),[tt(r[0],e[0])||0,tt(K(r[1],r[0]),e[1])||0]}function Bn(r){return isFinite(r)}function kA(r,e,t){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,i=i*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y),n=Bn(n)?n:0,i=Bn(i)?i:1,a=Bn(a)?a:0,o=Bn(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function EA(r,e,t){var n=t.width,i=t.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+t.x,s=s*i+t.y,l=l*a),o=Bn(o)?o:.5,s=Bn(s)?s:.5,l=l>=0&&Bn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Bh(r,e,t){for(var n=e.type==="radial"?EA(r,e,t):kA(r,e,t),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function OA(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Xo(r){return parseInt(r,10)}function $o(r,e,t){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||Xo(s[n])||Xo(r.style[n]))-(Xo(s[a])||0)-(Xo(s[o])||0)|0}function NA(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:pt(r)?[r]:B(r)?r:null}function P1(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&NA(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var i=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(t=F(t,function(a){return a/i}),n/=i)}return[t,n]}var BA=new en(!0);function nl(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function Jd(r){return typeof r=="string"&&r!=="none"}function il(r){var e=r.fill;return e!=null&&e!=="none"}function jd(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function tg(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Fh(r,e,t){var n=Y0(e.image,e.__image,t);if(Tl(n)){var i=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*gs),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function FA(r,e,t,n){var i,a=nl(t),o=il(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||BA,h=e.__dirty;if(!n){var c=t.fill,v=t.stroke,p=o&&!!c.colorStops,d=a&&!!v.colorStops,g=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,w=void 0,b=void 0;(p||d)&&(b=e.getBoundingRect()),p&&(m=h?Bh(r,c,b):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?Bh(r,v,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?Fh(r,c,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(w=h||!e.__canvasStrokePattern?Fh(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(w?r.strokeStyle=w:a=!1)}var x=e.getGlobalScale();f.setScale(x[0],x[1],e.segmentIgnoreThreshold);var M,C;r.setLineDash&&t.lineDash&&(i=P1(e),M=i[0],C=i[1]);var A=!0;(u||h&xi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),A=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),A&&f.rebuildPath(r,l?s:1),M&&(r.setLineDash(M),r.lineDashOffset=C),n||(t.strokeFirst?(a&&tg(r,t),o&&jd(r,t)):(o&&jd(r,t),a&&tg(r,t))),M&&r.setLineDash([])}function VA(r,e,t){var n=e.__image=Y0(t.image,e.__image,e,e.onload);if(!(!n||!Tl(n))){var i=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(n,u,f,t.sWidth,t.sHeight,i,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,c=s-f;r.drawImage(n,u,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function zA(r,e,t){var n,i=t.text;if(i!=null&&(i+=""),i){r.font=t.font||Yn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=P1(e),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(nl(t)&&r.strokeText(i,t.x,t.y),il(t)&&r.fillText(i,t.x,t.y)):(il(t)&&r.fillText(i,t.x,t.y),nl(t)&&r.strokeText(i,t.x,t.y)),a&&r.setLineDash([])}}var eg=["shadowBlur","shadowOffsetX","shadowOffsetY"],rg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function R1(r,e,t,n,i){var a=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){ie(r,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?zn.opacity:o}(n||e.blend!==t.blend)&&(a||(ie(r,i),a=!0),r.globalCompositeOperation=e.blend||zn.blend);for(var s=0;s<eg.length;s++){var l=eg[s];(n||e[l]!==t[l])&&(a||(ie(r,i),a=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(a||(ie(r,i),a=!0),r.shadowColor=e.shadowColor||zn.shadowColor),a}function ng(r,e,t,n,i){var a=uo(e,i.inHover),o=n?null:t&&uo(t,i.inHover)||{};if(a===o)return!1;var s=R1(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ie(r,i),s=!0),Jd(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ie(r,i),s=!0),Jd(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ie(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(ie(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<rg.length;f++){var h=rg[f],c=h[0];(n||a[c]!==o[c])&&(s||(ie(r,i),s=!0),r[c]=a[c]||h[1])}return s}function GA(r,e,t,n,i){return R1(r,uo(e,i.inHover),t&&uo(t,i.inHover),n,i)}function k1(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function HA(r,e,t){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),k1(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=n}function WA(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var ig=1,ag=2,og=3,sg=4;function UA(r){var e=il(r),t=nl(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function ie(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function uo(r,e){return e&&r.__hoverStyle||r.style}function E1(r,e){Fn(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Fn(r,e,t,n){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~ve,e.__isRendered=!1;return}var a=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||OA(a,o))&&(o&&o.length&&(ie(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),a&&a.length&&(ie(r,t),r.save(),HA(a,r,t),s=!0),t.prevElClipPaths=a),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof ct&&e.autoBatch&&UA(e.style);s||WA(i,u.transform)?(ie(r,t),k1(r,e)):f||ie(r,t);var h=uo(e,t.inHover);e instanceof ct?(t.lastDrawType!==ig&&(l=!0,t.lastDrawType=ig),ng(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),FA(r,e,h,f),f&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof no?(t.lastDrawType!==og&&(l=!0,t.lastDrawType=og),ng(r,e,u,l,t),zA(r,e,h)):e instanceof We?(t.lastDrawType!==ag&&(l=!0,t.lastDrawType=ag),GA(r,e,u,l,t),VA(r,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==sg&&(l=!0,t.lastDrawType=sg),YA(r,e,t)),f&&n&&ie(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function YA(r,e,t){var n=e.getDisplayables(),i=e.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Fn(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Fn(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var tf=new TA,lg=new go(100),ug=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function al(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";r.dirty&&tf.delete(r);var a=tf.get(r);if(a)return a;var o=nt(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=i?1:1/t,tf.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],h=!0,c=0;c<ug.length;++c){var v=o[ug[c]];if(v!=null&&!B(v)&&!W(v)&&!pt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var p;if(h){p=f.join(",")+(i?"-svg":"");var d=lg.get(p);d&&(i?u.svgElement=d:u.image=d)}var g=N1(o.dashArrayX),y=ZA(o.dashArrayY),m=O1(o.symbol),_=XA(g),S=B1(y),w=!i&&Hi.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=C(),M;w&&(w.width=x.width*t,w.height=x.height*t,M=w.getContext("2d")),A(),h&&lg.put(p,w||b),u.image=w,u.svgElement=b,u.svgWidth=x.width,u.svgHeight=x.height;function C(){for(var D=1,I=0,L=_.length;I<L;++I)D=Mp(D,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=Mp(P,m[I].length);D*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function A(){M&&(M.clearRect(0,0,w.width,w.height),o.backgroundColor&&(M.fillStyle=o.backgroundColor,M.fillRect(0,0,w.width,w.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(D<=0)return;for(var L=-S,P=0,R=0,E=0;L<x.height;){if(P%2===0){for(var z=R/2%m.length,O=0,V=0,G=0;O<x.width*2;){for(var H=0,I=0;I<g[E].length;++I)H+=g[E][I];if(H<=0)break;if(V%2===0){var Z=(1-o.symbolSize)*.5,et=O+g[E][V]*Z,lt=L+y[P]*Z,vt=g[E][V]*o.symbolSize,Jt=y[P]*o.symbolSize,ye=G/2%m[z].length;fe(et,lt,vt,Jt,m[z][ye])}O+=g[E][V],++G,++V,V===g[E].length&&(V=0)}++E,E===g.length&&(E=0)}L+=y[P],++R,++P,P===y.length&&(P=0)}function fe(Et,Tt,rt,ft,Xe){var Pt=i?1:t,Pr=Kt(Xe,Et*Pt,Tt*Pt,rt*Pt,ft*Pt,o.color,o.symbolKeepAspect);if(i){var vr=n.painter.renderOneToVNode(Pr);vr&&b.children.push(vr)}else E1(M,Pr)}}}}function O1(r){if(!r||r.length===0)return[["rect"]];if(W(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!W(r[t])){e=!1;break}if(e)return O1([r]);for(var n=[],t=0;t<r.length;++t)W(r[t])?n.push([r[t]]):n.push(r[t]);return n}function N1(r){if(!r||r.length===0)return[[0,0]];if(pt(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!pt(r[n])){t=!1;break}if(t)return N1([r]);for(var i=[],n=0;n<r.length;++n)if(pt(r[n])){var e=Math.ceil(r[n]);i.push([e,e])}else{var e=F(r[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function ZA(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(pt(r)){var e=Math.ceil(r);return[e,e]}var t=F(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function XA(r){return F(r,function(e){return B1(e)})}function B1(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function $A(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=al(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=al(i,e)}}})}var Oe=new Ie,F1={};function qA(r,e){F1[r]=e}function KA(r){return F1[r]}var QA=1,JA=800,jA=900,t2=1e3,e2=2e3,r2=5e3,V1=1e3,n2=1100,lc=2e3,z1=3e3,i2=4e3,Xl=4500,a2=4600,o2=5e3,s2=6e3,G1=7e3,l2={PROCESSOR:{FILTER:t2,SERIES_FILTER:JA,STATISTIC:r2},VISUAL:{LAYOUT:V1,PROGRESSIVE_LAYOUT:n2,GLOBAL:lc,CHART:z1,POST_CHART_LAYOUT:a2,COMPONENT:i2,BRUSH:o2,CHART_ITEM:Xl,ARIA:s2,DECAL:G1}},zt="__flagInMainProcess",te="__pendingUpdate",ef="__needsUpdateStatus",fg=/^[a-zA-Z0-9_]+$/,rf="__connectUpdateStatus",hg=0,u2=1,f2=2;function H1(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return U1(this,r,e)}}function W1(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U1(this,r,e)}}function U1(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Ie.prototype[e].apply(r,t)}var Y1=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Ie),Z1=Y1.prototype;Z1.on=W1("on");Z1.off=W1("off");var yi,nf,qo,Nr,af,of,sf,ca,pa,vg,cg,lf,pg,Ko,dg,X1,me,gg,$1=function(r){k(e,r);function e(t,n,i){var a=r.call(this,new mA)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},W(n)&&(n=q1[n]),a._dom=t;var o="canvas",s="auto",l=!1;i.ssr&&Xx(function(c){var v=ot(c),p=v.dataIndex;if(p!=null){var d=Y();return d.set("series_index",v.seriesIndex),d.set("data_index",p),v.ssrType&&d.set("ssr_type",v.ssrType),d}});var u=a._zr=wp(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:K(i.useDirtyRect,l),useCoarsePointer:K(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=oc(U(u.flush,u),17),n=$(n),n&&n1(n,!0),a._theme=n,a._locale=CC(i.locale||R_),a._coordSysMgr=new tc;var f=a._api=dg(a);function h(c,v){return c.__prio-v.__prio}return ys(sl,h),ys(Vh,h),a._scheduler=new T1(a,f,Vh,sl),a._messageCenter=new Y1,a._initEvents(),a.resize=U(a.resize,a),u.animation.on("frame",a._onframe,a),vg(u,a),cg(u,a),ks(a),a}return e.prototype._onframe=function(){if(!this._disposed){gg(this);var t=this._scheduler;if(this[te]){var n=this[te].silent;this[zt]=!0;try{yi(this),Nr.update.call(this,null,this[te].updateParams)}catch(l){throw this[zt]=!1,this[te]=null,l}this._zr.flush(),this[zt]=!1,this[te]=null,ca.call(this,n),pa.call(this,n)}else if(t.unfinished){var i=QA,a=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(a),t.performDataProcessorTasks(a),of(this,a),t.performVisualTasks(a),Ko(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,i){if(!this[zt]){if(this._disposed){this.id;return}var a,o,s;if(X(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[zt]=!0,!this._model||n){var l=new QC(this._api),u=this._theme,f=this._model=new jv;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},zh);var h={seriesTransition:s,optionChanged:!0};if(i)this[te]={silent:a,updateParams:h},this[zt]=!1,this.getZr().wakeUp();else{try{yi(this),Nr.update.call(this,null,h)}catch(c){throw this[te]=null,this[zt]=!1,c}this._ssr||this._zr.flush(),this[te]=null,this[zt]=!1,ca.call(this,a),pa.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||J.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(J.svgSupported){var t=this._zr,n=t.storage.getDisplayList();return T(n,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,i=this._model,a=[],o=this;T(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return T(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(yg[i]){var l=s,u=s,f=-s,h=-s,c=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();T(Ka,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($(t)),b=_.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),f=o(b.right,f),h=o(b.bottom,h),c.push({dom:w,left:b.left,top:b.top})}}),l*=v,u*=v,f*=v,h*=v;var p=f-l,d=h-u,g=Hi.createCanvas(),y=wp(g,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:d}),n){var m="";return T(c,function(_){var S=_.left-l,w=_.top-u;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new dt({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),T(c,function(_){var S=new We({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n){return af(this,"convertToPixel",t,n)},e.prototype.convertFromPixel=function(t,n){return af(this,"convertFromPixel",t,n)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var i=this._model,a,o=Ha(i,t);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(t,n){var i=this._model,a=Ha(i,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?sc(s,l,n):Ul(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;T(h2,function(n){var i=function(a){var o=t.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Nn(s,function(p){var d=ot(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=N({},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&&t[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=a,l.type=n,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},t.trigger(n,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(n,i,t)}),T(qa,function(n,i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),T(["selectchanged"],function(n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),bA(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&G0(this.getDom(),fc,"");var n=this,i=n._api,a=n._model;T(n._componentsViews,function(o){o.dispose(a,i)}),T(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ka[n.id]},e.prototype.resize=function(t){if(!this[zt]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=t&&t.silent;this[te]&&(a==null&&(a=this[te].silent),i=!0,this[te]=null),this[zt]=!0;try{i&&yi(this),Nr.update.call(this,{type:"resize",animation:N({duration:0},t&&t.animation)})}catch(o){throw this[zt]=!1,o}this[zt]=!1,ca.call(this,a),pa.call(this,a)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(X(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!Gh[t]){var i=Gh[t](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=N({},t);return n.type=qa[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(X(n)||(n={silent:!!n}),!!ol[t.type]&&this._model){if(this[zt]){this._pendingActions.push(t);return}var i=n.silent;sf.call(this,t,i);var a=n.flush;a?this._zr.flush():a!==!1&&J.browser.weChat&&this._throttledZrFlush(),ca.call(this,i),pa.call(this,i)}},e.prototype.updateLabelLayout=function(){Oe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){yi=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),nf(h,!0),nf(h,!1),c.plan()},nf=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(b,x){b!=="series"&&S(x)}):v.eachSeries(S);function S(b){var x=b.__requireNewView;b.__requireNewView=!1;var M="_ec_"+b.id+"_"+b.type,C=!x&&g[M];if(!C){var A=rr(b.type),D=c?kt.getClass(A.main,A.sub):Yt.getClass(A.sub);C=new D,C.init(v,m),g[M]=C,d.push(C),y.add(C.group)}b.__viewId=C.__id=M,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!c&&p.prepareView(C,b,v,m)}for(var _=0;_<d.length;){var w=d[_];w.__alive?_++:(!c&&w.renderTask.dispose(),y.remove(w.group),w.dispose(v,m),d.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},qo=function(h,c,v,p,d){var g=h._model;if(g.setUpdatePayload(v),!p){T([].concat(h._componentsViews).concat(h._chartsViews),w);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=Y(),T(Lt(_),function(b){var x=ze(b,null);x!=null&&S.set(x,!0)})),g&&g.eachComponent(m,function(b){var x=S&&S.get(b.id)!=null;if(!x)if(Qp(v))if(b instanceof qt)v.type===Gn&&!v.notBlur&&!b.get(["emphasis","disabled"])&&wM(b,v,h._api);else{var M=Gv(b.mainType,b.componentIndex,v.name,h._api),C=M.focusSelf,A=M.dispatchers;v.type===Gn&&C&&!v.notBlur&&wh(b.mainType,b.componentIndex,h._api),A&&T(A,function(D){v.type===Gn?$n(D):qn(D)})}else Th(v)&&b instanceof qt&&(MM(b,v,h._api),qp(b),me(h))},h),g&&g.eachComponent(m,function(b){var x=S&&S.get(b.id)!=null;x||w(h[p==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function w(b){b&&b.__alive&&b[c]&&b[c](b.__model,g,h._api,v)}},Nr={prepareAndUpdate:function(h){yi(this),Nr.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),of(this,v),g.update(v,p),t(v),y.performVisualTasks(v,h),lf(this,v,p,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");d.setBackgroundColor(m),_!=null&&_!=="auto"&&d.setDarkMode(_),Oe.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=Y();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)}),t(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),Ko(this,v,p,h,{},g),Oe.trigger("afterupdate",v,p)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),Yt.markUpdateMethod(h,"updateView"),t(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),lf(this,c,this._api,h,{}),Oe.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()}),Yt.markUpdateMethod(h,"updateVisual"),t(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)}),Oe.trigger("afterupdate",v,this._api))},updateLayout:function(h){Nr.update.call(this,h)}},af=function(h,c,v,p){if(h._disposed){h.id;return}for(var d=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=Ha(d,v),_=0;_<g.length;_++){var S=g[_];if(S[c]&&(y=S[c](d,m,p))!=null)return y}},of=function(h,c){var v=h._chartsMap,p=h._scheduler;c.eachSeries(function(d){p.updateStreamModes(d,v[d.__viewId])})},sf=function(h,c){var v=this,p=this.getModel(),d=h.type,g=h.escapeConnect,y=ol[d],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),w=_[0]!=null&&rr(_[0]);this[zt]=!0;var b=[h],x=!1;h.batch&&(x=!0,b=F(h.batch,function(P){return P=nt(N({},P),h),P.batch=null,P}));var M=[],C,A=Th(h),D=Qp(h);if(D&&u_(this._api),T(b,function(P){if(C=y.action(P,v._model,v._api),C=C||N({},P),C.type=m.event||C.type,M.push(C),D){var R=Ev(h),E=R.queryOptionMap,z=R.mainTypeSpecified,O=z?E.keys()[0]:"series";qo(v,S,P,O),me(v)}else A?(qo(v,S,P,"series"),me(v)):w&&qo(v,S,P,w.main,w.sub)}),S!=="none"&&!D&&!A&&!w)try{this[te]?(yi(this),Nr.update.call(this,h),this[te]=null):Nr[S].call(this,h)}catch(P){throw this[zt]=!1,P}if(x?C={type:m.event||d,escapeConnect:g,batch:M}:C=M[0],this[zt]=!1,!c){var I=this._messageCenter;if(I.trigger(C.type,C),A){var L={type:"selectchanged",escapeConnect:g,selected:CM(p),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};I.trigger(L.type,L)}}},ca=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();sf.call(this,v,h)}},pa=function(h){!h&&this.trigger("updated")},vg=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[te]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},cg=function(h,c){h.on("mouseover",function(v){var p=v.target,d=Nn(p,xh);d&&(xM(d,v,c._api),me(c))}).on("mouseout",function(v){var p=v.target,d=Nn(p,xh);d&&(TM(d,v,c._api),me(c))}).on("click",function(v){var p=v.target,d=Nn(p,function(m){return ot(m).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",y=ot(d);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],p=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,w=_.get("z")||0,b=_.getZLevelKey();p=p||!!b,(m==="series"?v:c).push({zlevel:S,z:w,idx:_.componentIndex,type:m,key:b})}),p){var d=c.concat(v),g,y;ys(d,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),T(d,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,w=m.key;g!=null&&(S=Math.max(g,S)),w?(S===g&&w!==y&&S++,y=w):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}lf=function(h,c,v,p,d){n(c),pg(h,c,v,p,d),T(h._chartsViews,function(g){g.__alive=!1}),Ko(h,c,v,p,d),T(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},pg=function(h,c,v,p,d,g){T(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,p),s(m,y),f(m,y)})},Ko=function(h,c,v,p,d,g){var y=h._scheduler;d=N(d||{},{updatedSeries:c.getSeries()}),Oe.trigger("series:beforeupdate",c,v,d);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;y.updatePayload(w,p),u(_,S),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),qp(_)}),y.unfinished=m||y.unfinished,Oe.trigger("series:layoutlabels",c,v,d),Oe.trigger("series:transition",c,v,d),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,c),Oe.trigger("series:afterupdate",c,v,d)},me=function(h){h[ef]=!0,h.getZr().wakeUp()},gg=function(h){h[ef]&&(h.getZr().storage.traverse(function(c){Za(c)||i(c)}),h[ef]=!1)};function i(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===Dl&&h.states.emphasis?c.push("emphasis"):h.hoverState===Cl&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,p=v.storage,d=0;p.traverse(function(g){g.isGroup||d++}),d>c.get("hoverLayerThreshold")&&!J.node&&!J.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(!Za(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(Za(y))return;if(y instanceof ct&&RM(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&&i(y)}})}dg=function(h){return new(function(c){k(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){$n(p,d),me(h)},v.prototype.leaveEmphasis=function(p,d){qn(p,d),me(h)},v.prototype.enterBlur=function(p){a_(p),me(h)},v.prototype.leaveBlur=function(p){zv(p),me(h)},v.prototype.enterSelect=function(p){o_(p),me(h)},v.prototype.leaveSelect=function(p){s_(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}(e1))(h)},X1=function(h){function c(v,p){for(var d=0;d<v.length;d++){var g=v[d];g[rf]=p}}T(qa,function(v,p){h._messageCenter.on(p,function(d){if(yg[h.group]&&h[rf]!==hg){if(d&&d.escapeConnect)return;var g=h.makeActionFromEvent(d),y=[];T(Ka,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,hg),T(y,function(m){m[rf]!==u2&&m.dispatchAction(g)}),c(y,f2)}})})}}(),e}(Ie),uc=$1.prototype;uc.on=H1("on");uc.off=H1("off");uc.one=function(r,e,t){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(r,i)}this.on.call(this,r,i,t)};var h2=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ol={},qa={},Vh=[],zh=[],sl=[],q1={},Gh={},Ka={},yg={},v2=+new Date-0,fc="_echarts_instance_";function ON(r,e,t){{var n=c2(r);if(n)return n}var i=new $1(r,e,t);return i.id="ec_"+v2++,Ka[i.id]=i,G0(r,fc,i.id),X1(i),Oe.trigger("afterinit",i),i}function c2(r){return Ka[dT(r,fc)]}function K1(r,e){q1[r]=e}function Q1(r){ut(zh,r)<0&&zh.push(r)}function J1(r,e){vc(Vh,r,e,e2)}function p2(r){hc("afterinit",r)}function d2(r){hc("afterupdate",r)}function hc(r,e){Oe.on(r,e)}function fr(r,e,t){q(e)&&(t=e,e="");var n=X(r)?r.type:[r,r={event:e}][0];r.event=(r.event||n).toLowerCase(),e=r.event,!qa[e]&&(Ae(fg.test(n)&&fg.test(e)),ol[n]||(ol[n]={action:t,actionInfo:r}),qa[e]=n)}function g2(r,e){tc.register(r,e)}function y2(r,e){vc(sl,r,e,V1,"layout")}function ni(r,e){vc(sl,r,e,z1,"visual")}var mg=[];function vc(r,e,t,n,i){if((q(e)||X(e))&&(t=e,e=n),!(ut(mg,t)>=0)){mg.push(t);var a=T1.wrapStageHandler(t,i);a.__prio=e,a.__raw=t,r.push(a)}}function j1(r,e){Gh[r]=e}function m2(r,e,t){var n=KA("registerMap");n&&n(r,e,t)}var _2=ID;ni(lc,iA);ni(Xl,aA);ni(Xl,oA);ni(lc,_A);ni(Xl,SA);ni(G1,$A);Q1(n1);J1(jA,uD);j1("default",sA);fr({type:Gn,event:Gn,update:Gn},Rt);fr({type:xs,event:xs,update:xs},Rt);fr({type:Wa,event:Wa,update:Wa},Rt);fr({type:Ts,event:Ts,update:Ts},Rt);fr({type:Ua,event:Ua,update:Ua},Rt);K1("light",yA);K1("dark",A1);function da(r){return r==null?0:r.length||1}function _g(r){return r}var cc=function(){function r(e,t,n,i,a,o){this._old=e,this._new=t,this._oldKeyGetter=n||_g,this._newKeyGetter=i||_g,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=da(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=da(u),c=da(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[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,i)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],a=t[i],o=da(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);t[i]=null}},r.prototype._initIndexMap=function(e,t,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!t){var l=t[s],u=da(l);u===0?(t[s]=o,a&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}(),S2=function(){function r(e,t){this._encode=e,this._schema=t}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 b2(r,e){var t={},n=t.encode={},i=Y(),a=[],o=[],s={};T(r.dimensions,function(c){var v=r.getDimensionInfo(c),p=v.coordDim;if(p){var d=v.coordDimIndex;uf(n,p)[d]=c,v.isExtraCoord||(i.set(p,1),w2(v.type)&&(a[0]=c),uf(s,p)[d]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}X_.each(function(g,y){var m=uf(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};i.each(function(c,v){var p=n[v];u[v]=p[0],l=l.concat(p)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=F(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,t.userOutput=new S2(s,e),t}function uf(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function Hh(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function w2(r){return!(r==="ordinal"||r==="time")}var As=function(){function r(e){this.otherDims={},e!=null&&N(this,e)}return r}(),x2=St(),T2={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},tS=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=nS(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return K(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=a1(this.source),n=!iS(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=t?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}a.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=T2[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,p=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===t)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function eS(r){return r instanceof tS}function rS(r){for(var e=Y(),t=0;t<(r||[]).length;t++){var n=r[t],i=X(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,t)}return e}function nS(r){var e=x2(r);return e.dimNameMap||(e.dimNameMap=rS(r.dimensionsDefine))}function iS(r){return r>30}var ga=X,Br=F,M2=typeof Int32Array>"u"?Array:Int32Array,C2="e\0\0",Sg=-1,D2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],A2=["_approximateExtent"],bg,Qo,ya,ma,ff,_a,hf,Oi=function(){function r(e,t){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;eS(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],c=W(h)?new As({name:h}):h instanceof As?h:new As(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),a[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),p.itemName===0&&(this._nameDimIdx=f),p.itemId===0&&(this._idDimIdx=f),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=Y();T(o,function(g){d.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var i=this._schema.getSourceDimension(t);if(i)return i.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(pt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var i=this,a;if(e instanceof Rh&&(a=e),!a){var o=this.dimensions,s=ec(e)||ae(e)?new o1(e,o.length):e;a=new Rh;var l=Br(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=b2(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=t[l],o&&hf(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Jr&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Le;if(l&&!i.pure)for(var u=[],f=e;f<t;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&eT(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=ze(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=ze(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)hf(this,f);bg(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){ga(e)?N(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=ya(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},r.prototype.getId=function(e){return Qo(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,i=this._store;return B(e)?i.getValues(Br(e,function(a){return n._getStoreDimIndex(a)}),t):i.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],i=n&&n[t];return i==null||isNaN(i)?Sg:i},r.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},r.prototype.each=function(e,t,n){q(e)&&(n=t,t=e,e=[]);var i=n||this,a=Br(ma(e),this._getStoreDimIndex,this);this._store.each(a,i?U(t,i):t)},r.prototype.filterSelf=function(e,t,n){q(e)&&(n=t,t=e,e=[]);var i=n||this,a=Br(ma(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?U(t,i):t),this},r.prototype.selectRange=function(e){var t=this,n={},i=_t(e);return T(i,function(a){var o=t._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){q(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},n),i},r.prototype.map=function(e,t,n,i){var a=n||i||this,o=Br(ma(e),this._getStoreDimIndex,this),s=_a(this);return s._store=this._store.map(o,a?U(t,a):t),s},r.prototype.modify=function(e,t,n,i){var a=n||i||this,o=Br(ma(e),this._getStoreDimIndex,this);this._store.modify(o,a?U(t,a):t)},r.prototype.downSample=function(e,t,n,i){var a=_a(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),a},r.prototype.minmaxDownSample=function(e,t){var n=_a(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=_a(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new mt(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new cc(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Qo(e,n)},function(n){return Qo(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},ga(e)?N(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return i??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[t];return a==null&&(a=this.getVisual(t),B(a)?a=a.slice():ga(a)&&(a=N({},a)),i[t]=a),a},r.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,ga(t)?N(i,t):i[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){ga(e)?N(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?N(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;pM(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){T(this._graphicEls,function(n,i){n&&e&&e.call(t,n,i)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Br(this.dimensions,this._getDimInfo,this),this.hostModel)),ff(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return t.apply(this,[i].concat(Cv(arguments)))})},r.internalField=function(){bg=function(e){var t=e._invertedIndicesMap;T(t,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=t[i]=new M2(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Sg;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},ya=function(e,t,n){return ze(e._getCategory(t,n),null)},Qo=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=ya(e,e._idDimIdx,t)),n==null&&(n=C2+t),n},ma=function(e){return B(e)||(e=e!=null?[e]:[]),e},_a=function(e){var t=new r(e._schema?e._schema:Br(e.dimensions,e._getDimInfo,e),e.hostModel);return ff(t,e),t},ff=function(e,t){T(D2.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,T(A2,function(n){e[n]=$(t[n])}),e._calculationInfo=N({},t._calculationInfo)},hf=function(e,t){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=i[t];if(s==null&&a!=null&&(n[t]=s=ya(e,a,t)),l==null&&o!=null&&(i[t]=l=ya(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[t]=l}}}(),r}();function aS(r,e){ec(r)||(r=rc(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],i=Y(),a=[],o=L2(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&iS(o),l=n===r.dimensionsDefine,u=l?nS(r):rS(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=Y(f),c=new v1(o),v=0;v<c.length;v++)c[v]=-1;function p(C){var A=c[C];if(A<0){var D=n[C],I=X(D)?D:{name:D},L=new As,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var R=a.length;return c[C]=R,L.storeDimIndex=C,a.push(L),L}return a[A]}if(!s)for(var v=0;v<o;v++)p(v);h.each(function(C,A){var D=Lt(C).slice();if(D.length===1&&!W(D[0])&&D[0]<0){h.set(A,!1);return}var I=h.set(A,[]);T(D,function(L,P){var R=W(L)?u.get(L):L;R!=null&&R<o&&(I[P]=R,g(p(R),A,P))})});var d=0;T(t,function(C){var A,D,I,L;if(W(C))A=C,L={};else{L=C,A=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=N({},L),L.ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(A);if(R!==!1){if(R=Lt(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&R.push(d++)}T(R,function(z,O){var V=p(z);if(l&&L.type!=null&&(V.type=L.type),g(nt(V,L),A,O),V.name==null&&D){var G=D[O];!X(G)&&(G={name:G}),V.name=V.displayName=G.name,V.defaultTooltip=G.defaultTooltip}I&&nt(V.otherDims,I)})}});function g(C,A,D){X_.get(A)!=null?C.otherDims[A]=D:(C.coordDim=A,C.coordDimIndex=D,i.set(A,!0))}var y=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)T(a,function(C){w(C)}),a.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var b=0;b<o;b++){var x=p(b),M=x.coordDim;M==null&&(x.coordDim=P2(S,i,_),x.coordDimIndex=0,(!y||m<=0)&&(x.isExtraCoord=!0),m--),w(x),x.type==null&&(J_(r,b)===Ot.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return I2(a),new tS({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function I2(r){for(var e=Y(),t=0;t<r.length;t++){var n=r[t],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function L2(r,e,t,n){var i=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return T(e,function(a){var o;X(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function P2(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var R2=function(){function r(e){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=e}return r}();function k2(r){var e=r.get("coordinateSystem"),t=new R2(e),n=E2[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var E2={cartesian2d:function(r,e,t,n){var i=r.getReferringComponents("xAxis",Ut).models[0],a=r.getReferringComponents("yAxis",Ut).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",a),mi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),mi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var i=r.getReferringComponents("singleAxis",Ut).models[0];e.coordSysDims=["single"],t.set("single",i),mi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var i=r.getReferringComponents("polar",Ut).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),mi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),mi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];t.set(f,u),mi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function mi(r){return r.get("type")==="category"}function O2(r,e,t){t=t||{};var n=t.byIndex,i=t.stackedCoordDimension,a,o,s;N2(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(T(a,function(m,_){W(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,p=f.type,d=0;T(a,function(m){m.coordDim===v&&d++});var g={name:h,coordDim:v,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function N2(r){return!eS(r.schema)}function Jn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function oS(r,e){return Jn(r,e)?r.getCalculationInfo("stackResultDimension"):e}function B2(r,e){var t=r.get("coordinateSystem"),n=tc.get(t),i;return e&&e.coordSysDims&&(i=F(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=Hh(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function F2(r,e,t){var n,i;return t&&T(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function $l(r,e,t){t=t||{};var n=e.getSourceManager(),i,a=!1;r?(a=!0,i=rc(r)):(i=n.getSource(),a=i.sourceFormat===Le);var o=k2(e),s=B2(e,o),l=t.useEncodeDefaulter,u=q(l)?l:l?it(K_,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=aS(i,f),c=F2(h.dimensions,t.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),p=O2(e,{schema:h,store:v}),d=new Oi(h,e);d.setCalculationInfo(p);var g=c!=null&&V2(i)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(a?i:v,null,g),d}function V2(r){if(r.sourceFormat===Le){var e=z2(r.data||[]);return!B(yo(e))}}function z2(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var hr=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();xl(hr);var G2=0,Wh=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++G2}return r.createByAxisModel=function(e){var t=e.option,n=t.data,i=n&&F(n,H2);return new r({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!W(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},r}();function H2(r){return X(r)&&r.value!=null?r.value:r+""}function Uh(r){return r.type==="interval"||r.type==="log"}function W2(r,e,t,n){var i={},a=r[1]-r[0],o=i.interval=O0(a/e);t!=null&&o<t&&(o=i.interval=t),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=sS(o),l=i.niceTickExtent=[Dt(Math.ceil(r[0]/o)*o,s),Dt(Math.floor(r[1]/o)*o,s)];return U2(l,r),i}function vf(r){var e=Math.pow(10,Rv(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Dt(t*e)}function sS(r){return er(r)+2}function wg(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function U2(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),wg(r,0,e),wg(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function ql(r,e){return r>=e[0]&&r<=e[1]}function Kl(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Ql(r,e){return r*(e[1]-e[0])+e[0]}var pc=function(r){k(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Wh({})),B(i)&&(i=new Wh({categories:F(i,function(a){return X(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:W(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),ql(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Kl(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Ql(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,i=n[0];i<=n[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hr);hr.registerClass(pc);var Tn=Dt,rn=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return ql(t,this._extent)},e.prototype.normalize=function(t){return Kl(t,this._extent)},e.prototype.scale=function(t){return Ql(t,this._extent)},e.prototype.setExtent=function(t,n){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(n)||(i[1]=parseFloat(n))},e.prototype.unionExtent=function(t){var n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=sS(t)},e.prototype.getTicks=function(t){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(t?s.push({value:Tn(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Tn(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(t?s.push({value:Tn(f+n,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],h=s.value-l.value,c=h/t;u<t-1;){var v=Tn(l.value+(u+1)*c);v>a[0]&&v<a[1]&&f.push(v),u++}i.push(f)}return i},e.prototype.getLabel=function(t,n){if(t==null)return"";var i=n&&n.precision;i==null?i=er(t.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Tn(t.value,i,!0);return H_(a)},e.prototype.calcNiceTicks=function(t,n,i){t=t||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=W2(a,t,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);t.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(n[0]=Tn(Math.floor(n[0]/o)*o)),t.fixMax||(n[1]=Tn(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(t,n){this._niceExtent=[t,n]},e.type="interval",e}(hr);hr.registerClass(rn);var lS=typeof Float32Array<"u",Y2=lS?Float32Array:Array;function nr(r){return B(r)?lS?new Float32Array(r):r:new Y2(r)}var Yh="__ec_stack_";function uS(r){return r.get("stack")||Yh+r.seriesIndex}function dc(r){return r.dim+r.index}function NN(r){var e=[],t=r.axis,n="axis0";if(t.type==="category"){for(var i=t.getBandWidth(),a=0;a<r.count;a++)e.push(nt({bandWidth:i,axisKey:n,stackId:Yh+a},r));for(var o=vS(e),s=[],a=0;a<r.count;a++){var l=o[n][Yh+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function fS(r,e){var t=[];return e.eachSeriesByType(r,function(n){cS(n)&&t.push(n)}),t}function Z2(r){var e={};T(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);e[c]?e[c].push(y):e[c]=[y]}});var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}t[n]=a}}return t}function hS(r){var e=Z2(r),t=[];return T(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var p=tt(n.get("barWidth"),s),d=tt(n.get("barMaxWidth"),s),g=tt(n.get("barMinWidth")||(pS(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:dc(a),stackId:uS(n)})}),vS(t)}function vS(r){var e={};T(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var c=n.barMinWidth;c&&(l[u].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return T(e,function(n,i){t[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=_t(a).length;s=Math.max(35-l*4,15)+"%"}var u=tt(s,o),f=tt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),T(a,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;T(a,function(y,m){y.width||(y.width=v),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;T(a,function(y,m){t[i][m]=t[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function X2(r,e,t){if(r&&e){var n=r[dc(e)];return n}}function $2(r,e){var t=fS(r,e),n=hS(t);T(t,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=uS(i),u=n[dc(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function q2(r){return{seriesType:r,plan:bo(),reset:function(e){if(cS(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),f=t.getCalculationInfo("stackResultDimension"),h=Jn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=K2(i,a),p=pS(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var w=_.count,b=p&&nr(w*3),x=p&&l&&nr(w*3),M=p&&nr(w),C=n.master.getRect(),A=c?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(h?g:o,D),R=I.get(s,D),E=v,z=void 0;h&&(z=+P-I.get(o,D));var O=void 0,V=void 0,G=void 0,H=void 0;if(c){var Z=n.dataToPoint([P,R]);if(h){var et=n.dataToPoint([z,R]);E=et[0]}O=E,V=Z[1]+m,G=Z[0]-E,H=y,Math.abs(G)<d&&(G=(G<0?-1:1)*d)}else{var Z=n.dataToPoint([R,P]);if(h){var et=n.dataToPoint([R,z]);E=et[1]}O=Z[0]+m,V=E,G=y,H=Z[1]-E,Math.abs(H)<d&&(H=(H<=0?-1:1)*d)}p?(b[L]=O,b[L+1]=V,b[L+2]=c?G:H,x&&(x[L]=c?C.x:O,x[L+1]=c?V:C.y,x[L+2]=A),M[D]=D):S.setItemLayout(D,{x:O,y:V,width:G,height:H}),L+=3}p&&S.setLayout({largePoints:b,largeDataIndices:M,largeBackgroundPoints:x,valueAxisHorizontal:c})}}}}}}function cS(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function pS(r){return r.pipelineContext&&r.pipelineContext.large}function K2(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var Q2=function(r,e,t,n){for(;t<n;){var i=t+n>>>1;r[i][1]<e?t=i+1:n=i}return t},dS=function(r){k(e,r);function e(t){var n=r.call(this,t)||this;return n.type="time",n}return e.prototype.getLabel=function(t){var n=this.getSetting("useUTC");return Bl(t.value,cd[LC(Ri(this._minLevelUnit))]||cd.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return PC(t,n,i,o,a)},e.prototype.getTicks=function(){var t=this._interval,n=this._extent,i=[];if(!t)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=iI(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1]&&(n[0]-=De,n[1]+=De),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-De}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,n,i){t=t||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/t,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Jo.length,l=Math.min(Q2(Jo,this._approxInterval,0,s),s-1);this._interval=Jo[l][1],this._minLevelUnit=Jo[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return pt(t)?t:+Cr(t)},e.prototype.contain=function(t){return ql(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Kl(this.parse(t),this._extent)},e.prototype.scale=function(t){return Ql(t,this._extent)},e.type="time",e}(rn),Jo=[["second",Xv],["minute",$v],["hour",Xa],["quarter-day",Xa*6],["half-day",Xa*12],["day",De*1.2],["half-week",De*3.5],["week",De*7],["month",De*31],["quarter",De*95],["half-year",vd/2],["year",vd]];function J2(r,e,t,n){var i=Cr(e),a=Cr(t),o=function(p){return pd(i,p,n)===pd(a,p,n)},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 j2(r,e){return r/=De,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function tI(r){var e=30*De;return r/=e,r>6?6:r>3?3:r>2?2:1}function eI(r){return r/=Xa,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function xg(r,e){return r/=e?$v:Xv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function rI(r){return O0(r)}function nI(r,e,t){var n=new Date(r);switch(Ri(e)){case"year":case"month":n[N_(t)](0);case"day":n[B_(t)](1);case"hour":n[F_(t)](0);case"minute":n[V_(t)](0);case"second":n[z_(t)](0),n[G_(t)](0)}return n.getTime()}function iI(r,e,t,n){var i=1e4,a=E_,o=0;function s(A,D,I,L,P,R,E){for(var z=new Date(D),O=D,V=z[L]();O<I&&O<=n[1];)E.push({value:O}),V+=A,z[P](V),O=z.getTime();E.push({value:O,notAdd:!0})}function l(A,D,I){var L=[],P=!D.length;if(!J2(Ri(A),n[0],n[1],t)){P&&(D=[{value:nI(new Date(n[0]),A,t)},{value:n[1]}]);for(var R=0;R<D.length-1;R++){var E=D[R].value,z=D[R+1].value;if(E!==z){var O=void 0,V=void 0,G=void 0,H=!1;switch(A){case"year":O=Math.max(1,Math.round(e/De/365)),V=qv(t),G=RC(t);break;case"half-year":case"quarter":case"month":O=tI(e),V=ki(t),G=N_(t);break;case"week":case"half-week":case"day":O=j2(e),V=Fl(t),G=B_(t),H=!0;break;case"half-day":case"quarter-day":case"hour":O=eI(e),V=ao(t),G=F_(t);break;case"minute":O=xg(e,!0),V=Vl(t),G=V_(t);break;case"second":O=xg(e,!1),V=zl(t),G=z_(t);break;case"millisecond":O=rI(e),V=Gl(t),G=G_(t);break}s(O,E,z,V,G,H,L),A==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R<L.length;R++)I.push(L[R]);return L}}for(var u=[],f=[],h=0,c=0,v=0;v<a.length&&o++<i;++v){var p=Ri(a[v]);if(IC(a[v])){l(a[v],u[u.length-1]||[],f);var d=a[v+1]?Ri(a[v+1]):null;if(p!==d){if(f.length){c=h,f.sort(function(A,D){return A.value-D.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>=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/e;if(h>_*1.5&&c>_/1.5||(u.push(g),h>_||r===a[v]))break}f=[]}}}for(var S=Ct(F(u,function(A){return Ct(A,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(A){return A.length>0}),w=[],b=S.length-1,v=0;v<S.length;++v)for(var x=S[v],M=0;M<x.length;++M)w.push({value:x[M].value,level:b-v});w.sort(function(A,D){return A.value-D.value});for(var C=[],v=0;v<w.length;++v)(v===0||w[v].value!==w[v-1].value)&&C.push(w[v]);return C}hr.registerClass(dS);var Tg=hr.prototype,Qa=rn.prototype,aI=Dt,oI=Math.floor,sI=Math.ceil,jo=Math.pow,Re=Math.log,gc=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new rn,t._interval=0,t}return e.prototype.getTicks=function(t){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Qa.getTicks.call(this,t);return F(o,function(s){var l=s.value,u=Dt(jo(this.base,l));return u=l===i[0]&&this._fixMin?ts(u,a[0]):u,u=l===i[1]&&this._fixMax?ts(u,a[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,n){var i=Re(this.base);t=Re(Math.max(0,t))/i,n=Re(Math.max(0,n))/i,Qa.setExtent.call(this,t,n)},e.prototype.getExtent=function(){var t=this.base,n=Tg.getExtent.call(this);n[0]=jo(t,n[0]),n[1]=jo(t,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=ts(n[0],a[0])),this._fixMax&&(n[1]=ts(n[1],a[1])),n},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var n=this.base;t[0]=Re(t[0])/Re(n),t[1]=Re(t[1])/Re(n),Tg.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(t){t=t||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=jx(i),o=t/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Dt(sI(n[0]/a)*a),Dt(oI(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Qa.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Re(t)/Re(this.base),ql(t,this._extent)},e.prototype.normalize=function(t){return t=Re(t)/Re(this.base),Kl(t,this._extent)},e.prototype.scale=function(t){return t=Ql(t,this._extent),jo(this.base,t)},e.type="log",e}(hr),gS=gc.prototype;gS.getMinorTicks=Qa.getMinorTicks;gS.getLabel=Qa.getLabel;function ts(r,e){return aI(r,er(e))}hr.registerClass(gc);var lI=function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var a=t.get("min",!0);a==null&&(a=t.get("startValue",!0));var o=this._modelMinRaw=a;q(o)?this._modelMinNum=es(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=es(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(q(s)?this._modelMaxNum=es(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=es(e,s)),i)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=B(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ar(u[0],1),ar(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?i?0:NaN:t-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Rs(s)||Rs(l)||e&&!i;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(e,t){this[fI[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=uI[e];this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),uI={min:"_determinedMin",max:"_determinedMax"},fI={min:"_dataMin",max:"_dataMax"};function yS(r,e,t){var n=r.rawExtentInfo;return n||(n=new lI(r,e,t),r.rawExtentInfo=n,n)}function es(r,e){return e==null?null:Rs(e)?NaN:r.parse(e)}function mS(r,e){var t=r.type,n=yS(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&t==="time"){var s=fS("bar",o),l=!1;if(T(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=hS(s),f=hI(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function hI(r,e,t,n){var i=t.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=X2(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;T(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/a,c=f/h-f;return e+=c*(l/u),r-=c*(s/u),{min:r,max:e}}function Mg(r,e){var t=e,n=mS(r,t),i=n.extent,a=t.get("splitNumber");r instanceof gc&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function vI(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new pc({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new dS({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(hr.getClass(e)||rn)}}function cI(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function Ji(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(e):W(e)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(e):q(e)?function(n){return function(i,a){return t!=null&&(a=i.value-t),n(yc(r,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return r.scale.getLabel(n)}}function yc(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function pI(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var n,i,a=t.getExtent();t instanceof pc?i=t.count():(n=t.getTicks(),i=n.length);var o=r.getLabelModel(),s=Ji(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var h=n?n[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),p=dI(v,o.get("rotate")||0);l?l.union(p):l=p}return l}}function dI(r,e){var t=e*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(t))+Math.abs(i*Math.sin(t)),o=n*Math.abs(Math.sin(t))+Math.abs(i*Math.cos(t)),s=new at(r.x,r.y,a,o);return s}function mc(r){var e=r.get("interval");return e??"auto"}function _S(r){return r.type==="category"&&mc(r.getLabelModel())===0}function SS(r,e){var t={};return T(r.mapDimensionsAll(e),function(n){t[oS(r,n)]=!0}),_t(t)}function gI(r,e,t){e&&T(SS(e,t),function(n){var i=e.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var bS=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),Cg=[],yI={registerPreprocessor:Q1,registerProcessor:J1,registerPostInit:p2,registerPostUpdate:d2,registerUpdateLifecycle:hc,registerAction:fr,registerCoordinateSystem:g2,registerLayout:y2,registerVisual:ni,registerTransform:_2,registerLoading:j1,registerMap:m2,registerImpl:qA,PRIORITY:l2,ComponentModel:ht,ComponentView:kt,SeriesModel:qt,ChartView:Yt,registerComponentModel:function(r){ht.registerClass(r)},registerComponentView:function(r){kt.registerClass(r)},registerSeriesModel:function(r){qt.registerClass(r)},registerChartView:function(r){Yt.registerClass(r)},registerSubTypeDefaulter:function(r,e){ht.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){Zx(r,e)}};function Qt(r){if(B(r)){T(r,function(e){Qt(e)});return}ut(Cg,r)>=0||(Cg.push(r),q(r)&&(r={install:r}),r.install(yI))}var mI=1e-8;function Dg(r,e){return Math.abs(r-e)<mI}function Ln(r,e,t){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=yr(i[0],i[1],o[0],o[1],e,t),i=o}var s=r[0];return(!Dg(i[0],s[0])||!Dg(i[1],s[1]))&&(n+=yr(i[0],i[1],s[0],s[1],e,t)),n!==0}var _I=[];function cf(r,e){for(var t=0;t<r.length;t++)Nt(r[t],r[t],e)}function Ag(r,e,t,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Wr(e,e,a),Ur(t,t,a))}}function SI(r){for(var e=0,t=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;e+=f,t+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var wS=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),Ig=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),Lg=function(){function r(e){this.type="linestring",this.points=e}return r}(),xS=function(r){k(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,i=0,a=0;a<t.length;a++){var o=t[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return SI(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?Ag(s.exterior,i,a,t):T(s.points,function(l){Ag(l,i,a,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new at(i[0],i[1],a[0]-i[0],a[1]-i[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(t[0],t[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Ln(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Ln(u[f],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new at(t,n,i,a),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(cf(c.exterior,u),T(c.interiors,function(v){cf(v,u)})):T(c.points,function(v){cf(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(wS),bI=function(r){k(e,r);function e(t,n){var i=r.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=_l(_I),o=t;o&&!o.isGeoSVGGraphicRoot;)Sr(a,o.getLocalTransform(),a),o=o.parent;return Yi(a,a),Nt(i,i,a),i},e}(wS);function wI(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return T(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=TS(s,o,t);break;case"Polygon":pf(s,o,t);break;case"MultiLineString":pf(s,o,t);break;case"MultiPolygon":T(s,function(l,u){return pf(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function pf(r,e,t){for(var n=0;n<r.length;n++)r[n]=TS(r[n],e[n],t)}function TS(r,e,t){for(var n=[],i=e[0],a=e[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+=i,l+=a,i=s,a=l,n.push([s/t,l/t])}return n}function xI(r,e){return r=wI(r),F(Ct(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Ig(o[0],o.slice(1)));break;case"MultiPolygon":T(i.coordinates,function(l){l[0]&&a.push(new Ig(l[0],l.slice(1)))});break;case"LineString":a.push(new Lg([i.coordinates]));break;case"MultiLineString":a.push(new Lg(i.coordinates))}var s=new xS(n[e||"name"],a,n.cp);return s.properties=n,s})}var fo=St();function MS(r,e){var t=F(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function TI(r){var e=r.getLabelModel().get("customValues");if(e){var t=Ji(r),n=r.scale.getExtent(),i=MS(r,e),a=Ct(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:F(a,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?CI(r):AI(r)}function MI(r,e){var t=r.getTickModel().get("customValues");if(t){var n=r.scale.getExtent(),i=MS(r,t);return{ticks:Ct(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?DI(r,e):{ticks:F(r.scale.getTicks(),function(a){return a.value})}}function CI(r){var e=r.getLabelModel(),t=CS(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function CS(r,e){var t=DS(r,"labels"),n=mc(e),i=AS(t,n);if(i)return i;var a,o;return q(n)?a=PS(r,n):(o=n==="auto"?II(r):n,a=LS(r,o)),IS(t,n,{labels:a,labelCategoryInterval:o})}function DI(r,e){var t=DS(r,"ticks"),n=mc(e),i=AS(t,n);if(i)return i;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),q(n))a=PS(r,n,!0);else if(n==="auto"){var s=CS(r,r.getLabelModel());o=s.labelCategoryInterval,a=F(s.labels,function(l){return l.tickValue})}else o=n,a=LS(r,o,!0);return IS(t,n,{ticks:a,tickCategoryInterval:o})}function AI(r){var e=r.scale.getTicks(),t=Ji(r);return{labels:F(e,function(n,i){return{level:n.level,formattedLabel:t(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function DS(r,e){return fo(r)[e]||(fo(r)[e]=[])}function AS(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function IS(r,e,t){return r.push({key:e,value:t}),t}function II(r){var e=fo(r).autoInterval;return e??(fo(r).autoInterval=r.calculateCategoryInterval())}function LI(r){var e=PI(r),t=Ji(r),n=(e.axisRotate-e.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),c=0,v=0;l<=a[1];l+=s){var p=0,d=0,g=bl(t({value:l}),e.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),w=r.getExtent(),b=S.lastAutoInterval,x=S.lastTickCount;return b!=null&&x!=null&&Math.abs(b-_)<=1&&Math.abs(x-o)<=1&&b>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function PI(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function LS(r,e,t){var n=Ji(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=_S(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&d(a[0]);for(var p=u;p<=a[1];p+=l)d(p);v&&p-l!==a[1]&&d(a[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function PS(r,e,t){var n=r.scale,i=Ji(r),a=[];return T(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(t?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Pg=[0,1],RS=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return k0(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Rg(n,i.count())),wt(e,Pg,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Rg(n,i.count()));var a=wt(e,n,Pg,t);return this.scale.scale(a)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=MI(this,t),i=n.ticks,a=F(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return RI(this,a,o,e.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=F(n,function(a){return F(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return TI(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 e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return LI(this)},r}();function Rg(r,e){var t=r[1]-r[0],n=e,i=t/n/2;r[0]+=i,r[1]-=i}function RI(r,e,t,n){var i=e.length;if(!r.onBand||t||!i)return;var a=r.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[1],tickValue:e[0].tickValue};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;T(e,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:f[1]+1},e.push(o)}var h=a[0]>a[1];c(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&c(a[0],e[0].coord)&&e.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&c(o.coord,a[1])&&e.push({coord:a[1]});function c(v,p){return v=Dt(v),p=Dt(p),h?v>p:v<p}}var Sa=Math.PI*2,Mn=en.CMD,kI=["top","right","bottom","left"];function EI(r,e,t,n,i){var a=t.width,o=t.height;switch(r){case"top":n.set(t.x+a/2,t.y-e),i.set(0,-1);break;case"bottom":n.set(t.x+a/2,t.y+o+e),i.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),i.set(-1,0);break;case"right":n.set(t.x+a+e,t.y+o/2),i.set(1,0);break}}function OI(r,e,t,n,i,a,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,h=s*t+e;if(Math.abs(n-i)%Sa<1e-4)return l[0]=f,l[1]=h,u-t;if(a){var c=n;n=Xr(i),i=Xr(c)}else n=Xr(n),i=Xr(i);n>i&&(i+=Sa);var v=Math.atan2(s,o);if(v<0&&(v+=Sa),v>=n&&v<=i||v+Sa>=n&&v+Sa<=i)return l[0]=f,l[1]=h,u-t;var p=t*Math.cos(n)+r,d=t*Math.sin(n)+e,g=t*Math.cos(i)+r,y=t*Math.sin(i)+e,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 ll(r,e,t,n,i,a,o,s){var l=i-r,u=a-e,f=t-r,h=n-e,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]=e+p*h;return Math.sqrt((d-i)*(d-i)+(g-a)*(g-a))}function kS(r,e,t,n,i,a,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(f-a)*(f-a))}var Ne=[];function NI(r,e,t){var n=kS(e.x,e.y,e.width,e.height,r.x,r.y,Ne);return t.set(Ne[0],Ne[1]),n}function BI(r,e,t){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,f=e.data,h=r.x,c=r.y,v=0;v<f.length;){var p=f[v++];v===1&&(n=f[v],i=f[v+1],a=n,o=i);var d=u;switch(p){case Mn.M:a=f[v++],o=f[v++],n=a,i=o;break;case Mn.L:d=ll(n,i,f[v],f[v+1],h,c,Ne,!0),n=f[v++],i=f[v++];break;case Mn.C:d=b0(n,i,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,Ne),n=f[v++],i=f[v++];break;case Mn.Q:d=x0(n,i,f[v++],f[v++],f[v],f[v+1],h,c,Ne),n=f[v++],i=f[v++];break;case Mn.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],w=f[v++];v+=1;var b=!!(1-f[v++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,v<=1&&(a=s,o=l);var x=(h-g)*_/m+g;d=OI(g,y,_,S,S+w,b,x,c,Ne),n=Math.cos(S+w)*m+g,i=Math.sin(S+w)*_+y;break;case Mn.R:a=n=f[v++],o=i=f[v++];var M=f[v++],C=f[v++];d=kS(a,o,M,C,h,c,Ne);break;case Mn.Z:d=ll(n,i,a,o,h,c,Ne,!0),n=a,i=o;break}d<u&&(u=d,t.set(Ne[0],Ne[1]))}return u}var Fe=new j,yt=new j,xt=new j,ir=new j,tr=new j;function BN(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var i=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||kI,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,f=r.getComputedTransform(),h=f&&Yi([],f),c=e.get("length2")||0;u&&xt.copy(u);for(var v=0;v<o.length;v++){var p=o[v];EI(p,0,s,Fe,ir),j.scaleAndAdd(yt,Fe,ir,c),yt.transform(h);var d=r.getBoundingRect(),g=u?u.distance(yt):r instanceof ct?BI(yt,r.path,xt):NI(yt,d,xt);g<l&&(l=g,yt.transform(f),xt.transform(f),xt.toArray(a[0]),yt.toArray(a[1]),Fe.toArray(a[2]))}ES(a,e.get("minTurnAngle")),t.setShape({points:a})}}}var ul=[],Xt=new j;function ES(r,e){if(e<=180&&e>0){e=e/180*Math.PI,Fe.fromArray(r[0]),yt.fromArray(r[1]),xt.fromArray(r[2]),j.sub(ir,Fe,yt),j.sub(tr,xt,yt);var t=ir.len(),n=tr.len();if(!(t<.001||n<.001)){ir.scale(1/t),tr.scale(1/n);var i=ir.dot(tr),a=Math.cos(e);if(a<i){var o=ll(yt.x,yt.y,xt.x,xt.y,Fe.x,Fe.y,ul,!1);Xt.fromArray(ul),Xt.scaleAndAdd(tr,o/Math.tan(Math.PI-e));var s=xt.x!==yt.x?(Xt.x-yt.x)/(xt.x-yt.x):(Xt.y-yt.y)/(xt.y-yt.y);if(isNaN(s))return;s<0?j.copy(Xt,yt):s>1&&j.copy(Xt,xt),Xt.toArray(r[1])}}}}function FI(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Fe.fromArray(r[0]),yt.fromArray(r[1]),xt.fromArray(r[2]),j.sub(ir,yt,Fe),j.sub(tr,xt,yt);var n=ir.len(),i=tr.len();if(!(n<.001||i<.001)){ir.scale(1/n),tr.scale(1/i);var a=ir.dot(e),o=Math.cos(t);if(a<o){var s=ll(yt.x,yt.y,xt.x,xt.y,Fe.x,Fe.y,ul,!1);Xt.fromArray(ul);var l=Math.PI/2,u=Math.acos(tr.dot(e)),f=l+u-t;if(f>=l)j.copy(Xt,xt);else{Xt.scaleAndAdd(tr,s/Math.tan(Math.PI/2-f));var h=xt.x!==yt.x?(Xt.x-yt.x)/(xt.x-yt.x):(Xt.y-yt.y)/(xt.y-yt.y);if(isNaN(h))return;h<0?j.copy(Xt,yt):h>1&&j.copy(Xt,xt)}Xt.toArray(r[1])}}}}function df(r,e,t,n){var i=t==="normal",a=i?r:r.ensureState(t);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function VI(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var i=eh(n[0],n[1]),a=eh(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*t,s=au([],n[1],n[0],o/i),l=au([],n[1],n[2],o/a),u=au([],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],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function zI(r,e,t){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<Ys.length;l++){var u=Ys[l],f=e[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:K(i.states[u]&&i.states[u].ignore,s);if(v||!K(c,o)){var p=h?n:n&&n.states[u];p&&(p.ignore=!0),n&&df(n,!0,u,f);continue}n||(n=new Ue,r.setTextGuideLine(n),!h&&(s||!o)&&df(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),df(n,!1,u,f)}}if(n){nt(n.style,t),n.style.fill=null;var d=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,n.buildPath=VI}}function GI(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<se.length;n++){var i=se[n];t[i]=r.getModel([i,e])}return t}function HI(r){for(var e=[],t=0;t<r.length;t++){var n=r[t];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Xs(o,a):null;e.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return e}function OS(r,e,t,n,i,a){var o=r.length;if(o<2)return;r.sort(function(b,x){return b.rect[e]-x.rect[e]});for(var s=0,l,u=!1,f=0;f<o;f++){var h=r[f],c=h.rect;l=c[e]-s,l<0&&(c[e]-=l,h.label[e]-=l,u=!0),s=c[e]+c[t]}var v=r[0],p=r[o-1],d,g;y(),d<0&&S(-d,.8),g<0&&S(g,.8),y(),m(d,g,1),m(g,d,-1),y(),d<0&&w(-d),g<0&&w(g);function y(){d=v.rect[e]-n,g=i-p.rect[e]-p.rect[t]}function m(b,x,M){if(b<0){var C=Math.min(x,-b);if(C>0){_(C*M,0,o);var A=C+b;A<0&&S(-A*M,1)}else S(-b*M,1)}}function _(b,x,M){b!==0&&(u=!0);for(var C=x;C<M;C++){var A=r[C],D=A.rect;D[e]+=b,A.label[e]+=b}}function S(b,x){for(var M=[],C=0,A=1;A<o;A++){var D=r[A-1].rect,I=Math.max(r[A].rect[e]-D[e]-D[t],0);M.push(I),C+=I}if(C){var L=Math.min(Math.abs(b)/C,x);if(b>0)for(var A=0;A<o-1;A++){var P=M[A]*L;_(P,0,A+1)}else for(var A=o-1;A>0;A--){var P=M[A-1]*L;_(-P,A,o)}}}function w(b){var x=b<0?-1:1;b=Math.abs(b);for(var M=Math.ceil(b/(o-1)),C=0;C<o-1;C++)if(x>0?_(M,0,C+1):_(-M,o-C-1,o),b-=M,b<=0)return}return u}function FN(r,e,t,n){return OS(r,"x","width",e,t)}function WI(r,e,t,n){return OS(r,"y","height",e,t)}function UI(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new at(0,0,0,0);function n(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;t.copy(a.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=a.obb,c=!1,v=0;v<e.length;v++){var p=e[v];if(t.intersect(p.rect)){if(o&&p.axisAligned){c=!0;break}if(p.obb||(p.obb=new Xs(p.localRect,p.transform)),h||(h=new Xs(s,l)),h.intersect(p.obb)){c=!0;break}}}c?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}var YI=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return $l(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new st,i=Kt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(i),i.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=Kt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(qt);function _c(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var i=Vi(r,e,t[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<t.length;o++)a.push(Vi(r,e,t[o]));return a.join(" ")}}function NS(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!B(e))return e+"";for(var n=[],i=0;i<t.length;i++){var a=r.getDimensionIndex(t[i]);a>=0&&n.push(e[a])}return n.join(" ")}var Sc=function(r){k(e,r);function e(t,n,i,a){var o=r.call(this)||this;return o.updateData(t,n,i,a),o}return e.prototype._createSymbol=function(t,n,i,a,o){this.removeAll();var s=Kt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=ZI,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){$n(this.childAt(0))},e.prototype.downplay=function(){qn(this.childAt(0))},e.prototype.setZ=function(t,n){var i=this.childAt(0);i.zlevel=t,i.z=n},e.prototype.setDraggable=function(t,n){var i=this.childAt(0);i.draggable=t,i.cursor=!n&&t?"move":i.cursor},e.prototype.updateData=function(t,n,i,a){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,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):At(c,v,s,n),Bi(c)}if(this._updateCommon(t,n,l,i,a),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,Bt(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,i,a,o){var s=this.childAt(0),l=t.hostModel,u,f,h,c,v,p,d,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,d=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,p=a.emphasisDisabled),!a||t.hasItemOption){var m=a&&a.itemModel?a.itemModel:t.getItemModel(n),_=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=lr(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Zl(t.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=t.getItemVisual(n,"style"),x=b.fill;if(s instanceof We){var M=s.style;s.useStyle(N({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(N({},b)):s.useStyle(b),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;Lr(s,d,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:x,defaultOpacity:b.opacity});function I(R){return D?t.getName(R):_c(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Dr(this,c,v,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,i){var a=this.childAt(0),o=ot(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&$s(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();$s(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return Yl(t.getItemVisual(n,"symbolSize"))},e}(st);function ZI(r,e){this.parent.drift(r,e)}function gf(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function kg(r){return r!=null&&!X(r)&&(r={isIgnore:r}),r||{}}function Eg(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:lr(e),cursorStyle:e.get("cursor")}}var bc=function(){function r(e){this.group=new st,this._SymbolCtor=e||Sc}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=kg(t);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Eg(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};a||n.removeAll(),e.diff(a).add(function(h){var c=f(h);if(gf(e,c,h,t)){var v=new o(e,h,l,u);v.setPosition(c),e.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),p=f(h);if(!gf(e,p,h,t)){n.remove(v);return}var d=e.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==d)n.remove(v),v=new o(e,h,l,u),v.setPosition(p);else{v.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?v.attr(y):At(v,y,i)}n.add(v),e.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Eg(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=kg(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(gf(t,o,a,n)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){Xi(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},n.hostModel)}):t.removeAll()},r}();function BS(r,e,t){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=XI(i,t),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=F(r.dimensions,function(p){return e.mapDimension(p)}),c=!1,v=e.getCalculationInfo("stackResultDimension");return Jn(e,h[0])&&(c=!0,h[0]=v),Jn(e,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function XI(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:pt(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function FS(r,e,t,n){var i=NaN;r.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function $I(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,i){t.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function qI(r,e,t,n,i,a,o,s){for(var l=$I(r,e),u=[],f=[],h=[],c=[],v=[],p=[],d=[],g=BS(i,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],w=!0,b=void 0,x=void 0;switch(S.cmd){case"=":b=S.idx*2,x=S.idx1*2;var M=y[b],C=y[b+1],A=m[x],D=m[x+1];(isNaN(M)||isNaN(C))&&(M=A,C=D),u.push(M,C),f.push(A,D),h.push(t[b],t[b+1]),c.push(n[x],n[x+1]),d.push(e.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=i.dataToPoint([e.get(L[0],I),e.get(L[1],I)]);x=I*2,u.push(P[0],P[1]),f.push(m[x],m[x+1]);var R=FS(g,i,e,I);h.push(R[0],R[1]),c.push(n[x],n[x+1]),d.push(e.getRawIndex(I));break;case"-":w=!1}w&&(v.push(S),p.push(p.length))}p.sort(function(vt,Jt){return d[vt]-d[Jt]});for(var E=u.length,z=nr(E),O=nr(E),V=nr(E),G=nr(E),H=[],_=0;_<p.length;_++){var Z=p[_],et=_*2,lt=Z*2;z[et]=u[lt],z[et+1]=u[lt+1],O[et]=f[lt],O[et+1]=f[lt+1],V[et]=h[lt],V[et+1]=h[lt+1],G[et]=c[lt],G[et+1]=c[lt+1],H[_]=v[Z]}return{current:z,next:O,stackedOnCurrent:V,stackedOnNext:G,status:H}}var Fr=Math.min,Vr=Math.max;function Un(r,e){return isNaN(r)||isNaN(e)}function Zh(r,e,t,n,i,a,o,s,l){for(var u,f,h,c,v,p,d=t,g=0;g<n;g++){var y=e[d*2],m=e[d*2+1];if(d>=i||d<0)break;if(Un(y,m)){if(l){d+=a;continue}break}if(d===t)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=a;continue}if(o>0){for(var w=d+a,b=e[w*2],x=e[w*2+1];b===y&&x===m&&g<n;)g++,w+=a,d+=a,b=e[w*2],x=e[w*2+1],y=e[d*2],m=e[d*2+1],_=y-u,S=m-f;var M=g+1;if(l)for(;Un(b,x)&&M<n;)M++,w+=a,b=e[w*2],x=e[w*2+1];var C=.5,A=0,D=0,I=void 0,L=void 0;if(M>=n||Un(b,x))v=y,p=m;else{A=b-u,D=x-f;var P=y-u,R=b-y,E=m-f,z=x-m,O=void 0,V=void 0;if(s==="x"){O=Math.abs(P),V=Math.abs(R);var G=A>0?1:-1;v=y-G*O*o,p=m,I=y+G*V*o,L=m}else if(s==="y"){O=Math.abs(E),V=Math.abs(z);var H=D>0?1:-1;v=y,p=m-H*O*o,I=y,L=m+H*V*o}else O=Math.sqrt(P*P+E*E),V=Math.sqrt(R*R+z*z),C=V/(V+O),v=y-A*o*(1-C),p=m-D*o*(1-C),I=y+A*o*C,L=m+D*o*C,I=Fr(I,Vr(b,y)),L=Fr(L,Vr(x,m)),I=Vr(I,Fr(b,y)),L=Vr(L,Fr(x,m)),A=I-y,D=L-m,v=y-A*O/V,p=m-D*O/V,v=Fr(v,Vr(u,y)),p=Fr(p,Vr(f,m)),v=Vr(v,Fr(u,y)),p=Vr(p,Fr(f,m)),A=y-v,D=m-p,I=y+A*V/O,L=m+D*V/O}r.bezierCurveTo(h,c,v,p,y,m),h=I,c=L}else r.lineTo(y,m)}u=y,f=m,d+=a}return g}var VS=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),KI=function(r){k(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new VS},e.prototype.buildPath=function(t,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Un(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Un(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Zh(t,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=en.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var c=a[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=a[h++],l=a[h++];break;case o.L:if(v=a[h++],p=a[h++],_=u?(t-s)/(v-s):(t-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(v-s)*_+s;return u?[t,S]:[S,t]}s=v,l=p;break;case o.C:v=a[h++],p=a[h++],d=a[h++],g=a[h++],y=a[h++],m=a[h++];var w=u?Bs(s,v,d,y,t,f):Bs(l,p,g,m,t,f);if(w>0)for(var b=0;b<w;b++){var x=f[b];if(x<=1&&x>=0){var S=u?It(l,p,g,m,x):It(s,v,d,y,x);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(ct),QI=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(VS),JI=function(r){k(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new QI},e.prototype.buildPath=function(t,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Un(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Un(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Zh(t,i,o,s,s,1,n.smooth,l,n.connectNulls);Zh(t,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e}(ct);function zS(r,e,t,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new dt({shape:{x:o,y:s,width:l,height:u}});if(e){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(i)?function(g){i(g,h)}:null;Bt(h,{shape:{width:l,height:u,x:o,y:s}},t,null,n,d)}return h}function GS(r,e,t){var n=r.getArea(),i=Dt(n.r0,1),a=Dt(n.r,1),o=new nn({shape:{cx:Dt(r.cx,1),cy:Dt(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Bt(o,{shape:{endAngle:n.endAngle,r:a}},t)}return o}function HS(r,e,t,n,i){if(r){if(r.type==="polar")return GS(r,e,t);if(r.type==="cartesian2d")return zS(r,e,t,n,i)}else return null;return null}function Jl(r,e){return r.type===e}function Og(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function Ng(r){for(var e=1/0,t=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),i=Math.max(s,i))}return[[e,t],[n,i]]}function Bg(r,e){var t=Ng(r),n=t[0],i=t[1],a=Ng(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Fg(r){return pt(r)?r:r?.5:0}function jI(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),i=nr(n*2),a=0;a<n;a++){var o=FS(t,r,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function zr(r,e,t,n,i){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],c=[];if(i){for(l=0;l<r.length;l+=2){var v=e||r;!isNaN(v[l])&&!isNaN(v[l+1])&&c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(h[0]=r[l+2],h[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var p=(f[o]+h[o])/2,d=[];u[o]=d[o]=p,u[1-o]=f[1-o],d[1-o]=h[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function tL(r,e){var t=[],n=r.length,i,a;function o(f,h,c){var v=f.coord,p=(c-v)/(h.coord-v),d=dx(p,[f.color,h.color]);return{coord:c,color:d}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>e){a?t.push(o(a,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),a=l}return t}function eL(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=F(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=tL(u,i==="x"?t.getWidth():t.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";T(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 kl(0,0,0,0,c,!0);return m[i]=d,m[i+"2"]=g,m}}}function rL(r,e,t){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(i&&nL(a,e))){var o=e.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function nL(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Sc.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function iL(r,e){return isNaN(r)||isNaN(e)}function aL(r){for(var e=r.length/2;e>0&&iL(r[e*2-2],r[e*2-1]);e--);return e-1}function Vg(r,e){return[r[e*2],r[e*2+1]]}function oL(r,e,t){for(var n=r.length/2,i=t==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function WS(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<se.length;e++)if(r.get([se[e],"endLabel","show"]))return!0;return!1}function yf(r,e,t,n){if(Jl(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=WS(n)?function(v,p){r._endLabelOnDuring(v,p,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=zS(e,t,n,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.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 GS(e,t,n)}function sL(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),i=t.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var lL=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new st,n=new bc;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=U(this._changePolyState,this)},e.prototype.render=function(t,n,i){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",c=this._coordSys,v=this._symbolDraw,p=this._polyline,d=this._polygon,g=this._lineGroup,y=!n.ssr&&t.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=BS(a,s,_),w=m&&jI(a,s,S),b=t.get("showSymbol"),x=t.get("connectNulls"),M=b&&!h&&rL(t,s,a),C=this._data;C&&C.eachItemGraphicEl(function(vt,Jt){vt.__temp&&(o.remove(vt),C.setItemGraphicEl(Jt,null))}),b||v.remove(),o.add(g);var A=h?!1:t.get("step"),D;a&&a.getArea&&t.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=eL(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&c.type===a.type&&A===this._step))b&&v.updateData(s,{isIgnore:M,clipShape:D,disableAnimation:!0,getSymbolPoint:function(vt){return[f[vt*2],f[vt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,a,D),A&&(w&&(w=zr(w,f,a,A,x)),f=zr(f,null,a,A,x)),p=this._newPolyline(f),m?d=this._newPolygon(f,w):d&&(g.remove(d),d=this._polygon=null),h||this._initOrUpdateEndLabel(t,a,Qn(I)),g.setClipPath(yf(this,a,!0,t));else{m&&!d?d=this._newPolygon(f,w):d&&!m&&(g.remove(d),d=this._polygon=null),h||this._initOrUpdateEndLabel(t,a,Qn(I));var L=g.getClipPath();if(L){var P=yf(this,a,!1,t);Bt(L,{shape:P.shape},t)}else g.setClipPath(yf(this,a,!0,t));b&&v.updateData(s,{isIgnore:M,clipShape:D,disableAnimation:!0,getSymbolPoint:function(vt){return[f[vt*2],f[vt*2+1]]}}),(!Og(this._stackedOnPoints,w)||!Og(this._points,f))&&(y?this._doUpdateAnimation(s,w,a,i,A,_,x):(A&&(w&&(w=zr(w,f,a,A,x)),f=zr(f,null,a,A,x)),p.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:w})))}var R=t.getModel("emphasis"),E=R.get("focus"),z=R.get("blurScope"),O=R.get("disabled");if(p.useStyle(nt(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Kn(p,t,"lineStyle"),p.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var V=p.getState("emphasis").style;V.lineWidth=+p.style.lineWidth+1}ot(p).seriesIndex=t.seriesIndex,Dr(p,E,z,O);var G=Fg(t.get("smooth")),H=t.get("smoothMonotone");if(p.setShape({smooth:G,smoothMonotone:H,connectNulls:x}),d){var Z=s.getCalculationInfo("stackedOnSeries"),et=0;d.useStyle(nt(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Z&&(et=Fg(Z.get("smooth"))),d.setShape({smooth:G,stackedOnSmooth:et,smoothMonotone:H,connectNulls:x}),Kn(d,t,"areaStyle"),ot(d).seriesIndex=t.seriesIndex,Dr(d,E,z,O)}var lt=this._changePolyState;s.eachItemGraphicEl(function(vt){vt&&(vt.onHoverStateChange=lt)}),this._polyline.onHoverStateChange=lt,this._data=s,this._coordSys=a,this._stackedOnPoints=w,this._points=f,this._step=A,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,p),d&&this.packEventData(t,d))},e.prototype.packEventData=function(t,n){ot(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,i,a){var o=t.getData(),s=Zn(o,a);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=t.get("zlevel")||0,v=t.get("z")||0;u=new Sc(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 Yt.prototype.highlight.call(this,t,n,i,a)},e.prototype.downplay=function(t,n,i,a){var o=t.getData(),s=Zn(o,a);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 Yt.prototype.downplay.call(this,t,n,i,a)},e.prototype._changePolyState=function(t){var n=this._polygon;Sh(this._polyline,t),n&&Sh(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new KI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new JI({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");q(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=q(h)?h(null):h;t.eachItemGraphicEl(function(v,p){var d=v;if(d){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var b=i;a?(y=b.x,m=b.x+b.width,_=v.x):(y=b.y+b.height,m=b.y,_=v.y)}var x=m===y?0:(_-y)/(m-y);l&&(x=1-x);var M=q(h)?h(p):f*x+c,C=d.getSymbolPath(),A=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:M}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,i){var a=t.getModel("endLabel");if(WS(t)){var o=t.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 bt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=aL(l);f>=0&&(Lr(s,lr(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?NS(o,v):_c(o,h)},enableTextSetter:!0},sL(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?d:0)*(m?-1:1),b=(y?0:-d)*(m?-1:1),x=y?"x":"y",M=oL(h,S,x),C=M.range,A=C[1]-C[0],D=void 0;if(A>=1){if(A>1&&!v){var I=Vg(h,C[0]);u.attr({x:I[0]+w,y:I[1]+b}),o&&(D=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,x);I&&u.attr({x:I[0]+w,y:I[1]+b});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=H0(i,p,L,P,M.t))}a.lastFrameIndex=C[0]}else{var R=t===1||a.lastFrameIndex>0?C[0]:0,I=Vg(h,R);o&&(D=c.getRawValue(R)),u.attr({x:I[0]+w,y:I[1]+b})}if(o){var E=_o(u);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,c=qI(this._data,t,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,p=c.stackedOnCurrent,d=c.next,g=c.stackedOnNext;if(o&&(p=zr(c.stackedOnCurrent,c.current,i,o,l),v=zr(c.current,null,i,o,l),g=zr(c.stackedOnNext,c.next,i,o,l),d=zr(c.next,null,i,o,l)),Bg(v,d)>3e3||f&&Bg(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(),At(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:p}),f.stopAnimation(),At(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 w=_[S].cmd;if(w==="="){var b=t.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,M=0;M<m.length;M++){var C=m[M].el,A=m[M].ptIdx*2;C.x=x[A],C.y=x[A+1],C.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Yt);function wc(r,e){return{seriesType:r,plan:bo(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,a=t.pipelineContext,o=e||a.large;if(i){var s=F(i.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Jn(n,s[0])&&(s[0]=u),Jn(n,s[1])&&(s[1]=u);var f=n.getStore(),h=n.getDimensionIndex(s[0]),c=n.getDimensionIndex(s[1]);return l&&{progress:function(v,p){for(var d=v.end-v.start,g=o&&nr(d*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var w=void 0;if(l===1){var b=f.get(h,_);w=i.dataToPoint(b,null,m)}else y[0]=f.get(h,_),y[1]=f.get(c,_),w=i.dataToPoint(y,null,m);o?(g[S++]=w[0],g[S++]=w[1]):p.setItemLayout(_,w.slice())}o&&p.setLayout("points",g)}}}}}}var uL={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},fL=function(r){return Math.round(r.length/2)};function US(r){return{seriesType:r,reset:function(e,t,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var p=void 0;W(a)?p=uL[a]:q(a)&&(p=a),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,p,fL))}}}}}function VN(r){r.registerChartView(lL),r.registerSeriesModel(YI),r.registerLayout(wc("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,US("line"))}var Xh=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return $l(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(i)T(a.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var p=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),g=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,w=0;w<p.length;w++){var b=p[w].coord,x=w===p.length-1?p[w-1].tickValue+S:p[w].tickValue;if(x===g){_=b;break}else if(x<g)m=b;else if(m!=null&&x>g){_=(b+m)/2;break}w===1&&(S=x-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(qt);qt.registerClass(Xh);var hL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return $l(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,i){return i.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=qi(Xh.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}),e}(Xh),vL=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}(),zg=function(r){k(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new vL},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,c=n.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?(t.moveTo(d*o+i,g*o+a),t.arc(d*u+i,g*u+a,l,-Math.PI+f,f,!c)):t.moveTo(d*s+i,g*s+a),t.arc(i,a,s,f,h,!c),t.arc(y*u+i,m*u+a,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&t.arc(i,a,o,h,f,c)},e}(ct);function cL(r,e){e=e||{};var t=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Ws(n,i,a);var s=r(o),l=i.distance!=null?i.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=t?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,w=f+c*_(d),b=h+c*S(d),x="left",M="top";switch(s){case"startArc":w=f+(v-l)*_(y),b=h+(v-l)*S(y),x="center",M="top";break;case"insideStartArc":w=f+(v+l)*_(y),b=h+(v+l)*S(y),x="center",M="bottom";break;case"startAngle":w=f+p*_(d)+rs(d,l+m,!1),b=h+p*S(d)+ns(d,l+m,!1),x="right",M="middle";break;case"insideStartAngle":w=f+p*_(d)+rs(d,-l+m,!1),b=h+p*S(d)+ns(d,-l+m,!1),x="left",M="middle";break;case"middle":w=f+p*_(y),b=h+p*S(y),x="center",M="middle";break;case"endArc":w=f+(c+l)*_(y),b=h+(c+l)*S(y),x="center",M="bottom";break;case"insideEndArc":w=f+(c-l)*_(y),b=h+(c-l)*S(y),x="center",M="top";break;case"endAngle":w=f+p*_(g)+rs(g,l+m,!0),b=h+p*S(g)+ns(g,l+m,!0),x="left",M="middle";break;case"insideEndAngle":w=f+p*_(g)+rs(g,-l+m,!0),b=h+p*S(g)+ns(g,-l+m,!0),x="right",M="middle";break;default:return Ws(n,i,a)}return n=n||{},n.x=w,n.y=b,n.align=x,n.verticalAlign=M,n}}function pL(r,e,t,n){if(pt(n)){r.setTextConfig({rotation:n});return}else if(B(e)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;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 rs(r,e,t){return e*Math.sin(r)*(t?-1:1)}function ns(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Na(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;B(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:F(n,function(a){return ar(a,i)})}}var mf=Math.max,_f=Math.min;function dL(r,e){var t=r.getArea&&r.getArea();if(Jl(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=i,t.width+=i*2):(t.y-=i,t.height+=i*2)}}return t}var gL=function(r){k(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,i,a){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,i):this._renderNormal(t,n,i,a))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){Xi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,i,a){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=t.isAnimationEnabled()?t:null,v=yL(t,u);v&&this._enableRealtimeSort(v,s,i);var p=t.get("clip",!0)||v,d=dL(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],w=this._backgroundEls,b=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function M(D){var I=is[u.type](s,D),L=TL(u,h,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=is[u.type](s,D,I);if(y&&M(D),!(!s.hasValue(D)||!Yg[u.type](L))){var P=!1;p&&(P=Gg[u.type](d,L));var R=Hg[u.type](t,s,D,L,h,c,f.model,!1,g);v&&(R.forceLabelAnimation=!0),Zg(R,s,D,I,L,t,h,u.type==="polar"),b?R.attr({shape:L}):v?Wg(v,c,R,L,D,h,!1,!1):Bt(R,{shape:L},t,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=is[u.type](s,D,L);if(y){var R=void 0;w.length===0?R=M(I):(R=w[I],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var E=is[u.type](s,D),z=ZS(h,E,u);At(R,{shape:z},c,D)}var O=l.getItemGraphicEl(I);if(!s.hasValue(D)||!Yg[u.type](P)){o.remove(O);return}var V=!1;if(p&&(V=Gg[u.type](d,P),V&&o.remove(O)),O?Bi(O):O=Hg[u.type](t,s,D,P,h,c,f.model,!!O,g),v&&(O.forceLabelAnimation=!0),x){var G=O.getTextContent();if(G){var H=_o(G);H.prevValue!=null&&(H.prevValue=H.value)}}else Zg(O,s,D,L,P,t,h,u.type==="polar");b?O.attr({shape:P}):v?Wg(v,c,O,P,D,h,!0,x):At(O,{shape:P},t,D,null),s.setItemGraphicEl(D,O),O.ignore=V,o.add(O)}).remove(function(D){var I=l.getItemGraphicEl(D);I&&qs(I,t,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new st);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,i){this._clear(),$g(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),$g(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&HS(t.coordinateSystem,!1,t),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,i){var a=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,i){var a=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:F(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,i){for(var a=i.scale,o=t.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,i,a){if(this._isOrderChangedWithinSameData(t,n,i)){var o=this._dataSort(t,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,i){var a=n.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){qs(a,t,ot(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Yt),Gg={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=r.x+r.width,a=r.y+r.height,o=mf(e.x,r.x),s=_f(e.x+e.width,i),l=mf(e.y,r.y),u=_f(e.y+e.height,a),f=s<o,h=u<l;return e.x=f&&o>i?s:o,e.y=h&&l>a?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var i=_f(e.r,r.r),a=mf(e.r0,r.r0);e.r=i,e.r0=a;var o=i-a<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Hg={cartesian2d:function(r,e,t,n,i,a,o,s,l){var u=new dt({shape:N({},n),z2:1});if(u.__dataIndex=t,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,e,t,n,i,a,o,s,l){var u=!i&&l?zg:nn,f=new u({shape:n,z2:1});f.name="item";var h=YS(i);if(f.calculateTextPosition=cL(h,{isRoundCap:u===zg}),a){var c=f.shape,v=i?"r":"endAngle",p={};c[v]=i?n.r0:n.startAngle,p[v]=n[v],(s?At:Bt)(f,{shape:p},a)}return f}};function yL(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function Wg(r,e,t,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?At:Bt)(t,{shape:l},e,i,null);var f=e?r.baseAxis.model:null;(o?At:Bt)(t,{shape:u},f,i)}function Ug(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var mL=["x","y","width","height"],_L=["cx","cy","r","startAngle","endAngle"],Yg={cartesian2d:function(r){return!Ug(r,mL)},polar:function(r){return!Ug(r,_L)}},is={cartesian2d:function(r,e,t){var n=r.getItemLayout(e),i=t?bL(t,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function SL(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function YS(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function Zg(r,e,t,n,i,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=Na(n.getModel("itemStyle"),f,!0);N(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=lr(n);Lr(r,p,{labelFetcher:a,labelDataIndex:t,defaultText:_c(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var d=r.getTextContent();if(s&&d){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,pL(r,g==="outside"?v:g,YS(o),n.get(["label","rotate"]))}pC(d,p,a.getRawValue(t),function(m){return NS(e,m)});var y=n.getModel(["emphasis"]);Dr(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kn(r,n),SL(i)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function bL(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var wL=function(){function r(){}return r}(),Xg=function(r){k(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new wL},e.prototype.buildPath=function(t,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(ct);function $g(r,e,t,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new Xg({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var h=new Xg({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,ot(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",qg),h.on("mousemove",qg)),t&&t.push(h)}var qg=oc(function(r){var e=this,t=xL(e,r.offsetX,r.offsetY);ot(e).dataIndex=t>=0?t:null},30,!1);function xL(r,e,t){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(l[n]=u,l[i]=a[c+2],s[n]=a[c+n],s[i]=a[c+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function ZS(r,e,t){if(Jl(t,"cartesian2d")){var n=e,i=t.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function TL(r,e,t){var n=r.type==="polar"?nn:dt;return new n({shape:ZS(e,t,r),silent:!0,z2:0})}function zN(r){r.registerChartView(gL),r.registerSeriesModel(hL),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,it($2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,q2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,US("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Kg=Math.PI*2,as=Math.PI/180;function XS(r,e){return Ge(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function $S(r,e){var t=XS(r,e),n=r.get("center"),i=r.get("radius");B(i)||(i=[0,i]);var a=tt(t.width,e.getWidth()),o=tt(t.height,e.getHeight()),s=Math.min(a,o),l=tt(i[0],s/2),u=tt(i[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else B(n)||(n=[n,n]),f=tt(n[0],a)+t.x,h=tt(n[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function ML(r,e,t){e.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=XS(n,t),s=$S(n,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*as,v=n.get("endAngle"),p=n.get("padAngle")*as;v=v==="auto"?c-Kg:-v*as;var d=n.get("minAngle")*as,g=d+p,y=0;i.each(a,function(z){!isNaN(z)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,S=n.get("clockwise"),w=n.get("roseType"),b=n.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var M=S?1:-1,C=[c,v],A=M*p/2;q0(C,!S),c=C[0],v=C[1];var D=qS(n);D.startAngle=c,D.endAngle=v,D.clockwise=S;var I=Math.abs(v-c),L=I,P=0,R=c;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(z,O){var V;if(isNaN(z)){i.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:w?NaN:f});return}w!=="area"?V=m===0&&b?_:z*_:V=I/y,V<g?(V=g,L-=g):P+=z;var G=R+M*V,H=0,Z=0;p>V?(H=R+M*V/2,Z=H):(H=R+A,Z=G-A),i.setItemLayout(O,{angle:V,startAngle:H,endAngle:Z,clockwise:S,cx:l,cy:u,r0:h,r:w?wt(z,x,[h,f]):f}),R=G}),L<Kg&&y)if(L<=.001){var E=I/y;i.each(a,function(z,O){if(!isNaN(z)){var V=i.getItemLayout(O);V.angle=E;var G=0,H=0;E<p?(G=c+M*(O+1/2)*E,H=G):(G=c+M*O*E+A,H=c+M*(O+1)*E-A),V.startAngle=G,V.endAngle=H}})}else _=L/P,R=c,i.each(a,function(z,O){if(!isNaN(z)){var V=i.getItemLayout(O),G=V.angle===g?g:z*_,H=0,Z=0;G<p?(H=R+M*G/2,Z=H):(H=R+A,Z=R+M*G-A),V.startAngle=H,V.endAngle=Z,R+=M*G}})})}var qS=St();function KS(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var CL=Math.PI/180;function Qg(r,e,t,n,i,a,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-t),w=n+_.len,b=w*w,x=Math.sqrt(Math.abs((1-S*S/y)*b)),M=e+(x+_.len2)*i,C=M-_.label.x,A=_.targetTextWidth-C*i;QS(_,A,!0),_.label.x=M}}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>t?y:g,w=Math.abs(_.label.y-t);if(w>=S.maxY){var b=_.label.x-e-_.len2*i,x=n+_.len,M=Math.abs(b)<x?Math.sqrt(w*w/(1-b*b/x/x)):x;S.rB=M,S.maxY=w}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}WI(r,l,l+o)&&h(r)}function DL(r,e,t,n,i,a,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;Sf(r[c])||(v.x<e?(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(!Sf(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var v=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?v.x<e?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+i-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?v.x<e?g=f-o-p.bleedMargin:g=o+i-h-p.bleedMargin:v.x<e?g=v.x-o-p.bleedMargin:g=o+i-v.x-p.bleedMargin,p.targetTextWidth=g,QS(p,g)}}Qg(u,e,t,n,1,i,a,o,s,h),Qg(l,e,t,n,-1,i,a,o,s,f);for(var c=0;c<r.length;c++){var p=r[c];if(!Sf(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:_,w=p.rect.width+S,b=d[1][0]-d[2][0];y?v.x<e?d[2][0]=o+p.edgeDistance+w+p.labelDistance:d[2][0]=o+i-p.edgeDistance-w-p.labelDistance:(v.x<e?d[2][0]=v.x+p.labelDistance:d[2][0]=v.x-p.labelDistance,d[1][0]=d[2][0]+b),d[1][1]=d[2][1]=v.y}}}function QS(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||t){var h=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,p=e<f?v:t?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",p)}var d=n.getBoundingRect();a.width=d.width;var g=(n.style.margin||0)+2.1;a.height=d.height+g,a.y-=(a.height-h)/2}}}function Sf(r){return r.position==="center"}function AL(r){var e=r.getData(),t=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*CL,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var x in b.states)if(b.states[x].ignore===!1)return!0;return!1}e.each(function(b){var x=e.getItemGraphicEl(b),M=x.shape,C=x.getTextContent(),A=x.getTextGuideLine(),D=e.getItemModel(b),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=tt(I.get("edgeDistance"),u),z=I.get("bleedMargin"),O=D.getModel("labelLine"),V=O.get("length");V=tt(V,u);var G=O.get("length2");if(G=tt(G,u),Math.abs(M.endAngle-M.startAngle)<o){T(C.states,v),C.ignore=!0,A&&(T(A.states,v),A.ignore=!0);return}if(p(C)){var H=(M.startAngle+M.endAngle)/2,Z=Math.cos(H),et=Math.sin(H),lt,vt,Jt,ye;n=M.cx,i=M.cy;var fe=L==="inside"||L==="inner";if(L==="center")lt=M.cx,vt=M.cy,ye="center";else{var Et=(fe?(M.r+M.r0)/2*Z:M.r*Z)+n,Tt=(fe?(M.r+M.r0)/2*et:M.r*et)+i;if(lt=Et+Z*3,vt=Tt+et*3,!fe){var rt=Et+Z*(V+l-M.r),ft=Tt+et*(V+l-M.r),Xe=rt+(Z<0?-1:1)*G,Pt=ft;R==="edge"?lt=Z<0?f+E:f+u-E:lt=Xe+(Z<0?-P:P),vt=Pt,Jt=[[Et,Tt],[rt,ft],[Xe,Pt]]}ye=fe?"center":R==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var Pr=Math.PI,vr=0,ta=I.get("rotate");if(pt(ta))vr=ta*(Pr/180);else if(L==="center")vr=0;else if(ta==="radial"||ta===!0){var fw=Z<0?-H+Pr:-H;vr=fw}else if(ta==="tangential"&&L!=="outside"&&L!=="outer"){var ii=Math.atan2(Z,et);ii<0&&(ii=Pr*2+ii);var hw=et>0;hw&&(ii=Pr+ii),vr=ii-Pr}if(a=!!vr,C.x=lt,C.y=vt,C.rotation=vr,C.setStyle({verticalAlign:"middle"}),fe){C.setStyle({align:ye});var nu=C.states.select;nu&&(nu.x+=C.x,nu.y+=C.y)}else{var ea=C.getBoundingRect().clone();ea.applyTransform(C.getComputedTransform());var Wc=(C.style.margin||0)+2.1;ea.y-=Wc/2,ea.height+=Wc,t.push({label:C,labelLine:A,position:L,len:V,len2:G,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new j(Z,et),linePoints:Jt,textAlign:ye,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:z,rect:ea,unconstrainedWidth:ea.width,labelStyleWidth:C.style.width})}x.setTextConfig({inside:fe})}}),!a&&r.get("avoidLabelOverlap")&&DL(t,n,i,l,u,c,f,h);for(var d=0;d<t.length;d++){var g=t[d],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(T(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var w=g.linePoints;_||!w?(T(m.states,v),m.ignore=!0):(ES(w,g.minTurnAngle),FI(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new j(w[0][0],w[0][1])})}}}var IL=function(r){k(e,r);function e(t,n,i){var a=r.call(this)||this;a.z2=2;var o=new bt;return a.setTextContent(o),a.updateData(t,n,i,!0),a}return e.prototype.updateData=function(t,n,i,a){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),f=t.getItemLayout(n),h=N(Na(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(Bt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,Bt(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Bt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,At(o,{shape:{endAngle:f.endAngle}},s,n))}else Bi(o),At(o,{shape:h},s,n);o.useStyle(t.getItemVisual(n,"style")),Kn(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,t,n),o.ensureState("emphasis").shape=N({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Na(u.getModel("itemStyle"),f)),N(o.ensureState("select"),{x:d,y:g,shape:Na(l.getModel(["select","itemStyle"]),f)}),N(o.ensureState("blur"),{shape:Na(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&N(m.ensureState("select"),{x:d,y:g}),N(_.ensureState("select"),{x:d,y:g}),Dr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Lr(a,lr(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=t.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Ue,this.setTextGuideLine(v)),zI(this,GI(o),{stroke:u,opacity:Fa(s.get(["lineStyle","opacity"]),f,1)})}},e}(nn),LL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,i,a){var o=t.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&&t.get("showEmptyCircle")){var c=qS(t),v=new nn({shape:N($S(t,i),c)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(p){var d=new IL(o,p,u);o.setItemGraphicEl(p,d),l.add(d)}).update(function(p,d){var g=s.getItemGraphicEl(d);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var d=s.getItemGraphicEl(p);qs(d,t,p)}).execute(),AL(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e}(Yt);function jl(r,e,t){e=B(e)&&{coordDimensions:e}||N({encodeDefine:r.getEncode()},e);var n=r.getSource(),i=aS(n,e).dimensions,a=new Oi(i,r);return a.initData(n,t),a}var JS=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}(),PL=St(),RL=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new JS(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return jl(this,{coordDimensions:["value"],encodeDefaulter:it(Q_,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),i=PL(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Kx(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){to(t,"labelLine",["show"]);var n=t.labelLine,i=t.emphasis.labelLine;n.show=n.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,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"},e}(qt);function kL(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(pt(o)&&!isNaN(o)&&o<0)})}}}function GN(r){r.registerChartView(LL),r.registerSeriesModel(RL),L1("pie",r.registerAction),r.registerLayout(it(ML,"pie")),r.registerProcessor(KS("pie")),r.registerProcessor(kL("pie"))}var EL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return $l(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,n,i){return i.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.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"}},e}(qt),jS=4,OL=function(){function r(){}return r}(),NL=function(r){k(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new OL},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]<jS,f=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<i.length;){var c=i[h++],v=i[h++];isNaN(c)||isNaN(v)||f&&!f.contain(c,v)||(s.x=c-a[0]/2,s.y=v-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,i=t.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,h=a[f]-s/2,c=a[f+1]-l/2;if(t>=h&&n>=c&&t<=h+s&&n<=c+l)return u}return-1},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();if(t=i[0],n=i[1],a.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,h=-1/0,c=0;c<i.length;){var v=i[c++],p=i[c++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(p,u),h=Math.max(p,h)}t=this._rect=new at(l-o/2,u-s/2,f-l+o,h-u+s)}return t},e}(ct),BL=function(){function r(){this.group=new st}return r.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;t=new Float32Array(t.buffer,a,i)}n.setShape("points",t),n.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],a=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new NL({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=n.clipShape||null,e.symbolProxy=Kt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<jS;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ot(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),FL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,i){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,i){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,i){var a=t.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=wc("").reset(t,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var n=t.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new BL:new bc,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Yt),VL=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(ht),$h=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ut).models[0]},e.type="cartesian2dAxis",e}(ht);ue($h,bS);var tb={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,showMinLine:!0,showMaxLine:!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)"]}}},zL=Q({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},tb),xc=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}}},tb),GL=Q({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},xc),HL=nt({logBase:10},xc);const eb={category:zL,value:xc,time:GL,log:HL};var WL={value:1,category:1,time:1,log:1};function Jg(r,e,t,n){T(WL,function(i,a){var o=Q(Q({},eb[a],!0),n,!0),s=function(l){k(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=oo(this),v=c?So(f):{},p=h.getTheme();Q(f,p.get(a+"Axis")),Q(f,this.getDefaultOption()),f.type=jg(f),c&&Fi(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Wh.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=e+"Axis."+a,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",jg)}function jg(r){return r.type||(r.data?"category":"value")}var UL=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return F(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ct(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),qh=["x","y"];function ty(r){return r.type==="interval"||r.type==="time"}var YL=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=qh,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ty(t)||!ty(n))){var i=t.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-i[0]*f,v=o[1]-a[0]*h,p=this._transform=[f,0,0,h,c,v];this._invTransform=Yi([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var i=this.dataToPoint(t),a=this.dataToPoint(n),o=this.getArea(),s=new at(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,i){i=i||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Nt(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(t,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(t[0]),u=a.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n){var i=[];if(this._invTransform)return Nt(i,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),n),i[1]=o.coordToData(o.toLocalCoord(t[1]),n),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(n[0],n[1])-a+t,l=Math.max(i[0],i[1])-o+t;return new at(a,o,s,l)},e}(UL),ZL=function(r){k(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(RS);function Kh(r,e,t){t=t||{};var n=r.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.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=e.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])}a.position=[u==="y"?p[c[l]]:h[0],u==="x"?p[c[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[c[s]]-p[c.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),jr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function ey(r){return r.get("coordinateSystem")==="cartesian2d"}function ry(r){var e={xAxisModel:null,yAxisModel:null};return T(e,function(t,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Ut).models[0];e[n]=a}),e}var bf=Math.log;function rb(r,e,t){var n=rn.prototype,i=n.getTicks.call(t),a=n.getTicks.call(t,!0),o=i.length-1,s=n.getInterval.call(t),l=mS(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=bf(r.base);u=[bf(u[0])/c,bf(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var p=n.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=vf(p),g=u[0]+p*o;else if(h)for(d=u[1]-p*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=vf(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=vf(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Dt(g-m),d<0&&u[0]>=0?(d=0,g=Dt(m)):g>0&&u[1]<=0&&(g=0,d=-Dt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,d+p*_,g+p*S),n.setInterval.call(r,p),(_||S)&&n.setNiceExtent.call(r,d+p,g-p)}var XL=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=qh,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=_t(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;Uh(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(Mg(d,p),Uh(d)&&(s=v))}f.length&&(s||(s=f.pop(),Mg(s.scale,s.model)),T(f,function(g){rb(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};T(n.x,function(o){ny(n,"y",o,a)}),T(n.y,function(o){ny(n,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),o=Ge(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(T(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=pI(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()),T(this._coordsList,function(u){u.calcAffineTransform()});function l(){T(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]),$L(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}X(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===t)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",Ut).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",Ut).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,ut(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,h){T(s.y,function(c,v){var p="x"+h+"y"+v,d=new YL(p);d.master=i,d.model=e,i._coordsMap[p]=d,i._coordsList.push(d),d.addAxis(f),d.addAxis(c)})});function u(f){return function(h,c){if(wf(h,e)){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 ZL(f,vI(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=a,p.index=c,a._axesList.push(p),s[f][c]=p,l[f]++}}}},r.prototype._updateScale=function(e,t){T(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(ey(i)){var a=ry(i),o=a.xAxisModel,s=a.yAxisModel;if(!wf(o,t)||!wf(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){T(SS(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return T(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);ut(t,a)<0&&t.push(a),ut(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(i,a){var o=new r(i,e,t);o.name="grid_"+a,o.resize(i,t,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){if(ey(i)){var a=ry(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=qh,r}();function wf(r,e){return r.getCoordSysModel()===e}function ny(r,e,t,n){t.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)iy(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&iy(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function iy(r){return r&&r.type!=="category"&&r.type!=="time"&&cI(r)}function $L(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+e}:function(i){return n-i+e},r.toLocalCoord=r.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}var $r=Math.PI,xr=function(){function r(e,t){this.group=new st,this.opt=t,this.axisModel=e,nt(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new st({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(e){return!!ay[e]},r.prototype.add=function(e){ay[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,n){var i=E0(t-e),a,o;return Us(i)?(o=n>0?"top":"bottom",a="center"):Us(i-$r)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<$r?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),ay={axisLine:function(r,e,t,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Nt(s,s,o),Nt(l,l,o));var f=N({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new or({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});io(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var c=e.get(["axisLine","symbol"]);if(c!=null){var v=e.get(["axisLine","symbolSize"]);W(c)&&(c=[c,c]),(W(v)||pt(v))&&(v=[v,v]);var p=Zl(e.get(["axisLine","symbolOffset"])||0,v),d=v[0],g=v[1];T([{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 _=Kt(c[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,n){var i=QL(t,n,e,r),a=jL(t,n,e,r);if(KL(e,a,i),JL(t,n,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=HI(F(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));UI(o)}},axisName:function(r,e,t,n){var i=jr(r.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,sy(a)?r.labelOffset+o*l:0],c,v=e.get("nameRotate");v!=null&&(v=v*$r/180);var p;sy(a)?c=xr.innerTextLayout(r.rotation,v??r.rotation,o):(c=qL(r.rotation,a,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=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=jr(r.nameTruncateMaxWidth,g.maxWidth,p),_=new bt({x:h[0],y:h[1],rotation:c.rotation,silent:xr.isLabelSilent(e),style:de(s,{text:i,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Zi({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var S=xr.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,ot(_).eventData=S}n.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function qL(r,e,t,n){var i=E0(t-r),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Us(i-$r/2)?(o=l?"bottom":"top",a="center"):Us(i-$r*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<$r*1.5&&i>$r/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function KL(r,e,t){if(!_S(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],c=t[t.length-2];n===!1?(_e(a),_e(u)):oy(a,o)&&(n?(_e(o),_e(f)):(_e(a),_e(u))),i===!1?(_e(s),_e(h)):oy(l,s)&&(i?(_e(l),_e(c)):(_e(s),_e(h)))}}function _e(r){r&&(r.ignore=!0)}function oy(r,e){var t=r&&r.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!t||!n)){var i=_l([]);return Sl(i,i,-r.rotation),t.applyTransform(Sr([],i,r.getLocalTransform())),n.applyTransform(Sr([],i,e.getLocalTransform())),t.intersect(n)}}function sy(r){return r==="middle"||r==="center"}function nb(r,e,t,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Nt(o,o,e),Nt(s,s,e));var f=new or({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});io(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f)}return a}function QL(r,e,t,n){var i=t.axis,a=t.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=nb(u,e.transform,l,nt(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function JL(r,e,t,n){var i=t.axis,a=t.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=nt(s.getLineStyle(),nt(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=nb(o[f],e.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function jL(r,e,t,n){var i=t.axis,a=jr(n.axisLabelShow,t.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(jr(n.labelRotate,o.get("rotate"))||0)*$r/180,f=xr.innerTextLayout(n.rotation,u,n.labelDirection),h=t.getCategories&&t.getCategories(!0),c=[],v=xr.isLabelSilent(t),p=t.get("triggerEvent");return T(l,function(d,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,m=d.formattedLabel,_=d.rawLabel,S=o;if(h&&h[y]){var w=h[y];X(w)&&w.textStyle&&(S=new mt(w.textStyle,o,t.ecModel))}var b=S.getTextColor()||t.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(y),M=S.getShallow("align",!0)||f.textAlign,C=K(S.getShallow("alignMinLabel",!0),M),A=K(S.getShallow("alignMaxLabel",!0),M),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,I=K(S.getShallow("verticalAlignMinLabel",!0),D),L=K(S.getShallow("verticalAlignMaxLabel",!0),D),P=new bt({x,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(d.level||0),style:de(S,{text:m,align:g===0?C:g===l.length-1?A:M,verticalAlign:g===0?I:g===l.length-1?L:D,fill:q(b)?b(i.type==="category"?_:i.type==="value"?y+"":y,g):b})});if(P.anid="label_"+y,Zi({el:P,componentModel:t,itemName:m,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:_,tickIndex:g}}),p){var R=xr.makeAxisEventDataBase(t);R.targetType="axisLabel",R.value=_,R.tickIndex=g,i.type==="category"&&(R.dataIndex=y),ot(P).eventData=R}e.add(P),P.updateTransform(),c.push(P),r.add(P),P.decomposeTransform()}),c}}function tP(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return eP(t,r,e),t.seriesInvolved&&nP(t,r),t}function eP(r,e,t){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];T(t.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",n);if(T(s.getAxes(),it(d,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&T(p.baseAxes,it(d,v?"cross":!0,c)),v&&T(p.otherAxes,it(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Qh(_))){y==null&&(y=_.get("triggerTooltip")),_=g?rP(m,h,i,e,g,y):_;var w=_.get("snap"),b=_.get("triggerEmphasis"),x=ho(m.model),M=y||w||m.type==="category",C=r.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:M,snap:w,useHandle:Qh(_),seriesModels:[],linkGroup:null};u[x]=C,r.seriesInvolved=r.seriesInvolved||M;var A=iP(a,m);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[x]=C,D.mapper=a[A].mapper,C.linkGroup=D}}}})}function rP(r,e,t,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(c){l[c]=$(o.get(c))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&nt(u,h.textStyle)}}return r.model.getModel("axisPointer",new mt(l,t,n))}function nP(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[ho(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function iP(r,e){for(var t=e.model,n=e.dim,i=0;i<r.length;i++){var a=r[i]||{};if(xf(a[n+"AxisId"],t.id)||xf(a[n+"AxisIndex"],t.componentIndex)||xf(a[n+"AxisName"],t.name))return i}}function xf(r,e){return r==="all"||B(r)&&ut(r,e)>=0||r===e}function aP(r){var e=Tc(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,i=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=Qh(t);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Tc(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ho(r)]}function oP(r){var e=Tc(r);return e&&e.axisPointerModel}function Qh(r){return!!r.get(["handle","show"])}function ho(r){return r.type+"||"+r.id}var ly={},ib=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i,a){this.axisPointerClass&&aP(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},e.prototype.updateAxisPointer=function(t,n,i,a){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=oP(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){ly[t]=n},e.getAxisPointerClass=function(t){return t&&ly[t]},e.type="axis",e}(kt),Jh=St();function sP(r,e,t,n){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,h=Jh(r).splitAreaColors,c=Y(),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=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=B(s)?s:[s];for(var p=1;p<u.length;p++){var m=i.toGlobalCoord(u[p].coord),_=void 0,S=void 0,w=void 0,b=void 0;i.isHorizontal()?(_=g,S=l.y,w=m-_,b=l.height,g=_+w):(_=l.x,S=g,w=l.width,b=m-S,g=S+b);var x=u[p-1].tickValue;x!=null&&c.set(x,v),e.add(new dt({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:w,height:b},style:nt({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}Jh(r).splitAreaColors=c}}}function lP(r){Jh(r).splitAreaColors=null}var uP=["axisLine","axisTickLabel","axisName"],fP=["splitArea","splitLine","minorSplitLine"],ab=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new st,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=Kh(s,t),u=new xr(t,N({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(Uh(c[v].getOtherAxis(t.axis).scale))return!0;return!1}},l));T(uP,u.add,u),this._axisGroup.add(u.getGroup()),T(fP,function(h){t.get([h,"show"])&&hP[h](this,this._axisGroup,t,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||T_(o,this._axisGroup,t),r.prototype.render.call(this,t,n,i,a)}},e.prototype.remove=function(){lP(this)},e.type="cartesianAxis",e}(ib),hP={splitLine:function(r,e,t,n){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;s=B(s)?s:[s];for(var f=n.coordinateSystem.getRect(),h=i.isHorizontal(),c=0,v=i.getTicksCoords({tickModel:a}),p=[],d=[],g=o.getLineStyle(),y=0;y<v.length;y++){var m=i.toGlobalCoord(v[y].coord);if(!(y===0&&!l||y===v.length-1&&!u)){var _=v[y].tickValue;h?(p[0]=m,p[1]=f.y,d[0]=m,d[1]=f.y+f.height):(p[0]=f.x,p[1]=m,d[0]=f.x+f.width,d[1]=m);var S=c++%s.length,w=new or({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:nt({stroke:s[S]},g),silent:!0});io(w.shape,g.lineWidth),e.add(w)}}}},minorSplitLine:function(r,e,t,n){var i=t.axis,a=t.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.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=i.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 or({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});io(g.shape,c.lineWidth),e.add(g)}},splitArea:function(r,e,t,n){sP(r,e,t,n)}},ob=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(ab),vP=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=ob.type,t}return e.type="yAxis",e}(ab),cP=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new dt({shape:t.coordinateSystem.getRect(),style:nt({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(kt),uy={offset:0};function sb(r){r.registerComponentView(cP),r.registerComponentModel(VL),r.registerCoordinateSystem("cartesian2d",XL),Jg(r,"x",$h,uy),Jg(r,"y",$h,uy),r.registerComponentView(ob),r.registerComponentView(vP),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function HN(r){Qt(sb),r.registerSeriesModel(EL),r.registerChartView(FL),r.registerLayout(wc("scatter"))}function pP(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();T(a,function(o,s){t.each(t.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var f=i.dataToPoint(l,s);n[u][s]=fy(f)?f:hy(i)})}),t.each(function(o){var s=Dw(n[o],function(l){return fy(l)})||hy(i);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function fy(r){return!isNaN(r[0])&&!isNaN(r[1])}function hy(r){return[r.cx,r.cy]}function dP(r){var e=r.polar;if(e){B(e)||(e=[e]);var t=[];T(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],B(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}T(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var gP=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,v){var p=c.getItemVisual(v,"symbol")||"circle";if(p!=="none"){var d=Yl(c.getItemVisual(v,"symbolSize")),g=Kt(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]),D_[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},t,g)):_.setPosition(v[m]),p.add(_))}}function h(c){return F(c,function(v){return[a.cx,a.cy]})}s.diff(l).add(function(c){var v=s.getItemLayout(c);if(v){var p=new sr,d=new Ue,g={shape:{points:v}};p.shape.points=h(v),d.shape.points=h(v),Bt(p,g,t,c),Bt(d,g,t,c);var y=new st,m=new st;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),Bi(g),Bi(d),At(d,m,t),At(g,m,t),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(nt(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Kn(d,p,"lineStyle"),Kn(g,p,"areaStyle");var S=p.getModel("areaStyle"),w=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=w,T(["emphasis","select","blur"],function(M){var C=p.getModel([M,"areaStyle"]),A=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(M).ignore=A&&w}),g.useStyle(nt(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=p.getModel("emphasis"),x=b.getModel("itemStyle").getItemStyle();y.eachChild(function(M){if(M instanceof We){var C=M.style;M.useStyle(N({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else M.useStyle(m),M.setColor(_),M.style.strokeNoScale=!0;var A=M.ensureState("emphasis");A.style=$(x);var D=s.getStore().get(s.getDimensionIndex(M.__dimIdx),v);(D==null||isNaN(D))&&(D=""),Lr(M,lr(p),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:M.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),Dr(c,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Yt),yP=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new JS(U(this.getData,this),U(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return jl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=_1(this,t);return He("section",{header:u,sortBlocks:!0,blocks:F(s,function(h){var c=a.get(a.mapDimension(h.dim),t);return He("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(F(i.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(qt),ba=eb.value;function os(r,e){return nt({show:e},r)}var mP=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=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=F(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=nt({color:p.color},l));var g=Q($(p),{boundaryGap:t,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:c},!1);if(W(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else q(f)&&(g.name=f(g.name,g));var m=new mt(g,null,this.ecModel);return ue(m,bS.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.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"}},ba.axisLine),axisLabel:os(ba.axisLabel,!1),axisTick:os(ba.axisTick,!1),splitLine:os(ba.splitLine,!0),splitArea:os(ba.splitArea,!0),indicator:[]},e}(ht),_P=["axisLine","axisTickLabel","axisName"],SP=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=this.group;a.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var n=t.coordinateSystem,i=n.getIndicatorAxes(),a=F(i,function(o){var s=o.model.get("showName")?o.name:"",l=new xr(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});T(a,function(o){T(_P,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=t.get("shape"),o=t.getModel("splitLine"),s=t.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=B(c)?c:[c],d=B(v)?v:[v],g=[],y=[];function m(R,E,z){var O=z%E.length;return R[O]=R[O]||[],O}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,w=n.cy,b=0;b<_.length;b++){if(f){var x=m(g,p,b);g[x].push(new ri({shape:{cx:S,cy:w,r:_[b].coord}}))}if(h&&b<_.length-1){var x=m(y,d,b);y[x].push(new Ll({shape:{cx:S,cy:w,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var M,C=F(i,function(R,E){var z=R.getTicksCoords();return M=M==null?z.length-1:Math.min(z.length-1,M),F(z,function(O){return n.coordToPoint(O.coord,E)})}),A=[],b=0;b<=M;b++){for(var D=[],I=0;I<i.length;I++)D.push(C[I][b]);if(D[0]&&D.push(D[0].slice()),f){var x=m(g,p,b);g[x].push(new Ue({shape:{points:D}}))}if(h&&A){var x=m(y,d,b-1);y[x].push(new sr({shape:{points:D.concat(A)}}))}A=D.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();T(y,function(R,E){this.group.add(Dh(R,{style:nt({stroke:"none",fill:d[E%d.length]},P),silent:!0}))},this),T(g,function(R,E){this.group.add(Dh(R,{style:nt({fill:"none",stroke:p[E%p.length]},L),silent:!0}))},this)},e.type="radar",e}(kt),bP=function(r){k(e,r);function e(t,n,i){var a=r.call(this,t,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e}(RS),wP=function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=F(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new bP(o,new rn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var a=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(a-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a)/2;this.cx=tt(n[0],i),this.cy=tt(n[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(W(s)||pt(s))&&(s=[0,s]),this.r0=tt(s[0],o),this.r=tt(s[1],o),T(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(e,t){var n=this._indicatorAxes,i=this._model;T(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();T(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new rn;o.setExtent(0,a),o.setInterval(1),T(n,function(s,l){rb(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(i){var a=new r(i,e,t);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},r.dimensions=[],r}();function xP(r){r.registerCoordinateSystem("radar",wP),r.registerComponentModel(mP),r.registerComponentView(SP),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function WN(r){Qt(xP),r.registerChartView(gP),r.registerSeriesModel(yP),r.registerLayout(pP),r.registerProcessor(KS("radar")),r.registerPreprocessor(dP)}var vy="\0_ec_interaction_mutex";function TP(r,e,t){var n=Mc(r);n[e]=t}function MP(r,e,t){var n=Mc(r),i=n[e];i===t&&(n[e]=null)}function cy(r,e){return!!Mc(r)[e]}function Mc(r){return r[vy]||(r[vy]={})}fr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Rt);var lb=function(r){k(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var i=U(n._mousedownHandler,n),a=U(n._mousemoveHandler,n),o=U(n._mouseupHandler,n),s=U(n._mousewheelHandler,n),l=U(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=nt($(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",i),t.on("mousemove",a),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Kc(t)){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=t.offsetX,a=t.offsetY;this.pointerChecker&&this.pointerChecker(t,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Is("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||cy(this._zr,"globalPan"))){var n=t.offsetX,i=t.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Mr(t.event),ub(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Kc(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var n=Is("zoomOnMouseWheel",t,this._opt),i=Is("moveOnMouseWheel",t,this._opt),a=t.wheelDelta,o=Math.abs(a),s=t.offsetX,l=t.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;Tf(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(a),c=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);Tf(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!cy(this._zr,"globalPan")){var n=t.pinchScale>1?1.1:1/1.1;Tf(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(Ie);function Tf(r,e,t,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(Mr(n.event),ub(r,e,t,n,i))}function ub(r,e,t,n,i){i.isAvailableBehavior=U(Is,null,t,n),r.trigger(e,i)}function Is(r,e,t){var n=t[r];return!r||n&&(!W(n)||e.event[n+"Key"])}function CP(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function DP(r,e,t,n){var i=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var AP={axisPointer:1,tooltip:1,brush:1};function fb(r,e,t){var n=e.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==t&&!AP.hasOwnProperty(n.mainType)&&i&&i.model!==t}function hb(r){if(W(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Mf,fl={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"},py=_t(fl),hl={"alignment-baseline":"textBaseline","stop-color":"stopColor"},dy=_t(hl),IP=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=hb(e);this._defsUsePending=[];var i=new st;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),he(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;RP(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var c=tu(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=cb(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=i;i=new st,i.add(v),v.scaleX=v.scaleY=h.scale,v.x=h.x,v.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new dt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:a}},r.prototype._parseNode=function(e,t,n,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!a){var f=Mf[s];if(f&&ge(Mf,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:l};n.push(c),s==="g"&&(u=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var v=gy[s];if(v&&ge(gy,s)){var p=v.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var n=new no({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Se(t,n),he(e,n,this._defsUsePending,!1,!1),LP(n,t);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=function(){Mf={g:function(e,t){var n=new st;return Se(t,n),he(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new dt;return Se(t,n),he(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new ri;return Se(t,n),he(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new or;return Se(t,n),he(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new Il;return Se(t,n),he(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),i;n&&(i=_y(n));var a=new sr({shape:{points:i||[]},silent:!0});return Se(t,a),he(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var n=e.getAttribute("points"),i;n&&(i=_y(n));var a=new Ue({shape:{points:i||[]},silent:!0});return Se(t,a),he(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var n=new We;return Se(t,n),he(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new st;return Se(t,s),he(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new st;return Se(t,s),he(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",i=p_(n);return Se(t,i),he(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),gy={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),a=new kl(e,t,n,i);return yy(r,a),my(r,a),a},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),i=new __(e,t,n);return yy(r,i),my(r,i),i}};function yy(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function my(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};vb(t,a,a);var o=a.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function Se(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),nt(e.__inheritedStyle,r.__inheritedStyle))}function _y(r){for(var e=tu(r),t=[],n=0;n<e.length;n+=2){var i=parseFloat(e[n]),a=parseFloat(e[n+1]);t.push([i,a])}return t}function he(r,e,t,n,i){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};r.nodeType===1&&(OP(r,e),vb(r,o,s),n||NP(r,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=Sy(a,"fill",o.fill,t)),o.stroke!=null&&(a.style.stroke=Sy(a,"stroke",o.stroke,t)),T(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),T(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=F(tu(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function LP(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),r.style.textBaseline=i}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var PP=/^url\(\s*#(.*?)\)/;function Sy(r,e,t,n){var i=t&&t.match(PP);if(i){var a=Be(i[1]);n.push([r,e,a]);return}return t==="none"&&(t=null),t}function RP(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var kP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function tu(r){return r.match(kP)||[]}var EP=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Cf=Math.PI/180;function OP(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],i=null;t.replace(EP,function(h,c,v){return n.push(c,v),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=tu(o);switch(i=i||_r(),s){case"translate":Es(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":c0(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Sl(i,i,-parseFloat(l[0])*Cf,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Cf);Sr(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Cf);Sr(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var by=/([^\s:;]+)\s*:\s*([^:;]+)/g;function vb(r,e,t){var n=r.getAttribute("style");if(n){by.lastIndex=0;for(var i;(i=by.exec(n))!=null;){var a=i[1],o=ge(fl,a)?fl[a]:null;o&&(e[o]=i[2]);var s=ge(hl,a)?hl[a]:null;s&&(t[s]=i[2])}}}function NP(r,e,t){for(var n=0;n<py.length;n++){var i=py[n],a=r.getAttribute(i);a!=null&&(e[fl[i]]=a)}for(var n=0;n<dy.length;n++){var i=dy[n],a=r.getAttribute(i);a!=null&&(t[hl[i]]=a)}}function cb(r,e){var t=e.width/r.width,n=e.height/r.height,i=Math.min(t,n);return{scale:i,x:-(r.x+r.width/2)*i+(e.x+e.width/2),y:-(r.y+r.height/2)*i+(e.y+e.height/2)}}function BP(r,e){var t=new IP;return t.parse(r,e)}var FP=Y(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),VP=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=Y(),this._freedGraphics=[],this._mapName=e,this._parsedXML=hb(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=GP(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&BP(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Ae(n!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var i=new st;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,c=void 0;if(a!=null?(u=0,h=a):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=n.getBoundingRect();u==null&&(u=v.x,h=v.width),f==null&&(f=v.y,c=v.height)}l=this._boundingRect=new at(u,f,h,c)}if(s){var p=cb(s,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new dt({shape:l.plain()}));var d=[];return T(t.named,function(g){FP.get(g.svgNodeTagLower)!=null&&(d.push(g),zP(g.el))}),{root:i,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r}();function zP(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function GP(r){var e=[],t=Y();return T(r,function(n){if(n.namedFrom==null){var i=new bI(n.name,n.el);e.push(i),t.set(n.name,i)}}),{regions:e,regionsMap:t}}var jh=[126,25],wy="南海诸岛",An=[[[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 Cn=0;Cn<An.length;Cn++)for(var _i=0;_i<An[Cn].length;_i++)An[Cn][_i][0]/=10.5,An[Cn][_i][1]/=-10.5/.75,An[Cn][_i][0]+=jh[0],An[Cn][_i][1]+=jh[1];function HP(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===wy)return;e.push(new xS(wy,F(An,function(n){return{type:"polygon",exterior:n}}),jh))}}var WP={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function UP(r,e){if(r==="china"){var t=WP[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var YP=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function ZP(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:YP[0]})}var XP="name",$P=function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=Y(),this._mapName=e,this._specialAreas=n,this._geoJSON=KP(t)}return r.prototype.load=function(e,t){t=t||XP;var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:qP(i)})}var a=Y(),o=[];return T(n.regions,function(s){var l=s.name;e&&ge(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new at(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,i;try{i=n?xI(n,e):[]}catch(a){throw new Error(`Invalid geoJson format
`+a.message)}return HP(t,i),T(i,function(a){var o=a.name;UP(t,a),ZP(t,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function qP(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function KP(r){return W(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var wa=Y();const Ar={registerMap:function(r,e,t){if(e.svg){var n=new VP(r,e.svg);wa.set(r,n)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var n=new $P(r,i,t);wa.set(r,n)}},getGeoResource:function(r){return wa.get(r)},getMapForUser:function(r){var e=wa.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=wa.get(r);if(n)return n.load(e,t)}};var Cc=["rect","circle","line","ellipse","polygon","polyline","path"],QP=Y(Cc),JP=Y(Cc.concat(["g"])),jP=Y(Cc.concat(["g"])),pb=St();function ss(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function xy(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var db=function(){function r(e){var t=new st;this.uid=$i("ec_map_draw"),this._controller=new lb(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new st),t.add(this._svgGroup=new st)}return r.prototype.draw=function(e,t,n,i,a){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),c=h.raw,v=h.roam,p=!u.childAt(0)||a;p?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):At(f,v,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,i)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Y(),n=Y(),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(v,p){return p&&(v=p(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.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)}}}i.removeAll(),T(e.geo.regions,function(v){var p=v.name,d=t.get(p),g=n.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=t.set(p,new st),i.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(d.silent=_),n.set(p,{dataIdx:y,regionModel:m})}var S=[],w=[];T(v.geometries,function(M){if(M.type==="polygon"){var C=[M.exterior].concat(M.interiors||[]);u&&(C=Iy(C,u)),T(C,function(D){S.push(new sr(c(D)))})}else{var A=M.points;u&&(A=Iy(A,u,!0)),T(A,function(D){w.push(new Ue(c(D)))})}});var b=f(v.getCenter(),l&&l.project);function x(M,C){if(M.length){var A=new y_({culling:!0,segmentIgnoreThreshold:1,shape:{paths:M}});d.add(A),Ty(e,A,y,m),My(e,A,p,m,o,y,b),C&&(xy(A),T(A.states,xy))}}x(S),x(w,!0)}),t.each(function(v,p){var d=n.get(p),g=d.dataIdx,y=d.regionModel;Cy(e,v,p,y,o,g),Dy(e,v,p,y,o),Ay(e,v,p,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=Y(),a=!1;T(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,c=u?u.indexOfName(s):null,v=l.getRegionModel(s);QP.get(f)!=null&&h instanceof Xn&&Ty(e,h,c,v),h instanceof Xn&&(h.culling=!0);var p=v.get("silent",!0);if(p!=null&&(h.silent=p),h.z2EmphasisLift=0,!o.namedFrom&&(jP.get(f)!=null&&My(e,h,s,v,l,c,null),Cy(e,h,s,v,l,c),Dy(e,h,s,v,l),JP.get(f)!=null)){var d=Ay(e,h,s,v,l);d==="self"&&(a=!0);var g=i.get(s)||i.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(a,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Vv(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.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(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(e);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Ar.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Ar.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,CP(o,u.dx,u.dy),n.dispatchAction(N(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,DP(o,u.scale,u.originX,u.originY),n.dispatchAction(N(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,f,h){return i.containPoint([f,h])&&!fb(u,n,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=pb(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,i){var a=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){a._mouseDownFlag=!0}),t.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},r}();function Ty(r,e,t,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=ss(i),u=ss(a),f=ss(s),h=ss(o),c=r.data;if(c){var v=c.getItemVisual(t,"style"),p=c.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),p&&(l.decal=al(p,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=h,Vv(e)}function My(r,e,t,n,i,a,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),f=s&&s.getItemLayout(a);if(l||u||f&&f.showLabel){var h=l?t:a,c=void 0;(!s||a>=0)&&(c=i);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Lr(e,lr(n),{labelFetcher:c,labelDataIndex:h,defaultText:t},v);var p=e.getTextContent();if(p&&(pb(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Cy(r,e,t,n,i,a){r.data?r.data.setItemGraphicEl(a,e):ot(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:n&&n.option||{}}}function Dy(r,e,t,n,i){r.data||Zi({el:e,componentModel:i,itemName:t,itemTooltipOption:n.get("tooltip")})}function Ay(r,e,t,n,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Dr(e,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&LM(e,i,t),o}function Iy(r,e,t){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),T(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),n}var tR=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new db(i);o.add(s.group),s.draw(t,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t,n,i)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,n,i){var a=t.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,h=u.offset,c=new ri({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+h*9,cy:f[1],r:3},silent:!0,z2:8+(h?0:e_+1)});if(!h){var v=t.mainSeries.getData(),p=a.getName(l),d=v.indexOfName(p),g=a.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(d);Lr(c,lr(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(d,S)}},defaultText:p}),c.disableLabelAnimation=!0,y.get("position")||c.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Sh(c,_)}}o.add(c)}}})},e.type="map",e}(Yt),eR=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=jl(this,{coordDimensions:["value"],encodeDefaulter:it(Q_,this)}),i=Y(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,o)}var u=Ar.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return T(u.regions,function(f){var h=f.name,c=i.get(h),v=f.properties&&f.properties.echartsStyle,p;c==null?(p={name:h},a.push(p)):p=n.getRawDataItem(c),v&&Q(p,v)}),n.appendData(a),n},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,i){for(var a=this.getData(),o=this.getRawValue(t),s=a.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var h=l[f].originalData.indexOfName(s),c=a.mapDimension("value");isNaN(l[f].originalData.get(c,h))||u.push(l[f].name)}return He("section",{header:u.join(", "),noHeader:!u.length,blocks:[He("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",i=Kt(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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"},e}(qt);function rR(r,e){var t={};return T(r,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(n,i){for(var a="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=t[a].length,f=0;f<u;f++)s=Math.min(s,t[a][f]),l=Math.max(l,t[a][f]),o+=t[a][f];var h;return e==="min"?h=s:e==="max"?h=l:e==="average"?h=o/u:h=o,u===0?NaN:h})}function nR(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),T(e,function(t,n){for(var i=rR(F(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(var a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=a===0&&!t[a].getHostGeoModel(),t[a].setData(i.cloneShallow()),t[a].mainSeries=t[0]})}function iR(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getMapType();if(!(t.getHostGeoModel()||e[n])){var i={};T(t.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=i[h]||0,p=s.dataToPoint(c.getCenter());i[h]=v+1,l.setItemLayout(f,{point:p,offset:v})}})});var a=t.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),e[n]=!0}})}var Ly=Nt,gb=function(r){k(e,r);function e(t){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Rn,n._rawTransformable=new Rn,n.name=t,n}return e.prototype.setBoundingRect=function(t,n,i,a){return this._rect=new at(t,n,i,a),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,i,a){this._transformTo(t,n,i,a),this._viewRect=new at(t,n,i,a)},e.prototype._transformTo=function(t,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new at(t,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,n){t&&(this._center=[tt(t[0],n.getWidth()),tt(t[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var n=this.zoomLimit;n&&(n.max!=null&&(t=Math.min(n.max,t)),n.min!=null&&(t=Math.max(n.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,i=t.y+t.height/2;return[n,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=Nt([],a,t),i=Nt([],i,t),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),Iv(this.transform||(this.transform=[]),n.transform||_r()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Yi(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,i=new Rn;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?Ly(i,t,a):Ew(i,t)},e.prototype.pointToData=function(t){var n=this.invTransform;return n?Ly([],t,n):[t[0],t[1]]},e.prototype.convertToPixel=function(t,n,i){var a=Py(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,n,i){var a=Py(n);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(Rn);function Py(r){var e=r.seriesModel;return e?e.coordinateSystem:null}var aR={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},yb=["lng","lat"],tv=function(r){k(e,r);function e(t,n,i){var a=r.call(this,t)||this;a.dimensions=yb,a.type="geo",a._nameCoordMap=Y(),a.map=n;var o=i.projection,s=Ar.load(n,i.nameMap,i.nameProperty),l=Ar.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,f=aR[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.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 a.setBoundingRect(h.x,h.y,h.width,h.height),a.aspectScale=o?1:K(i.aspectScale,f.aspectScale),a._invertLongitute=o?!1:f.invertLongitute,a}return e.prototype._transformTo=function(t,n,i,a){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 at(t,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(t))return n[i]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,i){if(W(t)&&(t=this.getGeoCoord(t)),t){var a=this.projection;return a&&(t=a.project(t)),t&&this.projectedToPoint(t,n,i)}},e.prototype.pointToData=function(t){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,n,i){return r.prototype.dataToPoint.call(this,t,n,i)},e.prototype.convertToPixel=function(t,n,i){var a=Ry(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,n,i){var a=Ry(n);return a===this?a.pointToData(i):null},e}(gb);ue(tv,gb);function Ry(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Ut).models[0]||{}).coordinateSystem:null}function ky(r,e){var t=r.get("boundingCoords");if(t!=null){var n=t[0],i=t[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var f=function(b,x,M,C){for(var A=M-b,D=C-x,I=0;I<=100;I++){var L=I/100,P=a.project([b+A*L,x+D*L]);Wr(n,n,P),Ur(i,i,P)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var h=this.getBoundingRect(),c=r.get("layoutCenter"),v=r.get("layoutSize"),p=e.getWidth(),d=e.getHeight(),g=h.width/h.height*this.aspectScale,y=!1,m,_;c&&v&&(m=[tt(c[0],p),tt(c[1],d)],_=tt(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 w=r.getBoxLayoutParams();w.aspect=g,S=Ge(w,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function oR(r,e){T(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var sR=function(){function r(){this.dimensions=yb}return r.prototype.create=function(e,t){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new tv(l+s,l,N({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=ky,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),T(a,function(o,s){var l=F(o,function(f){return f.get("nameMap")}),u=new tv(s,s,N({nameMap:Mw(l)},i(o[0])));u.zoomLimit=jr.apply(null,F(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=ky,u.resize(o[0],t),T(o,function(f){f.coordinateSystem=u,oR(u,f)})}),n},r.prototype.getFilledRegions=function(e,t,n,i){for(var a=(e||[]).slice(),o=Y(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=Ar.load(t,n,i);return T(l.regions,function(u){var f=u.name,h=o.get(f),c=u.properties&&u.properties.echartsStyle;h||(h={name:f},a.push(h)),c&&Q(h,c)}),a},r}(),mb=new sR,lR=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,i){var a=Ar.getGeoResource(t.map);if(a&&a.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,i),to(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=mb.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=Tr(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new mt(o,t,t.ecModel)),o.selected&&(i[s]=!0)),a},Y()),n.selectedMap||(n.selectedMap=i)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new mt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var i=this.getRegionModel(t),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:t};if(q(a))return o.status=n,a(o);if(W(a))return a.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.type="geo",e.layoutMode="box",e.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:[]},e}(ht);function Ey(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function uR(r,e,t,n){var i=r.getZoom(),a=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(Ey(r,s),n)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}r.scaleX*=o,r.scaleY*=o;var f=(e.originX-r.x)*(o-1),h=(e.originY-r.y)*(o-1);r.x-=f,r.y-=h,r.updateTransform(),r.setCenter(Ey(r,s),n),r.setZoom(o*i)}return{center:r.getCenter(),zoom:r.getZoom()}}var fR=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,n){this._api=n},e.prototype.render=function(t,n,i,a){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new db(i));var o=this._mapDraw;o.draw(t,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,i)},e.prototype._handleRegionClick=function(t){var n;Nn(t.target,function(i){return(n=ot(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=ot(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(kt);function hR(r,e,t){Ar.registerMap(r,e,t)}function vR(r){r.registerCoordinateSystem("geo",mb),r.registerComponentModel(lR),r.registerComponentView(fR),r.registerImpl("registerMap",hR),r.registerImpl("getMap",function(t){return Ar.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[t](i.name);var u=l.coordinateSystem;T(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var f=[];T(o,function(h,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:i.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,n,i){var a=t.componentType||"series";n.eachComponent({mainType:a,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=uR(s,t,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&T(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function UN(r){Qt(vR),r.registerChartView(tR),r.registerSeriesModel(eR),r.registerLayout(iR),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,nR),L1("map",r.registerAction)}var vo=T,cR=X,vl=-1,Ft=function(){function r(e){var t=e.mappingMethod,n=e.type,i=this.option=$(e);this.type=n,this.mappingMethod=t,this._normalizeData=gR[t];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[t],t==="piecewise"?(Df(i),pR(i)):t==="category"?i.categories?dR(i):Df(i,!0):(Ae(t!=="linear"||i.dataExtent),Df(i))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return U(this._normalizeData,this)},r.listVisualTypes=function(){return _t(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){X(e)?T(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var i,a=B(e)?[]:X(e)?{}:(i=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);i?a=l:a[s]=l}),a},r.retrieveVisuals=function(e){var t={},n;return e&&vo(r.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(t[a]=e[a],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if(cR(e)){var t=[];vo(e,function(n,i){t.push(i)}),e=t}else return[];return e.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var i,a=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||W(l)&&l===e+"")return o;n&&c(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,h=u.close;if(f){if(f[0]===-1/0){if(us(h[1],e,f[1]))return o}else if(f[1]===1/0){if(us(h[0],f[0],e))return o}else if(us(h[0],f[0],e)&&us(h[1],e,f[1]))return o;n&&c(f[0],o),n&&c(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function c(v,p){var d=Math.abs(v-e);d<a&&(a=d,i=p)}},r.visualHandlers={color:{applyVisual:xa("color"),getColorMapper:function(){var e=this.option;return U(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),Ba.call(this,t)}:function(t,n,i){var a=!!i;return!n&&(t=this._normalizeData(t)),i=du(t,e.parsedVisual,i),a?i:br(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return br(du(e,this.option.parsedVisual),"rgba")},category:Ba,piecewise:function(e,t){var n=rv.call(this,t);return n==null&&(n=br(du(e,this.option.parsedVisual),"rgba")),n},fixed:In}},colorHue:ls(function(e,t){return gu(e,t)}),colorSaturation:ls(function(e,t){return gu(e,null,t)}),colorLightness:ls(function(e,t){return gu(e,null,null,t)}),colorAlpha:ls(function(e,t){return gx(e,t)}),decal:{applyVisual:xa("decal"),_normalizedToVisual:{linear:null,category:Ba,piecewise:null,fixed:null}},opacity:{applyVisual:xa("opacity"),_normalizedToVisual:ev([0,1])},liftZ:{applyVisual:xa("liftZ"),_normalizedToVisual:{linear:In,category:In,piecewise:In,fixed:In}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:Oy,category:Ba,piecewise:function(e,t){var n=rv.call(this,t);return n==null&&(n=Oy.call(this,e)),n},fixed:In}},symbolSize:{applyVisual:xa("symbolSize"),_normalizedToVisual:ev([0,1])}},r}();function pR(r){var e=r.pieceList;r.hasSpecialVisual=!1,T(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function dR(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(vo(e,function(o,s){t[o]=s}),!B(n)){var i=[];X(n)?vo(n,function(o,s){var l=t[s];i[l??vl]=o}):i[vl]=n,n=_b(r,i)}for(var a=e.length-1;a>=0;a--)n[a]==null&&(delete t[e[a]],e.pop())}function Df(r,e){var t=r.visual,n=[];X(t)?vo(t,function(a){n.push(a)}):t!=null&&n.push(t);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),_b(r,n)}function ls(r){return{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("color",r(t("color"),i))},_normalizedToVisual:ev([0,1])}}function Oy(r){var e=this.option.visual;return e[Math.round(wt(r,[0,1],[0,e.length-1],!0))]||{}}function xa(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function Ba(r){var e=this.option.visual;return e[this.option.loop&&r!==vl?r%e.length:r]}function In(){return this.option.visual[0]}function ev(r){return{linear:function(e){return wt(e,r,this.option.visual,!0)},category:Ba,piecewise:function(e,t){var n=rv.call(this,t);return n==null&&(n=wt(e,r,this.option.visual,!0)),n},fixed:In}}function rv(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=Ft.findPieceIndex(r,t),i=t[n];if(i&&i.visual)return i.visual[this.type]}}function _b(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=F(e,function(t){var n=ce(t);return n||[0,0,0,1]})),e}var gR={linear:function(r){return wt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Ft.findPieceIndex(r,e,!0);if(t!=null)return wt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??vl},fixed:Rt};function us(r,e,t){return r?e<=t:e<t}var Ny=or.prototype,Af=Pl.prototype,Sb=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Sb);function If(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var yR=function(r){k(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Sb},e.prototype.buildPath=function(t,n){If(n)?Ny.buildPath.call(this,t,n):Af.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return If(this.shape)?Ny.pointAt.call(this,t):Af.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,i=If(n)?[n.x2-n.x1,n.y2-n.y1]:Af.tangentAt.call(this,t);return Dv(i,i)},e}(ct),Lf=["fromSymbol","toSymbol"];function By(r){return"_"+r+"Type"}function Fy(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var i=e.getItemVisual(t,r+"Size"),a=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Yl(i),u=Zl(o||0,l);return n+l+u+(a||"")+(s||"")}function Vy(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var i=e.getItemVisual(t,r+"Size"),a=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Yl(i),u=Zl(o||0,l),f=Kt(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function mR(r){var e=new yR({name:"line",subPixelOptimize:!0});return nv(e.shape,r),e}function nv(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var _R=function(r){k(e,r);function e(t,n,i){var a=r.call(this)||this;return a._createLine(t,n,i),a}return e.prototype._createLine=function(t,n,i){var a=t.hostModel,o=t.getItemLayout(n),s=mR(o);s.shape.percent=0,Bt(s,{shape:{percent:1}},a,n),this.add(s),T(Lf,function(l){var u=Vy(l,t,n);this.add(u),this[By(l)]=Fy(l,t,n)},this),this._updateCommonStl(t,n,i)},e.prototype.updateData=function(t,n,i){var a=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};nv(l.shape,s),At(o,l,a,n),T(Lf,function(u){var f=Fy(u,t,n),h=By(u);if(this[h]!==f){this.remove(this.childOfName(u));var c=Vy(u,t,n);this.add(c)}this[h]=f},this),this._updateCommonStl(t,n,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,i){var a=t.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,h=i&&i.emphasisDisabled,c=i&&i.focus,v=i&&i.blurScope;if(!i||t.hasItemOption){var p=t.getItemModel(n),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),h=d.get("disabled"),c=d.get("focus"),v=d.get("blurScope"),f=lr(p)}var g=t.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,T(Lf,function(b){var x=this.childOfName(b);if(x){x.setColor(y),x.style.opacity=g.opacity;for(var M=0;M<se.length;M++){var C=se[M],A=o.getState(C);if(A){var D=A.style||{},I=x.ensureState(C),L=I.style||(I.style={});D.stroke!=null&&(L[x.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(L.opacity=D.opacity)}}x.markRedraw()}},this);var m=a.getRawValue(n);Lr(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(b,x){return a.getFormattedLabel(b,x,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?t.getName(n):isFinite(m)?Dt(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var w=S.get("distance");B(w)||(w=[w,w]),_.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Dr(this,c,v,h)},e.prototype.highlight=function(){$n(this)},e.prototype.downplay=function(){qn(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");nv(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),a=t.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),h=l.pointAt(u),c=h0([],h,f);Dv(c,c);function v(A,D){var I=A.__specifiedRotation;if(I==null){var L=l.tangentAt(D);A.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else A.attr("rotation",I)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(h),v(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var p=void 0,d=void 0,g=a.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),w=[S[1],-S[0]],b=l.pointAt(_);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var x=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var M=-Math.atan2(S[1],S[0]);h[0]<f[0]&&(M=Math.PI+M),a.rotation=M}var C=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,d="top";break;default:C=0,d="middle"}switch(a.__position){case"end":a.x=c[0]*y+h[0],a.y=c[1]*m+h[1],p=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":a.x=-c[0]*y+f[0],a.y=-c[1]*m+f[1],p=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*x+f[0],a.y=f[1]+C,p=S[0]<0?"right":"left",a.originX=-y*x,a.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+C,p="center",a.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*x+h[0],a.y=h[1]+C,p=S[0]>=0?"right":"left",a.originX=y*x,a.originY=-C;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||d,align:a.__align||p})}},e}(st),SR=function(){function r(e){this.group=new st,this._LineCtor=e||_R}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var o=zy(e);e.diff(a).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=zy(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!bR(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(Pf(a)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Xi(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var i=e.getItemLayout(t);if(Pf(i)){var a=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,a),this.group.add(a)}},r.prototype._doUpdate=function(e,t,n,i,a){var o=e.getItemGraphicEl(n);if(!Pf(t.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(t,i,a):o=new this._LineCtor(t,i,a),t.setItemGraphicEl(i,o),this.group.add(o)},r}();function bR(r){return r.animators&&r.animators.length>0}function zy(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:lr(e)}}function Gy(r){return isNaN(r[0])||isNaN(r[1])}function Pf(r){return r&&!Gy(r[0])&&!Gy(r[1])}function ji(r,e,t,n,i,a){r=r||0;var o=t[1]-t[0];if(i!=null&&(i=Si(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Si(s,[0,o]),i=a=Si(s,[i,a]),n=0}e[0]=Si(e[0],t),e[1]=Si(e[1],t);var l=Rf(e,n);e[n]+=r;var u=i||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[n]=Si(e[n],f);var h;return h=Rf(e,n),i!=null&&(h.sign!==l.sign||h.span<i)&&(e[1-n]=e[n]+l.sign*i),h=Rf(e,n),a!=null&&h.span>a&&(e[1-n]=e[n]+h.sign*a),e}function Rf(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Si(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var jn=!0,co=Math.min,zi=Math.max,wR=Math.pow,xR=1e4,TR=6,MR=6,Hy="globalPan",CR={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},DR={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Wy={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},AR=0,bb=function(r){k(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new st,n._uid="brushController_"+AR++,T(OR,function(i,a){this._handlers[a]=U(i,this)},n),n}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||TP(n,Hy,this._uid),T(this._handlers,function(i,a){n.on(a,i)}),this._brushType=t.brushType,this._brushOption=Q($(Wy),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;MP(t,Hy,this._uid),T(this._handlers,function(n,i){t.off(i,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};T(t,function(i){n[i.panelId]=$(i)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=F(t,function(c){return Q($(Wy),c,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new cc(i,t,u,l).add(f).update(f).remove(h).execute(),this;function l(c,v){return(c.id!=null?c.id:n+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var p=t[c];if(v!=null&&i[v]===s)a[c]=i[v];else{var d=a[c]=v!=null?(i[v].__brushOption=p,i[v]):xb(o,wb(o,p));Dc(o,d)}}function h(c){i[c]!==s&&o.group.remove(i[c])}},e.prototype.unmount=function(){return this.enableBrush(!1),iv(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Ie);function wb(r,e){var t=eu[e.brushType].createCover(r,e);return t.__brushOption=e,Mb(t,e),r.group.add(t),t}function xb(r,e){var t=Ac(e);return t.endCreating&&(t.endCreating(r,e),Mb(e,e.__brushOption)),e}function Tb(r,e){var t=e.__brushOption;Ac(e).updateCoverShape(r,e,t.range,t)}function Mb(r,e){var t=e.z;t==null&&(t=xR),r.traverse(function(n){n.z=t,n.z2=t})}function Dc(r,e){Ac(e).updateCommon(r,e),Tb(r,e)}function Ac(r){return eu[r.__brushOption.brushType]}function Ic(r,e,t){var n=r._panels;if(!n)return jn;var i,a=r._transform;return T(n,function(o){o.isTargetByCursor(e,t,a)&&(i=o)}),i}function Cb(r,e){var t=r._panels;if(!t)return jn;var n=e.__brushOption.panelId;return n!=null?t[n]:jn}function iv(r){var e=r._covers,t=e.length;return T(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function ti(r,e){var t=F(r._covers,function(n){var i=n.__brushOption,a=$(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function IR(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],i=t[0]-n[0],a=t[1]-n[1],o=wR(i*i+a*a,.5);return o>TR}function Db(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function Ab(r,e,t,n){var i=new st;return i.add(new dt({name:"main",style:Lc(t),silent:!0,draggable:!0,cursor:"move",drift:it(Uy,r,e,i,["n","s","w","e"]),ondragend:it(ti,e,{isEnd:!0})})),T(n,function(a){i.add(new dt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:it(Uy,r,e,i,a),ondragend:it(ti,e,{isEnd:!0})}))}),i}function Ib(r,e,t,n){var i=n.brushStyle.lineWidth||0,a=zi(i,MR),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,f=t[0][1],h=t[1][1],c=f-a+i/2,v=h-a+i/2,p=f-o,d=h-s,g=p+i,y=d+i;dr(r,e,"main",o,s,p,d),n.transformable&&(dr(r,e,"w",l,u,a,y),dr(r,e,"e",c,u,a,y),dr(r,e,"n",l,u,g,a),dr(r,e,"s",l,v,g,a),dr(r,e,"nw",l,u,a,a),dr(r,e,"ne",c,u,a,a),dr(r,e,"sw",l,v,a,a),dr(r,e,"se",c,v,a,a))}function av(r,e){var t=e.__brushOption,n=t.transformable,i=e.childAt(0);i.useStyle(Lc(t)),i.attr({silent:!n,cursor:n?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?ov(r,a[0]):PR(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?DR[s]+"-resize":null})})}function dr(r,e,t,n,i,a,o){var s=e.childOfName(t);s&&s.setShape(kR(Pc(r,e,[[n,i],[n+a,i+o]])))}function Lc(r){return nt({strokeNoScale:!0},r.brushStyle)}function Lb(r,e,t,n){var i=[co(r,t),co(e,n)],a=[zi(r,t),zi(e,n)];return[[i[0],a[0]],[i[1],a[1]]]}function LR(r){return Hn(r.group)}function ov(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=El(t[e],LR(r));return n[i]}function PR(r,e){var t=[ov(r,e[0]),ov(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Uy(r,e,t,n,i,a){var o=t.__brushOption,s=r.toRectRange(o.range),l=Pb(e,i,a);T(n,function(u){var f=CR[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Lb(s[0][0],s[1][0],s[0][1],s[1][1])),Dc(e,t),ti(e,{isEnd:!1})}function RR(r,e,t,n){var i=e.__brushOption.range,a=Pb(r,t,n);T(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Dc(r,e),ti(r,{isEnd:!1})}function Pb(r,e,t){var n=r.group,i=n.transformCoordToLocal(e,t),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Pc(r,e,t){var n=Cb(r,e);return n&&n!==jn?n.clipPath(t,r._transform):$(t)}function kR(r){var e=co(r[0][0],r[1][0]),t=co(r[0][1],r[1][1]),n=zi(r[0][0],r[1][0]),i=zi(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:i-t}}function ER(r,e,t){if(!(!r._brushType||NR(r,e.offsetX,e.offsetY))){var n=r._zr,i=r._covers,a=Ic(r,e,t);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===jn||s.panelId===a.panelId)&&eu[s.brushType].contain(i[o],t[0],t[1]))return}a&&n.setCursorStyle("crosshair")}}function sv(r){var e=r.event;e.preventDefault&&e.preventDefault()}function lv(r,e,t){return r.childOfName("main").contain(e,t)}function Rb(r,e,t,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),IR(r)||i){if(a&&!i){o.brushMode==="single"&&iv(r);var l=$(o);l.brushType=Yy(l.brushType,a),l.panelId=a===jn?null:a.panelId,i=r._creatingCover=wb(r,l),r._covers.push(i)}if(i){var u=eu[Yy(r._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(Pc(r,i,r._track)),n&&(xb(r,i),u.updateCommon(r,i)),Tb(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Ic(r,e,t)&&iv(r)&&(s={isEnd:n,removeOnClick:!0});return s}function Yy(r,e){return r==="auto"?e.defaultBrushType:r}var OR={mousedown:function(r){if(this._dragging)Zy(this,r);else if(!r.target||!r.target.draggable){sv(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=Ic(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(ER(this,r,n),this._dragging){sv(r);var i=Rb(this,r,n,!1);i&&ti(this,i)}},mouseup:function(r){Zy(this,r)}};function Zy(r,e){if(r._dragging){sv(e);var t=e.offsetX,n=e.offsetY,i=r.group.transformCoordToLocal(t,n),a=Rb(r,e,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&ti(r,a)}}function NR(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var eu={lineX:Xy(0),lineY:Xy(1),rect:{createCover:function(r,e){function t(n){return n}return Ab({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=Db(r);return Lb(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){Ib(r,e,t,n)},updateCommon:av,contain:lv},polygon:{createCover:function(r,e){var t=new st;return t.add(new Ue({name:"main",style:Lc(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new sr({name:"main",draggable:!0,drift:it(RR,r,e),ondragend:it(ti,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:Pc(r,e,t)})},updateCommon:av,contain:lv}};function Xy(r){return{createCover:function(e,t){return Ab({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=Db(e),n=co(t[0][r],t[1][r]),i=zi(t[0][r],t[1][r]);return[n,i]},updateCoverShape:function(e,t,n,i){var a,o=Cb(e,t);if(o!==jn&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),Ib(e,t,l,i)},updateCommon:av,contain:lv}}function BR(r){return r=Rc(r),function(e){return M_(e,r)}}function FR(r,e){return r=Rc(r),function(t){var n=e??t,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function VR(r,e,t){var n=Rc(r);return function(i,a){return n.contain(a[0],a[1])&&!fb(i,e,t)}}function Rc(r){return at.create(r)}var zR=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var n,i=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(e.layout="horizontal",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],c=u[1-f],v=[i,a],p=v[f].get("type"),d=v[1-f].get("type"),g=e.data;if(g&&l){var y=[];T(g,function(S,w){var b;B(S)?(b=S.slice(),S.unshift(w)):B(S.value)?(b=N({},S),b.value=b.value.slice(),S.value.unshift(w)):b=S,y.push(b)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:Hh(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:Hh(d),dimsDef:m.slice()}];return jl(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:it(K_,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),GR=["itemStyle","borderColor"],HR=["itemStyle","borderColor0"],WR=["itemStyle","borderColorDoji"],UR=["itemStyle","color"],YR=["itemStyle","color0"];function kc(r,e){return e.get(r>0?UR:YR)}function Ec(r,e){return e.get(r===0?WR:r>0?GR:HR)}var ZR={seriesType:"candlestick",plan:bo(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(n,i){for(var a;(a=n.next())!=null;){var o=i.getItemModel(a),s=i.getItemLayout(a).sign,l=o.getItemStyle();l.fill=kc(s,o),l.stroke=Ec(s,o)||l.fill;var u=i.ensureUniqueItemVisual(a,"style");N(u,l)}}}}}},XR=["color","borderColor"],$R=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){Xi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(f){if(n.hasValue(f)){var h=n.getItemLayout(f);if(s&&$y(u,h))return;var c=kf(h,f,!0);Bt(c,{shape:{points:h.ends}},t,f),Ef(c,n,f,o),a.add(c),n.setItemGraphicEl(f,c)}}).update(function(f,h){var c=i.getItemGraphicEl(h);if(!n.hasValue(f)){a.remove(c);return}var v=n.getItemLayout(f);if(s&&$y(u,v)){a.remove(c);return}c?(At(c,{shape:{points:v.ends}},t,f),Bi(c)):c=kf(v),Ef(c,n,f,o),a.add(c),n.setItemGraphicEl(f,c)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&a.remove(h)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),qy(t,this.group);var n=t.get("clip",!0)?HS(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=i.getItemLayout(o),l=kf(s);Ef(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,n){qy(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Yt),qR=function(){function r(){}return r}(),KR=function(r){k(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new qR},e.prototype.buildPath=function(t,n){var i=n.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(ct);function kf(r,e,t){var n=r.ends;return new KR({shape:{points:t?QR(n,r):n},z2:100})}function $y(r,e){for(var t=!0,n=0;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function Ef(r,e,t,n){var i=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,Kn(r,i);var a=e.getItemLayout(t).sign;T(r.states,function(s,l){var u=i.getModel(l),f=kc(a,u),h=Ec(a,u)||f,c=s.style||(s.style={});f&&(c.fill=f),h&&(c.stroke=h)});var o=i.getModel("emphasis");Dr(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function QR(r,e){return F(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var JR=function(){function r(){}return r}(),Of=function(r){k(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new JR},e.prototype.buildPath=function(t,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];t.moveTo(o,i[a++]),t.lineTo(o,i[a++])}else a+=3},e}(ct);function qy(r,e,t,n){var i=r.getData(),a=i.getLayout("largePoints"),o=new Of({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new Of({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Of({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});e.add(l),Nf(1,o,r),Nf(-1,s,r),Nf(0,l,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function Nf(r,e,t,n){var i=Ec(r,t)||kc(r,t),a=t.getModel("itemStyle").getItemStyle(XR);e.useStyle(a),e.style.fill=null,e.style.stroke=i}var kb=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,i){var a=n.getItemLayout(t);return a&&i.rect(a.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(qt);ue(kb,zR,!0);function jR(r){!r||!B(r.series)||T(r.series,function(e){X(e)&&e.type==="k"&&(e.type="candlestick")})}var tk={seriesType:"candlestick",plan:bo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=ek(r,t),i=0,a=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[i])),l=F(t.mapDimensionsAll(o[a]),t.getDimensionIndex,t),u=l[0],f=l[1],h=l[2],c=l[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:v};function v(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),w=m.get(f,y),b=m.get(h,y),x=m.get(c,y),M=Math.min(S,w),C=Math.max(S,w),A=z(M,_),D=z(C,_),I=z(b,_),L=z(x,_),P=[];O(P,D,0),O(P,A,1),P.push(G(L),G(D),G(I),G(A));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:Ky(m,y,S,w,f,E),initBaseline:S>w?D[a]:A[a],ends:P,brushRect:V(b,x,_)})}function z(H,Z){var et=[];return et[i]=Z,et[a]=H,isNaN(Z)||isNaN(H)?[NaN,NaN]:e.dataToPoint(et)}function O(H,Z,et){var lt=Z.slice(),vt=Z.slice();lt[i]=Ms(lt[i]+n/2,1,!1),vt[i]=Ms(vt[i]-n/2,1,!0),et?H.push(lt,vt):H.push(vt,lt)}function V(H,Z,et){var lt=z(H,et),vt=z(Z,et);return lt[i]-=n/2,vt[i]-=n/2,{x:lt[0],y:lt[1],width:n,height:vt[1]-lt[1]}}function G(H){return H[i]=Ms(H[i],1),H}}function p(d,g){for(var y=nr(d.count*4),m=0,_,S=[],w=[],b,x=g.getStore(),M=!!r.get(["itemStyle","borderColorDoji"]);(b=d.next())!=null;){var C=x.get(s,b),A=x.get(u,b),D=x.get(f,b),I=x.get(h,b),L=x.get(c,b);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=Ky(x,b,A,D,f,M),S[i]=C,S[a]=I,_=e.dataToPoint(S,null,w),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[a]=L,_=e.dataToPoint(S,null,w),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function Ky(r,e,t,n,i,a){var o;return t>n?o=-1:t<n?o=1:o=a?0:e>0?r.get(i,e-1)<=n?1:-1:1,o}function ek(r,e){var t=r.getBaseAxis(),n,i=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),a=tt(K(r.get("barMaxWidth"),i),i),o=tt(K(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?tt(s,i):Math.max(Math.min(i/2,a),o)}function YN(r){r.registerChartView($R),r.registerSeriesModel(kb),r.registerPreprocessor(jR),r.registerVisual(ZR),r.registerLayout(tk)}var Pn=St(),Qy=$,Bf=U,rk=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,i){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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,a,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new st,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var c=it(Jy,t,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}tm(s,t,!0),this._renderHandle(a)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,a=i.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Tc(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,i,a){},r.prototype.createPointerEl=function(e,t,n,i){var a=t.pointer;if(a){var o=Pn(e).pointerEl=new D_[a.type](Qy(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,i){if(t.label){var a=Pn(e).labelEl=new bt(Qy(t.label));e.add(a),jy(a,i)}},r.prototype.updatePointerEl=function(e,t,n){var i=Pn(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,i){var a=Pn(e).labelEl;a&&(a.setStyle(t.label.style),n(a,{x:t.label.x,y:t.label.y}),jy(a,i))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Ol(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Mr(u.event)},onmousedown:Bf(this._onHandleDragMove,this,0,0),drift:Bf(this._onHandleDragMove,this),ondragend:Bf(this._onHandleDragEnd,this)}),n.add(i)),tm(i,t,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");B(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,wo(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){Jy(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Ff(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Ff(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Ff(i)),Pn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),tl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function Jy(r,e,t,n){Eb(Pn(t).lastProp,n)||(Pn(t).lastProp=n,e?At(t,n,r):(t.stopAnimation(),t.attr(n)))}function Eb(r,e){if(X(r)&&X(e)){var t=!0;return T(e,function(n,i){t=t&&Eb(r[i],n)}),!!t}else return r===e}function jy(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Ff(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function tm(r,e,t){var n=e.get("z"),i=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=t)})}function nk(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function ik(r,e,t,n,i){var a=t.get("value"),o=Ob(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Ki(s.get("padding")||0),u=s.getFont(),f=bl(o,u),h=i.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],p=i.align;p==="right"&&(h[0]-=c),p==="center"&&(h[0]-=c/2);var d=i.verticalAlign;d==="bottom"&&(h[1]-=v),d==="middle"&&(h[1]-=v/2),ak(h,c,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:de(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function ak(r,e,t,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+e,i)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Ob(r,e,t,n,i){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:yc(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),W(o)?a=o.replace("{value}",a):q(o)&&(a=o(s))}return a}function Nb(r,e,t){var n=_r();return Sl(n,n,t.rotation),Es(n,n,t.position),Qr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function ok(r,e,t,n,i,a){var o=xr.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),ik(e,n,i,a,{position:Nb(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function sk(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function lk(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function ZN(r,e,t,n,i,a){return{cx:r,cy:e,r0:t,r:n,startAngle:i,endAngle:a,clockwise:!0}}var uk=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=em(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var c=nk(a),v=fk[u](s,h,f);v.style=c,t.graphicKey=v.type,t.pointer=v}var p=Kh(l.model,i);ok(n,t,p,i,a,o)},e.prototype.getHandleTransform=function(t,n,i){var a=Kh(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=Nb(n.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=em(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=n[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:t.rotation,cursorPoint:v,tooltipOption:p[f]}},e}(rk);function em(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var fk={line:function(r,e,t){var n=sk([e,t[0]],[e,t[1]],rm(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:lk([e-n/2,t[0]],[n,i],rm(r))}}};function rm(r){return r.dim==="x"?0:1}var hk=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.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}},e}(ht),mr=St(),vk=T;function Bb(r,e,t){if(!J.node){var n=e.getZr();mr(n).records||(mr(n).records={}),ck(n,e);var i=mr(n).records[r]||(mr(n).records[r]={});i.handler=t}}function ck(r,e){if(mr(r).initialized)return;mr(r).initialized=!0,t("click",it(nm,"click")),t("mousemove",it(nm,"mousemove")),t("globalout",dk);function t(n,i){r.on(n,function(a){var o=gk(e);vk(mr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),pk(o.pendings,e)})}}function pk(r,e){var t=r.showTip.length,n=r.hideTip.length,i;t?i=r.showTip[t-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function dk(r,e,t){r.handler("leave",null,t)}function nm(r,e,t,n){e.handler(r,t,n)}function gk(r){var e={showTip:[],hideTip:[]},t=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function uv(r,e){if(!J.node){var t=e.getZr(),n=(mr(t).records||{})[r];n&&(mr(t).records[r]=null)}}var yk=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){var a=n.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Bb("axisPointer",i,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})})},e.prototype.remove=function(t,n){uv("axisPointer",n)},e.prototype.dispose=function(t,n){uv("axisPointer",n)},e.type="axisPointer",e}(kt);function Fb(r,e){var t=[],n=r.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Zn(a,r);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.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=a.mapDimension(c),d=[];d[v]=a.get(p,o),d[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(a.getValues(F(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var im=St();function mk(r,e,t){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||U(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Ls(i)&&(i=Fb({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Ls(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||Ls(i),c={},v={},p={list:[],map:{}},d={showPointer:it(Sk,v),showTooltip:it(bk,p)};T(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);T(s.coordSysAxesInfo[m],function(S,w){var b=S.axis,x=Mk(u,S);if(!h&&_&&(!u||x)){var M=x&&x.value;M==null&&!l&&(M=b.pointToData(i)),M!=null&&am(S,M,d,!1,c)}})});var g={};return T(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&T(_.axesInfo,function(S,w){var b=v[w];if(S!==y&&b){var x=b.value;_.mapper&&(x=y.axis.scale.parse(_.mapper(x,om(S),om(y)))),g[y.key]=x}})}),T(g,function(y,m){am(f[m],y,d,!0,c)}),wk(v,f,c),xk(p,i,r,o),Tk(f,o,t),c}}function am(r,e,t,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=_k(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&N(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function _k(r,e){var t=e.axis,n=t.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,t.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,i=h,a.length=0),T(c,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function Sk(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function bk(r,e,t,n){var i=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.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:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function wk(r,e,t){var n=t.axesInfo=[];T(e,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function xk(r,e,t,n){if(Ls(e)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function Tk(r,e,t){var n=t.getZr(),i="axisPointerLastHighlights",a=im(n)[i]||{},o=im(n)[i]={};T(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&T(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];T(a,function(u,f){!o[f]&&l.push(u)}),T(o,function(u,f){!a[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Mk(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function om(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Ls(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Vb(r){ib.registerAxisPointerClass("CartesianAxisPointer",uk),r.registerComponentModel(hk),r.registerComponentView(yk),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=tP(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},mk)}function XN(r){Qt(sb),Qt(Vb)}var sm=["x","y","radius","angle","single"],Ck=["cartesian2d","polar","singleAxis"];function Dk(r){var e=r.get("coordinateSystem");return ut(Ck,e)>=0}function qr(r){return r+"Axis"}function Ak(r,e){var t=Y(),n=[],i=Y();r.eachComponent({mainType:"dataZoom",query:e},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(c,v){var p=t.get(c);p&&p[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(t.get(h)||t.set(h,[]))[c]=!0})}return n}function zb(r){var e=r.ecModel,t={infoList:[],infoMap:Y()};return r.eachTargetAxis(function(n,i){var a=e.getComponent(qr(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(a)}}}),t}var Vf=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),po=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,i){var a=lm(t);this.settledOption=a,this.mergeDefaultAndTheme(t,i),this._doInit(a)},e.prototype.mergeOption=function(t){var n=lm(t);Q(this.option,t,!0),Q(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=Y(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return T(sm,function(i){var a=this.getReferringComponents(qr(i),pT);if(a.specified){n=!0;var o=new Vf;T(a.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var h=u[0];if(h){var c=new Vf;if(c.add(h.componentIndex),t.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",Ut).models[0];v&&T(u,function(p){h.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",Ut).models[0]&&c.add(p.componentIndex)})}}}a&&T(sm,function(u){if(a){var f=i.findComponents({mainType:qr(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new Vf;h.add(f[0].componentIndex),t.set(u,h),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,i=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,i){t==null&&(t=this.ecModel.getComponent(qr(n),i))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(i,a){T(i.indexList,function(o){t.call(n,a,o)})})},e.prototype.getAxisProxy=function(t,n){var i=this.getAxisModel(t,n);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[n])return this.ecModel.getComponent(qr(t),n)},e.prototype.setRawRange=function(t){var n=this.option,i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(n[a[0]]=i[a[0]]=t[a[0]],n[a[1]]=i[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;T(["start","startValue","end","endValue"],function(i){n[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],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;n||(n=u)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(ht);function lm(r){var e={};return T(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var Ik=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(po),Oc=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i,a){this.dataZoomModel=t,this.ecModel=n,this.api=i},e.type="dataZoom",e}(kt),Lk=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Oc),Mi=T,um=kn,Pk=function(){function r(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Dk(t)){var n=qr(this._dimName),i=t.getReferringComponents(n,Ut).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return $(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Mi(["start","end"],function(c,v){var p=e[c],d=e[c+"Value"];a[v]==="percent"?(p==null&&(p=o[v]),d=i.parse(wt(p,o,t))):(u=!0,d=d==null?t[v]:i.parse(d),p=wt(d,t,o)),l[v]=d==null||isNaN(d)?t[v]:d,s[v]=p==null||isNaN(p)?o[v]:p}),um(l),um(s);var f=this._minMaxSpan;u?h(l,s,t,o,!1):h(s,l,o,t,!0);function h(c,v,p,d,g){var y=g?"Span":"ValueSpan";ji(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]=i.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Rk(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._valueWindow;if(a==="none")return;Mi(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(a==="weakFilter"){var h=u.getStore(),c=F(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],w=m>o[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(p=!0),w&&(d=!0)}return g&&p&&d})}else Mi(f,function(v){if(a==="empty")l.setData(u=u.map(v,function(d){return s(d)?d:NaN}));else{var p={};p[v]=o,u.selectRange(p)}});Mi(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Mi(["min","max"],function(i){var a=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=wt(n[0]+o,n,[0,100],!0):a!=null&&(o=wt(a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=k0(n,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;t[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),t[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function Rk(r,e,t){var n=[1/0,-1/0];Mi(t,function(o){gI(n,o.getData(),e)});var i=r.getAxisModel(),a=yS(i.axis.scale,i,n).calculate();return[a.min,a.max]}var kk={getTargetSeries:function(r){function e(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(qr(o),s);i(o,s,l,a)})})}e(function(i,a,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Pk(i,a,s,r),t.push(o.__dzAxisProxy))});var n=Y();return T(t,function(i){T(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function Ek(r){r.registerAction("dataZoom",function(e,t){var n=Ak(t,e);T(n,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var fm=!1;function Nc(r){fm||(fm=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,kk),Ek(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Ok(r){r.registerComponentModel(Ik),r.registerComponentView(Lk),Nc(r)}var Ce=function(){function r(){}return r}(),Gb={};function Ci(r,e){Gb[r]=e}function Hb(r){return Gb[r]}var Nk=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;T(this.option.feature,function(n,i){var a=Hb(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),Q(n,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.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"}},e}(ht);function Bk(r,e,t){var n=e.getBoxLayoutParams(),i=e.get("padding"),a={width:t.getWidth(),height:t.getHeight()},o=Ge(n,a,i);Wn(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Y_(r,n,a,i)}function Wb(r,e){var t=Ki(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),r=new dt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var Fk=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,i,a){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),h=[];T(u,function(p,d){h.push(d)}),new cc(this._featureNames||[],h).add(c).update(c).remove(it(c,null)).execute(),this._featureNames=h;function c(p,d){var g=h[p],y=h[d],m=u[g],_=new mt(m,t,t.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(Vk(g))S={onclick:_.option.onclick,featureName:g};else{var w=Hb(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=$i("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var b=S instanceof Ce;if(!g&&y){b&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}v(_,S,g),_.setIconStatus=function(x,M){var C=this.option,A=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[x]=M,A[x]&&(M==="emphasis"?$n:qn)(A[x])},S instanceof Ce&&S.render&&S.render(_,n,i,a)}function v(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof Ce&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},w,b;W(_)?(w={},w[g]=_):w=_,W(S)?(b={},b[g]=S):b=S;var x=p.iconPaths={};T(w,function(M,C){var A=Ol(M,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(y.getItemStyle());var D=A.ensureState("emphasis");D.style=m.getItemStyle();var I=new bt({style:{text:b[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:I_({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});A.setTextContent(I),Zi({el:A,componentModel:t,itemName:C,formatterParamsExtra:{title:b[C]}}),A.__title=b[C],A.on("mouseover",function(){var L=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",C])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",C])==="emphasis"?$n:qn)(A),o.add(A),A.on("click",U(d.onclick,d,n,i,C)),x[C]=A})}Bk(o,t,i),o.add(Wb(o.getBoundingRect(),t)),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={}),w=bl(d,bt.makeFont(S)),b=p.x+o.x,x=p.y+o.y+s,M=!1;x+w.height>i.getHeight()&&(y.position="top",M=!0);var C=M?-5-w.height:s+10;b+w.width/2>i.getWidth()?(y.position=["100%",C],S.align="right"):b-w.width/2<0&&(y.position=[0,C],S.align="left")}})},e.prototype.updateView=function(t,n,i,a){T(this._features,function(o){o instanceof Ce&&o.updateView&&o.updateView(o.model,n,i,a)})},e.prototype.remove=function(t,n){T(this._features,function(i){i instanceof Ce&&i.remove&&i.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){T(this._features,function(i){i instanceof Ce&&i.dispose&&i.dispose(t,n)})},e.type="toolbox",e}(kt);function Vk(r){return r.indexOf("my")===0}var zk=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var i=this.model,a=i.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=J.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+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=a+"."+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,w=S.document;w.open("image/svg+xml","replace"),w.write(p),w.close(),S.focus(),w.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var b=i.get("lang"),x='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',M=window.open();M.document.write(x),M.document.title=a}},e.getDefaultOption=function(t){var n={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(Ce),hm="__ec_magicType_stack__",Gk=[["line","bar"],["stack"]],Hk=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),i={};return T(t.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},e.getDefaultOption=function(t){var n={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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(vm[i]){var s={series:[]},l=function(h){var c=h.subType,v=h.id,p=vm[i](c,v,h,a);p&&(nt(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Ut).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};T(Gk,function(h){ut(h,i)>=0&&T(h,function(c){a.setIconStatus(c,"normal")})}),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=Q({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Ce),vm={line:function(r,e,t,n){if(r==="bar")return Q({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return Q({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var i=t.get("stack")===hm;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Q({id:e,stack:i?"":hm},n.get(["option","stack"])||{},!0)}};fr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var ru=new Array(60).join("-"),Gi="	";function Wk(r){var e={},t=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function Uk(r){var e=[];return T(r,function(t,n){var i=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(F(t.series,function(v){return v.name})),l=[i.model.getCategories()];T(t.series,function(v){var p=v.getRawData();l.push(v.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(Gi)],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(Gi))}e.push(u.join(`
`))}),e.join(`

`+ru+`

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

`+ru+`

`)}function Zk(r){var e=Wk(r);return{value:Ct([Uk(e.seriesGroupByCategoryAxis),Yk(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`

`+ru+`

`),meta:e.meta}}function cl(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Xk(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(Gi)>=0)return!0}var fv=new RegExp("["+Gi+"]+","g");function $k(r){for(var e=r.split(/\n+/g),t=cl(e.shift()).split(fv),n=[],i=F(t,function(l){return{name:l,data:[]}}),a=0;a<e.length;a++){var o=cl(e[a]).split(fv);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function qk(r){for(var e=r.split(/\n+/g),t=cl(e.shift()),n=[],i=0;i<e.length;i++){var a=cl(e[i]);if(a){var o=a.split(fv),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:t,data:n}}function Kk(r,e){var t=r.split(new RegExp(`
*`+ru+`
*`,"g")),n={series:[]};return T(t,function(i,a){if(Xk(i)){var o=$k(i),s=e[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=qk(i);n.series.push(o)}}),n}var Qk=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.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=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),c=a.get("contentToOption"),v=Zk(t);if(q(h)){var p=h(n.getOption());W(p)?u.innerHTML=p:Ni(p)&&u.appendChild(p)}else{f.readOnly=a.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=a.get("textColor"),d.borderColor=a.get("textareaBorderColor"),d.backgroundColor=a.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:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var w=this;function b(){i.removeChild(o),w._dom=null}ah(_,"click",b),ah(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){b();return}var x;try{q(c)?x=c(u,n.getOption()):x=Kk(f.value,g)}catch(M){throw b(),new Error("Data view format error "+M)}x&&n.dispatchAction({type:"changeDataView",newOption:x}),b()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},e}(Ce);function Jk(r,e){return F(r,function(t,n){var i=e&&e[n];if(X(i)&&!B(i)){var a=X(t)&&!B(t);a||(t={value:t});var o=i.name!=null&&t.name==null;return t=nt(t,i),o&&delete t.name,t}else return t})}fr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];T(r.newOption.series,function(n){var i=e.getSeriesByName(n.name)[0];if(!i)t.push(N({type:"scatter"},n));else{var a=i.get("data");t.push({name:n.name,data:Jk(n.data,a)})}}),e.mergeOption(nt({series:t},r.newOption))});var Ub=T,Yb=St();function jk(r,e){var t=Bc(r);Ub(e,function(n,i){for(var a=t.length-1;a>=0;a--){var o=t[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function tE(r){var e=Bc(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return Ub(t,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){n[a]=i;break}}),n}function eE(r){Yb(r).snapshots=null}function rE(r){return Bc(r).length}function Bc(r){var e=Yb(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var nE=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){eE(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={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:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(Ce);fr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var iE=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Fc=function(){function r(e,t,n){var i=this;this._targetInfoList=[];var a=cm(t,e);T(aE,function(o,s){(!n||!n.include||ut(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=zf[n.brushType](0,a,i);n.__rangeOffset={offset:ym[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){T(e,function(i){var a=this.findTargetInfo(i,t);a&&a!==!0&&T(a.coordSyses,function(o){var s=zf[i.brushType](1,o,i.range,!0);n(i,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){T(e,function(n){var i=this.findTargetInfo(n,t);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=zf[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?ym[n.brushType](a.values,o.offset,oE(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(e,t){return F(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:BR(i),isTargetByCursor:VR(i,e,n.coordSysModel),getLinearBrushOtherExtent:FR(i)}})},r.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return i===!0||i&&ut(i.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=cm(t,e),a=0;a<n.length;a++){var o=n[a],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<pm.length;l++)if(pm[l](i,o))return o}return!0},r}();function hv(r){return r[0]>r[1]&&r.reverse(),r}function cm(r,e){return Ha(r,e,{includeMainTypes:iE})}var aE={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=Y(),o={},s={};!t&&!n&&!i||(T(t,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),T(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),T(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];T(u.getCartesians(),function(h,c){(ut(t,h.getAxis("x").model)>=0||ut(n,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:dm.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){T(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:dm.geo})})}},pm=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],dm={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(Hn(r)),e}},zf={lineX:it(gm,0),lineY:it(gm,1),rect:function(r,e,t,n){var i=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),a=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[hv([i[0],a[0]]),hv([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=F(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function gm(r,e,t,n){var i=t.getAxis(["x","y"][r]),a=hv(F([0,1],function(s){return e?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var ym={lineX:it(mm,0),lineY:it(mm,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return F(r,function(n,i){return[n[0]-t[0]*e[i][0],n[1]-t[1]*e[i][1]]})}};function mm(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function oE(r,e){var t=_m(r),n=_m(e),i=[t[0]/n[0],t[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function _m(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var vv=T,sE=uT("toolbox-dataZoom_"),lE=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,i,a){this._brushController||(this._brushController=new bb(i.getZr()),this._brushController.on("brush",U(this._onBrush,this)).mount()),hE(t,n,this,a,i),fE(t,n)},e.prototype.onclick=function(t,n,i){uE[i].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new Fc(Vc(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,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)}}),jk(a,i),this._dispatchZoomAction(i);function s(u,f,h){var c=f.getAxis(u),v=c.model,p=l(u,v,a),d=p.findRepresentativeAxisProxy(v).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=ji(0,h.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(i[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}},e.prototype._dispatchZoomAction=function(t){var n=[];vv(t,function(i,a){n.push($(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(Ce),uE={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(tE(this.ecModel))}};function Vc(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function fE(r,e){r.setIconStatus("back",rE(e)>1?"emphasis":"normal")}function hE(r,e,t,n,i){var a=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new Fc(Vc(r),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}GC("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),i=[],a=Vc(n),o=Ha(r,a);vv(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),vv(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:sE+u+h};c[f]=h,i.push(c)}return i});function $N(r){r.registerComponentModel(Nk),r.registerComponentView(Fk),Ci("saveAsImage",zk),Ci("magicType",Hk),Ci("dataView",Qk),Ci("dataZoom",lE),Ci("restore",nE),Qt(Ok)}var vE=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(ht);function Zb(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function Xb(r){if(J.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var $b=Xb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cE=Xb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function qb(r,e){if(!r)return e;e=W_(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function pE(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var dE=qb(cE,"transition"),zc=qb($b,"transform"),gE="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(J.transform3dSupported?"will-change:transform;":"");function yE(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function mE(r,e,t){if(!W(t)||t==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");e=Qn(e);var a=yE(t),o=Math.max(Math.round(i)*1.5,6),s="",l=zc+":",u;ut(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var p=e+" solid "+i+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+d.join("")+'"></div>'}function _E(r,e){var t="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+t,i="opacity"+n+",visibility"+n;return e||(n=" "+r+"s "+t,i+=J.transformSupported?","+zc+n:",left"+n+",top"+n),dE+":"+i}function Sm(r,e,t){var n=r.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!J.transformSupported)return t?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=J.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return t?"top:0;left:0;"+zc+":"+o+";":[["top",0],["left",0],[$b,o]]}function SE(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var i=K(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),T(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function bE(r,e,t){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=S1(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+c),e&&i&&n.push(_E(i,t)),a&&n.push("background-color:"+a),T(["width","color","radius"],function(v){var p="border-"+v,d=W_(p),g=r.get(d);g!=null&&n.push(p+":"+g+(v==="color"?"":"px"))}),n.push(SE(f)),h!=null&&n.push("padding:"+Ki(h).join("px ")+"px"),n.join(";")+";"}function bm(r,e,t,n,i){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&Gw(r,o,t,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var wE=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,J.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=t.appendTo,o=a&&(W(a)?document.querySelector(a):Ni(a)?a:q(a)&&a(e.getDom()));bm(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();we(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=pE(t,"position"),i=t.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=gE+bE(e,!this._firstShow,this._longHide)+Sm(a[0],a[1],!0)+("border-color:"+Qn(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(W(a)&&n.get("trigger")==="item"&&!Zb(n)&&(s=mE(n,i,a)),W(e))o.innerHTML=e+s;else if(e){o.innerHTML="",B(e)||(e=[e]);for(var l=0;l<e.length;l++)Ni(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(bm(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Sm(n[0],n[1]);T(a,function(o){i[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",J.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(U(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},r}(),xE=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),xm(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,i,a){var o=this;X(e)&&$t(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new bt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:S1(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),T(["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(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=wm(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;xm(i,this._zr,e,t),e=i[0],t=i[1];var a=n.style,o=Hr(a.borderWidth||0),s=wm(a);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(U(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Hr(r){return Math.max(0,r)}function wm(r){var e=Hr(r.shadowBlur||0),t=Hr(r.shadowOffsetX||0),n=Hr(r.shadowOffsetY||0);return{left:Hr(e-t),right:Hr(e+t),top:Hr(e-n),bottom:Hr(e+n)}}function xm(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var TE=new dt({shape:{x:-1,y:-1,width:2,height:2}}),ME=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(J.node||!n.getDom())){var i=t.getComponent("tooltip"),a=this._renderMode=gT(i.get("renderMode"));this._tooltipContent=a==="richText"?new xE(n):new wE(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,n,i){if(!(J.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(t),a.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?wo(this,"_updatePosition",50,"fixRate"):tl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");Bb("itemTooltip",this._api,U(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,i=this._api,a=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,i,a){if(!(a.from===this.uid||J.node||!i.getDom())){var o=Tm(a,i);this._ticket="";var s=a.dataByCoordSys,l=IE(a,n,i);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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=TE;f.x=a.x,f.y=a.y,f.update(),ot(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,i,a))return;var h=Fb(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Tm(a,i))},e.prototype._manuallyAxisShowTip=function(t,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=Ta([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,n){var i=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){var s=ot(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Nn(i,function(f){if(ot(f).dataIndex!=null)return l=f,!0;if(ot(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var i=t.get("showDelay");n=U(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(t,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ta([n.tooltipOption],a),l=this._renderMode,u=[],f=He("section",{blocks:[],noHeader:!0}),h=[],c=new ju;T(t,function(m){T(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var b=Ob(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=He("section",{header:b,noHeader:!Be(b),sortBlocks:!0,blocks:[]});f.blocks.push(x),T(_.seriesDataIndices,function(M){var C=i.getSeriesByIndex(M.seriesIndex),A=M.dataIndexInside,D=C.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=yc(S.axis,{value:w}),D.axisValueLabel=b,D.marker=c.makeTooltipMarker("item",Qn(D.color),l);var I=Ed(C.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=Ta([C],a).get("valueFormatter");x.blocks.push(P?N({valueFormatter:P},L):L)}I.text&&h.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,p=s.get("order"),d=Vd(f,c,l,p,i.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var g=l==="richText"?`

`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,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)})},e.prototype._showSeriesItemTooltip=function(t,n,i){var a=this._ecModel,o=ot(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,p=t.positionDefault,d=Ta([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 ju;y.marker=m.makeTooltipMarker("item",Qn(y.color),v);var _=Ed(u.formatTooltip(f,!1,h)),S=d.get("order"),w=d.get("valueFormatter"),b=_.frag,x=b?Vd(w?N({valueFormatter:w},b):b,m,v,S,a.get("useUTC"),d.get("textStyle")):_.text,M="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,x,y,M,t.offsetX,t.offsetY,t.position,t.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,i){var a=this._renderMode==="html",o=ot(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(W(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=$(l),l.content=ee(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=t.positionDefault,p=Ta(h,this._tooltipModel,v?{position:v}:null),d=p.get("content"),g=Math.random()+"",y=new ju;this._showOrMove(p,function(){var m=$(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,n,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,i,a,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var v=n,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),d=p.color;if(c)if(W(c)){var g=t.ecModel.get("useUTC"),y=B(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Bl(y.axisValue,v,g)),v=U_(v,i,!0)}else if(q(c)){var _=U(function(S,w){S===this._ticket&&(h.setContent(w,f,t,d,l),this._updatePosition(t,l,o,s,h,i,u))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(t,n,i,a){if(i==="axis"||B(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!B(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var h=o.getSize(),c=t.get("align"),v=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),q(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),B(n))i=tt(n[0],u),a=tt(n[1],f);else if(X(n)){var d=n;d.width=h[0],d.height=h[1];var g=Ge(d,{width:u,height:f});i=g.x,a=g.y,c=null,v=null}else if(W(n)&&l){var y=AE(n,p,h,t.get("borderWidth"));i=y[0],a=y[1]}else{var y=CE(i,a,o,u,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=Mm(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Mm(v)?h[1]/2:v==="bottom"?h[1]:0),Zb(t)){var y=DE(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===t.length;return o&&T(i,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&T(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&&T(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&T(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){J.node||!n.getDom()||(tl(this,"_updatePosition"),this._tooltipContent.dispose(),uv("itemTooltip",n))},e.type="tooltip",e}(kt);function Ta(r,e,t){var n=e.ecModel,i;t?(i=new mt(t,n,n),i=new mt(e.option,i,n)):i=e;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof mt&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(i=new mt(o,i,n)))}return i}function Tm(r,e){return r.dispatchAction||U(e.dispatchAction,e)}function CE(r,e,t,n,i,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[r,e]}function DE(r,e,t,n,i){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,i)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function AE(r,e,t,n){var i=t[0],a=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function Mm(r){return r==="center"||r==="middle"}function IE(r,e,t){var n=Ev(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=mo(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ot(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function qN(r){Qt(Vb),r.registerComponentModel(vE),r.registerComponentView(ME),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Rt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Rt)}var LE=["rect","polygon","keep","clear"];function PE(r,e){var t=Lt(r?r.brush:[]);if(t.length){var n=[];T(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=r&&r.toolbox;B(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),RE(s),e&&!s.length&&s.push.apply(s,LE)}}function RE(r){var e={};T(r,function(t){e[t]=1}),r.length=0,T(e,function(t,n){r.push(n)})}var Cm=T;function Dm(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function cv(r,e,t){var n={};return Cm(e,function(a){var o=n[a]=i();Cm(r[a],function(s,l){if(Ft.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new Ft(u),l==="opacity"&&(u=$(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ft(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function Kb(r,e,t){var n;T(t,function(i){e.hasOwnProperty(i)&&Dm(e[i])&&(n=!0)}),n&&T(t,function(i){e.hasOwnProperty(i)&&Dm(e[i])?r[i]=$(e[i]):delete r[i]})}function kE(r,e,t,n,i,a){var o={};T(r,function(h){var c=Ft.prepareVisualTypes(e[h]);o[h]=c});var s;function l(h){return sc(t,s,h)}function u(h,c){I1(t,s,h,c)}t.each(f);function f(h,c){s=h;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var p=n.call(i,h),d=e[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(h,l,u)}}}function EE(r,e,t,n){var i={};return T(r,function(a){var o=Ft.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(w){return sc(s,h,w)}function f(w,b){I1(s,h,w,b)}for(var h,c=s.getStore();(h=o.next())!=null;){var v=s.getRawDataItem(h);if(!(v&&v.visualMap===!1))for(var p=n!=null?c.get(l,h):h,d=t(p),g=e[d],y=i[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}function OE(r){var e=r.brushType,t={point:function(n){return Am[e].point(n,t,r)},rect:function(n){return Am[e].rect(n,t,r)}};return t}var Am={lineX:Im(0),lineY:Im(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Ln(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var i=r.x,a=r.y,o=r.width,s=r.height,l=n[0];if(Ln(n,i,a)||Ln(n,i+o,a)||Ln(n,i,a+s)||Ln(n,i+o,a+s)||at.create(r).contain(l[0],l[1])||ka(i,a,i+o,a,n)||ka(i,a,i,a+s,n)||ka(i+o,a,i+o,a+s,n)||ka(i,a+s,i+o,a+s,n))return!0}}};function Im(r){var e=["x","y"],t=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[r];return Ma(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),Ma(s[0],o)||Ma(s[1],o)||Ma(o[0],s)||Ma(o[1],s)}}}}function Ma(r,e){return e[0]<=r&&r<=e[1]}var Lm=["inBrush","outOfBrush"],Gf="__ecBrushSelect",pv="__ecInBrushSelectEvent";function Qb(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Fc(e.option,r);t.setInputRanges(e.areas,r)})}function NE(r,e,t){var n=[],i,a;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),Qb(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:$(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,h=[],c=[],v=[],p=!1;s||(i=u.throttleType,a=u.throttleDelay);var d=F(o.areas,function(w){var b=zE[w.brushType],x=nt({boundingRect:b?b(w):void 0},w);return x.selectors=OE(x),x}),g=cv(o.option,Lm,function(w){w.mappingMethod="fixed"});B(f)&&T(f,function(w){h[w]=1});function y(w){return f==="all"||!!h[w]}function m(w){return!!w.length}r.eachSeries(function(w,b){var x=v[b]=[];w.subType==="parallel"?_(w,b):S(w,b,x)});function _(w,b){var x=w.coordinateSystem;p=p||x.hasAxisBrushed(),y(b)&&x.eachActiveState(w.getData(),function(M,C){M==="active"&&(c[C]=1)})}function S(w,b,x){if(!(!w.brushSelector||VE(o,b))&&(T(d,function(C){o.brushTargetManager.controlSeries(C,w,r)&&x.push(C),p=p||m(x)}),y(b)&&m(x))){var M=w.getData();M.each(function(C){Pm(w,x,M,C)&&(c[C]=1)})}}r.eachSeries(function(w,b){var x={seriesId:w.id,seriesIndex:b,seriesName:w.name,dataIndex:[]};l.selected.push(x);var M=v[b],C=w.getData(),A=y(b)?function(D){return c[D]?(x.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return Pm(w,M,C,D)?(x.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(b)?p:m(M))&&kE(Lm,g,C,A)})}),BE(e,i,a,n,t)}function BE(r,e,t,n,i){if(i){var a=r.getZr();if(!a[pv]){a[Gf]||(a[Gf]=FE);var o=wo(a,Gf,t,e);o(r,n)}}}function FE(r,e){if(!r.isDisposed()){var t=r.getZr();t[pv]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[pv]=!1}}function Pm(r,e,t,n){for(var i=0,a=e.length;i<a;i++){var o=e[i];if(r.brushSelector(n,t,o.selectors,o))return!0}}function VE(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(B(t)?ut(t,e)<0:e!==t)}var zE={rect:function(r){return Rm(r.range)},polygon:function(r){for(var e,t=r.range,n=0,i=t.length;n<i;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var a=t[n];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&Rm(e)}};function Rm(r){return new at(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var GE=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new bb(n.getZr())).on("brush",U(this._onBrush,this)).mount()},e.prototype.render=function(t,n,i,a){this.model=t,this._updateController(t,n,i,a)},e.prototype.updateTransform=function(t,n,i,a){Qb(n),this._updateController(t,n,i,a)},e.prototype.updateVisual=function(t,n,i,a){this.updateTransform(t,n,i,a)},e.prototype.updateView=function(t,n,i,a){this._updateController(t,n,i,a)},e.prototype._updateController=function(t,n,i,a){(!a||a.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:$(i),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:$(i),$from:n})},e.type="brush",e}(kt),HE="#ddd",WE=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var i=this.option;!n&&Kb(i,t,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:HE},a.hasOwnProperty("liftZ")||(a.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=F(t,function(n){return km(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=km(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(ht);function km(r,e){return Q({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new mt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var UE=["rect","polygon","lineX","lineY","keep","clear"],YE=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,T(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,i){this.render(t,n,i)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),i={};return T(t.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},e.prototype.onclick=function(t,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:UE.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return n},e}(Ce);function KN(r){r.registerComponentView(GE),r.registerComponentModel(WE),r.registerPreprocessor(PE),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,NE),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Rt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Rt),Ci("brush",YE)}var ZE=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.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"}},e}(ht),XE=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,i){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=K(t.get("textBaseline"),t.get("textVerticalAlign")),f=new bt({style:de(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=t.get("subtext"),v=new bt({style:de(s,{text:c,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,v.silent=!d&&!g,p&&f.on("click",function(){gd(p,"_"+t.get("target"))}),d&&v.on("click",function(){gd(d,"_"+t.get("subtarget"))}),ot(f).eventData=ot(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Ge(m,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var w=_.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var x=new dt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(x)}},e.type="title",e}(kt);function QN(r){r.registerComponentModel(ZE),r.registerComponentView(XE)}function Jb(r,e){if(!r)return!1;for(var t=B(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function fs(r){to(r,"label",["show"])}var hs=St(),ei=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i),this._mergeOption(t,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(J.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=hs(s)[o];if(!l||!l.data){hs(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&fs(l),T(l.data,function(f){f instanceof Array?(fs(f[0]),fs(f[1])):fs(f)}),u=this.createMarkerModelFromSeries(l,this,n),N(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),hs(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,i){var a=this.getData(),o=this.getRawValue(t),s=a.getName(t);return He("section",{header:this.name,blocks:[He("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,n){var i=ic.prototype.getDataParams.call(this,t,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},e.getMarkerModelFromSeries=function(t,n){return hs(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(ht);ue(ei,ic.prototype);var $E=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(ei);function dv(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function qE(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function vs(r,e,t,n,i,a){var o=[],s=Jn(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=Gc(e,l,r),f=e.indicesOfNearest(l,u)[0];o[i]=e.get(t,f),o[a]=e.get(l,f);var h=e.get(n,f),c=er(e.get(n,f));return c=Math.min(c,20),c>=0&&(o[a]=+o[a].toFixed(c)),[o,h]}var Hf={min:it(vs,"min"),max:it(vs,"max"),average:it(vs,"average"),median:it(vs,"median")};function gv(r,e){if(e){var t=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!qE(e)&&!B(e.coord)&&B(i)){var a=jb(e,t,n,r);if(e=$(e),e.type&&Hf[e.type]&&a.baseAxis&&a.valueAxis){var o=ut(i,a.baseAxis.dim),s=ut(i,a.valueAxis.dim),l=Hf[e.type](t,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!B(i))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)Hf[u[f]]&&(u[f]=Gc(t,t.mapDimension(i[f]),u[f]));return e}}function jb(r,e,t,n){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,i.valueAxis=t.getAxis(KE(n,i.valueDataDim)),i.baseAxis=t.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=t.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function KE(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function yv(r,e){return r&&r.containData&&e.coord&&!dv(e)?r.containData(e.coord):!0}function JN(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!dv(e)&&!dv(t)?r.containZone(e.coord,t.coord):!0}function tw(r,e){return r?function(t,n,i,a){var o=a<2?t.coord&&t.coord[a]:t.value;return Ei(o,e[a])}:function(t,n,i,a){return Ei(t.value,e[a])}}function Gc(r,e,t){if(t==="average"){var n=0,i=0;return r.each(e,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Wf=St(),ew=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=Y()},e.prototype.render=function(t,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){Wf(s).keep=!1}),n.eachSeries(function(s){var l=ei.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!Wf(s).keep&&a.group.remove(s.group)})},e.prototype.markKeep=function(t){Wf(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var i=this;T(t,function(a){var o=ei.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?a_(l):zv(l))})}})},e.type="marker",e}(kt);function Em(r,e,t){var n=e.coordinateSystem;r.each(function(i){var a=r.getItemModel(i),o,s=tt(a.get("x"),t.getWidth()),l=tt(a.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,i));else if(n){var u=r.get(n.dimensions[0],i),f=r.get(n.dimensions[1],i);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(i,o)})}var QE=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,i){n.eachSeries(function(a){var o=ei.getMarkerModelFromSeries(a,"markPoint");o&&(Em(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,i,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new bc),h=JE(o,t,n);n.setData(h),Em(n.getData(),t,a),h.each(function(c){var v=h.getItemModel(c),p=v.getShallow("symbol"),d=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(q(p)||q(d)||q(g)||q(y)){var _=n.getRawValue(c),S=n.getDataParams(c);q(p)&&(p=p(_,S)),q(d)&&(d=d(_,S)),q(g)&&(g=g(_,S)),q(y)&&(y=y(_,S))}var w=v.getModel("itemStyle").getItemStyle(),b=Ul(l,"color");w.fill||(w.fill=b),h.setItemVisual(c,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:w})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(c){c.traverse(function(v){ot(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e}(ew);function JE(r,e,t){var n;r?n=F(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return N(N({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Oi(n,t),a=F(t.get("data"),it(gv,e));r&&(a=Ct(a,it(yv,r)));var o=tw(!!r,n);return i.initData(a,null,o),i}function jN(r){r.registerComponentModel($E),r.registerComponentView(QE),r.registerPreprocessor(function(e){Jb(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var jE=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ei),cs=St(),tO=function(r,e,t,n){var i=r.getData(),a;if(B(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=jr(n.yAxis,n.xAxis);else{var u=jb(n,i,e,r);s=u.valueAxis;var f=oS(i,u.valueDataDim);l=Gc(i,f,o)}var h=s.dim==="x"?0:1,c=1-h,v=$(n),p={coord:[]};v.type=null,v.coord=[],v.coord[c]=-1/0,p.coord[c]=1/0;var d=t.get("precision");d>=0&&pt(l)&&(l=+l.toFixed(Math.min(d,20))),v.coord[h]=p.coord[h]=l,a=[v,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[gv(r,a[0]),gv(r,a[1]),N({},a[2])];return g[2].type=g[2].type||null,Q(g[2],g[0]),Q(g[2],g[1]),g};function pl(r){return!isNaN(r)&&!isFinite(r)}function Om(r,e,t,n){var i=1-r,a=n.dimensions[r];return pl(e[i])&&pl(t[i])&&e[r]===t[r]&&n.getAxis(a).containData(e[r])}function eO(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(Om(1,t,n,r)||Om(0,t,n,r)))return!0}return yv(r,e[0])&&yv(r,e[1])}function Uf(r,e,t,n,i){var a=n.coordinateSystem,o=r.getItemModel(e),s,l=tt(o.get("x"),i.getWidth()),u=tt(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=a.dimensions,h=r.get(f[0],e),c=r.get(f[1],e);s=a.dataToPoint([h,c])}if(Jl(a,"cartesian2d")){var v=a.getAxis("x"),p=a.getAxis("y"),f=a.dimensions;pl(r.get(f[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):pl(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var rO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,i){n.eachSeries(function(a){var o=ei.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=cs(o).from,u=cs(o).to;l.each(function(f){Uf(l,f,!0,a,i),Uf(u,f,!1,a,i)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,i,a){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new SR);this.group.add(f.group);var h=nO(o,t,n),c=h.from,v=h.to,p=h.line;cs(n).from=c,cs(n).to=v,n.setData(p);var d=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");B(d)||(d=[d,d]),B(g)||(g=[g,g]),B(y)||(y=[y,y]),B(m)||(m=[m,m]),h.from.each(function(S){_(c,S,!0),_(v,S,!1)}),p.each(function(S){var w=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[c.getItemLayout(S),v.getItemLayout(S)]),w.stroke==null&&(w.stroke=c.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(S,"symbolOffset"),fromSymbolRotate:c.getItemVisual(S,"symbolRotate"),fromSymbolSize:c.getItemVisual(S,"symbolSize"),fromSymbol:c.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:w})}),f.updateData(p),h.line.eachItemGraphicEl(function(S){ot(S).dataModel=n,S.traverse(function(w){ot(w).dataModel=n})});function _(S,w,b){var x=S.getItemModel(w);Uf(S,w,b,t,a);var M=x.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=Ul(l,"color")),S.setItemVisual(w,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:K(x.get("symbolOffset",!0),m[b?0:1]),symbolRotate:K(x.get("symbolRotate",!0),y[b?0:1]),symbolSize:K(x.get("symbolSize"),g[b?0:1]),symbol:K(x.get("symbol",!0),d[b?0:1]),style:M})}this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e}(ew);function nO(r,e,t){var n;r?n=F(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return N(N({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Oi(n,t),a=new Oi(n,t),o=new Oi([],t),s=F(t.get("data"),it(tO,e,r,t));r&&(s=Ct(s,it(eO,r)));var l=tw(!!r,n);return i.initData(F(s,function(u){return u[0]}),null,l),a.initData(F(s,function(u){return u[1]}),null,l),o.initData(F(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function tB(r){r.registerComponentModel(jE),r.registerComponentView(rO),r.registerPreprocessor(function(e){Jb(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var iO=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},mv=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),B(n)&&T(n,function(a,o){W(a)&&(a={type:a}),n[o]=Q(a,iO(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<t.length;i++){var a=t[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],i=[];t.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();t.isSeriesFiltered(l)||(i=i.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&kv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Y(),s=F(a,function(l){return(W(l)||pt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new mt(l,this,this.ecModel))},this);this._data=Ct(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;T(a,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;T(t,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;T(t,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&ut(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(ht),bi=it,_v=T,ps=st,rw=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new ps),this.group.add(this._selectorGroup=new ps),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,i,l,s,u);var f=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=t.get("padding"),v=Ge(f,h,c),p=this.layoutInner(t,o,v,a,l,u),d=Ge(nt({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=Wb(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this.getContentGroup(),f=Y(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),_v(n.getData(),function(v,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===`
`)){var g=new ps;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,d,p,v,n,t,_,w,S,h,a);b.on("click",bi(Nm,d,null,a,c)).on("mouseover",bi(Sv,y.name,null,a,c)).on("mouseout",bi(bv,y.name,null,a,c)),i.ssr&&b.eachChild(function(x){var M=ot(x);M.seriesIndex=y.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),f.set(d,!0)}else i.eachRawSeries(function(x){if(!f.get(d)&&x.legendVisualProvider){var M=x.legendVisualProvider;if(!M.containName(d))return;var C=M.indexOfName(d),A=M.getItemVisual(C,"style"),D=M.getItemVisual(C,"legendIcon"),I=ce(A.fill);I&&I[3]===0&&(I[3]=.2,A=N(N({},A),{fill:br(I,"rgba")}));var L=this._createItem(x,d,p,v,n,t,{},A,D,h,a);L.on("click",bi(Nm,null,d,a,c)).on("mouseover",bi(Sv,null,d,a,c)).on("mouseout",bi(bv,null,d,a,c)),i.ssr&&L.eachChild(function(P){var R=ot(P);R.seriesIndex=x.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(t,n,i,a,o){var s=this.getSelectorGroup();_v(t,function(u){var f=u.type,h=new bt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Lr(h,{normal:c,emphasis:v},{defaultText:u.title}),Zs(h)})},e.prototype._createItem=function(t,n,i,a,o,s,l,u,f,h,c){var v=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=aO(f,a,l,u,v,g,c),w=new ps,b=a.getModel("textStyle");if(q(t.getLegendIcon)&&(!_||_==="inherit"))w.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var x=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(oO({itemWidth:p,itemHeight:d,icon:f,iconRotate:x,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var M=s==="left"?p+5:-5,C=s,A=o.get("formatter"),D=n;W(A)&&A?D=A.replace("{name}",n??""):q(A)&&(D=A(n));var I=g?b.getTextColor():a.get("inactiveColor");w.add(new bt({style:de(b,{text:D,x:M,y:d/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new dt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&Zi({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),Zs(w),w.__legendDataIndex=i,w},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Wn(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Wn("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),d=t.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()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(kt);function aO(r,e,t,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),_v(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:al(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:t).opacity),s(u,n);var c=e.getModel("lineStyle"),v=c.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?n.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function oO(r){var e=r.icon||"roundRect",t=Kt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function Nm(r,e,t,n){bv(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r??e}),Sv(r,e,t,n)}function nw(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,i=e.length;n<i&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function Sv(r,e,t,n){nw(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function bv(r,e,t,n){nw(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}function sO(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function Ca(r,e,t){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),Bm(s,i),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){T(i,function(l,u){s[l?"select":"unSelect"](u)}),Bm(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function Bm(r,e){var t=e||{};return T(r.getData(),function(n){var i=n.get("name");if(!(i===`
`||i==="")){var a=r.isSelected(i);ge(t,i)?t[i]=t[i]&&a:t[i]=a}}),t}function lO(r){r.registerAction("legendToggleSelect","legendselectchanged",it(Ca,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",it(Ca,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",it(Ca,"inverseSelect")),r.registerAction("legendSelect","legendselected",it(Ca,"select")),r.registerAction("legendUnSelect","legendunselected",it(Ca,"unSelect"))}function iw(r){r.registerComponentModel(mv),r.registerComponentView(rw),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,sO),r.registerSubTypeDefaulter("legend",function(){return"plain"}),lO(r)}var uO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,i){var a=So(t);r.prototype.init.call(this,t,n,i),Fm(this,t,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),Fm(this,this.option,t)},e.type="legend.scroll",e.defaultOption=qi(mv.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}),e}(mv);function Fm(r,e,t){var n=r.getOrient(),i=[1,1];i[n.index]=0,Fi(e,t,{type:"box",ignoreSize:!!i})}var Vm=st,Yf=["width","height"],Zf=["x","y"],fO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Vm),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Vm)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=B(h)?h:[h,h];p("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new bt({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=Ol(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:U(u._pageGo,u,y,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=d,f.add(m)}},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Yf[u],h=Zf[u],c=Yf[1-u],v=Zf[1-u];o&&Wn("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=$(i);o&&(y[f]=i[f]-d[f]-p);var m=this._layoutContentAndController(t,a,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},e.prototype._layoutContentAndController=function(t,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Wn(t.get("orient"),f,t.get("itemGap"),a?i.width:null,a?null:i.height),Wn("horizontal",c,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=v[o]>i[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=K(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-p[o]:y[a]+=p[o]+_}m[1-a]+=v[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),c.setPosition(m);var w={x:0,y:0};if(w[o]=d?i[o]:v[o],w[s]=Math.max(v[s],p[s]),w[l]=Math.min(0,p[l]+m[1-a]),h.__rectSize=i[o],d){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-_,0),b[s]=w[s],h.setClipPath(new dt({shape:b})),h.__rectSize=b[o]}else c.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(t);return x.pageIndex!=null&&At(f,{x:x.contentPosition[0],y:x.contentPosition[1]},d?t:null),this._updatePageInfoView(t,x),w},e.prototype._pageGo=function(t,n,i){var a=this._getPageInfo(n)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var i=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",W(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=Yf[o],l=Zf[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],c=f.length,v=c?1:0,p={contentPosition:[i.x,i.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+a||_&&!w(_,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]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(b){if(b){var x=b.getBoundingRect(),M=x[l]+b[l];return{s:M,e:M+x[s],i:b.__legendDataIndex}}}function w(b,x){return b.e>=x&&b.s<=x+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(n=s)}),n??a},e.type="legend.scroll",e}(rw);function hO(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function vO(r){Qt(iw),r.registerComponentModel(uO),r.registerComponentView(fO),hO(r)}function eB(r){Qt(iw),Qt(vO)}var cO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=qi(po.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(po),Hc=St();function pO(r,e,t){Hc(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function dO(r,e){for(var t=Hc(r).coordSysRecordMap,n=t.keys(),i=0;i<n.length;i++){var a=n[i],o=t.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||aw(t,o))}}}function aw(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function gO(r,e){var t={model:e,containsPoint:it(mO,e),dispatchAction:it(yO,r),dataZoomInfoMap:null,controller:null},n=t.controller=new lb(r.getZr());return T(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];t.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function yO(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function mO(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function _O(r){var e,t="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[t+s]>n[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function SO(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=Hc(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Y());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=zb(a);T(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,gO(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Y());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){aw(i,a);return}var f=_O(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),wo(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var bO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,i){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),pO(i,t,{pan:U(Xf.pan,this),zoom:U(Xf.zoom,this),scrollMove:U(Xf.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){dO(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Oc),Xf={zoom:function(r,e,t,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=$f[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ji(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:zm(function(r,e,t,n,i,a){var o=$f[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:zm(function(r,e,t,n,i,a){var o=$f[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,t);return o.signal*(r[1]-r[0])*a.scrollDelta})};function zm(r){return function(e,t,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,i);if(ji(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var $f={grid:function(r,e,t,n,i){var a=t.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,e,t,n,i){var a=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,e,t,n,i){var a=t.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function wO(r){Nc(r),r.registerComponentModel(cO),r.registerComponentView(bO),SO(r)}var xO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=qi(po.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(po),Da=dt,Gm=7,TO=1,qf=30,MO=7,Aa="horizontal",Hm="vertical",CO=5,DO=["line","bar","candlestick","scatter"],AO={easing:"cubicOut",duration:100,delay:0},IO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},e.prototype.render=function(t,n,i,a){if(r.prototype.render.apply(this,arguments),wo(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){tl(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new st;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,i=t.get("brushSelect"),a=i?MO:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Aa?{right:s.width-o.x-o.width,top:s.height-qf-Gm-a,width:o.width,height:qf}:{right:Gm,top:o.y,width:qf,height:o.height},u=So(t.option);T(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=Ge(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Hm&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Aa&&!o?{scaleY:l?1:-1,scaleX:1}:i===Aa&&o?{scaleY:l?1:-1,scaleX:-1}:i===Hm&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=n.x-u.x,t.y=n.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=t.get("brushSelect");i.add(new Da({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Da({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:U(this._onClickPanel,this)}),s=this.api.getZr();a?(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)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,i=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var h=o.getDataExtent(l),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var v=[0,n[1]],p=[0,n[0]],d=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(C,A){if(_>0&&A%_){m+=y;return}var D=C==null||isNaN(C)||C==="",I=D?0:wt(C,h,v,!0);D&&!S&&A?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,I]),g.push([m,I]),m+=y,S=D}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var w=this.dataZoomModel;function b(C){var A=w.getModel(C?"selectedDataBackground":"dataBackground"),D=new st,I=new sr({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Ue({shape:{points:f},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(I),D.add(L),D}for(var x=0;x<3;x++){var M=b(x===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!i&&!(n!==!0&&ut(DO,u.get("type"))<0)){var f=a.getComponent(qr(o),s).axis,h=LO(o),c,v=u.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),i={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:c}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,i=n.handles=[null,null],a=n.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=n.filler=new Da({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Da({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:TO,fill:"rgba(0,0,0,0)"}})),T([0,1],function(_){var S=l.get("handleIcon");!rl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=Kt(S,-1,0,2,2,null,!0);w.attr({cursor:Wm(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var b=w.getBoundingRect(),x=l.get("handleSize");this._handleHeight=tt(x,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Zs(w);var M=l.get("handleColor");M!=null&&(w.style.fill=M),o.add(i[_]=w);var C=l.getModel("textStyle"),A=l.get("handleLabel")||{},D=A.show||!1;t.add(a[_]=new bt({silent:!0,invisible:!D,style:de(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=c;if(h){var p=tt(l.get("moveHandleSize"),s[1]),d=n.moveHandle=new dt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=Kt(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=n.moveZone=new dt({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:Wm(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[wt(t[0],[0,100],n,!0),wt(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ji(n,a,o,i.get("zoomLock")?"all":t,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=kn([wt(a[0],o,l,!0),wt(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,i=this._handleEnds,a=kn(i.slice()),o=this._size;T([0,1],function(v){var p=n.handles[v],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:i[v]+(v?-1:1),y:o[1]/2-d/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var h=l[f],c=h.getClipPath();c||(c=new dt,h.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var c=kn(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(p){var d=Hn(i.handles[p].parent,this.group),g=El(p===0?"right":"left",d),y=this._handleWidth/2+CO,m=Qr([c[p]+(p===0?-y:y),this._size[1]/2],d);a[p].setStyle({x:m[0],y:m[1],verticalAlign:o===Aa?"middle":g,align:o===Aa?g:"center",text:s[p]})}},e.prototype._formatLabel=function(t,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return q(a)?a(t,s):W(a)?a.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},i=n.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=t||this._dragging?o:i,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,n,i,a){this._dragging=!0,Mr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Qr([n,i],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,i=t.offsetY;this._brushStart=new j(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=kn([wt(i.x,o,s,!0),wt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Mr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Da({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),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]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?AO:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=zb(this.dataZoomModel).infoList;if(!t&&n.length){var i=n[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Oc);function LO(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Wm(r){return r==="vertical"?"ns-resize":"ew-resize"}function PO(r){r.registerComponentModel(xO),r.registerComponentView(IO),Nc(r)}function rB(r){Qt(wO),Qt(PO)}var ow={get:function(r,e,t){var n=$((RO[r]||{})[e]);return t&&B(n)?n[n.length-1]:n}},RO={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]}},Um=Ft.mapVisual,kO=Ft.eachVisual,EO=B,Ym=T,OO=kn,NO=wt,dl=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,n){var i=this.option;!n&&Kb(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=U(t,this),this.controllerVisuals=cv(this.option.controller,n,t),this.targetVisuals=cv(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Lt(t),n},e.prototype.eachTargetSeries=function(t,n){T(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&t.call(n,a)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(i){i===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],B(t)&&(t=t.slice(),u=!0);var f=n?t:u?[h(t[0]),h(t[1])]:h(t);if(W(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(q(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+f[1]:t[1]===s[1]?i[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))}},e.prototype.resetExtent=function(){var t=this.option,n=OO([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var i=t.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Q(a,i),Q(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(h){EO(n.color)&&!h.inRange&&(h.inRange={color:n.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,c,v){var p=h[c],d=h[v];p&&!d&&(d=h[v]={},Ym(p,function(g,y){if(Ft.isValidType(y)){var m=ow.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";Ym(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=c&&$(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&$(v)||(s?m[0]:[m[0],m[0]])),_.symbol=Um(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var w=-1/0;kO(S,function(b){b>w&&(w=b)}),_.symbolSize=Um(S,function(b){return NO(b,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.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"}},e}(ht),Zm=[20,140],BO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Zm[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Zm[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):B(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=kn((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=t)&&(n[1]>=i[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(t){var n=Xm(this,"outOfRange",this.getExtent()),i=Xm(this,"inRange",this.option.range.slice()),a=[];function o(v,p){a.push({value:v,color:t(v,p)})}for(var s=0,l=0,u=i.length,f=n.length;l<f&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var h=1;l<f;l++)(!i.length||i[i.length-1]<n[l])&&(h&&(a.length&&o(a[a.length-1].value,"outOfRange"),h=0),o(n[l],"outOfRange"));var c=a.length;return{stops:a,outerColors:[c?a[0].color:"transparent",c?a[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=qi(dl.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)"}}),e}(dl);function Xm(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,i=(t[1]-t[0])/n,a=t[0],o=[],s=0;s<=n&&a<t[1];s++)o.push(a),a+=i;return o.push(t[1]),o}var sw=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,i,a){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,i,a)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,i=Ki(n.get("padding")||0),a=t.getBoundingRect();t.add(new dt({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="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[a||o.getValueState(t)],c=Ft.prepareVisualTypes(h);return T(c,function(v){var p=h[v];i.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",p=h.__alphaForOpacity),Ft.dependsOn(v,n)&&p&&p.applyVisual(t,u,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,i=this.api;Y_(t,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,n,i,a){},e.type="visualMap",e}(kt),$m=[["left","right","width"],["top","bottom","height"]];function lw(r,e,t){var n=r.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=$m[o],l=[0,null,10],u={},f=0;f<3;f++)u[$m[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:n[s[f]];var h=[["x","width",3],["y","height",0]][o],c=Ge(u,a,n.padding);return s[(c.margin[h[2]]||0)+c[h[0]]+c[h[1]]*.5<a[h[1]]*.5?0:1]}function Ps(r,e){return T(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Je=wt,FO=T,qm=Math.min,Kf=Math.max,VO=12,zO=6,GO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=U(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=U(this._hideIndicator,this)},e.prototype.doRender=function(t,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var i=t.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),h=this._applyTransform(i===0?"bottom":"top",u),c=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new bt({style:de(v,{x:f[0],y:f[1],verticalAlign:c==="horizontal"?"middle":h,align:c==="horizontal"?h:"center",text:a})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=lw(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),f=new st;u.add(f),f.add(i.outOfRange=Km()),f.add(i.inRange=Km(null,s?Jm(this._orient):null,U(this._dragHandle,this,"all",!1),U(this._dragHandle,this,"all",!0))),f.setClipPath(new dt({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var h=n.textStyleModel.getTextRect("国"),c=Kf(h.width,h.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,c,o),this._createHandle(n,u,1,a,c,o)),this._createIndicator(n,u,a,c,o),t.add(u)},e.prototype._createHandle=function(t,n,i,a,o,s){var l=U(this._dragHandle,this,i,!1),u=U(this._dragHandle,this,i,!0),f=ar(t.get("handleSize"),a[0]),h=Kt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=Jm(this._orient);h.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Mr(y.event)}}),h.x=a[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Hv(h,!0),n.add(h);var v=this.visualMapModel.textStyleModel,p=new bt({cursor:c,draggable:!0,drift:l,onmousemove:function(y){Mr(y.event)},ondragend:u,style:de(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[i]=h,g.handleLabelPoints[i]=d,g.handleLabels[i]=p},e.prototype._createIndicator=function(t,n,i,a,o){var s=ar(t.get("indicatorSize"),i[0]),l=Kt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof We){var f=l.style;l.useStyle(N({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var h=this.visualMapModel.textStyleModel,c=new bt({silent:!0,invisible:!0,style:de(h,{x:0,y:0,text:""})});this.group.add(c);var v=[(o==="horizontal"?a/2:zO)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=c,p.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():Qm(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),i=t.getExtent(),a=[0,t.itemSize[1]];this._handleEnds=[Je(n[0],i,a,!0),Je(n[1],i,a,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];ji(n,a,o,t,0);var s=i.getExtent();this._dataInterval=[Je(a[0],o,s,!0),Je(a[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new kl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var i=100,a=[],o=(t[1]-t[0])/i;a.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=t[0]+o*s;if(l>t[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(t,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,i=this.visualMapModel.get("inverse");return new st(n==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),f=this._applyTransform("left",i.mainGroup);FO([0,1],function(h){var c=o[h];c.setStyle("fill",n.handlesColor[h]),c.y=t[h];var v=Je(t[h],[0,l[1]],u,!0),p=this.getControllerVisual(v,"symbolSize");c.scaleX=c.scaleY=p/l[0],c.x=l[0]-p/2;var d=Qr(i.handleLabelPoints[h],Hn(c,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[h].setStyle({x:d[0],y:d[1],text:a.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,i,a){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(t,"color",c),p=this.getControllerVisual(t,"symbolSize"),d=Je(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=Qr(f.indicatorLabelPoint,Hn(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),w=this._orient,b=w==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var x={x:g,y:d,style:{fill:v}},M={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(x,C),_.animateTo(M,C)}else h.attr(x),_.attr(M);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var D=0;D<A.length;D++)this.api.enterBlur(A[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,a=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);a[1]=qm(Kf(0,a[1]),i[1]),t._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();t=qm(Kf(o[0],t),o[1]);var l=HO(i,s,o),u=[t-l,t+l],f=Je(t,o,s,!0),h=[Je(u[0],o,s,!0),Je(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),n&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var c=this._hoverLinkDataIndices,v=[];(n||Qm(i))&&(v=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var p=vT(c,v);this._dispatchHighDown("downplay",Ps(p[0],i)),this._dispatchHighDown("highlight",Ps(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Nn(t.target,function(l){var u=ot(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ps(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,i,a){var o=Hn(n,a?null:this.group);return B(t)?Qr(t,o,i):El(t,o,i)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(sw);function Km(r,e,t,n){return new sr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(i){Mr(i.event)},ondragend:n})}function HO(r,e,t){var n=VO/2,i=r.get("hoverLinkDataSize");return i&&(n=Je(i,e,t,!0)/2),n}function Qm(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function Jm(r){return r==="vertical"?"ns-resize":"ew-resize"}var WO={type:"selectDataRange",event:"dataRangeSelected",update:"update"},UO=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},YO=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var i=r.pipelineContext;!n.isTargetSeries(r)||i&&i.large||t.push(EE(n.stateList,n.targetVisuals,U(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var a=i.getVisualMeta(U(ZO,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(t);o>=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function ZO(r,e,t,n){for(var i=e.targetVisuals[n],a=Ft.prepareVisualTypes(i),o={color:Ul(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],f=i[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,h,c)}return o.color;function h(v){return o[v]}function c(v,p){o[v]=p}}var jm=T;function XO(r){var e=r&&r.visualMap;B(e)||(e=e?[e]:[]),jm(e,function(t){if(t){wi(t,"splitList")&&!wi(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&B(n)&&jm(n,function(i){X(i)&&(wi(i,"start")&&!wi(i,"min")&&(i.min=i.start),wi(i,"end")&&!wi(i,"max")&&(i.max=i.end))})}})}function wi(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var t0=!1;function uw(r){t0||(t0=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(WO,UO),T(YO,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(XO))}function $O(r){r.registerComponentModel(BO),r.registerComponentView(GO),uw(r)}var qO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],KO[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=$(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=F(this._pieceList,function(l){return l=$(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},i=Ft.listVisualTypes(),a=this.isCategory();T(t.pieces,function(s){T(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),T(n,function(s,l){var u=!1;T(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&T(this.stateList,function(f){(t[f]||(t[f]={}))[l]=ow.get(l,f==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var i=this.option,a=this._pieceList,o=(n?i:t).selected||{};if(i.selected=o,T(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;T(a,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=$(t)},e.prototype.getValueState=function(t){var n=Ft.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ft.findPieceIndex(l,i);f===t&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var i=t.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(f,h){var c=a.getRepresentValue({interval:f});h||(h=a.getValueState(c));var v=t(c,h);f[0]===-1/0?i[0]=v:f[1]===1/0?i[1]=v:n.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 T(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:n,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=qi(dl.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}),e}(dl),KO={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),Tp(r),T(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;T(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),e0(e,r)},pieces:function(r){var e=this.option;T(e.pieces,function(t,n){X(t)||(t={value:t});var i={text:"",index:n};if(t.label!=null&&(i.text=t.label),t.hasOwnProperty("value")){var a=i.value=t.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.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]=t[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]&&(i.value=o[0])}i.visual=Ft.retrieveVisuals(t),r.push(i)},this),e0(e,r),Tp(r),T(r,function(t){var n=t.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function e0(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var QO=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),h=f.endsText,c=jr(n.get("showLabel",!0),!h),v=!n.get("selectedMode");h&&this._renderEndsText(t,h[0],u,c,l),T(f.viewPieceList,function(p){var d=p.piece,g=new st;g.onclick=U(this._onItemClick,this,d),this._enableHoverLink(g,p.indexInModelPieceList);var y=n.getRepresentValue(d);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],v),c){var m=this.visualMapModel.getValueState(y);g.add(new bt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:v}))}t.add(g)},this),h&&this._renderEndsText(t,h[1],u,c,l),Wn(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var i=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Ps(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return lw(t,this.api,t.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,n,i,a,o){if(n){var s=new st,l=this.visualMapModel.textStyleModel;s.add(new bt({style:de(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=F(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(t,n,i,a){var o=Kt(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=$(i.selected),s=n.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,T(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})}},e.type="visualMap.piecewise",e}(sw);function JO(r){r.registerComponentModel(qO),r.registerComponentView(QO),uw(r)}function nB(r){Qt($O),Qt(JO)}function r0(r,e,t){var n=Hi.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*t,n.height=a*t,n}var Qf=function(r){k(e,r);function e(t,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Hs,typeof t=="string"?o=r0(t,n,i):X(t)&&(o=t,t=o.id),a.id=t,a.dom=o;var s=o.style;return s&&(f0(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=r0("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new at(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new at(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,w=1/0,b=0,x=0;x<o.length;++x){var M=o[x];if(M.intersect(m)){var C=new at(0,0,0,0);C.copy(M),C.union(m),o[x]=C,S=!0;break}else if(l){u.copy(m),u.union(M);var A=m.width*m.height,D=M.width*M.height,I=u.width*u.height,L=I-A-D;L<w&&(w=L,b=x)}}if(l&&(o[b].union(m),S=!0),!S){var _=new at(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=t[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),p=c.__isRendered&&(c.__dirty&ve||!v)?c.getPrevPaintRect():null;p&&f(p);var d=v&&(c.__dirty&ve||!c.__isRendered)?c.getPaintRect():null;d&&f(d)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var p=c.getPrevPaintRect();p&&f(p)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(g=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),a.width=t*i,a.height=n*i,s&&(s.width=t*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var v=this.domBack;function p(d,g,y,m){if(o.clearRect(d,g,y,m),n&&n!=="transparent"){var _=void 0;if(yl(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||Bh(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else Iw(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Fh(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(d,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,d,g,y,m),o.restore())}!i||u?p(0,0,s,l):i.length&&T(i,function(d){p(d.x*h,d.y*h,d.width*h,d.height*h)})},e}(Ie),n0=1e5,Dn=314159,ds=.01,jO=.001;function tN(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function eN(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var rN=function(){function r(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=N({},n||{}),this.dpr=n.devicePixelRatio||Hs,this._singleCanvas=a,this.root=e;var o=e.style;o&&(f0(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=e,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new Qf(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Dn]=v,v.zlevel=Dn,s.push(Dn),this._domRoot=e}else{this._width=$o(e,0,n),this._height=$o(e,1,n);var u=this._domRoot=eN(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),!!t){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(n0)),a||(a=n.ctx,a.save()),Fn(a,s,i,o===t-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(n0)},r.prototype.paintOne=function(e,t){E1(e,t)},r.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,t,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Os(function(){l._paintList(e,t,n,i)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Dn).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)})},r.prototype._doPaintList=function(e,t,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,h=!1,c=function(d){var g=a[d],y=g.ctx,m=o&&g.createRepaintRects(e,t,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,w=S&&Date.now(),b=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,m);else if(_===g.__startIndex){var x=e[_];(!x.incremental||!x.notClear||n)&&g.clear(!1,b,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var M,C=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(M=_;M<g.__endIndex;M++){var R=e[M];if(R.__inHover&&(h=!0),i._doPaintEl(R,g,o,L,P,M===g.__endIndex-1),S){var E=Date.now()-w;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)M=g.__endIndex;else for(var A=v.dpr,D=0;D<m.length;++D){var I=m[D];y.save(),y.beginPath(),y.rect(I.x*A,I.y*A,I.width*A,I.height*A),y.clip(),C(I),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=M,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,p=0;p<a.length;p++)c(p);return J.wxa&&T(this._layers,function(d){d&&d.ctx&&d.ctx.draw&&d.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(e,t,n,i,a,o){var s=t.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(Fn(s,e,a,o),e.setPrevPaintRect(l))}else Fn(s,e,a,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Dn);var n=this._layers[e];return n||(n=new Qf("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Q(n,this._layerConfig[e],!0):this._layerConfig[e-ds]&&Q(n,this._layerConfig[e-ds],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},r.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&tN(t)){if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(t,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(t,o,a)}},r.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(t,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function t(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+jO,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?ds:0),this._needsManuallyCompositing),f.__builtin__||Mv("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),a=f),i.__dirty&ve&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,T(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?Q(n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+ds){var o=this._layers[a];Q(o,n[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(ut(n,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),t!=null&&(i.height=t),e=$o(a,0,i),t=$o(a,1,i),n.style.display="",this._width!==e||t!==this._height){n.style.width=e+"px",n.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(Dn).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Dn].dom;var t=new Qf("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,a=t.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Fn(n,f,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function iB(r){r.registerPainter("canvas",rN)}export{DP as $,tt as A,at as B,HI as C,Ct as D,FN as E,WI as F,UI as G,T as H,zI as I,GI as J,BN as K,Za as L,_o as M,K as N,Bt as O,ut as P,At as Q,DN as R,Ge as S,Rn as T,st as U,lb as V,TN as W,gb as X,fb as Y,CP as Z,k as _,VN as a,aN as a$,Yt as a0,Sc as a1,kw as a2,Cl as a3,Sh as a4,$s as a5,Pl as a6,nt as a7,Kn as a8,Vv as a9,U as aA,Es as aB,_r as aC,c0 as aD,gd as aE,xh as aF,Hv as aG,AM as aH,ro as aI,Lr as aJ,lr as aK,s0 as aL,Xn as aM,dt as aN,gu as aO,gx as aP,Ft as aQ,jr as aR,bN as aS,pt as aT,Fa as aU,Ow as aV,Dv as aW,iu as aX,Ui as aY,h0 as aZ,Nw as a_,ct as aa,it as ab,Ae as ac,N as ad,F as ae,B as af,ze as ag,aS as ah,Oi as ai,W as aj,mt as ak,He as al,qt as am,uR as an,Rt as ao,PN as ap,Y as aq,Lt as ar,Y_ as as,IN as at,sr as au,bt as av,e_ as aw,de as ax,Dr as ay,cc as az,GN as b,$t as b$,iN as b0,Ew as b1,wt as b2,Vs as b3,Ht as b4,Ii as b5,bc as b6,SR as b7,ue as b8,$l as b9,kt as bA,ht as bB,RS as bC,vI as bD,Mg as bE,Sl as bF,Qr as bG,$ as bH,ji as bI,Ut as bJ,kn as bK,bS as bL,bb as bM,xr as bN,T_ as bO,FR as bP,VR as bQ,BR as bR,Jg as bS,$n as bT,qn as bU,kl as bV,xN as bW,zR as bX,D_ as bY,wN as bZ,le as b_,tc as ba,JS as bb,to as bc,YD as bd,q0 as be,zg as bf,nn as bg,or as bh,Dt as bi,pM as bj,We as bk,Kt as bl,pC as bm,jl as bn,qs as bo,Ue as bp,Bi as bq,j as br,Q_ as bs,KS as bt,tn as bu,Rs as bv,X as bw,Q as bx,wo as by,tl as bz,HN as c,DC as c$,Yl as c0,Zl as c1,wc as c2,oN as c3,_R as c4,eh as c5,ap as c6,ui as c7,UT as c8,bo as c9,sd as cA,NN as cB,I_ as cC,Uv as cD,sC as cE,nk as cF,ik as cG,rk as cH,ZN as cI,sk as cJ,bl as cK,SS as cL,ib as cM,Dh as cN,Ll as cO,Jn as cP,Vb as cQ,lP as cR,sP as cS,io as cT,ok as cU,Nb as cV,lk as cW,So as cX,LN as cY,Fi as cZ,AN as c_,HS as ca,Mw as cb,Hi as cc,Xi as cd,Jl as ce,_c as cf,ri as cg,tT as ch,qi as ci,Xh as cj,$2 as ck,q2 as cl,JI as cm,Hh as cn,al as co,Na as cp,se as cq,Us as cr,Ys as cs,sp as ct,ge as cu,nC as cv,ja as cw,ms as cx,ae as cy,Tr as cz,WN as d,_N as d$,Cr as d0,rT as d1,OC as d2,Zi as d3,EC as d4,yo as d5,ic as d6,Zs as d7,ar as d8,rn as d9,T0 as dA,Nx as dB,mN as dC,yN as dD,en as dE,up as dF,no as dG,gN as dH,Yn as dI,hN as dJ,Pv as dK,fN as dL,vM as dM,hM as dN,dw as dO,_x as dP,Sx as dQ,hp as dR,yx as dS,Y0 as dT,uN as dU,dN as dV,pN as dW,SN as dX,vN as dY,cN as dZ,$o as d_,dS as da,pc as db,Ol as dc,ei as dd,Ul as de,ew as df,gv as dg,JN as dh,yv as di,Ei as dj,Jb as dk,RN as dl,kN as dm,nN as dn,bD as dp,Ze as dq,OD as dr,EN as ds,wr as dt,lN as du,sN as dv,P1 as dw,Q0 as dx,ee as dy,y_ as dz,UN as e,Fs as e0,MN as e1,au as e2,XD as e3,CN as e4,wO as e5,PO as e6,$O as e7,JO as e8,YN as f,QN as g,qN as h,zN as i,XN as j,eB as k,rB as l,jN as m,tB as n,$N as o,KN as p,vR as q,nB as r,iB as s,ON as t,Qt as u,St as v,Xr as w,q as x,_t as y,ot as z};
