1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- /*! *****************************************************************************
- 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 _h=function(n,e){return _h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},_h(n,e)};function z(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");_h(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var r2=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),a2=function(){function n(){this.browser=new r2,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 n}(),Oi=new a2;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Oi.wxa=!0,Oi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Oi.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Oi.node=!0,Oi.svgSupported=!0):s2(navigator.userAgent,Oi);function s2(n,e){var t=e.browser,i=n.match(/Firefox\/([\d.]+)/),o=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),r=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);i&&(t.firefox=!0,t.version=i[1]),o&&(t.ie=!0,t.version=o[1]),r&&(t.edge=!0,t.version=r[1],t.newEdge=+r[1].split(".")[0]>18),a&&(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}const ct=Oi;var bh=12,qg="sans-serif",oi=bh+"px "+qg,l2=20,u2=100,h2="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function c2(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t<n.length;t++){var i=String.fromCharCode(t+32),o=(n.charCodeAt(t)-l2)/u2;e[i]=o}return e}var p2=c2(h2),Fn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var n,e;return function(t,i){if(!n){var o=Fn.createCanvas();n=o&&o.getContext("2d")}if(n)return e!==i&&(e=n.font=i||oi),n.measureText(t);t=t||"",i=i||oi;var r=/(\d+)px/.exec(i),a=r&&+r[1]||bh,s=0;if(i.indexOf("mono")>=0)s=a*t.length;else for(var l=0;l<t.length;l++){var u=p2[t[l]];s+=u==null?a:u*a}return{width:s}}}(),loadImage:function(n,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=n,i}};function Kg(n){for(var e in Fn)n[e]&&(Fn[e]=n[e])}var $g=Ae(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,e){return n["[object "+e+"]"]=!0,n},{}),Qg=Ae(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,e){return n["[object "+e+"Array]"]=!0,n},{}),Fo=Object.prototype.toString,Ds=Array.prototype,d2=Ds.forEach,f2=Ds.filter,wh=Ds.slice,g2=Ds.map,Jg=function(){}.constructor,ks=Jg?Jg.prototype:null,Sh="__proto__",v2=2311;function Mh(){return v2++}function Ps(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e]}function q(n){if(n==null||typeof n!="object")return n;var e=n,t=Fo.call(n);if(t==="[object Array]"){if(!Go(n)){e=[];for(var i=0,o=n.length;i<o;i++)e[i]=q(n[i])}}else if(Qg[t]){if(!Go(n)){var r=n.constructor;if(r.from)e=r.from(n);else{e=new r(n.length);for(var i=0,o=n.length;i<o;i++)e[i]=n[i]}}}else if(!$g[t]&&!Go(n)&&!Ri(n)){e={};for(var a in n)n.hasOwnProperty(a)&&a!==Sh&&(e[a]=q(n[a]))}return e}function et(n,e,t){if(!j(e)||!j(n))return t?q(e):n;for(var i in e)if(e.hasOwnProperty(i)&&i!==Sh){var o=n[i],r=e[i];j(r)&&j(o)&&!V(r)&&!V(o)&&!Ri(r)&&!Ri(o)&&!Ih(r)&&!Ih(o)&&!Go(r)&&!Go(o)?et(o,r,t):(t||!(i in n))&&(n[i]=q(e[i]))}return n}function Th(n,e){for(var t=n[0],i=1,o=n.length;i<o;i++)t=et(t,n[i],e);return t}function N(n,e){if(Object.assign)Object.assign(n,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Sh&&(n[t]=e[t]);return n}function K(n,e,t){for(var i=at(e),o=0;o<i.length;o++){var r=i[o];(t?e[r]!=null:n[r]==null)&&(n[r]=e[r])}return n}var y2=Fn.createCanvas;function lt(n,e){if(n){if(n.indexOf)return n.indexOf(e);for(var t=0,i=n.length;t<i;t++)if(n[t]===e)return t}return-1}function Ch(n,e){var t=n.prototype;function i(){}i.prototype=e.prototype,n.prototype=new i;for(var o in t)t.hasOwnProperty(o)&&(n.prototype[o]=t[o]);n.prototype.constructor=n,n.superClass=e}function Ut(n,e,t){if(n="prototype"in n?n.prototype:n,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var r=i[o];r!=="constructor"&&(t?e[r]!=null:n[r]==null)&&(n[r]=e[r])}else K(n,e,t)}function Xt(n){return!n||typeof n=="string"?!1:typeof n.length=="number"}function M(n,e,t){if(n&&e)if(n.forEach&&n.forEach===d2)n.forEach(e,t);else if(n.length===+n.length)for(var i=0,o=n.length;i<o;i++)e.call(t,n[i],i,n);else for(var r in n)n.hasOwnProperty(r)&&e.call(t,n[r],r,n)}function F(n,e,t){if(!n)return[];if(!e)return Os(n);if(n.map&&n.map===g2)return n.map(e,t);for(var i=[],o=0,r=n.length;o<r;o++)i.push(e.call(t,n[o],o,n));return i}function Ae(n,e,t,i){if(n&&e){for(var o=0,r=n.length;o<r;o++)t=e.call(i,t,n[o],o,n);return t}}function At(n,e,t){if(!n)return[];if(!e)return Os(n);if(n.filter&&n.filter===f2)return n.filter(e,t);for(var i=[],o=0,r=n.length;o<r;o++)e.call(t,n[o],o,n)&&i.push(n[o]);return i}function tv(n,e,t){if(n&&e){for(var i=0,o=n.length;i<o;i++)if(e.call(t,n[i],i,n))return n[i]}}function at(n){if(!n)return[];if(Object.keys)return Object.keys(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(t);return e}function m2(n,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return n.apply(e,t.concat(wh.call(arguments)))}}var Y=ks&&$(ks.bind)?ks.call.bind(ks.bind):m2;function pt(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return n.apply(this,e.concat(wh.call(arguments)))}}function V(n){return Array.isArray?Array.isArray(n):Fo.call(n)==="[object Array]"}function $(n){return typeof n=="function"}function G(n){return typeof n=="string"}function Ls(n){return Fo.call(n)==="[object String]"}function vt(n){return typeof n=="number"}function j(n){var e=typeof n;return e==="function"||!!n&&e==="object"}function Ih(n){return!!$g[Fo.call(n)]}function se(n){return!!Qg[Fo.call(n)]}function Ri(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function Vr(n){return n.colorStops!=null}function ev(n){return n.image!=null}function nv(n){return Fo.call(n)==="[object RegExp]"}function Wo(n){return n!==n}function fn(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=0,i=n.length;t<i;t++)if(n[t]!=null)return n[t]}function J(n,e){return n!=null?n:e}function Ni(n,e,t){var i;return(i=n!=null?n:e)!=null?i:t}function Os(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return wh.apply(n,e)}function Rs(n){if(typeof n=="number")return[n,n,n,n];var e=n.length;return e===2?[n[0],n[1],n[0],n[1]]:e===3?[n[0],n[1],n[2],n[1]]:n}function Jt(n,e){if(!n)throw new Error(e)}function De(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var iv="__ec_primitive__";function Fr(n){n[iv]=!0}function Go(n){return n[iv]}var x2=function(){function n(){this.data={}}return n.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},n.prototype.has=function(e){return this.data.hasOwnProperty(e)},n.prototype.get=function(e){return this.data[e]},n.prototype.set=function(e,t){return this.data[e]=t,this},n.prototype.keys=function(){return at(this.data)},n.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},n}(),ov=typeof Map=="function";function _2(){return ov?new Map:new x2}var rv=function(){function n(e){var t=V(e);this.data=_2();var i=this;e instanceof n?e.each(o):e&&M(e,o);function o(r,a){t?i.set(r,a):i.set(a,r)}}return n.prototype.hasKey=function(e){return this.data.has(e)},n.prototype.get=function(e){return this.data.get(e)},n.prototype.set=function(e,t){return this.data.set(e,t),t},n.prototype.each=function(e,t){this.data.forEach(function(i,o){e.call(t,i,o)})},n.prototype.keys=function(){var e=this.data.keys();return ov?Array.from(e):e},n.prototype.removeKey=function(e){this.data.delete(e)},n}();function X(n){return new rv(n)}function Ah(n,e){for(var t=new n.constructor(n.length+e.length),i=0;i<n.length;i++)t[i]=n[i];for(var o=n.length,i=0;i<e.length;i++)t[i+o]=e[i];return t}function Wr(n,e){var t;if(Object.create)t=Object.create(n);else{var i=function(){};i.prototype=n,t=new i}return e&&N(t,e),t}function av(n){var e=n.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function H(n,e){return n.hasOwnProperty(e)}function Et(){}var Gr=180/Math.PI;const b2=Object.freeze(Object.defineProperty({__proto__:null,HashMap:rv,RADIAN_TO_DEGREE:Gr,assert:Jt,bind:Y,clone:q,concatArray:Ah,createCanvas:y2,createHashMap:X,createObject:Wr,curry:pt,defaults:K,disableUserSelect:av,each:M,eqNaN:Wo,extend:N,filter:At,find:tv,guid:Mh,hasOwn:H,indexOf:lt,inherits:Ch,isArray:V,isArrayLike:Xt,isBuiltInObject:Ih,isDom:Ri,isFunction:$,isGradientObject:Vr,isImagePatternObject:ev,isNumber:vt,isObject:j,isPrimitive:Go,isRegExp:nv,isString:G,isStringSafe:Ls,isTypedArray:se,keys:at,logError:Ps,map:F,merge:et,mergeAll:Th,mixin:Ut,noop:Et,normalizeCssArray:Rs,reduce:Ae,retrieve:fn,retrieve2:J,retrieve3:Ni,setAsPrimitive:Fr,slice:Os,trim:De},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */var Dh=function(n,e){return Dh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},Dh(n,e)};function Mt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Dh(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function ri(n,e){return n==null&&(n=0),e==null&&(e=0),[n,e]}function kh(n,e){return n[0]=e[0],n[1]=e[1],n}function Ph(n){return[n[0],n[1]]}function sv(n,e,t){return n[0]=e,n[1]=t,n}function Lh(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n}function lv(n,e,t,i){return n[0]=e[0]+t[0]*i,n[1]=e[1]+t[1]*i,n}function Oh(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}function Ns(n){return Math.sqrt(Rh(n))}var w2=Ns;function Rh(n){return n[0]*n[0]+n[1]*n[1]}var S2=Rh;function M2(n,e,t){return n[0]=e[0]*t[0],n[1]=e[1]*t[1],n}function T2(n,e,t){return n[0]=e[0]/t[0],n[1]=e[1]/t[1],n}function C2(n,e){return n[0]*e[0]+n[1]*e[1]}function Hr(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n}function Nh(n,e){var t=Ns(e);return t===0?(n[0]=0,n[1]=0):(n[0]=e[0]/t,n[1]=e[1]/t),n}function zs(n,e){return Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1]))}var Yr=zs;function uv(n,e){return(n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])}var ai=uv;function I2(n,e){return n[0]=-e[0],n[1]=-e[1],n}function Ur(n,e,t,i){return n[0]=e[0]+i*(t[0]-e[0]),n[1]=e[1]+i*(t[1]-e[1]),n}function Ht(n,e,t){var i=e[0],o=e[1];return n[0]=t[0]*i+t[2]*o+t[4],n[1]=t[1]*i+t[3]*o+t[5],n}function Wn(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n}function Gn(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n}const A2=Object.freeze(Object.defineProperty({__proto__:null,add:Lh,applyTransform:Ht,clone:Ph,copy:kh,create:ri,dist:Yr,distSquare:ai,distance:zs,distanceSquare:uv,div:T2,dot:C2,len:Ns,lenSquare:Rh,length:w2,lengthSquare:S2,lerp:Ur,max:Gn,min:Wn,mul:M2,negate:I2,normalize:Nh,scale:Hr,scaleAndAdd:lv,set:sv,sub:Oh},Symbol.toStringTag,{value:"Module"}));var Ho=function(){function n(e,t){this.target=e,this.topTarget=t&&t.topTarget}return n}(),D2=function(){function n(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return n.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 Ho(t,e),"dragstart",e.event))},n.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,o=e.offsetY,r=i-this._x,a=o-this._y;this._x=i,this._y=o,t.drift(r,a,e),this.handler.dispatchToElement(new Ho(t,e),"drag",e.event);var s=this.handler.findHover(i,o,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ho(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ho(s,e),"dragenter",e.event))}},n.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ho(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ho(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},n}();const k2=D2;var P2=function(){function n(e){e&&(this._$eventProcessor=e)}return n.prototype.on=function(e,t,i,o){this._$handlers||(this._$handlers={});var r=this._$handlers;if(typeof t=="function"&&(o=i,i=t,t=null),!i||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),r[e]||(r[e]=[]);for(var s=0;s<r[e].length;s++)if(r[e][s].h===i)return this;var l={h:i,query:t,ctx:o||this,callAtLast:i.zrEventfulCallAtLast},u=r[e].length-1,h=r[e][u];return h&&h.callAtLast?r[e].splice(u,0,l):r[e].push(l),this},n.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},n.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var o=[],r=0,a=i[e].length;r<a;r++)i[e][r].h!==t&&o.push(i[e][r]);i[e]=o}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},n.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var o=this._$handlers[e],r=this._$eventProcessor;if(o)for(var a=t.length,s=o.length,l=0;l<s;l++){var u=o[l];if(!(r&&r.filter&&u.query!=null&&!r.filter(e,u.query)))switch(a){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 r&&r.afterTrigger&&r.afterTrigger(e),this},n.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var o=this._$handlers[e],r=this._$eventProcessor;if(o)for(var a=t.length,s=t[a-1],l=o.length,u=0;u<l;u++){var h=o[u];if(!(r&&r.filter&&h.query!=null&&!r.filter(e,h.query)))switch(a){case 0:h.h.call(s);break;case 1:h.h.call(s,t[0]);break;case 2:h.h.call(s,t[0],t[1]);break;default:h.h.apply(s,t.slice(1,a-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},n}();const ke=P2;var L2=Math.log(2);function zh(n,e,t,i,o,r){var a=i+"-"+o,s=n.length;if(r.hasOwnProperty(a))return r[a];if(e===1){var l=Math.round(Math.log((1<<s)-1&~o)/L2);return n[t][l]}for(var u=i|1<<t,h=t+1;i&1<<h;)h++;for(var c=0,d=0,p=0;d<s;d++){var f=1<<d;f&o||(c+=(p%2?-1:1)*n[t][d]*zh(n,e-1,h,u,o|f,r),p++)}return r[a]=c,c}function hv(n,e){var t=[[n[0],n[1],1,0,0,0,-e[0]*n[0],-e[0]*n[1]],[0,0,0,n[0],n[1],1,-e[1]*n[0],-e[1]*n[1]],[n[2],n[3],1,0,0,0,-e[2]*n[2],-e[2]*n[3]],[0,0,0,n[2],n[3],1,-e[3]*n[2],-e[3]*n[3]],[n[4],n[5],1,0,0,0,-e[4]*n[4],-e[4]*n[5]],[0,0,0,n[4],n[5],1,-e[5]*n[4],-e[5]*n[5]],[n[6],n[7],1,0,0,0,-e[6]*n[6],-e[6]*n[7]],[0,0,0,n[6],n[7],1,-e[7]*n[6],-e[7]*n[7]]],i={},o=zh(t,8,0,0,0,i);if(o!==0){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)r[s]==null&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*zh(t,7,a===0?1:0,1<<a,1<<s,i)/o*e[a];return function(l,u,h){var c=u*r[6]+h*r[7]+1;l[0]=(u*r[0]+h*r[1]+r[2])/c,l[1]=(u*r[3]+h*r[4]+r[5])/c}}}var cv="___zrEVENTSAVED",Bh=[];function O2(n,e,t,i,o){return Eh(Bh,e,i,o,!0)&&Eh(n,t,Bh[0],Bh[1])}function Eh(n,e,t,i,o){if(e.getBoundingClientRect&&ct.domSupported&&!pv(e)){var r=e[cv]||(e[cv]={}),a=R2(e,r),s=N2(a,r,o);if(s)return s(n,t,i),!0}return!1}function R2(n,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),n.appendChild(a),t.push(a)}return t}function N2(n,e,t){for(var i=t?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=n[u].getBoundingClientRect(),c=2*u,d=h.left,p=h.top;a.push(d,p),l=l&&r&&d===r[c]&&p===r[c+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=t?hv(s,a):hv(a,s))}function pv(n){return n.nodeName.toUpperCase()==="CANVAS"}var z2=/([&<>"'])/g,B2={"&":"&","<":"<",">":">",'"':""","'":"'"};function le(n){return n==null?"":(n+"").replace(z2,function(e,t){return B2[t]})}var E2=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Vh=[],V2=ct.browser.firefox&&+ct.browser.version.split(".")[0]<39;function Fh(n,e,t,i){return t=t||{},i?dv(n,e,t):V2&&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):dv(n,e,t),t}function dv(n,e,t){if(ct.domSupported&&n.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(pv(n)){var r=n.getBoundingClientRect();t.zrX=i-r.left,t.zrY=o-r.top;return}else if(Eh(Vh,n,i,o)){t.zrX=Vh[0],t.zrY=Vh[1];return}}t.zrX=t.zrY=0}function Wh(n){return n||window.event}function Pe(n,e,t){if(e=Wh(e),e.zrX!=null)return e;var i=e.type,o=i&&i.indexOf("touch")>=0;if(o){var r=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];r&&Fh(n,r,e,t)}else{Fh(n,e,e,t);var a=F2(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&E2.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function F2(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,i=n.deltaY;if(t==null||i==null)return e;var o=Math.abs(i!==0?i:t),r=i>0?-1:i<0?1:t>0?-1:1;return 3*o*r}function Gh(n,e,t,i){n.addEventListener(e,t,i)}function W2(n,e,t,i){n.removeEventListener(e,t,i)}var Hn=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function fv(n){return n.which===2||n.which===3}var G2=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,i){var o=e.touches;if(o){for(var r={points:[],touches:[],target:t,event:e},a=0,s=o.length;a<s;a++){var l=o[a],u=Fh(i,l,{});r.points.push([u.zrX,u.zrY]),r.touches.push(l)}this._track.push(r)}},n.prototype._recognize=function(e){for(var t in Hh)if(Hh.hasOwnProperty(t)){var i=Hh[t](this._track,e);if(i)return i}},n}();function gv(n){var e=n[1][0]-n[0][0],t=n[1][1]-n[0][1];return Math.sqrt(e*e+t*t)}function H2(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}var Hh={pinch:function(n,e){var t=n.length;if(t){var i=(n[t-1]||{}).points,o=(n[t-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var r=gv(i)/gv(o);!isFinite(r)&&(r=1),e.pinchScale=r;var a=H2(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:n[0].target,event:e}}}}};function me(){return[1,0,0,1,0,0]}function Xr(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function Bs(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function gn(n,e,t){var i=e[0]*t[0]+e[2]*t[1],o=e[1]*t[0]+e[3]*t[1],r=e[0]*t[2]+e[2]*t[3],a=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 n[0]=i,n[1]=o,n[2]=r,n[3]=a,n[4]=s,n[5]=l,n}function vn(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function si(n,e,t,i){i===void 0&&(i=[0,0]);var o=e[0],r=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(t),c=Math.cos(t);return n[0]=o*c+s*h,n[1]=-o*h+s*c,n[2]=r*c+l*h,n[3]=-r*h+c*l,n[4]=c*(a-i[0])+h*(u-i[1])+i[0],n[5]=c*(u-i[1])-h*(a-i[0])+i[1],n}function Es(n,e,t){var i=t[0],o=t[1];return n[0]=e[0]*i,n[1]=e[1]*o,n[2]=e[2]*i,n[3]=e[3]*o,n[4]=e[4]*i,n[5]=e[5]*o,n}function zi(n,e){var t=e[0],i=e[2],o=e[4],r=e[1],a=e[3],s=e[5],l=t*a-r*i;return l?(l=1/l,n[0]=a*l,n[1]=-r*l,n[2]=-i*l,n[3]=t*l,n[4]=(i*s-a*o)*l,n[5]=(r*o-t*s)*l,n):null}function vv(n){var e=me();return Bs(e,n),e}const Y2=Object.freeze(Object.defineProperty({__proto__:null,clone:vv,copy:Bs,create:me,identity:Xr,invert:zi,mul:gn,rotate:si,scale:Es,translate:vn},Symbol.toStringTag,{value:"Module"}));var U2=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,i){e.x=t,e.y=i},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},n.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},n.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},n.scaleAndAdd=function(e,t,i,o){e.x=t.x+i.x*o,e.y=t.y+i.y*o},n.lerp=function(e,t,i,o){var r=1-o;e.x=r*t.x+o*i.x,e.y=r*t.y+o*i.y},n}();const nt=U2;var Vs=Math.min,Fs=Math.max,Bi=new nt,Ei=new nt,Vi=new nt,Fi=new nt,Zr=new nt,jr=new nt,X2=function(){function n(e,t,i,o){i<0&&(e=e+i,i=-i),o<0&&(t=t+o,o=-o),this.x=e,this.y=t,this.width=i,this.height=o}return n.prototype.union=function(e){var t=Vs(e.x,this.x),i=Vs(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Fs(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Fs(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,o=e.height/t.height,r=me();return vn(r,r,[-t.x,-t.y]),Es(r,r,[i,o]),vn(r,r,[e.x,e.y]),r},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var i=this,o=i.x,r=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,d=!(r<l||u<o||s<h||c<a);if(t){var p=1/0,f=0,g=Math.abs(r-l),v=Math.abs(u-o),y=Math.abs(s-h),m=Math.abs(c-a),x=Math.min(g,v),_=Math.min(y,m);r<l||u<o?x>f&&(f=x,g<v?nt.set(jr,-g,0):nt.set(jr,v,0)):x<p&&(p=x,g<v?nt.set(Zr,g,0):nt.set(Zr,-v,0)),s<h||c<a?_>f&&(f=_,y<m?nt.set(jr,0,-y):nt.set(jr,0,m)):x<p&&(p=x,y<m?nt.set(Zr,0,y):nt.set(Zr,0,-m))}return t&&nt.copy(t,d?Zr:jr),d},n.prototype.contain=function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,i){if(!i){e!==t&&n.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var o=i[0],r=i[3],a=i[4],s=i[5];e.x=t.x*o+a,e.y=t.y*r+s,e.width=t.width*o,e.height=t.height*r,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Bi.x=Vi.x=t.x,Bi.y=Fi.y=t.y,Ei.x=Fi.x=t.x+t.width,Ei.y=Vi.y=t.y+t.height,Bi.transform(i),Fi.transform(i),Ei.transform(i),Vi.transform(i),e.x=Vs(Bi.x,Ei.x,Vi.x,Fi.x),e.y=Vs(Bi.y,Ei.y,Vi.y,Fi.y);var l=Fs(Bi.x,Ei.x,Vi.x,Fi.x),u=Fs(Bi.y,Ei.y,Vi.y,Fi.y);e.width=l-e.x,e.height=u-e.y},n}();const ut=X2;var yv="silent";function Z2(n,e,t){return{type:n,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:j2}}function j2(){Hn(this.event)}var q2=function(n){Mt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ke),qr=function(){function n(e,t){this.x=e,this.y=t}return n}(),K2=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Yh=new ut(0,0,0,0),mv=function(n){Mt(e,n);function e(t,i,o,r,a){var s=n.call(this)||this;return s._hovered=new qr(0,0),s.storage=t,s.painter=i,s.painterRoot=r,s._pointerSize=a,o=o||new q2,s.proxy=null,s.setHandlerProxy(o),s._draggingMgr=new k2(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(K2,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,o=t.zrY,r=_v(this,i,o),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=r?new qr(i,o):this.findHover(i,o),u=l.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new qr(0,0)},e.prototype.dispatch=function(t,i){var o=this[t];o&&o.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,o){t=t||{};var r=t.target;if(!(r&&r.silent)){for(var a="on"+i,s=Z2(i,t,o);r&&(r[a]&&(s.cancelBubble=!!r[a].call(r,s)),r.trigger(i,s),r=r.__hostTarget?r.__hostTarget:r.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,o){var r=this.storage.getDisplayList(),a=new qr(t,i);if(xv(r,a,t,i,o),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,h=new ut(t-u,i-u,l,l),c=r.length-1;c>=0;c--){var d=r[c];d!==o&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Yh.copy(d.getBoundingRect()),d.transform&&Yh.applyTransform(d.transform),Yh.intersect(h)&&s.push(d))}if(s.length)for(var p=4,f=Math.PI/12,g=Math.PI*2,v=0;v<u;v+=p)for(var y=0;y<g;y+=f){var m=t+v*Math.cos(y),x=i+v*Math.sin(y);if(xv(s,a,m,x,o),a.target)return a}}return a},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new G2);var o=this._gestureMgr;i==="start"&&o.clear();var r=o.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&o.clear(),r){var a=r.type;t.gestureEvent=a;var s=new qr;s.target=r.target,this.dispatchToElement(s,a,r.event)}},e}(ke);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){mv.prototype[n]=function(e){var t=e.zrX,i=e.zrY,o=_v(this,t,i),r,a;if((n!=="mouseup"||!o)&&(r=this.findHover(t,i),a=r.target),n==="mousedown")this._downEl=a,this._downPoint=[e.zrX,e.zrY],this._upEl=a;else if(n==="mouseup")this._upEl=a;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||Yr(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,n,e)}});function $2(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var i=n,o=void 0,r=!1;i;){if(i.ignoreClip&&(r=!0),!r){var a=i.getClipPath();if(a&&!a.contain(e,t))return!1}i.silent&&(o=!0);var s=i.__hostTarget;i=s||i.parent}return o?yv:!0}return!1}function xv(n,e,t,i,o){for(var r=n.length-1;r>=0;r--){var a=n[r],s=void 0;if(a!==o&&!a.ignore&&(s=$2(a,t,i))&&(!e.topTarget&&(e.topTarget=a),s!==yv)){e.target=a;break}}}function _v(n,e,t){var i=n.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}const Q2=mv;var bv=32,Kr=7;function J2(n){for(var e=0;n>=bv;)e|=n&1,n>>=1;return n+e}function wv(n,e,t,i){var o=e+1;if(o===t)return 1;if(i(n[o++],n[e])<0){for(;o<t&&i(n[o],n[o-1])<0;)o++;tC(n,e,o)}else for(;o<t&&i(n[o],n[o-1])>=0;)o++;return o-e}function tC(n,e,t){for(t--;e<t;){var i=n[e];n[e++]=n[t],n[t--]=i}}function Sv(n,e,t,i,o){for(i===e&&i++;i<t;i++){for(var r=n[i],a=e,s=i,l;a<s;)l=a+s>>>1,o(r,n[l])<0?s=l:a=l+1;var u=i-a;switch(u){case 3:n[a+3]=n[a+2];case 2:n[a+2]=n[a+1];case 1:n[a+1]=n[a];break;default:for(;u>0;)n[a+u]=n[a+u-1],u--}n[a]=r}}function Uh(n,e,t,i,o,r){var a=0,s=0,l=1;if(r(n,e[t+o])>0){for(s=i-o;l<s&&r(n,e[t+o+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(n,e[t+o-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}for(a++;a<l;){var h=a+(l-a>>>1);r(n,e[t+h])>0?a=h+1:l=h}return l}function Xh(n,e,t,i,o,r){var a=0,s=0,l=1;if(r(n,e[t+o])<0){for(s=o+1;l<s&&r(n,e[t+o-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}else{for(s=i-o;l<s&&r(n,e[t+o+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}for(a++;a<l;){var h=a+(l-a>>>1);r(n,e[t+h])<0?l=h:a=h+1}return l}function eC(n,e){var t=Kr,i,o,r=0,a=[];i=[],o=[];function s(p,f){i[r]=p,o[r]=f,r+=1}function l(){for(;r>1;){var p=r-2;if(p>=1&&o[p-1]<=o[p]+o[p+1]||p>=2&&o[p-2]<=o[p]+o[p-1])o[p-1]<o[p+1]&&p--;else if(o[p]>o[p+1])break;h(p)}}function u(){for(;r>1;){var p=r-2;p>0&&o[p-1]<o[p+1]&&p--,h(p)}}function h(p){var f=i[p],g=o[p],v=i[p+1],y=o[p+1];o[p]=g+y,p===r-3&&(i[p+1]=i[p+2],o[p+1]=o[p+2]),r--;var m=Xh(n[v],n,f,g,0,e);f+=m,g-=m,g!==0&&(y=Uh(n[f+g-1],n,v,y,y-1,e),y!==0&&(g<=y?c(f,g,v,y):d(f,g,v,y)))}function c(p,f,g,v){var y=0;for(y=0;y<f;y++)a[y]=n[p+y];var m=0,x=g,_=p;if(n[_++]=n[x++],--v===0){for(y=0;y<f;y++)n[_+y]=a[m+y];return}if(f===1){for(y=0;y<v;y++)n[_+y]=n[x+y];n[_+v]=a[m];return}for(var w=t,b,S,T;;){b=0,S=0,T=!1;do if(e(n[x],a[m])<0){if(n[_++]=n[x++],S++,b=0,--v===0){T=!0;break}}else if(n[_++]=a[m++],b++,S=0,--f===1){T=!0;break}while((b|S)<w);if(T)break;do{if(b=Xh(n[x],a,m,f,0,e),b!==0){for(y=0;y<b;y++)n[_+y]=a[m+y];if(_+=b,m+=b,f-=b,f<=1){T=!0;break}}if(n[_++]=n[x++],--v===0){T=!0;break}if(S=Uh(a[m],n,x,v,0,e),S!==0){for(y=0;y<S;y++)n[_+y]=n[x+y];if(_+=S,x+=S,v-=S,v===0){T=!0;break}}if(n[_++]=a[m++],--f===1){T=!0;break}w--}while(b>=Kr||S>=Kr);if(T)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),f===1){for(y=0;y<v;y++)n[_+y]=n[x+y];n[_+v]=a[m]}else{if(f===0)throw new Error;for(y=0;y<f;y++)n[_+y]=a[m+y]}}function d(p,f,g,v){var y=0;for(y=0;y<v;y++)a[y]=n[g+y];var m=p+f-1,x=v-1,_=g+v-1,w=0,b=0;if(n[_--]=n[m--],--f===0){for(w=_-(v-1),y=0;y<v;y++)n[w+y]=a[y];return}if(v===1){for(_-=f,m-=f,b=_+1,w=m+1,y=f-1;y>=0;y--)n[b+y]=n[w+y];n[_]=a[x];return}for(var S=t;;){var T=0,I=0,C=!1;do if(e(a[x],n[m])<0){if(n[_--]=n[m--],T++,I=0,--f===0){C=!0;break}}else if(n[_--]=a[x--],I++,T=0,--v===1){C=!0;break}while((T|I)<S);if(C)break;do{if(T=f-Xh(a[x],n,p,f,f-1,e),T!==0){for(_-=T,m-=T,f-=T,b=_+1,w=m+1,y=T-1;y>=0;y--)n[b+y]=n[w+y];if(f===0){C=!0;break}}if(n[_--]=a[x--],--v===1){C=!0;break}if(I=v-Uh(n[m],a,0,v,v-1,e),I!==0){for(_-=I,x-=I,v-=I,b=_+1,w=x+1,y=0;y<I;y++)n[b+y]=a[w+y];if(v<=1){C=!0;break}}if(n[_--]=n[m--],--f===0){C=!0;break}S--}while(T>=Kr||I>=Kr);if(C)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),v===1){for(_-=f,m-=f,b=_+1,w=m+1,y=f-1;y>=0;y--)n[b+y]=n[w+y];n[_]=a[x]}else{if(v===0)throw new Error;for(w=_-(v-1),y=0;y<v;y++)n[w+y]=a[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ws(n,e,t,i){t||(t=0),i||(i=n.length);var o=i-t;if(!(o<2)){var r=0;if(o<bv){r=wv(n,t,i,e),Sv(n,t,i,t+r,e);return}var a=eC(n,e),s=J2(o);do{if(r=wv(n,t,i,e),r<s){var l=o;l>s&&(l=s),Sv(n,t,t+l,t+r,e),r=l}a.pushRun(t,r),a.mergeRuns(),o-=r,t+=r}while(o!==0);a.forceMergeRuns()}}var $e=1,$r=2,Yo=4,Mv=!1;function Zh(){Mv||(Mv=!0)}function Tv(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var nC=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Tv}return n.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},n.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(t),i},n.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,o=0,r=t.length;o<r;o++)this._updateAndAddDisplayable(t[o],null,e);i.length=this._displayListLen,Ws(i,Tv)},n.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var o=e.getClipPath();if(e.ignoreClip)t=null;else if(o){t?t=t.slice():t=[];for(var r=o,a=e;r;)r.parent=a,r.updateTransform(),t.push(r),a=r,r=r.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=$e),this._updateAndAddDisplayable(u,t,i)}e.__dirty=0}else{var h=e;t&&t.length?h.__clipPaths=t:h.__clipPaths&&h.__clipPaths.length>0&&(h.__clipPaths=[]),isNaN(h.z)&&(Zh(),h.z=0),isNaN(h.z2)&&(Zh(),h.z2=0),isNaN(h.zlevel)&&(Zh(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,i);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,i);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,t,i)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var o=lt(this._roots,e);o>=0&&this._roots.splice(o,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const iC=nC;var Cv;Cv=ct.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const jh=Cv;var Gs={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)))},elasticOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/i)+1)},elasticInOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-Gs.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?Gs.bounceIn(n*2)*.5:Gs.bounceOut(n*2-1)*.5+.5}};const Iv=Gs;var Hs=Math.pow,li=Math.sqrt,Ys=1e-8,Av=1e-4,Dv=li(3),Us=1/3,yn=ri(),Le=ri(),Uo=ri();function ui(n){return n>-Ys&&n<Ys}function kv(n){return n>Ys||n<-Ys}function Vt(n,e,t,i,o){var r=1-o;return r*r*(r*n+3*o*e)+o*o*(o*i+3*r*t)}function Pv(n,e,t,i,o){var r=1-o;return 3*(((e-n)*r+2*(t-e)*o)*r+(i-t)*o*o)}function Xs(n,e,t,i,o,r){var a=i+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-o,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if(ui(h)&&ui(c))if(ui(s))r[0]=0;else{var f=-l/s;f>=0&&f<=1&&(r[p++]=f)}else{var g=c*c-4*h*d;if(ui(g)){var v=c/h,f=-s/a+v,y=-v/2;f>=0&&f<=1&&(r[p++]=f),y>=0&&y<=1&&(r[p++]=y)}else if(g>0){var m=li(g),x=h*s+1.5*a*(-c+m),_=h*s+1.5*a*(-c-m);x<0?x=-Hs(-x,Us):x=Hs(x,Us),_<0?_=-Hs(-_,Us):_=Hs(_,Us);var f=(-s-(x+_))/(3*a);f>=0&&f<=1&&(r[p++]=f)}else{var w=(2*h*s-3*a*c)/(2*li(h*h*h)),b=Math.acos(w)/3,S=li(h),T=Math.cos(b),f=(-s-2*S*T)/(3*a),y=(-s+S*(T+Dv*Math.sin(b)))/(3*a),I=(-s+S*(T-Dv*Math.sin(b)))/(3*a);f>=0&&f<=1&&(r[p++]=f),y>=0&&y<=1&&(r[p++]=y),I>=0&&I<=1&&(r[p++]=I)}}return p}function Lv(n,e,t,i,o){var r=6*t-12*e+6*n,a=9*e+3*i-3*n-9*t,s=3*e-3*n,l=0;if(ui(a)){if(kv(r)){var u=-s/r;u>=0&&u<=1&&(o[l++]=u)}}else{var h=r*r-4*a*s;if(ui(h))o[0]=-r/(2*a);else if(h>0){var c=li(h),u=(-r+c)/(2*a),d=(-r-c)/(2*a);u>=0&&u<=1&&(o[l++]=u),d>=0&&d<=1&&(o[l++]=d)}}return l}function Qr(n,e,t,i,o,r){var a=(e-n)*o+n,s=(t-e)*o+e,l=(i-t)*o+t,u=(s-a)*o+a,h=(l-s)*o+s,c=(h-u)*o+u;r[0]=n,r[1]=a,r[2]=u,r[3]=c,r[4]=c,r[5]=h,r[6]=l,r[7]=i}function Ov(n,e,t,i,o,r,a,s,l,u,h){var c,d=.005,p=1/0,f,g,v,y;yn[0]=l,yn[1]=u;for(var m=0;m<1;m+=.05)Le[0]=Vt(n,t,o,a,m),Le[1]=Vt(e,i,r,s,m),v=ai(yn,Le),v<p&&(c=m,p=v);p=1/0;for(var x=0;x<32&&!(d<Av);x++)f=c-d,g=c+d,Le[0]=Vt(n,t,o,a,f),Le[1]=Vt(e,i,r,s,f),v=ai(Le,yn),f>=0&&v<p?(c=f,p=v):(Uo[0]=Vt(n,t,o,a,g),Uo[1]=Vt(e,i,r,s,g),y=ai(Uo,yn),g<=1&&y<p?(c=g,p=y):d*=.5);return h&&(h[0]=Vt(n,t,o,a,c),h[1]=Vt(e,i,r,s,c)),li(p)}function oC(n,e,t,i,o,r,a,s,l){for(var u=n,h=e,c=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=Vt(n,t,o,a,f),v=Vt(e,i,r,s,f),y=g-u,m=v-h;c+=Math.sqrt(y*y+m*m),u=g,h=v}return c}function Zt(n,e,t,i){var o=1-i;return o*(o*n+2*i*e)+i*i*t}function qh(n,e,t,i){return 2*((1-i)*(e-n)+i*(t-e))}function rC(n,e,t,i,o){var r=n-2*e+t,a=2*(e-n),s=n-i,l=0;if(ui(r)){if(kv(a)){var u=-s/a;u>=0&&u<=1&&(o[l++]=u)}}else{var h=a*a-4*r*s;if(ui(h)){var u=-a/(2*r);u>=0&&u<=1&&(o[l++]=u)}else if(h>0){var c=li(h),u=(-a+c)/(2*r),d=(-a-c)/(2*r);u>=0&&u<=1&&(o[l++]=u),d>=0&&d<=1&&(o[l++]=d)}}return l}function Rv(n,e,t){var i=n+t-2*e;return i===0?.5:(n-e)/i}function Jr(n,e,t,i,o){var r=(e-n)*i+n,a=(t-e)*i+e,s=(a-r)*i+r;o[0]=n,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=t}function Nv(n,e,t,i,o,r,a,s,l){var u,h=.005,c=1/0;yn[0]=a,yn[1]=s;for(var d=0;d<1;d+=.05){Le[0]=Zt(n,t,o,d),Le[1]=Zt(e,i,r,d);var p=ai(yn,Le);p<c&&(u=d,c=p)}c=1/0;for(var f=0;f<32&&!(h<Av);f++){var g=u-h,v=u+h;Le[0]=Zt(n,t,o,g),Le[1]=Zt(e,i,r,g);var p=ai(Le,yn);if(g>=0&&p<c)u=g,c=p;else{Uo[0]=Zt(n,t,o,v),Uo[1]=Zt(e,i,r,v);var y=ai(Uo,yn);v<=1&&y<c?(u=v,c=y):h*=.5}}return l&&(l[0]=Zt(n,t,o,u),l[1]=Zt(e,i,r,u)),li(c)}function aC(n,e,t,i,o,r,a){for(var s=n,l=e,u=0,h=1/a,c=1;c<=a;c++){var d=c*h,p=Zt(n,t,o,d),f=Zt(e,i,r,d),g=p-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=p,l=f}return u}var sC=/cubic-bezier\(([0-9,\.e ]+)\)/;function Kh(n){var e=n&&sC.exec(n);if(e){var t=e[1].split(","),i=+De(t[0]),o=+De(t[1]),r=+De(t[2]),a=+De(t[3]);if(isNaN(i+o+r+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Xs(0,i,r,1,l,s)&&Vt(0,o,a,1,s[0])}}}var lC=function(){function n(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||Et,this.ondestroy=e.ondestroy||Et,this.onrestart=e.onrestart||Et,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,o=e-this._startTime-this._pausedTime,r=o/i;r<0&&(r=0),r=Math.min(r,1);var a=this.easingFunc,s=a?a(r):r;if(this.onframe(s),r===1)if(this.loop){var l=o%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=$(e)?e:Iv[e]||Kh(e)},n}();const uC=lC;var zv=function(){function n(e){this.value=e}return n}(),hC=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new zv(e);return this.insertEntry(t),t},n.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++},n.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),cC=function(){function n(e){this._list=new hC,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var i=this._list,o=this._map,r=null;if(o[e]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete o[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new zv(t),s.key=e,i.insertEntry(s),o[e]=s}return r},n.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const ta=cC;var Bv={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 Qe(n){return n=Math.round(n),n<0?0:n>255?255:n}function pC(n){return n=Math.round(n),n<0?0:n>360?360:n}function ea(n){return n<0?0:n>1?1:n}function $h(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qe(parseFloat(e)/100*255):Qe(parseInt(e,10))}function Wi(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ea(parseFloat(e)/100):ea(parseFloat(e))}function Qh(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function hi(n,e,t){return n+(e-n)*t}function Oe(n,e,t,i,o){return n[0]=e,n[1]=t,n[2]=i,n[3]=o,n}function Jh(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var Ev=new ta(20),Zs=null;function Xo(n,e){Zs&&Jh(Zs,e),Zs=Ev.put(n,Zs||e.slice())}function ue(n,e){if(n){e=e||[];var t=Ev.get(n);if(t)return Jh(e,t);n=n+"";var i=n.replace(/ /g,"").toLowerCase();if(i in Bv)return Jh(e,Bv[i]),Xo(n,e),e;var o=i.length;if(i.charAt(0)==="#"){if(o===4||o===5){var r=parseInt(i.slice(1,4),16);if(!(r>=0&&r<=4095)){Oe(e,0,0,0,1);return}return Oe(e,(r&3840)>>4|(r&3840)>>8,r&240|(r&240)>>4,r&15|(r&15)<<4,o===5?parseInt(i.slice(4),16)/15:1),Xo(n,e),e}else if(o===7||o===9){var r=parseInt(i.slice(1,7),16);if(!(r>=0&&r<=16777215)){Oe(e,0,0,0,1);return}return Oe(e,(r&16711680)>>16,(r&65280)>>8,r&255,o===9?parseInt(i.slice(7),16)/255:1),Xo(n,e),e}return}var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Oe(e,+u[0],+u[1],+u[2],1):Oe(e,0,0,0,1);h=Wi(u.pop());case"rgb":if(u.length>=3)return Oe(e,$h(u[0]),$h(u[1]),$h(u[2]),u.length===3?h:Wi(u[3])),Xo(n,e),e;Oe(e,0,0,0,1);return;case"hsla":if(u.length!==4){Oe(e,0,0,0,1);return}return u[3]=Wi(u[3]),tc(u,e),Xo(n,e),e;case"hsl":if(u.length!==3){Oe(e,0,0,0,1);return}return tc(u,e),Xo(n,e),e;default:return}}Oe(e,0,0,0,1)}}function tc(n,e){var t=(parseFloat(n[0])%360+360)%360/360,i=Wi(n[1]),o=Wi(n[2]),r=o<=.5?o*(i+1):o+i-o*i,a=o*2-r;return e=e||[],Oe(e,Qe(Qh(a,r,t+1/3)*255),Qe(Qh(a,r,t)*255),Qe(Qh(a,r,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function dC(n){if(n){var e=n[0]/255,t=n[1]/255,i=n[2]/255,o=Math.min(e,t,i),r=Math.max(e,t,i),a=r-o,s=(r+o)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(r+o):u=a/(2-r-o);var h=((r-e)/6+a/2)/a,c=((r-t)/6+a/2)/a,d=((r-i)/6+a/2)/a;e===r?l=d-c:t===r?l=1/3+h-d:i===r&&(l=2/3+c-h),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return n[3]!=null&&p.push(n[3]),p}}function js(n,e){var t=ue(n);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return Je(t,t.length===4?"rgba":"rgb")}}function fC(n){var e=ue(n);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function na(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var i=n*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=e[o],s=e[r],l=i-o;return t[0]=Qe(hi(a[0],s[0],l)),t[1]=Qe(hi(a[1],s[1],l)),t[2]=Qe(hi(a[2],s[2],l)),t[3]=ea(hi(a[3],s[3],l)),t}}var gC=na;function ec(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var i=n*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=ue(e[o]),s=ue(e[r]),l=i-o,u=Je([Qe(hi(a[0],s[0],l)),Qe(hi(a[1],s[1],l)),Qe(hi(a[2],s[2],l)),ea(hi(a[3],s[3],l))],"rgba");return t?{color:u,leftIndex:o,rightIndex:r,value:i}:u}}var vC=ec;function ia(n,e,t,i){var o=ue(n);if(n)return o=dC(o),e!=null&&(o[0]=pC(e)),t!=null&&(o[1]=Wi(t)),i!=null&&(o[2]=Wi(i)),Je(tc(o),"rgba")}function nc(n,e){var t=ue(n);if(t&&e!=null)return t[3]=ea(e),Je(t,"rgba")}function Je(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function oa(n,e){var t=ue(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function yC(){return Je([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Vv=new ta(100);function qs(n){if(G(n)){var e=Vv.get(n);return e||(e=js(n,-.1),Vv.put(n,e)),e}else if(Vr(n)){var t=N({},n);return t.colorStops=F(n.colorStops,function(i){return{offset:i.offset,color:js(i.color,-.1)}}),t}return n}const mC=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:na,fastMapToColor:gC,lerp:ec,lift:js,liftColor:qs,lum:oa,mapToColor:vC,modifyAlpha:nc,modifyHSL:ia,parse:ue,random:yC,stringify:Je,toHex:fC},Symbol.toStringTag,{value:"Module"}));var Ks=Math.round;function ra(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ue(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e!=null?e:1}}var Fv=1e-4;function ci(n){return n<Fv&&n>-Fv}function $s(n){return Ks(n*1e3)/1e3}function ic(n){return Ks(n*1e4)/1e4}function xC(n){return"matrix("+$s(n[0])+","+$s(n[1])+","+$s(n[2])+","+$s(n[3])+","+ic(n[4])+","+ic(n[5])+")"}var _C={left:"start",right:"end",center:"middle",middle:"middle"};function bC(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function wC(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function SC(n){var e=n.style,t=n.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 Wv(n){return n&&!!n.image}function MC(n){return n&&!!n.svgElement}function oc(n){return Wv(n)||MC(n)}function Gv(n){return n.type==="linear"}function Hv(n){return n.type==="radial"}function Yv(n){return n&&(n.type==="linear"||n.type==="radial")}function Qs(n){return"url(#"+n+")"}function Uv(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Xv(n){var e=n.x||0,t=n.y||0,i=(n.rotation||0)*Gr,o=J(n.scaleX,1),r=J(n.scaleY,1),a=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(o!==1||r!==1)&&l.push("scale("+o+","+r+")"),(a||s)&&l.push("skew("+Ks(a*Gr)+"deg, "+Ks(s*Gr)+"deg)"),l.join(" ")}var TC=function(){return ct.hasGlobalWindow&&$(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),rc=Array.prototype.slice;function Yn(n,e,t){return(e-n)*t+n}function ac(n,e,t,i){for(var o=e.length,r=0;r<o;r++)n[r]=Yn(e[r],t[r],i);return n}function CC(n,e,t,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){n[a]||(n[a]=[]);for(var s=0;s<r;s++)n[a][s]=Yn(e[a][s],t[a][s],i)}return n}function Js(n,e,t,i){for(var o=e.length,r=0;r<o;r++)n[r]=e[r]+t[r]*i;return n}function Zv(n,e,t,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){n[a]||(n[a]=[]);for(var s=0;s<r;s++)n[a][s]=e[a][s]+t[a][s]*i}return n}function IC(n,e){for(var t=n.length,i=e.length,o=t>i?e:n,r=Math.min(t,i),a=o[r-1]||{color:[0,0,0,0],offset:0},s=r;s<Math.max(t,i);s++)o.push({offset:a.offset,color:a.color.slice()})}function AC(n,e,t){var i=n,o=e;if(!(!i.push||!o.push)){var r=i.length,a=o.length;if(r!==a){var s=r>a;if(s)i.length=a;else for(var l=r;l<a;l++)i.push(t===1?o[l]:rc.call(o[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=o[l]);else for(var h=0;h<u;h++)isNaN(i[l][h])&&(i[l][h]=o[l][h])}}function aa(n){if(Xt(n)){var e=n.length;if(Xt(n[0])){for(var t=[],i=0;i<e;i++)t.push(rc.call(n[i]));return t}return rc.call(n)}return n}function tl(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function DC(n){return Xt(n&&n[0])?2:1}var el=0,nl=1,jv=2,sa=3,sc=4,lc=5,qv=6;function Kv(n){return n===sc||n===lc}function il(n){return n===nl||n===jv}var la=[0,0,0,0],kC=function(){function n(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var o=this.keyframes,r=o.length,a=!1,s=qv,l=t;if(Xt(t)){var u=DC(t);s=u,(u===1&&!vt(t[0])||u===2&&!vt(t[0][0]))&&(a=!0)}else if(vt(t)&&!Wo(t))s=el;else if(G(t))if(!isNaN(+t))s=el;else{var h=ue(t);h&&(l=h,s=sa)}else if(Vr(t)){var c=N({},l);c.colorStops=F(t.colorStops,function(p){return{offset:p.offset,color:ue(p.color)}}),Gv(t)?s=sc:Hv(t)&&(s=lc),l=c}r===0?this.valType=s:(s!==this.valType||s===qv)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:l,rawValue:t,percent:0};return i&&(d.easing=i,d.easingFunc=$(i)?i:Iv[i]||Kh(i)),o.push(d),d},n.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var o=this.valType,r=i.length,a=i[r-1],s=this.discrete,l=il(o),u=Kv(o),h=0;h<r;h++){var c=i[h],d=c.value,p=a.value;c.percent=c.time/e,s||(l&&h!==r-1?AC(d,p,o):u&&IC(d.colorStops,p.colorStops))}if(!s&&o!==lc&&t&&this.needsAnimate()&&t.needsAnimate()&&o===t.valType&&!t._finished){this._additiveTrack=t;for(var f=i[0].value,h=0;h<r;h++)o===el?i[h].additiveValue=i[h].value-f:o===sa?i[h].additiveValue=Js([],i[h].value,f,-1):il(o)&&(i[h].additiveValue=o===nl?Js([],i[h].value,f,-1):Zv([],i[h].value,f,-1))}},n.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,o=i?"additiveValue":"value",r=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=r===sa,h,c=this._lastFr,d=Math.min,p,f;if(s===1)p=f=a[0];else{if(t<0)h=0;else if(t<this._lastFrP){var g=d(c+1,s-1);for(h=g;h>=0&&!(a[h].percent<=t);h--);h=d(h,s-2)}else{for(h=c;h<s&&!(a[h].percent>t);h++);h=d(h-1,s-2)}f=a[h+1],p=a[h]}if(p&&f){this._lastFr=h,this._lastFrP=t;var v=f.percent-p.percent,y=v===0?1:d((t-p.percent)/v,1);f.easingFunc&&(y=f.easingFunc(y));var m=i?this._additiveValue:u?la:e[l];if((il(r)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?p.rawValue:f.rawValue;else if(il(r))r===nl?ac(m,p[o],f[o],y):CC(m,p[o],f[o],y);else if(Kv(r)){var x=p[o],_=f[o],w=r===sc;e[l]={type:w?"linear":"radial",x:Yn(x.x,_.x,y),y:Yn(x.y,_.y,y),colorStops:F(x.colorStops,function(S,T){var I=_.colorStops[T];return{offset:Yn(S.offset,I.offset,y),color:tl(ac([],S.color,I.color,y))}}),global:_.global},w?(e[l].x2=Yn(x.x2,_.x2,y),e[l].y2=Yn(x.y2,_.y2,y)):e[l].r=Yn(x.r,_.r,y)}else if(u)ac(m,p[o],f[o],y),i||(e[l]=tl(m));else{var b=Yn(p[o],f[o],y);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,o=this._additiveValue;t===el?e[i]=e[i]+o:t===sa?(ue(e[i],la),Js(la,la,o,1),e[i]=tl(la)):t===nl?Js(e[i],e[i],o,1):t===jv&&Zv(e[i],e[i],o,1)},n}(),PC=function(){function n(e,t,i,o){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&o){Ps("Can' use additive animation on looped animation.");return}this._additiveAnimators=o,this._allowDiscrete=i}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,at(t),i)},n.prototype.whenWithKeys=function(e,t,i,o){for(var r=this._tracks,a=0;a<i.length;a++){var s=i[a],l=r[s];if(!l){l=r[s]=new kC(s);var u=void 0,h=this._getAdditiveTrack(s);if(h){var c=h.keyframes,d=c[c.length-1];u=d&&d.value,h.valType===sa&&u&&(u=tl(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,aa(u),o),this._trackKeys.push(s)}l.addKeyframe(e,aa(t[s]),o)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},n.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},n.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},n.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var o=0;o<i.length;o++){var r=i[o].getTrack(e);r&&(t=r)}return t},n.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],o=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,h=u.length;if(s.prepare(o,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[h-1];c&&(t._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var d=new uC({life:o,loop:this._loop,delay:this._delay||0,onframe:function(p){t._started=2;var f=t._additiveAnimators;if(f){for(var g=!1,v=0;v<f.length;v++)if(f[v]._clip){g=!0;break}g||(t._additiveAnimators=null)}for(var v=0;v<i.length;v++)i[v].step(t._target,p);var y=t._onframeCbs;if(y)for(var v=0;v<y.length;v++)y[v](t._target,p)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},n.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},n.prototype.delay=function(e){return this._delay=e,this},n.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},n.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},n.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(e){return this._tracks[e]},n.prototype.getTracks=function(){var e=this;return F(this._trackKeys,function(t){return e._tracks[t]})},n.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,o=this._trackKeys,r=0;r<e.length;r++){var a=i[e[r]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,r=0;r<o.length;r++)if(!i[o[r]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},n.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var o=0;o<t.length;o++){var r=t[o],a=this._tracks[r];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[i?0:s.length-1];l&&(e[r]=aa(l.rawValue))}}}},n.prototype.__changeFinalValue=function(e,t){t=t||at(e);for(var i=0;i<t.length;i++){var o=t[i],r=this._tracks[o];if(r){var a=r.keyframes;if(a.length>1){var s=a.pop();r.addKeyframe(s.time,e[o]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},n}();const uc=PC;function Zo(){return new Date().getTime()}var LC=function(n){Mt(e,n);function e(t){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}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 i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,o=t.next;i?i.next=o:this._head=o,o?o.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Zo()-this._pausedTime,o=i-this._time,r=this._head;r;){var a=r.next,s=r.step(i,o);s&&(r.ondestroy(),this.removeClip(r)),r=a}this._time=i,t||(this.trigger("frame",o),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(jh(i),!t._paused&&t.update())}jh(i)},e.prototype.start=function(){this._running||(this._time=Zo(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Zo(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Zo()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var o=new uc(t,i.loop);return this.addAnimator(o),o},e}(ke);const OC=LC;var RC=300,hc=ct.domSupported,cc=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=F(n,function(o){var r=o.replace("mouse","pointer");return t.hasOwnProperty(r)?r:o});return{mouse:n,touch:e,pointer:i}}(),$v={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Qv=!1;function pc(n){var e=n.pointerType;return e==="pen"||e==="touch"}function NC(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function dc(n){n&&(n.zrByTouch=!0)}function zC(n,e){return Pe(n.dom,new BC(n,e),!0)}function Jv(n,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return i}var BC=function(){function n(e,t){this.stopPropagation=Et,this.stopImmediatePropagation=Et,this.preventDefault=Et,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),tn={mousedown:function(n){n=Pe(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=Pe(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=Pe(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=Pe(this.dom,n);var e=n.toElement||n.relatedTarget;Jv(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){Qv=!0,n=Pe(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){Qv||(n=Pe(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=Pe(this.dom,n),dc(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),tn.mousemove.call(this,n),tn.mousedown.call(this,n)},touchmove:function(n){n=Pe(this.dom,n),dc(n),this.handler.processGesture(n,"change"),tn.mousemove.call(this,n)},touchend:function(n){n=Pe(this.dom,n),dc(n),this.handler.processGesture(n,"end"),tn.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<RC&&tn.click.call(this,n)},pointerdown:function(n){tn.mousedown.call(this,n)},pointermove:function(n){pc(n)||tn.mousemove.call(this,n)},pointerup:function(n){tn.mouseup.call(this,n)},pointerout:function(n){pc(n)||tn.mouseout.call(this,n)}};M(["click","dblclick","contextmenu"],function(n){tn[n]=function(e){e=Pe(this.dom,e),this.trigger(n,e)}});var fc={pointermove:function(n){pc(n)||fc.mousemove.call(this,n)},pointerup:function(n){fc.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),e&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function EC(n,e){var t=e.domHandlers;ct.pointerEventsSupported?M(cc.pointer,function(i){ol(e,i,function(o){t[i].call(n,o)})}):(ct.touchEventsSupported&&M(cc.touch,function(i){ol(e,i,function(o){t[i].call(n,o),NC(e)})}),M(cc.mouse,function(i){ol(e,i,function(o){o=Wh(o),e.touching||t[i].call(n,o)})}))}function VC(n,e){ct.pointerEventsSupported?M($v.pointer,t):ct.touchEventsSupported||M($v.mouse,t);function t(i){function o(r){r=Wh(r),Jv(n,r.target)||(r=zC(n,r),e.domHandlers[i].call(n,r))}ol(e,i,o,{capture:!0})}}function ol(n,e,t,i){n.mounted[e]=t,n.listenerOpts[e]=i,Gh(n.domTarget,e,t,i)}function gc(n){var e=n.mounted;for(var t in e)e.hasOwnProperty(t)&&W2(n.domTarget,t,e[t],n.listenerOpts[t]);n.mounted={}}var ty=function(){function n(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return n}(),FC=function(n){Mt(e,n);function e(t,i){var o=n.call(this)||this;return o.__pointerCapturing=!1,o.dom=t,o.painterRoot=i,o._localHandlerScope=new ty(t,tn),hc&&(o._globalHandlerScope=new ty(document,fc)),EC(o,o._localHandlerScope),o}return e.prototype.dispose=function(){gc(this._localHandlerScope),hc&&gc(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,hc&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?VC(this,i):gc(i)}},e}(ke);const WC=FC;var ey=1;ct.hasGlobalWindow&&(ey=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var vc=ey,yc=.4,mc="#333",xc="#ccc",GC="#eee",ny=Xr,iy=5e-5;function Gi(n){return n>iy||n<-iy}var Hi=[],jo=[],_c=me(),bc=Math.abs,HC=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return Gi(this.rotation)||Gi(this.x)||Gi(this.y)||Gi(this.scaleX-1)||Gi(this.scaleY-1)||Gi(this.skewX)||Gi(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(ny(i),this.invTransform=null);return}i=i||me(),t?this.getLocalTransform(i):ny(i),e&&(t?gn(i,e,i):Bs(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Hi);var i=Hi[0]<0?-1:1,o=Hi[1]<0?-1:1,r=((Hi[0]-i)*t+i)/Hi[0]||0,a=((Hi[1]-o)*t+o)/Hi[1]||0;e[0]*=r,e[1]*=r,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||me(),zi(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],o=Math.atan2(e[1],e[0]),r=Math.PI/2+o-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-o,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||me(),gn(jo,e.invTransform,t),t=jo);var i=this.originX,o=this.originY;(i||o)&&(_c[4]=i,_c[5]=o,gn(jo,t,_c),jo[4]-=i,jo[5]-=o,t=jo),this.setLocalTransform(t)}},n.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)},n.prototype.transformCoordToLocal=function(e,t){var i=[e,t],o=this.invTransform;return o&&Ht(i,i,o),i},n.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],o=this.transform;return o&&Ht(i,i,o),i},n.prototype.getLineScale=function(){var e=this.transform;return e&&bc(e[0]-1)>1e-10&&bc(e[3]-1)>1e-10?Math.sqrt(bc(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){oy(this,e)},n.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,o=e.originY||0,r=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,h=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(i||o||s||l){var f=i+s,g=o+l;t[4]=-f*r-d*g*a,t[5]=-g*a-p*f*r}else t[4]=t[5]=0;return t[0]=r,t[3]=a,t[1]=p*r,t[2]=d*a,u&&si(t,t,u),t[4]+=i+h,t[5]+=o+c,t},n.initDefaultProps=function(){var e=n.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}(),n}(),mn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function oy(n,e){for(var t=0;t<mn.length;t++){var i=mn[t];n[i]=e[i]}}const pi=HC;var ry={};function Me(n,e){e=e||oi;var t=ry[e];t||(t=ry[e]=new ta(500));var i=t.get(n);return i==null&&(i=Fn.measureText(n,e).width,t.put(n,i)),i}function ay(n,e,t,i){var o=Me(n,e),r=rl(e),a=ha(0,o,t),s=qo(0,r,i),l=new ut(a,s,o,r);return l}function ua(n,e,t,i){var o=((n||"")+"").split(`
- `),r=o.length;if(r===1)return ay(o[0],e,t,i);for(var a=new ut(0,0,0,0),s=0;s<o.length;s++){var l=ay(o[s],e,t,i);s===0?a.copy(l):a.union(l)}return a}function ha(n,e,t){return t==="right"?n-=e:t==="center"&&(n-=e/2),n}function qo(n,e,t){return t==="middle"?n-=e/2:t==="bottom"&&(n-=e),n}function rl(n){return Me("\u56FD",n)}function en(n,e){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*e:parseFloat(n):n}function al(n,e,t){var i=e.position||"inside",o=e.distance!=null?e.distance:5,r=t.height,a=t.width,s=r/2,l=t.x,u=t.y,h="left",c="top";if(i instanceof Array)l+=en(i[0],t.width),u+=en(i[1],t.height),h=null,c=null;else switch(i){case"left":l-=o,u+=s,h="right",c="middle";break;case"right":l+=o+a,u+=s,c="middle";break;case"top":l+=a/2,u-=o,h="center",c="bottom";break;case"bottom":l+=a/2,u+=r+o,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=o,u+=s,c="middle";break;case"insideRight":l+=a-o,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=o,h="center";break;case"insideBottom":l+=a/2,u+=r-o,h="center",c="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,h="right";break;case"insideBottomLeft":l+=o,u+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,h="right",c="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=h,n.verticalAlign=c,n}var wc="__zr_normal__",Sc=mn.concat(["ignore"]),YC=Ae(mn,function(n,e){return n[e]=!0,n},{ignore:!1}),Ko={},UC=new ut(0,0,0,0),Mc=function(){function n(e){this.id=Mh(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=e,o[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,o=i.local,r=t.innerTransformable,a=void 0,s=void 0,l=!1;r.parent=o?this:null;var u=!1;if(r.copyTransform(t),i.position!=null){var h=UC;i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ko,i,h):al(Ko,i,h),r.x=Ko.x,r.y=Ko.y,a=Ko.align,s=Ko.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var d=void 0,p=void 0;c==="center"?(d=h.width*.5,p=h.height*.5):(d=en(c[0],h.width),p=en(c[1],h.height)),u=!0,r.originX=-r.x+d+(o?0:h.x),r.originY=-r.y+p+(o?0:h.y)}}i.rotation!=null&&(r.rotation=i.rotation);var f=i.offset;f&&(r.x+=f[0],r.y+=f[1],u||(r.originX=-f[0],r.originY=-f[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,x=void 0;g&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),x=!0)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),x=!0)),y=y||"#000",(y!==v.fill||m!==v.stroke||x!==v.autoStroke||a!==v.align||s!==v.verticalAlign)&&(l=!0,v.fill=y,v.stroke=m,v.autoStroke=x,v.align=a,v.verticalAlign=s,t.setDefaultTextStyle(v)),t.__dirty|=$e,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?xc:mc},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&ue(t);i||(i=[255,255,255,1]);for(var o=i[3],r=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*o+(r?0:255)*(1-o);return i[3]=1,Je(i,"rgba")},n.prototype.traverse=function(e,t){},n.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},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(j(e))for(var i=e,o=at(i),r=0;r<o.length;r++){var a=o[r];this.attrKV(a,e[a])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var o=this.animators[i],r=o.__fromStateTransition;if(!(o.getLoop()||r&&r!==wc)){var a=o.targetName,s=a?t[a]:t;o.saveTo(s)}}},n.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Sc)},n.prototype._savePrimaryToNormal=function(e,t,i){for(var o=0;o<i.length;o++){var r=i[o];e[r]!=null&&!(r in t)&&(t[r]=this[r])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(wc,!1,e)},n.prototype.useState=function(e,t,i,o){var r=e===wc,a=this.hasState();if(!(!a&&r)){var s=this.currentStates,l=this.stateTransition;if(!(lt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!r){Ps("State "+e+" not exists.");return}r||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||o);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(e,t,i,h),d&&d.useState(e,t,i,h),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$e),u}}},n.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var o=[],r=this.currentStates,a=e.length,s=a===r.length;if(s){for(var l=0;l<a;l++)if(e[l]!==r[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=e[l],h=void 0;this.stateProxy&&(h=this.stateProxy(u,e)),h||(h=this.states[u]),h&&o.push(h)}var c=o[a-1],d=!!(c&&c.hoverLayer||i);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(o),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!t&&!this.__inHover&&f&&f.duration>0,f);var g=this._textContent,v=this._textGuide;g&&g.useStates(e,t,d),v&&v.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$e)}},n.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},n.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},n.prototype.removeState=function(e){var t=lt(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},n.prototype.replaceState=function(e,t,i){var o=this.currentStates.slice(),r=lt(o,e),a=lt(o,t)>=0;r>=0?a?o.splice(r,1):o[r]=t:i&&!a&&o.push(t),this.useStates(o)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},i,o=0;o<e.length;o++){var r=e[o];N(t,r),r.textConfig&&(i=i||{},N(i,r.textConfig))}return i&&(t.textConfig=i),t},n.prototype._applyStateObj=function(e,t,i,o,r,a){var s=!(t&&o);t&&t.textConfig?(this.textConfig=N({},o?this.textConfig:i.textConfig),N(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,h=0;h<Sc.length;h++){var c=Sc[h],d=r&&YC[c];t&&t[c]!=null?d?(u=!0,l[c]=t[c]):this[c]=t[c]:s&&i[c]!=null&&(d?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!r)for(var h=0;h<this.animators.length;h++){var p=this.animators[h],f=p.targetName;p.getLoop()||p.__changeFinalValue(f?(t||i)[f]:t||i)}u&&this._transitionState(e,l,a)},n.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}},n.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},n.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new pi,this._attachComponent(e),this._textContent=e,this.markRedraw())},n.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),N(this.textConfig,e),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=$e;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,i=this._textGuide;t&&(t.__inHover=e),i&&(i.__inHover=e)},n.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},n.prototype.animate=function(e,t,i){var o=e?this[e]:this,r=new uc(o,t,i);return e&&(r.targetName=e),this.addAnimator(r,e),r},n.prototype.addAnimator=function(e,t){var i=this.__zr,o=this;e.during(function(){o.updateDuringAnimation(t)}).done(function(){var r=o.animators,a=lt(r,e);a>=0&&r.splice(a,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var i=this.animators,o=i.length,r=[],a=0;a<o;a++){var s=i[a];!e||e===s.scope?s.stop(t):r.push(s)}return this.animators=r,this},n.prototype.animateTo=function(e,t,i){Tc(this,e,t,i)},n.prototype.animateFrom=function(e,t,i){Tc(this,e,t,i,!0)},n.prototype._transitionState=function(e,t,i,o){for(var r=Tc(this,t,i,o),a=0;a<r.length;a++)r[a].__fromStateTransition=e},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){var e=n.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=$e;function t(i,o,r,a){Object.defineProperty(e,i,{get:function(){if(!this[o]){var l=this[o]=[];s(this,l)}return this[o]},set:function(l){this[r]=l[0],this[a]=l[1],this[o]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[r]},set:function(h){l[r]=h}}),Object.defineProperty(u,1,{get:function(){return l[a]},set:function(h){l[a]=h}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))}(),n}();Ut(Mc,ke),Ut(Mc,pi);function Tc(n,e,t,i,o){t=t||{};var r=[];sy(n,"",n,e,t,i,r,o);var a=r.length,s=!1,l=t.done,u=t.aborted,h=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},c=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),r.length>0&&t.during&&r[0].during(function(f,g){t.during(g)});for(var d=0;d<r.length;d++){var p=r[d];h&&p.done(h),c&&p.aborted(c),t.force&&p.duration(t.duration),p.start(t.easing)}return r}function Cc(n,e,t){for(var i=0;i<t;i++)n[i]=e[i]}function XC(n){return Xt(n[0])}function ZC(n,e,t){if(Xt(e[t]))if(Xt(n[t])||(n[t]=[]),se(e[t])){var i=e[t].length;n[t].length!==i&&(n[t]=new e[t].constructor(i),Cc(n[t],e[t],i))}else{var o=e[t],r=n[t],a=o.length;if(XC(o))for(var s=o[0].length,l=0;l<a;l++)r[l]?Cc(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else Cc(r,o,a);r.length=o.length}else n[t]=e[t]}function jC(n,e){return n===e||Xt(n)&&Xt(e)&&qC(n,e)}function qC(n,e){var t=n.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(n[i]!==e[i])return!1;return!0}function sy(n,e,t,i,o,r,a,s){for(var l=at(i),u=o.duration,h=o.delay,c=o.additive,d=o.setToFinal,p=!j(r),f=n.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=i[y];if(m!=null&&t[y]!=null&&(p||r[y]))if(j(m)&&!Xt(m)&&!Vr(m)){if(e){s||(t[y]=m,n.updateDuringAnimation(e));continue}sy(n,y,t[y],m,o,r&&r[y],a,s)}else g.push(y);else s||(t[y]=m,n.updateDuringAnimation(e),g.push(y))}var x=g.length;if(!c&&x)for(var _=0;_<f.length;_++){var w=f[_];if(w.targetName===e){var b=w.stopTracks(g);if(b){var S=lt(f,w);f.splice(S,1)}}}if(o.force||(g=At(g,function(A){return!jC(i[A],t[A])}),x=g.length),x>0||o.force&&!a.length){var T=void 0,I=void 0,C=void 0;if(s){I={},d&&(T={});for(var _=0;_<x;_++){var y=g[_];I[y]=t[y],d?T[y]=i[y]:t[y]=i[y]}}else if(d){C={};for(var _=0;_<x;_++){var y=g[_];C[y]=aa(t[y]),ZC(t,i,y)}}var w=new uc(t,!1,!1,c?At(f,function(D){return D.targetName===e}):null);w.targetName=e,o.scope&&(w.scope=o.scope),d&&T&&w.whenWithKeys(0,T,g),C&&w.whenWithKeys(0,C,g),w.whenWithKeys(u!=null?u:500,s?I:i,g).delay(h||0),n.addAnimator(w,e),a.push(w)}}const ly=Mc;var uy=function(n){Mt(e,n);function e(t){var i=n.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}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 i=this._children,o=0;o<i.length;o++)if(i[o].name===t)return i[o]},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,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var o=this._children,r=o.indexOf(i);r>=0&&(o.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var o=lt(this._children,t);return o>=0&&this.replaceAt(i,o),this},e.prototype.replaceAt=function(t,i){var o=this._children,r=o[i];if(t&&t!==this&&t.parent!==this&&t!==r){o[i]=t,r.parent=null;var a=this.__zr;a&&r.removeSelfFromZr(a),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,o=this._children,r=lt(o,t);return r<0?this:(o.splice(r,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,o=0;o<t.length;o++){var r=t[o];i&&r.removeSelfFromZr(i),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var o=this._children,r=0;r<o.length;r++){var a=o[r];t.call(i,a,r)}return this},e.prototype.traverse=function(t,i){for(var o=0;o<this._children.length;o++){var r=this._children[o],a=t.call(i,r);r.isGroup&&!a&&r.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var o=this._children[i];o.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var o=this._children[i];o.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new ut(0,0,0,0),o=t||this._children,r=[],a=null,s=0;s<o.length;s++){var l=o[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),h=l.getLocalTransform(r);h?(ut.applyTransform(i,u,h),a=a||i.clone(),a.union(i)):(a=a||u.clone(),a.union(u))}}return a||i},e}(ly);uy.prototype.type="group";const it=uy;/*!
- * ZRender, a high performance 2d drawing library.
- *
- * Copyright (c) 2013, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- */var sl={},Yi={};function KC(n){delete Yi[n]}function $C(n){if(!n)return!1;if(typeof n=="string")return oa(n,1)<yc;if(n.colorStops){for(var e=n.colorStops,t=0,i=e.length,o=0;o<i;o++)t+=oa(e[o].color,1);return t/=i,t<yc}return!1}var QC=function(){function n(e,t,i){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var r=new iC,a=i.renderer||"canvas";sl[a]||(a=at(sl)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new sl[a](t,r,i,e),l=i.ssr||s.ssrOnly;this.storage=r,this.painter=s;var u=!ct.node&&!ct.worker&&!l?new WC(s.getViewportRoot(),s.root):null,h=i.useCoarsePointer,c=h==null||h==="auto"?ct.touchEventsSupported:!!h,d=44,p;c&&(p=J(i.pointerSize,d)),this.handler=new Q2(r,s,u,s.root,p),this.animation=new OC({stage:{update:l?null:function(){return o._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},n.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},n.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=$C(e))},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(e){this._darkMode=e},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},n.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},n.prototype.flush=function(){this._disposed||this._flush(!1)},n.prototype._flush=function(e){var t,i=Zo();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var o=Zo();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},n.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},n.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},n.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},n.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},n.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof it&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},n.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,KC(this.id))},n}();function Ic(n,e){var t=new QC(Mh(),n,e);return Yi[t.id]=t,t}function JC(n){n.dispose()}function tI(){for(var n in Yi)Yi.hasOwnProperty(n)&&Yi[n].dispose();Yi={}}function eI(n){return Yi[n]}function hy(n,e){sl[n]=e}var Ac;function cy(n){if(typeof Ac=="function")return Ac(n)}function py(n){Ac=n}var nI="5.5.0";const iI=Object.freeze(Object.defineProperty({__proto__:null,dispose:JC,disposeAll:tI,getElementSSRData:cy,getInstance:eI,init:Ic,registerPainter:hy,registerSSRDataGetter:py,version:nI},Symbol.toStringTag,{value:"Module"}));var dy=1e-4,fy=20;function oI(n){return n.replace(/^\s+|\s+$/g,"")}function xt(n,e,t,i){var o=e[0],r=e[1],a=t[0],s=t[1],l=r-o,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(i)if(l>0){if(n<=o)return a;if(n>=r)return s}else{if(n>=o)return a;if(n<=r)return s}else{if(n===o)return a;if(n===r)return s}return(n-o)/l*u+a}function U(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return G(n)?oI(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function kt(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),fy),n=(+n).toFixed(e),t?n:+n}function xn(n){return n.sort(function(e,t){return e-t}),n}function _n(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return gy(n)}function gy(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,o=t>0?t:e.length,r=e.indexOf("."),a=r<0?0:o-1-r;return Math.max(0,a-i)}function Dc(n,e){var t=Math.log,i=Math.LN10,o=Math.floor(t(n[1]-n[0])/i),r=Math.round(t(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20}function rI(n,e,t){if(!n[e])return 0;var i=vy(n,t);return i[e]||0}function vy(n,e){var t=Ae(n,function(p,f){return p+(isNaN(f)?0:f)},0);if(t===0)return[];for(var i=Math.pow(10,e),o=F(n,function(p){return(isNaN(p)?0:p)/t*i*100}),r=i*100,a=F(o,function(p){return Math.floor(p)}),s=Ae(a,function(p,f){return p+f},0),l=F(o,function(p,f){return p-a[f]});s<r;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,d=l.length;c<d;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return F(a,function(p){return p/i})}function aI(n,e){var t=Math.max(_n(n),_n(e)),i=n+e;return t>fy?i:kt(i,t)}var sI=9007199254740991;function kc(n){var e=Math.PI*2;return(n%e+e)%e}function ca(n){return n>-dy&&n<dy}var lI=/^(?:(\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 Re(n){if(n instanceof Date)return n;if(G(n)){var e=lI.exec(n);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(n==null)return new Date(NaN);return new Date(Math.round(n))}function yy(n){return Math.pow(10,ll(n))}function ll(n){if(n===0)return 0;var e=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,e)>=10&&e++,e}function Pc(n,e){var t=ll(n),i=Math.pow(10,t),o=n/i,r;return e?o<1.5?r=1:o<2.5?r=2:o<4?r=3:o<7?r=5:r=10:o<1?r=1:o<2?r=2:o<3?r=3:o<5?r=5:r=10,n=r*i,t>=-20?+n.toFixed(t<0?-t:0):n}function uI(n,e){var t=(n.length-1)*e+1,i=Math.floor(t),o=+n[i-1],r=t-i;return r?o+r*(n[i]-o):o}function Lc(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i<n.length;){for(var o=n[i].interval,r=n[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-t),e=o[a],t=r[a];o[0]===o[1]&&r[0]*r[1]!==1?n.splice(i,1):i++}return n;function s(l,u,h){return l.interval[h]<u.interval[h]||l.interval[h]===u.interval[h]&&(l.close[h]-u.close[h]===(h?-1:1)||!h&&s(l,u,1))}}function Un(n){var e=parseFloat(n);return e==n&&(e!==0||!G(n)||n.indexOf("x")<=0)?e:NaN}function Oc(n){return!isNaN(Un(n))}function my(){return Math.round(Math.random()*9)}function xy(n,e){return e===0?n:xy(e,n%e)}function _y(n,e){return n==null?e:e==null?n:n*e/xy(n,e)}function te(n){throw new Error(n)}function by(n,e,t){return(e-n)*t+n}var wy="series\0",Sy="\0_ec_\0";function Dt(n){return n instanceof Array?n:n==null?[]:[n]}function pa(n,e,t){if(n){n[e]=n[e]||{},n.emphasis=n.emphasis||{},n.emphasis[e]=n.emphasis[e]||{};for(var i=0,o=t.length;i<o;i++){var r=t[i];!n.emphasis[e].hasOwnProperty(r)&&n[e].hasOwnProperty(r)&&(n.emphasis[e][r]=n[e][r])}}}var My=["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 $o(n){return j(n)&&!V(n)&&!(n instanceof Date)?n.value:n}function hI(n){return j(n)&&!(n instanceof Array)}function Ty(n,e,t){var i=t==="normalMerge",o=t==="replaceMerge",r=t==="replaceAll";n=n||[],e=(e||[]).slice();var a=X();M(e,function(l,u){if(!j(l)){e[u]=null;return}});var s=cI(n,a,t);return(i||o)&&pI(s,n,a,e),i&&dI(s,e),i||o?fI(s,e,o):r&&gI(s,e),vI(s),s}function cI(n,e,t){var i=[];if(t==="replaceAll")return i;for(var o=0;o<n.length;o++){var r=n[o];r&&r.id!=null&&e.set(r.id,o),i.push({existing:t==="replaceMerge"||fa(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}function pI(n,e,t,i){M(i,function(o,r){if(!(!o||o.id==null)){var a=da(o.id),s=t.get(a);if(s!=null){var l=n[s];Jt(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=o,l.existing=e[s],i[r]=null}}})}function dI(n,e){M(e,function(t,i){if(!(!t||t.name==null))for(var o=0;o<n.length;o++){var r=n[o].existing;if(!n[o].newOption&&r&&(r.id==null||t.id==null)&&!fa(t)&&!fa(r)&&Cy("name",r,t)){n[o].newOption=t,e[i]=null;return}}})}function fI(n,e,t){M(e,function(i){if(i){for(var o,r=0;(o=n[r])&&(o.newOption||fa(o.existing)||o.existing&&i.id!=null&&!Cy("id",i,o.existing));)r++;o?(o.newOption=i,o.brandNew=t):n.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),r++}})}function gI(n,e){M(e,function(t){n.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function vI(n){var e=X();M(n,function(t){var i=t.existing;i&&e.set(i.id,t)}),M(n,function(t){var i=t.newOption;Jt(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),M(n,function(t,i){var o=t.existing,r=t.newOption,a=t.keyInfo;if(j(r)){if(a.name=r.name!=null?da(r.name):o?o.name:wy+i,o)a.id=da(o.id);else if(r.id!=null)a.id=da(r.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(e.get(a.id))}e.set(a.id,t)}})}function Cy(n,e,t){var i=jt(e[n],null),o=jt(t[n],null);return i!=null&&o!=null&&i===o}function da(n){return jt(n,"")}function jt(n,e){return n==null?e:G(n)?n:vt(n)||Ls(n)?n+"":e}function Rc(n){var e=n.name;return!!(e&&e.indexOf(wy))}function fa(n){return n&&n.id!=null&&da(n.id).indexOf(Sy)===0}function yI(n){return Sy+n}function mI(n,e,t){M(n,function(i){var o=i.newOption;j(o)&&(i.keyInfo.mainType=e,i.keyInfo.subType=xI(e,o,i.existing,t))})}function xI(n,e,t,i){var o=e.type?e.type:t?t.subType:i.determineSubType(n,e);return o}function _I(n,e){var t={},i={};return o(n||[],t),o(e||[],i,t),[r(t),r(i)];function o(a,s,l){for(var u=0,h=a.length;u<h;u++){var c=jt(a[u].seriesId,null);if(c==null)return;for(var d=Dt(a[u].dataIndex),p=l&&l[c],f=0,g=d.length;f<g;f++){var v=d[f];p&&p[v]?p[v]=null:(s[c]||(s[c]={}))[v]=1}}}function r(a,s){var l=[];for(var u in a)if(a.hasOwnProperty(u)&&a[u]!=null)if(s)l.push(+u);else{var h=r(a[u],!0);h.length&&l.push({seriesId:u,dataIndex:h})}return l}}function Ui(n,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return V(e.dataIndex)?F(e.dataIndex,function(t){return n.indexOfRawIndex(t)}):n.indexOfRawIndex(e.dataIndex);if(e.name!=null)return V(e.name)?F(e.name,function(t){return n.indexOfName(t)}):n.indexOfName(e.name)}function _t(){var n="__ec_inner_"+bI++;return function(e){return e[n]||(e[n]={})}}var bI=my();function ga(n,e,t){var i=Nc(e,t),o=i.mainTypeSpecified,r=i.queryOptionMap,a=i.others,s=a,l=t?t.defaultMainType:null;return!o&&l&&r.set(l,{}),r.each(function(u,h){var c=va(n,h,u,{useDefault:l===h,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[h+"Models"]=c.models,s[h+"Model"]=c.models[0]}),s}function Nc(n,e){var t;if(G(n)){var i={};i[n+"Index"]=0,t=i}else t=n;var o=X(),r={},a=!1;return M(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){r[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],h=u[1],c=(u[2]||"").toLowerCase();if(!(!h||!c||e&&e.includeMainTypes&<(e.includeMainTypes,h)<0)){a=a||!!h;var d=o.get(h)||o.set(h,{});d[c]=s}}),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var Bt={useDefault:!0,enableAll:!1,enableNone:!1},wI={useDefault:!1,enableAll:!0,enableNone:!0};function va(n,e,t,i){i=i||Bt;var o=t.index,r=t.id,a=t.name,s={models:null,specified:o!=null||r!=null||a!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=n.getComponent(e))?[l]:[],s}return o==="none"||o===!1?(Jt(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(o==="all"&&(Jt(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=a=null),s.models=n.queryComponents({mainType:e,index:o,id:r,name:a}),s)}function Iy(n,e,t){n.setAttribute?n.setAttribute(e,t):n[e]=t}function SI(n,e){return n.getAttribute?n.getAttribute(e):n[e]}function MI(n){return n==="auto"?ct.domSupported?"html":"richText":n||"html"}function TI(n,e){var t=X(),i=[];return M(n,function(o){var r=e(o);(t.get(r)||(i.push(r),t.set(r,[]))).push(o)}),{keys:i,buckets:t}}function Ay(n,e,t,i,o){var r=e==null||e==="auto";if(i==null)return i;if(vt(i)){var a=by(t||0,i,o);return kt(a,r?Math.max(_n(t||0),_n(i)):e)}else{if(G(i))return o<1?t:i;for(var s=[],l=t,u=i,h=Math.max(l?l.length:0,u.length),c=0;c<h;++c){var d=n.getDimensionInfo(c);if(d&&d.type==="ordinal")s[c]=(o<1&&l?l:u)[c];else{var p=l&&l[c]?l[c]:0,f=u[c],a=by(p,f,o);s[c]=kt(a,r?Math.max(_n(p),_n(f)):e)}}return s}}var CI=".",Xi="___EC__COMPONENT__CONTAINER___",Dy="___EC__EXTENDED_CLASS___";function bn(n){var e={main:"",sub:""};if(n){var t=n.split(CI);e.main=t[0]||"",e.sub=t[1]||""}return e}function II(n){Jt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function AI(n){return!!(n&&n[Dy])}function zc(n,e){n.$constructor=n,n.extend=function(t){var i=this,o;return DI(i)?o=function(r){z(a,r);function a(){return r.apply(this,arguments)||this}return a}(i):(o=function(){(t.$constructor||i).apply(this,arguments)},Ch(o,this)),N(o.prototype,t),o[Dy]=!0,o.extend=this.extend,o.superCall=LI,o.superApply=OI,o.superClass=i,o}}function DI(n){return $(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function ky(n,e){n.extend=e.extend}var kI=Math.round(Math.random()*10);function PI(n){var e=["__\0is_clz",kI++].join("_");n.prototype[e]=!0,n.isInstance=function(t){return!!(t&&t[e])}}function LI(n,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(n,t)}function OI(n,e,t){return this.superClass.prototype[e].apply(n,t)}function ul(n){var e={};n.registerClass=function(i){var o=i.type||i.prototype.type;if(o){II(o),i.prototype.type=o;var r=bn(o);if(!r.sub)e[r.main]=i;else if(r.sub!==Xi){var a=t(r);a[r.sub]=i}}return i},n.getClass=function(i,o,r){var a=e[i];if(a&&a[Xi]&&(a=o?a[o]:null),r&&!a)throw new Error(o?"Component "+i+"."+(o||"")+" is used but not imported.":i+".type should be specified.");return a},n.getClassesByMainType=function(i){var o=bn(i),r=[],a=e[o.main];return a&&a[Xi]?M(a,function(s,l){l!==Xi&&r.push(s)}):r.push(a),r},n.hasClass=function(i){var o=bn(i);return!!e[o.main]},n.getAllClassMainTypes=function(){var i=[];return M(e,function(o,r){i.push(r)}),i},n.hasSubTypes=function(i){var o=bn(i),r=e[o.main];return r&&r[Xi]};function t(i){var o=e[i.main];return(!o||!o[Xi])&&(o=e[i.main]={},o[Xi]=!0),o}}function Zi(n,e){for(var t=0;t<n.length;t++)n[t][1]||(n[t][1]=n[t][0]);return e=e||!1,function(i,o,r){for(var a={},s=0;s<n.length;s++){var l=n[s][1];if(!(o&<(o,l)>=0||r&<(r,l)<0)){var u=i.getShallow(l,e);u!=null&&(a[n[s][0]]=u)}}return a}}var RI=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],NI=Zi(RI),zI=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return NI(this,e,t)},n}(),Bc=new ta(50);function BI(n){if(typeof n=="string"){var e=Bc.get(n);return e&&e.image}else return n}function Ec(n,e,t,i,o){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var r=Bc.get(n),a={hostEl:t,cb:i,cbPayload:o};return r?(e=r.image,!hl(e)&&r.pending.push(a)):(e=Fn.loadImage(n,Py,Py),e.__zrImageSrc=n,Bc.put(n,e.__cachedImgObj={image:e,pending:[a]})),e}else return n;else return e}function Py(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<n.pending.length;e++){var t=n.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}n.pending.length=0}function hl(n){return n&&n.width&&n.height}var Vc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ly(n,e,t,i,o){if(!e)return"";var r=(n+"").split(`
- `);o=Oy(e,t,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=Ry(r[a],o);return r.join(`
- `)}function Oy(n,e,t,i){i=i||{};var o=N({},i);o.font=e,t=J(t,"..."),o.maxIterations=J(i.maxIterations,2);var r=o.minChar=J(i.minChar,0);o.cnCharWidth=Me("\u56FD",e);var a=o.ascCharWidth=Me("a",e);o.placeholder=J(i.placeholder,"");for(var s=n=Math.max(0,n-1),l=0;l<r&&s>=a;l++)s-=a;var u=Me(t,e);return u>s&&(t="",u=0),s=n-u,o.ellipsis=t,o.ellipsisWidth=u,o.contentWidth=s,o.containerWidth=n,o}function Ry(n,e){var t=e.containerWidth,i=e.font,o=e.contentWidth;if(!t)return"";var r=Me(n,i);if(r<=t)return n;for(var a=0;;a++){if(r<=o||a>=e.maxIterations){n+=e.ellipsis;break}var s=a===0?EI(n,o,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(n.length*o/r):0;n=n.substr(0,s),r=Me(n,i)}return n===""&&(n=e.placeholder),n}function EI(n,e,t,i){for(var o=0,r=0,a=n.length;r<a&&o<e;r++){var s=n.charCodeAt(r);o+=0<=s&&s<=127?t:i}return r}function VI(n,e){n!=null&&(n+="");var t=e.overflow,i=e.padding,o=e.font,r=t==="truncate",a=rl(o),s=J(e.lineHeight,a),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",h=e.width,c;h!=null&&(t==="break"||t==="breakAll")?c=n?zy(n,e.font,h,t==="breakAll",0).lines:[]:c=n?n.split(`
- `):[];var d=c.length*s,p=J(e.height,d);if(d>p&&u){var f=Math.floor(p/s);c=c.slice(0,f)}if(n&&r&&h!=null)for(var g=Oy(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<c.length;v++)c[v]=Ry(c[v],g);for(var y=p,m=0,v=0;v<c.length;v++)m=Math.max(Me(c[v],o),m);h==null&&(h=m);var x=m;return i&&(y+=i[0]+i[2],x+=i[1]+i[3],h+=i[1]+i[3]),l&&(x=h),{lines:c,height:p,outerWidth:x,outerHeight:y,lineHeight:s,calculatedLineHeight:a,contentWidth:m,contentHeight:d,width:h}}var FI=function(){function n(){}return n}(),Ny=function(){function n(e){this.tokens=[],e&&(this.tokens=e)}return n}(),WI=function(){function n(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return n}();function GI(n,e){var t=new WI;if(n!=null&&(n+=""),!n)return t;for(var i=e.width,o=e.height,r=e.overflow,a=(r==="break"||r==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:r==="breakAll"}:null,s=Vc.lastIndex=0,l;(l=Vc.exec(n))!=null;){var u=l.index;u>s&&Fc(t,n.substring(s,u),e,a),Fc(t,l[2],e,a,l[1]),s=Vc.lastIndex}s<n.length&&Fc(t,n.substring(s,n.length),e,a);var h=[],c=0,d=0,p=e.padding,f=r==="truncate",g=e.lineOverflow==="truncate";function v(R,B,W){R.width=B,R.lineHeight=W,c+=W,d=Math.max(d,B)}t:for(var y=0;y<t.lines.length;y++){for(var m=t.lines[y],x=0,_=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&e.rich[b.styleName]||{},T=b.textPadding=S.padding,I=T?T[1]+T[3]:0,C=b.font=S.font||e.font;b.contentHeight=rl(C);var A=J(S.height,b.contentHeight);if(b.innerHeight=A,T&&(A+=T[0]+T[2]),b.height=A,b.lineHeight=Ni(S.lineHeight,e.lineHeight,A),b.align=S&&S.align||e.align,b.verticalAlign=S&&S.verticalAlign||"middle",g&&o!=null&&c+b.lineHeight>o){w>0?(m.tokens=m.tokens.slice(0,w),v(m,_,x),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var D=S.width,k=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")b.percentWidth=D,h.push(b),b.contentWidth=Me(b.text,C);else{if(k){var P=S.backgroundColor,L=P&&P.image;L&&(L=BI(L),hl(L)&&(b.width=Math.max(b.width,L.width*A/L.height)))}var O=f&&i!=null?i-_:null;O!=null&&O<b.width?!k||O<I?(b.text="",b.width=b.contentWidth=0):(b.text=Ly(b.text,O-I,C,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=Me(b.text,C)):b.contentWidth=Me(b.text,C)}b.width+=I,_+=b.width,S&&(x=Math.max(x,b.lineHeight))}v(m,_,x)}t.outerWidth=t.width=J(i,d),t.outerHeight=t.height=J(o,c),t.contentHeight=c,t.contentWidth=d,p&&(t.outerWidth+=p[1]+p[3],t.outerHeight+=p[0]+p[2]);for(var y=0;y<h.length;y++){var b=h[y],E=b.percentWidth;b.width=parseInt(E,10)/100*t.width}return t}function Fc(n,e,t,i,o){var r=e==="",a=o&&t.rich[o]||{},s=n.lines,l=a.font||t.font,u=!1,h,c;if(i){var d=a.padding,p=d?d[1]+d[3]:0;if(a.width!=null&&a.width!=="auto"){var f=en(a.width,i.width)+p;s.length>0&&f+i.accumWidth>i.width&&(h=e.split(`
- `),u=!0),i.accumWidth=f}else{var g=zy(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,c=g.linesWidths,h=g.lines}}else h=e.split(`
- `);for(var v=0;v<h.length;v++){var y=h[v],m=new FI;if(m.styleName=o,m.text=y,m.isLineHolder=!y&&!r,typeof a.width=="number"?m.width=a.width:m.width=c?c[v]:Me(y,l),!v&&!u){var x=(s[s.length-1]||(s[0]=new Ny)).tokens,_=x.length;_===1&&x[0].isLineHolder?x[0]=m:(y||!_||r)&&x.push(m)}else s.push(new Ny([m]))}}function HI(n){var e=n.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var YI=Ae(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function UI(n){return HI(n)?!!YI[n]:!0}function zy(n,e,t,i,o){for(var r=[],a=[],s="",l="",u=0,h=0,c=0;c<n.length;c++){var d=n.charAt(c);if(d===`
- `){l&&(s+=l,h+=u),r.push(s),a.push(h),s="",l="",u=0,h=0;continue}var p=Me(d,e),f=i?!1:!UI(d);if(r.length?h+p>t:o+h+p>t){h?(s||l)&&(f?(s||(s=l,l="",u=0,h=u),r.push(s),a.push(h-u),l+=d,u+=p,s="",h=u):(l&&(s+=l,l="",u=0),r.push(s),a.push(h),s=d,h=p)):f?(r.push(l),a.push(u),l=d,u=p):(r.push(d),a.push(p));continue}h+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d)}return!r.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(r.push(s),a.push(h)),r.length===1&&(h+=o),{accumWidth:h,lines:r,linesWidths:a}}var Wc="__zr_style_"+Math.round(Math.random()*10),ji={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},cl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ji[Wc]=!0;var By=["z","z2","invisible"],XI=["invisible"],ZI=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var i=at(t),o=0;o<i.length;o++){var r=i[o];r==="style"?this.useStyle(t[r]):n.prototype.attrKV.call(this,r,t[r])}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,i,o,r){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&jI(this,t,i)||a&&!a[0]&&!a[3])return!1;if(o&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(r&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();return r.contain(o[0],o[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,o=this.getBoundingRect(),r=this.style,a=r.shadowBlur||0,s=r.shadowOffsetX||0,l=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ut(0,0,0,0)),i?ut.applyTransform(t,o,i):t.copy(o),(a||s||l)&&(t.width+=a*2+Math.abs(s),t.height+=a*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-a),t.y=Math.min(t.y,t.y+l-a));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 ut(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,i){t!=="style"?n.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:N(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=$r,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&$r)},e.prototype.styleUpdated=function(){this.__dirty&=~$r},e.prototype.createStyle=function(t){return Wr(ji,t)},e.prototype.useStyle=function(t){t[Wc]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Wc]},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,By)},e.prototype._applyStateObj=function(t,i,o,r,a,s){n.prototype._applyStateObj.call(this,t,i,o,r,a,s);var l=!(i&&r),u;if(i&&i.style?a?r?u=i.style:(u=this._mergeStyle(this.createStyle(),o.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),r?this.style:o.style),this._mergeStyle(u,i.style)):l&&(u=o.style),u)if(a){var h=this.style;if(this.style=this.createStyle(l?{}:h),l)for(var c=at(h),d=0;d<c.length;d++){var p=c[d];p in u&&(u[p]=u[p],this.style[p]=h[p])}for(var f=at(u),d=0;d<f.length;d++){var p=f[d];this.style[p]=this.style[p]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?XI:By,d=0;d<g.length;d++){var p=g[d];i&&i[p]!=null?this[p]=i[p]:l&&o[p]!=null&&(this[p]=o[p])}},e.prototype._mergeStates=function(t){for(var i=n.prototype._mergeStates.call(this,t),o,r=0;r<t.length;r++){var a=t[r];a.style&&(o=o||{},this._mergeStyle(o,a.style))}return o&&(i.style=o),i},e.prototype._mergeStyle=function(t,i){return N(t,i),t},e.prototype.getAnimationStyleProps=function(){return cl},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=$e|$r}(),e}(ly),Gc=new ut(0,0,0,0),Hc=new ut(0,0,0,0);function jI(n,e,t){return Gc.copy(n.getBoundingRect()),n.transform&&Gc.applyTransform(n.transform),Hc.width=e,Hc.height=t,!Gc.intersect(Hc)}const wn=ZI;var xe=Math.min,_e=Math.max,Yc=Math.sin,Uc=Math.cos,qi=Math.PI*2,pl=ri(),dl=ri(),fl=ri();function qI(n,e,t){if(n.length!==0){for(var i=n[0],o=i[0],r=i[0],a=i[1],s=i[1],l=1;l<n.length;l++)i=n[l],o=xe(o,i[0]),r=_e(r,i[0]),a=xe(a,i[1]),s=_e(s,i[1]);e[0]=o,e[1]=a,t[0]=r,t[1]=s}}function Ey(n,e,t,i,o,r){o[0]=xe(n,t),o[1]=xe(e,i),r[0]=_e(n,t),r[1]=_e(e,i)}var Vy=[],Fy=[];function KI(n,e,t,i,o,r,a,s,l,u){var h=Lv,c=Vt,d=h(n,t,o,a,Vy);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=c(n,t,o,a,Vy[p]);l[0]=xe(f,l[0]),u[0]=_e(f,u[0])}d=h(e,i,r,s,Fy);for(var p=0;p<d;p++){var g=c(e,i,r,s,Fy[p]);l[1]=xe(g,l[1]),u[1]=_e(g,u[1])}l[0]=xe(n,l[0]),u[0]=_e(n,u[0]),l[0]=xe(a,l[0]),u[0]=_e(a,u[0]),l[1]=xe(e,l[1]),u[1]=_e(e,u[1]),l[1]=xe(s,l[1]),u[1]=_e(s,u[1])}function $I(n,e,t,i,o,r,a,s){var l=Rv,u=Zt,h=_e(xe(l(n,t,o),1),0),c=_e(xe(l(e,i,r),1),0),d=u(n,t,o,h),p=u(e,i,r,c);a[0]=xe(n,o,d),a[1]=xe(e,r,p),s[0]=_e(n,o,d),s[1]=_e(e,r,p)}function QI(n,e,t,i,o,r,a,s,l){var u=Wn,h=Gn,c=Math.abs(o-r);if(c%qi<1e-4&&c>1e-4){s[0]=n-t,s[1]=e-i,l[0]=n+t,l[1]=e+i;return}if(pl[0]=Uc(o)*t+n,pl[1]=Yc(o)*i+e,dl[0]=Uc(r)*t+n,dl[1]=Yc(r)*i+e,u(s,pl,dl),h(l,pl,dl),o=o%qi,o<0&&(o=o+qi),r=r%qi,r<0&&(r=r+qi),o>r&&!a?r+=qi:o<r&&a&&(o+=qi),a){var d=r;r=o,o=d}for(var p=0;p<r;p+=Math.PI/2)p>o&&(fl[0]=Uc(p)*t+n,fl[1]=Yc(p)*i+e,u(s,fl,s),h(l,fl,l))}var bt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ki=[],$i=[],Sn=[],di=[],Mn=[],Tn=[],Xc=Math.min,Zc=Math.max,Qi=Math.cos,Ji=Math.sin,Xn=Math.abs,jc=Math.PI,fi=jc*2,qc=typeof Float32Array<"u",ya=[];function Kc(n){var e=Math.round(n/jc*1e8)/1e8;return e%2*jc}function $c(n,e){var t=Kc(n[0]);t<0&&(t+=fi);var i=t-n[0],o=n[1];o+=i,!e&&o-t>=fi?o=t+fi:e&&t-o>=fi?o=t-fi:!e&&t>o?o=t+(fi-Kc(t-o)):e&&t<o&&(o=t-(fi-Kc(o-t))),n[0]=t,n[1]=o}var JI=function(){function n(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 n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(e,t,i){i=i||0,i>0&&(this._ux=Xn(i/vc/e)||0,this._uy=Xn(i/vc/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(bt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var i=Xn(e-this._xi),o=Xn(t-this._yi),r=i>this._ux||o>this._uy;if(this.addData(bt.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=i*i+o*o;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(e,t,i,o,r,a){return this._drawPendingPt(),this.addData(bt.C,e,t,i,o,r,a),this._ctx&&this._ctx.bezierCurveTo(e,t,i,o,r,a),this._xi=r,this._yi=a,this},n.prototype.quadraticCurveTo=function(e,t,i,o){return this._drawPendingPt(),this.addData(bt.Q,e,t,i,o),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,o),this._xi=i,this._yi=o,this},n.prototype.arc=function(e,t,i,o,r,a){this._drawPendingPt(),ya[0]=o,ya[1]=r,$c(ya,a),o=ya[0],r=ya[1];var s=r-o;return this.addData(bt.A,e,t,i,i,o,s,0,a?0:1),this._ctx&&this._ctx.arc(e,t,i,o,r,a),this._xi=Qi(r)*i+e,this._yi=Ji(r)*i+t,this},n.prototype.arcTo=function(e,t,i,o,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,o,r),this},n.prototype.rect=function(e,t,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,o),this.addData(bt.R,e,t,i,o),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(bt.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&qc&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},n.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,i=0,o=this._len,r=0;r<t;r++)i+=e[r].len();qc&&this.data instanceof Float32Array&&(this.data=new Float32Array(o+i));for(var r=0;r<t;r++)for(var a=e[r].data,s=0;s<a.length;s++)this.data[o++]=a[s];this._len=o},n.prototype.addData=function(e,t,i,o,r,a,s,l,u){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var c=0;c<arguments.length;c++)h[this._len++]=arguments[c]}},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.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}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,qc&&this._len>11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){Sn[0]=Sn[1]=Mn[0]=Mn[1]=Number.MAX_VALUE,di[0]=di[1]=Tn[0]=Tn[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,o=0,r=0,a;for(a=0;a<this._len;){var s=e[a++],l=a===1;switch(l&&(t=e[a],i=e[a+1],o=t,r=i),s){case bt.M:t=o=e[a++],i=r=e[a++],Mn[0]=o,Mn[1]=r,Tn[0]=o,Tn[1]=r;break;case bt.L:Ey(t,i,e[a],e[a+1],Mn,Tn),t=e[a++],i=e[a++];break;case bt.C:KI(t,i,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Mn,Tn),t=e[a++],i=e[a++];break;case bt.Q:$I(t,i,e[a++],e[a++],e[a],e[a+1],Mn,Tn),t=e[a++],i=e[a++];break;case bt.A:var u=e[a++],h=e[a++],c=e[a++],d=e[a++],p=e[a++],f=e[a++]+p;a+=1;var g=!e[a++];l&&(o=Qi(p)*c+u,r=Ji(p)*d+h),QI(u,h,c,d,p,f,g,Mn,Tn),t=Qi(f)*c+u,i=Ji(f)*d+h;break;case bt.R:o=t=e[a++],r=i=e[a++];var v=e[a++],y=e[a++];Ey(o,r,o+v,r+y,Mn,Tn);break;case bt.Z:t=o,i=r;break}Wn(Sn,Sn,Mn),Gn(di,di,Tn)}return a===0&&(Sn[0]=Sn[1]=di[0]=di[1]=0),new ut(Sn[0],Sn[1],di[0]-Sn[0],di[1]-Sn[1])},n.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,o=this._uy,r=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,h=0,c=0,d=0;d<t;){var p=e[d++],f=d===1;f&&(r=e[d],a=e[d+1],s=r,l=a);var g=-1;switch(p){case bt.M:r=s=e[d++],a=l=e[d++];break;case bt.L:{var v=e[d++],y=e[d++],m=v-r,x=y-a;(Xn(m)>i||Xn(x)>o||d===t-1)&&(g=Math.sqrt(m*m+x*x),r=v,a=y);break}case bt.C:{var _=e[d++],w=e[d++],v=e[d++],y=e[d++],b=e[d++],S=e[d++];g=oC(r,a,_,w,v,y,b,S,10),r=b,a=S;break}case bt.Q:{var _=e[d++],w=e[d++],v=e[d++],y=e[d++];g=aC(r,a,_,w,v,y,10),r=v,a=y;break}case bt.A:var T=e[d++],I=e[d++],C=e[d++],A=e[d++],D=e[d++],k=e[d++],P=k+D;d+=1,f&&(s=Qi(D)*C+T,l=Ji(D)*A+I),g=Zc(C,A)*Xc(fi,Math.abs(k)),r=Qi(P)*C+T,a=Ji(P)*A+I;break;case bt.R:{s=r=e[d++],l=a=e[d++];var L=e[d++],O=e[d++];g=L*2+O*2;break}case bt.Z:{var m=s-r,x=l-a;g=Math.sqrt(m*m+x*x),r=s,a=l;break}}g>=0&&(u[c++]=g,h+=g)}return this._pathLen=h,h},n.prototype.rebuildPath=function(e,t){var i=this.data,o=this._ux,r=this._uy,a=this._len,s,l,u,h,c,d,p=t<1,f,g,v=0,y=0,m,x=0,_,w;if(!(p&&(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,g=this._pathLen,m=t*g,!m)))t:for(var b=0;b<a;){var S=i[b++],T=b===1;switch(T&&(u=i[b],h=i[b+1],s=u,l=h),S!==bt.L&&x>0&&(e.lineTo(_,w),x=0),S){case bt.M:s=u=i[b++],l=h=i[b++],e.moveTo(u,h);break;case bt.L:{c=i[b++],d=i[b++];var I=Xn(c-u),C=Xn(d-h);if(I>o||C>r){if(p){var A=f[y++];if(v+A>m){var D=(m-v)/A;e.lineTo(u*(1-D)+c*D,h*(1-D)+d*D);break t}v+=A}e.lineTo(c,d),u=c,h=d,x=0}else{var k=I*I+C*C;k>x&&(_=c,w=d,x=k)}break}case bt.C:{var P=i[b++],L=i[b++],O=i[b++],E=i[b++],R=i[b++],B=i[b++];if(p){var A=f[y++];if(v+A>m){var D=(m-v)/A;Qr(u,P,O,R,D,Ki),Qr(h,L,E,B,D,$i),e.bezierCurveTo(Ki[1],$i[1],Ki[2],$i[2],Ki[3],$i[3]);break t}v+=A}e.bezierCurveTo(P,L,O,E,R,B),u=R,h=B;break}case bt.Q:{var P=i[b++],L=i[b++],O=i[b++],E=i[b++];if(p){var A=f[y++];if(v+A>m){var D=(m-v)/A;Jr(u,P,O,D,Ki),Jr(h,L,E,D,$i),e.quadraticCurveTo(Ki[1],$i[1],Ki[2],$i[2]);break t}v+=A}e.quadraticCurveTo(P,L,O,E),u=O,h=E;break}case bt.A:var W=i[b++],Z=i[b++],Q=i[b++],ot=i[b++],st=i[b++],St=i[b++],mt=i[b++],Qt=!i[b++],Gt=Q>ot?Q:ot,Pt=Xn(Q-ot)>.001,It=st+St,tt=!1;if(p){var A=f[y++];v+A>m&&(It=st+St*(m-v)/A,tt=!0),v+=A}if(Pt&&e.ellipse?e.ellipse(W,Z,Q,ot,mt,st,It,Qt):e.arc(W,Z,Gt,st,It,Qt),tt)break t;T&&(s=Qi(st)*Q+W,l=Ji(st)*ot+Z),u=Qi(It)*Q+W,h=Ji(It)*ot+Z;break;case bt.R:s=u=i[b],l=h=i[b+1],c=i[b++],d=i[b++];var ht=i[b++],ve=i[b++];if(p){var A=f[y++];if(v+A>m){var Lt=m-v;e.moveTo(c,d),e.lineTo(c+Xc(Lt,ht),d),Lt-=ht,Lt>0&&e.lineTo(c+ht,d+Xc(Lt,ve)),Lt-=ve,Lt>0&&e.lineTo(c+Zc(ht-Lt,0),d+ve),Lt-=ht,Lt>0&&e.lineTo(c,d+Zc(ve-Lt,0));break t}v+=A}e.rect(c,d,ht,ve);break;case bt.Z:if(p){var A=f[y++];if(v+A>m){var D=(m-v)/A;e.lineTo(u*(1-D)+s*D,h*(1-D)+l*D);break t}v+=A}e.closePath(),u=s,h=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=bt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();const Cn=JI;function to(n,e,t,i,o,r,a){if(o===0)return!1;var s=o,l=0,u=n;if(a>e+s&&a>i+s||a<e-s&&a<i-s||r>n+s&&r>t+s||r<n-s&&r<t-s)return!1;if(n!==t)l=(e-i)/(n-t),u=(n*i-t*e)/(n-t);else return Math.abs(r-n)<=s/2;var h=l*r-a+u,c=h*h/(l*l+1);return c<=s/2*s/2}function tA(n,e,t,i,o,r,a,s,l,u,h){if(l===0)return!1;var c=l;if(h>e+c&&h>i+c&&h>r+c&&h>s+c||h<e-c&&h<i-c&&h<r-c&&h<s-c||u>n+c&&u>t+c&&u>o+c&&u>a+c||u<n-c&&u<t-c&&u<o-c&&u<a-c)return!1;var d=Ov(n,e,t,i,o,r,a,s,u,h,null);return d<=c/2}function Wy(n,e,t,i,o,r,a,s,l){if(a===0)return!1;var u=a;if(l>e+u&&l>i+u&&l>r+u||l<e-u&&l<i-u&&l<r-u||s>n+u&&s>t+u&&s>o+u||s<n-u&&s<t-u&&s<o-u)return!1;var h=Nv(n,e,t,i,o,r,s,l,null);return h<=u/2}var Gy=Math.PI*2;function Zn(n){return n%=Gy,n<0&&(n+=Gy),n}var ma=Math.PI*2;function eA(n,e,t,i,o,r,a,s,l){if(a===0)return!1;var u=a;s-=n,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>t||h+u<t)return!1;if(Math.abs(i-o)%ma<1e-4)return!0;if(r){var c=i;i=Zn(o),o=Zn(c)}else i=Zn(i),o=Zn(o);i>o&&(o+=ma);var d=Math.atan2(l,s);return d<0&&(d+=ma),d>=i&&d<=o||d+ma>=i&&d+ma<=o}function jn(n,e,t,i,o,r){if(r>e&&r>i||r<e&&r<i||i===e)return 0;var a=(r-e)/(i-e),s=i<e?1:-1;(a===1||a===0)&&(s=i<e?.5:-.5);var l=a*(t-n)+n;return l===o?1/0:l>o?s:0}var gi=Cn.CMD,eo=Math.PI*2,nA=1e-4;function iA(n,e){return Math.abs(n-e)<nA}var he=[-1,-1,-1],Ne=[-1,-1];function oA(){var n=Ne[0];Ne[0]=Ne[1],Ne[1]=n}function rA(n,e,t,i,o,r,a,s,l,u){if(u>e&&u>i&&u>r&&u>s||u<e&&u<i&&u<r&&u<s)return 0;var h=Xs(e,i,r,s,u,he);if(h===0)return 0;for(var c=0,d=-1,p=void 0,f=void 0,g=0;g<h;g++){var v=he[g],y=v===0||v===1?.5:1,m=Vt(n,t,o,a,v);m<l||(d<0&&(d=Lv(e,i,r,s,Ne),Ne[1]<Ne[0]&&d>1&&oA(),p=Vt(e,i,r,s,Ne[0]),d>1&&(f=Vt(e,i,r,s,Ne[1]))),d===2?v<Ne[0]?c+=p<e?y:-y:v<Ne[1]?c+=f<p?y:-y:c+=s<f?y:-y:v<Ne[0]?c+=p<e?y:-y:c+=s<p?y:-y)}return c}function aA(n,e,t,i,o,r,a,s){if(s>e&&s>i&&s>r||s<e&&s<i&&s<r)return 0;var l=rC(e,i,r,s,he);if(l===0)return 0;var u=Rv(e,i,r);if(u>=0&&u<=1){for(var h=0,c=Zt(e,i,r,u),d=0;d<l;d++){var p=he[d]===0||he[d]===1?.5:1,f=Zt(n,t,o,he[d]);f<a||(he[d]<u?h+=c<e?p:-p:h+=r<c?p:-p)}return h}else{var p=he[0]===0||he[0]===1?.5:1,f=Zt(n,t,o,he[0]);return f<a?0:r<e?p:-p}}function sA(n,e,t,i,o,r,a,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);he[0]=-l,he[1]=l;var u=Math.abs(i-o);if(u<1e-4)return 0;if(u>=eo-1e-4){i=0,o=eo;var h=r?1:-1;return a>=he[0]+n&&a<=he[1]+n?h:0}if(i>o){var c=i;i=o,o=c}i<0&&(i+=eo,o+=eo);for(var d=0,p=0;p<2;p++){var f=he[p];if(f+n>a){var g=Math.atan2(s,f),h=r?1:-1;g<0&&(g=eo+g),(g>=i&&g<=o||g+eo>=i&&g+eo<=o)&&(g>Math.PI/2&&g<Math.PI*1.5&&(h=-h),d+=h)}}return d}function Hy(n,e,t,i,o){for(var r=n.data,a=n.len(),s=0,l=0,u=0,h=0,c=0,d,p,f=0;f<a;){var g=r[f++],v=f===1;switch(g===gi.M&&f>1&&(t||(s+=jn(l,u,h,c,i,o))),v&&(l=r[f],u=r[f+1],h=l,c=u),g){case gi.M:h=r[f++],c=r[f++],l=h,u=c;break;case gi.L:if(t){if(to(l,u,r[f],r[f+1],e,i,o))return!0}else s+=jn(l,u,r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case gi.C:if(t){if(tA(l,u,r[f++],r[f++],r[f++],r[f++],r[f],r[f+1],e,i,o))return!0}else s+=rA(l,u,r[f++],r[f++],r[f++],r[f++],r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case gi.Q:if(t){if(Wy(l,u,r[f++],r[f++],r[f],r[f+1],e,i,o))return!0}else s+=aA(l,u,r[f++],r[f++],r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case gi.A:var y=r[f++],m=r[f++],x=r[f++],_=r[f++],w=r[f++],b=r[f++];f+=1;var S=!!(1-r[f++]);d=Math.cos(w)*x+y,p=Math.sin(w)*_+m,v?(h=d,c=p):s+=jn(l,u,d,p,i,o);var T=(i-y)*_/x+y;if(t){if(eA(y,m,_,w,w+b,S,e,T,o))return!0}else s+=sA(y,m,_,w,w+b,S,T,o);l=Math.cos(w+b)*x+y,u=Math.sin(w+b)*_+m;break;case gi.R:h=l=r[f++],c=u=r[f++];var I=r[f++],C=r[f++];if(d=h+I,p=c+C,t){if(to(h,c,d,c,e,i,o)||to(d,c,d,p,e,i,o)||to(d,p,h,p,e,i,o)||to(h,p,h,c,e,i,o))return!0}else s+=jn(d,c,d,p,i,o),s+=jn(h,p,h,c,i,o);break;case gi.Z:if(t){if(to(l,u,h,c,e,i,o))return!0}else s+=jn(l,u,h,c,i,o);l=h,u=c;break}}return!t&&!iA(u,c)&&(s+=jn(l,u,h,c,i,o)||0),s!==0}function lA(n,e,t){return Hy(n,0,!1,e,t)}function uA(n,e,t,i){return Hy(n,e,!0,t,i)}var gl=K({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ji),hA={style:K({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},cl.style)},Qc=mn.concat(["invisible","culling","z","z2","zlevel","parent"]),cA=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var i=this.style;if(i.decal){var o=this._decalEl=this._decalEl||new e;o.buildPath===e.prototype.buildPath&&(o.buildPath=function(l){t.buildPath(l,t.shape)}),o.silent=!0;var r=o.style;for(var a in i)r[a]!==i[a]&&(r[a]=i[a]);r.fill=i.fill?i.decal:null,r.decal=null,r.shadowColor=null,i.strokeFirst&&(r.stroke=null);for(var s=0;s<Qc.length;++s)o[Qc[s]]=this[Qc[s]];o.__dirty|=$e}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=at(t);this.shape=this.getDefaultShape();var o=this.getDefaultStyle();o&&this.useStyle(o);for(var r=0;r<i.length;r++){var a=i[r],s=t[a];a==="style"?this.style?N(this.style,s):this.useStyle(s):a==="shape"?N(this.shape,s):n.prototype.attrKV.call(this,a,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(G(t)){var i=oa(t,0);return i>.5?mc:i>.2?GC:xc}else if(t)return xc}return mc},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(G(i)){var o=this.__zr,r=!!(o&&o.isDarkMode()),a=oa(t,0)<yc;if(r===a)return i}},e.prototype.buildPath=function(t,i,o){},e.prototype.pathUpdated=function(){this.__dirty&=~Yo},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 Cn(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,o=!t;if(o){var r=!1;this.path||(r=!0,this.createPathProxy());var a=this.path;(r||this.__dirty&Yo)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),t=a.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||o){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;u=Math.max(u,h!=null?h: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,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect(),a=this.style;if(t=o[0],i=o[1],r.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),uA(s,l/u,t,i)))return!0}if(this.hasFill())return lA(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Yo,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,i){t==="shape"?this.setShape(i):n.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var o=this.shape;return o||(o=this.shape={}),typeof t=="string"?o[t]=i:N(o,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Yo)},e.prototype.createStyle=function(t){return Wr(gl,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=N({},this.shape))},e.prototype._applyStateObj=function(t,i,o,r,a,s){n.prototype._applyStateObj.call(this,t,i,o,r,a,s);var l=!(i&&r),u;if(i&&i.shape?a?r?u=i.shape:(u=N({},o.shape),N(u,i.shape)):(u=N({},r?this.shape:o.shape),N(u,i.shape)):l&&(u=o.shape),u)if(a){this.shape=N({},this.shape);for(var h={},c=at(u),d=0;d<c.length;d++){var p=c[d];typeof u[p]=="object"?this.shape[p]=u[p]:h[p]=u[p]}this._transitionState(t,{shape:h},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var i=n.prototype._mergeStates.call(this,t),o,r=0;r<t.length;r++){var a=t[r];a.shape&&(o=o||{},this._mergeStyle(o,a.shape))}return o&&(i.shape=o),i},e.prototype.getAnimationStyleProps=function(){return hA},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(r){Mt(a,r);function a(s){var l=r.call(this,s)||this;return t.init&&t.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return q(t.style)},a.prototype.getDefaultShape=function(){return q(t.shape)},a}(e);for(var o in t)typeof t[o]=="function"&&(i.prototype[o]=t[o]);return i},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=$e|$r|Yo}(),e}(wn);const gt=cA;var pA=K({strokeFirst:!0,font:oi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},gl),Yy=function(n){Mt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return i!=null&&i!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Wr(pA,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var o=ua(i,t.font,t.textAlign,t.textBaseline);if(o.x+=t.x||0,o.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;o.x-=r/2,o.y-=r/2,o.width+=r,o.height+=r}this._rect=o}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(wn);Yy.prototype.type="tspan";const xa=Yy;var dA=K({x:0,y:0},ji),fA={style:K({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},cl.style)};function gA(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var Uy=function(n){Mt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Wr(dA,t)},e.prototype._getSize=function(t){var i=this.style,o=i[t];if(o!=null)return o;var r=gA(i.image)?i.image:this.__image;if(!r)return 0;var a=t==="width"?"height":"width",s=i[a];return s==null?r[t]:r[t]/r[a]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return fA},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ut(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(wn);Uy.prototype.type="image";const ee=Uy;function vA(n,e){var t=e.x,i=e.y,o=e.width,r=e.height,a=e.r,s,l,u,h;o<0&&(t=t+o,o=-o),r<0&&(i=i+r,r=-r),typeof a=="number"?s=l=u=h=a:a instanceof Array?a.length===1?s=l=u=h=a[0]:a.length===2?(s=u=a[0],l=h=a[1]):a.length===3?(s=a[0],l=h=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],h=a[3]):s=l=u=h=0;var c;s+l>o&&(c=s+l,s*=o/c,l*=o/c),u+h>o&&(c=u+h,u*=o/c,h*=o/c),l+u>r&&(c=l+u,l*=r/c,u*=r/c),s+h>r&&(c=s+h,s*=r/c,h*=r/c),n.moveTo(t+s,i),n.lineTo(t+o-l,i),l!==0&&n.arc(t+o-l,i+l,l,-Math.PI/2,0),n.lineTo(t+o,i+r-u),u!==0&&n.arc(t+o-u,i+r-u,u,0,Math.PI/2),n.lineTo(t+h,i+r),h!==0&&n.arc(t+h,i+r-h,h,Math.PI/2,Math.PI),n.lineTo(t,i+s),s!==0&&n.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var Qo=Math.round;function Xy(n,e,t){if(e){var i=e.x1,o=e.x2,r=e.y1,a=e.y2;n.x1=i,n.x2=o,n.y1=r,n.y2=a;var s=t&&t.lineWidth;return s&&(Qo(i*2)===Qo(o*2)&&(n.x1=n.x2=no(i,s,!0)),Qo(r*2)===Qo(a*2)&&(n.y1=n.y2=no(r,s,!0))),n}}function Zy(n,e,t){if(e){var i=e.x,o=e.y,r=e.width,a=e.height;n.x=i,n.y=o,n.width=r,n.height=a;var s=t&&t.lineWidth;return s&&(n.x=no(i,s,!0),n.y=no(o,s,!0),n.width=Math.max(no(i+r,s,!1)-n.x,r===0?0:1),n.height=Math.max(no(o+a,s,!1)-n.y,a===0?0:1)),n}}function no(n,e,t){if(!e)return n;var i=Qo(n*2);return(i+Qo(e))%2===0?i/2:(i+(t?1:-1))/2}var yA=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),mA={},jy=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new yA},e.prototype.buildPath=function(t,i){var o,r,a,s;if(this.subPixelOptimize){var l=Zy(mA,i,this.style);o=l.x,r=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else o=i.x,r=i.y,a=i.width,s=i.height;i.r?vA(t,i):t.rect(o,r,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(gt);jy.prototype.type="rect";const yt=jy;var qy={fill:"#000"},Ky=2,xA={style:K({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},cl.style)},$y=function(n){Mt(e,n);function e(t){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=qy,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):n.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):n.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,wA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ut(0,0,0,0),i=this._children,o=[],r=null,a=0;a<i.length;a++){var s=i[a],l=s.getBoundingRect(),u=s.getLocalTransform(o);u?(t.copy(l),t.applyTransform(u),r=r||t.clone(),r.union(t)):(r=r||l.clone(),r.union(l))}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||qy},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,i){if(!i)return t;var o=i.rich,r=t.rich||o&&{};return N(t,i),o&&r?(this._mergeRich(r,o),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,i){for(var o=at(i),r=0;r<o.length;r++){var a=o[r];t[a]=t[a]||{},N(t[a],i[a])}},e.prototype.getAnimationStyleProps=function(){return xA},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];return(!i||!(i instanceof t))&&(i=new t),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||oi,o=t.padding,r=am(t),a=VI(r,t),s=Jc(t),l=!!t.backgroundColor,u=a.outerHeight,h=a.outerWidth,c=a.contentWidth,d=a.lines,p=a.lineHeight,f=this._defaultStyle,g=t.x||0,v=t.y||0,y=t.align||f.align||"left",m=t.verticalAlign||f.verticalAlign||"top",x=g,_=qo(v,a.contentHeight,m);if(s||o){var w=ha(g,h,y),b=qo(v,u,m);s&&this._renderBackground(t,t,w,b,h,u)}_+=p/2,o&&(x=rm(g,y,o),m==="top"?_+=o[0]:m==="bottom"&&(_-=o[2]));for(var S=0,T=!1,I=om("fill"in t?t.fill:(T=!0,f.fill)),C=im("stroke"in t?t.stroke:!l&&(!f.autoStroke||T)?(S=Ky,f.stroke):null),A=t.textShadowBlur>0,D=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),k=a.calculatedLineHeight,P=0;P<d.length;P++){var L=this._getOrCreateChild(xa),O=L.createStyle();L.useStyle(O),O.text=d[P],O.x=x,O.y=_,y&&(O.textAlign=y),O.textBaseline="middle",O.opacity=t.opacity,O.strokeFirst=!0,A&&(O.shadowBlur=t.textShadowBlur||0,O.shadowColor=t.textShadowColor||"transparent",O.shadowOffsetX=t.textShadowOffsetX||0,O.shadowOffsetY=t.textShadowOffsetY||0),O.stroke=C,O.fill=I,C&&(O.lineWidth=t.lineWidth||S,O.lineDash=t.lineDash,O.lineDashOffset=t.lineDashOffset||0),O.font=i,tm(O,t),_+=p,D&&L.setBoundingRect(new ut(ha(O.x,t.width,O.textAlign),qo(O.y,k,O.textBaseline),c,k))}},e.prototype._updateRichTexts=function(){var t=this.style,i=am(t),o=GI(i,t),r=o.width,a=o.outerWidth,s=o.outerHeight,l=t.padding,u=t.x||0,h=t.y||0,c=this._defaultStyle,d=t.align||c.align,p=t.verticalAlign||c.verticalAlign,f=ha(u,a,d),g=qo(h,s,p),v=f,y=g;l&&(v+=l[3],y+=l[0]);var m=v+r;Jc(t)&&this._renderBackground(t,t,f,g,a,s);for(var x=!!t.backgroundColor,_=0;_<o.lines.length;_++){for(var w=o.lines[_],b=w.tokens,S=b.length,T=w.lineHeight,I=w.width,C=0,A=v,D=m,k=S-1,P=void 0;C<S&&(P=b[C],!P.align||P.align==="left");)this._placeToken(P,t,T,y,A,"left",x),I-=P.width,A+=P.width,C++;for(;k>=0&&(P=b[k],P.align==="right");)this._placeToken(P,t,T,y,D,"right",x),I-=P.width,D-=P.width,k--;for(A+=(r-(A-v)-(m-D)-I)/2;C<=k;)P=b[C],this._placeToken(P,t,T,y,A+P.width/2,"center",x),A+=P.width,C++;y+=T}},e.prototype._placeToken=function(t,i,o,r,a,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var h=t.verticalAlign,c=r+o/2;h==="top"?c=r+t.height/2:h==="bottom"&&(c=r+o-t.height/2);var d=!t.isLineHolder&&Jc(u);d&&this._renderBackground(u,i,s==="right"?a-t.width:s==="center"?a-t.width/2:a,c-t.height/2,t.width,t.height);var p=!!u.backgroundColor,f=t.textPadding;f&&(a=rm(a,s,f),c-=t.height/2-f[0]-t.innerHeight/2);var g=this._getOrCreateChild(xa),v=g.createStyle();g.useStyle(v);var y=this._defaultStyle,m=!1,x=0,_=om("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),w=im("stroke"in u?u.stroke:"stroke"in i?i.stroke:!p&&!l&&(!y.autoStroke||m)?(x=Ky,y.stroke):null),b=u.textShadowBlur>0||i.textShadowBlur>0;v.text=t.text,v.x=a,v.y=c,b&&(v.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,v.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",v.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,v.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=t.font||oi,v.opacity=Ni(u.opacity,i.opacity,1),tm(v,u),w&&(v.lineWidth=Ni(u.lineWidth,i.lineWidth,x),v.lineDash=J(u.lineDash,i.lineDash),v.lineDashOffset=i.lineDashOffset||0,v.stroke=w),_&&(v.fill=_);var S=t.contentWidth,T=t.contentHeight;g.setBoundingRect(new ut(ha(v.x,S,v.textAlign),qo(v.y,T,v.textBaseline),S,T))},e.prototype._renderBackground=function(t,i,o,r,a,s){var l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,d=l&&!c,p=t.borderRadius,f=this,g,v;if(d||t.lineHeight||u&&h){g=this._getOrCreateChild(yt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=o,y.y=r,y.width=a,y.height=s,y.r=p,g.dirtyShape()}if(d){var m=g.style;m.fill=l||null,m.fillOpacity=J(t.fillOpacity,1)}else if(c){v=this._getOrCreateChild(ee),v.onload=function(){f.dirtyStyle()};var x=v.style;x.image=l.image,x.x=o,x.y=r,x.width=a,x.height=s}if(u&&h){var m=g.style;m.lineWidth=u,m.stroke=h,m.strokeOpacity=J(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var _=(g||v).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Ni(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return em(t)&&(i=[t.fontStyle,t.fontWeight,Jy(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&De(i)||t.textFont||t.font},e}(wn),_A={left:!0,right:1,center:1},bA={top:1,bottom:1,middle:1},Qy=["fontStyle","fontWeight","fontSize","fontFamily"];function Jy(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?bh+"px":n+"px"}function tm(n,e){for(var t=0;t<Qy.length;t++){var i=Qy[t],o=e[i];o!=null&&(n[i]=o)}}function em(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function wA(n){return nm(n),M(n.rich,nm),n}function nm(n){if(n){n.font=$y.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||_A[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||bA[t]?t:"top";var i=n.padding;i&&(n.padding=Rs(n.padding))}}function im(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function om(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function rm(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function am(n){var e=n.text;return e!=null&&(e+=""),e}function Jc(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const dt=$y;var rt=_t(),tp=function(n,e,t,i){if(i){var o=rt(i);o.dataIndex=t,o.dataType=e,o.seriesIndex=n,o.ssrType="chart",i.type==="group"&&i.traverse(function(r){var a=rt(r);a.seriesIndex=n,a.dataIndex=t,a.dataType=e,a.ssrType="chart"})}},sm=1,lm={},um=_t(),ep=_t(),np=0,_a=1,vl=2,Te=["emphasis","blur","select"],ba=["normal","emphasis","blur","select"],ip=10,SA=9,io="highlight",yl="downplay",wa="select",ml="unselect",Sa="toggleSelect";function Jo(n){return n!=null&&n!=="none"}function xl(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function hm(n){xl(n,"emphasis",vl)}function cm(n){n.hoverState===vl&&xl(n,"normal",np)}function op(n){xl(n,"blur",_a)}function pm(n){n.hoverState===_a&&xl(n,"normal",np)}function MA(n){n.selected=!0}function TA(n){n.selected=!1}function dm(n,e,t){e(n,t)}function qn(n,e,t){dm(n,e,t),n.isGroup&&n.traverse(function(i){dm(i,e,t)})}function _l(n,e){switch(e){case"emphasis":n.hoverState=vl;break;case"normal":n.hoverState=np;break;case"blur":n.hoverState=_a;break;case"select":n.selected=!0}}function CA(n,e,t,i){for(var o=n.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=l!=null?l:i&&i[s]}for(var a=0;a<n.animators.length;a++){var u=n.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(r,e)}return r}function IA(n,e,t,i){var o=t&<(t,"select")>=0,r=!1;if(n instanceof gt){var a=um(n),s=o&&a.selectFill||a.normalFill,l=o&&a.selectStroke||a.normalStroke;if(Jo(s)||Jo(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(r=!0,i=N({},i),u=N({},u),u.fill=s):!Jo(u.fill)&&Jo(s)?(r=!0,i=N({},i),u=N({},u),u.fill=qs(s)):!Jo(u.stroke)&&Jo(l)&&(r||(i=N({},i),u=N({},u)),u.stroke=qs(l)),i.style=u}}if(i&&i.z2==null){r||(i=N({},i));var h=n.z2EmphasisLift;i.z2=n.z2+(h!=null?h:ip)}return i}function AA(n,e,t){if(t&&t.z2==null){t=N({},t);var i=n.z2SelectLift;t.z2=n.z2+(i!=null?i:SA)}return t}function DA(n,e,t){var i=lt(n.currentStates,e)>=0,o=n.style.opacity,r=i?null:CA(n,["opacity"],e,{opacity:1});t=t||{};var a=t.style||{};return a.opacity==null&&(t=N({},t),a=N({opacity:i?o:r.opacity*.1},a),t.style=a),t}function rp(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return IA(this,n,e,t);if(n==="blur")return DA(this,n,t);if(n==="select")return AA(this,n,t)}return t}function bl(n){n.stateProxy=rp;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=rp),t&&(t.stateProxy=rp)}function fm(n,e){!xm(n,e)&&!n.__highByOuter&&qn(n,hm)}function gm(n,e){!xm(n,e)&&!n.__highByOuter&&qn(n,cm)}function oo(n,e){n.__highByOuter|=1<<(e||0),qn(n,hm)}function ro(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&qn(n,cm)}function vm(n){qn(n,op)}function ap(n){qn(n,pm)}function ym(n){qn(n,MA)}function mm(n){qn(n,TA)}function xm(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function _m(n){var e=n.getModel(),t=[],i=[];e.eachComponent(function(o,r){var a=ep(r),s=o==="series",l=s?n.getViewOfSeriesModel(r):n.getViewOfComponentModel(r);!s&&i.push(l),a.isBlured&&(l.group.traverse(function(u){pm(u)}),s&&t.push(r)),a.isBlured=!1}),M(i,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(t,!1,e)})}function sp(n,e,t,i){var o=i.getModel();t=t||"coordinateSystem";function r(u,h){for(var c=0;c<h.length;c++){var d=u.getItemGraphicEl(h[c]);d&&ap(d)}}if(n!=null&&!(!e||e==="none")){var a=o.getSeriesByIndex(n),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(u){var h=a===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&s?c===s:h;if(!(t==="series"&&!h||t==="coordinateSystem"&&!d||e==="series"&&h)){var p=i.getViewOfSeriesModel(u);if(p.group.traverse(function(v){v.__highByOuter&&h&&e==="self"||op(v)}),Xt(e))r(u.getData(),e);else if(j(e))for(var f=at(e),g=0;g<f.length;g++)r(u.getData(f[g]),e[f[g]]);l.push(u),ep(u).isBlured=!0}}),o.eachComponent(function(u,h){if(u!=="series"){var c=i.getViewOfComponentModel(h);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,o)}})}}function lp(n,e,t){if(!(n==null||e==null)){var i=t.getModel().getComponent(n,e);if(i){ep(i).isBlured=!0;var o=t.getViewOfComponentModel(i);!o||!o.focusBlurEnabled||o.group.traverse(function(r){op(r)})}}}function kA(n,e,t){var i=n.seriesIndex,o=n.getData(e.dataType);if(o){var r=Ui(o,e);r=(V(r)?r[0]:r)||0;var a=o.getItemGraphicEl(r);if(!a)for(var s=o.count(),l=0;!a&&l<s;)a=o.getItemGraphicEl(l++);if(a){var u=rt(a);sp(i,u.focus,u.blurScope,t)}else{var h=n.get(["emphasis","focus"]),c=n.get(["emphasis","blurScope"]);h!=null&&sp(i,h,c,t)}}}function up(n,e,t,i){var o={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||e==null||t==null)return o;var r=i.getModel().getComponent(n,e);if(!r)return o;var a=i.getViewOfComponentModel(r);if(!a||!a.findHighDownDispatchers)return o;for(var s=a.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(rt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function PA(n,e,t){var i=rt(n),o=up(i.componentMainType,i.componentIndex,i.componentHighDownName,t),r=o.dispatchers,a=o.focusSelf;r?(a&&lp(i.componentMainType,i.componentIndex,t),M(r,function(s){return fm(s,e)})):(sp(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&lp(i.componentMainType,i.componentIndex,t),fm(n,e))}function LA(n,e,t){_m(t);var i=rt(n),o=up(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;o?M(o,function(r){return gm(r,e)}):gm(n,e)}function OA(n,e,t){if(hp(e)){var i=e.dataType,o=n.getData(i),r=Ui(o,e);V(r)||(r=[r]),n[e.type===Sa?"toggleSelect":e.type===wa?"select":"unselect"](r,i)}}function bm(n){var e=n.getAllData();M(e,function(t){var i=t.data,o=t.type;i.eachItemGraphicEl(function(r,a){n.isSelected(a,o)?ym(r):mm(r)})})}function RA(n){var e=[];return n.eachSeries(function(t){var i=t.getAllData();M(i,function(o){o.data;var r=o.type,a=t.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:t.seriesIndex};r!=null&&(s.dataType=r),e.push(s)}})}),e}function vi(n,e,t){wl(n,!0),qn(n,bl),wm(n,e,t)}function NA(n){wl(n,!1)}function nn(n,e,t,i){i?NA(n):vi(n,e,t)}function wm(n,e,t){var i=rt(n);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var Sm=["emphasis","blur","select"],zA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kn(n,e,t,i){t=t||"itemStyle";for(var o=0;o<Sm.length;o++){var r=Sm[o],a=e.getModel([r,t]),s=n.ensureState(r);s.style=i?i(a):a[zA[t]]()}}function wl(n,e){var t=e===!1,i=n;n.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=n.highDownSilentOnTouch),(!t||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t)}function Sl(n){return!!(n&&n.__highDownDispatcher)}function BA(n,e,t){var i=rt(n);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=t}function EA(n){var e=lm[n];return e==null&&sm<=32&&(e=lm[n]=sm++),e}function hp(n){var e=n.type;return e===wa||e===ml||e===Sa}function Mm(n){var e=n.type;return e===io||e===yl}function VA(n){var e=um(n);e.normalFill=n.style.fill,e.normalStroke=n.style.stroke;var t=n.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var tr=Cn.CMD,FA=[[],[],[]],Tm=Math.sqrt,WA=Math.atan2;function Cm(n,e){if(e){var t=n.data,i=n.len(),o,r,a,s,l,u,h=tr.M,c=tr.C,d=tr.L,p=tr.R,f=tr.A,g=tr.Q;for(a=0,s=0;a<i;){switch(o=t[a++],s=a,r=0,o){case h:r=1;break;case d:r=1;break;case c:r=3;break;case g:r=2;break;case f:var v=e[4],y=e[5],m=Tm(e[0]*e[0]+e[1]*e[1]),x=Tm(e[2]*e[2]+e[3]*e[3]),_=WA(-e[1]/x,e[0]/m);t[a]*=m,t[a++]+=v,t[a]*=x,t[a++]+=y,t[a++]*=m,t[a++]*=x,t[a++]+=_,t[a++]+=_,a+=2,s=a;break;case p:u[0]=t[a++],u[1]=t[a++],Ht(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[a++],u[1]+=t[a++],Ht(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<r;l++){var w=FA[l];w[0]=t[a++],w[1]=t[a++],Ht(w,w,e),t[s++]=w[0],t[s++]=w[1]}}n.increaseVersion()}}var cp=Math.sqrt,Ml=Math.sin,Tl=Math.cos,Ma=Math.PI;function Im(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function pp(n,e){return(n[0]*e[0]+n[1]*e[1])/(Im(n)*Im(e))}function Am(n,e){return(n[0]*e[1]<n[1]*e[0]?-1:1)*Math.acos(pp(n,e))}function Dm(n,e,t,i,o,r,a,s,l,u,h){var c=l*(Ma/180),d=Tl(c)*(n-t)/2+Ml(c)*(e-i)/2,p=-1*Ml(c)*(n-t)/2+Tl(c)*(e-i)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=cp(f),s*=cp(f));var g=(o===r?-1:1)*cp((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,v=g*a*p/s,y=g*-s*d/a,m=(n+t)/2+Tl(c)*v-Ml(c)*y,x=(e+i)/2+Ml(c)*v+Tl(c)*y,_=Am([1,0],[(d-v)/a,(p-y)/s]),w=[(d-v)/a,(p-y)/s],b=[(-1*d-v)/a,(-1*p-y)/s],S=Am(w,b);if(pp(w,b)<=-1&&(S=Ma),pp(w,b)>=1&&(S=0),S<0){var T=Math.round(S/Ma*1e6)/1e6;S=Ma*2+T%2*Ma}h.addData(u,m,x,a,s,_,S,c,r)}var GA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,HA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function YA(n){var e=new Cn;if(!n)return e;var t=0,i=0,o=t,r=i,a,s=Cn.CMD,l=n.match(GA);if(!l)return e;for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),d=void 0,p=h.match(HA)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var v=0;v<f;){var y=void 0,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0,S=void 0,T=t,I=i,C=void 0,A=void 0;switch(c){case"l":t+=p[v++],i+=p[v++],d=s.L,e.addData(d,t,i);break;case"L":t=p[v++],i=p[v++],d=s.L,e.addData(d,t,i);break;case"m":t+=p[v++],i+=p[v++],d=s.M,e.addData(d,t,i),o=t,r=i,c="l";break;case"M":t=p[v++],i=p[v++],d=s.M,e.addData(d,t,i),o=t,r=i,c="L";break;case"h":t+=p[v++],d=s.L,e.addData(d,t,i);break;case"H":t=p[v++],d=s.L,e.addData(d,t,i);break;case"v":i+=p[v++],d=s.L,e.addData(d,t,i);break;case"V":i=p[v++],d=s.L,e.addData(d,t,i);break;case"C":d=s.C,e.addData(d,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),t=p[v-2],i=p[v-1];break;case"c":d=s.C,e.addData(d,p[v++]+t,p[v++]+i,p[v++]+t,p[v++]+i,p[v++]+t,p[v++]+i),t+=p[v-2],i+=p[v-1];break;case"S":y=t,m=i,C=e.len(),A=e.data,a===s.C&&(y+=t-A[C-4],m+=i-A[C-3]),d=s.C,T=p[v++],I=p[v++],t=p[v++],i=p[v++],e.addData(d,y,m,T,I,t,i);break;case"s":y=t,m=i,C=e.len(),A=e.data,a===s.C&&(y+=t-A[C-4],m+=i-A[C-3]),d=s.C,T=t+p[v++],I=i+p[v++],t+=p[v++],i+=p[v++],e.addData(d,y,m,T,I,t,i);break;case"Q":T=p[v++],I=p[v++],t=p[v++],i=p[v++],d=s.Q,e.addData(d,T,I,t,i);break;case"q":T=p[v++]+t,I=p[v++]+i,t+=p[v++],i+=p[v++],d=s.Q,e.addData(d,T,I,t,i);break;case"T":y=t,m=i,C=e.len(),A=e.data,a===s.Q&&(y+=t-A[C-4],m+=i-A[C-3]),t=p[v++],i=p[v++],d=s.Q,e.addData(d,y,m,t,i);break;case"t":y=t,m=i,C=e.len(),A=e.data,a===s.Q&&(y+=t-A[C-4],m+=i-A[C-3]),t+=p[v++],i+=p[v++],d=s.Q,e.addData(d,y,m,t,i);break;case"A":x=p[v++],_=p[v++],w=p[v++],b=p[v++],S=p[v++],T=t,I=i,t=p[v++],i=p[v++],d=s.A,Dm(T,I,t,i,b,S,x,_,w,d,e);break;case"a":x=p[v++],_=p[v++],w=p[v++],b=p[v++],S=p[v++],T=t,I=i,t+=p[v++],i+=p[v++],d=s.A,Dm(T,I,t,i,b,S,x,_,w,d,e);break}}(c==="z"||c==="Z")&&(d=s.Z,e.addData(d),t=o,i=r),a=d}return e.toStatic(),e}var km=function(n){Mt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(gt);function Pm(n){return n.setData!=null}function Lm(n,e){var t=YA(n),i=N({},e);return i.buildPath=function(o){if(Pm(o)){o.setData(t.data);var r=o.getContext();r&&o.rebuildPath(r,1)}else{var r=o;t.rebuildPath(r,1)}},i.applyTransform=function(o){Cm(t,o),this.dirtyShape()},i}function Om(n,e){return new km(Lm(n,e))}function UA(n,e){var t=Lm(n,e),i=function(o){Mt(r,o);function r(a){var s=o.call(this,a)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return r}(km);return i}function XA(n,e){for(var t=[],i=n.length,o=0;o<i;o++){var r=n[o];t.push(r.getUpdatedPathProxy(!0))}var a=new gt(e);return a.createPathProxy(),a.buildPath=function(s){if(Pm(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}function ZA(n,e){e=e||{};var t=new gt;return n.shape&&t.setShape(n.shape),t.setStyle(n.style),e.bakeTransform?Cm(t.path,n.getComputedTransform()):e.toLocal?t.setLocalTransform(n.getComputedTransform()):t.copyTransform(n),t.buildPath=n.buildPath,t.applyTransform=t.applyTransform,t.z=n.z,t.z2=n.z2,t.zlevel=n.zlevel,t}var jA=function(){function n(){this.cx=0,this.cy=0,this.r=0}return n}(),Rm=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new jA},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e}(gt);Rm.prototype.type="circle";const $n=Rm;var qA=function(){function n(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return n}(),Nm=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new qA},e.prototype.buildPath=function(t,i){var o=.5522848,r=i.cx,a=i.cy,s=i.rx,l=i.ry,u=s*o,h=l*o;t.moveTo(r-s,a),t.bezierCurveTo(r-s,a-h,r-u,a-l,r,a-l),t.bezierCurveTo(r+u,a-l,r+s,a-h,r+s,a),t.bezierCurveTo(r+s,a+h,r+u,a+l,r,a+l),t.bezierCurveTo(r-u,a+l,r-s,a+h,r-s,a),t.closePath()},e}(gt);Nm.prototype.type="ellipse";const Cl=Nm;var zm=Math.PI,dp=zm*2,ao=Math.sin,er=Math.cos,KA=Math.acos,ne=Math.atan2,Bm=Math.abs,Ta=Math.sqrt,Ca=Math.max,In=Math.min,on=1e-4;function $A(n,e,t,i,o,r,a,s){var l=t-n,u=i-e,h=a-o,c=s-r,d=c*l-h*u;if(!(d*d<on))return d=(h*(e-r)-c*(n-o))/d,[n+d*l,e+d*u]}function Il(n,e,t,i,o,r,a){var s=n-t,l=e-i,u=(a?r:-r)/Ta(s*s+l*l),h=u*l,c=-u*s,d=n+h,p=e+c,f=t+h,g=i+c,v=(d+f)/2,y=(p+g)/2,m=f-d,x=g-p,_=m*m+x*x,w=o-r,b=d*g-f*p,S=(x<0?-1:1)*Ta(Ca(0,w*w*_-b*b)),T=(b*x-m*S)/_,I=(-b*m-x*S)/_,C=(b*x+m*S)/_,A=(-b*m+x*S)/_,D=T-v,k=I-y,P=C-v,L=A-y;return D*D+k*k>P*P+L*L&&(T=C,I=A),{cx:T,cy:I,x0:-h,y0:-c,x1:T*(o/w-1),y1:I*(o/w-1)}}function QA(n){var e;if(V(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function JA(n,e){var t,i=Ca(e.r,0),o=Ca(e.r0||0,0),r=i>0,a=o>0;if(!(!r&&!a)){if(r||(i=o,o=0),o>i){var s=i;i=o,o=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var h=e.cx,c=e.cy,d=!!e.clockwise,p=Bm(u-l),f=p>dp&&p%dp;if(f>on&&(p=f),!(i>on))n.moveTo(h,c);else if(p>dp-on)n.moveTo(h+i*er(l),c+i*ao(l)),n.arc(h,c,i,l,u,!d),o>on&&(n.moveTo(h+o*er(u),c+o*ao(u)),n.arc(h,c,o,u,l,d));else{var g=void 0,v=void 0,y=void 0,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0,S=void 0,T=void 0,I=void 0,C=void 0,A=void 0,D=void 0,k=void 0,P=void 0,L=i*er(l),O=i*ao(l),E=o*er(u),R=o*ao(u),B=p>on;if(B){var W=e.cornerRadius;W&&(t=QA(W),g=t[0],v=t[1],y=t[2],m=t[3]);var Z=Bm(i-o)/2;if(x=In(Z,y),_=In(Z,m),w=In(Z,g),b=In(Z,v),I=S=Ca(x,_),C=T=Ca(w,b),(S>on||T>on)&&(A=i*er(u),D=i*ao(u),k=o*er(l),P=o*ao(l),p<zm)){var Q=$A(L,O,k,P,A,D,E,R);if(Q){var ot=L-Q[0],st=O-Q[1],St=A-Q[0],mt=D-Q[1],Qt=1/ao(KA((ot*St+st*mt)/(Ta(ot*ot+st*st)*Ta(St*St+mt*mt)))/2),Gt=Ta(Q[0]*Q[0]+Q[1]*Q[1]);I=In(S,(i-Gt)/(Qt+1)),C=In(T,(o-Gt)/(Qt-1))}}}if(!B)n.moveTo(h+L,c+O);else if(I>on){var Pt=In(y,I),It=In(m,I),tt=Il(k,P,L,O,i,Pt,d),ht=Il(A,D,E,R,i,It,d);n.moveTo(h+tt.cx+tt.x0,c+tt.cy+tt.y0),I<S&&Pt===It?n.arc(h+tt.cx,c+tt.cy,I,ne(tt.y0,tt.x0),ne(ht.y0,ht.x0),!d):(Pt>0&&n.arc(h+tt.cx,c+tt.cy,Pt,ne(tt.y0,tt.x0),ne(tt.y1,tt.x1),!d),n.arc(h,c,i,ne(tt.cy+tt.y1,tt.cx+tt.x1),ne(ht.cy+ht.y1,ht.cx+ht.x1),!d),It>0&&n.arc(h+ht.cx,c+ht.cy,It,ne(ht.y1,ht.x1),ne(ht.y0,ht.x0),!d))}else n.moveTo(h+L,c+O),n.arc(h,c,i,l,u,!d);if(!(o>on)||!B)n.lineTo(h+E,c+R);else if(C>on){var Pt=In(g,C),It=In(v,C),tt=Il(E,R,A,D,o,-It,d),ht=Il(L,O,k,P,o,-Pt,d);n.lineTo(h+tt.cx+tt.x0,c+tt.cy+tt.y0),C<T&&Pt===It?n.arc(h+tt.cx,c+tt.cy,C,ne(tt.y0,tt.x0),ne(ht.y0,ht.x0),!d):(It>0&&n.arc(h+tt.cx,c+tt.cy,It,ne(tt.y0,tt.x0),ne(tt.y1,tt.x1),!d),n.arc(h,c,o,ne(tt.cy+tt.y1,tt.cx+tt.x1),ne(ht.cy+ht.y1,ht.cx+ht.x1),d),Pt>0&&n.arc(h+ht.cx,c+ht.cy,Pt,ne(ht.y1,ht.x1),ne(ht.y0,ht.x0),!d))}else n.lineTo(h+E,c+R),n.arc(h,c,o,u,l,d)}n.closePath()}}}var tD=function(){function n(){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 n}(),Em=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tD},e.prototype.buildPath=function(t,i){JA(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(gt);Em.prototype.type="sector";const ze=Em;var eD=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),Vm=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new eD},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.PI*2;t.moveTo(o+i.r,r),t.arc(o,r,i.r,0,a,!1),t.moveTo(o+i.r0,r),t.arc(o,r,i.r0,0,a,!0)},e}(gt);Vm.prototype.type="ring";const Ia=Vm;function nD(n,e,t,i){var o=[],r=[],a=[],s=[],l,u,h,c;if(i){h=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,p=n.length;d<p;d++)Wn(h,h,n[d]),Gn(c,c,n[d]);Wn(h,h,i[0]),Gn(c,c,i[1])}for(var d=0,p=n.length;d<p;d++){var f=n[d];if(t)l=n[d?d-1:p-1],u=n[(d+1)%p];else if(d===0||d===p-1){o.push(Ph(n[d]));continue}else l=n[d-1],u=n[d+1];Oh(r,u,l),Hr(r,r,e);var g=zs(f,l),v=zs(f,u),y=g+v;y!==0&&(g/=y,v/=y),Hr(a,r,-g),Hr(s,r,v);var m=Lh([],f,a),x=Lh([],f,s);i&&(Gn(m,m,h),Wn(m,m,c),Gn(x,x,h),Wn(x,x,c)),o.push(m),o.push(x)}return t&&o.push(o.shift()),o}function Fm(n,e,t){var i=e.smooth,o=e.points;if(o&&o.length>=2){if(i){var r=nD(o,i,t,e.smoothConstraint);n.moveTo(o[0][0],o[0][1]);for(var a=o.length,s=0;s<(t?a:a-1);s++){var l=r[s*2],u=r[s*2+1],h=o[(s+1)%a];n.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{n.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s<c;s++)n.lineTo(o[s][0],o[s][1])}t&&n.closePath()}}var iD=function(){function n(){this.points=null,this.smooth=0,this.smoothConstraint=null}return n}(),Wm=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new iD},e.prototype.buildPath=function(t,i){Fm(t,i,!0)},e}(gt);Wm.prototype.type="polygon";const An=Wm;var oD=function(){function n(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return n}(),Gm=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new oD},e.prototype.buildPath=function(t,i){Fm(t,i,!1)},e}(gt);Gm.prototype.type="polyline";const Be=Gm;var rD={},aD=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}(),Hm=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new aD},e.prototype.buildPath=function(t,i){var o,r,a,s;if(this.subPixelOptimize){var l=Xy(rD,i,this.style);o=l.x1,r=l.y1,a=l.x2,s=l.y2}else o=i.x1,r=i.y1,a=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(o,r),u<1&&(a=o*(1-u)+a*u,s=r*(1-u)+s*u),t.lineTo(a,s))},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e}(gt);Hm.prototype.type="line";const qt=Hm;var be=[],sD=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return n}();function Ym(n,e,t){var i=n.cpx2,o=n.cpy2;return i!=null||o!=null?[(t?Pv:Vt)(n.x1,n.cpx1,n.cpx2,n.x2,e),(t?Pv:Vt)(n.y1,n.cpy1,n.cpy2,n.y2,e)]:[(t?qh:Zt)(n.x1,n.cpx1,n.x2,e),(t?qh:Zt)(n.y1,n.cpy1,n.y2,e)]}var Um=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new sD},e.prototype.buildPath=function(t,i){var o=i.x1,r=i.y1,a=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,h=i.cpx2,c=i.cpy2,d=i.percent;d!==0&&(t.moveTo(o,r),h==null||c==null?(d<1&&(Jr(o,l,a,d,be),l=be[1],a=be[2],Jr(r,u,s,d,be),u=be[1],s=be[2]),t.quadraticCurveTo(l,u,a,s)):(d<1&&(Qr(o,l,h,a,d,be),l=be[1],h=be[2],a=be[3],Qr(r,u,c,s,d,be),u=be[1],c=be[2],s=be[3]),t.bezierCurveTo(l,u,h,c,a,s)))},e.prototype.pointAt=function(t){return Ym(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=Ym(this.shape,t,!0);return Nh(i,i)},e}(gt);Um.prototype.type="bezier-curve";const fp=Um;var lD=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),Xm=function(n){Mt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new lD},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,h=Math.cos(s),c=Math.sin(s);t.moveTo(h*a+o,c*a+r),t.arc(o,r,a,s,l,!u)},e}(gt);Xm.prototype.type="arc";const Al=Xm;var uD=function(n){Mt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,i=this.shapeChanged(),o=0;o<t.length;o++)i=i||t[o].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),o=0;o<t.length;o++)t[o].path||t[o].createPathProxy(),t[o].path.setScale(i[0],i[1],t[o].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var o=i.paths||[],r=0;r<o.length;r++)o[r].buildPath(t,o[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),gt.prototype.getBoundingRect.call(this)},e}(gt);const Dl=uD;var hD=function(){function n(e){this.colorStops=e||[]}return n.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},n}();const Zm=hD;var cD=function(n){Mt(e,n);function e(t,i,o,r,a,s){var l=n.call(this,a)||this;return l.x=t!=null?t:0,l.y=i!=null?i:0,l.x2=o!=null?o:1,l.y2=r!=null?r:0,l.type="linear",l.global=s||!1,l}return e}(Zm);const Aa=cD;var pD=function(n){Mt(e,n);function e(t,i,o,r,a){var s=n.call(this,r)||this;return s.x=t!=null?t:.5,s.y=i!=null?i:.5,s.r=o!=null?o:.5,s.type="radial",s.global=a||!1,s}return e}(Zm);const gp=pD;var so=[0,0],lo=[0,0],kl=new nt,Pl=new nt,dD=function(){function n(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new nt;for(var i=0;i<2;i++)this._axes[i]=new nt;e&&this.fromBoundingRect(e,t)}return n.prototype.fromBoundingRect=function(e,t){var i=this._corners,o=this._axes,r=e.x,a=e.y,s=r+e.width,l=a+e.height;if(i[0].set(r,a),i[1].set(s,a),i[2].set(s,l),i[3].set(r,l),t)for(var u=0;u<4;u++)i[u].transform(t);nt.sub(o[0],i[1],i[0]),nt.sub(o[1],i[3],i[0]),o[0].normalize(),o[1].normalize();for(var u=0;u<2;u++)this._origin[u]=o[u].dot(i[0])},n.prototype.intersect=function(e,t){var i=!0,o=!t;return kl.set(1/0,1/0),Pl.set(0,0),!this._intersectCheckOneSide(this,e,kl,Pl,o,1)&&(i=!1,o)||!this._intersectCheckOneSide(e,this,kl,Pl,o,-1)&&(i=!1,o)||o||nt.copy(t,i?kl:Pl),i},n.prototype._intersectCheckOneSide=function(e,t,i,o,r,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,so),this._getProjMinMaxOnAxis(l,t._corners,lo),so[1]<lo[0]||so[0]>lo[1]){if(s=!1,r)return s;var h=Math.abs(lo[0]-so[1]),c=Math.abs(so[0]-lo[1]);Math.min(h,c)>o.len()&&(h<c?nt.scale(o,u,-h*a):nt.scale(o,u,c*a))}else if(i){var h=Math.abs(lo[0]-so[1]),c=Math.abs(so[0]-lo[1]);Math.min(h,c)<i.len()&&(h<c?nt.scale(i,u,h*a):nt.scale(i,u,-c*a))}}return s},n.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var o=this._axes[e],r=this._origin,a=t[0].dot(o)+r[e],s=a,l=a,u=1;u<t.length;u++){var h=t[u].dot(o)+r[e];s=Math.min(h,s),l=Math.max(h,l)}i[0]=s,i[1]=l},n}();const Ll=dD;var fD=[],gD=function(n){Mt(e,n);function e(){var t=n!==null&&n.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,i){t.call(i,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,i){i?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var o=0;o<t.length;o++)this.addDisplayable(t[o],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ut(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var o=this._displayables[i],r=o.getBoundingRect().clone();o.needLocalTransform()&&r.applyTransform(o.getLocalTransform(fD)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(r.contain(o[0],o[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(t,i))return!0}return!1},e}(wn);const jm=gD;var qm=_t();function Ol(n,e,t,i,o){var r;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();r=a&&a.animation}var s=e&&e.isAnimationEnabled(),l=n==="update";if(s){var u=void 0,h=void 0,c=void 0;i?(u=J(i.duration,200),h=J(i.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),h=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),r&&(r.duration!=null&&(u=r.duration),r.easing!=null&&(h=r.easing),r.delay!=null&&(c=r.delay)),$(c)&&(c=c(t,o)),$(u)&&(u=u(t));var d={duration:u||0,delay:c,easing:h};return d}else return null}function vp(n,e,t,i,o,r,a){var s=!1,l;$(o)?(a=r,r=o,o=null):j(o)&&(r=o.cb,a=o.during,s=o.isFrom,l=o.removeOpt,o=o.dataIndex);var u=n==="leave";u||e.stopAnimation("leave");var h=Ol(n,i,o,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);if(h&&h.duration>0){var c=h.duration,d=h.delay,p=h.easing,f={duration:c,delay:d||0,easing:p,done:r,force:!!r||!!a,setToFinal:!u,scope:n,during:a};s?e.animateFrom(t,f):e.animateTo(t,f)}else e.stopAnimation(),!s&&e.attr(t),a&&a(1),r&&r()}function Tt(n,e,t,i,o,r){vp("update",n,e,t,i,o,r)}function Yt(n,e,t,i,o,r){vp("enter",n,e,t,i,o,r)}function nr(n){if(!n.__zr)return!0;for(var e=0;e<n.animators.length;e++){var t=n.animators[e];if(t.scope==="leave")return!0}return!1}function ir(n,e,t,i,o,r){nr(n)||vp("leave",n,e,t,i,o,r)}function Km(n,e,t,i){n.removeTextContent(),n.removeTextGuideLine(),ir(n,{style:{opacity:0}},e,t,i)}function Da(n,e,t){function i(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(o){o.isGroup||Km(o,e,t,i)}):Km(n,e,t,i)}function or(n){qm(n).oldStyle=n.style}function vD(n){return qm(n).oldStyle}var Rl=Math.max,Nl=Math.min,yp={};function $m(n){return gt.extend(n)}var yD=UA;function Qm(n,e){return yD(n,e)}function Ee(n,e){yp[n]=e}function mp(n){if(yp.hasOwnProperty(n))return yp[n]}function zl(n,e,t,i){var o=Om(n,e);return t&&(i==="center"&&(t=Jm(t,o.getBoundingRect())),_p(o,t)),o}function xp(n,e,t){var i=new ee({style:{image:n,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(o){if(t==="center"){var r={width:o.width,height:o.height};i.setStyle(Jm(e,r))}}});return i}function Jm(n,e){var t=e.width/e.height,i=n.height*t,o;i<=n.width?o=n.height:(i=n.width,o=i/t);var r=n.x+n.width/2,a=n.y+n.height/2;return{x:r-i/2,y:a-o/2,width:i,height:o}}var Ve=XA;function _p(n,e){if(n.applyTransform){var t=n.getBoundingRect(),i=t.calculateTransform(e);n.applyTransform(i)}}function rr(n,e){return Xy(n,n,{lineWidth:e}),n}function mD(n){return Zy(n.shape,n.shape,n.style),n}var t0=no;function yi(n,e){for(var t=Xr([]);n&&n!==e;)gn(t,n.getLocalTransform(),t),n=n.parent;return t}function rn(n,e,t){return e&&!Xt(e)&&(e=pi.getLocalTransform(e)),t&&(e=zi([],e)),Ht([],n,e)}function Bl(n,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),o=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),r=[n==="left"?-i:n==="right"?i:0,n==="top"?-o:n==="bottom"?o:0];return r=rn(r,e,t),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function e0(n){return!n.isGroup}function xD(n){return n.shape!=null}function ka(n,e,t){if(!n||!e)return;function i(a){var s={};return a.traverse(function(l){e0(l)&&l.anid&&(s[l.anid]=l)}),s}function o(a){var s={x:a.x,y:a.y,rotation:a.rotation};return xD(a)&&(s.shape=N({},a.shape)),s}var r=i(n);e.traverse(function(a){if(e0(a)&&a.anid){var s=r[a.anid];if(s){var l=o(a);a.attr(o(s)),Tt(a,l,t,rt(a).dataIndex)}}})}function bp(n,e){return F(n,function(t){var i=t[0];i=Rl(i,e.x),i=Nl(i,e.x+e.width);var o=t[1];return o=Rl(o,e.y),o=Nl(o,e.y+e.height),[i,o]})}function n0(n,e){var t=Rl(n.x,e.x),i=Nl(n.x+n.width,e.x+e.width),o=Rl(n.y,e.y),r=Nl(n.y+n.height,e.y+e.height);if(i>=t&&r>=o)return{x:t,y:o,width:i-t,height:r-o}}function ar(n,e,t){var i=N({rectHover:!0},e),o=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(o.image=n.slice(8),K(o,t),new ee(i)):zl(n.replace("path://",""),i,t,"center")}function i0(n,e,t,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(o0(n,e,t,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function o0(n,e,t,i,o,r,a,s){var l=t-n,u=i-e,h=a-o,c=s-r,d=wp(h,c,l,u);if(_D(d))return!1;var p=n-o,f=e-r,g=wp(p,f,l,u)/d;if(g<0||g>1)return!1;var v=wp(p,f,h,c)/d;return!(v<0||v>1)}function wp(n,e,t,i){return n*i-t*e}function _D(n){return n<=1e-6&&n>=-1e-6}function sr(n){var e=n.itemTooltipOption,t=n.componentModel,i=n.itemName,o=G(e)?{formatter:e}:e,r=t.mainType,a=t.componentIndex,s={componentType:r,name:i,$vars:["name"]};s[r+"Index"]=a;var l=n.formatterParamsExtra;l&&M(at(l),function(h){H(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=rt(n.el);u.componentMainType=r,u.componentIndex=a,u.tooltipConfig={name:i,option:K({content:i,formatterParams:s},o)}}function r0(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Pa(n,e){if(n)if(V(n))for(var t=0;t<n.length;t++)r0(n[t],e);else r0(n,e)}Ee("circle",$n),Ee("ellipse",Cl),Ee("sector",ze),Ee("ring",Ia),Ee("polygon",An),Ee("polyline",Be),Ee("rect",yt),Ee("line",qt),Ee("bezierCurve",fp),Ee("arc",Al);const uo=Object.freeze(Object.defineProperty({__proto__:null,Arc:Al,BezierCurve:fp,BoundingRect:ut,Circle:$n,CompoundPath:Dl,Ellipse:Cl,Group:it,Image:ee,IncrementalDisplayable:jm,Line:qt,LinearGradient:Aa,OrientedBoundingRect:Ll,Path:gt,Point:nt,Polygon:An,Polyline:Be,RadialGradient:gp,Rect:yt,Ring:Ia,Sector:ze,Text:dt,applyTransform:rn,clipPointsByRect:bp,clipRectByRect:n0,createIcon:ar,extendPath:Qm,extendShape:$m,getShapeClass:mp,getTransform:yi,groupTransition:ka,initProps:Yt,isElementRemoved:nr,lineLineIntersect:o0,linePolygonIntersect:i0,makeImage:xp,makePath:zl,mergePath:Ve,registerShape:Ee,removeElement:ir,removeElementWithFadeOut:Da,resizePath:_p,setTooltipConfig:sr,subPixelOptimize:t0,subPixelOptimizeLine:rr,subPixelOptimizeRect:mD,transformDirection:Bl,traverseElements:Pa,updateProps:Tt},Symbol.toStringTag,{value:"Module"}));var El={};function a0(n,e){for(var t=0;t<Te.length;t++){var i=Te[t],o=e[i],r=n.ensureState(i);r.style=r.style||{},r.style.text=o}var a=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:e.normal}),n.useStates(a,!0)}function Sp(n,e,t){var i=n.labelFetcher,o=n.labelDataIndex,r=n.labelDimIndex,a=e.normal,s;i&&(s=i.getFormattedLabel(o,"normal",null,r,a&&a.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=$(n.defaultText)?n.defaultText(o,n,t):n.defaultText);for(var l={normal:s},u=0;u<Te.length;u++){var h=Te[u],c=e[h];l[h]=J(i?i.getFormattedLabel(o,h,null,r,c&&c.get("formatter")):null,s)}return l}function Dn(n,e,t,i){t=t||El;for(var o=n instanceof dt,r=!1,a=0;a<ba.length;a++){var s=e[ba[a]];if(s&&s.getShallow("show")){r=!0;break}}var l=o?n:n.getTextContent();if(r){o||(l||(l=new dt,n.setTextContent(l)),n.stateProxy&&(l.stateProxy=n.stateProxy));var u=Sp(t,e),h=e.normal,c=!!h.getShallow("show"),d=Ct(h,i&&i.normal,t,!1,!o);d.text=u.normal,o||n.setTextConfig(Mp(h,t,!1));for(var a=0;a<Te.length;a++){var p=Te[a],s=e[p];if(s){var f=l.ensureState(p),g=!!J(s.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=Ct(s,i&&i[p],t,!0,!o),f.style.text=u[p],!o){var v=n.ensureState(p);v.textConfig=Mp(s,t,!0)}}}l.silent=!!h.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!c,l.useStyle(d),l.dirty(),t.enableTextSetter&&(lr(l).setLabelText=function(y){var m=Sp(t,e,y);a0(l,m)})}else l&&(l.ignore=!0);n.dirty()}function kn(n,e){e=e||"label";for(var t={normal:n.getModel(e)},i=0;i<Te.length;i++){var o=Te[i];t[o]=n.getModel([o,e])}return t}function Ct(n,e,t,i,o){var r={};return bD(r,n,t,i,o),e&&N(r,e),r}function Mp(n,e,t){e=e||{};var i={},o,r=n.getShallow("rotate"),a=J(n.getShallow("distance"),t?null:5),s=n.getShallow("offset");return o=n.getShallow("position")||(t?null:"inside"),o==="outside"&&(o=e.defaultOutsidePosition||"top"),o!=null&&(i.position=o),s!=null&&(i.offset=s),r!=null&&(r*=Math.PI/180,i.rotation=r),a!=null&&(i.distance=a),i.outsideFill=n.get("color")==="inherit"?e.inheritColor||null:"auto",i}function bD(n,e,t,i,o){t=t||El;var r=e.ecModel,a=r&&r.option.textStyle,s=wD(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var h=e.getModel(["rich",u]);h0(l[u]={},h,a,t,i,o,!1,!0)}}l&&(n.rich=l);var c=e.get("overflow");c&&(n.overflow=c);var d=e.get("minMargin");d!=null&&(n.margin=d),h0(n,e,a,t,i,o,!0,!1)}function wD(n){for(var e;n&&n!==n.ecModel;){var t=(n.option||El).rich;if(t){e=e||{};for(var i=at(t),o=0;o<i.length;o++){var r=i[o];e[r]=1}}n=n.parentModel}return e}var s0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],l0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],u0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function h0(n,e,t,i,o,r,a,s){t=!o&&t||El;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=J(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(h==="inherit"||h==="auto")&&(l?h=l:h=null),r||(u=u||t.color,h=h||t.textBorderColor),u!=null&&(n.fill=u),h!=null&&(n.stroke=h);var d=J(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(n.lineWidth=d);var p=J(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(n.lineDash=p);var f=J(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);f!=null&&(n.lineDashOffset=f),!o&&c==null&&!s&&(c=i&&i.defaultOpacity),c!=null&&(n.opacity=c),!o&&!r&&n.fill==null&&i.inheritColor&&(n.fill=i.inheritColor);for(var g=0;g<s0.length;g++){var v=s0[g],y=J(e.getShallow(v),t[v]);y!=null&&(n[v]=y)}for(var g=0;g<l0.length;g++){var v=l0[g],y=e.getShallow(v);y!=null&&(n[v]=y)}if(n.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(n.verticalAlign=m)}if(!a||!i.disableBox){for(var g=0;g<u0.length;g++){var v=u0[g],y=e.getShallow(v);y!=null&&(n[v]=y)}var x=e.getShallow("borderType");x!=null&&(n.borderDash=x),(n.backgroundColor==="auto"||n.backgroundColor==="inherit")&&l&&(n.backgroundColor=l),(n.borderColor==="auto"||n.borderColor==="inherit")&&l&&(n.borderColor=l)}}function Tp(n,e){var t=e&&e.getModel("textStyle");return De([n.fontStyle||t&&t.getShallow("fontStyle")||"",n.fontWeight||t&&t.getShallow("fontWeight")||"",(n.fontSize||t&&t.getShallow("fontSize")||12)+"px",n.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var lr=_t();function c0(n,e,t,i){if(n){var o=lr(n);o.prevValue=o.value,o.value=t;var r=e.normal;o.valueAnimation=r.get("valueAnimation"),o.valueAnimation&&(o.precision=r.get("precision"),o.defaultInterpolatedText=i,o.statesModels=e)}}function p0(n,e,t,i,o){var r=lr(n);if(!r.valueAnimation||r.prevValue===r.value)return;var a=r.defaultInterpolatedText,s=J(r.interpolatedValue,r.prevValue),l=r.value;function u(h){var c=Ay(t,r.precision,s,l,h);r.interpolatedValue=h===1?null:c;var d=Sp({labelDataIndex:e,labelFetcher:o,defaultText:a?a(c):c+""},r.statesModels,c);a0(n,d)}n.percent=0,(r.prevValue==null?Yt:Tt)(n,{percent:1},i,e,null,u)}var SD=["textStyle","color"],Cp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ip=new dt,MD=function(){function n(){}return n.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(SD):null)},n.prototype.getFont=function(){return Tp({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Cp.length;i++)t[Cp[i]]=this.getShallow(Cp[i]);return Ip.useStyle(t),Ip.update(),Ip.getBoundingRect()},n}();const TD=MD;var d0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],CD=Zi(d0),ID=function(){function n(){}return n.prototype.getLineStyle=function(e){return CD(this,e)},n}(),f0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],AD=Zi(f0),DD=function(){function n(){}return n.prototype.getItemStyle=function(e,t){return AD(this,e,t)},n}(),ho=function(){function n(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return n.prototype.init=function(e,t,i){},n.prototype.mergeOption=function(e,t){et(this.option,e,!0)},n.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},n.prototype.getShallow=function(e,t){var i=this.option,o=i==null?i:i[e];if(o==null&&!t){var r=this.parentModel;r&&(o=r.getShallow(e))}return o},n.prototype.getModel=function(e,t){var i=e!=null,o=i?this.parsePath(e):null,r=i?this._doGet(o):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),new n(r,t,this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){var e=this.constructor;return new e(q(this.option))},n.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},n.prototype.resolveParentPath=function(e){return e},n.prototype.isAnimationEnabled=function(){if(!ct.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var o=0;o<e.length&&!(e[o]&&(i=i&&typeof i=="object"?i[e[o]]:null,i==null));o++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},n}();zc(ho),PI(ho),Ut(ho,ID),Ut(ho,DD),Ut(ho,zI),Ut(ho,TD);const Ot=ho;var kD=Math.round(Math.random()*10);function ur(n){return[n||"",kD++].join("_")}function PD(n){var e={};n.registerSubTypeDefaulter=function(t,i){var o=bn(t);e[o.main]=i},n.determineSubType=function(t,i){var o=i.type;if(!o){var r=bn(t).main;n.hasSubTypes(t)&&e[r]&&(o=e[r](i))}return o}}function LD(n,e){n.topologicalTravel=function(r,a,s,l){if(!r.length)return;var u=t(a),h=u.graph,c=u.noEntryList,d={};for(M(r,function(m){d[m]=!0});c.length;){var p=c.pop(),f=h[p],g=!!d[p];g&&(s.call(l,p,f.originalDeps.slice()),delete d[p]),M(f.successor,g?y:v)}M(d,function(){var m="";throw new Error(m)});function v(m){h[m].entryCount--,h[m].entryCount===0&&c.push(m)}function y(m){d[m]=!0,v(m)}};function t(r){var a={},s=[];return M(r,function(l){var u=i(a,l),h=u.originalDeps=e(l),c=o(h,r);u.entryCount=c.length,u.entryCount===0&&s.push(l),M(c,function(d){lt(u.predecessor,d)<0&&u.predecessor.push(d);var p=i(a,d);lt(p.successor,d)<0&&p.successor.push(l)})}),{graph:a,noEntryList:s}}function i(r,a){return r[a]||(r[a]={predecessor:[],successor:[]}),r[a]}function o(r,a){var s=[];return M(r,function(l){lt(a,l)>=0&&s.push(l)}),s}}function mi(n,e){return et(et({},n,!0),e,!0)}const OD={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:". "}}}},RD={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Vl="ZH",Ap="EN",hr=Ap,Fl={},Dp={},g0=ct.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage||hr).toUpperCase();return n.indexOf(Vl)>-1?Vl:hr}():hr;function kp(n,e){n=n.toUpperCase(),Dp[n]=new Ot(e),Fl[n]=e}function ND(n){if(G(n)){var e=Fl[n.toUpperCase()]||{};return n===Vl||n===Ap?q(e):et(q(e),q(Fl[hr]),!1)}else return et(q(n),q(Fl[hr]),!1)}function Pp(n){return Dp[n]}function zD(){return Dp[hr]}kp(Ap,OD),kp(Vl,RD);var Lp=1e3,Op=Lp*60,La=Op*60,Fe=La*24,v0=Fe*365,Oa={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}"},Wl="{yyyy}-{MM}-{dd}",y0={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wl,hour:Wl+" "+Oa.hour,minute:Wl+" "+Oa.minute,second:Wl+" "+Oa.second,millisecond:Oa.none},Rp=["year","month","day","hour","minute","second","millisecond"],m0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ce(n,e){return n+="","0000".substr(0,e-n.length)+n}function cr(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function BD(n){return n===cr(n)}function ED(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ra(n,e,t,i){var o=Re(n),r=o[Np(t)](),a=o[pr(t)]()+1,s=Math.floor((a-1)/3)+1,l=o[Gl(t)](),u=o["get"+(t?"UTC":"")+"Day"](),h=o[Na(t)](),c=(h-1)%12+1,d=o[Hl(t)](),p=o[Yl(t)](),f=o[Ul(t)](),g=i instanceof Ot?i:Pp(i||g0)||zD(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,ce(r%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,ce(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ce(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ce(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,ce(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,ce(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,ce(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,ce(f,3)).replace(/{S}/g,f+"")}function VD(n,e,t,i,o){var r=null;if(G(t))r=t;else if($(t))r=t(n.value,e,{level:n.level});else{var a=N({},Oa);if(n.level>0)for(var s=0;s<Rp.length;++s)a[Rp[s]]="{primary|"+a[Rp[s]]+"}";var l=t?t.inherit===!1?t:K(t,a):a,u=x0(n.value,o);if(l[u])r=l[u];else if(l.inherit){for(var h=m0.indexOf(u),s=h-1;s>=0;--s)if(l[u]){r=l[u];break}r=r||a.none}if(V(r)){var c=n.level==null?0:n.level>=0?n.level:r.length+n.level;c=Math.min(c,r.length-1),r=r[c]}}return Ra(new Date(n.value),r,o,i)}function x0(n,e){var t=Re(n),i=t[pr(e)]()+1,o=t[Gl(e)](),r=t[Na(e)](),a=t[Hl(e)](),s=t[Yl(e)](),l=t[Ul(e)](),u=l===0,h=u&&s===0,c=h&&a===0,d=c&&r===0,p=d&&o===1,f=p&&i===1;return f?"year":p?"month":d?"day":c?"hour":h?"minute":u?"second":"millisecond"}function _0(n,e,t){var i=vt(n)?Re(n):n;switch(e=e||x0(n,t),e){case"year":return i[Np(t)]();case"half-year":return i[pr(t)]()>=6?1:0;case"quarter":return Math.floor((i[pr(t)]()+1)/4);case"month":return i[pr(t)]();case"day":return i[Gl(t)]();case"half-day":return i[Na(t)]()/24;case"hour":return i[Na(t)]();case"minute":return i[Hl(t)]();case"second":return i[Yl(t)]();case"millisecond":return i[Ul(t)]()}}function Np(n){return n?"getUTCFullYear":"getFullYear"}function pr(n){return n?"getUTCMonth":"getMonth"}function Gl(n){return n?"getUTCDate":"getDate"}function Na(n){return n?"getUTCHours":"getHours"}function Hl(n){return n?"getUTCMinutes":"getMinutes"}function Yl(n){return n?"getUTCSeconds":"getSeconds"}function Ul(n){return n?"getUTCMilliseconds":"getMilliseconds"}function FD(n){return n?"setUTCFullYear":"setFullYear"}function b0(n){return n?"setUTCMonth":"setMonth"}function w0(n){return n?"setUTCDate":"setDate"}function S0(n){return n?"setUTCHours":"setHours"}function M0(n){return n?"setUTCMinutes":"setMinutes"}function T0(n){return n?"setUTCSeconds":"setSeconds"}function C0(n){return n?"setUTCMilliseconds":"setMilliseconds"}function zp(n){if(!Oc(n))return G(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Bp(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var co=Rs;function Ep(n,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&De(h)?h:"-"}function r(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var a=e==="time",s=n instanceof Date;if(a||s){var l=a?Re(n):n;if(isNaN(+l)){if(s)return"-"}else return Ra(l,i,t)}if(e==="ordinal")return Ls(n)?o(n):vt(n)&&r(n)?n+"":"-";var u=Un(n);return r(u)?zp(u):Ls(n)?o(n):typeof n=="boolean"?n+"":"-"}var I0=["a","b","c","d","e","f","g"],Vp=function(n,e){return"{"+n+(e!=null?e:"")+"}"};function Fp(n,e,t){V(e)||(e=[e]);var i=e.length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=I0[r];n=n.replace(Vp(a),Vp(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var u=e[s][o[l]];n=n.replace(Vp(I0[l],s),t?le(u):u)}return n}function WD(n,e,t){return M(e,function(i,o){n=n.replace("{"+o+"}",t?le(i):i)}),n}function A0(n,e){var t=G(n)?{color:n,extraCssText:e}:n||{},i=t.color,o=t.type;e=t.extraCssText;var r=t.renderMode||"html";if(!i)return"";if(r==="html")return o==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+le(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+le(i)+";"+(e||"")+'"></span>';var a=t.markerId||"markerX";return{renderMode:r,content:"{"+a+"|} ",style:o==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function GD(n,e,t){(n==="week"||n==="month"||n==="quarter"||n==="half-year"||n==="year")&&(n=`MM-dd
- yyyy`);var i=Re(e),o=t?"getUTC":"get",r=i[o+"FullYear"](),a=i[o+"Month"]()+1,s=i[o+"Date"](),l=i[o+"Hours"](),u=i[o+"Minutes"](),h=i[o+"Seconds"](),c=i[o+"Milliseconds"]();return n=n.replace("MM",ce(a,2)).replace("M",a).replace("yyyy",r).replace("yy",ce(r%100+"",2)).replace("dd",ce(s,2)).replace("d",s).replace("hh",ce(l,2)).replace("h",l).replace("mm",ce(u,2)).replace("m",u).replace("ss",ce(h,2)).replace("s",h).replace("SSS",ce(c,3)),n}function HD(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function po(n,e){return e=e||"transparent",G(n)?n:j(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function Wp(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var Xl=M,D0=["left","right","top","bottom","width","height"],fo=[["width","left","right"],["height","top","bottom"]];function Gp(n,e,t,i,o){var r=0,a=0;i==null&&(i=1/0),o==null&&(o=1/0);var s=0;e.eachChild(function(l,u){var h=l.getBoundingRect(),c=e.childAt(u+1),d=c&&c.getBoundingRect(),p,f;if(n==="horizontal"){var g=h.width+(d?-d.x+h.x:0);p=r+g,p>i||l.newline?(r=0,p=g,a+=s+t,s=h.height):s=Math.max(s,h.height)}else{var v=h.height+(d?-d.y+h.y:0);f=a+v,f>o||l.newline?(r+=s+t,a=0,f=v,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=r,l.y=a,l.markRedraw(),n==="horizontal"?r=p+t:a=f+t)})}var go=Gp;pt(Gp,"vertical"),pt(Gp,"horizontal");function YD(n,e,t){var i=e.width,o=e.height,r=U(n.left,i),a=U(n.top,o),s=U(n.right,i),l=U(n.bottom,o);return(isNaN(r)||isNaN(parseFloat(n.left)))&&(r=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(n.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=o),t=co(t||0),{width:Math.max(s-r-t[1]-t[3],0),height:Math.max(l-a-t[0]-t[2],0)}}function pe(n,e,t){t=co(t||0);var i=e.width,o=e.height,r=U(n.left,i),a=U(n.top,o),s=U(n.right,i),l=U(n.bottom,o),u=U(n.width,i),h=U(n.height,o),c=t[2]+t[0],d=t[1]+t[3],p=n.aspect;switch(isNaN(u)&&(u=i-s-d-r),isNaN(h)&&(h=o-l-c-a),p!=null&&(isNaN(u)&&isNaN(h)&&(p>i/o?u=i*.8:h=o*.8),isNaN(u)&&(u=p*h),isNaN(h)&&(h=u/p)),isNaN(r)&&(r=i-s-u-d),isNaN(a)&&(a=o-l-h-c),n.left||n.right){case"center":r=i/2-u/2-t[3];break;case"right":r=i-u-d;break}switch(n.top||n.bottom){case"middle":case"center":a=o/2-h/2-t[0];break;case"bottom":a=o-h-c;break}r=r||0,a=a||0,isNaN(u)&&(u=i-d-r-(s||0)),isNaN(h)&&(h=o-c-a-(l||0));var f=new ut(r+t[3],a+t[0],u,h);return f.margin=t,f}function Zl(n,e,t,i,o,r){var a=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";if(r=r||n,r.x=n.x,r.y=n.y,!a&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new ut(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var h=n.getLocalTransform();u=u.clone(),u.applyTransform(h)}var c=pe(K({width:u.width,height:u.height},e),t,i),d=a?c.x-u.x:0,p=s?c.y-u.y:0;return l==="raw"?(r.x=d,r.y=p):(r.x+=d,r.y+=p),r===n&&n.markRedraw(),!0}function UD(n,e){return n[fo[e][0]]!=null||n[fo[e][1]]!=null&&n[fo[e][2]]!=null}function za(n){var e=n.layoutMode||n.constructor.layoutMode;return j(e)?e:e?{type:e}:null}function xi(n,e,t){var i=t&&t.ignoreSize;!V(i)&&(i=[i,i]);var o=a(fo[0],0),r=a(fo[1],1);u(fo[0],n,o),u(fo[1],n,r);function a(h,c){var d={},p=0,f={},g=0,v=2;if(Xl(h,function(x){f[x]=n[x]}),Xl(h,function(x){s(e,x)&&(d[x]=f[x]=e[x]),l(d,x)&&p++,l(f,x)&&g++}),i[c])return l(e,h[1])?f[h[2]]=null:l(e,h[2])&&(f[h[1]]=null),f;if(g===v||!p)return f;if(p>=v)return d;for(var y=0;y<h.length;y++){var m=h[y];if(!s(d,m)&&s(n,m)){d[m]=n[m];break}}return d}function s(h,c){return h.hasOwnProperty(c)}function l(h,c){return h[c]!=null&&h[c]!=="auto"}function u(h,c,d){Xl(h,function(p){c[p]=d[p]})}}function dr(n){return k0({},n)}function k0(n,e){return e&&n&&Xl(D0,function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}var XD=_t(),fr=function(n){z(e,n);function e(t,i,o){var r=n.call(this,t,i,o)||this;return r.uid=ur("ec_cpt_model"),r}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o)},e.prototype.mergeDefaultAndTheme=function(t,i){var o=za(this),r=o?dr(t):{},a=i.getTheme();et(t,a.get(this.mainType)),et(t,this.getDefaultOption()),o&&xi(t,r,o)},e.prototype.mergeOption=function(t,i){et(this.option,t,!0);var o=za(this);o&&xi(this.option,t,o)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!AI(t))return t.defaultOption;var i=XD(this);if(!i.defaultOption){for(var o=[],r=t;r;){var a=r.prototype.defaultOption;a&&o.push(a),r=r.superClass}for(var s={},l=o.length-1;l>=0;l--)s=et(s,o[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var o=t+"Index",r=t+"Id";return va(this.ecModel,t,{index:this.get(o,!0),id:this.get(r,!0)},i)},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}(Ot);ky(fr,Ot),ul(fr),PD(fr),LD(fr,ZD);function ZD(n){var e=[];return M(fr.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=F(e,function(t){return bn(t).main}),n!=="dataset"&<(e,"dataset")<=0&&e.unshift("dataset"),e}const ft=fr;var P0="";typeof navigator<"u"&&(P0=navigator.platform||"");var gr="rgba(0, 0, 0, 0.2)";const jD={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:gr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:gr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:gr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:gr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:gr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:gr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:P0.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 L0=X(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),We="original",de="arrayRows",Ge="objectRows",Pn="keyedColumns",_i="typedArray",O0="unknown",Ln="column",vr="row",Kt={Must:1,Might:2,Not:3},R0=_t();function qD(n){R0(n).datasetMap=X()}function N0(n,e,t){var i={},o=Yp(e);if(!o||!n)return i;var r=[],a=[],s=e.ecModel,l=R0(s).datasetMap,u=o.uid+"_"+t.seriesLayoutBy,h,c;n=n.slice(),M(n,function(g,v){var y=j(g)?g:n[v]={name:g};y.type==="ordinal"&&h==null&&(h=v,c=f(y)),i[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});M(n,function(g,v){var y=g.name,m=f(g);if(h==null){var x=d.valueWayDim;p(i[y],x,m),p(a,x,m),d.valueWayDim+=m}else if(h===v)p(i[y],0,m),p(r,0,m);else{var x=d.categoryWayDim;p(i[y],x,m),p(a,x,m),d.categoryWayDim+=m}});function p(g,v,y){for(var m=0;m<y;m++)g.push(v+m)}function f(g){var v=g.dimsDef;return v?v.length:1}return r.length&&(i.itemName=r),a.length&&(i.seriesName=a),i}function Hp(n,e,t){var i={},o=Yp(n);if(!o)return i;var r=e.sourceFormat,a=e.dimensionsDefine,s;(r===Ge||r===Pn)&&M(a,function(h,c){(j(h)?h.name:h)==="name"&&(s=c)});var l=function(){for(var h={},c={},d=[],p=0,f=Math.min(5,t);p<f;p++){var g=B0(e.data,r,e.seriesLayoutBy,a,e.startIndex,p);d.push(g);var v=g===Kt.Not;if(v&&h.v==null&&p!==s&&(h.v=p),(h.n==null||h.n===h.v||!v&&d[h.n]===Kt.Not)&&(h.n=p),y(h)&&d[h.n]!==Kt.Not)return h;v||(g===Kt.Might&&c.v==null&&p!==s&&(c.v=p),(c.n==null||c.n===c.v)&&(c.n=p))}function y(m){return m.v!=null&&m.n!=null}return y(h)?h:y(c)?c:null}();if(l){i.value=[l.v];var u=s!=null?s:l.n;i.itemName=[u],i.seriesName=[u]}return i}function Yp(n){var e=n.get("data",!0);if(!e)return va(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},Bt).models[0]}function KD(n){return!n.get("transform",!0)&&!n.get("fromTransformResult",!0)?[]:va(n.ecModel,"dataset",{index:n.get("fromDatasetIndex",!0),id:n.get("fromDatasetId",!0)},Bt).models}function z0(n,e){return B0(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,e)}function B0(n,e,t,i,o,r){var a,s=5;if(se(n))return Kt.Not;var l,u;if(i){var h=i[r];j(h)?(l=h.name,u=h.type):G(h)&&(l=h)}if(u!=null)return u==="ordinal"?Kt.Must:Kt.Not;if(e===de){var c=n;if(t===vr){for(var d=c[r],p=0;p<(d||[]).length&&p<s;p++)if((a=_(d[o+p]))!=null)return a}else for(var p=0;p<c.length&&p<s;p++){var f=c[o+p];if(f&&(a=_(f[r]))!=null)return a}}else if(e===Ge){var g=n;if(!l)return Kt.Not;for(var p=0;p<g.length&&p<s;p++){var v=g[p];if(v&&(a=_(v[l]))!=null)return a}}else if(e===Pn){var y=n;if(!l)return Kt.Not;var d=y[l];if(!d||se(d))return Kt.Not;for(var p=0;p<d.length&&p<s;p++)if((a=_(d[p]))!=null)return a}else if(e===We)for(var m=n,p=0;p<m.length&&p<s;p++){var v=m[p],x=$o(v);if(!V(x))return Kt.Not;if((a=_(x[r]))!=null)return a}function _(w){var b=G(w);if(w!=null&&isFinite(w)&&w!=="")return b?Kt.Might:Kt.Not;if(b&&w!=="-")return Kt.Must}return Kt.Not}var Up=X();function $D(n,e){Jt(Up.get(n)==null&&e),Up.set(n,e)}function QD(n,e,t){var i=Up.get(e);if(!i)return t;var o=i(n);return o?t.concat(o):t}var E0=_t(),JD=_t(),Xp=function(){function n(){}return n.prototype.getColorFromPalette=function(e,t,i){var o=Dt(this.get("color",!0)),r=this.get("colorLayer",!0);return V0(this,E0,o,r,e,t,i)},n.prototype.clearColorPalette=function(){ek(this,E0)},n}();function Zp(n,e,t,i){var o=Dt(n.get(["aria","decal","decals"]));return V0(n,JD,o,null,e,t,i)}function tk(n,e){for(var t=n.length,i=0;i<t;i++)if(n[i].length>e)return n[i];return n[t-1]}function V0(n,e,t,i,o,r,a){r=r||n;var s=e(r),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(o))return u[o];var h=a==null||!i?t:tk(i,a);if(h=h||t,!(!h||!h.length)){var c=h[l];return o&&(u[o]=c),s.paletteIdx=(l+1)%h.length,c}}function ek(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var jl,Ba,F0,W0="\0_ec_inner",nk=1,G0=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,i,o,r,a,s){r=r||{},this.option=null,this._theme=new Ot(r),this._locale=new Ot(a),this._optionManager=s},e.prototype.setOption=function(t,i,o){var r=U0(i);this._optionManager.setOption(t,o,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,i){return this._resetOption(t,U0(i))},e.prototype._resetOption=function(t,i){var o=!1,r=this._optionManager;if(!t||t==="recreate"){var a=r.mountOption(t==="recreate");!this.option||t==="recreate"?F0(this,a):(this.restoreData(),this._mergeOption(a,i)),o=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=r.getTimelineOption(this);s&&(o=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=r.getMediaOption(this);l.length&&M(l,function(u){o=!0,this._mergeOption(u,i)},this)}return o},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var o=this.option,r=this._componentsMap,a=this._componentsCount,s=[],l=X(),u=i&&i.replaceMergeMainTypeMap;qD(this),M(t,function(c,d){c!=null&&(ft.hasClass(d)?d&&(s.push(d),l.set(d,!0)):o[d]=o[d]==null?q(c):et(o[d],c,!0))}),u&&u.each(function(c,d){ft.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),ft.topologicalTravel(s,ft.getAllClassMainTypes(),h,this);function h(c){var d=QD(this,c,Dt(t[c])),p=r.get(c),f=p?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=Ty(p,d,f);mI(g,c,ft),o[c]=null,r.set(c,null),a.set(c,0);var v=[],y=[],m=0,x;M(g,function(_,w){var b=_.existing,S=_.newOption;if(!S)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=c==="series",I=ft.getClass(c,_.keyInfo.subType,!T);if(!I)return;if(c==="tooltip"){if(x)return;x=!0}if(b&&b.constructor===I)b.name=_.keyInfo.name,b.mergeOption(S,this),b.optionUpdated(S,!1);else{var C=N({componentIndex:w},_.keyInfo);b=new I(S,this,this,C),N(b,C),_.brandNew&&(b.__requireNewView=!0),b.init(S,this,this),b.optionUpdated(null,!0)}}b?(v.push(b.option),y.push(b),m++):(v.push(void 0),y.push(void 0))},this),o[c]=v,r.set(c,y),a.set(c,m),c==="series"&&jl(this)}this._seriesIndices||jl(this)},e.prototype.getOption=function(){var t=q(this.option);return M(t,function(i,o){if(ft.hasClass(o)){for(var r=Dt(i),a=r.length,s=!1,l=a-1;l>=0;l--)r[l]&&!fa(r[l])?s=!0:(r[l]=null,!s&&a--);r.length=a,t[o]=r}}),delete t[W0],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,i){var o=this._componentsMap.get(t);if(o){var r=o[i||0];if(r)return r;if(i==null){for(var a=0;a<o.length;a++)if(o[a])return o[a]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var o=t.index,r=t.id,a=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return o!=null?(l=[],M(Dt(o),function(u){s[u]&&l.push(s[u])})):r!=null?l=H0("id",r,s):a!=null?l=H0("name",a,s):l=At(s,function(u){return!!u}),Y0(l,t)},e.prototype.findComponents=function(t){var i=t.query,o=t.mainType,r=s(i),a=r?this.queryComponents(r):At(this._componentsMap.get(o),function(u){return!!u});return l(Y0(a,t));function s(u){var h=o+"Index",c=o+"Id",d=o+"Name";return u&&(u[h]!=null||u[c]!=null||u[d]!=null)?{mainType:o,index:u[h],id:u[c],name:u[d]}:null}function l(u){return t.filter?At(u,t.filter):u}},e.prototype.eachComponent=function(t,i,o){var r=this._componentsMap;if($(t)){var a=i,s=t;r.each(function(c,d){for(var p=0;c&&p<c.length;p++){var f=c[p];f&&s.call(a,d,f,f.componentIndex)}})}else for(var l=G(t)?r.get(t):j(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var h=l[u];h&&i.call(o,h,h.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=jt(t,null);return At(this._componentsMap.get("series"),function(o){return!!o&&i!=null&&o.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return At(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return At(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){Ba(this),M(this._seriesIndices,function(o){var r=this._componentsMap.get("series")[o];t.call(i,r,o)},this)},e.prototype.eachRawSeries=function(t,i){M(this._componentsMap.get("series"),function(o){o&&t.call(i,o,o.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,o){Ba(this),M(this._seriesIndices,function(r){var a=this._componentsMap.get("series")[r];a.subType===t&&i.call(o,a,r)},this)},e.prototype.eachRawSeriesByType=function(t,i,o){return M(this.getSeriesByType(t),i,o)},e.prototype.isSeriesFiltered=function(t){return Ba(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){Ba(this);var o=[];M(this._seriesIndices,function(r){var a=this._componentsMap.get("series")[r];t.call(i,a,r)&&o.push(r)},this),this._seriesIndices=o,this._seriesIndicesMap=X(o)},e.prototype.restoreData=function(t){jl(this);var i=this._componentsMap,o=[];i.each(function(r,a){ft.hasClass(a)&&o.push(a)}),ft.topologicalTravel(o,ft.getAllClassMainTypes(),function(r){M(i.get(r),function(a){a&&(r!=="series"||!ik(a,t))&&a.restoreData()})})},e.internalField=function(){jl=function(t){var i=t._seriesIndices=[];M(t._componentsMap.get("series"),function(o){o&&i.push(o.componentIndex)}),t._seriesIndicesMap=X(i)},Ba=function(t){},F0=function(t,i){t.option={},t.option[W0]=nk,t._componentsMap=X({series:[]}),t._componentsCount=X();var o=i.aria;j(o)&&o.enabled==null&&(o.enabled=!0),ok(i,t._theme.option),et(i,jD,!1),t._mergeOption(i,null)}}(),e}(Ot);function ik(n,e){if(e){var t=e.seriesIndex,i=e.seriesId,o=e.seriesName;return t!=null&&n.componentIndex!==t||i!=null&&n.id!==i||o!=null&&n.name!==o}}function ok(n,e){var t=n.color&&!n.colorLayer;M(e,function(i,o){o==="colorLayer"&&t||ft.hasClass(o)||(typeof i=="object"?n[o]=n[o]?et(n[o],i,!1):q(i):n[o]==null&&(n[o]=i))})}function H0(n,e,t){if(V(e)){var i=X();return M(e,function(r){if(r!=null){var a=jt(r,null);a!=null&&i.set(r,!0)}}),At(t,function(r){return r&&i.get(r[n])})}else{var o=jt(e,null);return At(t,function(r){return r&&o!=null&&r[n]===o})}}function Y0(n,e){return e.hasOwnProperty("subType")?At(n,function(t){return t&&t.subType===e.subType}):n}function U0(n){var e=X();return n&&M(Dt(n.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Ut(G0,Xp);const X0=G0;var rk=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ak=function(){function n(e){M(rk,function(t){this[t]=Y(e[t],e)},this)}return n}();const Z0=ak;var jp={},sk=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(e,t){var i=[];M(jp,function(o,r){var a=o.create(e,t);i=i.concat(a||[])}),this._coordinateSystems=i},n.prototype.update=function(e,t){M(this._coordinateSystems,function(i){i.update&&i.update(e,t)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(e,t){jp[e]=t},n.get=function(e){return jp[e]},n}();const Ea=sk;var lk=/^(min|max)?(.+)$/,uk=function(){function n(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return n.prototype.setOption=function(e,t,i){e&&(M(Dt(e.series),function(a){a&&a.data&&se(a.data)&&Fr(a.data)}),M(Dt(e.dataset),function(a){a&&a.source&&se(a.source)&&Fr(a.source)})),e=q(e);var o=this._optionBackup,r=hk(e,t,!o);this._newBaseOption=r.baseOption,o?(r.timelineOptions.length&&(o.timelineOptions=r.timelineOptions),r.mediaList.length&&(o.mediaList=r.mediaList),r.mediaDefault&&(o.mediaDefault=r.mediaDefault)):this._optionBackup=r},n.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],q(e?t.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var o=e.getComponent("timeline");o&&(t=q(i[o.getCurrentIndex()]))}return t},n.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,r=this._mediaDefault,a=[],s=[];if(!o.length&&!r)return s;for(var l=0,u=o.length;l<u;l++)ck(o[l].query,t,i)&&a.push(l);return!a.length&&r&&(a=[-1]),a.length&&!dk(a,this._currentMediaIndices)&&(s=F(a,function(h){return q(h===-1?r.option:o[h].option)})),this._currentMediaIndices=a,s},n}();function hk(n,e,t){var i=[],o,r,a=n.baseOption,s=n.timeline,l=n.options,u=n.media,h=!!n.media,c=!!(l||s||a&&a.timeline);a?(r=a,r.timeline||(r.timeline=s)):((c||h)&&(n.options=n.media=null),r=n),h&&V(u)&&M(u,function(p){p&&p.option&&(p.query?i.push(p):o||(o=p))}),d(r),M(l,function(p){return d(p)}),M(i,function(p){return d(p.option)});function d(p){M(e,function(f){f(p,t)})}return{baseOption:r,timelineOptions:l||[],mediaDefault:o,mediaList:i}}function ck(n,e,t){var i={width:e,height:t,aspectratio:e/t},o=!0;return M(n,function(r,a){var s=a.match(lk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();pk(i[u],r,l)||(o=!1)}}),o}function pk(n,e,t){return t==="min"?n>=e:t==="max"?n<=e:n===e}function dk(n,e){return n.join(",")===e.join(",")}const fk=uk;var an=M,Va=j,j0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function qp(n){var e=n&&n.itemStyle;if(e)for(var t=0,i=j0.length;t<i;t++){var o=j0[t],r=e.normal,a=e.emphasis;r&&r[o]&&(n[o]=n[o]||{},n[o].normal?et(n[o].normal,r[o]):n[o].normal=r[o],r[o]=null),a&&a[o]&&(n[o]=n[o]||{},n[o].emphasis?et(n[o].emphasis,a[o]):n[o].emphasis=a[o],a[o]=null)}}function ie(n,e,t){if(n&&n[e]&&(n[e].normal||n[e].emphasis)){var i=n[e].normal,o=n[e].emphasis;i&&(t?(n[e].normal=n[e].emphasis=null,K(n[e],i)):n[e]=i),o&&(n.emphasis=n.emphasis||{},n.emphasis[e]=o,o.focus&&(n.emphasis.focus=o.focus),o.blurScope&&(n.emphasis.blurScope=o.blurScope))}}function Fa(n){ie(n,"itemStyle"),ie(n,"lineStyle"),ie(n,"areaStyle"),ie(n,"label"),ie(n,"labelLine"),ie(n,"upperLabel"),ie(n,"edgeLabel")}function Nt(n,e){var t=Va(n)&&n[e],i=Va(t)&&t.textStyle;if(i)for(var o=0,r=My.length;o<r;o++){var a=My[o];i.hasOwnProperty(a)&&(t[a]=i[a])}}function He(n){n&&(Fa(n),Nt(n,"label"),n.emphasis&&Nt(n.emphasis,"label"))}function gk(n){if(Va(n)){qp(n),Fa(n),Nt(n,"label"),Nt(n,"upperLabel"),Nt(n,"edgeLabel"),n.emphasis&&(Nt(n.emphasis,"label"),Nt(n.emphasis,"upperLabel"),Nt(n.emphasis,"edgeLabel"));var e=n.markPoint;e&&(qp(e),He(e));var t=n.markLine;t&&(qp(t),He(t));var i=n.markArea;i&&He(i);var o=n.data;if(n.type==="graph"){o=o||n.nodes;var r=n.links||n.edges;if(r&&!se(r))for(var a=0;a<r.length;a++)He(r[a]);M(n.categories,function(u){Fa(u)})}if(o&&!se(o))for(var a=0;a<o.length;a++)He(o[a]);if(e=n.markPoint,e&&e.data)for(var s=e.data,a=0;a<s.length;a++)He(s[a]);if(t=n.markLine,t&&t.data)for(var l=t.data,a=0;a<l.length;a++)V(l[a])?(He(l[a][0]),He(l[a][1])):He(l[a]);n.type==="gauge"?(Nt(n,"axisLabel"),Nt(n,"title"),Nt(n,"detail")):n.type==="treemap"?(ie(n.breadcrumb,"itemStyle"),M(n.levels,function(u){Fa(u)})):n.type==="tree"&&Fa(n.leaves)}}function Qn(n){return V(n)?n:n?[n]:[]}function q0(n){return(V(n)?n[0]:n)||{}}function vk(n,e){an(Qn(n.series),function(i){Va(i)&&gk(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),an(t,function(i){an(Qn(n[i]),function(o){o&&(Nt(o,"axisLabel"),Nt(o.axisPointer,"label"))})}),an(Qn(n.parallel),function(i){var o=i&&i.parallelAxisDefault;Nt(o,"axisLabel"),Nt(o&&o.axisPointer,"label")}),an(Qn(n.calendar),function(i){ie(i,"itemStyle"),Nt(i,"dayLabel"),Nt(i,"monthLabel"),Nt(i,"yearLabel")}),an(Qn(n.radar),function(i){Nt(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),an(Qn(n.geo),function(i){Va(i)&&(He(i),an(Qn(i.regions),function(o){He(o)}))}),an(Qn(n.timeline),function(i){He(i),ie(i,"label"),ie(i,"itemStyle"),ie(i,"controlStyle",!0);var o=i.data;V(o)&&M(o,function(r){j(r)&&(ie(r,"label"),ie(r,"itemStyle"))})}),an(Qn(n.toolbox),function(i){ie(i,"iconStyle"),an(i.feature,function(o){ie(o,"iconStyle")})}),Nt(q0(n.axisPointer),"label"),Nt(q0(n.tooltip).axisPointer,"label")}function yk(n,e){for(var t=e.split(","),i=n,o=0;o<t.length&&(i=i&&i[t[o]],i!=null);o++);return i}function mk(n,e,t,i){for(var o=e.split(","),r=n,a,s=0;s<o.length-1;s++)a=o[s],r[a]==null&&(r[a]={}),r=r[a];(i||r[o[s]]==null)&&(r[o[s]]=t)}function K0(n){n&&M(xk,function(e){e[0]in n&&!(e[1]in n)&&(n[e[1]]=n[e[0]])})}var xk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],_k=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Kp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Wa(n){var e=n&&n.itemStyle;if(e)for(var t=0;t<Kp.length;t++){var i=Kp[t][1],o=Kp[t][0];e[i]!=null&&(e[o]=e[i])}}function $0(n){n&&n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&(n.edgeDistance=n.margin)}function Q0(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay)}function bk(n){n&&n.focusNodeAdjacency!=null&&(n.emphasis=n.emphasis||{},n.emphasis.focus==null&&(n.emphasis.focus="adjacency"))}function J0(n,e){if(n)for(var t=0;t<n.length;t++)e(n[t]),n[t]&&J0(n[t].children,e)}function t1(n,e){vk(n,e),n.series=Dt(n.series),M(n.series,function(t){if(j(t)){var i=t.type;if(i==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(i==="pie"||i==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),$0(t.label);var o=t.data;if(o&&!se(o))for(var r=0;r<o.length;r++)$0(o[r]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var a=yk(t,"pointer.color");a!=null&&mk(t,"itemStyle.color",a)}else if(i==="bar"){Wa(t),Wa(t.backgroundStyle),Wa(t.emphasis);var o=t.data;if(o&&!se(o))for(var r=0;r<o.length;r++)typeof o[r]=="object"&&(Wa(o[r]),Wa(o[r]&&o[r].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Q0(t),J0(t.data,Q0)}else i==="graph"||i==="sankey"?bk(t):i==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&K(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),K0(t)}}),n.dataRange&&(n.visualMap=n.dataRange),M(_k,function(t){var i=n[t];i&&(V(i)||(i=[i]),M(i,function(o){K0(o)}))})}function wk(n){var e=X();n.eachSeries(function(t){var i=t.get("stack");if(i){var o=e.get(i)||e.set(i,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;o.length&&r.setCalculationInfo("stackedOnSeries",o[o.length-1].seriesModel),o.push(a)}}),e.each(Sk)}function Sk(n){M(n,function(e,t){var i=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(r,function(u,h,c){var d=a.get(e.stackedDimension,c);if(isNaN(d))return o;var p,f;s?f=a.getRawIndex(c):p=a.get(e.stackedByDimension,c);for(var g=NaN,v=t-1;v>=0;v--){var y=n[v];if(s||(f=y.data.rawIndexOf(y.stackedByDimension,p)),f>=0){var m=y.data.getByRawIndex(y.stackResultDimension,f);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&d>=0&&m>0||l==="samesign"&&d<=0&&m<0){d=aI(d,m),g=m;break}}}return i[0]=d,i[1]=g,i})})}var ql=function(){function n(e){this.data=e.data||(e.sourceFormat===Pn?{}:[]),this.sourceFormat=e.sourceFormat||O0,this.seriesLayoutBy=e.seriesLayoutBy||Ln,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var o=t[i];o.type==null&&z0(this,i)===Kt.Must&&(o.type="ordinal")}}return n}();function $p(n){return n instanceof ql}function Qp(n,e,t){t=t||e1(n);var i=e.seriesLayoutBy,o=Tk(n,t,i,e.sourceHeader,e.dimensions),r=new ql({data:n,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:q(e)});return r}function Jp(n){return new ql({data:n,sourceFormat:se(n)?_i:We})}function Mk(n){return new ql({data:n.data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:q(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount})}function e1(n){var e=O0;if(se(n))e=_i;else if(V(n)){n.length===0&&(e=de);for(var t=0,i=n.length;t<i;t++){var o=n[t];if(o!=null){if(V(o)||se(o)){e=de;break}else if(j(o)){e=Ge;break}}}}else if(j(n)){for(var r in n)if(H(n,r)&&Xt(n[r])){e=Pn;break}}return e}function Tk(n,e,t,i,o){var r,a;if(!n)return{dimensionsDefine:n1(o),startIndex:a,dimensionsDetectedCount:r};if(e===de){var s=n;i==="auto"||i==null?i1(function(u){u!=null&&u!=="-"&&(G(u)?a==null&&(a=1):a=0)},t,s,10):a=vt(i)?i:i?1:0,!o&&a===1&&(o=[],i1(function(u,h){o[h]=u!=null?u+"":""},t,s,1/0)),r=o?o.length:t===vr?s.length:s[0]?s[0].length:null}else if(e===Ge)o||(o=Ck(n));else if(e===Pn)o||(o=[],M(n,function(u,h){o.push(h)}));else if(e===We){var l=$o(n[0]);r=V(l)&&l.length||1}return{startIndex:a,dimensionsDefine:n1(o),dimensionsDetectedCount:r}}function Ck(n){for(var e=0,t;e<n.length&&!(t=n[e++]););if(t)return at(t)}function n1(n){if(n){var e=X();return F(n,function(t,i){t=j(t)?t:{name:t};var o={name:t.name,displayName:t.displayName,type:t.type};if(o.name==null)return o;o.name+="",o.displayName==null&&(o.displayName=o.name);var r=e.get(o.name);return r?o.name+="-"+r.count++:e.set(o.name,{count:1}),o})}}function i1(n,e,t,i){if(e===vr)for(var o=0;o<t.length&&o<i;o++)n(t[o]?t[o][0]:null,o);else for(var r=t[0]||[],o=0;o<r.length&&o<i;o++)n(r[o],o)}function o1(n){var e=n.sourceFormat;return e===Ge||e===Pn}var vo,yo,mo,r1,a1,s1=function(){function n(e,t){var i=$p(e)?e:Jp(e);this._source=i;var o=this._data=i.data;i.sourceFormat===_i&&(this._offset=0,this._dimSize=t,this._data=o),a1(this,o,i)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(e,t){},n.prototype.appendData=function(e){},n.prototype.clean=function(){},n.protoInitialize=function(){var e=n.prototype;e.pure=!1,e.persistent=!0}(),n.internalField=function(){var e;a1=function(a,s,l){var u=l.sourceFormat,h=l.seriesLayoutBy,c=l.startIndex,d=l.dimensionsDefine,p=r1[ed(u,h)];if(N(a,p),u===_i)a.getItem=t,a.count=o,a.fillStorage=i;else{var f=u1(u,h);a.getItem=Y(f,null,s,c,d);var g=c1(u,h);a.count=Y(g,null,s,c,d)}};var t=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,h=u*a,c=0;c<u;c++)s[c]=l[h+c];return s},i=function(a,s,l,u){for(var h=this._data,c=this._dimSize,d=0;d<c;d++){for(var p=u[d],f=p[0]==null?1/0:p[0],g=p[1]==null?-1/0:p[1],v=s-a,y=l[d],m=0;m<v;m++){var x=h[m*c+d];y[a+m]=x,x<f&&(f=x),x>g&&(g=x)}p[0]=f,p[1]=g}},o=function(){return this._data?this._data.length/this._dimSize:0};r1=(e={},e[de+"_"+Ln]={pure:!0,appendData:r},e[de+"_"+vr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ge]={pure:!0,appendData:r},e[Pn]={pure:!0,appendData:function(a){var s=this._data;M(a,function(l,u){for(var h=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)h.push(l[c])})}},e[We]={appendData:r},e[_i]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},e);function r(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}}(),n}(),l1=function(n,e,t,i){return n[i]},Ik=(vo={},vo[de+"_"+Ln]=function(n,e,t,i){return n[i+e]},vo[de+"_"+vr]=function(n,e,t,i,o){i+=e;for(var r=o||[],a=n,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},vo[Ge]=l1,vo[Pn]=function(n,e,t,i,o){for(var r=o||[],a=0;a<t.length;a++){var s=t[a].name,l=n[s];r[a]=l?l[i]:null}return r},vo[We]=l1,vo);function u1(n,e){var t=Ik[ed(n,e)];return t}var h1=function(n,e,t){return n.length},Ak=(yo={},yo[de+"_"+Ln]=function(n,e,t){return Math.max(0,n.length-e)},yo[de+"_"+vr]=function(n,e,t){var i=n[0];return i?Math.max(0,i.length-e):0},yo[Ge]=h1,yo[Pn]=function(n,e,t){var i=t[0].name,o=n[i];return o?o.length:0},yo[We]=h1,yo);function c1(n,e){var t=Ak[ed(n,e)];return t}var td=function(n,e,t){return n[e]},Dk=(mo={},mo[de]=td,mo[Ge]=function(n,e,t){return n[t]},mo[Pn]=td,mo[We]=function(n,e,t){var i=$o(n);return i instanceof Array?i[e]:i},mo[_i]=td,mo);function p1(n){var e=Dk[n];return e}function ed(n,e){return n===de?n+"_"+e:n}function yr(n,e,t){if(n){var i=n.getRawDataItem(e);if(i!=null){var o=n.getStore(),r=o.getSource().sourceFormat;if(t!=null){var a=n.getDimensionIndex(t),s=o.getDimensionProperty(a);return p1(r)(i,a,s)}else{var l=i;return r===We&&(l=$o(i)),l}}}}var kk=/\{@(.+?)\}/g,nd=function(){function n(){}return n.prototype.getDataParams=function(e,t){var i=this.getData(t),o=this.getRawValue(e,t),r=i.getRawIndex(e),a=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],h=l&&l.stroke,c=this.mainType,d=c==="series",p=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:r,data:s,dataType:t,value:o,color:u,borderColor:h,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(e,t,i,o,r,a){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(a&&(l.value=a.interpolatedValue),o!=null&&V(l.value)&&(l.value=l.value[o]),!r){var u=s.getItemModel(e);r=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if($(r))return l.status=t,l.dimensionIndex=o,r(l);if(G(r)){var h=Fp(r,l);return h.replace(kk,function(c,d){var p=d.length,f=d;f.charAt(0)==="["&&f.charAt(p-1)==="]"&&(f=+f.slice(1,p-1));var g=yr(s,e,f);if(a&&V(a.interpolatedValue)){var v=s.getDimensionIndex(f);v>=0&&(g=a.interpolatedValue[v])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return yr(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,i){},n}();function d1(n){var e,t;return j(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function Ga(n){return new Pk(n)}var Pk=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var o=this.context;o.data=o.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var r;this._plan&&!i&&(r=this._plan(this.context));var a=h(this._modBy),s=this._modDataCount||0,l=h(e&&e.modBy),u=e&&e.modDataCount||0;(a!==l||s!==u)&&(r="reset");function h(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||r==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(c||p<f)){var g=this._progress;if(V(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],p,f,l,u);else this._doProgress(g,p,f,l,u)}this._dueIndex=f;var y=this._settedOutputEnd!=null?this._settedOutputEnd:f;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(e,t,i,o,r){f1.reset(t,i,o,r),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:f1.next},this.context)},n.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(i=t.forceFirstProgress,t=t.progress),V(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var o=this._downstream;return o&&o.dirty(),i},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},n}(),f1=function(){var n,e,t,i,o,r={reset:function(l,u,h,c){e=l,n=u,t=h,i=c,o=Math.ceil(i/t),r.next=t>1&&i>0?s:a}};return r;function a(){return e<n?e++:null}function s(){var l=e%o*t+Math.ceil(e/o),u=e>=n?null:l<i?l:e;return e++,u}}();function Ha(n,e){var t=e&&e.type;return t==="ordinal"?n:(t==="time"&&!vt(n)&&n!=null&&n!=="-"&&(n=+Re(n)),n==null||n===""?NaN:+n)}var Lk=X({number:function(n){return parseFloat(n)},time:function(n){return+Re(n)},trim:function(n){return G(n)?De(n):n}});function Ok(n){return Lk.get(n)}var g1={lt:function(n,e){return n<e},lte:function(n,e){return n<=e},gt:function(n,e){return n>e},gte:function(n,e){return n>=e}},Rk=function(){function n(e,t){if(!vt(t)){var i="";te(i)}this._opFn=g1[e],this._rvalFloat=Un(t)}return n.prototype.evaluate=function(e){return vt(e)?this._opFn(e,this._rvalFloat):this._opFn(Un(e),this._rvalFloat)},n}(),v1=function(){function n(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var i=vt(e)?e:Un(e),o=vt(t)?t:Un(t),r=isNaN(i),a=isNaN(o);if(r&&(i=this._incomparable),a&&(o=this._incomparable),r&&a){var s=G(e),l=G(t);s&&(i=l?e:0),l&&(o=s?t:0)}return i<o?this._resultLT:i>o?-this._resultLT:0},n}(),Nk=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Un(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=Un(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function zk(n,e){return n==="eq"||n==="ne"?new Nk(n==="eq",e):H(g1,n)?new Rk(n,e):null}var Bk=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return Ha(e,t)},n}();function Ek(n,e){var t=new Bk,i=n.data,o=t.sourceFormat=n.sourceFormat,r=n.startIndex,a="";n.seriesLayoutBy!==Ln&&te(a);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,v){var y=g.name,m={index:v,name:y,displayName:g.displayName};if(s.push(m),y!=null){var x="";H(l,y)&&te(x),l[y]=m}});else for(var h=0;h<n.dimensionsDetectedCount;h++)s.push({index:h});var c=u1(o,Ln);e.__isBuiltIn&&(t.getRawDataItem=function(g){return c(i,r,s,g)},t.getRawData=Y(Vk,null,n)),t.cloneRawData=Y(Fk,null,n);var d=c1(o,Ln);t.count=Y(d,null,i,r,s);var p=p1(o);t.retrieveValue=function(g,v){var y=c(i,r,s,g);return f(y,v)};var f=t.retrieveValueFromItem=function(g,v){if(g!=null){var y=s[v];if(y)return p(g,v,y.name)}};return t.getDimensionInfo=Y(Wk,null,s,l),t.cloneAllDimensionInfo=Y(Gk,null,s),t}function Vk(n){var e=n.sourceFormat;if(!id(e)){var t="";te(t)}return n.data}function Fk(n){var e=n.sourceFormat,t=n.data;if(!id(e)){var i="";te(i)}if(e===de){for(var o=[],r=0,a=t.length;r<a;r++)o.push(t[r].slice());return o}else if(e===Ge){for(var o=[],r=0,a=t.length;r<a;r++)o.push(N({},t[r]));return o}}function Wk(n,e,t){if(t!=null){if(vt(t)||!isNaN(t)&&!H(e,t))return n[t];if(H(e,t))return e[t]}}function Gk(n){return q(n)}var y1=X();function Hk(n){n=q(n);var e=n.type,t="";e||te(t);var i=e.split(":");i.length!==2&&te(t);var o=!1;i[0]==="echarts"&&(e=i[1],o=!0),n.__isBuiltIn=o,y1.set(e,n)}function Yk(n,e,t){var i=Dt(n),o=i.length,r="";o||te(r);for(var a=0,s=o;a<s;a++){var l=i[a];e=Uk(l,e),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function Uk(n,e,t,i){var o="";e.length||te(o),j(n)||te(o);var r=n.type,a=y1.get(r);a||te(o);var s=F(e,function(u){return Ek(u,a)}),l=Dt(a.transform({upstream:s[0],upstreamList:s,config:q(n.config)}));return F(l,function(u,h){var c="";j(u)||te(c),u.data||te(c);var d=e1(u.data);id(d)||te(c);var p,f=e[0];if(f&&h===0&&!u.dimensions){var g=f.startIndex;g&&(u.data=f.data.slice(0,g).concat(u.data)),p={seriesLayoutBy:Ln,sourceHeader:g,dimensions:f.metaRawOption.dimensions}}else p={seriesLayoutBy:Ln,sourceHeader:0,dimensions:u.dimensions};return Qp(u.data,p,null)})}function id(n){return n===de||n===Ge}var Kl="undefined",Xk=typeof Uint32Array===Kl?Array:Uint32Array,Zk=typeof Uint16Array===Kl?Array:Uint16Array,m1=typeof Int32Array===Kl?Array:Int32Array,x1=typeof Float64Array===Kl?Array:Float64Array,_1={float:x1,int:m1,ordinal:Array,number:Array,time:x1},od;function Ya(n){return n>65535?Xk:Zk}function mr(){return[1/0,-1/0]}function jk(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function b1(n,e,t,i,o){var r=_1[t||"float"];if(o){var a=n[e],s=a&&a.length;if(s!==i){for(var l=new r(i),u=0;u<s;u++)l[u]=a[u];n[e]=l}}else n[e]=new r(i)}var qk=function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=X()}return n.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=e.getSource(),r=this.defaultDimValueGetter=od[o.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[],o1(o),this._dimensions=F(t,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,e.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,o=this._dimensions,r=i.get(e);if(r!=null){if(o[r].type===t)return r}else r=o.length;return o[r]={type:t},i.set(e,r),this._chunks[r]=new _1[t||"float"](this._rawCount),this._rawExtent[r]=mr(),r},n.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],o=this._dimensions[e],r=this._rawExtent,a=o.ordinalOffset||0,s=i.length;a===0&&(r[e]=mr());for(var l=r[e],u=a;u<s;u++){var h=i[u]=t.parseAndCollect(i[u]);isNaN(h)||(l[0]=Math.min(h,l[0]),l[1]=Math.max(h,l[1]))}o.ordinalMeta=t,o.ordinalOffset=s,o.type="ordinal"},n.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},n.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},n.prototype.appendData=function(e){var t=this._provider,i=this.count();t.appendData(e);var o=t.count();return t.persistent||(o+=i),i<o&&this._initDataFromProvider(i,o,!0),[i,o]},n.prototype.appendValues=function(e,t){for(var i=this._chunks,o=this._dimensions,r=o.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<r;u++){var h=o[u];b1(i,u,h.type,l,!0)}for(var c=[],d=s;d<l;d++)for(var p=d-s,f=0;f<r;f++){var h=o[f],g=od.arrayRows.call(this,e[p]||c,h.property,p,f);i[f][d]=g;var v=a[f];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,i){for(var o=this._provider,r=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=F(a,function(m){return m.property}),h=0;h<s;h++){var c=a[h];l[h]||(l[h]=mr()),b1(r,h,c.type,t,i)}if(o.fillStorage)o.fillStorage(e,t,r,l);else for(var d=[],p=e;p<t;p++){d=o.getItem(p,d);for(var f=0;f<s;f++){var g=r[f],v=this._dimValueGetter(d,u[f],p,f);g[p]=v;var y=l[f];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},n.prototype.getValues=function(e,t){var i=[],o=[];if(t==null){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)o.push(r)}else o=e;for(var r=0,a=o.length;r<a;r++)i.push(this.get(o[r],t));return i},n.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},n.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var o=0,r=this.count();o<r;o++){var a=this.get(e,o);isNaN(a)||(i+=a)}return i},n.prototype.getMedian=function(e){var t=[];this.each([e],function(r){isNaN(r)||t.push(r)});var i=t.sort(function(r,a){return r-a}),o=this.count();return o===0?0:o%2===1?i[(o-1)/2]:(i[o/2]+i[o/2-1])/2},n.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;for(var o=0,r=this._count-1;o<=r;){var a=(o+r)/2|0;if(t[a]<e)o=a+1;else if(t[a]>e)r=a-1;else return a}return-1},n.prototype.indicesOfNearest=function(e,t,i){var o=this._chunks,r=o[e],a=[];if(!r)return a;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,h=0,c=this.count();h<c;h++){var d=this.getRawIndex(h),p=t-r[d],f=Math.abs(p);f<=i&&((f<s||f===s&&p>=0&&l<0)&&(s=f,l=p,u=0),p===l&&(a[u++]=h))}return a.length=u,a},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,o=this._count;if(i===Array){e=new i(o);for(var r=0;r<o;r++)e[r]=t[r]}else e=new i(t.buffer,0,o)}else{var i=Ya(this._rawCount);e=new i(this.count());for(var r=0;r<e.length;r++)e[r]=r}return e},n.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),o=i.count(),r=Ya(i._rawCount),a=new r(o),s=[],l=e.length,u=0,h=e[0],c=i._chunks,d=0;d<o;d++){var p=void 0,f=i.getRawIndex(d);if(l===0)p=t(d);else if(l===1){var g=c[h][f];p=t(g,d)}else{for(var v=0;v<l;v++)s[v]=c[e[v]][f];s[v]=d,p=t.apply(null,s)}p&&(a[u++]=f)}return u<o&&(i._indices=a),i._count=u,i._extent=[],i._updateGetRawIdx(),i},n.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var o=at(e),r=o.length;if(!r)return this;var a=t.count(),s=Ya(t._rawCount),l=new s(a),u=0,h=o[0],c=e[h][0],d=e[h][1],p=t._chunks,f=!1;if(!t._indices){var g=0;if(r===1){for(var v=p[o[0]],y=0;y<i;y++){var m=v[y];(m>=c&&m<=d||isNaN(m))&&(l[u++]=g),g++}f=!0}else if(r===2){for(var v=p[o[0]],x=p[o[1]],_=e[o[1]][0],w=e[o[1]][1],y=0;y<i;y++){var m=v[y],b=x[y];(m>=c&&m<=d||isNaN(m))&&(b>=_&&b<=w||isNaN(b))&&(l[u++]=g),g++}f=!0}}if(!f)if(r===1)for(var y=0;y<a;y++){var S=t.getRawIndex(y),m=p[o[0]][S];(m>=c&&m<=d||isNaN(m))&&(l[u++]=S)}else for(var y=0;y<a;y++){for(var T=!0,S=t.getRawIndex(y),I=0;I<r;I++){var C=o[I],m=p[C][S];(m<e[C][0]||m>e[C][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return u<a&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},n.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},n.prototype.modify=function(e,t){this._updateDims(this,e,t)},n.prototype._updateDims=function(e,t,i){for(var o=e._chunks,r=[],a=t.length,s=e.count(),l=[],u=e._rawExtent,h=0;h<t.length;h++)u[t[h]]=mr();for(var c=0;c<s;c++){for(var d=e.getRawIndex(c),p=0;p<a;p++)l[p]=o[t[p]][d];l[a]=c;var f=i&&i.apply(null,l);if(f!=null){typeof f!="object"&&(r[0]=f,f=r);for(var h=0;h<f.length;h++){var g=t[h],v=f[h],y=u[g],m=o[g];m&&(m[d]=v),v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}}},n.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),o=i._chunks,r=o[e],a=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),h,c,d,p=new(Ya(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));p[s++]=u;for(var f=1;f<a-1;f+=l){for(var g=Math.min(f+l,a-1),v=Math.min(f+l*2,a),y=(v+g)/2,m=0,x=g;x<v;x++){var _=this.getRawIndex(x),w=r[_];isNaN(w)||(m+=w)}m/=v-g;var b=f,S=Math.min(f+l,a),T=f-1,I=r[u];h=-1,d=b;for(var C=-1,A=0,x=b;x<S;x++){var _=this.getRawIndex(x),w=r[_];if(isNaN(w)){A++,C<0&&(C=_);continue}c=Math.abs((T-y)*(w-I)-(T-x)*(m-I)),c>h&&(h=c,d=_)}A>0&&A<S-b&&(p[s++]=Math.min(C,d),d=Math.max(C,d)),p[s++]=d,u=d}return p[s++]=this.getRawIndex(a-1),i._count=s,i._indices=p,i.getRawIndex=this._getRawIdx,i},n.prototype.downSample=function(e,t,i,o){for(var r=this.clone([e],!0),a=r._chunks,s=[],l=Math.floor(1/t),u=a[e],h=this.count(),c=r._rawExtent[e]=mr(),d=new(Ya(this._rawCount))(Math.ceil(h/l)),p=0,f=0;f<h;f+=l){l>h-f&&(l=h-f,s.length=l);for(var g=0;g<l;g++){var v=this.getRawIndex(f+g);s[g]=u[v]}var y=i(s),m=this.getRawIndex(Math.min(f+o(s,y)||0,h-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),d[p++]=m}return r._count=p,r._indices=d,r._updateGetRawIdx(),r},n.prototype.each=function(e,t){if(this._count)for(var i=e.length,o=this._chunks,r=0,a=this.count();r<a;r++){var s=this.getRawIndex(r);switch(i){case 0:t(r);break;case 1:t(o[e[0]][s],r);break;case 2:t(o[e[0]][s],o[e[1]][s],r);break;default:for(var l=0,u=[];l<i;l++)u[l]=o[e[l]][s];u[l]=r,t.apply(null,u)}}},n.prototype.getDataExtent=function(e){var t=this._chunks[e],i=mr();if(!t)return i;var o=this.count(),r=!this._indices,a;if(r)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=i;for(var s=a[0],l=a[1],u=0;u<o;u++){var h=this.getRawIndex(u),c=t[h];c<s&&(s=c),c>l&&(l=c)}return a=[s,l],this._extent[e]=a,a},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],o=this._chunks,r=0;r<o.length;r++)i.push(o[r][t]);return i},n.prototype.clone=function(e,t){var i=new n,o=this._chunks,r=e&&Ae(e,function(s,l){return s[l]=!0,s},{});if(r)for(var a=0;a<o.length;a++)i._chunks[a]=r[a]?jk(o[a]):o[a];else i._chunks=o;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},n.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=q(this._extent),e._rawExtent=q(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var o=0;o<i;o++)t[o]=this._indices[o]}else t=new e(this._indices);return t}return null},n.prototype._getRawIdxIdentity=function(e){return e},n.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,i,o,r){return Ha(t[r],this._dimensions[r])}od={arrayRows:e,objectRows:function(t,i,o,r){return Ha(t[i],this._dimensions[r])},keyedColumns:e,original:function(t,i,o,r){var a=t&&(t.value==null?t:t.value);return Ha(a instanceof Array?a[r]:a,this._dimensions[r])},typedArray:function(t,i,o,r){return t[r]}}}(),n}();const rd=qk;var w1=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,o,r;if($l(e)){var a=e,s=void 0,l=void 0,u=void 0;if(i){var h=t[0];h.prepareSource(),u=h.getSource(),s=u.data,l=u.sourceFormat,r=[h._getVersionSign()]}else s=a.get("data",!0),l=se(s)?_i:We,r=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=J(c.seriesLayoutBy,d.seriesLayoutBy)||null,f=J(c.sourceHeader,d.sourceHeader),g=J(c.dimensions,d.dimensions),v=p!==d.seriesLayoutBy||!!f!=!!d.sourceHeader||g;o=v?[Qp(s,{seriesLayoutBy:p,sourceHeader:f,dimensions:g},l)]:[]}else{var y=e;if(i){var m=this._applyTransform(t);o=m.sourceList,r=m.upstreamSignList}else{var x=y.get("source",!0);o=[Qp(x,this._getSourceMetaRawOption(),null)],r=[]}}this._setLocalSource(o,r)},n.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),o=t.get("fromTransformResult",!0);if(o!=null){var r="";e.length!==1&&S1(r)}var a,s=[],l=[];return M(e,function(u){u.prepareSource();var h=u.getSource(o||0),c="";o!=null&&!h&&S1(c),s.push(h),l.push(u._getVersionSign())}),i?a=Yk(i,s,{datasetIndex:t.componentIndex}):o!=null&&(a=[Mk(s[0])]),{sourceList:a,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},n.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},n.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},n.prototype._innerGetDataStore=function(e,t,i){var o=0,r=this._storeList,a=r[o];a||(a=r[o]={});var s=a[i];if(!s){var l=this._getUpstreamSourceManagers()[0];$l(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new rd,s.initData(new s1(t,e.length),e)),a[i]=s}return s},n.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if($l(e)){var t=Yp(e);return t?[t.getSourceManager()]:[]}else return F(KD(e),function(i){return i.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,o;if($l(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),o=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=e;t=r.get("seriesLayoutBy",!0),i=r.get("sourceHeader",!0),o=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:o}},n}();function Kk(n){var e=n.option.transform;e&&Fr(n.option.transform)}function $l(n){return n.mainType==="series"}function S1(n){throw new Error(n)}var M1="line-height:1";function T1(n,e){var t=n.color||"#6e7079",i=n.fontSize||12,o=n.fontWeight||"400",r=n.color||"#464646",a=n.fontSize||14,s=n.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+le(i+"")+"px;color:"+le(t)+";font-weight:"+le(o+""),valueStyle:"font-size:"+le(a+"")+"px;color:"+le(r)+";font-weight:"+le(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:s}}}var $k=[0,10,20,30],Qk=["",`
- `,`
- `,`
- `];function sn(n,e){return e.type=n,e}function ad(n){return n.type==="section"}function C1(n){return ad(n)?Jk:tP}function I1(n){if(ad(n)){var e=0,t=n.blocks.length,i=t>1||t>0&&!n.noHeader;return M(n.blocks,function(o){var r=I1(o);r>=e&&(e=r+ +(i&&(!r||ad(o)&&!o.noHeader)))}),e}return 0}function Jk(n,e,t,i){var o=e.noHeader,r=eP(I1(e)),a=[],s=e.blocks||[];Jt(!s||V(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(H(u,l)){var h=new v1(u[l],null);s.sort(function(f,g){return h.evaluate(f.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(f,g){var v=e.valueFormatter,y=C1(f)(v?N(N({},n),{valueFormatter:v}):n,f,g>0?r.html:0,i);y!=null&&a.push(y)});var c=n.renderMode==="richText"?a.join(r.richText):sd(a.join(""),o?t:r.html);if(o)return c;var d=Ep(e.header,"ordinal",n.useUTC),p=T1(i,n.renderMode).nameStyle;return n.renderMode==="richText"?D1(n,d,p)+r.richText+c:sd('<div style="'+p+";"+M1+';">'+le(d)+"</div>"+c,t)}function tP(n,e,t,i){var o=n.renderMode,r=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,h=e.valueFormatter||n.valueFormatter||function(_){return _=V(_)?_:[_],F(_,function(w,b){return Ep(w,V(p)?p[b]:p,u)})};if(!(r&&a)){var c=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),d=r?"":Ep(l,"ordinal",u),p=e.valueType,f=a?[]:h(e.value,e.dataIndex),g=!s||!r,v=!s&&r,y=T1(i,o),m=y.nameStyle,x=y.valueStyle;return o==="richText"?(s?"":c)+(r?"":D1(n,d,m))+(a?"":oP(n,f,g,v,x)):sd((s?"":c)+(r?"":nP(d,!s,m))+(a?"":iP(f,g,v,x)),t)}}function A1(n,e,t,i,o,r){if(n){var a=C1(n),s={useUTC:o,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:n.valueFormatter};return a(s,n,0,r)}}function eP(n){return{html:$k[n],richText:Qk[n]}}function sd(n,e){var t='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+M1+';">'+n+t+"</div>"}function nP(n,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+le(n)+"</span>"}function iP(n,e,t,i){var o=t?"10px":"20px",r=e?"float:right;margin-left:"+o:"";return n=V(n)?n:[n],'<span style="'+r+";"+i+'">'+F(n,function(a){return le(a)}).join(" ")+"</span>"}function D1(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function oP(n,e,t,i,o){var r=[o],a=i?10:20;return t&&r.push({padding:[0,0,0,a],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,r)}function k1(n,e){var t=n.getData().getItemVisual(e,"style"),i=t[n.visualDrawType];return po(i)}function P1(n,e){var t=n.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var ld=function(){function n(){this.richTextStyles={},this._nextStyleNameId=my()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,i){var o=i==="richText"?this._generateStyleName():null,r=A0({color:t,type:e,renderMode:i,markerId:o});return G(r)?r:(this.richTextStyles[o]=r.style,r.content)},n.prototype.wrapRichTextStyle=function(e,t){var i={};V(t)?M(t,function(r){return N(i,r)}):N(i,t);var o=this._generateStyleName();return this.richTextStyles[o]=i,"{"+o+"|"+e+"}"},n}();function L1(n){var e=n.series,t=n.dataIndex,i=n.multipleSeries,o=e.getData(),r=o.mapDimensionsAll("defaultedTooltip"),a=r.length,s=e.getRawValue(t),l=V(s),u=k1(e,t),h,c,d,p;if(a>1||l&&!a){var f=rP(s,e,t,r,u);h=f.inlineValues,c=f.inlineValueTypes,d=f.blocks,p=f.inlineValues[0]}else if(a){var g=o.getDimensionInfo(r[0]);p=h=yr(o,t,r[0]),c=g.type}else p=h=l?s[0]:s;var v=Rc(e),y=v&&e.name||"",m=o.getName(t),x=i?y:m;return sn("section",{header:y,noHeader:i||!v,sortParam:p,blocks:[sn("nameValue",{markerType:"item",markerColor:u,name:x,noName:!De(x),value:h,valueType:c,dataIndex:t})].concat(d||[])})}function rP(n,e,t,i,o){var r=e.getData(),a=Ae(n,function(c,d,p){var f=r.getDimensionInfo(p);return c=c||f&&f.tooltip!==!1&&f.displayName!=null},!1),s=[],l=[],u=[];i.length?M(i,function(c){h(yr(r,t,c),c)}):M(n,h);function h(c,d){var p=r.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(a?u.push(sn("nameValue",{markerType:"subItem",markerColor:o,name:p.displayName,value:c,valueType:p.type})):(s.push(c),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var bi=_t();function Ql(n,e){return n.getName(e)||n.getId(e)}var O1="__universalTransitionEnabled",Jl=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,o){this.seriesIndex=this.componentIndex,this.dataTask=Ga({count:sP,reset:lP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,o);var r=bi(this).sourceManager=new w1(this);r.prepareSource();var a=this.getInitialData(t,o);N1(a,this),this.dataTask.context.data=a,bi(this).dataBeforeProcessed=a,R1(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(t,i){var o=za(this),r=o?dr(t):{},a=this.subType;ft.hasClass(a)&&(a+="Series"),et(t,i.getTheme().get(this.subType)),et(t,this.getDefaultOption()),pa(t,"label",["show"]),this.fillDataTextStyle(t.data),o&&xi(t,r,o)},e.prototype.mergeOption=function(t,i){t=et(this.option,t,!0),this.fillDataTextStyle(t.data);var o=za(this);o&&xi(this.option,t,o);var r=bi(this).sourceManager;r.dirty(),r.prepareSource();var a=this.getInitialData(t,i);N1(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,bi(this).dataBeforeProcessed=a,R1(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(t){if(t&&!se(t))for(var i=["show"],o=0;o<t.length;o++)t[o]&&t[o].label&&pa(t[o],"label",i)},e.prototype.getInitialData=function(t,i){},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=ud(this);if(i){var o=i.context.data;return t==null?o:o.getLinkedData(t)}else return bi(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=ud(this);if(i){var o=i.context;o.outputData=t,i!==this.dataTask&&(o.data=t)}bi(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return X(t)},e.prototype.getSourceManager=function(){return bi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return bi(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,i,o){return L1({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(ct.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,o){var r=this.ecModel,a=Xp.prototype.getColorFromPalette.call(this,t,i,o);return a||(a=r.getColorFromPalette(t,i,o)),a},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,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var o=this.option.selectedMap;if(o){var r=this.option.selectedMode,a=this.getData(i);if(r==="series"||o==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Ql(a,l);o[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var o=[],r=0;r<t.length;r++)o[0]=t[r],this.isSelected(t[r],i)?this.unselect(o,i):this.select(o,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=at(t),o=[],r=0;r<i.length;r++){var a=t[i[r]];a>=0&&o.push(a)}return o},e.prototype.isSelected=function(t,i){var o=this.option.selectedMap;if(!o)return!1;var r=this.getData(i);return(o==="all"||o[Ql(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[O1])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var o,r,a=this.option,s=a.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){j(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,h=0;h<l;h++){var c=i[h],d=Ql(t,c);u[d]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var p=i[l-1],d=Ql(t,p);a.selectedMap=(o={},o[d]=!0,o),this._selectedDataIndicesMap=(r={},r[d]=t.getRawIndex(p),r)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(o){var r=t.getRawDataItem(o);r&&r.selected&&i.push(o)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return ft.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}(ft);Ut(Jl,nd),Ut(Jl,Xp),ky(Jl,ft);function R1(n){var e=n.name;Rc(n)||(n.name=aP(n)||e)}function aP(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return M(t,function(o){var r=e.getDimensionInfo(o);r.displayName&&i.push(r.displayName)}),i.join(" ")}function sP(n){return n.model.getRawData().count()}function lP(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),uP}function uP(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function N1(n,e){M(Ah(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,pt(hP,e))})}function hP(n,e){var t=ud(n);return t&&t.setOutputEnd((e||this).count()),e}function ud(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var i=t.currentTask;if(i){var o=i.agentStubMap;o&&(i=o.get(n.uid))}return i}}const Ce=Jl;var hd=function(){function n(){this.group=new it,this.uid=ur("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,o){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,o){},n.prototype.updateLayout=function(e,t,i,o){},n.prototype.updateVisual=function(e,t,i,o){},n.prototype.toggleBlurSeries=function(e,t,i){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();zc(hd),ul(hd);const zt=hd;function tu(){var n=_t();return function(e){var t=n(e),i=e.pipelineContext,o=!!t.large,r=!!t.progressiveRender,a=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(o!==a||r!==s)&&"reset"}}var z1=_t(),cP=tu(),cd=function(){function n(){this.group=new it,this.uid=ur("viewChart"),this.renderTask=Ga({plan:pP,reset:dP}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,o){},n.prototype.highlight=function(e,t,i,o){var r=e.getData(o&&o.dataType);r&&E1(r,o,"emphasis")},n.prototype.downplay=function(e,t,i,o){var r=e.getData(o&&o.dataType);r&&E1(r,o,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.updateLayout=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.updateVisual=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.eachRendered=function(e){Pa(this.group,e)},n.markUpdateMethod=function(e,t){z1(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function B1(n,e,t){n&&Sl(n)&&(e==="emphasis"?oo:ro)(n,t)}function E1(n,e,t){var i=Ui(n,e),o=e&&e.highlightKey!=null?EA(e.highlightKey):null;i!=null?M(Dt(i),function(r){B1(n.getItemGraphicEl(r),t,o)}):n.eachItemGraphicEl(function(r){B1(r,t,o)})}zc(cd),ul(cd);function pP(n){return cP(n.model)}function dP(n){var e=n.model,t=n.ecModel,i=n.api,o=n.payload,r=e.pipelineContext.progressiveRender,a=n.view,s=o&&z1(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](e,t,i,o),fP[l]}var fP={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const oe=cd;var eu="\0__throttleOriginMethod",V1="\0__throttleRate",F1="\0__throttleType";function nu(n,e,t){var i,o=0,r=0,a=null,s,l,u,h;e=e||0;function c(){r=new Date().getTime(),a=null,n.apply(l,u||[])}var d=function(){for(var p=[],f=0;f<arguments.length;f++)p[f]=arguments[f];i=new Date().getTime(),l=this,u=p;var g=h||e,v=h||t;h=null,s=i-(v?o:r)-g,clearTimeout(a),v?a=setTimeout(c,g):s>=0?c():a=setTimeout(c,-s),o=i};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(p){h=p},d}function xr(n,e,t,i){var o=n[e];if(o){var r=o[eu]||o,a=o[F1],s=o[V1];if(s!==t||a!==i){if(t==null||!i)return n[e]=r;o=n[e]=nu(r,t,i==="debounce"),o[eu]=r,o[F1]=i,o[V1]=t}return o}}function Ua(n,e){var t=n[e];t&&t[eu]&&(t.clear&&t.clear(),n[e]=t[eu])}var W1=_t(),G1={itemStyle:Zi(f0,!0),lineStyle:Zi(d0,!0)},gP={lineStyle:"stroke",itemStyle:"fill"};function H1(n,e){var t=n.visualStyleMapper||G1[e];return t||G1.itemStyle}function Y1(n,e){var t=n.visualDrawType||gP[e];return t||"fill"}var vP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",o=n.getModel(i),r=H1(n,i),a=r(o),s=o.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Y1(n,i),u=a[l],h=$(u)?u:null,c=a.fill==="auto"||a.stroke==="auto";if(!a[l]||h||c){var d=n.getColorFromPalette(n.name,null,e.getSeriesCount());a[l]||(a[l]=d,t.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||$(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||$(a.stroke)?d:a.stroke}if(t.setVisual("style",a),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&h)return t.setVisual("colorFromPalette",!1),{dataEach:function(p,f){var g=n.getDataParams(f),v=N({},a);v[l]=h(g),p.setItemVisual(f,"style",v)}}}},Xa=new Ot,yP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",o=H1(n,i),r=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){Xa.option=l[i];var u=o(Xa),h=a.ensureUniqueItemVisual(s,"style");N(h,u),Xa.option.decal&&(a.setItemVisual(s,"decal",Xa.option.decal),Xa.option.decal.dirty=!0),r in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},mP={performRawSeries:!0,overallReset:function(n){var e=X();n.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var o=t.type+"-"+i,r=e.get(o);r||(r={},e.set(o,r)),W1(t).scope=r}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var i=t.getRawData(),o={},r=t.getData(),a=W1(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Y1(t,s);r.each(function(u){var h=r.getRawIndex(u);o[h]=u}),i.each(function(u){var h=o[u],c=r.getItemVisual(h,"colorFromPalette");if(c){var d=r.ensureUniqueItemVisual(h,"style"),p=i.getName(u)||u+"",f=i.count();d[l]=t.getColorFromPalette(p,a,f)}})}})}},iu=Math.PI;function xP(n,e){e=e||{},K(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 it,i=new yt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var o=new dt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),r=new yt({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(r);var a;return e.showSpinner&&(a=new Al({shape:{startAngle:-iu/2,endAngle:-iu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:iu*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:iu*3/2}).delay(300).start("circularInOut"),t.add(a)),t.resize=function(){var s=o.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.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),h=n.getHeight()/2;e.showSpinner&&a.setShape({cx:u,cy:h}),r.setShape({x:u-l,y:h-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var _P=function(){function n(e,t,i,o){this._stageTaskMap=X(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),o=this._visualHandlers=o.slice(),this._allHandlers=i.concat(o)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var o=i.overallTask;o&&o.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),o=i.context,r=!t&&i.progressiveEnabled&&(!o||o.progressiveRender)&&e.__idxInPipeline>i.blockIndex,a=r?i.step:null,s=o&&o.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),o=e.getData(),r=o.count(),a=i.progressiveEnabled&&t.incrementalPrepareRender&&r>=i.threshold,s=e.get("large")&&r>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?r:null;e.pipelineContext=i.context={progressiveRender:a,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=X();e.eachSeries(function(o){var r=o.getProgressive(),a=o.uid;i.set(a,{id:a,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:r&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(o,o.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;M(this._allHandlers,function(o){var r=e.get(o.uid)||e.set(o.uid,{}),a="";Jt(!(o.reset&&o.overallReset),a),o.reset&&this._createSeriesStageTask(o,r,t,i),o.overallReset&&this._createOverallStageTask(o,r,t,i)},this)},n.prototype.prepareView=function(e,t,i,o){var r=e.renderTask,a=r.context;a.model=t,a.ecModel=i,a.api=o,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},n.prototype._performStageTasks=function(e,t,i,o){o=o||{};var r=!1,a=this;M(e,function(l,u){if(!(o.visualType&&o.visualType!==l.visualType)){var h=a._stageTaskMap.get(l.uid),c=h.seriesTaskMap,d=h.overallTask;if(d){var p,f=d.agentStubMap;f.each(function(v){s(o,v)&&(v.dirty(),p=!0)}),p&&d.dirty(),a.updatePayload(d,i);var g=a.getPerformArgs(d,o.block);f.each(function(v){v.perform(g)}),d.perform(g)&&(r=!0)}else c&&c.each(function(v,y){s(o,v)&&v.dirty();var m=a.getPerformArgs(v,o.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(v.context.model),a.updatePayload(v,i),v.perform(m)&&(r=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=r||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.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)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=X(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(h):l?i.eachRawSeriesByType(l,h):u&&u(i,o).each(h);function h(c){var d=c.uid,p=s.set(d,a&&a.get(d)||Ga({plan:TP,reset:CP,count:AP}));p.context={model:c,ecModel:i,api:o,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(c,p)}},n.prototype._createOverallStageTask=function(e,t,i,o){var r=this,a=t.overallTask=t.overallTask||Ga({reset:bP});a.context={ecModel:i,api:o,overallReset:e.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=X(),u=e.seriesType,h=e.getTargetSeries,c=!0,d=!1,p="";Jt(!e.createOnAllSeries,p),u?i.eachRawSeriesByType(u,f):h?h(i,o).each(f):(c=!1,M(i.getSeries(),f));function f(g){var v=g.uid,y=l.set(v,s&&s.get(v)||(d=!0,Ga({reset:wP,onDirty:MP})));y.context={model:g,overallProgress:c},y.agent=a,y.__block=c,r._pipe(g,y)}d&&a.dirty()},n.prototype._pipe=function(e,t){var i=e.uid,o=this._pipelineMap.get(i);!o.head&&(o.head=t),o.tail&&o.tail.pipe(t),o.tail=t,t.__idxInPipeline=o.count++,t.__pipeline=o},n.wrapStageHandler=function(e,t){return $(e)&&(e={overallReset:e,seriesType:DP(e)}),e.uid=ur("stageHandler"),t&&(e.visualType=t),e},n}();function bP(n){n.overallReset(n.ecModel,n.api,n.payload)}function wP(n){return n.overallProgress&&SP}function SP(){this.agent.dirty(),this.getDownstream().dirty()}function MP(){this.agent&&this.agent.dirty()}function TP(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function CP(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=Dt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?F(e,function(t,i){return U1(i)}):IP}var IP=U1(0);function U1(n){return function(e,t){var i=t.data,o=t.resetDefines[n];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(e,i)}}function AP(n){return n.data.count()}function DP(n){ou=null;try{n(Za,X1)}catch(e){}return ou}var Za={},X1={},ou;Z1(Za,X0),Z1(X1,Z0),Za.eachSeriesByType=Za.eachRawSeriesByType=function(n){ou=n},Za.eachComponent=function(n){n.mainType==="series"&&n.subType&&(ou=n.subType)};function Z1(n,e){for(var t in e.prototype)n[t]=Et}const j1=_P;var q1=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const kP={color:q1,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],q1]};var fe="#B9B8CE",K1="#100C2A",ru=function(){return{axisLine:{lineStyle:{color:fe}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},$1=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Q1={darkMode:!0,color:$1,backgroundColor:K1,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:fe}},textStyle:{color:fe},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:fe}},dataZoom:{borderColor:"#71708A",textStyle:{color:fe},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:fe}},timeline:{lineStyle:{color:fe},label:{color:fe},controlStyle:{color:fe,borderColor:fe}},calendar:{itemStyle:{color:K1},dayLabel:{color:fe},monthLabel:{color:fe},yearLabel:{color:fe}},timeAxis:ru(),logAxis:ru(),valueAxis:ru(),categoryAxis:ru(),line:{symbol:"circle"},graph:{color:$1},gauge:{title:{color:fe},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:fe},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Q1.categoryAxis.splitLine.show=!1;const PP=Q1;var LP=function(){function n(){}return n.prototype.normalizeQuery=function(e){var t={},i={},o={};if(G(e)){var r=bn(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(e,function(l,u){for(var h=!1,c=0;c<a.length;c++){var d=a[c],p=u.lastIndexOf(d);if(p>0&&p===u.length-d.length){var f=u.slice(0,p);f!=="data"&&(t.mainType=f,t[d.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(i[u]=l,h=!0),h||(o[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:o}},n.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var o=i.targetEl,r=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return h(l,a,"mainType")&&h(l,a,"subType")&&h(l,a,"index","componentIndex")&&h(l,a,"name")&&h(l,a,"id")&&h(u,r,"name")&&h(u,r,"dataIndex")&&h(u,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,o,r));function h(c,d,p,f){return c[p]==null||d[f||p]===c[p]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),pd=["symbol","symbolSize","symbolRotate","symbolOffset"],J1=pd.concat(["symbolKeepAspect"]),OP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var i={},o={},r=!1,a=0;a<pd.length;a++){var s=pd[a],l=n.get(s);$(l)?(r=!0,o[s]=l):i[s]=l}if(i.symbol=i.symbol||n.defaultSymbol,t.setVisual(N({legendIcon:n.legendIcon||i.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},i)),e.isSeriesFiltered(n))return;var u=at(o);function h(c,d){for(var p=n.getRawValue(d),f=n.getDataParams(d),g=0;g<u.length;g++){var v=u[g];c.setItemVisual(d,v,o[v](p,f))}}return{dataEach:r?h:null}}},RP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!n.hasSymbolVisual||e.isSeriesFiltered(n))return;var t=n.getData();function i(o,r){for(var a=o.getItemModel(r),s=0;s<J1.length;s++){var l=J1[s],u=a.getShallow(l,!0);u!=null&&o.setItemVisual(r,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function dd(n,e,t){switch(t){case"color":var i=n.getItemVisual(e,"style");return i[n.getVisual("drawType")];case"opacity":return n.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(e,t)}}function fd(n,e){switch(e){case"color":var t=n.getVisual("style");return t[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(e)}}function tx(n,e,t,i){switch(t){case"color":var o=n.ensureUniqueItemVisual(e,"style");o[n.getVisual("drawType")]=i,n.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(e,t,i);break}}function ex(n,e){function t(i,o){var r=[];return i.eachComponent({mainType:"series",subType:n,query:o},function(a){r.push(a.seriesIndex)}),r}M([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(i){e(i[0],function(o,r,a){o=N({},o),a.dispatchAction(N(o,{type:i[1],seriesIndex:t(r,o)}))})})}function _r(n,e,t,i,o){var r=n+e;t.isSilent(r)||i.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=o.selected,h=0;h<u.length;h++)if(u[h].seriesIndex===s){var c=a.getData(),d=Ui(c,o.fromActionPayload);t.trigger(r,{type:r,seriesId:a.id,name:V(d)?c.getName(d[0]):c.getName(d),selected:G(l)?l:N({},l)})}})}function NP(n,e,t){n.on("selectchanged",function(i){var o=t.getModel();i.isFromClick?(_r("map","selectchanged",e,o,i),_r("pie","selectchanged",e,o,i)):i.fromAction==="select"?(_r("map","selected",e,o,i),_r("pie","selected",e,o,i)):i.fromAction==="unselect"&&(_r("map","unselected",e,o,i),_r("pie","unselected",e,o,i))})}function xo(n,e,t){for(var i;n&&!(e(n)&&(i=n,t));)n=n.__hostTarget||n.parent;return i}var zP=Math.round(Math.random()*9),BP=typeof Object.defineProperty=="function",EP=function(){function n(){this._id="__ec_inner_"+zP++}return n.prototype.get=function(e){return this._guard(e)[this._id]},n.prototype.set=function(e,t){var i=this._guard(e);return BP?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},n.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},n.prototype.has=function(e){return!!this._guard(e)[this._id]},n.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},n}();const VP=EP;var FP=gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,i=e.cy,o=e.width/2,r=e.height/2;n.moveTo(t,i-r),n.lineTo(t+o,i+r),n.lineTo(t-o,i+r),n.closePath()}}),WP=gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,i=e.cy,o=e.width/2,r=e.height/2;n.moveTo(t,i-r),n.lineTo(t+o,i),n.lineTo(t,i+r),n.lineTo(t-o,i),n.closePath()}}),GP=gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.x,i=e.y,o=e.width/5*3,r=Math.max(o,e.height),a=o/2,s=a*a/(r-a),l=i-r+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),d=Math.cos(u),p=a*.6,f=a*.7;n.moveTo(t-h,l+s),n.arc(t,l,a,Math.PI-u,Math.PI*2+u),n.bezierCurveTo(t+h-c*p,l+s+d*p,t,i-f,t,i),n.bezierCurveTo(t,i-f,t-h+c*p,l+s+d*p,t-h,l+s),n.closePath()}}),HP=gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.height,i=e.width,o=e.x,r=e.y,a=i/3*2;n.moveTo(o,r),n.lineTo(o+a,r+t),n.lineTo(o,r+t/4*3),n.lineTo(o-a,r+t),n.lineTo(o,r),n.closePath()}}),YP={line:qt,rect:yt,roundRect:yt,square:yt,circle:$n,diamond:WP,pin:GP,arrow:HP,triangle:FP},UP={line:function(n,e,t,i,o){o.x1=n,o.y1=e+i/2,o.x2=n+t,o.y2=e+i/2},rect:function(n,e,t,i,o){o.x=n,o.y=e,o.width=t,o.height=i},roundRect:function(n,e,t,i,o){o.x=n,o.y=e,o.width=t,o.height=i,o.r=Math.min(t,i)/4},square:function(n,e,t,i,o){var r=Math.min(t,i);o.x=n,o.y=e,o.width=r,o.height=r},circle:function(n,e,t,i,o){o.cx=n+t/2,o.cy=e+i/2,o.r=Math.min(t,i)/2},diamond:function(n,e,t,i,o){o.cx=n+t/2,o.cy=e+i/2,o.width=t,o.height=i},pin:function(n,e,t,i,o){o.x=n+t/2,o.y=e+i/2,o.width=t,o.height=i},arrow:function(n,e,t,i,o){o.x=n+t/2,o.y=e+i/2,o.width=t,o.height=i},triangle:function(n,e,t,i,o){o.cx=n+t/2,o.cy=e+i/2,o.width=t,o.height=i}},au={};M(YP,function(n,e){au[e]=new n});var XP=gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,e,t){var i=al(n,e,t),o=this.shape;return o&&o.symbolType==="pin"&&e.position==="inside"&&(i.y=t.y+t.height*.4),i},buildPath:function(n,e,t){var i=e.symbolType;if(i!=="none"){var o=au[i];o||(i="rect",o=au[i]),UP[i](e.x,e.y,e.width,e.height,o.shape),o.buildPath(n,o.shape,t)}}});function ZP(n,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=n,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=n:t.fill=n,this.markRedraw()}}function Ft(n,e,t,i,o,r,a){var s=n.indexOf("empty")===0;s&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var l;return n.indexOf("image://")===0?l=xp(n.slice(8),new ut(e,t,i,o),a?"center":"cover"):n.indexOf("path://")===0?l=zl(n.slice(7),{},new ut(e,t,i,o),a?"center":"cover"):l=new XP({shape:{symbolType:n,x:e,y:t,width:i,height:o}}),l.__isEmptyBrush=s,l.setColor=ZP,r&&l.setColor(r),l}function su(n){return V(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function ja(n,e){if(n!=null)return V(n)||(n=[n,n]),[U(n[0],e[0])||0,U(J(n[1],n[0]),e[1])||0]}function _o(n){return isFinite(n)}function jP(n,e,t){var i=e.x==null?0:e.x,o=e.x2==null?1:e.x2,r=e.y==null?0:e.y,a=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,o=o*t.width+t.x,r=r*t.height+t.y,a=a*t.height+t.y),i=_o(i)?i:0,o=_o(o)?o:1,r=_o(r)?r:0,a=_o(a)?a:0;var s=n.createLinearGradient(i,r,o,a);return s}function qP(n,e,t){var i=t.width,o=t.height,r=Math.min(i,o),a=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(a=a*i+t.x,s=s*o+t.y,l=l*r),a=_o(a)?a:.5,s=_o(s)?s:.5,l=l>=0&&_o(l)?l:.5;var u=n.createRadialGradient(a,s,0,a,s,l);return u}function gd(n,e,t){for(var i=e.type==="radial"?qP(n,e,t):jP(n,e,t),o=e.colorStops,r=0;r<o.length;r++)i.addColorStop(o[r].offset,o[r].color);return i}function KP(n,e){if(n===e||!n&&!e)return!1;if(!n||!e||n.length!==e.length)return!0;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!0;return!1}function lu(n){return parseInt(n,10)}function vd(n,e,t){var i=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(n);return(n[o]||lu(s[i])||lu(n.style[i]))-(lu(s[r])||0)-(lu(s[a])||0)|0}function $P(n,e){return!n||n==="solid"||!(e>0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:vt(n)?[n]:V(n)?n:null}function yd(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&$P(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var o=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;o&&o!==1&&(t=F(t,function(r){return r/o}),i/=o)}return[t,i]}var QP=new Cn(!0);function uu(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function nx(n){return typeof n=="string"&&n!=="none"}function hu(n){var e=n.fill;return e!=null&&e!=="none"}function ix(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function ox(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function md(n,e,t){var i=Ec(e.image,e.__image,t);if(hl(i)){var o=n.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&o&&o.setTransform){var r=new DOMMatrix;r.translateSelf(e.x||0,e.y||0),r.rotateSelf(0,0,(e.rotation||0)*Gr),r.scaleSelf(e.scaleX||1,e.scaleY||1),o.setTransform(r)}return o}}function JP(n,e,t,i){var o,r=uu(t),a=hu(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var h=e.path||QP,c=e.__dirty;if(!i){var d=t.fill,p=t.stroke,f=a&&!!d.colorStops,g=r&&!!p.colorStops,v=a&&!!d.image,y=r&&!!p.image,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0;(f||g)&&(b=e.getBoundingRect()),f&&(m=c?gd(n,d,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(x=c?gd(n,p,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),v&&(_=c||!e.__canvasFillPattern?md(n,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(w=c||!e.__canvasStrokePattern?md(n,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?n.fillStyle=m:v&&(_?n.fillStyle=_:a=!1),g?n.strokeStyle=x:y&&(w?n.strokeStyle=w:r=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var T,I;n.setLineDash&&t.lineDash&&(o=yd(e),T=o[0],I=o[1]);var C=!0;(u||c&Yo)&&(h.setDPR(n.dpr),l?h.setContext(null):(h.setContext(n),C=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(n,l?s:1),T&&(n.setLineDash(T),n.lineDashOffset=I),i||(t.strokeFirst?(r&&ox(n,t),a&&ix(n,t)):(a&&ix(n,t),r&&ox(n,t))),T&&n.setLineDash([])}function tL(n,e,t){var i=e.__image=Ec(t.image,e.__image,e,e.onload);if(!(!i||!hl(i))){var o=t.x||0,r=t.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,h=t.sy||0;n.drawImage(i,u,h,t.sWidth,t.sHeight,o,r,a,s)}else if(t.sx&&t.sy){var u=t.sx,h=t.sy,c=a-u,d=s-h;n.drawImage(i,u,h,c,d,o,r,a,s)}else n.drawImage(i,o,r,a,s)}}function eL(n,e,t){var i,o=t.text;if(o!=null&&(o+=""),o){n.font=t.font||oi,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var r=void 0,a=void 0;n.setLineDash&&t.lineDash&&(i=yd(e),r=i[0],a=i[1]),r&&(n.setLineDash(r),n.lineDashOffset=a),t.strokeFirst?(uu(t)&&n.strokeText(o,t.x,t.y),hu(t)&&n.fillText(o,t.x,t.y)):(hu(t)&&n.fillText(o,t.x,t.y),uu(t)&&n.strokeText(o,t.x,t.y)),r&&n.setLineDash([])}}var rx=["shadowBlur","shadowOffsetX","shadowOffsetY"],ax=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function sx(n,e,t,i,o){var r=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){we(n,o),r=!0;var a=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(a)?ji.opacity:a}(i||e.blend!==t.blend)&&(r||(we(n,o),r=!0),n.globalCompositeOperation=e.blend||ji.blend);for(var s=0;s<rx.length;s++){var l=rx[s];(i||e[l]!==t[l])&&(r||(we(n,o),r=!0),n[l]=n.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(r||(we(n,o),r=!0),n.shadowColor=e.shadowColor||ji.shadowColor),r}function lx(n,e,t,i,o){var r=qa(e,o.inHover),a=i?null:t&&qa(t,o.inHover)||{};if(r===a)return!1;var s=sx(n,r,a,i,o);if((i||r.fill!==a.fill)&&(s||(we(n,o),s=!0),nx(r.fill)&&(n.fillStyle=r.fill)),(i||r.stroke!==a.stroke)&&(s||(we(n,o),s=!0),nx(r.stroke)&&(n.strokeStyle=r.stroke)),(i||r.opacity!==a.opacity)&&(s||(we(n,o),s=!0),n.globalAlpha=r.opacity==null?1:r.opacity),e.hasStroke()){var l=r.lineWidth,u=l/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1);n.lineWidth!==u&&(s||(we(n,o),s=!0),n.lineWidth=u)}for(var h=0;h<ax.length;h++){var c=ax[h],d=c[0];(i||r[d]!==a[d])&&(s||(we(n,o),s=!0),n[d]=r[d]||c[1])}return s}function nL(n,e,t,i,o){return sx(n,qa(e,o.inHover),t&&qa(t,o.inHover),i,o)}function ux(n,e){var t=e.transform,i=n.dpr||1;t?n.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):n.setTransform(i,0,0,i,0,0)}function iL(n,e,t){for(var i=!1,o=0;o<n.length;o++){var r=n[o];i=i||r.isZeroArea(),ux(e,r),e.beginPath(),r.buildPath(e,r.shape),e.clip()}t.allClipped=i}function oL(n,e){return n&&e?n[0]!==e[0]||n[1]!==e[1]||n[2]!==e[2]||n[3]!==e[3]||n[4]!==e[4]||n[5]!==e[5]:!(!n&&!e)}var hx=1,cx=2,px=3,dx=4;function rL(n){var e=hu(n),t=uu(n);return!(n.lineDash||!(+e^+t)||e&&typeof n.fill!="string"||t&&typeof n.stroke!="string"||n.strokePercent<1||n.strokeOpacity<1||n.fillOpacity<1)}function we(n,e){e.batchFill&&n.fill(),e.batchStroke&&n.stroke(),e.batchFill="",e.batchStroke=""}function qa(n,e){return e&&n.__hoverStyle||n.style}function fx(n,e){cu(n,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function cu(n,e,t,i){var o=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~$e,e.__isRendered=!1;return}var r=e.__clipPaths,a=t.prevElClipPaths,s=!1,l=!1;if((!a||KP(r,a))&&(a&&a.length&&(we(n,t),n.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),r&&r.length&&(we(n,t),n.save(),iL(r,n,t),s=!0),t.prevElClipPaths=r),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var h=e instanceof gt&&e.autoBatch&&rL(e.style);s||oL(o,u.transform)?(we(n,t),ux(n,e)):h||we(n,t);var c=qa(e,t.inHover);e instanceof gt?(t.lastDrawType!==hx&&(l=!0,t.lastDrawType=hx),lx(n,e,u,l,t),(!h||!t.batchFill&&!t.batchStroke)&&n.beginPath(),JP(n,e,c,h),h&&(t.batchFill=c.fill||"",t.batchStroke=c.stroke||"")):e instanceof xa?(t.lastDrawType!==px&&(l=!0,t.lastDrawType=px),lx(n,e,u,l,t),eL(n,e,c)):e instanceof ee?(t.lastDrawType!==cx&&(l=!0,t.lastDrawType=cx),nL(n,e,u,l,t),tL(n,e,c)):e.getTemporalDisplayables&&(t.lastDrawType!==dx&&(l=!0,t.lastDrawType=dx),aL(n,e,t)),h&&i&&we(n,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function aL(n,e,t){var i=e.getDisplayables(),o=e.getTemporalDisplayables();n.save();var r={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},a,s;for(a=e.getCursor(),s=i.length;a<s;a++){var l=i[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cu(n,l,r,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),r.prevEl=l}for(var u=0,h=o.length;u<h;u++){var l=o[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cu(n,l,r,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),r.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,n.restore()}var xd=new VP,gx=new ta(100),vx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ka(n,e){if(n==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),o=i.painter.type==="svg";n.dirty&&xd.delete(n);var r=xd.get(n);if(r)return r;var a=K(n,{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});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=o?1:1/t,xd.set(n,s),n.dirty=!1,s;function l(u){for(var h=[t],c=!0,d=0;d<vx.length;++d){var p=a[vx[d]];if(p!=null&&!V(p)&&!G(p)&&!vt(p)&&typeof p!="boolean"){c=!1;break}h.push(p)}var f;if(c){f=h.join(",")+(o?"-svg":"");var g=gx.get(f);g&&(o?u.svgElement=g:u.image=g)}var v=mx(a.dashArrayX),y=sL(a.dashArrayY),m=yx(a.symbol),x=lL(v),_=xx(y),w=!o&&Fn.createCanvas(),b=o&&{tag:"g",attrs:{},key:"dcl",children:[]},S=I(),T;w&&(w.width=S.width*t,w.height=S.height*t,T=w.getContext("2d")),C(),c&&gx.put(f,w||b),u.image=w,u.svgElement=b,u.svgWidth=S.width,u.svgHeight=S.height;function I(){for(var A=1,D=0,k=x.length;D<k;++D)A=_y(A,x[D]);for(var P=1,D=0,k=m.length;D<k;++D)P=_y(P,m[D].length);A*=P;var L=_*x.length*m.length;return{width:Math.max(1,Math.min(A,a.maxTileWidth)),height:Math.max(1,Math.min(L,a.maxTileHeight))}}function C(){T&&(T.clearRect(0,0,w.width,w.height),a.backgroundColor&&(T.fillStyle=a.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var A=0,D=0;D<y.length;++D)A+=y[D];if(A<=0)return;for(var k=-_,P=0,L=0,O=0;k<S.height;){if(P%2===0){for(var E=L/2%m.length,R=0,B=0,W=0;R<S.width*2;){for(var Z=0,D=0;D<v[O].length;++D)Z+=v[O][D];if(Z<=0)break;if(B%2===0){var Q=(1-a.symbolSize)*.5,ot=R+v[O][B]*Q,st=k+y[P]*Q,St=v[O][B]*a.symbolSize,mt=y[P]*a.symbolSize,Qt=W/2%m[E].length;Gt(ot,st,St,mt,m[E][Qt])}R+=v[O][B],++W,++B,B===v[O].length&&(B=0)}++O,O===v.length&&(O=0)}k+=y[P],++L,++P,P===y.length&&(P=0)}function Gt(Pt,It,tt,ht,ve){var Lt=o?1:t,qe=Ft(ve,Pt*Lt,It*Lt,tt*Lt,ht*Lt,a.color,a.symbolKeepAspect);if(o){var ye=i.painter.renderOneToVNode(qe);ye&&b.children.push(ye)}else fx(T,qe)}}}}function yx(n){if(!n||n.length===0)return[["rect"]];if(G(n))return[[n]];for(var e=!0,t=0;t<n.length;++t)if(!G(n[t])){e=!1;break}if(e)return yx([n]);for(var i=[],t=0;t<n.length;++t)G(n[t])?i.push([n[t]]):i.push(n[t]);return i}function mx(n){if(!n||n.length===0)return[[0,0]];if(vt(n)){var e=Math.ceil(n);return[[e,e]]}for(var t=!0,i=0;i<n.length;++i)if(!vt(n[i])){t=!1;break}if(t)return mx([n]);for(var o=[],i=0;i<n.length;++i)if(vt(n[i])){var e=Math.ceil(n[i]);o.push([e,e])}else{var e=F(n[i],function(s){return Math.ceil(s)});e.length%2===1?o.push(e.concat(e)):o.push(e)}return o}function sL(n){if(!n||typeof n=="object"&&n.length===0)return[0,0];if(vt(n)){var e=Math.ceil(n);return[e,e]}var t=F(n,function(i){return Math.ceil(i)});return n.length%2?t.concat(t):t}function lL(n){return F(n,function(e){return xx(e)})}function xx(n){for(var e=0,t=0;t<n.length;++t)e+=n[t];return n.length%2===1?e*2:e}function uL(n,e){n.eachRawSeries(function(t){if(!n.isSeriesFiltered(t)){var i=t.getData();i.hasItemVisual()&&i.each(function(a){var s=i.getItemVisual(a,"decal");if(s){var l=i.ensureUniqueItemVisual(a,"style");l.decal=Ka(s,e)}});var o=i.getVisual("decal");if(o){var r=i.getVisual("style");r.decal=Ka(o,e)}}})}var hL=new ke;const ln=hL;var _x={};function cL(n,e){_x[n]=e}function bx(n){return _x[n]}var pL="5.5.0",dL={zrender:"5.5.0"},fL=1,gL=800,vL=900,yL=1e3,mL=2e3,xL=5e3,Sx=1e3,_L=1100,_d=2e3,Mx=3e3,bL=4e3,pu=4500,wL=4600,SL=5e3,ML=6e3,Tx=7e3,Cx={PROCESSOR:{FILTER:yL,SERIES_FILTER:gL,STATISTIC:xL},VISUAL:{LAYOUT:Sx,PROGRESSIVE_LAYOUT:_L,GLOBAL:_d,CHART:Mx,POST_CHART_LAYOUT:wL,COMPONENT:bL,BRUSH:SL,CHART_ITEM:pu,ARIA:ML,DECAL:Tx}},re="__flagInMainProcess",Se="__pendingUpdate",bd="__needsUpdateStatus",Ix=/^[a-zA-Z0-9_]+$/,wd="__connectUpdateStatus",Ax=0,TL=1,CL=2;function Dx(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return Px(this,n,e)}}function kx(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Px(this,n,e)}}function Px(n,e,t){return t[0]=t[0]&&t[0].toLowerCase(),ke.prototype[e].apply(n,t)}var Lx=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(ke),Ox=Lx.prototype;Ox.on=kx("on"),Ox.off=kx("off");var br,Sd,du,wi,Md,Td,Cd,$a,Qa,Rx,Nx,Id,zx,fu,Bx,Ex,Ye,Vx,gu=function(n){z(e,n);function e(t,i,o){var r=n.call(this,new LP)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],o=o||{},G(i)&&(i=Fx[i]),r._dom=t;var a="canvas",s="auto",l=!1;o.ssr&&py(function(d){var p=rt(d),f=p.dataIndex;if(f!=null){var g=X();return g.set("series_index",p.seriesIndex),g.set("data_index",f),p.ssrType&&g.set("ssr_type",p.ssrType),g}});var u=r._zr=Ic(t,{renderer:o.renderer||a,devicePixelRatio:o.devicePixelRatio,width:o.width,height:o.height,ssr:o.ssr,useDirtyRect:J(o.useDirtyRect,l),useCoarsePointer:J(o.useCoarsePointer,s),pointerSize:o.pointerSize});r._ssr=o.ssr,r._throttledZrFlush=nu(Y(u.flush,u),17),i=q(i),i&&t1(i,!0),r._theme=i,r._locale=ND(o.locale||g0),r._coordSysMgr=new Ea;var h=r._api=Bx(r);function c(d,p){return d.__prio-p.__prio}return Ws(yu,c),Ws(Dd,c),r._scheduler=new j1(r,h,Dd,yu),r._messageCenter=new Lx,r._initEvents(),r.resize=Y(r.resize,r),u.animation.on("frame",r._onframe,r),Rx(u,r),Nx(u,r),Fr(r),r}return e.prototype._onframe=function(){if(!this._disposed){Vx(this);var t=this._scheduler;if(this[Se]){var i=this[Se].silent;this[re]=!0;try{br(this),wi.update.call(this,null,this[Se].updateParams)}catch(l){throw this[re]=!1,this[Se]=null,l}this._zr.flush(),this[re]=!1,this[Se]=null,$a.call(this,i),Qa.call(this,i)}else if(t.unfinished){var o=fL,r=this._model,a=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),Td(this,r),t.performVisualTasks(r),fu(this,this._model,a,"remain",{}),o-=+new Date-s}while(o>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,i,o){if(!this[re]){if(this._disposed){this.id;return}var r,a,s;if(j(i)&&(o=i.lazyUpdate,r=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[re]=!0,!this._model||i){var l=new fk(this._api),u=this._theme,h=this._model=new X0;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:a},kd);var c={seriesTransition:s,optionChanged:!0};if(o)this[Se]={silent:r,updateParams:c},this[re]=!1,this.getZr().wakeUp();else{try{br(this),wi.update.call(this,null,c)}catch(d){throw this[Se]=null,this[re]=!1,d}this._ssr||this._zr.flush(),this[Se]=null,this[re]=!1,$a.call(this,r),Qa.call(this,r)}}},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||ct.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ct.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return M(i,function(o){o.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,o=this._model,r=[],a=this;M(i,function(l){o.eachComponent({mainType:l},function(u){var h=a._componentsMap[u.__viewId];h.group.ignore||(r.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(r,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",o=this.group,r=Math.min,a=Math.max,s=1/0;if(mu[o]){var l=s,u=s,h=-s,c=-s,d=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();M(bo,function(x,_){if(x.group===o){var w=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(q(t)),b=x.getDom().getBoundingClientRect();l=r(b.left,l),u=r(b.top,u),h=a(b.right,h),c=a(b.bottom,c),d.push({dom:w,left:b.left,top:b.top})}}),l*=p,u*=p,h*=p,c*=p;var f=h-l,g=c-u,v=Fn.createCanvas(),y=Ic(v,{renderer:i?"svg":"canvas"});if(y.resize({width:f,height:g}),i){var m="";return M(d,function(x){var _=x.left-l,w=x.top-u;m+='<g transform="translate('+_+","+w+')">'+x.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 yt({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),M(d,function(x){var _=new ee({style:{x:x.left*p-l,y:x.top*p-u,image:x.dom}});y.add(_)}),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return Md(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return Md(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var o=this._model,r,a=ga(o,t);return M(a,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var h=u.coordinateSystem;if(h&&h.containPoint)r=r||!!h.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(r=r||c.containPoint(i,u))}},this)},this),!!r},e.prototype.getVisual=function(t,i){var o=this._model,r=ga(o,t,{defaultMainType:"series"}),a=r.seriesModel,s=a.getData(),l=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?s.indexOfRawIndex(r.dataIndex):null;return l!=null?dd(s,l,i):fd(s,i)},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;M(IL,function(i){var o=function(r){var a=t.getModel(),s=r.target,l,u=i==="globalout";if(u?l={}:s&&xo(s,function(f){var g=rt(f);if(g&&g.dataIndex!=null){var v=g.dataModel||a.getSeriesByIndex(g.seriesIndex);return l=v&&v.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=N({},g.eventData),!0},!0),l){var h=l.componentType,c=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=l.seriesIndex);var d=h&&c!=null&&a.getComponent(h,c),p=d&&t[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=r,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:p},t.trigger(i,l)}};o.zrEventfulCallAtLast=!0,t._zr.on(i,o,t)}),M(Ja,function(i,o){t._messageCenter.on(o,function(r){this.trigger(o,r)},t)}),M(["selectchanged"],function(i){t._messageCenter.on(i,function(o){this.trigger(i,o)},t)}),NP(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&&Iy(this.getDom(),Ld,"");var i=this,o=i._api,r=i._model;M(i._componentsViews,function(a){a.dispose(r,o)}),M(i._chartsViews,function(a){a.dispose(r,o)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete bo[i.id]},e.prototype.resize=function(t){if(!this[re]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var o=i.resetOption("media"),r=t&&t.silent;this[Se]&&(r==null&&(r=this[Se].silent),o=!0,this[Se]=null),this[re]=!0;try{o&&br(this),wi.update.call(this,{type:"resize",animation:N({duration:0},t&&t.animation)})}catch(a){throw this[re]=!1,a}this[re]=!1,$a.call(this,r),Qa.call(this,r)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(j(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!Pd[t]){var o=Pd[t](this._api,i),r=this._zr;this._loadingFX=o,r.add(o)}},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 i=N({},t);return i.type=Ja[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(j(i)||(i={silent:!!i}),!!vu[t.type]&&this._model){if(this[re]){this._pendingActions.push(t);return}var o=i.silent;Cd.call(this,t,o);var r=i.flush;r?this._zr.flush():r!==!1&&ct.browser.weChat&&this._throttledZrFlush(),$a.call(this,o),Qa.call(this,o)}},e.prototype.updateLabelLayout=function(){ln.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,o=this.getModel(),r=o.getSeriesByIndex(i);r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){br=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),Sd(c,!0),Sd(c,!1),d.plan()},Sd=function(c,d){for(var p=c._model,f=c._scheduler,g=d?c._componentsViews:c._chartsViews,v=d?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,x=0;x<g.length;x++)g[x].__alive=!1;d?p.eachComponent(function(b,S){b!=="series"&&_(S)}):p.eachSeries(_);function _(b){var S=b.__requireNewView;b.__requireNewView=!1;var T="_ec_"+b.id+"_"+b.type,I=!S&&v[T];if(!I){var C=bn(b.type),A=d?zt.getClass(C.main,C.sub):oe.getClass(C.sub);I=new A,I.init(p,m),v[T]=I,g.push(I),y.add(I.group)}b.__viewId=I.__id=T,I.__alive=!0,I.__model=b,I.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!d&&f.prepareView(I,b,p,m)}for(var x=0;x<g.length;){var w=g[x];w.__alive?x++:(!d&&w.renderTask.dispose(),y.remove(w.group),w.dispose(p,m),g.splice(x,1),v[w.__id]===w&&delete v[w.__id],w.__id=w.group.__ecComponentInfo=null)}},du=function(c,d,p,f,g){var v=c._model;if(v.setUpdatePayload(p),!f){M([].concat(c._componentsViews).concat(c._chartsViews),w);return}var y={};y[f+"Id"]=p[f+"Id"],y[f+"Index"]=p[f+"Index"],y[f+"Name"]=p[f+"Name"];var m={mainType:f,query:y};g&&(m.subType=g);var x=p.excludeSeriesId,_;x!=null&&(_=X(),M(Dt(x),function(b){var S=jt(b,null);S!=null&&_.set(S,!0)})),v&&v.eachComponent(m,function(b){var S=_&&_.get(b.id)!=null;if(!S)if(Mm(p))if(b instanceof Ce)p.type===io&&!p.notBlur&&!b.get(["emphasis","disabled"])&&kA(b,p,c._api);else{var T=up(b.mainType,b.componentIndex,p.name,c._api),I=T.focusSelf,C=T.dispatchers;p.type===io&&I&&!p.notBlur&&lp(b.mainType,b.componentIndex,c._api),C&&M(C,function(A){p.type===io?oo(A):ro(A)})}else hp(p)&&b instanceof Ce&&(OA(b,p,c._api),bm(b),Ye(c))},c),v&&v.eachComponent(m,function(b){var S=_&&_.get(b.id)!=null;S||w(c[f==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function w(b){b&&b.__alive&&b[d]&&b[d](b.__model,v,c._api,p)}},wi={prepareAndUpdate:function(c){br(this),wi.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,d){var p=this._model,f=this._api,g=this._zr,v=this._coordSysMgr,y=this._scheduler;if(p){p.setUpdatePayload(c),y.restoreData(p,c),y.performSeriesTasks(p),v.create(p,f),y.performDataProcessorTasks(p,c),Td(this,p),v.update(p,f),t(p),y.performVisualTasks(p,c),Id(this,p,f,c,d);var m=p.get("backgroundColor")||"transparent",x=p.get("darkMode");g.setBackgroundColor(m),x!=null&&x!=="auto"&&g.setDarkMode(x),ln.trigger("afterupdate",p,f)}},updateTransform:function(c){var d=this,p=this._model,f=this._api;if(p){p.setUpdatePayload(c);var g=[];p.eachComponent(function(y,m){if(y!=="series"){var x=d.getViewOfComponentModel(m);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(m,p,f,c);_&&_.update&&g.push(x)}else g.push(x)}});var v=X();p.eachSeries(function(y){var m=d._chartsMap[y.__viewId];if(m.updateTransform){var x=m.updateTransform(y,p,f,c);x&&x.update&&v.set(y.uid,1)}else v.set(y.uid,1)}),t(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0,dirtyMap:v}),fu(this,p,f,c,{},v),ln.trigger("afterupdate",p,f)}},updateView:function(c){var d=this._model;d&&(d.setUpdatePayload(c),oe.markUpdateMethod(c,"updateView"),t(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0}),Id(this,d,this._api,c,{}),ln.trigger("afterupdate",d,this._api))},updateVisual:function(c){var d=this,p=this._model;p&&(p.setUpdatePayload(c),p.eachSeries(function(f){f.getData().clearAllVisual()}),oe.markUpdateMethod(c,"updateVisual"),t(p),this._scheduler.performVisualTasks(p,c,{visualType:"visual",setDirty:!0}),p.eachComponent(function(f,g){if(f!=="series"){var v=d.getViewOfComponentModel(g);v&&v.__alive&&v.updateVisual(g,p,d._api,c)}}),p.eachSeries(function(f){var g=d._chartsMap[f.__viewId];g.updateVisual(f,p,d._api,c)}),ln.trigger("afterupdate",p,this._api))},updateLayout:function(c){wi.update.call(this,c)}},Md=function(c,d,p,f){if(c._disposed){c.id;return}for(var g=c._model,v=c._coordSysMgr.getCoordinateSystems(),y,m=ga(g,p),x=0;x<v.length;x++){var _=v[x];if(_[d]&&(y=_[d](g,m,f))!=null)return y}},Td=function(c,d){var p=c._chartsMap,f=c._scheduler;d.eachSeries(function(g){f.updateStreamModes(g,p[g.__viewId])})},Cd=function(c,d){var p=this,f=this.getModel(),g=c.type,v=c.escapeConnect,y=vu[g],m=y.actionInfo,x=(m.update||"update").split(":"),_=x.pop(),w=x[0]!=null&&bn(x[0]);this[re]=!0;var b=[c],S=!1;c.batch&&(S=!0,b=F(c.batch,function(P){return P=K(N({},P),c),P.batch=null,P}));var T=[],I,C=hp(c),A=Mm(c);if(A&&_m(this._api),M(b,function(P){if(I=y.action(P,p._model,p._api),I=I||N({},P),I.type=m.event||I.type,T.push(I),A){var L=Nc(c),O=L.queryOptionMap,E=L.mainTypeSpecified,R=E?O.keys()[0]:"series";du(p,_,P,R),Ye(p)}else C?(du(p,_,P,"series"),Ye(p)):w&&du(p,_,P,w.main,w.sub)}),_!=="none"&&!A&&!C&&!w)try{this[Se]?(br(this),wi.update.call(this,c),this[Se]=null):wi[_].call(this,c)}catch(P){throw this[re]=!1,P}if(S?I={type:m.event||g,escapeConnect:v,batch:T}:I=T[0],this[re]=!1,!d){var D=this._messageCenter;if(D.trigger(I.type,I),C){var k={type:"selectchanged",escapeConnect:v,selected:RA(f),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};D.trigger(k.type,k)}}},$a=function(c){for(var d=this._pendingActions;d.length;){var p=d.shift();Cd.call(this,p,c)}},Qa=function(c){!c&&this.trigger("updated")},Rx=function(c,d){c.on("rendered",function(p){d.trigger("rendered",p),c.animation.isFinished()&&!d[Se]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Nx=function(c,d){c.on("mouseover",function(p){var f=p.target,g=xo(f,Sl);g&&(PA(g,p,d._api),Ye(d))}).on("mouseout",function(p){var f=p.target,g=xo(f,Sl);g&&(LA(g,p,d._api),Ye(d))}).on("click",function(p){var f=p.target,g=xo(f,function(m){return rt(m).dataIndex!=null},!0);if(g){var v=g.selected?"unselect":"select",y=rt(g);d._api.dispatchAction({type:v,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(c){c.clearColorPalette(),c.eachSeries(function(d){d.clearColorPalette()})}function i(c){var d=[],p=[],f=!1;if(c.eachComponent(function(m,x){var _=x.get("zlevel")||0,w=x.get("z")||0,b=x.getZLevelKey();f=f||!!b,(m==="series"?p:d).push({zlevel:_,z:w,idx:x.componentIndex,type:m,key:b})}),f){var g=d.concat(p),v,y;Ws(g,function(m,x){return m.zlevel===x.zlevel?m.z-x.z:m.zlevel-x.zlevel}),M(g,function(m){var x=c.getComponent(m.type,m.idx),_=m.zlevel,w=m.key;v!=null&&(_=Math.max(v,_)),w?(_===v&&w!==y&&_++,y=w):y&&(_===v&&_++,y=""),v=_,x.setZLevel(_)})}}Id=function(c,d,p,f,g){i(d),zx(c,d,p,f,g),M(c._chartsViews,function(v){v.__alive=!1}),fu(c,d,p,f,g),M(c._chartsViews,function(v){v.__alive||v.remove(d,p)})},zx=function(c,d,p,f,g,v){M(v||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,d,p,f),s(m,y),h(m,y)})},fu=function(c,d,p,f,g,v){var y=c._scheduler;g=N(g||{},{updatedSeries:d.getSeries()}),ln.trigger("series:beforeupdate",d,p,g);var m=!1;d.eachSeries(function(x){var _=c._chartsMap[x.__viewId];_.__alive=!0;var w=_.renderTask;y.updatePayload(w,f),u(x,_),v&&v.get(x.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),_.group.silent=!!x.get("silent"),a(x,_),bm(x)}),y.unfinished=m||y.unfinished,ln.trigger("series:layoutlabels",d,p,g),ln.trigger("series:transition",d,p,g),d.eachSeries(function(x){var _=c._chartsMap[x.__viewId];s(x,_),h(x,_)}),r(c,d),ln.trigger("series:afterupdate",d,p,g)},Ye=function(c){c[bd]=!0,c.getZr().wakeUp()},Vx=function(c){c[bd]&&(c.getZr().storage.traverse(function(d){nr(d)||o(d)}),c[bd]=!1)};function o(c){for(var d=[],p=c.currentStates,f=0;f<p.length;f++){var g=p[f];g==="emphasis"||g==="blur"||g==="select"||d.push(g)}c.selected&&c.states.select&&d.push("select"),c.hoverState===vl&&c.states.emphasis?d.push("emphasis"):c.hoverState===_a&&c.states.blur&&d.push("blur"),c.useStates(d)}function r(c,d){var p=c._zr,f=p.storage,g=0;f.traverse(function(v){v.isGroup||g++}),g>d.get("hoverLayerThreshold")&&!ct.node&&!ct.worker&&d.eachSeries(function(v){if(!v.preventUsingHoverLayer){var y=c._chartsMap[v.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function a(c,d){var p=c.get("blendMode")||null;d.eachRendered(function(f){f.isGroup||(f.style.blend=p)})}function s(c,d){if(!c.preventAutoZ){var p=c.get("z")||0,f=c.get("zlevel")||0;d.eachRendered(function(g){return l(g,p,f,-1/0),!0})}}function l(c,d,p,f){var g=c.getTextContent(),v=c.getTextGuideLine(),y=c.isGroup;if(y)for(var m=c.childrenRef(),x=0;x<m.length;x++)f=Math.max(l(m[x],d,p,f),f);else c.z=d,c.zlevel=p,f=Math.max(c.z2,f);if(g&&(g.z=d,g.zlevel=p,isFinite(f)&&(g.z2=f+2)),v){var _=c.textGuideLineConfig;v.z=d,v.zlevel=p,isFinite(f)&&(v.z2=f+(_&&_.showAbove?1:-1))}return f}function u(c,d){d.eachRendered(function(p){if(!nr(p)){var f=p.getTextContent(),g=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),f&&f.stateTransition&&(f.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function h(c,d){var p=c.getModel("stateAnimation"),f=c.isAnimationEnabled(),g=p.get("duration"),v=g>0?{duration:g,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(nr(y))return;if(y instanceof gt&&VA(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(f){y.stateTransition=v;var x=y.getTextContent(),_=y.getTextGuideLine();x&&(x.stateTransition=v),_&&(_.stateTransition=v)}y.__dirty&&o(y)}})}Bx=function(c){return new(function(d){z(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(f){for(;f;){var g=f.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);f=f.parent}},p.prototype.enterEmphasis=function(f,g){oo(f,g),Ye(c)},p.prototype.leaveEmphasis=function(f,g){ro(f,g),Ye(c)},p.prototype.enterBlur=function(f){vm(f),Ye(c)},p.prototype.leaveBlur=function(f){ap(f),Ye(c)},p.prototype.enterSelect=function(f){ym(f),Ye(c)},p.prototype.leaveSelect=function(f){mm(f),Ye(c)},p.prototype.getModel=function(){return c.getModel()},p.prototype.getViewOfComponentModel=function(f){return c.getViewOfComponentModel(f)},p.prototype.getViewOfSeriesModel=function(f){return c.getViewOfSeriesModel(f)},p}(Z0))(c)},Ex=function(c){function d(p,f){for(var g=0;g<p.length;g++){var v=p[g];v[wd]=f}}M(Ja,function(p,f){c._messageCenter.on(f,function(g){if(mu[c.group]&&c[wd]!==Ax){if(g&&g.escapeConnect)return;var v=c.makeActionFromEvent(g),y=[];M(bo,function(m){m!==c&&m.group===c.group&&y.push(m)}),d(y,Ax),M(y,function(m){m[wd]!==TL&&m.dispatchAction(v)}),d(y,CL)}})})}}(),e}(ke),Ad=gu.prototype;Ad.on=Dx("on"),Ad.off=Dx("off"),Ad.one=function(n,e,t){var i=this;function o(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];e&&e.apply&&e.apply(this,r),i.off(n,o)}this.on.call(this,n,o,t)};var IL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],vu={},Ja={},Dd=[],kd=[],yu=[],Fx={},Pd={},bo={},mu={},AL=+new Date-0,DL=+new Date-0,Ld="_echarts_instance_";function kL(n,e,t){var i=!(t&&t.ssr);if(i){var o=Od(n);if(o)return o}var r=new gu(n,e,t);return r.id="ec_"+AL++,bo[r.id]=r,i&&Iy(n,Ld,r.id),Ex(r),ln.trigger("afterinit",r),r}function PL(n){if(V(n)){var e=n;n=null,M(e,function(t){t.group!=null&&(n=t.group)}),n=n||"g_"+DL++,M(e,function(t){t.group=n})}return mu[n]=!0,n}function Wx(n){mu[n]=!1}var LL=Wx;function OL(n){G(n)?n=bo[n]:n instanceof gu||(n=Od(n)),n instanceof gu&&!n.isDisposed()&&n.dispose()}function Od(n){return bo[SI(n,Ld)]}function RL(n){return bo[n]}function Rd(n,e){Fx[n]=e}function Nd(n){lt(kd,n)<0&&kd.push(n)}function zd(n,e){Bd(Dd,n,e,mL)}function Gx(n){xu("afterinit",n)}function Hx(n){xu("afterupdate",n)}function xu(n,e){ln.on(n,e)}function un(n,e,t){$(e)&&(t=e,e="");var i=j(n)?n.type:[n,n={event:e}][0];n.event=(n.event||i).toLowerCase(),e=n.event,!Ja[e]&&(Jt(Ix.test(i)&&Ix.test(e)),vu[i]||(vu[i]={action:t,actionInfo:n}),Ja[e]=i)}function Yx(n,e){Ea.register(n,e)}function NL(n){var e=Ea.get(n);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Ux(n,e){Bd(yu,n,e,Sx,"layout")}function Si(n,e){Bd(yu,n,e,Mx,"visual")}var Xx=[];function Bd(n,e,t,i,o){if(($(e)||j(e))&&(t=e,e=i),!(lt(Xx,t)>=0)){Xx.push(t);var r=j1.wrapStageHandler(t,o);r.__prio=e,r.__raw=t,n.push(r)}}function Ed(n,e){Pd[n]=e}function zL(n){Kg({createCanvas:n})}function Zx(n,e,t){var i=bx("registerMap");i&&i(n,e,t)}function BL(n){var e=bx("getMap");return e&&e(n)}var jx=Hk;Si(_d,vP),Si(pu,yP),Si(pu,mP),Si(_d,OP),Si(pu,RP),Si(Tx,uL),Nd(t1),zd(vL,wk),Ed("default",xP),un({type:io,event:io,update:io},Et),un({type:yl,event:yl,update:yl},Et),un({type:wa,event:wa,update:wa},Et),un({type:ml,event:ml,update:ml},Et),un({type:Sa,event:Sa,update:Sa},Et),Rd("light",kP),Rd("dark",PP);var EL={};function ts(n){return n==null?0:n.length||1}function qx(n){return n}var VL=function(){function n(e,t,i,o,r,a){this._old=e,this._new=t,this._oldKeyGetter=i||qx,this._newKeyGetter=o||qx,this.context=r,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},o=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,o,"_oldKeyGetter"),this._initIndexMap(t,i,r,"_newKeyGetter");for(var a=0;a<e.length;a++){var s=o[a],l=i[s],u=ts(l);if(u>1){var h=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(h,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(r,i)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},o={},r=[],a=[];this._initIndexMap(e,i,r,"_oldKeyGetter"),this._initIndexMap(t,o,a,"_newKeyGetter");for(var s=0;s<r.length;s++){var l=r[s],u=i[l],h=o[l],c=ts(u),d=ts(h);if(c>1&&d===1)this._updateManyToOne&&this._updateManyToOne(h,u),o[l]=null;else if(c===1&&d>1)this._updateOneToMany&&this._updateOneToMany(h,u),o[l]=null;else if(c===1&&d===1)this._update&&this._update(h,u),o[l]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(h,u),o[l]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(a,o)},n.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var o=e[i],r=t[o],a=ts(r);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(r[s]);else a===1&&this._add&&this._add(r);t[o]=null}},n.prototype._initIndexMap=function(e,t,i,o){for(var r=this._diffModeMultiple,a=0;a<e.length;a++){var s="_ec_"+this[o](e[a],a);if(r||(i[a]=s),!!t){var l=t[s],u=ts(l);u===0?(t[s]=a,r&&i.push(s)):u===1?t[s]=[l,a]:l.push(a)}}},n}();const _u=VL;var FL=function(){function n(e,t){this._encode=e,this._schema=t}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n}();function WL(n,e){var t={},i=t.encode={},o=X(),r=[],a=[],s={};M(n.dimensions,function(d){var p=n.getDimensionInfo(d),f=p.coordDim;if(f){var g=p.coordDimIndex;Vd(i,f)[g]=d,p.isExtraCoord||(o.set(f,1),GL(p.type)&&(r[0]=d),Vd(s,f)[g]=n.getDimensionIndex(p.name)),p.defaultTooltip&&a.push(d)}L0.each(function(v,y){var m=Vd(i,y),x=p.otherDims[y];x!=null&&x!==!1&&(m[x]=p.name)})});var l=[],u={};o.each(function(d,p){var f=i[p];u[p]=f[0],l=l.concat(f)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=F(l,function(d){return n.getDimensionInfo(d).storeDimIndex}),t.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(r=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=a,t.userOutput=new FL(s,e),t}function Vd(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function Kx(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function GL(n){return!(n==="ordinal"||n==="time")}var HL=function(){function n(e){this.otherDims={},e!=null&&N(this,e)}return n}();const bu=HL;var YL=_t(),UL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},$x=function(){function n(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=t_(this.source)))},n.prototype.getSourceDimensionIndex=function(e){return J(this._dimNameMap.get(e),-1)},n.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},n.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=o1(this.source),i=!e_(e),o="",r=[],a=0,s=0;a<e;a++){var l=void 0,u=void 0,h=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===a)l=t?c.name:null,u=c.type,h=c.ordinalMeta,s++;else{var d=this.getSourceDimension(a);d&&(l=t?d.name:null,u=d.type)}r.push({property:l,type:u,ordinalMeta:h}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(o+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),o+="$",o+=UL[u]||"f",h&&(o+=h.uid),o+="$"}var p=this.source,f=[p.seriesLayoutBy,p.startIndex,o].join("$$");return{dimensions:r,hash:f}},n.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var o=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(o=r.name),i++;else{var a=this.getSourceDimension(t);a&&(o=a.name)}e.push(o)}return e},n.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n}();function Qx(n){return n instanceof $x}function Jx(n){for(var e=X(),t=0;t<(n||[]).length;t++){var i=n[t],o=j(i)?i.name:i;o!=null&&e.get(o)==null&&e.set(o,t)}return e}function t_(n){var e=YL(n);return e.dimNameMap||(e.dimNameMap=Jx(n.dimensionsDefine))}function e_(n){return n>30}var es=j,Mi=F,XL=typeof Int32Array>"u"?Array:Int32Array,ZL="e\0\0",n_=-1,jL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],qL=["_approximateExtent"],i_,wu,ns,is,Fd,Su,Wd,KL=function(){function n(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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,o=!1;Qx(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(o=!0,i=e),i=i||["x","y"];for(var r={},a=[],s={},l=!1,u={},h=0;h<i.length;h++){var c=i[h],d=G(c)?new bu({name:c}):c instanceof bu?c:new bu(c),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};a.push(p),r[p]=d,u[p]!=null&&(l=!0),d.createInvertedIndices&&(s[p]=[]),f.itemName===0&&(this._nameDimIdx=h),f.itemId===0&&(this._idDimIdx=h),o&&(d.storeDimIndex=h)}if(this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=X();M(a,function(v){g.set(r[v].storeDimIndex,v)})}}return n.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var o=this._schema.getSourceDimension(t);if(o)return o.name},n.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},n.prototype._recognizeDimIndex=function(e){if(vt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},n.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},n.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},n.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var o=i.encode[e];return o?o[t]:null},n.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(e,t,i){var o=this,r;if(e instanceof rd&&(r=e),!r){var a=this.dimensions,s=$p(e)||Xt(e)?new s1(e,a.length):e;r=new rd;var l=Mi(a,function(u){return{type:o._dimInfos[u].type,property:u}});r.initData(s,l,i)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=WL(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},n.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t.length),o=i.start,r=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=o;s<r;s++){var l=s-o;this._nameList[s]=t[l],a&&Wd(this,s)}},n.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var o=this._dimInfos[t[i]];o.ordinalMeta&&e.collectOrdinalMeta(o.storeDimIndex,o.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==_i&&!e.fillStorage},n.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,o=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,a=this._idList,s=o.getSource().sourceFormat,l=s===We;if(l&&!o.pure)for(var u=[],h=e;h<t;h++){var c=o.getItem(h,u);if(!this.hasItemOption&&hI(c)&&(this.hasItemOption=!0),c){var d=c.name;r[h]==null&&d!=null&&(r[h]=jt(d,null));var p=c.id;a[h]==null&&p!=null&&(a[h]=jt(p,null))}}if(this._shouldMakeIdFromName())for(var h=e;h<t;h++)Wd(this,h);i_(this)}},n.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},n.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},n.prototype.setCalculationInfo=function(e,t){es(e)?N(this._calculationInfo,e):this._calculationInfo[e]=t},n.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return i==null&&this._nameDimIdx!=null&&(i=ns(this,this._nameDimIdx,t)),i==null&&(i=""),i},n.prototype._getCategory=function(e,t){var i=this._store.get(e,t),o=this._store.getOrdinalMeta(e);return o?o.categories[i]:i},n.prototype.getId=function(e){return wu(this,this.getRawIndex(e))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(e,t){var i=this._store,o=this._dimInfos[e];if(o)return i.get(o.storeDimIndex,t)},n.prototype.getByRawIndex=function(e,t){var i=this._store,o=this._dimInfos[e];if(o)return i.getByRawIndex(o.storeDimIndex,t)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},n.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},n.prototype.getValues=function(e,t){var i=this,o=this._store;return V(e)?o.getValues(Mi(e,function(r){return i._getStoreDimIndex(r)}),t):o.getValues(e)},n.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,o=t.length;i<o;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},n.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},n.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},n.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},n.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],o=i[t];return o==null||isNaN(o)?n_:o},n.prototype.indicesOfNearest=function(e,t,i){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,i)},n.prototype.each=function(e,t,i){$(e)&&(i=t,t=e,e=[]);var o=i||this,r=Mi(is(e),this._getStoreDimIndex,this);this._store.each(r,o?Y(t,o):t)},n.prototype.filterSelf=function(e,t,i){$(e)&&(i=t,t=e,e=[]);var o=i||this,r=Mi(is(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,o?Y(t,o):t),this},n.prototype.selectRange=function(e){var t=this,i={},o=at(e);return M(o,function(r){var a=t._getStoreDimIndex(r);i[a]=e[r]}),this._store=this._store.selectRange(i),this},n.prototype.mapArray=function(e,t,i){$(e)&&(i=t,t=e,e=[]),i=i||this;var o=[];return this.each(e,function(){o.push(t&&t.apply(this,arguments))},i),o},n.prototype.map=function(e,t,i,o){var r=i||o||this,a=Mi(is(e),this._getStoreDimIndex,this),s=Su(this);return s._store=this._store.map(a,r?Y(t,r):t),s},n.prototype.modify=function(e,t,i,o){var r=i||o||this,a=Mi(is(e),this._getStoreDimIndex,this);this._store.modify(a,r?Y(t,r):t)},n.prototype.downSample=function(e,t,i,o){var r=Su(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,i,o),r},n.prototype.lttbDownSample=function(e,t){var i=Su(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},n.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},n.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new Ot(i,t,t&&t.ecModel)},n.prototype.diff=function(e){var t=this;return new _u(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return wu(e,i)},function(i){return wu(t,i)})},n.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},n.prototype.setVisual=function(e,t){this._visual=this._visual||{},es(e)?N(this._visual,e):this._visual[e]=t},n.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],o=i&&i[t];return o!=null?o:this.getVisual(t)},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,o=i[e];o||(o=i[e]={});var r=o[t];return r==null&&(r=this.getVisual(t),V(r)?r=r.slice():es(r)&&(r=N({},r)),o[t]=r),r},n.prototype.setItemVisual=function(e,t,i){var o=this._itemVisuals[e]||{};this._itemVisuals[e]=o,es(t)?N(o,t):o[t]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){es(e)?N(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?N(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;tp(i,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(i,o){i&&e&&e.call(t,i,o)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Mi(this.dimensions,this._getDimInfo,this),this.hostModel)),Fd(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var i=this[e];$(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var o=i.apply(this,arguments);return t.apply(this,[o].concat(Os(arguments)))})},n.internalField=function(){i_=function(e){var t=e._invertedIndicesMap;M(t,function(i,o){var r=e._dimInfos[o],a=r.ordinalMeta,s=e._store;if(a){i=t[o]=new XL(a.categories.length);for(var l=0;l<i.length;l++)i[l]=n_;for(var l=0;l<s.count();l++)i[s.get(r.storeDimIndex,l)]=l}})},ns=function(e,t,i){return jt(e._getCategory(t,i),null)},wu=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=ns(e,e._idDimIdx,t)),i==null&&(i=ZL+t),i},is=function(e){return V(e)||(e=e!=null?[e]:[]),e},Su=function(e){var t=new n(e._schema?e._schema:Mi(e.dimensions,e._getDimInfo,e),e.hostModel);return Fd(t,e),t},Fd=function(e,t){M(jL.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,M(qL,function(i){e[i]=q(t[i])}),e._calculationInfo=N({},t._calculationInfo)},Wd=function(e,t){var i=e._nameList,o=e._idList,r=e._nameDimIdx,a=e._idDimIdx,s=i[t],l=o[t];if(s==null&&r!=null&&(i[t]=s=ns(e,r,t)),l==null&&a!=null&&(o[t]=l=ns(e,a,t)),l==null&&s!=null){var u=e._nameRepeatCount,h=u[s]=(u[s]||0)+1;l=s,h>1&&(l+="__ec__"+h),o[t]=l}}}(),n}();const Mu=KL;function $L(n,e){return Tu(n,e).dimensions}function Tu(n,e){$p(n)||(n=Jp(n)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||n.dimensionsDefine||[],o=X(),r=[],a=JL(n,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&e_(a),l=i===n.dimensionsDefine,u=l?t_(n):Jx(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(n,a));for(var c=X(h),d=new m1(a),p=0;p<d.length;p++)d[p]=-1;function f(I){var C=d[I];if(C<0){var A=i[I],D=j(A)?A:{name:A},k=new bu,P=D.name;P!=null&&u.get(P)!=null&&(k.name=k.displayName=P),D.type!=null&&(k.type=D.type),D.displayName!=null&&(k.displayName=D.displayName);var L=r.length;return d[I]=L,k.storeDimIndex=I,r.push(k),k}return r[C]}if(!s)for(var p=0;p<a;p++)f(p);c.each(function(I,C){var A=Dt(I).slice();if(A.length===1&&!G(A[0])&&A[0]<0){c.set(C,!1);return}var D=c.set(C,[]);M(A,function(k,P){var L=G(k)?u.get(k):k;L!=null&&L<a&&(D[P]=L,v(f(L),C,P))})});var g=0;M(t,function(I){var C,A,D,k;if(G(I))C=I,k={};else{k=I,C=k.name;var P=k.ordinalMeta;k.ordinalMeta=null,k=N({},k),k.ordinalMeta=P,A=k.dimsDef,D=k.otherDims,k.name=k.coordDim=k.coordDimIndex=k.dimsDef=k.otherDims=null}var L=c.get(C);if(L!==!1){if(L=Dt(L),!L.length)for(var O=0;O<(A&&A.length||1);O++){for(;g<a&&f(g).coordDim!=null;)g++;g<a&&L.push(g++)}M(L,function(E,R){var B=f(E);if(l&&k.type!=null&&(B.type=k.type),v(K(B,k),C,R),B.name==null&&A){var W=A[R];!j(W)&&(W={name:W}),B.name=B.displayName=W.name,B.defaultTooltip=W.defaultTooltip}D&&K(B.otherDims,D)})}});function v(I,C,A){L0.get(C)!=null?I.otherDims[C]=A:(I.coordDim=C,I.coordDimIndex=A,o.set(C,!0))}var y=e.generateCoord,m=e.generateCoordCount,x=m!=null;m=y?m||1:0;var _=y||"value";function w(I){I.name==null&&(I.name=I.coordDim)}if(s)M(r,function(I){w(I)}),r.sort(function(I,C){return I.storeDimIndex-C.storeDimIndex});else for(var b=0;b<a;b++){var S=f(b),T=S.coordDim;T==null&&(S.coordDim=tO(_,o,x),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),w(S),S.type==null&&(z0(n,b)===Kt.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return QL(r),new $x({source:n,dimensions:r,fullDimensionCount:a,dimensionOmitted:s})}function QL(n){for(var e=X(),t=0;t<n.length;t++){var i=n[t],o=i.name,r=e.get(o)||0;r>0&&(i.name=o+(r-1)),r++,e.set(o,r)}}function JL(n,e,t,i){var o=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,i||0);return M(e,function(r){var a;j(r)&&(a=r.dimsDef)&&(o=Math.max(o,a.length))}),o}function tO(n,e,t){if(t||e.hasKey(n)){for(var i=0;e.hasKey(n+i);)i++;n+=i}return e.set(n,!0),n}var eO=function(){function n(e){this.coordSysDims=[],this.axisMap=X(),this.categoryAxisMap=X(),this.coordSysName=e}return n}();function nO(n){var e=n.get("coordinateSystem"),t=new eO(e),i=iO[e];if(i)return i(n,t,t.axisMap,t.categoryAxisMap),t}var iO={cartesian2d:function(n,e,t,i){var o=n.getReferringComponents("xAxis",Bt).models[0],r=n.getReferringComponents("yAxis",Bt).models[0];e.coordSysDims=["x","y"],t.set("x",o),t.set("y",r),wr(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),wr(r)&&(i.set("y",r),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,i){var o=n.getReferringComponents("singleAxis",Bt).models[0];e.coordSysDims=["single"],t.set("single",o),wr(o)&&(i.set("single",o),e.firstCategoryDimIndex=0)},polar:function(n,e,t,i){var o=n.getReferringComponents("polar",Bt).models[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",r),t.set("angle",a),wr(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),wr(a)&&(i.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,i){var o=n.ecModel,r=o.getComponent("parallel",n.get("parallelIndex")),a=e.coordSysDims=r.dimensions.slice();M(r.parallelAxisIndex,function(s,l){var u=o.getComponent("parallelAxis",s),h=a[l];t.set(h,u),wr(u)&&(i.set(h,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function wr(n){return n.get("type")==="category"}function o_(n,e,t){t=t||{};var i=t.byIndex,o=t.stackedCoordDimension,r,a,s;oO(e)?r=e:(a=e.schema,r=a.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,h,c,d;if(M(r,function(m,x){G(m)&&(r[x]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!h&&m.type!=="ordinal"&&m.type!=="time"&&(!o||o===m.coordDim)&&(h=m))}),h&&!i&&!u&&(i=!0),h){c="__\0ecstackresult_"+n.id,d="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var p=h.coordDim,f=h.type,g=0;M(r,function(m){m.coordDim===p&&g++});var v={name:c,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:d,coordDim:d,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};a?(s&&(v.storeDimIndex=s.ensureCalculationDimension(d,f),y.storeDimIndex=s.ensureCalculationDimension(c,f)),a.appendCalculationDimension(v),a.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:h&&h.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:d,stackResultDimension:c}}function oO(n){return!Qx(n.schema)}function Ti(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function r_(n,e){return Ti(n,e)?n.getCalculationInfo("stackResultDimension"):e}function rO(n,e){var t=n.get("coordinateSystem"),i=Ea.get(t),o;return e&&e.coordSysDims&&(o=F(e.coordSysDims,function(r){var a={name:r},s=e.axisMap.get(r);if(s){var l=s.get("type");a.type=Kx(l)}return a})),o||(o=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),o}function aO(n,e,t){var i,o;return t&&M(n,function(r,a){var s=r.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=a),r.ordinalMeta=l.getOrdinalMeta(),e&&(r.createInvertedIndices=!0)),r.otherDims.itemName!=null&&(o=!0)}),!o&&i!=null&&(n[i].otherDims.itemName=0),i}function os(n,e,t){t=t||{};var i=e.getSourceManager(),o,r=!1;n?(r=!0,o=Jp(n)):(o=i.getSource(),r=o.sourceFormat===We);var a=nO(e),s=rO(e,a),l=t.useEncodeDefaulter,u=$(l)?l:l?pt(N0,s,e):null,h={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!r},c=Tu(o,h),d=aO(c.dimensions,t.createInvertedIndices,a),p=r?null:i.getSharedDataStore(c),f=o_(e,{schema:c,store:p}),g=new Mu(c,e);g.setCalculationInfo(f);var v=d!=null&&sO(o)?function(y,m,x,_){return _===d?x:this.defaultDimValueGetter(y,m,x,_)}:null;return g.hasItemOption=!1,g.initData(r?o:p,null,v),g}function sO(n){if(n.sourceFormat===We){var e=lO(n.data||[]);return!V($o(e))}}function lO(n){for(var e=0;e<n.length&&n[e]==null;)e++;return n[e]}var a_=function(){function n(e){this._setting=e||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(e){return this._setting[e]},n.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();ul(a_);const Jn=a_;var uO=0,hO=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++uO}return n.createByAxisModel=function(e){var t=e.option,i=t.data,o=i&&F(i,cO);return new n({categories:o,needCollect:!o,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!G(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var o=this._getOrCreateMap();return t=o.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,o.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=X(this.categories))},n}();function cO(n){return j(n)&&n.value!=null?n.value:n+""}const Gd=hO;function Hd(n){return n.type==="interval"||n.type==="log"}function pO(n,e,t,i){var o={},r=n[1]-n[0],a=o.interval=Pc(r/e,!0);t!=null&&a<t&&(a=o.interval=t),i!=null&&a>i&&(a=o.interval=i);var s=o.intervalPrecision=s_(a),l=o.niceTickExtent=[kt(Math.ceil(n[0]/a)*a,s),kt(Math.floor(n[1]/a)*a,s)];return dO(l,n),o}function Yd(n){var e=Math.pow(10,ll(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,kt(t*e)}function s_(n){return _n(n)+2}function l_(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function dO(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),l_(n,0,e),l_(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Cu(n,e){return n>=e[0]&&n<=e[1]}function Iu(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Au(n,e){return n*(e[1]-e[0])+e[0]}var u_=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;i.type="ordinal";var o=i.getSetting("ordinalMeta");return o||(o=new Gd({})),V(o)&&(o=new Gd({categories:F(o,function(r){return j(r)?r.value:r})})),i._ordinalMeta=o,i._extent=i.getSetting("extent")||[0,o.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:G(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Cu(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Iu(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Au(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,o=i[0];o<=i[1];)t.push({value:o}),o++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,o=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);a<l;++a){var u=i[a];o[a]=u,r[u]=a}for(var h=0;a<s;++a){for(;r[h]!=null;)h++;o.push(h),r[h]=a}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),o=this._ordinalMeta.categories[i];return o==null?"":o+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},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}(Jn);Jn.registerClass(u_);const Ud=u_;var wo=kt,h_=function(n){z(e,n);function e(){var t=n!==null&&n.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 Cu(t,this._extent)},e.prototype.normalize=function(t){return Iu(t,this._extent)},e.prototype.scale=function(t){return Au(t,this._extent)},e.prototype.setExtent=function(t,i){var o=this._extent;isNaN(t)||(o[0]=parseFloat(t)),isNaN(i)||(o[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]<i[0]&&(i[0]=t[0]),t[1]>i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s_(t)},e.prototype.getTicks=function(t){var i=this._interval,o=this._extent,r=this._niceExtent,a=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;o[0]<r[0]&&(t?s.push({value:wo(r[0]-i,a)}):s.push({value:o[0]}));for(var u=r[0];u<=r[1]&&(s.push({value:u}),u=wo(u+i,a),u!==s[s.length-1].value);)if(s.length>l)return[];var h=s.length?s[s.length-1].value:r[1];return o[1]>h&&(t?s.push({value:wo(h+i,a)}):s.push({value:o[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),o=[],r=this.getExtent(),a=1;a<i.length;a++){for(var s=i[a],l=i[a-1],u=0,h=[],c=s.value-l.value,d=c/t;u<t-1;){var p=wo(l.value+(u+1)*d);p>r[0]&&p<r[1]&&h.push(p),u++}o.push(h)}return o},e.prototype.getLabel=function(t,i){if(t==null)return"";var o=i&&i.precision;o==null?o=_n(t.value)||0:o==="auto"&&(o=this._intervalPrecision);var r=wo(t.value,o,!0);return zp(r)},e.prototype.calcNiceTicks=function(t,i,o){t=t||5;var r=this._extent,a=r[1]-r[0];if(isFinite(a)){a<0&&(a=-a,r.reverse());var s=pO(r,t,i,o);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var o=Math.abs(i[0]);t.fixMax||(i[1]+=o/2),i[0]-=o/2}else i[1]=1;var r=i[1]-i[0];isFinite(r)||(i[0]=0,i[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(i[0]=wo(Math.floor(i[0]/a)*a)),t.fixMax||(i[1]=wo(Math.ceil(i[1]/a)*a))},e.prototype.setNiceExtent=function(t,i){this._niceExtent=[t,i]},e.type="interval",e}(Jn);Jn.registerClass(h_);const Ci=h_;var c_=typeof Float32Array<"u",fO=c_?Float32Array:Array;function On(n){return V(n)?c_?new Float32Array(n):n:new fO(n)}var Xd="__ec_stack_";function Zd(n){return n.get("stack")||Xd+n.seriesIndex}function jd(n){return n.dim+n.index}function gO(n){var e=[],t=n.axis,i="axis0";if(t.type==="category"){for(var o=t.getBandWidth(),r=0;r<n.count;r++)e.push(K({bandWidth:o,axisKey:i,stackId:Xd+r},n));for(var a=f_(e),s=[],r=0;r<n.count;r++){var l=a[i][Xd+r];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function p_(n,e){var t=[];return e.eachSeriesByType(n,function(i){y_(i)&&t.push(i)}),t}function vO(n){var e={};M(n,function(l){var u=l.coordinateSystem,h=u.getBaseAxis();if(!(h.type!=="time"&&h.type!=="value"))for(var c=l.getData(),d=h.dim+"_"+h.index,p=c.getDimensionIndex(c.mapDimension(h.dim)),f=c.getStore(),g=0,v=f.count();g<v;++g){var y=f.get(p,g);e[d]?e[d].push(y):e[d]=[y]}});var t={};for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(o){o.sort(function(l,u){return l-u});for(var r=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];s>0&&(r=r===null?s:Math.min(r,s))}t[i]=r}}return t}function d_(n){var e=vO(n),t=[];return M(n,function(i){var o=i.coordinateSystem,r=o.getBaseAxis(),a=r.getExtent(),s;if(r.type==="category")s=r.getBandWidth();else if(r.type==="value"||r.type==="time"){var l=r.dim+"_"+r.index,u=e[l],h=Math.abs(a[1]-a[0]),c=r.scale.getExtent(),d=Math.abs(c[1]-c[0]);s=u?h/d*u:h}else{var p=i.getData();s=Math.abs(a[1]-a[0])/p.count()}var f=U(i.get("barWidth"),s),g=U(i.get("barMaxWidth"),s),v=U(i.get("barMinWidth")||(m_(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:f,barMaxWidth:g,barMinWidth:v,barGap:y,barCategoryGap:m,axisKey:jd(r),stackId:Zd(i)})}),f_(t)}function f_(n){var e={};M(n,function(i,o){var r=i.axisKey,a=i.bandWidth,s=e[r]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[r]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=i.barWidth;h&&!l[u].width&&(l[u].width=h,h=Math.min(s.remainedWidth,h),s.remainedWidth-=h);var c=i.barMaxWidth;c&&(l[u].maxWidth=c);var d=i.barMinWidth;d&&(l[u].minWidth=d);var p=i.barGap;p!=null&&(s.gap=p);var f=i.barCategoryGap;f!=null&&(s.categoryGap=f)});var t={};return M(e,function(i,o){t[o]={};var r=i.stacks,a=i.bandWidth,s=i.categoryGap;if(s==null){var l=at(r).length;s=Math.max(35-l*4,15)+"%"}var u=U(s,a),h=U(i.gap,1),c=i.remainedWidth,d=i.autoWidthCount,p=(c-u)/(d+(d-1)*h);p=Math.max(p,0),M(r,function(y){var m=y.maxWidth,x=y.minWidth;if(y.width){var _=y.width;m&&(_=Math.min(_,m)),x&&(_=Math.max(_,x)),y.width=_,c-=_+h*_,d--}else{var _=p;m&&m<_&&(_=Math.min(m,c)),x&&x>_&&(_=x),_!==p&&(y.width=_,c-=_+h*_,d--)}}),p=(c-u)/(d+(d-1)*h),p=Math.max(p,0);var f=0,g;M(r,function(y,m){y.width||(y.width=p),g=y,f+=y.width*(1+h)}),g&&(f-=g.width*h);var v=-f/2;M(r,function(y,m){t[o][m]=t[o][m]||{bandWidth:a,offset:v,width:y.width},v+=y.width*(1+h)})}),t}function yO(n,e,t){if(n&&e){var i=n[jd(e)];return i!=null&&t!=null?i[Zd(t)]:i}}function g_(n,e){var t=p_(n,e),i=d_(t);M(t,function(o){var r=o.getData(),a=o.coordinateSystem,s=a.getBaseAxis(),l=Zd(o),u=i[jd(s)][l],h=u.offset,c=u.width;r.setLayout({bandWidth:u.bandWidth,offset:h,size:c})})}function v_(n){return{seriesType:n,plan:tu(),reset:function(e){if(y_(e)){var t=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),r=i.getOtherAxis(o),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=t.getDimensionIndex(t.mapDimension(o.dim)),l=e.get("showBackground",!0),u=t.mapDimension(r.dim),h=t.getCalculationInfo("stackResultDimension"),c=Ti(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),p=mO(o,r),f=m_(e),g=e.get("barMinHeight")||0,v=h&&t.getDimensionIndex(h),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(x,_){for(var w=x.count,b=f&&On(w*3),S=f&&l&&On(w*3),T=f&&On(w),I=i.master.getRect(),C=d?I.width:I.height,A,D=_.getStore(),k=0;(A=x.next())!=null;){var P=D.get(c?v:a,A),L=D.get(s,A),O=p,E=void 0;c&&(E=+P-D.get(a,A));var R=void 0,B=void 0,W=void 0,Z=void 0;if(d){var Q=i.dataToPoint([P,L]);if(c){var ot=i.dataToPoint([E,L]);O=ot[0]}R=O,B=Q[1]+m,W=Q[0]-O,Z=y,Math.abs(W)<g&&(W=(W<0?-1:1)*g)}else{var Q=i.dataToPoint([L,P]);if(c){var ot=i.dataToPoint([L,E]);O=ot[1]}R=Q[0]+m,B=O,W=y,Z=Q[1]-O,Math.abs(Z)<g&&(Z=(Z<=0?-1:1)*g)}f?(b[k]=R,b[k+1]=B,b[k+2]=d?W:Z,S&&(S[k]=d?I.x:R,S[k+1]=d?B:I.y,S[k+2]=C),T[A]=A):_.setItemLayout(A,{x:R,y:B,width:W,height:Z}),k+=3}f&&_.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:S,valueAxisHorizontal:d})}}}}}}function y_(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function m_(n){return n.pipelineContext&&n.pipelineContext.large}function mO(n,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var xO=function(n,e,t,i){for(;t<i;){var o=t+i>>>1;n[o][1]<e?t=o+1:i=o}return t},x_=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i.type="time",i}return e.prototype.getLabel=function(t){var i=this.getSetting("useUTC");return Ra(t.value,y0[ED(cr(this._minLevelUnit))]||y0.second,i,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,i,o){var r=this.getSetting("useUTC"),a=this.getSetting("locale");return VD(t,i,o,a,r)},e.prototype.getTicks=function(){var t=this._interval,i=this._extent,o=[];if(!t)return o;o.push({value:i[0],level:0});var r=this.getSetting("useUTC"),a=CO(this._minLevelUnit,this._approxInterval,r,i);return o=o.concat(a),o.push({value:i[1],level:0}),o},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1]&&(i[0]-=Fe,i[1]+=Fe),i[1]===-1/0&&i[0]===1/0){var o=new Date;i[1]=+new Date(o.getFullYear(),o.getMonth(),o.getDate()),i[0]=i[1]-Fe}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,i,o){t=t||10;var r=this._extent,a=r[1]-r[0];this._approxInterval=a/t,i!=null&&this._approxInterval<i&&(this._approxInterval=i),o!=null&&this._approxInterval>o&&(this._approxInterval=o);var s=Du.length,l=Math.min(xO(Du,this._approxInterval,0,s),s-1);this._interval=Du[l][1],this._minLevelUnit=Du[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return vt(t)?t:+Re(t)},e.prototype.contain=function(t){return Cu(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Iu(this.parse(t),this._extent)},e.prototype.scale=function(t){return Au(t,this._extent)},e.type="time",e}(Ci),Du=[["second",Lp],["minute",Op],["hour",La],["quarter-day",La*6],["half-day",La*12],["day",Fe*1.2],["half-week",Fe*3.5],["week",Fe*7],["month",Fe*31],["quarter",Fe*95],["half-year",v0/2],["year",v0]];function _O(n,e,t,i){var o=Re(e),r=Re(t),a=function(f){return _0(o,f,i)===_0(r,f,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},d=function(){return c()&&a("second")},p=function(){return d()&&a("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return d();case"millisecond":return p()}}function bO(n,e){return n/=Fe,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function wO(n){var e=30*Fe;return n/=e,n>6?6:n>3?3:n>2?2:1}function SO(n){return n/=La,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function __(n,e){return n/=e?Op:Lp,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function MO(n){return Pc(n,!0)}function TO(n,e,t){var i=new Date(n);switch(cr(e)){case"year":case"month":i[b0(t)](0);case"day":i[w0(t)](1);case"hour":i[S0(t)](0);case"minute":i[M0(t)](0);case"second":i[T0(t)](0),i[C0(t)](0)}return i.getTime()}function CO(n,e,t,i){var o=1e4,r=m0,a=0;function s(C,A,D,k,P,L,O){for(var E=new Date(A),R=A,B=E[k]();R<D&&R<=i[1];)O.push({value:R}),B+=C,E[P](B),R=E.getTime();O.push({value:R,notAdd:!0})}function l(C,A,D){var k=[],P=!A.length;if(!_O(cr(C),i[0],i[1],t)){P&&(A=[{value:TO(new Date(i[0]),C,t)},{value:i[1]}]);for(var L=0;L<A.length-1;L++){var O=A[L].value,E=A[L+1].value;if(O!==E){var R=void 0,B=void 0,W=void 0,Z=!1;switch(C){case"year":R=Math.max(1,Math.round(e/Fe/365)),B=Np(t),W=FD(t);break;case"half-year":case"quarter":case"month":R=wO(e),B=pr(t),W=b0(t);break;case"week":case"half-week":case"day":R=bO(e),B=Gl(t),W=w0(t),Z=!0;break;case"half-day":case"quarter-day":case"hour":R=SO(e),B=Na(t),W=S0(t);break;case"minute":R=__(e,!0),B=Hl(t),W=M0(t);break;case"second":R=__(e,!1),B=Yl(t),W=T0(t);break;case"millisecond":R=MO(e),B=Ul(t),W=C0(t);break}s(R,O,E,B,W,Z,k),C==="year"&&D.length>1&&L===0&&D.unshift({value:D[0].value-R})}}for(var L=0;L<k.length;L++)D.push(k[L]);return k}}for(var u=[],h=[],c=0,d=0,p=0;p<r.length&&a++<o;++p){var f=cr(r[p]);if(BD(r[p])){l(r[p],u[u.length-1]||[],h);var g=r[p+1]?cr(r[p+1]):null;if(f!==g){if(h.length){d=c,h.sort(function(C,A){return C.value-A.value});for(var v=[],y=0;y<h.length;++y){var m=h[y].value;(y===0||h[y-1].value!==m)&&(v.push(h[y]),m>=i[0]&&m<=i[1]&&c++)}var x=(i[1]-i[0])/e;if(c>x*1.5&&d>x/1.5||(u.push(v),c>x||n===r[p]))break}h=[]}}}for(var _=At(F(u,function(A){return At(A,function(D){return D.value>=i[0]&&D.value<=i[1]&&!D.notAdd})}),function(A){return A.length>0}),w=[],b=_.length-1,p=0;p<_.length;++p)for(var S=_[p],T=0;T<S.length;++T)w.push({value:S[T].value,level:b-p});w.sort(function(C,A){return C.value-A.value});for(var I=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&I.push(w[p]);return I}Jn.registerClass(x_);const b_=x_;var w_=Jn.prototype,rs=Ci.prototype,IO=kt,AO=Math.floor,DO=Math.ceil,ku=Math.pow,hn=Math.log,qd=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Ci,t._interval=0,t}return e.prototype.getTicks=function(t){var i=this._originalScale,o=this._extent,r=i.getExtent(),a=rs.getTicks.call(this,t);return F(a,function(s){var l=s.value,u=kt(ku(this.base,l));return u=l===o[0]&&this._fixMin?Pu(u,r[0]):u,u=l===o[1]&&this._fixMax?Pu(u,r[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,i){var o=hn(this.base);t=hn(Math.max(0,t))/o,i=hn(Math.max(0,i))/o,rs.setExtent.call(this,t,i)},e.prototype.getExtent=function(){var t=this.base,i=w_.getExtent.call(this);i[0]=ku(t,i[0]),i[1]=ku(t,i[1]);var o=this._originalScale,r=o.getExtent();return this._fixMin&&(i[0]=Pu(i[0],r[0])),this._fixMax&&(i[1]=Pu(i[1],r[1])),i},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var i=this.base;t[0]=hn(t[0])/hn(i),t[1]=hn(t[1])/hn(i),w_.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.calcNiceTicks=function(t){t=t||10;var i=this._extent,o=i[1]-i[0];if(!(o===1/0||o<=0)){var r=yy(o),a=t/o*r;for(a<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var s=[kt(DO(i[0]/r)*r),kt(AO(i[1]/r)*r)];this._interval=r,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){rs.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=hn(t)/hn(this.base),Cu(t,this._extent)},e.prototype.normalize=function(t){return t=hn(t)/hn(this.base),Iu(t,this._extent)},e.prototype.scale=function(t){return t=Au(t,this._extent),ku(this.base,t)},e.type="log",e}(Jn),S_=qd.prototype;S_.getMinorTicks=rs.getMinorTicks,S_.getLabel=rs.getLabel;function Pu(n,e){return IO(n,_n(e))}Jn.registerClass(qd);const kO=qd;var PO=function(){function n(e,t,i){this._prepareParams(e,t,i)}return n.prototype._prepareParams=function(e,t,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var o=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var r=this._modelMinRaw=t.get("min",!0);$(r)?this._modelMinNum=Lu(e,r({min:i[0],max:i[1]})):r!=="dataMin"&&(this._modelMinNum=Lu(e,r));var a=this._modelMaxRaw=t.get("max",!0);if($(a)?this._modelMaxNum=Lu(e,a({min:i[0],max:i[1]})):a!=="dataMax"&&(this._modelMaxNum=Lu(e,a)),o)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=V(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[en(l[0],1),en(l[1],1)]}},n.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,i=this._dataMax,o=this._axisDataLen,r=this._boundaryGapInner,a=e?null:i-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,h=l!=null;s==null&&(s=e?o?0:NaN:t-r[0]*a),l==null&&(l=e?o?o-1:NaN:i+r[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Wo(s)||Wo(l)||e&&!o;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(s=d,u=!0),p!=null&&(l=p,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:c}},n.prototype.modifyDataMinMax=function(e,t){this[OO[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var i=LO[e];this[i]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),LO={min:"_determinedMin",max:"_determinedMax"},OO={min:"_dataMin",max:"_dataMax"};function M_(n,e,t){var i=n.rawExtentInfo;return i||(i=new PO(n,e,t),n.rawExtentInfo=i,i)}function Lu(n,e){return e==null?null:Wo(e)?NaN:n.parse(e)}function T_(n,e){var t=n.type,i=M_(n,e,n.getExtent()).calculate();n.setBlank(i.isBlank);var o=i.min,r=i.max,a=e.ecModel;if(a&&t==="time"){var s=p_("bar",a),l=!1;if(M(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=d_(s),h=RO(o,r,e,u);o=h.min,r=h.max}}return{extent:[o,r],fixMin:i.minFixed,fixMax:i.maxFixed}}function RO(n,e,t,i){var o=t.axis.getExtent(),r=o[1]-o[0],a=yO(i,t.axis);if(a===void 0)return{min:n,max:e};var s=1/0;M(a,function(p){s=Math.min(p.offset,s)});var l=-1/0;M(a,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-n,c=1-(s+l)/r,d=h/c-h;return e+=d*(l/u),n-=d*(s/u),{min:n,max:e}}function Sr(n,e){var t=e,i=T_(n,t),o=i.extent,r=t.get("splitNumber");n instanceof kO&&(n.base=t.get("logBase"));var a=n.type,s=t.get("interval"),l=a==="interval"||a==="time";n.setExtent(o[0],o[1]),n.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Ou(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new Ud({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new b_({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(Jn.getClass(e)||Ci)}}function NO(n){var e=n.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function as(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(i){return function(o,r){return n.scale.getFormattedLabel(o,r,i)}}(e):G(e)?function(i){return function(o){var r=n.scale.getLabel(o),a=i.replace("{value}",r!=null?r:"");return a}}(e):$(e)?function(i){return function(o,r){return t!=null&&(r=o.value-t),i(Kd(n,o),r,o.level!=null?{level:o.level}:null)}}(e):function(i){return n.scale.getLabel(i)}}function Kd(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function zO(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,o,r=t.getExtent();t instanceof Ud?o=t.count():(i=t.getTicks(),o=i.length);var a=n.getLabelModel(),s=as(n),l,u=1;o>40&&(u=Math.ceil(o/40));for(var h=0;h<o;h+=u){var c=i?i[h]:{value:r[0]+h},d=s(c,h),p=a.getTextRect(d),f=BO(p,a.get("rotate")||0);l?l.union(f):l=f}return l}}function BO(n,e){var t=e*Math.PI/180,i=n.width,o=n.height,r=i*Math.abs(Math.cos(t))+Math.abs(o*Math.sin(t)),a=i*Math.abs(Math.sin(t))+Math.abs(o*Math.cos(t)),s=new ut(n.x,n.y,r,a);return s}function $d(n){var e=n.get("interval");return e!=null?e:"auto"}function C_(n){return n.type==="category"&&$d(n.getLabelModel())===0}function Ru(n,e){var t={};return M(n.mapDimensionsAll(e),function(i){t[r_(n,i)]=!0}),at(t)}function EO(n,e,t){e&&M(Ru(e,t),function(i){var o=e.getApproximateExtent(i);o[0]<n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])})}var ss=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),I_=[],VO={registerPreprocessor:Nd,registerProcessor:zd,registerPostInit:Gx,registerPostUpdate:Hx,registerUpdateLifecycle:xu,registerAction:un,registerCoordinateSystem:Yx,registerLayout:Ux,registerVisual:Si,registerTransform:jx,registerLoading:Ed,registerMap:Zx,registerImpl:cL,PRIORITY:Cx,ComponentModel:ft,ComponentView:zt,SeriesModel:Ce,ChartView:oe,registerComponentModel:function(n){ft.registerClass(n)},registerComponentView:function(n){zt.registerClass(n)},registerSeriesModel:function(n){Ce.registerClass(n)},registerChartView:function(n){oe.registerClass(n)},registerSubTypeDefaulter:function(n,e){ft.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){hy(n,e)}};function $t(n){if(V(n)){M(n,function(e){$t(e)});return}lt(I_,n)>=0||(I_.push(n),$(n)&&(n={install:n}),n.install(VO))}var FO=1e-8;function A_(n,e){return Math.abs(n-e)<FO}function Qd(n,e,t){var i=0,o=n[0];if(!o)return!1;for(var r=1;r<n.length;r++){var a=n[r];i+=jn(o[0],o[1],a[0],a[1],e,t),o=a}var s=n[0];return(!A_(o[0],s[0])||!A_(o[1],s[1]))&&(i+=jn(o[0],o[1],s[0],s[1],e,t)),i!==0}var WO=[];function Jd(n,e){for(var t=0;t<n.length;t++)Ht(n[t],n[t],e)}function D_(n,e,t,i){for(var o=0;o<n.length;o++){var r=n[o];i&&(r=i.project(r)),r&&isFinite(r[0])&&isFinite(r[1])&&(Wn(e,e,r),Gn(t,t,r))}}function GO(n){for(var e=0,t=0,i=0,o=n.length,r=n[o-1][0],a=n[o-1][1],s=0;s<o;s++){var l=n[s][0],u=n[s][1],h=r*u-l*a;e+=h,t+=(r+l)*h,i+=(a+u)*h,r=l,a=u}return e?[t/e/3,i/e/3,e]:[n[0][0]||0,n[0][1]||0]}var k_=function(){function n(e){this.name=e}return n.prototype.setCenter=function(e){this._center=e},n.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},n}(),P_=function(){function n(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return n}(),L_=function(){function n(e){this.type="linestring",this.points=e}return n}(),O_=function(n){z(e,n);function e(t,i,o){var r=n.call(this,t)||this;return r.type="geoJSON",r.geometries=i,r._center=o&&[o[0],o[1]],r}return e.prototype.calcCenter=function(){for(var t=this.geometries,i,o=0,r=0;r<t.length;r++){var a=t[r],s=a.exterior,l=s&&s.length;l>o&&(i=a,o=l)}if(i)return GO(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var o=[1/0,1/0],r=[-1/0,-1/0],a=this.geometries;return M(a,function(s){s.type==="polygon"?D_(s.exterior,o,r,t):M(s.points,function(l){D_(l,o,r,t)})}),isFinite(o[0])&&isFinite(o[1])&&isFinite(r[0])&&isFinite(r[1])||(o[0]=o[1]=r[0]=r[1]=0),i=new ut(o[0],o[1],r[0]-o[0],r[1]-o[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),o=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var r=0,a=o.length;r<a;r++){var s=o[r];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Qd(l,t[0],t[1])){for(var h=0;h<(u?u.length:0);h++)if(Qd(u[h],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,i,o,r){var a=this.getBoundingRect(),s=a.width/a.height;o?r||(r=o/s):o=s*r;for(var l=new ut(t,i,o,r),u=a.calculateTransform(l),h=this.geometries,c=0;c<h.length;c++){var d=h[c];d.type==="polygon"?(Jd(d.exterior,u),M(d.interiors,function(p){Jd(p,u)})):M(d.points,function(p){Jd(p,u)})}a=this._rect,a.copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var i=new e(t,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e}(k_),HO=function(n){z(e,n);function e(t,i){var o=n.call(this,t)||this;return o.type="geoSVG",o._elOnlyForCalculate=i,o}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,i=t.getBoundingRect(),o=[i.x+i.width/2,i.y+i.height/2],r=Xr(WO),a=t;a&&!a.isGeoSVGGraphicRoot;)gn(r,a.getLocalTransform(),r),a=a.parent;return zi(r,r),Ht(o,o,r),o},e}(k_);function YO(n){if(!n.UTF8Encoding)return n;var e=n,t=e.UTF8Scale;t==null&&(t=1024);var i=e.features;return M(i,function(o){var r=o.geometry,a=r.encodeOffsets,s=r.coordinates;if(a)switch(r.type){case"LineString":r.coordinates=R_(s,a,t);break;case"Polygon":tf(s,a,t);break;case"MultiLineString":tf(s,a,t);break;case"MultiPolygon":M(s,function(l,u){return tf(l,a[u],t)})}}),e.UTF8Encoding=!1,e}function tf(n,e,t){for(var i=0;i<n.length;i++)n[i]=R_(n[i],e[i],t)}function R_(n,e,t){for(var i=[],o=e[0],r=e[1],a=0;a<n.length;a+=2){var s=n.charCodeAt(a)-64,l=n.charCodeAt(a+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=o,l+=r,o=s,r=l,i.push([s/t,l/t])}return i}function N_(n,e){return n=YO(n),F(At(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,o=t.geometry,r=[];switch(o.type){case"Polygon":var a=o.coordinates;r.push(new P_(a[0],a.slice(1)));break;case"MultiPolygon":M(o.coordinates,function(l){l[0]&&r.push(new P_(l[0],l.slice(1)))});break;case"LineString":r.push(new L_([o.coordinates]));break;case"MultiLineString":r.push(new L_(o.coordinates))}var s=new O_(i[e||"name"],r,i.cp);return s.properties=i,s})}var ls=_t();function UO(n){return n.type==="category"?ZO(n):qO(n)}function XO(n,e){return n.type==="category"?jO(n,e):{ticks:F(n.scale.getTicks(),function(t){return t.value})}}function ZO(n){var e=n.getLabelModel(),t=z_(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function z_(n,e){var t=B_(n,"labels"),i=$d(e),o=E_(t,i);if(o)return o;var r,a;return $(i)?r=W_(n,i):(a=i==="auto"?KO(n):i,r=F_(n,a)),V_(t,i,{labels:r,labelCategoryInterval:a})}function jO(n,e){var t=B_(n,"ticks"),i=$d(e),o=E_(t,i);if(o)return o;var r,a;if((!e.get("show")||n.scale.isBlank())&&(r=[]),$(i))r=W_(n,i,!0);else if(i==="auto"){var s=z_(n,n.getLabelModel());a=s.labelCategoryInterval,r=F(s.labels,function(l){return l.tickValue})}else a=i,r=F_(n,a,!0);return V_(t,i,{ticks:r,tickCategoryInterval:a})}function qO(n){var e=n.scale.getTicks(),t=as(n);return{labels:F(e,function(i,o){return{level:i.level,formattedLabel:t(i,o),rawLabel:n.scale.getLabel(i),tickValue:i.value}})}}function B_(n,e){return ls(n)[e]||(ls(n)[e]=[])}function E_(n,e){for(var t=0;t<n.length;t++)if(n[t].key===e)return n[t].value}function V_(n,e,t){return n.push({key:e,value:t}),t}function KO(n){var e=ls(n).autoInterval;return e!=null?e:ls(n).autoInterval=n.calculateCategoryInterval()}function $O(n){var e=QO(n),t=as(n),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=n.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=r[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),d=0,p=0;l<=r[1];l+=s){var f=0,g=0,v=ua(t({value:l}),e.font,"center","top");f=v.width*1.3,g=v.height*1.3,d=Math.max(d,f,7),p=Math.max(p,g,7)}var y=d/h,m=p/c;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(y,m))),_=ls(n.model),w=n.getExtent(),b=_.lastAutoInterval,S=_.lastTickCount;return b!=null&&S!=null&&Math.abs(b-x)<=1&&Math.abs(S-a)<=1&&b>x&&_.axisExtent0===w[0]&&_.axisExtent1===w[1]?x=b:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=w[0],_.axisExtent1=w[1]),x}function QO(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function F_(n,e,t){var i=as(n),o=n.scale,r=o.getExtent(),a=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=r[0],h=o.count();u!==0&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=C_(n),d=a.get("showMinLabel")||c,p=a.get("showMaxLabel")||c;d&&u!==r[0]&&g(r[0]);for(var f=u;f<=r[1];f+=l)g(f);p&&f-l!==r[1]&&g(r[1]);function g(v){var y={value:v};s.push(t?v:{formattedLabel:i(y),rawLabel:o.getLabel(y),tickValue:v})}return s}function W_(n,e,t){var i=n.scale,o=as(n),r=[];return M(i.getTicks(),function(a){var s=i.getLabel(a),l=a.value;e(a.value,s)&&r.push(t?l:{formattedLabel:o(a),rawLabel:s,tickValue:l})}),r}var G_=[0,1],JO=function(){function n(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return n.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),o=Math.max(t[0],t[1]);return e>=i&&e<=o},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return Dc(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},n.prototype.dataToCoord=function(e,t){var i=this._extent,o=this.scale;return e=o.normalize(e),this.onBand&&o.type==="ordinal"&&(i=i.slice(),H_(i,o.count())),xt(e,G_,i,t)},n.prototype.coordToData=function(e,t){var i=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(i=i.slice(),H_(i,o.count()));var r=xt(e,i,G_,t);return this.scale.scale(r)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=XO(this,t),o=i.ticks,r=F(o,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=t.get("alignWithLabel");return tR(this,r,a,e.clamp),r},n.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 i=this.scale.getMinorTicks(t),o=F(i,function(r){return F(r,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return o},n.prototype.getViewLabels=function(){return UO(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var o=Math.abs(e[1]-e[0]);return Math.abs(o)/i},n.prototype.calculateCategoryInterval=function(){return $O(this)},n}();function H_(n,e){var t=n[1]-n[0],i=e,o=t/i/2;n[0]+=o,n[1]-=o}function tR(n,e,t,i){var o=e.length;if(!n.onBand||t||!o)return;var r=n.getExtent(),a,s;if(o===1)e[0].coord=r[0],a=e[1]={coord:r[1]};else{var l=e[o-1].tickValue-e[0].tickValue,u=(e[o-1].coord-e[0].coord)/l;M(e,function(p){p.coord-=u/2});var h=n.scale.getExtent();s=1+h[1]-e[o-1].tickValue,a={coord:e[o-1].coord+u*s},e.push(a)}var c=r[0]>r[1];d(e[0].coord,r[0])&&(i?e[0].coord=r[0]:e.shift()),i&&d(r[0],e[0].coord)&&e.unshift({coord:r[0]}),d(r[1],a.coord)&&(i?a.coord=r[1]:e.pop()),i&&d(a.coord,r[1])&&e.push({coord:r[1]});function d(p,f){return p=kt(p),f=kt(f),c?p>f:p<f}}const cn=JO;var us=Math.PI*2,So=Cn.CMD,eR=["top","right","bottom","left"];function nR(n,e,t,i,o){var r=t.width,a=t.height;switch(n){case"top":i.set(t.x+r/2,t.y-e),o.set(0,-1);break;case"bottom":i.set(t.x+r/2,t.y+a+e),o.set(0,1);break;case"left":i.set(t.x-e,t.y+a/2),o.set(-1,0);break;case"right":i.set(t.x+r+e,t.y+a/2),o.set(1,0);break}}function iR(n,e,t,i,o,r,a,s,l){a-=n,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*t+n,c=s*t+e;if(Math.abs(i-o)%us<1e-4)return l[0]=h,l[1]=c,u-t;if(r){var d=i;i=Zn(o),o=Zn(d)}else i=Zn(i),o=Zn(o);i>o&&(o+=us);var p=Math.atan2(s,a);if(p<0&&(p+=us),p>=i&&p<=o||p+us>=i&&p+us<=o)return l[0]=h,l[1]=c,u-t;var f=t*Math.cos(i)+n,g=t*Math.sin(i)+e,v=t*Math.cos(o)+n,y=t*Math.sin(o)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(y-s)*(y-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(x))}function Nu(n,e,t,i,o,r,a,s){var l=o-n,u=r-e,h=t-n,c=i-e,d=Math.sqrt(h*h+c*c);h/=d,c/=d;var p=l*h+u*c,f=p/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var g=a[0]=n+f*h,v=a[1]=e+f*c;return Math.sqrt((g-o)*(g-o)+(v-r)*(v-r))}function Y_(n,e,t,i,o,r,a){t<0&&(n=n+t,t=-t),i<0&&(e=e+i,i=-i);var s=n+t,l=e+i,u=a[0]=Math.min(Math.max(o,n),s),h=a[1]=Math.min(Math.max(r,e),l);return Math.sqrt((u-o)*(u-o)+(h-r)*(h-r))}var pn=[];function oR(n,e,t){var i=Y_(e.x,e.y,e.width,e.height,n.x,n.y,pn);return t.set(pn[0],pn[1]),i}function rR(n,e,t){for(var i=0,o=0,r=0,a=0,s,l,u=1/0,h=e.data,c=n.x,d=n.y,p=0;p<h.length;){var f=h[p++];p===1&&(i=h[p],o=h[p+1],r=i,a=o);var g=u;switch(f){case So.M:r=h[p++],a=h[p++],i=r,o=a;break;case So.L:g=Nu(i,o,h[p],h[p+1],c,d,pn,!0),i=h[p++],o=h[p++];break;case So.C:g=Ov(i,o,h[p++],h[p++],h[p++],h[p++],h[p],h[p+1],c,d,pn),i=h[p++],o=h[p++];break;case So.Q:g=Nv(i,o,h[p++],h[p++],h[p],h[p+1],c,d,pn),i=h[p++],o=h[p++];break;case So.A:var v=h[p++],y=h[p++],m=h[p++],x=h[p++],_=h[p++],w=h[p++];p+=1;var b=!!(1-h[p++]);s=Math.cos(_)*m+v,l=Math.sin(_)*x+y,p<=1&&(r=s,a=l);var S=(c-v)*x/m+v;g=iR(v,y,x,_,_+w,b,S,d,pn),i=Math.cos(_+w)*m+v,o=Math.sin(_+w)*x+y;break;case So.R:r=i=h[p++],a=o=h[p++];var T=h[p++],I=h[p++];g=Y_(r,a,T,I,c,d,pn);break;case So.Z:g=Nu(i,o,r,a,c,d,pn,!0),i=r,o=a;break}g<u&&(u=g,t.set(pn[0],pn[1]))}return u}var dn=new nt,wt=new nt,Rt=new nt,Rn=new nt,Nn=new nt;function aR(n,e){if(n){var t=n.getTextGuideLine(),i=n.getTextContent();if(i&&t){var o=n.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||eR,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=o.anchor,h=n.getComputedTransform(),c=h&&zi([],h),d=e.get("length2")||0;u&&Rt.copy(u);for(var p=0;p<a.length;p++){var f=a[p];nR(f,0,s,dn,Rn),nt.scaleAndAdd(wt,dn,Rn,d),wt.transform(c);var g=n.getBoundingRect(),v=u?u.distance(wt):n instanceof gt?rR(wt,n.path,Rt):oR(wt,g,Rt);v<l&&(l=v,wt.transform(h),Rt.transform(h),Rt.toArray(r[0]),wt.toArray(r[1]),dn.toArray(r[2]))}U_(r,e.get("minTurnAngle")),t.setShape({points:r})}}}var zu=[],ge=new nt;function U_(n,e){if(e<=180&&e>0){e=e/180*Math.PI,dn.fromArray(n[0]),wt.fromArray(n[1]),Rt.fromArray(n[2]),nt.sub(Rn,dn,wt),nt.sub(Nn,Rt,wt);var t=Rn.len(),i=Nn.len();if(!(t<.001||i<.001)){Rn.scale(1/t),Nn.scale(1/i);var o=Rn.dot(Nn),r=Math.cos(e);if(r<o){var a=Nu(wt.x,wt.y,Rt.x,Rt.y,dn.x,dn.y,zu,!1);ge.fromArray(zu),ge.scaleAndAdd(Nn,a/Math.tan(Math.PI-e));var s=Rt.x!==wt.x?(ge.x-wt.x)/(Rt.x-wt.x):(ge.y-wt.y)/(Rt.y-wt.y);if(isNaN(s))return;s<0?nt.copy(ge,wt):s>1&&nt.copy(ge,Rt),ge.toArray(n[1])}}}}function sR(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,dn.fromArray(n[0]),wt.fromArray(n[1]),Rt.fromArray(n[2]),nt.sub(Rn,wt,dn),nt.sub(Nn,Rt,wt);var i=Rn.len(),o=Nn.len();if(!(i<.001||o<.001)){Rn.scale(1/i),Nn.scale(1/o);var r=Rn.dot(e),a=Math.cos(t);if(r<a){var s=Nu(wt.x,wt.y,Rt.x,Rt.y,dn.x,dn.y,zu,!1);ge.fromArray(zu);var l=Math.PI/2,u=Math.acos(Nn.dot(e)),h=l+u-t;if(h>=l)nt.copy(ge,Rt);else{ge.scaleAndAdd(Nn,s/Math.tan(Math.PI/2-h));var c=Rt.x!==wt.x?(ge.x-wt.x)/(Rt.x-wt.x):(ge.y-wt.y)/(Rt.y-wt.y);if(isNaN(c))return;c<0?nt.copy(ge,wt):c>1&&nt.copy(ge,Rt)}ge.toArray(n[1])}}}}function ef(n,e,t,i){var o=t==="normal",r=o?n:n.ensureState(t);r.ignore=e;var a=i.get("smooth");a&&a===!0&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();o?n.useStyle(s):r.style=s}function lR(n,e){var t=e.smooth,i=e.points;if(i)if(n.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var o=Yr(i[0],i[1]),r=Yr(i[1],i[2]);if(!o||!r){n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]);return}var a=Math.min(o,r)*t,s=Ur([],i[1],i[0],a/o),l=Ur([],i[1],i[2],a/r),u=Ur([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h<i.length;h++)n.lineTo(i[h][0],i[h][1])}function X_(n,e,t){var i=n.getTextGuideLine(),o=n.getTextContent();if(!o){i&&n.removeTextGuideLine();return}for(var r=e.normal,a=r.get("show"),s=o.ignore,l=0;l<ba.length;l++){var u=ba[l],h=e[u],c=u==="normal";if(h){var d=h.get("show"),p=c?s:J(o.states[u]&&o.states[u].ignore,s);if(p||!J(d,a)){var f=c?i:i&&i.states[u];f&&(f.ignore=!0),i&&ef(i,!0,u,h);continue}i||(i=new Be,n.setTextGuideLine(i),!c&&(s||!a)&&ef(i,!0,"normal",e.normal),n.stateProxy&&(i.stateProxy=n.stateProxy)),ef(i,!1,u,h)}}if(i){K(i.style,t),i.style.fill=null;var g=r.get("showAbove"),v=n.textGuideLineConfig=n.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=lR}}function Z_(n,e){e=e||"labelLine";for(var t={normal:n.getModel(e)},i=0;i<Te.length;i++){var o=Te[i];t[o]=n.getModel([o,e])}return t}function j_(n){for(var e=[],t=0;t<n.length;t++){var i=n[t];if(!i.defaultAttr.ignore){var o=i.label,r=o.getComputedTransform(),a=o.getBoundingRect(),s=!r||r[1]<1e-5&&r[2]<1e-5,l=o.style.margin||0,u=a.clone();u.applyTransform(r),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=s?new Ll(a,r):null;e.push({label:o,labelLine:i.labelLine,rect:u,localRect:a,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:r})}}return e}function q_(n,e,t,i,o,r){var a=n.length;if(a<2)return;n.sort(function(T,I){return T.rect[e]-I.rect[e]});for(var s=0,l,u=!1,h=0,c=0;c<a;c++){var d=n[c],p=d.rect;l=p[e]-s,l<0&&(p[e]-=l,d.label[e]-=l,u=!0);var f=Math.max(-l,0);h+=f,s=p[e]+p[t]}h>0&&r&&w(-h/a,0,a);var g=n[0],v=n[a-1],y,m;x(),y<0&&b(-y,.8),m<0&&b(m,.8),x(),_(y,m,1),_(m,y,-1),x(),y<0&&S(-y),m<0&&S(m);function x(){y=g.rect[e]-i,m=o-v.rect[e]-v.rect[t]}function _(T,I,C){if(T<0){var A=Math.min(I,-T);if(A>0){w(A*C,0,a);var D=A+T;D<0&&b(-D*C,1)}else b(-T*C,1)}}function w(T,I,C){T!==0&&(u=!0);for(var A=I;A<C;A++){var D=n[A],k=D.rect;k[e]+=T,D.label[e]+=T}}function b(T,I){for(var C=[],A=0,D=1;D<a;D++){var k=n[D-1].rect,P=Math.max(n[D].rect[e]-k[e]-k[t],0);C.push(P),A+=P}if(A){var L=Math.min(Math.abs(T)/A,I);if(T>0)for(var D=0;D<a-1;D++){var O=C[D]*L;w(O,0,D+1)}else for(var D=a-1;D>0;D--){var O=C[D-1]*L;w(-O,D,a)}}}function S(T){var I=T<0?-1:1;T=Math.abs(T);for(var C=Math.ceil(T/(a-1)),A=0;A<a-1;A++)if(I>0?w(C,0,A+1):w(-C,a-A-1,a),T-=C,T<=0)return}return u}function uR(n,e,t,i){return q_(n,"x","width",e,t,i)}function K_(n,e,t,i){return q_(n,"y","height",e,t,i)}function $_(n){var e=[];n.sort(function(g,v){return v.priority-g.priority});var t=new ut(0,0,0,0);function i(g){if(!g.ignore){var v=g.ensureState("emphasis");v.ignore==null&&(v.ignore=!1)}g.ignore=!0}for(var o=0;o<n.length;o++){var r=n[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,h=r.labelLine;t.copy(r.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var c=r.obb,d=!1,p=0;p<e.length;p++){var f=e[p];if(t.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new Ll(f.localRect,f.transform)),c||(c=new Ll(s,l)),c.intersect(f.obb)){d=!0;break}}}d?(i(u),h&&i(h)):(u.attr("ignore",r.defaultAttr.ignore),h&&h.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}var hR=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return os(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new it,o=Ft("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(o),o.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=r==="none"?"circle":r,l=t.itemHeight*.8,u=Ft(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var h=t.iconRotate==="inherit"?a:t.iconRotate||0;return u.rotation=h*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),i},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}(Ce);const cR=hR;function hs(n,e){var t=n.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var o=yr(n,e,t[0]);return o!=null?o+"":null}else if(i){for(var r=[],a=0;a<t.length;a++)r.push(yr(n,e,t[a]));return r.join(" ")}}function Q_(n,e){var t=n.mapDimensionsAll("defaultedLabel");if(!V(e))return e+"";for(var i=[],o=0;o<t.length;o++){var r=n.getDimensionIndex(t[o]);r>=0&&i.push(e[r])}return i.join(" ")}var pR=function(n){z(e,n);function e(t,i,o,r){var a=n.call(this)||this;return a.updateData(t,i,o,r),a}return e.prototype._createSymbol=function(t,i,o,r,a){this.removeAll();var s=Ft(t,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),s.drift=dR,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(){oo(this.childAt(0))},e.prototype.downplay=function(){ro(this.childAt(0))},e.prototype.setZ=function(t,i){var o=this.childAt(0);o.zlevel=t,o.z=i},e.prototype.setDraggable=function(t,i){var o=this.childAt(0);o.draggable=t,o.cursor=!i&&t?"move":o.cursor},e.prototype.updateData=function(t,i,o,r){this.silent=!1;var a=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=a!==this._symbolType,h=r&&r.disableAnimation;if(u){var c=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,t,i,l,c)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};h?d.attr(p):Tt(d,p,s,i),or(d)}if(this._updateCommon(t,i,l,o,r),u){var d=this.childAt(0);if(!h){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Yt(d,p,s,i)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,o,r,a){var s=this.childAt(0),l=t.hostModel,u,h,c,d,p,f,g,v,y;if(r&&(u=r.emphasisItemStyle,h=r.blurItemStyle,c=r.selectItemStyle,d=r.focus,p=r.blurScope,g=r.labelStatesModels,v=r.hoverScale,y=r.cursorStyle,f=r.emphasisDisabled),!r||t.hasItemOption){var m=r&&r.itemModel?r.itemModel:t.getItemModel(i),x=m.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),h=m.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),p=x.get("blurScope"),f=x.get("disabled"),g=kn(m),v=x.getShallow("scale"),y=m.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var w=ja(t.getItemVisual(i,"symbolOffset"),o);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=t.getItemVisual(i,"style"),S=b.fill;if(s instanceof ee){var T=s.style;s.useStyle(N({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(N({},b)):s.useStyle(b),s.style.decal=null,s.setColor(S,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=t.getItemVisual(i,"liftZ"),C=this._z2;I!=null?C==null&&(this._z2=s.z2,s.z2+=I):C!=null&&(s.z2=C,this._z2=null);var A=a&&a.useNameLabel;Dn(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:D,inheritColor:S,defaultOpacity:b.opacity});function D(L){return A?t.getName(L):hs(t,L)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=h;var P=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;k.scaleX=this._sizeX*P,k.scaleY=this._sizeY*P,this.setSymbolScale(1),nn(this,d,p,f)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,o){var r=this.childAt(0),a=rt(this).dataIndex,s=o&&o.animation;if(this.silent=r.silent=!0,o&&o.fadeLabel){var l=r.getTextContent();l&&ir(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){r.removeTextContent()}})}else r.removeTextContent();ir(r,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return su(t.getItemVisual(i,"symbolSize"))},e}(it);function dR(n,e){this.parent.drift(n,e)}const Bu=pR;function nf(n,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function J_(n){return n!=null&&!j(n)&&(n={isIgnore:n}),n||{}}function tb(n){var e=n.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:kn(e),cursorStyle:e.get("cursor")}}var fR=function(){function n(e){this.group=new it,this._SymbolCtor=e||Bu}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=J_(t);var i=this.group,o=e.hostModel,r=this._data,a=this._SymbolCtor,s=t.disableAnimation,l=tb(e),u={disableAnimation:s},h=t.getSymbolPoint||function(c){return e.getItemLayout(c)};r||i.removeAll(),e.diff(r).add(function(c){var d=h(c);if(nf(e,d,c,t)){var p=new a(e,c,l,u);p.setPosition(d),e.setItemGraphicEl(c,p),i.add(p)}}).update(function(c,d){var p=r.getItemGraphicEl(d),f=h(c);if(!nf(e,f,c,t)){i.remove(p);return}var g=e.getItemVisual(c,"symbol")||"circle",v=p&&p.getSymbolType&&p.getSymbolType();if(!p||v&&v!==g)i.remove(p),p=new a(e,c,l,u),p.setPosition(f);else{p.updateData(e,c,l,u);var y={x:f[0],y:f[1]};s?p.attr(y):Tt(p,y,o)}i.add(p),e.setItemGraphicEl(c,p)}).remove(function(c){var d=r.getItemGraphicEl(c);d&&d.fadeOut(function(){i.remove(d)},o)}).execute(),this._getSymbolPoint=h,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,o){var r=e._getSymbolPoint(o);i.setPosition(r),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=tb(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=J_(i);function o(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var r=e.start;r<e.end;r++){var a=t.getItemLayout(r);if(nf(t,a,r,i)){var s=new this._SymbolCtor(t,r,this._seriesScope);s.traverse(o),s.setPosition(a),this.group.add(s),t.setItemGraphicEl(r,s),this._progressiveEls.push(s)}}},n.prototype.eachRendered=function(e){Pa(this._progressiveEls||this.group,e)},n.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(o){o.fadeOut(function(){t.remove(o)},i.hostModel)}):t.removeAll()},n}();const of=fR;function eb(n,e,t){var i=n.getBaseAxis(),o=n.getOtherAxis(i),r=gR(o,t),a=i.dim,s=o.dim,l=e.mapDimension(s),u=e.mapDimension(a),h=s==="x"||s==="radius"?1:0,c=F(n.dimensions,function(f){return e.mapDimension(f)}),d=!1,p=e.getCalculationInfo("stackResultDimension");return Ti(e,c[0])&&(d=!0,c[0]=p),Ti(e,c[1])&&(d=!0,c[1]=p),{dataDimsForPoint:c,valueStart:r,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function gR(n,e){var t=0,i=n.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:vt(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function nb(n,e,t,i){var o=NaN;n.stacked&&(o=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=n.valueStart);var r=n.baseDataOffset,a=[];return a[r]=t.get(n.baseDim,i),a[1-r]=o,e.dataToPoint(a)}function vR(n,e){var t=[];return e.diff(n).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,o){t.push({cmd:"=",idx:o,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function yR(n,e,t,i,o,r,a,s){for(var l=vR(n,e),u=[],h=[],c=[],d=[],p=[],f=[],g=[],v=eb(o,e,a),y=n.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],w=!0,b=void 0,S=void 0;switch(_.cmd){case"=":b=_.idx*2,S=_.idx1*2;var T=y[b],I=y[b+1],C=m[S],A=m[S+1];(isNaN(T)||isNaN(I))&&(T=C,I=A),u.push(T,I),h.push(C,A),c.push(t[b],t[b+1]),d.push(i[S],i[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var D=_.idx,k=v.dataDimsForPoint,P=o.dataToPoint([e.get(k[0],D),e.get(k[1],D)]);S=D*2,u.push(P[0],P[1]),h.push(m[S],m[S+1]);var L=nb(v,o,e,D);c.push(L[0],L[1]),d.push(i[S],i[S+1]),g.push(e.getRawIndex(D));break;case"-":w=!1}w&&(p.push(_),f.push(f.length))}f.sort(function(St,mt){return g[St]-g[mt]});for(var O=u.length,E=On(O),R=On(O),B=On(O),W=On(O),Z=[],x=0;x<f.length;x++){var Q=f[x],ot=x*2,st=Q*2;E[ot]=u[st],E[ot+1]=u[st+1],R[ot]=h[st],R[ot+1]=h[st+1],B[ot]=c[st],B[ot+1]=c[st+1],W[ot]=d[st],W[ot+1]=d[st+1],Z[x]=p[Q]}return{current:E,next:R,stackedOnCurrent:B,stackedOnNext:W,status:Z}}var Ii=Math.min,Ai=Math.max;function Mo(n,e){return isNaN(n)||isNaN(e)}function rf(n,e,t,i,o,r,a,s,l){for(var u,h,c,d,p,f,g=t,v=0;v<i;v++){var y=e[g*2],m=e[g*2+1];if(g>=o||g<0)break;if(Mo(y,m)){if(l){g+=r;continue}break}if(g===t)n[r>0?"moveTo":"lineTo"](y,m),c=y,d=m;else{var x=y-u,_=m-h;if(x*x+_*_<.5){g+=r;continue}if(a>0){for(var w=g+r,b=e[w*2],S=e[w*2+1];b===y&&S===m&&v<i;)v++,w+=r,g+=r,b=e[w*2],S=e[w*2+1],y=e[g*2],m=e[g*2+1],x=y-u,_=m-h;var T=v+1;if(l)for(;Mo(b,S)&&T<i;)T++,w+=r,b=e[w*2],S=e[w*2+1];var I=.5,C=0,A=0,D=void 0,k=void 0;if(T>=i||Mo(b,S))p=y,f=m;else{C=b-u,A=S-h;var P=y-u,L=b-y,O=m-h,E=S-m,R=void 0,B=void 0;if(s==="x"){R=Math.abs(P),B=Math.abs(L);var W=C>0?1:-1;p=y-W*R*a,f=m,D=y+W*B*a,k=m}else if(s==="y"){R=Math.abs(O),B=Math.abs(E);var Z=A>0?1:-1;p=y,f=m-Z*R*a,D=y,k=m+Z*B*a}else R=Math.sqrt(P*P+O*O),B=Math.sqrt(L*L+E*E),I=B/(B+R),p=y-C*a*(1-I),f=m-A*a*(1-I),D=y+C*a*I,k=m+A*a*I,D=Ii(D,Ai(b,y)),k=Ii(k,Ai(S,m)),D=Ai(D,Ii(b,y)),k=Ai(k,Ii(S,m)),C=D-y,A=k-m,p=y-C*R/B,f=m-A*R/B,p=Ii(p,Ai(u,y)),f=Ii(f,Ai(h,m)),p=Ai(p,Ii(u,y)),f=Ai(f,Ii(h,m)),C=y-p,A=m-f,D=y+C*B/R,k=m+A*B/R}n.bezierCurveTo(c,d,p,f,y,m),c=D,d=k}else n.lineTo(y,m)}u=y,h=m,g+=r}return v}var ib=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),mR=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ib},e.prototype.buildPath=function(t,i){var o=i.points,r=0,a=o.length/2;if(i.connectNulls){for(;a>0&&Mo(o[a*2-2],o[a*2-1]);a--);for(;r<a&&Mo(o[r*2],o[r*2+1]);r++);}for(;r<a;)r+=rf(t,o,r,a,a,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var o=this.path,r=o.data,a=Cn.CMD,s,l,u=i==="x",h=[],c=0;c<r.length;){var d=r[c++],p=void 0,f=void 0,g=void 0,v=void 0,y=void 0,m=void 0,x=void 0;switch(d){case a.M:s=r[c++],l=r[c++];break;case a.L:if(p=r[c++],f=r[c++],x=u?(t-s)/(p-s):(t-l)/(f-l),x<=1&&x>=0){var _=u?(f-l)*x+l:(p-s)*x+s;return u?[t,_]:[_,t]}s=p,l=f;break;case a.C:p=r[c++],f=r[c++],g=r[c++],v=r[c++],y=r[c++],m=r[c++];var w=u?Xs(s,p,g,y,t,h):Xs(l,f,v,m,t,h);if(w>0)for(var b=0;b<w;b++){var S=h[b];if(S<=1&&S>=0){var _=u?Vt(l,f,v,m,S):Vt(s,p,g,y,S);return u?[t,_]:[_,t]}}s=y,l=m;break}}},e}(gt),xR=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(ib),ob=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new xR},e.prototype.buildPath=function(t,i){var o=i.points,r=i.stackedOnPoints,a=0,s=o.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Mo(o[s*2-2],o[s*2-1]);s--);for(;a<s&&Mo(o[a*2],o[a*2+1]);a++);}for(;a<s;){var u=rf(t,o,a,s,s,1,i.smooth,l,i.connectNulls);rf(t,r,a+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),a+=u+1,t.closePath()}},e}(gt);function rb(n,e,t,i,o){var r=n.getArea(),a=r.x,s=r.y,l=r.width,u=r.height,h=t.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var c=new yt({shape:{x:a,y:s,width:l,height:u}});if(e){var d=n.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=$(o)?function(v){o(v,c)}:null;Yt(c,{shape:{width:l,height:u,x:a,y:s}},t,null,i,g)}return c}function ab(n,e,t){var i=n.getArea(),o=kt(i.r0,1),r=kt(i.r,1),a=new ze({shape:{cx:kt(n.cx,1),cy:kt(n.cy,1),r0:o,r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=n.getBaseAxis().dim==="angle";s?a.shape.endAngle=i.startAngle:a.shape.r=o,Yt(a,{shape:{endAngle:i.endAngle,r}},t)}return a}function af(n,e,t,i,o){if(n){if(n.type==="polar")return ab(n,e,t);if(n.type==="cartesian2d")return rb(n,e,t,i,o)}else return null;return null}function Eu(n,e){return n.type===e}function sb(n,e){if(n.length===e.length){for(var t=0;t<n.length;t++)if(n[t]!==e[t])return;return!0}}function lb(n){for(var e=1/0,t=1/0,i=-1/0,o=-1/0,r=0;r<n.length;){var a=n[r++],s=n[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(t=Math.min(s,t),o=Math.max(s,o))}return[[e,t],[i,o]]}function ub(n,e){var t=lb(n),i=t[0],o=t[1],r=lb(e),a=r[0],s=r[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function hb(n){return vt(n)?n:n?.5:0}function _R(n,e,t){if(!t.valueDim)return[];for(var i=e.count(),o=On(i*2),r=0;r<i;r++){var a=nb(t,n,e,r);o[r*2]=a[0],o[r*2+1]=a[1]}return o}function Di(n,e,t,i){var o=e.getBaseAxis(),r=o.dim==="x"||o.dim==="radius"?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;s<n.length;s+=2)!isNaN(n[s])&&!isNaN(n[s+1])&&c.push(n[s],n[s+1]);n=c}for(s=0;s<n.length-2;s+=2)switch(h[0]=n[s+2],h[1]=n[s+3],u[0]=n[s],u[1]=n[s+1],a.push(u[0],u[1]),t){case"end":l[r]=h[r],l[1-r]=u[1-r],a.push(l[0],l[1]);break;case"middle":var d=(u[r]+h[r])/2,p=[];l[r]=p[r]=d,l[1-r]=u[1-r],p[1-r]=h[1-r],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[r]=u[r],l[1-r]=h[1-r],a.push(l[0],l[1])}return a.push(n[s++],n[s++]),a}function bR(n,e){var t=[],i=n.length,o,r;function a(h,c,d){var p=h.coord,f=(d-p)/(c.coord-p),g=ec(f,[h.color,c.color]);return{coord:d,color:g}}for(var s=0;s<i;s++){var l=n[s],u=l.coord;if(u<0)o=l;else if(u>e){r?t.push(a(r,l,e)):o&&t.push(a(o,l,0),a(o,l,e));break}else o&&(t.push(a(o,l,0)),o=null),t.push(l),r=l}return t}function wR(n,e,t){var i=n.getVisual("visualMeta");if(!(!i||!i.length||!n.count())&&e.type==="cartesian2d"){for(var o,r,a=i.length-1;a>=0;a--){var s=n.getDimensionInfo(i[a].dimension);if(o=s&&s.coordDim,o==="x"||o==="y"){r=i[a];break}}if(r){var l=e.getAxis(o),u=F(r.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),h=u.length,c=r.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var d=bR(u,o==="x"?t.getWidth():t.getHeight()),p=d.length;if(!p&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=10,g=d[0].coord-f,v=d[p-1].coord+f,y=v-g;if(y<.001)return"transparent";M(d,function(x){x.offset=(x.coord-g)/y}),d.push({offset:p?d[p-1].offset:.5,color:c[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:c[0]||"transparent"});var m=new Aa(0,0,0,0,d,!0);return m[o]=g,m[o+"2"]=v,m}}}function SR(n,e,t){var i=n.get("showAllSymbol"),o=i==="auto";if(!(i&&!o)){var r=t.getAxesByScale("ordinal")[0];if(r&&!(o&&MR(r,e))){var a=e.mapDimension(r.dim),s={};return M(r.getViewLabels(),function(l){var u=r.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(a,l))}}}}function MR(n,e){var t=n.getExtent(),i=Math.abs(t[1]-t[0])/n.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(Bu.getSymbolSize(e,a)[n.isHorizontal()?1:0]*1.5>i)return!1;return!0}function TR(n,e){return isNaN(n)||isNaN(e)}function CR(n){for(var e=n.length/2;e>0&&TR(n[e*2-2],n[e*2-1]);e--);return e-1}function cb(n,e){return[n[e*2],n[e*2+1]]}function IR(n,e,t){for(var i=n.length/2,o=t==="x"?0:1,r,a,s=0,l=-1,u=0;u<i;u++)if(a=n[u*2+o],!(isNaN(a)||isNaN(n[u*2+1-o]))){if(u===0){r=a;continue}if(r<=e&&a>=e||r>=e&&a<=e){l=u;break}s=u,r=a}return{range:[s,l],t:(e-r)/(a-r)}}function pb(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e<Te.length;e++)if(n.get([Te[e],"endLabel","show"]))return!0;return!1}function sf(n,e,t,i){if(Eu(e,"cartesian2d")){var o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=pb(i)?function(p,f){n._endLabelOnDuring(p,f,a,s,r,o,e)}:null,u=e.getBaseAxis().isHorizontal(),h=rb(e,t,i,function(){var p=n._endLabel;p&&t&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=h.shape,d=Math.max(c.width,c.height);u?(c.y-=d,c.height+=d*2):(c.x-=d,c.width+=d*2)}return l&&l(1,h),h}else return ab(e,t,i)}function AR(n,e){var t=e.getBaseAxis(),i=t.isHorizontal(),o=t.inverse,r=i?o?"right":"left":"center",a=i?"middle":o?"top":"bottom";return{normal:{align:n.get("align")||r,verticalAlign:n.get("verticalAlign")||a}}}var DR=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(){var t=new it,i=new of;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t},e.prototype.render=function(t,i,o){var r=this,a=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),h=t.getModel("areaStyle"),c=l.getLayout("points")||[],d=a.type==="polar",p=this._coordSys,f=this._symbolDraw,g=this._polyline,v=this._polygon,y=this._lineGroup,m=!i.ssr&&t.get("animation"),x=!h.isEmpty(),_=h.get("origin"),w=eb(a,l,_),b=x&&_R(a,l,w),S=t.get("showSymbol"),T=t.get("connectNulls"),I=S&&!d&&SR(t,l,a),C=this._data;C&&C.eachItemGraphicEl(function(mt,Qt){mt.__temp&&(s.remove(mt),C.setItemGraphicEl(Qt,null))}),S||f.remove(),s.add(y);var A=d?!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 k=wR(l,a,o)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&p.type===a.type&&A===this._step))S&&f.updateData(l,{isIgnore:I,clipShape:D,disableAnimation:!0,getSymbolPoint:function(mt){return[c[mt*2],c[mt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,a,D),A&&(c=Di(c,a,A,T),b&&(b=Di(b,a,A,T))),g=this._newPolyline(c),x?v=this._newPolygon(c,b):v&&(y.remove(v),v=this._polygon=null),d||this._initOrUpdateEndLabel(t,a,po(k)),y.setClipPath(sf(this,a,!0,t));else{x&&!v?v=this._newPolygon(c,b):v&&!x&&(y.remove(v),v=this._polygon=null),d||this._initOrUpdateEndLabel(t,a,po(k));var P=y.getClipPath();if(P){var L=sf(this,a,!1,t);Yt(P,{shape:L.shape},t)}else y.setClipPath(sf(this,a,!0,t));S&&f.updateData(l,{isIgnore:I,clipShape:D,disableAnimation:!0,getSymbolPoint:function(mt){return[c[mt*2],c[mt*2+1]]}}),(!sb(this._stackedOnPoints,b)||!sb(this._points,c))&&(m?this._doUpdateAnimation(l,b,a,o,A,_,T):(A&&(c=Di(c,a,A,T),b&&(b=Di(b,a,A,T))),g.setShape({points:c}),v&&v.setShape({points:c,stackedOnPoints:b})))}var O=t.getModel("emphasis"),E=O.get("focus"),R=O.get("blurScope"),B=O.get("disabled");if(g.useStyle(K(u.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Kn(g,t,"lineStyle"),g.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var W=g.getState("emphasis").style;W.lineWidth=+g.style.lineWidth+1}rt(g).seriesIndex=t.seriesIndex,nn(g,E,R,B);var Z=hb(t.get("smooth")),Q=t.get("smoothMonotone");if(g.setShape({smooth:Z,smoothMonotone:Q,connectNulls:T}),v){var ot=l.getCalculationInfo("stackedOnSeries"),st=0;v.useStyle(K(h.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ot&&(st=hb(ot.get("smooth"))),v.setShape({smooth:Z,stackedOnSmooth:st,smoothMonotone:Q,connectNulls:T}),Kn(v,t,"areaStyle"),rt(v).seriesIndex=t.seriesIndex,nn(v,E,R,B)}var St=function(mt){r._changePolyState(mt)};l.eachItemGraphicEl(function(mt){mt&&(mt.onHoverStateChange=St)}),this._polyline.onHoverStateChange=St,this._data=l,this._coordSys=a,this._stackedOnPoints=b,this._points=c,this._step=A,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,g),v&&this.packEventData(t,v))},e.prototype.packEventData=function(t,i){rt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,o,r){var a=t.getData(),s=Ui(a,r);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var h=l[s*2],c=l[s*2+1];if(isNaN(h)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,c))return;var d=t.get("zlevel")||0,p=t.get("z")||0;u=new Bu(a,s),u.x=h,u.y=c,u.setZ(d,p);var f=u.getSymbolPath().getTextContent();f&&(f.zlevel=d,f.z=p,f.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else oe.prototype.highlight.call(this,t,i,o,r)},e.prototype.downplay=function(t,i,o,r){var a=t.getData(),s=Ui(a,r);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else oe.prototype.downplay.call(this,t,i,o,r)},e.prototype._changePolyState=function(t){var i=this._polygon;_l(this._polyline,t),i&&_l(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new mR({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new ob({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},e.prototype._initSymbolLabelAnimation=function(t,i,o){var r,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(r=s.isHorizontal(),a=!1):i.type==="polar"&&(r=s.dim==="angle",a=!0);var u=t.hostModel,h=u.get("animationDuration");$(h)&&(h=h(null));var c=u.get("animationDelay")||0,d=$(c)?c(null):c;t.eachItemGraphicEl(function(p,f){var g=p;if(g){var v=[p.x,p.y],y=void 0,m=void 0,x=void 0;if(o)if(a){var _=o,w=i.pointToCoord(v);r?(y=_.startAngle,m=_.endAngle,x=-w[1]/180*Math.PI):(y=_.r0,m=_.r,x=w[0])}else{var b=o;r?(y=b.x,m=b.x+b.width,x=p.x):(y=b.y+b.height,m=b.y,x=p.y)}var S=m===y?0:(x-y)/(m-y);l&&(S=1-S);var T=$(c)?c(f):h*S+d,I=g.getSymbolPath(),C=I.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:T}),I.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,o){var r=t.getModel("endLabel");if(pb(t)){var a=t.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=CR(l);h>=0&&(Dn(s,kn(t,"endLabel"),{inheritColor:o,labelFetcher:t,labelDataIndex:h,defaultText:function(c,d,p){return p!=null?Q_(a,p):hs(a,c)},enableTextSetter:!0},AR(r,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,o,r,a,s,l){var u=this._endLabel,h=this._polyline;if(u){t<1&&r.originalX==null&&(r.originalX=u.x,r.originalY=u.y);var c=o.getLayout("points"),d=o.hostModel,p=d.get("connectNulls"),f=s.get("precision"),g=s.get("distance")||0,v=l.getBaseAxis(),y=v.isHorizontal(),m=v.inverse,x=i.shape,_=m?y?x.x:x.y+x.height:y?x.x+x.width:x.y,w=(y?g:0)*(m?-1:1),b=(y?0:-g)*(m?-1:1),S=y?"x":"y",T=IR(c,_,S),I=T.range,C=I[1]-I[0],A=void 0;if(C>=1){if(C>1&&!p){var D=cb(c,I[0]);u.attr({x:D[0]+w,y:D[1]+b}),a&&(A=d.getRawValue(I[0]))}else{var D=h.getPointOn(_,S);D&&u.attr({x:D[0]+w,y:D[1]+b});var k=d.getRawValue(I[0]),P=d.getRawValue(I[1]);a&&(A=Ay(o,f,k,P,T.t))}r.lastFrameIndex=I[0]}else{var L=t===1||r.lastFrameIndex>0?I[0]:0,D=cb(c,L);a&&(A=d.getRawValue(L)),u.attr({x:D[0]+w,y:D[1]+b})}if(a){var O=lr(u);typeof O.setLabelText=="function"&&O.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(t,i,o,r,a,s,l){var u=this._polyline,h=this._polygon,c=t.hostModel,d=yR(this._data,t,this._stackedOnPoints,i,this._coordSys,o,this._valueOrigin),p=d.current,f=d.stackedOnCurrent,g=d.next,v=d.stackedOnNext;if(a&&(p=Di(d.current,o,a,l),f=Di(d.stackedOnCurrent,o,a,l),g=Di(d.next,o,a,l),v=Di(d.stackedOnNext,o,a,l)),ub(p,g)>3e3||h&&ub(f,v)>3e3){u.stopAnimation(),u.setShape({points:g}),h&&(h.stopAnimation(),h.setShape({points:g,stackedOnPoints:v}));return}u.shape.__points=d.current,u.shape.points=p;var y={shape:{points:g}};d.current!==p&&(y.shape.__points=d.next),u.stopAnimation(),Tt(u,y,c),h&&(h.setShape({points:p,stackedOnPoints:f}),h.stopAnimation(),Tt(h,{shape:{stackedOnPoints:v}},c),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var m=[],x=d.status,_=0;_<x.length;_++){var w=x[_].cmd;if(w==="="){var b=t.getItemGraphicEl(x[_].idx1);b&&m.push({el:b,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){h&&h.dirtyShape();for(var S=u.shape.__points,T=0;T<m.length;T++){var I=m[T].el,C=m[T].ptIdx*2;I.x=S[C],I.y=S[C+1],I.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,o=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),o&&o.eachItemGraphicEl(function(r,a){r.__temp&&(i.remove(r),o.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(oe);const kR=DR;function Vu(n,e){return{seriesType:n,plan:tu(),reset:function(t){var i=t.getData(),o=t.coordinateSystem,r=t.pipelineContext,a=e||r.large;if(o){var s=F(o.dimensions,function(p){return i.mapDimension(p)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Ti(i,s[0])&&(s[0]=u),Ti(i,s[1])&&(s[1]=u);var h=i.getStore(),c=i.getDimensionIndex(s[0]),d=i.getDimensionIndex(s[1]);return l&&{progress:function(p,f){for(var g=p.end-p.start,v=a&&On(g*l),y=[],m=[],x=p.start,_=0;x<p.end;x++){var w=void 0;if(l===1){var b=h.get(c,x);w=o.dataToPoint(b,null,m)}else y[0]=h.get(c,x),y[1]=h.get(d,x),w=o.dataToPoint(y,null,m);a?(v[_++]=w[0],v[_++]=w[1]):f.setItemLayout(x,w.slice())}a&&f.setLayout("points",v)}}}}}}var PR={average:function(n){for(var e=0,t=0,i=0;i<n.length;i++)isNaN(n[i])||(e+=n[i],t++);return t===0?NaN:e/t},sum:function(n){for(var e=0,t=0;t<n.length;t++)e+=n[t]||0;return e},max:function(n){for(var e=-1/0,t=0;t<n.length;t++)n[t]>e&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t<n.length;t++)n[t]<e&&(e=n[t]);return isFinite(e)?e:NaN},minmax:function(n){for(var e=-1/0,t=-1/0,i=0;i<n.length;i++){var o=n[i],r=Math.abs(o);r>e&&(e=r,t=o)}return isFinite(t)?t:NaN},nearest:function(n){return n[0]}},LR=function(n){return Math.round(n.length/2)};function db(n){return{seriesType:n,reset:function(e,t,i){var o=e.getData(),r=e.get("sampling"),a=e.coordinateSystem,s=o.count();if(s>10&&a.type==="cartesian2d"&&r){var l=a.getBaseAxis(),u=a.getOtherAxis(l),h=l.getExtent(),c=i.getDevicePixelRatio(),d=Math.abs(h[1]-h[0])*(c||1),p=Math.round(s/d);if(isFinite(p)&&p>1){r==="lttb"&&e.setData(o.lttbDownSample(o.mapDimension(u.dim),1/p));var f=void 0;G(r)?f=PR[r]:$(r)&&(f=r),f&&e.setData(o.downSample(o.mapDimension(u.dim),1/p,f,LR))}}}}}function OR(n){n.registerChartView(kR),n.registerSeriesModel(cR),n.registerLayout(Vu("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,db("line"))}var fb=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return os(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,o){var r=this.coordinateSystem;if(r&&r.clampData){var a=r.clampData(t),s=r.dataToPoint(a);if(o)M(r.getAxes(),function(d,p){if(d.type==="category"&&i!=null){var f=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),v=a[p],y=i[p]==="x1"||i[p]==="y1";if(y&&!g&&(v+=1),f.length<2)return;if(f.length===2){s[p]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var m=void 0,x=void 0,_=1,w=0;w<f.length;w++){var b=f[w].coord,S=w===f.length-1?f[w-1].tickValue+_:f[w].tickValue;if(S===v){x=b;break}else if(S<v)m=b;else if(m!=null&&S>v){x=(b+m)/2;break}w===1&&(_=S-f[0].tickValue)}x==null&&(m?m&&(x=f[f.length-1].coord):x=f[0].coord),s[p]=d.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),h=l.getLayout("size"),c=r.getBaseAxis().isHorizontal()?0:1;s[c]+=u+h/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}(Ce);Ce.registerClass(fb);const Fu=fb;var RR=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return os(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"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,o){return o.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=mi(Fu.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}(Fu);const NR=RR;var zR=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),BR=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new zR},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-a)*.5,u=a+l,h=i.startAngle,c=i.endAngle,d=i.clockwise,p=Math.PI*2,f=d?c-h<p:h-c<p;f||(h=c-(d?p:-p));var g=Math.cos(h),v=Math.sin(h),y=Math.cos(c),m=Math.sin(c);f?(t.moveTo(g*a+o,v*a+r),t.arc(g*u+o,v*u+r,l,-Math.PI+h,h,!d)):t.moveTo(g*s+o,v*s+r),t.arc(o,r,s,h,c,!d),t.arc(y*u+o,m*u+r,l,c-Math.PI*2,c-Math.PI,!d),a!==0&&t.arc(o,r,a,c,h,d)},e}(gt);const Wu=BR;function ER(n,e){e=e||{};var t=e.isRoundCap;return function(i,o,r){var a=o.position;if(!a||a instanceof Array)return al(i,o,r);var s=n(a),l=o.distance!=null?o.distance:5,u=this.shape,h=u.cx,c=u.cy,d=u.r,p=u.r0,f=(d+p)/2,g=u.startAngle,v=u.endAngle,y=(g+v)/2,m=t?Math.abs(d-p)/2:0,x=Math.cos,_=Math.sin,w=h+d*x(g),b=c+d*_(g),S="left",T="top";switch(s){case"startArc":w=h+(p-l)*x(y),b=c+(p-l)*_(y),S="center",T="top";break;case"insideStartArc":w=h+(p+l)*x(y),b=c+(p+l)*_(y),S="center",T="bottom";break;case"startAngle":w=h+f*x(g)+Gu(g,l+m,!1),b=c+f*_(g)+Hu(g,l+m,!1),S="right",T="middle";break;case"insideStartAngle":w=h+f*x(g)+Gu(g,-l+m,!1),b=c+f*_(g)+Hu(g,-l+m,!1),S="left",T="middle";break;case"middle":w=h+f*x(y),b=c+f*_(y),S="center",T="middle";break;case"endArc":w=h+(d+l)*x(y),b=c+(d+l)*_(y),S="center",T="bottom";break;case"insideEndArc":w=h+(d-l)*x(y),b=c+(d-l)*_(y),S="center",T="top";break;case"endAngle":w=h+f*x(v)+Gu(v,l+m,!0),b=c+f*_(v)+Hu(v,l+m,!0),S="left",T="middle";break;case"insideEndAngle":w=h+f*x(v)+Gu(v,-l+m,!0),b=c+f*_(v)+Hu(v,-l+m,!0),S="right",T="middle";break;default:return al(i,o,r)}return i=i||{},i.x=w,i.y=b,i.align=S,i.verticalAlign=T,i}}function VR(n,e,t,i){if(vt(i)){n.setTextConfig({rotation:i});return}else if(V(e)){n.setTextConfig({rotation:0});return}var o=n.shape,r=o.clockwise?o.startAngle:o.endAngle,a=o.clockwise?o.endAngle:o.startAngle,s=(r+a)/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=r;break;case"endAngle":case"insideEndAngle":l=a;break;default:n.setTextConfig({rotation:0});return}var h=Math.PI*1.5-l;u==="middle"&&h>Math.PI/2&&h<Math.PI*1.5&&(h-=Math.PI),n.setTextConfig({rotation:h})}function Gu(n,e,t){return e*Math.sin(n)*(t?-1:1)}function Hu(n,e,t){return e*Math.cos(n)*(t?1:-1)}function Mr(n,e,t){var i=n.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;V(i)||(i=[i,i,i,i]);var o=Math.abs(e.r||0-e.r0||0);return{cornerRadius:F(i,function(r){return en(r,o)})}}var lf=Math.max,uf=Math.min;function FR(n,e){var t=n.getArea&&n.getArea();if(Eu(n,"cartesian2d")){var i=n.getBaseAxis();if(i.type!=="category"||!i.onBand){var o=e.getLayout("bandWidth");i.isHorizontal()?(t.x-=o,t.width+=o*2):(t.y-=o,t.height+=o*2)}}return t}var WR=function(n){z(e,n);function e(){var t=n.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,o,r){this._model=t,this._removeOnRenderedListener(o),this._updateDrawMode(t);var a=t.get("coordinateSystem");(a==="cartesian2d"||a==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,o):this._renderNormal(t,i,o,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){Pa(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t,i,o,r){var a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis(),c;u.type==="cartesian2d"?c=h.isHorizontal():u.type==="polar"&&(c=h.dim==="angle");var d=t.isAnimationEnabled()?t:null,p=GR(t,u);p&&this._enableRealtimeSort(p,s,o);var f=t.get("clip",!0)||p,g=FR(u,s);a.removeClipPath();var v=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),x=m.get("borderRadius")||0,_=[],w=this._backgroundEls,b=r&&r.isInitSort,S=r&&r.type==="changeAxisOrder";function T(A){var D=Yu[u.type](s,A),k=qR(u,c,D);return k.useStyle(m.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",x):k.setShape("cornerRadius",x),_[A]=k,k}s.diff(l).add(function(A){var D=s.getItemModel(A),k=Yu[u.type](s,A,D);if(y&&T(A),!(!s.hasValue(A)||!xb[u.type](k))){var P=!1;f&&(P=gb[u.type](g,k));var L=vb[u.type](t,s,A,k,c,d,h.model,!1,v);p&&(L.forceLabelAnimation=!0),bb(L,s,A,D,k,t,c,u.type==="polar"),b?L.attr({shape:k}):p?yb(p,d,L,k,A,c,!1,!1):Yt(L,{shape:k},t,A),s.setItemGraphicEl(A,L),a.add(L),L.ignore=P}}).update(function(A,D){var k=s.getItemModel(A),P=Yu[u.type](s,A,k);if(y){var L=void 0;w.length===0?L=T(D):(L=w[D],L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",x):L.setShape("cornerRadius",x),_[A]=L);var O=Yu[u.type](s,A),E=Tb(c,O,u);Tt(L,{shape:E},d,A)}var R=l.getItemGraphicEl(D);if(!s.hasValue(A)||!xb[u.type](P)){a.remove(R);return}var B=!1;if(f&&(B=gb[u.type](g,P),B&&a.remove(R)),R?or(R):R=vb[u.type](t,s,A,P,c,d,h.model,!!R,v),p&&(R.forceLabelAnimation=!0),S){var W=R.getTextContent();if(W){var Z=lr(W);Z.prevValue!=null&&(Z.prevValue=Z.value)}}else bb(R,s,A,k,P,t,c,u.type==="polar");b?R.attr({shape:P}):p?yb(p,d,R,P,A,c,!0,S):Tt(R,{shape:P},t,A,null),s.setItemGraphicEl(A,R),R.ignore=B,a.add(R)}).remove(function(A){var D=l.getItemGraphicEl(A);D&&Da(D,t,A)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new it);I.removeAll();for(var C=0;C<_.length;++C)I.add(_[C]);a.add(I),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(t,i,o){this._clear(),Sb(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),Sb(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&af(t.coordinateSystem,!1,t),o=this.group;i?o.setClipPath(i):o.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,o){var r=this;if(i.count()){var a=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,o),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),h=u&&u.shape;return h&&Math.abs(a.isHorizontal()?h.height:h.width)||0};this._onRendered=function(){r._updateSortWithinSameData(i,s,a,o)},o.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,i,o){var r=[];return t.each(t.mapDimension(i.dim),function(a,s){var l=o(s);l=l!=null?l:NaN,r.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),r.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:F(r,function(a){return a.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,o){for(var r=o.scale,a=t.mapDimension(o.dim),s=Number.MAX_VALUE,l=0,u=r.getOrdinalMeta().categories.length;l<u;++l){var h=t.rawIndexOf(a,r.getRawOrdinalNumber(l)),c=h<0?Number.MIN_VALUE:i(t.indexOfRawIndex(h));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var o=i.scale,r=o.getExtent(),a=Math.max(0,r[0]),s=Math.min(r[1],o.getOrdinalMeta().categories.length-1);a<=s;++a)if(t.ordinalNumbers[a]!==o.getRawOrdinalNumber(a))return!0},e.prototype._updateSortWithinSameData=function(t,i,o,r){if(this._isOrderChangedWithinSameData(t,i,o)){var a=this._dataSort(t,o,i);this._isOrderDifferentInView(a,o)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",axisId:o.index,sortInfo:a}))}},e.prototype._dispatchInitSort=function(t,i,o){var r=i.baseAxis,a=this._dataSort(t,r,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:a})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,o=this._data;t&&t.isAnimationEnabled()&&o&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],o.eachItemGraphicEl(function(r){Da(r,t,rt(r).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(oe),gb={cartesian2d:function(n,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=n.x+n.width,r=n.y+n.height,a=lf(e.x,n.x),s=uf(e.x+e.width,o),l=lf(e.y,n.y),u=uf(e.y+e.height,r),h=s<a,c=u<l;return e.x=h&&a>o?s:a,e.y=c&&l>r?u:l,e.width=h?0:s-a,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var o=uf(e.r,n.r),r=lf(e.r0,n.r0);e.r=o,e.r0=r;var a=o-r<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},vb={cartesian2d:function(n,e,t,i,o,r,a,s,l){var u=new yt({shape:N({},i),z2:1});if(u.__dataIndex=t,u.name="item",r){var h=u.shape,c=o?"height":"width";h[c]=0}return u},polar:function(n,e,t,i,o,r,a,s,l){var u=!o&&l?Wu:ze,h=new u({shape:i,z2:1});h.name="item";var c=_b(o);if(h.calculateTextPosition=ER(c,{isRoundCap:u===Wu}),r){var d=h.shape,p=o?"r":"endAngle",f={};d[p]=o?i.r0:i.startAngle,f[p]=i[p],(s?Tt:Yt)(h,{shape:f},r)}return h}};function GR(n,e){var t=n.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function yb(n,e,t,i,o,r,a,s){var l,u;r?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Tt:Yt)(t,{shape:l},e,o,null);var h=e?n.baseAxis.model:null;(a?Tt:Yt)(t,{shape:u},h,o)}function mb(n,e){for(var t=0;t<e.length;t++)if(!isFinite(n[e[t]]))return!0;return!1}var HR=["x","y","width","height"],YR=["cx","cy","r","startAngle","endAngle"],xb={cartesian2d:function(n){return!mb(n,HR)},polar:function(n){return!mb(n,YR)}},Yu={cartesian2d:function(n,e,t){var i=n.getItemLayout(e),o=t?XR(t,i):0,r=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(n,e,t){var i=n.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function UR(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function _b(n){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(n)}function bb(n,e,t,i,o,r,a,s){var l=e.getItemVisual(t,"style");if(s){if(!r.get("roundCap")){var u=n.shape,h=Mr(i.getModel("itemStyle"),u,!0);N(u,h),n.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",c)}n.useStyle(l);var d=i.getShallow("cursor");d&&n.attr("cursor",d);var p=s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?o.height>=0?"bottom":"top":o.width>=0?"right":"left",f=kn(i);Dn(n,f,{labelFetcher:r,labelDataIndex:t,defaultText:hs(r.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=n.getTextContent();if(s&&g){var v=i.get(["label","position"]);n.textConfig.inside=v==="middle"?!0:null,VR(n,v==="outside"?p:v,_b(a),i.get(["label","rotate"]))}c0(g,f,r.getRawValue(t),function(m){return Q_(e,m)});var y=i.getModel(["emphasis"]);nn(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kn(n,i),UR(o)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function XR(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=n.get(["itemStyle","borderWidth"])||0,o=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,o,r)}var ZR=function(){function n(){}return n}(),wb=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new ZR},e.prototype.buildPath=function(t,i){for(var o=i.points,r=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h<o.length;h+=3)l[r]=u,l[a]=o[h+2],s[r]=o[h+r],s[a]=o[h+a],t.rect(s[0],s[1],l[0],l[1])},e}(gt);function Sb(n,e,t,i){var o=n.getData(),r=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=n.getModel("backgroundStyle"),u=o.getLayout("largeBackgroundPoints");if(u){var h=new wb({shape:{points:u},incremental:!!i,silent:!0,z2:0});h.baseDimIdx=r,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),t&&t.push(h)}var c=new wb({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=r,c.largeDataIndices=a,c.barWidth=s,e.add(c),c.useStyle(o.getVisual("style")),rt(c).seriesIndex=n.seriesIndex,n.get("silent")||(c.on("mousedown",Mb),c.on("mousemove",Mb)),t&&t.push(c)}var Mb=nu(function(n){var e=this,t=jR(e,n.offsetX,n.offsetY);rt(e).dataIndex=t>=0?t:null},30,!1);function jR(n,e,t){for(var i=n.baseDimIdx,o=1-i,r=n.shape.points,a=n.largeDataIndices,s=[],l=[],u=n.barWidth,h=0,c=r.length/3;h<c;h++){var d=h*3;if(l[i]=u,l[o]=r[d+2],s[i]=r[d+i],s[o]=r[d+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return a[h]}return-1}function Tb(n,e,t){if(Eu(t,"cartesian2d")){var i=e,o=t.getArea();return{x:n?i.x:o.x,y:n?o.y:i.y,width:n?i.width:o.width,height:n?o.height:i.height}}else{var o=t.getArea(),r=e;return{cx:o.cx,cy:o.cy,r0:n?o.r0:r.r0,r:n?o.r:r.r,startAngle:n?r.startAngle:0,endAngle:n?r.endAngle:Math.PI*2}}}function qR(n,e,t){var i=n.type==="polar"?ze:yt;return new i({shape:Tb(e,t,n),silent:!0,z2:0})}const KR=WR;function $R(n){n.registerChartView(KR),n.registerSeriesModel(NR),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,pt(g_,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,v_("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,db("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(o){e.sortInfo&&o.axis.setCategorySortInfo(e.sortInfo)})})}var Cb=Math.PI*2,Uu=Math.PI/180;function Ib(n,e){return pe(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ab(n,e){var t=Ib(n,e),i=n.get("center"),o=n.get("radius");V(o)||(o=[0,o]);var r=U(t.width,e.getWidth()),a=U(t.height,e.getHeight()),s=Math.min(r,a),l=U(o[0],s/2),u=U(o[1],s/2),h,c,d=n.coordinateSystem;if(d){var p=d.dataToPoint(i);h=p[0]||0,c=p[1]||0}else V(i)||(i=[i,i]),h=U(i[0],r)+t.x,c=U(i[1],a)+t.y;return{cx:h,cy:c,r0:l,r:u}}function QR(n,e,t){e.eachSeriesByType(n,function(i){var o=i.getData(),r=o.mapDimension("value"),a=Ib(i,t),s=Ab(i,t),l=s.cx,u=s.cy,h=s.r,c=s.r0,d=-i.get("startAngle")*Uu,p=i.get("endAngle"),f=i.get("padAngle")*Uu;p=p==="auto"?d-Cb:-p*Uu;var g=i.get("minAngle")*Uu,v=g+f,y=0;o.each(r,function(O){!isNaN(O)&&y++});var m=o.getSum(r),x=Math.PI/(m||y)*2,_=i.get("clockwise"),w=i.get("roseType"),b=i.get("stillShowZeroSum"),S=o.getDataExtent(r);S[0]=0;var T=_?1:-1,I=[d,p],C=T*f/2;$c(I,!_),d=I[0],p=I[1];var A=Math.abs(p-d),D=A,k=0,P=d;if(o.setLayout({viewRect:a,r:h}),o.each(r,function(O,E){var R;if(isNaN(O)){o.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:c,r:w?NaN:h});return}w!=="area"?R=m===0&&b?x:O*x:R=A/y,R<v?(R=v,D-=v):k+=O;var B=P+T*R,W=0,Z=0;f>R?(W=P+T*R/2,Z=W):(W=P+C,Z=B-C),o.setItemLayout(E,{angle:R,startAngle:W,endAngle:Z,clockwise:_,cx:l,cy:u,r0:c,r:w?xt(O,S,[c,h]):h}),P=B}),D<Cb&&y)if(D<=.001){var L=A/y;o.each(r,function(O,E){if(!isNaN(O)){var R=o.getItemLayout(E);R.angle=L;var B=0,W=0;L<f?(B=d+T*(E+1/2)*L,W=B):(B=d+T*E*L+C,W=d+T*(E+1)*L-C),R.startAngle=B,R.endAngle=W}})}else x=D/k,P=d,o.each(r,function(O,E){if(!isNaN(O)){var R=o.getItemLayout(E),B=R.angle===v?v:O*x,W=0,Z=0;B<f?(W=P+T*B/2,Z=W):(W=P+C,Z=P+T*B-C),R.startAngle=W,R.endAngle=Z,P+=T*B}})})}function hf(n){return{seriesType:n,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var o=e.getData();o.filterSelf(function(r){for(var a=o.getName(r),s=0;s<i.length;s++)if(!i[s].isSelected(a))return!1;return!0})}}}}var JR=Math.PI/180;function Db(n,e,t,i,o,r,a,s,l,u){if(n.length<2)return;function h(g){for(var v=g.rB,y=v*v,m=0;m<g.list.length;m++){var x=g.list[m],_=Math.abs(x.label.y-t),w=i+x.len,b=w*w,S=Math.sqrt((1-Math.abs(_*_/y))*b),T=e+(S+x.len2)*o,I=T-x.label.x,C=x.targetTextWidth-I*o;kb(x,C,!0),x.label.x=T}}function c(g){for(var v={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var x=g[m],_=x.label.y>t?y:v,w=Math.abs(x.label.y-t);if(w>=_.maxY){var b=x.label.x-e-x.len2*o,S=i+x.len,T=Math.abs(b)<S?Math.sqrt(w*w/(1-b*b/S/S)):S;_.rB=T,_.maxY=w}_.list.push(x)}h(v),h(y)}for(var d=n.length,p=0;p<d;p++)if(n[p].position==="outer"&&n[p].labelAlignTo==="labelLine"){var f=n[p].label.x-u;n[p].linePoints[1][0]+=f,n[p].label.x=u}K_(n,l,l+a)&&c(n)}function t5(n,e,t,i,o,r,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d<n.length;d++){var p=n[d].label;cf(n[d])||(p.x<e?(h=Math.min(h,p.x),l.push(n[d])):(c=Math.max(c,p.x),u.push(n[d])))}for(var d=0;d<n.length;d++){var f=n[d];if(!cf(f)&&f.linePoints){if(f.labelStyleWidth!=null)continue;var p=f.label,g=f.linePoints,v=void 0;f.labelAlignTo==="edge"?p.x<e?v=g[2][0]-f.labelDistance-a-f.edgeDistance:v=a+o-f.edgeDistance-g[2][0]-f.labelDistance:f.labelAlignTo==="labelLine"?p.x<e?v=h-a-f.bleedMargin:v=a+o-c-f.bleedMargin:p.x<e?v=p.x-a-f.bleedMargin:v=a+o-p.x-f.bleedMargin,f.targetTextWidth=v,kb(f,v)}}Db(u,e,t,i,1,o,r,a,s,c),Db(l,e,t,i,-1,o,r,a,s,h);for(var d=0;d<n.length;d++){var f=n[d];if(!cf(f)&&f.linePoints){var p=f.label,g=f.linePoints,y=f.labelAlignTo==="edge",m=p.style.padding,x=m?m[1]+m[3]:0,_=p.style.backgroundColor?0:x,w=f.rect.width+_,b=g[1][0]-g[2][0];y?p.x<e?g[2][0]=a+f.edgeDistance+w+f.labelDistance:g[2][0]=a+o-f.edgeDistance-w-f.labelDistance:(p.x<e?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+b),g[1][1]=g[2][1]=p.y}}}function kb(n,e,t){if(t===void 0&&(t=!1),n.labelStyleWidth==null){var i=n.label,o=i.style,r=n.rect,a=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,u=o.overflow,h=r.width+(a?0:l);if(e<h||t){var c=r.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=e-l,f=e<h?p:t?p>n.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();r.width=g.width;var v=(i.style.margin||0)+2.1;r.height=g.height+v,r.y-=(r.height-c)/2}}}function cf(n){return n.position==="center"}function e5(n){var e=n.getData(),t=[],i,o,r=!1,a=(n.get("minShowLabelAngle")||0)*JR,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,h=s.x,c=s.y,d=s.height;function p(b){b.ignore=!0}function f(b){if(!b.ignore)return!0;for(var S in b.states)if(b.states[S].ignore===!1)return!0;return!1}e.each(function(b){var S=e.getItemGraphicEl(b),T=S.shape,I=S.getTextContent(),C=S.getTextGuideLine(),A=e.getItemModel(b),D=A.getModel("label"),k=D.get("position")||A.get(["emphasis","label","position"]),P=D.get("distanceToLabelLine"),L=D.get("alignTo"),O=U(D.get("edgeDistance"),u),E=D.get("bleedMargin"),R=A.getModel("labelLine"),B=R.get("length");B=U(B,u);var W=R.get("length2");if(W=U(W,u),Math.abs(T.endAngle-T.startAngle)<a){M(I.states,p),I.ignore=!0,C&&(M(C.states,p),C.ignore=!0);return}if(f(I)){var Z=(T.startAngle+T.endAngle)/2,Q=Math.cos(Z),ot=Math.sin(Z),st,St,mt,Qt;i=T.cx,o=T.cy;var Gt=k==="inside"||k==="inner";if(k==="center")st=T.cx,St=T.cy,Qt="center";else{var Pt=(Gt?(T.r+T.r0)/2*Q:T.r*Q)+i,It=(Gt?(T.r+T.r0)/2*ot:T.r*ot)+o;if(st=Pt+Q*3,St=It+ot*3,!Gt){var tt=Pt+Q*(B+l-T.r),ht=It+ot*(B+l-T.r),ve=tt+(Q<0?-1:1)*W,Lt=ht;L==="edge"?st=Q<0?h+O:h+u-O:st=ve+(Q<0?-P:P),St=Lt,mt=[[Pt,It],[tt,ht],[ve,Lt]]}Qt=Gt?"center":L==="edge"?Q>0?"right":"left":Q>0?"left":"right"}var qe=Math.PI,ye=0,Vn=D.get("rotate");if(vt(Vn))ye=Vn*(qe/180);else if(k==="center")ye=0;else if(Vn==="radial"||Vn===!0){var Eo=Q<0?-Z+qe:-Z;ye=Eo}else if(Vn==="tangential"&&k!=="outside"&&k!=="outer"){var Ke=Math.atan2(Q,ot);Ke<0&&(Ke=qe*2+Ke);var As=ot>0;As&&(Ke=qe+Ke),ye=Ke-qe}if(r=!!ye,I.x=st,I.y=St,I.rotation=ye,I.setStyle({verticalAlign:"middle"}),Gt){I.setStyle({align:Qt});var Vo=I.states.select;Vo&&(Vo.x+=I.x,Vo.y+=I.y)}else{var Er=I.getBoundingRect().clone();Er.applyTransform(I.getComputedTransform());var jg=(I.style.margin||0)+2.1;Er.y-=jg/2,Er.height+=jg,t.push({label:I,labelLine:C,position:k,len:B,len2:W,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new nt(Q,ot),linePoints:mt,textAlign:Qt,labelDistance:P,labelAlignTo:L,edgeDistance:O,bleedMargin:E,rect:Er,unconstrainedWidth:Er.width,labelStyleWidth:I.style.width})}S.setTextConfig({inside:Gt})}}),!r&&n.get("avoidLabelOverlap")&&t5(t,i,o,l,u,d,h,c);for(var g=0;g<t.length;g++){var v=t[g],y=v.label,m=v.labelLine,x=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),x&&(M(y.states,p),y.ignore=!0);var _=y.states.select;_&&(_.x+=y.x,_.y+=y.y)}if(m){var w=v.linePoints;x||!w?(M(m.states,p),m.ignore=!0):(U_(w,v.minTurnAngle),sR(w,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new nt(w[0][0],w[0][1])})}}}var n5=function(n){z(e,n);function e(t,i,o){var r=n.call(this)||this;r.z2=2;var a=new dt;return r.setTextContent(a),r.updateData(t,i,o,!0),r}return e.prototype.updateData=function(t,i,o,r){var a=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),h=t.getItemLayout(i),c=N(Mr(l.getModel("itemStyle"),h,!0),h);if(isNaN(c.startAngle)){a.setShape(c);return}if(r){a.setShape(c);var d=s.getShallow("animationType");s.ecModel.ssr?(Yt(a,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),a.originX=c.cx,a.originY=c.cy):d==="scale"?(a.shape.r=h.r0,Yt(a,{shape:{r:h.r}},s,i)):o!=null?(a.setShape({startAngle:o,endAngle:o}),Yt(a,{shape:{startAngle:h.startAngle,endAngle:h.endAngle}},s,i)):(a.shape.endAngle=h.startAngle,Tt(a,{shape:{endAngle:h.endAngle}},s,i))}else or(a),Tt(a,{shape:c},s,i);a.useStyle(t.getItemVisual(i,"style")),Kn(a,l);var p=(h.startAngle+h.endAngle)/2,f=s.get("selectedOffset"),g=Math.cos(p)*f,v=Math.sin(p)*f,y=l.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,t,i),a.ensureState("emphasis").shape=N({r:h.r+(u.get("scale")&&u.get("scaleSize")||0)},Mr(u.getModel("itemStyle"),h)),N(a.ensureState("select"),{x:g,y:v,shape:Mr(l.getModel(["select","itemStyle"]),h)}),N(a.ensureState("blur"),{shape:Mr(l.getModel(["blur","itemStyle"]),h)});var m=a.getTextGuideLine(),x=a.getTextContent();m&&N(m.ensureState("select"),{x:g,y:v}),N(x.ensureState("select"),{x:g,y:v}),nn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,o){var r=this,a=i.getItemModel(o),s=a.getModel("labelLine"),l=i.getItemVisual(o,"style"),u=l&&l.fill,h=l&&l.opacity;Dn(r,kn(a),{labelFetcher:i.hostModel,labelDataIndex:o,inheritColor:u,defaultOpacity:h,defaultText:t.getFormattedLabel(o,"normal")||i.getName(o)});var c=r.getTextContent();r.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var d=t.get(["label","position"]);if(d!=="outside"&&d!=="outer")r.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Be,this.setTextGuideLine(p)),X_(this,Z_(a),{stroke:u,opacity:Ni(s.get(["lineStyle","opacity"]),h,1)})}},e}(ze),i5=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,o,r){var a=t.getData(),s=this._data,l=this.group,u;if(!s&&a.count()>0){for(var h=a.getItemLayout(0),c=1;isNaN(h&&h.startAngle)&&c<a.count();++c)h=a.getItemLayout(c);h&&(u=h.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&t.get("showEmptyCircle")){var d=new ze({shape:Ab(t,o)});d.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}a.diff(s).add(function(p){var f=new n5(a,p,u);a.setItemGraphicEl(p,f),l.add(f)}).update(function(p,f){var g=s.getItemGraphicEl(f);g.updateData(a,p,u),g.off("click"),l.add(g),a.setItemGraphicEl(p,g)}).remove(function(p){var f=s.getItemGraphicEl(p);Da(f,t,p)}).execute(),e5(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var o=i.getData(),r=o.getItemLayout(0);if(r){var a=t[0]-r.cx,s=t[1]-r.cy,l=Math.sqrt(a*a+s*s);return l<=r.r&&l>=r.r0}},e.type="pie",e}(oe);const o5=i5;function cs(n,e,t){e=V(e)&&{coordDimensions:e}||N({encodeDefine:n.getEncode()},e);var i=n.getSource(),o=Tu(i,e).dimensions,r=new Mu(o,n);return r.initData(i,t),r}var r5=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},n}();const pf=r5;var a5=_t(),s5=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new pf(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return cs(this,{coordDimensions:["value"],encodeDefaulter:pt(Hp,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),o=a5(i),r=o.seats;if(!r){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),r=o.seats=vy(a,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=r[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){pa(t,"labelLine",["show"]);var i=t.labelLine,o=t.emphasis.labelLine;i.show=i.show&&t.label.show,o.show=o.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}(Ce);const l5=s5;function u5(n){return{seriesType:n,reset:function(e,t){var i=e.getData();i.filterSelf(function(o){var r=i.mapDimension("value"),a=i.get(r,o);return!(vt(a)&&!isNaN(a)&&a<0)})}}}function h5(n){n.registerChartView(o5),n.registerSeriesModel(l5),ex("pie",n.registerAction),n.registerLayout(pt(QR,"pie")),n.registerProcessor(hf("pie")),n.registerProcessor(u5("pie"))}var c5=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return os(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t!=null?t:this.option.large?5e3:this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t!=null?t:this.option.large?1e4:this.get("progressiveThreshold")},e.prototype.brushSelector=function(t,i,o){return o.point(i.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}(Ce);const p5=c5;var Pb=4,d5=function(){function n(){}return n}(),f5=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new d5},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var o=i.points,r=i.size,a=this.symbolProxy,s=a.shape,l=t.getContext?t.getContext():t,u=l&&r[0]<Pb,h=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<o.length;){var d=o[c++],p=o[c++];isNaN(d)||isNaN(p)||h&&!h.contain(d,p)||(s.x=d-r[0]/2,s.y=p-r[1]/2,s.width=r[0],s.height=r[1],a.buildPath(t,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,i=t.points,o=t.size,r=this._ctx,a=this.softClipShape,s;if(r){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||a&&!a.contain(l,u)||r.fillRect(l-o[0]/2,u-o[1]/2,o[0],o[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,i){for(var o=this.shape,r=o.points,a=o.size,s=Math.max(a[0],4),l=Math.max(a[1],4),u=r.length/2-1;u>=0;u--){var h=u*2,c=r[h]-s/2,d=r[h+1]-l/2;if(t>=c&&i>=d&&t<=c+s&&i<=d+l)return u}return-1},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(t=o[0],i=o[1],r.contain(t,i)){var a=this.hoverDataIdx=this.findDataIndex(t,i);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,o=i.points,r=i.size,a=r[0],s=r[1],l=1/0,u=1/0,h=-1/0,c=-1/0,d=0;d<o.length;){var p=o[d++],f=o[d++];l=Math.min(p,l),h=Math.max(p,h),u=Math.min(f,u),c=Math.max(f,c)}t=this._rect=new ut(l-a/2,u-s/2,h-l+a,c-u+s)}return t},e}(gt),g5=function(){function n(){this.group=new it}return n.prototype.updateData=function(e,t){this._clear();var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},n.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var o=(i.endIndex-i.startIndex)*2,r=i.startIndex*4*2;t=new Float32Array(t.buffer,r,o)}i.setShape("points",t),i.reset()})},n.prototype.incrementalPrepareUpdate=function(e){this._clear()},n.prototype.incrementalUpdate=function(e,t,i){var o=this._newAdded[0],r=t.getLayout("points"),a=o&&o.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+r.length);l.set(a),l.set(r,s),o.endIndex=e.end,o.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:r}),this._setCommon(u,t,i)}},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new f5({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},n.prototype._setCommon=function(e,t,i){var o=t.hostModel;i=i||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=i.clipShape||null,e.symbolProxy=Ft(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<Pb;e.useStyle(o.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=rt(e);u.seriesIndex=o.seriesIndex,e.on("mousemove",function(h){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const v5=g5;var y5=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this._updateSymbolDraw(r,t);a.updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,o){var r=t.getData(),a=this._updateSymbolDraw(r,t);a.incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,i,o){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,o){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var a=Vu("").reset(t,i,o);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var i=t.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,i){var o=this._symbolDraw,r=i.pipelineContext,a=r.large;return(!o||a!==this._isLargeDraw)&&(o&&o.remove(),o=this._symbolDraw=a?new v5:new of,this._isLargeDraw=a,this.group.removeAll()),this.group.add(o.group),o},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(oe);const m5=y5;var x5=function(n){z(e,n);function e(){return n!==null&&n.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}(ft);const _5=x5;var df=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Bt).models[0]},e.type="cartesian2dAxis",e}(ft);Ut(df,ss);var Lb={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},b5=et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Lb),ff=et({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}}},Lb),w5=et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ff),S5=K({logBase:10},ff);const Ob={category:b5,value:ff,time:w5,log:S5};var M5={value:1,category:1,time:1,log:1};function Tr(n,e,t,i){M(M5,function(o,r){var a=et(et({},Ob[r],!0),i,!0),s=function(l){z(u,l);function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=e+"Axis."+r,h}return u.prototype.mergeDefaultAndTheme=function(h,c){var d=za(this),p=d?dr(h):{},f=c.getTheme();et(h,f.get(r+"Axis")),et(h,this.getDefaultOption()),h.type=Rb(h),d&&xi(h,p,d)},u.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=Gd.createByAxisModel(this))},u.prototype.getCategories=function(h){var c=this.option;if(c.type==="category")return h?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+r,u.defaultOption=a,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",Rb)}function Rb(n){return n.type||(n.data?"category":"value")}var T5=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return F(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),At(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const C5=T5;var gf=["x","y"];function Nb(n){return n.type==="interval"||n.type==="time"}var I5=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=gf,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!Nb(t)||!Nb(i))){var o=t.getExtent(),r=i.getExtent(),a=this.dataToPoint([o[0],r[0]]),s=this.dataToPoint([o[1],r[1]]),l=o[1]-o[0],u=r[1]-r[0];if(!(!l||!u)){var h=(s[0]-a[0])/l,c=(s[1]-a[1])/u,d=a[0]-o[0]*h,p=a[1]-r[0]*c,f=this._transform=[h,0,0,c,d,p];this._invTransform=zi([],f)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),o=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&o.contain(o.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,i){var o=this.dataToPoint(t),r=this.dataToPoint(i),a=this.getArea(),s=new ut(o[0],o[1],r[0]-o[0],r[1]-o[1]);return a.intersect(s)},e.prototype.dataToPoint=function(t,i,o){o=o||[];var r=t[0],a=t[1];if(this._transform&&r!=null&&isFinite(r)&&a!=null&&isFinite(a))return Ht(o,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return o[0]=s.toGlobalCoord(s.dataToCoord(r,i)),o[1]=l.toGlobalCoord(l.dataToCoord(a,i)),o},e.prototype.clampData=function(t,i){var o=this.getAxis("x").scale,r=this.getAxis("y").scale,a=o.getExtent(),s=r.getExtent(),l=o.parse(t[0]),u=r.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i){var o=[];if(this._invTransform)return Ht(o,t,this._invTransform);var r=this.getAxis("x"),a=this.getAxis("y");return o[0]=r.coordToData(r.toLocalCoord(t[0]),i),o[1]=a.coordToData(a.toLocalCoord(t[1]),i),o},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),r=Math.min(i[0],i[1])-t,a=Math.min(o[0],o[1])-t,s=Math.max(i[0],i[1])-r+t,l=Math.max(o[0],o[1])-a+t;return new ut(r,a,s,l)},e}(C5),A5=function(n){z(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.index=0,s.type=r||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cn);const D5=A5;function vf(n,e,t){t=t||{};var i=n.coordinateSystem,o=e.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,u=o.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f=u==="x"?[c[2]-p,c[3]+p]:[c[0]-p,c[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}r.position=[u==="y"?f[d[l]]:c[0],u==="x"?f[d[l]]:c[3]],r.rotation=Math.PI/2*(u==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};r.labelDirection=r.tickDirection=r.nameDirection=v[s],r.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),fn(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var y=e.get(["axisLabel","rotate"]);return r.labelRotate=l==="top"?-y:y,r.z2=1,r}function zb(n){return n.get("coordinateSystem")==="cartesian2d"}function Bb(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,i){var o=i.replace(/Model$/,""),r=n.getReferringComponents(o,Bt).models[0];e[i]=r}),e}var yf=Math.log;function Eb(n,e,t){var i=Ci.prototype,o=i.getTicks.call(t),r=i.getTicks.call(t,!0),a=o.length-1,s=i.getInterval.call(t),l=T_(n,e),u=l.extent,h=l.fixMin,c=l.fixMax;if(n.type==="log"){var d=yf(n.base);u=[yf(u[0])/d,yf(u[1])/d]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var p=i.getExtent.call(n);h&&(u[0]=p[0]),c&&(u[1]=p[1]);var f=i.getInterval.call(n),g=u[0],v=u[1];if(h&&c)f=(v-g)/a;else if(h)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=Yd(f),v=u[0]+f*a;else if(c)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=Yd(f),g=u[1]-f*a;else{var y=n.getTicks().length-1;y>a&&(f=Yd(f));var m=f*a;v=Math.ceil(u[1]/f)*f,g=kt(v-m),g<0&&u[0]>=0?(g=0,v=kt(m)):v>0&&u[1]<=0&&(v=0,g=-kt(m))}var x=(o[0].value-r[0].value)/s,_=(o[a].value-r[a].value)/s;i.setExtent.call(n,g+f*x,v+f*_),i.setInterval.call(n,f),(x||_)&&i.setNiceExtent.call(n,g+f,v-f)}var k5=function(){function n(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gf,this._initCartesian(e,t,i),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function o(a){var s,l=at(a),u=l.length;if(u){for(var h=[],c=u-1;c>=0;c--){var d=+l[c],p=a[d],f=p.model,g=p.scale;Hd(g)&&f.get("alignTicks")&&f.get("interval")==null?h.push(p):(Sr(g,f),Hd(g)&&(s=p))}h.length&&(s||(s=h.pop(),Sr(s.scale,s.model)),M(h,function(v){Eb(v.scale,v.model,s.scale)}))}}o(i.x),o(i.y);var r={};M(i.x,function(a){Vb(i,"y",a,r)}),M(i.y,function(a){Vb(i,"x",a,r)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,i){var o=e.getBoxLayoutParams(),r=!i&&e.get("containLabel"),a=pe(o,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var s=this._axesList;l(),r&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=zO(u);if(h){var c=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);a[c]-=h[c]+d,u.position==="top"?a.y+=h.height+d:u.position==="left"&&(a.x+=h.width+d)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var h=u.isHorizontal(),c=h?[0,a.width]:[0,a.height],d=u.inverse?1:0;u.setExtent(c[d],c[1-d]),P5(u,h?a.x:a.y)})}},n.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}j(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var o=0,r=this._coordsList;o<r.length;o++)if(r[o].getAxis("x").index===e||r[o].getAxis("y").index===t)return r[o]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(e,t,i){var o=this._findConvertTarget(t);return o.cartesian?o.cartesian.dataToPoint(i):o.axis?o.axis.toGlobalCoord(o.axis.dataToCoord(i)):null},n.prototype.convertFromPixel=function(e,t,i){var o=this._findConvertTarget(t);return o.cartesian?o.cartesian.pointToData(i):o.axis?o.axis.coordToData(o.axis.toLocalCoord(i)):null},n.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",Bt).models[0],o=e.yAxisModel||t&&t.getReferringComponents("yAxis",Bt).models[0],r=e.gridModel,a=this._coordsList,s,l;if(t)s=t.coordinateSystem,lt(a,s)<0&&(s=null);else if(i&&o)s=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(o)l=this.getAxis("y",o.componentIndex);else if(r){var u=r.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},n.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},n.prototype._initCartesian=function(e,t,i){var o=this,r=this,a={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,M(s.x,function(h,c){M(s.y,function(d,p){var f="x"+c+"y"+p,g=new I5(f);g.master=o,g.model=e,o._coordsMap[f]=g,o._coordsList.push(g),g.addAxis(h),g.addAxis(d)})});function u(h){return function(c,d){if(mf(c,e)){var p=c.get("position");h==="x"?p!=="top"&&p!=="bottom"&&(p=a.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=a.left?"right":"left"),a[p]=!0;var f=new D5(h,Ou(c),[0,0],c.get("type"),p),g=f.type==="category";f.onBand=g&&c.get("boundaryGap"),f.inverse=c.get("inverse"),c.axis=f,f.model=c,f.grid=r,f.index=d,r._axesList.push(f),s[h][d]=f,l[h]++}}}},n.prototype._updateScale=function(e,t){M(this._axesList,function(o){if(o.scale.setExtent(1/0,-1/0),o.type==="category"){var r=o.model.get("categorySortInfo");o.scale.setSortInfo(r)}}),e.eachSeries(function(o){if(zb(o)){var r=Bb(o),a=r.xAxisModel,s=r.yAxisModel;if(!mf(a,t)||!mf(s,t))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=o.getData(),h=l.getAxis("x"),c=l.getAxis("y");i(u,h),i(u,c)}},this);function i(o,r){M(Ru(o,r.dim),function(a){r.scale.unionExtentFromData(o,a)})}},n.prototype.getTooltipAxes=function(e){var t=[],i=[];return M(this.getCartesians(),function(o){var r=e!=null&&e!=="auto"?o.getAxis(e):o.getBaseAxis(),a=o.getOtherAxis(r);lt(t,r)<0&&t.push(r),lt(i,a)<0&&i.push(a)}),{baseAxes:t,otherAxes:i}},n.create=function(e,t){var i=[];return e.eachComponent("grid",function(o,r){var a=new n(o,e,t);a.name="grid_"+r,a.resize(o,t,!0),o.coordinateSystem=a,i.push(a)}),e.eachSeries(function(o){if(zb(o)){var r=Bb(o),a=r.xAxisModel,s=r.yAxisModel,l=a.getCoordSysModel(),u=l.coordinateSystem;o.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),i},n.dimensions=gf,n}();function mf(n,e){return n.getCoordSysModel()===e}function Vb(n,e,t,i){t.getAxesOnZeroOf=function(){return r?[r]:[]};var o=n[e],r,a=t.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Fb(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Fb(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0);function h(c){return c.dim+"_"+c.index}}function Fb(n){return n&&n.type!=="category"&&n.type!=="time"&&NO(n)}function P5(n,e){var t=n.getExtent(),i=t[0]+t[1];n.toGlobalCoord=n.dim==="x"?function(o){return o+e}:function(o){return i-o+e},n.toLocalCoord=n.dim==="x"?function(o){return o-e}:function(o){return i-o+e}}const L5=k5;var ki=Math.PI,To=function(){function n(e,t){this.group=new it,this.opt=t,this.axisModel=e,K(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new it({x:t.position[0],y:t.position[1],rotation:t.rotation});i.updateTransform(),this._transformGroup=i}return n.prototype.hasBuilder=function(e){return!!Wb[e]},n.prototype.add=function(e){Wb[e](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(e,t,i){var o=kc(t-e),r,a;return ca(o)?(a=i>0?"top":"bottom",r="center"):ca(o-ki)?(a=i>0?"bottom":"top",r="center"):(a="middle",o>0&&o<ki?r=i>0?"right":"left":r=i>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:a}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Wb={axisLine:function(n,e,t,i){var o=e.get(["axisLine","show"]);if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisLine")),!!o){var r=e.axis.getExtent(),a=i.transform,s=[r[0],0],l=[r[1],0],u=s[0]>l[0];a&&(Ht(s,s,a),Ht(l,l,a));var h=N({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new qt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});rr(c.shape,c.style.lineWidth),c.anid="line",t.add(c);var d=e.get(["axisLine","symbol"]);if(d!=null){var p=e.get(["axisLine","symbolSize"]);G(d)&&(d=[d,d]),(G(p)||vt(p))&&(p=[p,p]);var f=ja(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],v=p[1];M([{rotate:n.rotation+Math.PI/2,offset:f[0],r:0},{rotate:n.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(d[m]!=="none"&&d[m]!=null){var x=Ft(d[m],-g/2,-v/2,g,v,h.stroke,!0),_=y.r+y.offset,w=u?l:s;x.attr({rotation:y.rotate,x:w[0]+_*Math.cos(n.rotation),y:w[1]-_*Math.sin(n.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(n,e,t,i){var o=N5(t,i,e,n),r=B5(t,i,e,n);if(R5(e,r,o),z5(t,i,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=j_(F(r,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));$_(a)}},axisName:function(n,e,t,i){var o=fn(n.axisName,e.get("name"));if(o){var r=e.get("nameLocation"),a=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),h=u[0]>u[1]?-1:1,c=[r==="start"?u[0]-h*l:r==="end"?u[1]+h*l:(u[0]+u[1])/2,Hb(r)?n.labelOffset+a*l:0],d,p=e.get("nameRotate");p!=null&&(p=p*ki/180);var f;Hb(r)?d=To.innerTextLayout(n.rotation,p!=null?p:n.rotation,a):(d=O5(n.rotation,r,p||0,u),f=n.axisNameAvailableWidth,f!=null&&(f=Math.abs(f/Math.sin(d.rotation)),!isFinite(f)&&(f=null)));var g=s.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=fn(n.nameTruncateMaxWidth,v.maxWidth,f),x=new dt({x:c[0],y:c[1],rotation:d.rotation,silent:To.isLabelSilent(e),style:Ct(s,{text:o,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(sr({el:x,componentModel:e,itemName:o}),x.__fullText=o,x.anid="name",e.get("triggerEvent")){var _=To.makeAxisEventDataBase(e);_.targetType="axisName",_.name=o,rt(x).eventData=_}i.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function O5(n,e,t,i){var o=kc(t-n),r,a,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return ca(o-ki/2)?(a=l?"bottom":"top",r="center"):ca(o-ki*1.5)?(a=l?"top":"bottom",r="center"):(a="middle",o<ki*1.5&&o>ki/2?r=l?"left":"right":r=l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function R5(n,e,t){if(!C_(n.axis)){var i=n.get(["axisLabel","showMinLabel"]),o=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var r=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],h=t[1],c=t[t.length-1],d=t[t.length-2];i===!1?(Ue(r),Ue(u)):Gb(r,a)&&(i?(Ue(a),Ue(h)):(Ue(r),Ue(u))),o===!1?(Ue(s),Ue(c)):Gb(l,s)&&(o?(Ue(l),Ue(d)):(Ue(s),Ue(c)))}}function Ue(n){n&&(n.ignore=!0)}function Gb(n,e){var t=n&&n.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var o=Xr([]);return si(o,o,-n.rotation),t.applyTransform(gn([],o,n.getLocalTransform())),i.applyTransform(gn([],o,e.getLocalTransform())),t.intersect(i)}}function Hb(n){return n==="middle"||n==="center"}function Yb(n,e,t,i,o){for(var r=[],a=[],s=[],l=0;l<n.length;l++){var u=n[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=t,e&&(Ht(a,a,e),Ht(s,s,e));var h=new qt({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});rr(h.shape,h.style.lineWidth),h.anid=o+"_"+n[l].tickValue,r.push(h)}return r}function N5(n,e,t,i){var o=t.axis,r=t.getModel("axisTick"),a=r.get("show");if(a==="auto"&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),!(!a||o.scale.isBlank())){for(var s=r.getModel("lineStyle"),l=i.tickDirection*r.get("length"),u=o.getTicksCoords(),h=Yb(u,e.transform,l,K(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<h.length;c++)n.add(h[c]);return h}}function z5(n,e,t,i){var o=t.axis,r=t.getModel("minorTick");if(!(!r.get("show")||o.scale.isBlank())){var a=o.getMinorTicksCoords();if(a.length)for(var s=r.getModel("lineStyle"),l=i*r.get("length"),u=K(s.getLineStyle(),K(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),h=0;h<a.length;h++)for(var c=Yb(a[h],e.transform,l,u,"minorticks_"+h),d=0;d<c.length;d++)n.add(c[d])}}function B5(n,e,t,i){var o=t.axis,r=fn(i.axisLabelShow,t.get(["axisLabel","show"]));if(!(!r||o.scale.isBlank())){var a=t.getModel("axisLabel"),s=a.get("margin"),l=o.getViewLabels(),u=(fn(i.labelRotate,a.get("rotate"))||0)*ki/180,h=To.innerTextLayout(i.rotation,u,i.labelDirection),c=t.getCategories&&t.getCategories(!0),d=[],p=To.isLabelSilent(t),f=t.get("triggerEvent");return M(l,function(g,v){var y=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,m=g.formattedLabel,x=g.rawLabel,_=a;if(c&&c[y]){var w=c[y];j(w)&&w.textStyle&&(_=new Ot(w.textStyle,a,t.ecModel))}var b=_.getTextColor()||t.get(["axisLine","lineStyle","color"]),S=o.dataToCoord(y),T=_.getShallow("align",!0)||h.textAlign,I=J(_.getShallow("alignMinLabel",!0),T),C=J(_.getShallow("alignMaxLabel",!0),T),A=_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||h.textVerticalAlign,D=J(_.getShallow("verticalAlignMinLabel",!0),A),k=J(_.getShallow("verticalAlignMaxLabel",!0),A),P=new dt({x:S,y:i.labelOffset+i.labelDirection*s,rotation:h.rotation,silent:p,z2:10+(g.level||0),style:Ct(_,{text:m,align:v===0?I:v===l.length-1?C:T,verticalAlign:v===0?D:v===l.length-1?k:A,fill:$(b)?b(o.type==="category"?x:o.type==="value"?y+"":y,v):b})});if(P.anid="label_"+y,f){var L=To.makeAxisEventDataBase(t);L.targetType="axisLabel",L.value=x,L.tickIndex=v,o.type==="category"&&(L.dataIndex=y),rt(P).eventData=L}e.add(P),P.updateTransform(),d.push(P),n.add(P),P.decomposeTransform()}),d}}const ti=To;function E5(n,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return V5(t,n,e),t.seriesInvolved&&W5(t,n),t}function V5(n,e,t){var i=e.getComponent("tooltip"),o=e.getComponent("axisPointer"),r=o.get("link",!0)||[],a=[];M(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ps(s.model),u=n.coordSysAxesInfo[l]={};n.coordSysMap[l]=s;var h=s.model,c=h.getModel("tooltip",i);if(M(s.getAxes(),pt(g,!1,null)),s.getTooltipAxes&&i&&c.get("show")){var d=c.get("trigger")==="axis",p=c.get(["axisPointer","type"])==="cross",f=s.getTooltipAxes(c.get(["axisPointer","axis"]));(d||p)&&M(f.baseAxes,pt(g,p?"cross":!0,d)),p&&M(f.otherAxes,pt(g,"cross",!1))}function g(v,y,m){var x=m.model.getModel("axisPointer",o),_=x.get("show");if(!(!_||_==="auto"&&!v&&!bf(x))){y==null&&(y=x.get("triggerTooltip")),x=v?F5(m,c,o,e,v,y):x;var w=x.get("snap"),b=x.get("triggerEmphasis"),S=ps(m.model),T=y||w||m.type==="category",I=n.axesInfo[S]={key:S,axis:m,coordSys:s,axisPointerModel:x,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:w,useHandle:bf(x),seriesModels:[],linkGroup:null};u[S]=I,n.seriesInvolved=n.seriesInvolved||T;var C=G5(r,m);if(C!=null){var A=a[C]||(a[C]={axesInfo:{}});A.axesInfo[S]=I,A.mapper=r[C].mapper,I.linkGroup=A}}}})}function F5(n,e,t,i,o,r){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(d){l[d]=q(a.get(d))}),l.snap=n.type!=="category"&&!!r,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),o==="cross"){var h=a.get(["label","show"]);if(u.show=h!=null?h:!0,!r){var c=l.lineStyle=a.get("crossStyle");c&&K(u,c.textStyle)}}return n.model.getModel("axisPointer",new Ot(l,t,i))}function W5(n,e){e.eachSeries(function(t){var i=t.coordinateSystem,o=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);!i||o==="none"||o===!1||o==="item"||r===!1||t.get(["axisPointer","show"],!0)===!1||M(n.coordSysAxesInfo[ps(i.model)],function(a){var s=a.axis;i.getAxis(s.dim)===s&&(a.seriesModels.push(t),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=t.getData().count())})})}function G5(n,e){for(var t=e.model,i=e.dim,o=0;o<n.length;o++){var r=n[o]||{};if(xf(r[i+"AxisId"],t.id)||xf(r[i+"AxisIndex"],t.componentIndex)||xf(r[i+"AxisName"],t.name))return o}}function xf(n,e){return n==="all"||V(n)&<(n,e)>=0||n===e}function H5(n){var e=_f(n);if(e){var t=e.axisPointerModel,i=e.axis.scale,o=t.option,r=t.get("status"),a=t.get("value");a!=null&&(a=i.parse(a));var s=bf(t);r==null&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),o.value=a,s&&(o.status=e.axis.scale.isBlank()?"hide":"show")}}function _f(n){var e=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ps(n)]}function Y5(n){var e=_f(n);return e&&e.axisPointerModel}function bf(n){return!!n.get(["handle","show"])}function ps(n){return n.type+"||"+n.id}var Ub={},U5=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){this.axisPointerClass&&H5(t),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,o,!0)},e.prototype.updateAxisPointer=function(t,i,o,r){this._doUpdateAxisPointerClass(t,o,!1)},e.prototype.remove=function(t,i){var o=this._axisPointer;o&&o.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),n.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,o){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var a=Y5(t);a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,i,o):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){Ub[t]=i},e.getAxisPointerClass=function(t){return t&&Ub[t]},e.type="axis",e}(zt);const Cr=U5;var wf=_t();function Xb(n,e,t,i){var o=t.axis;if(!o.scale.isBlank()){var r=t.getModel("splitArea"),a=r.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=o.getTicksCoords({tickModel:r,clamp:!0});if(u.length){var h=s.length,c=wf(n).splitAreaColors,d=X(),p=0;if(c)for(var f=0;f<u.length;f++){var g=c.get(u[f].tickValue);if(g!=null){p=(g+(h-1)*f)%h;break}}var v=o.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=V(s)?s:[s];for(var f=1;f<u.length;f++){var m=o.toGlobalCoord(u[f].coord),x=void 0,_=void 0,w=void 0,b=void 0;o.isHorizontal()?(x=v,_=l.y,w=m-x,b=l.height,v=x+w):(x=l.x,_=v,w=l.width,b=m-_,v=_+b);var S=u[f-1].tickValue;S!=null&&d.set(S,p),e.add(new yt({anid:S!=null?"area_"+S:null,shape:{x,y:_,width:w,height:b},style:K({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%h}wf(n).splitAreaColors=d}}}function Zb(n){wf(n).splitAreaColors=null}var X5=["axisLine","axisTickLabel","axisName"],Z5=["splitArea","splitLine","minorSplitLine"],jb=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,o,r){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=vf(s,t),u=new ti(t,N({handleAutoShown:function(c){for(var d=s.coordinateSystem.getCartesians(),p=0;p<d.length;p++)if(Hd(d[p].getOtherAxis(t.axis).scale))return!0;return!1}},l));M(X5,u.add,u),this._axisGroup.add(u.getGroup()),M(Z5,function(c){t.get([c,"show"])&&j5[c](this,this._axisGroup,t,s)},this);var h=r&&r.type==="changeAxisOrder"&&r.isInitSort;h||ka(a,this._axisGroup,t),n.prototype.render.call(this,t,i,o,r)}},e.prototype.remove=function(){Zb(this)},e.type="cartesianAxis",e}(Cr),j5={splitLine:function(n,e,t,i){var o=t.axis;if(!o.scale.isBlank()){var r=t.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=V(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=o.isHorizontal(),h=0,c=o.getTicksCoords({tickModel:r}),d=[],p=[],f=a.getLineStyle(),g=0;g<c.length;g++){var v=o.toGlobalCoord(c[g].coord);u?(d[0]=v,d[1]=l.y,p[0]=v,p[1]=l.y+l.height):(d[0]=l.x,d[1]=v,p[0]=l.x+l.width,p[1]=v);var y=h++%s.length,m=c[g].tickValue,x=new qt({anid:m!=null?"line_"+c[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:K({stroke:s[y]},f),silent:!0});rr(x.shape,f.lineWidth),e.add(x)}}},minorSplitLine:function(n,e,t,i){var o=t.axis,r=t.getModel("minorSplitLine"),a=r.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var h=[],c=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var f=0;f<u[p].length;f++){var g=o.toGlobalCoord(u[p][f].coord);l?(h[0]=g,h[1]=s.y,c[0]=g,c[1]=s.y+s.height):(h[0]=s.x,h[1]=g,c[0]=s.x+s.width,c[1]=g);var v=new qt({anid:"minor_line_"+u[p][f].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:d,silent:!0});rr(v.shape,d.lineWidth),e.add(v)}},splitArea:function(n,e,t,i){Xb(n,e,t,i)}},qb=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(jb),q5=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=qb.type,t}return e.type="yAxis",e}(jb),K5=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new yt({shape:t.coordinateSystem.getRect(),style:K({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(zt),Kb={offset:0};function $b(n){n.registerComponentView(K5),n.registerComponentModel(_5),n.registerCoordinateSystem("cartesian2d",L5),Tr(n,"x",df,Kb),Tr(n,"y",df,Kb),n.registerComponentView(qb),n.registerComponentView(q5),n.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function $5(n){$t($b),n.registerSeriesModel(p5),n.registerChartView(m5),n.registerLayout(Vu("scatter"))}function Q5(n){n.eachSeriesByType("radar",function(e){var t=e.getData(),i=[],o=e.coordinateSystem;if(o){var r=o.getIndicatorAxes();M(r,function(a,s){t.each(t.mapDimension(r[s].dim),function(l,u){i[u]=i[u]||[];var h=o.dataToPoint(l,s);i[u][s]=Qb(h)?h:Jb(o)})}),t.each(function(a){var s=tv(i[a],function(l){return Qb(l)})||Jb(o);i[a].push(s.slice()),t.setItemLayout(a,i[a])})}})}function Qb(n){return!isNaN(n[0])&&!isNaN(n[1])}function Jb(n){return[n.cx,n.cy]}function J5(n){var e=n.polar;if(e){V(e)||(e=[e]);var t=[];M(e,function(i,o){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),n.radar=n.radar||[],V(n.radar)||(n.radar=[n.radar]),n.radar.push(i)):t.push(i)}),n.polar=t}M(n.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var tN=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.coordinateSystem,a=this.group,s=t.getData(),l=this._data;function u(d,p){var f=d.getItemVisual(p,"symbol")||"circle";if(f!=="none"){var g=su(d.getItemVisual(p,"symbolSize")),v=Ft(f,-1,-1,2,2),y=d.getItemVisual(p,"symbolRotate")||0;return v.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:y*Math.PI/180||0}),v}}function h(d,p,f,g,v,y){f.removeAll();for(var m=0;m<p.length-1;m++){var x=u(g,v);x&&(x.__dimIdx=m,d[m]?(x.setPosition(d[m]),uo[y?"initProps":"updateProps"](x,{x:p[m][0],y:p[m][1]},t,v)):x.setPosition(p[m]),f.add(x))}}function c(d){return F(d,function(p){return[r.cx,r.cy]})}s.diff(l).add(function(d){var p=s.getItemLayout(d);if(p){var f=new An,g=new Be,v={shape:{points:p}};f.shape.points=c(p),g.shape.points=c(p),Yt(f,v,t,d),Yt(g,v,t,d);var y=new it,m=new it;y.add(g),y.add(f),y.add(m),h(g.shape.points,p,m,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,p){var f=l.getItemGraphicEl(p),g=f.childAt(0),v=f.childAt(1),y=f.childAt(2),m={shape:{points:s.getItemLayout(d)}};m.shape.points&&(h(g.shape.points,m.shape.points,y,s,d,!1),or(v),or(g),Tt(g,m,t),Tt(v,m,t),s.setItemGraphicEl(d,f))}).remove(function(d){a.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,p){var f=s.getItemModel(p),g=d.childAt(0),v=d.childAt(1),y=d.childAt(2),m=s.getItemVisual(p,"style"),x=m.fill;a.add(d),g.useStyle(K(f.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),Kn(g,f,"lineStyle"),Kn(v,f,"areaStyle");var _=f.getModel("areaStyle"),w=_.isEmpty()&&_.parentModel.isEmpty();v.ignore=w,M(["emphasis","select","blur"],function(T){var I=f.getModel([T,"areaStyle"]),C=I.isEmpty()&&I.parentModel.isEmpty();v.ensureState(T).ignore=C&&w}),v.useStyle(K(_.getAreaStyle(),{fill:x,opacity:.7,decal:m.decal}));var b=f.getModel("emphasis"),S=b.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof ee){var I=T.style;T.useStyle(N({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},m))}else T.useStyle(m),T.setColor(x),T.style.strokeNoScale=!0;var C=T.ensureState("emphasis");C.style=q(S);var A=s.getStore().get(s.getDimensionIndex(T.__dimIdx),p);(A==null||isNaN(A))&&(A=""),Dn(T,kn(f),{labelFetcher:s.hostModel,labelDataIndex:p,labelDimIndex:T.__dimIdx,defaultText:A,inheritColor:x,defaultOpacity:m.opacity})}),nn(d,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}(oe);const eN=tN;var nN=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new pf(Y(this.getData,this),Y(this.getRawData,this))},e.prototype.getInitialData=function(t,i){return cs(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=this.coordinateSystem,s=a.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,h=k1(this,t);return sn("section",{header:u,sortBlocks:!0,blocks:F(s,function(c){var d=r.get(r.mapDimension(c.dim),t);return sn("nameValue",{markerType:"subItem",markerColor:h,name:c.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var i=this.getData(),o=this.coordinateSystem,r=i.getValues(F(o.dimensions,function(u){return i.mapDimension(u)}),t),a=0,s=r.length;a<s;a++)if(!isNaN(r[a])){var l=o.getIndicatorAxes();return o.coordToPoint(l[a].dataToCoord(r[a]),a)}}},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}(Ce);const iN=nN;var ds=Ob.value;function Xu(n,e){return K({show:e},n)}var oN=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),i=this.get("splitNumber"),o=this.get("scale"),r=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),d=this.get("triggerEvent"),p=F(this.get("indicator")||[],function(f){f.max!=null&&f.max>0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var g=l;f.color!=null&&(g=K({color:f.color},l));var v=et(q(f),{boundaryGap:t,splitNumber:i,scale:o,axisLine:r,axisTick:a,axisLabel:s,name:f.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:d},!1);if(G(h)){var y=v.name;v.name=h.replace("{value}",y!=null?y:"")}else $(h)&&(v.name=h(v.name,v));var m=new Ot(v,null,this.ecModel);return Ut(m,ss.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=p},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:et({lineStyle:{color:"#bbb"}},ds.axisLine),axisLabel:Xu(ds.axisLabel,!1),axisTick:Xu(ds.axisTick,!1),splitLine:Xu(ds.splitLine,!0),splitArea:Xu(ds.splitArea,!0),indicator:[]},e}(ft);const rN=oN;var aN=["axisLine","axisTickLabel","axisName"],sN=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group;r.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),r=F(o,function(a){var s=a.model.get("showName")?a.name:"",l=new ti(a.model,{axisName:s,position:[i.cx,i.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(r,function(a){M(aN,a.add,a),this.group.add(a.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes();if(!o.length)return;var r=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),d=l.get("color"),p=u.get("color"),f=V(d)?d:[d],g=V(p)?p:[p],v=[],y=[];function m(L,O,E){var R=E%O.length;return L[R]=L[R]||[],R}if(r==="circle")for(var x=o[0].getTicksCoords(),_=i.cx,w=i.cy,b=0;b<x.length;b++){if(h){var S=m(v,f,b);v[S].push(new $n({shape:{cx:_,cy:w,r:x[b].coord}}))}if(c&&b<x.length-1){var S=m(y,g,b);y[S].push(new Ia({shape:{cx:_,cy:w,r0:x[b].coord,r:x[b+1].coord}}))}}else for(var T,I=F(o,function(O,E){var R=O.getTicksCoords();return T=T==null?R.length-1:Math.min(R.length-1,T),F(R,function(B){return i.coordToPoint(B.coord,E)})}),C=[],b=0;b<=T;b++){for(var A=[],D=0;D<o.length;D++)A.push(I[D][b]);if(A[0]&&A.push(A[0].slice()),h){var S=m(v,f,b);v[S].push(new Be({shape:{points:A}}))}if(c&&C){var S=m(y,g,b-1);y[S].push(new An({shape:{points:A.concat(C)}}))}C=A.slice().reverse()}var k=l.getLineStyle(),P=u.getAreaStyle();M(y,function(L,O){this.group.add(Ve(L,{style:K({stroke:"none",fill:g[O%g.length]},P),silent:!0}))},this),M(v,function(L,O){this.group.add(Ve(L,{style:K({fill:"none",stroke:f[O%f.length]},k),silent:!0}))},this)},e.type="radar",e}(zt);const lN=sN;var uN=function(n){z(e,n);function e(t,i,o){var r=n.call(this,t,i,o)||this;return r.type="value",r.angle=0,r.name="",r}return e}(cn);const hN=uN;var cN=function(){function n(e,t,i){this.dimensions=[],this._model=e,this._indicatorAxes=F(e.getIndicatorModels(),function(o,r){var a="indicator_"+r,s=new hN(a,new Ci);return s.name=o.get("name"),s.model=o,o.axis=s,this.dimensions.push(a),s},this),this.resize(e,i)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},n.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],o=i.angle,r=this.cx+e*Math.cos(o),a=this.cy-e*Math.sin(o);return[r,a]},n.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,o=Math.sqrt(t*t+i*i);t/=o,i/=o;for(var r=Math.atan2(-i,t),a=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var h=this._indicatorAxes[u],c=Math.abs(r-h.angle);c<a&&(s=h,l=u,a=c)}return[l,+(s&&s.coordToData(o))]},n.prototype.resize=function(e,t){var i=e.get("center"),o=t.getWidth(),r=t.getHeight(),a=Math.min(o,r)/2;this.cx=U(i[0],o),this.cy=U(i[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(G(s)||vt(s))&&(s=[0,s]),this.r0=U(s[0],a),this.r=U(s[1],a),M(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var h=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;h=Math.atan2(Math.sin(h),Math.cos(h)),l.angle=h},this)},n.prototype.update=function(e,t){var i=this._indicatorAxes,o=this._model;M(i,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"))!==o)){var u=s.getData();M(i,function(h){h.scale.unionExtentFromData(u,u.mapDimension(h.dim))})}},this);var r=o.get("splitNumber"),a=new Ci;a.setExtent(0,r),a.setInterval(1),M(i,function(s,l){Eb(s.scale,s.model,a)})},n.prototype.convertToPixel=function(e,t,i){return null},n.prototype.convertFromPixel=function(e,t,i){return null},n.prototype.containPoint=function(e){return!1},n.create=function(e,t){var i=[];return e.eachComponent("radar",function(o){var r=new n(o,e,t);i.push(r),o.coordinateSystem=r}),e.eachSeriesByType("radar",function(o){o.get("coordinateSystem")==="radar"&&(o.coordinateSystem=i[o.get("radarIndex")||0])}),i},n.dimensions=[],n}();const pN=cN;function tw(n){n.registerCoordinateSystem("radar",pN),n.registerComponentModel(rN),n.registerComponentView(lN),n.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(i){t.setItemVisual(i,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function dN(n){$t(tw),n.registerChartView(eN),n.registerSeriesModel(iN),n.registerLayout(Q5),n.registerProcessor(hf("radar")),n.registerPreprocessor(J5)}var ew="\0_ec_interaction_mutex";function fN(n,e,t){var i=Sf(n);i[e]=t}function gN(n,e,t){var i=Sf(n),o=i[e];o===t&&(i[e]=null)}function nw(n,e){return!!Sf(n)[e]}function Sf(n){return n[ew]||(n[ew]={})}un({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Et);var vN=function(n){z(e,n);function e(t){var i=n.call(this)||this;i._zr=t;var o=Y(i._mousedownHandler,i),r=Y(i._mousemoveHandler,i),a=Y(i._mouseupHandler,i),s=Y(i._mousewheelHandler,i),l=Y(i._pinchHandler,i);return i.enable=function(u,h){this.disable(),this._opt=K(q(h)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",o),t.on("mousemove",r),t.on("mouseup",a)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},i.disable=function(){t.off("mousedown",o),t.off("mousemove",r),t.off("mouseup",a),t.off("mousewheel",s),t.off("pinch",l)},i}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(!fv(t)){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var o=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,o,r)&&(this._x=o,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Zu("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||nw(this._zr,"globalPan"))){var i=t.offsetX,o=t.offsetY,r=this._x,a=this._y,s=i-r,l=o-a;this._x=i,this._y=o,this._opt.preventDefaultMouseMove&&Hn(t.event),iw(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:r,oldY:a,newX:i,newY:o,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){fv(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var i=Zu("zoomOnMouseWheel",t,this._opt),o=Zu("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,a=Math.abs(r),s=t.offsetX,l=t.offsetY;if(!(r===0||!i&&!o)){if(i){var u=a>3?1.4:a>1?1.2:1.1,h=r>0?u:1/u;Mf(this,"zoom","zoomOnMouseWheel",t,{scale:h,originX:s,originY:l,isAvailableBehavior:null})}if(o){var c=Math.abs(r),d=(r>0?1:-1)*(c>3?.4:c>1?.15:.05);Mf(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!nw(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:.9090909090909091;Mf(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(ke);function Mf(n,e,t,i,o){n.pointerChecker&&n.pointerChecker(i,o.originX,o.originY)&&(Hn(i.event),iw(n,e,t,i,o))}function iw(n,e,t,i,o){o.isAvailableBehavior=Y(Zu,null,t,i),n.trigger(e,o)}function Zu(n,e,t){var i=t[n];return!n||i&&(!G(i)||e.event[i+"Key"])}const Tf=vN;function ow(n,e,t){var i=n.target;i.x+=e,i.y+=t,i.dirty()}function rw(n,e,t,i){var o=n.target,r=n.zoomLimit,a=n.zoom=n.zoom||1;if(a*=e,r){var s=r.min||0,l=r.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/n.zoom;n.zoom=a,o.x-=(t-o.x)*(u-1),o.y-=(i-o.y)*(u-1),o.scaleX*=u,o.scaleY*=u,o.dirty()}var yN={axisPointer:1,tooltip:1,brush:1};function Cf(n,e,t){var i=e.getComponentByElement(n.topTarget),o=i&&i.coordinateSystem;return i&&i!==t&&!yN.hasOwnProperty(i.mainType)&&o&&o.model!==t}function aw(n){if(G(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var If,ju={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"},sw=at(ju),qu={"alignment-baseline":"textBaseline","stop-color":"stopColor"},lw=at(qu),mN=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var i=aw(e);this._defsUsePending=[];var o=new it;this._root=o;var r=[],a=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ie(i,o,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,o,r,null,!1,!1),u=u.nextSibling;bN(this._defs,this._defsUsePending),this._defsUsePending=[];var h,c;if(a){var d=Ku(a);d.length>=4&&(h={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(h&&s!=null&&l!=null&&(c=vw(h,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var p=o;o=new it,o.add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&o.setClipPath(new yt({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:h,viewBoxTransform:c,named:r}},n.prototype._parseNode=function(e,t,i,o,r,a){var s=e.nodeName.toLowerCase(),l,u=o;if(s==="defs"&&(r=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=t;else{if(!r){var h=If[s];if(h&&H(If,s)){l=h.call(this,e,t);var c=e.getAttribute("name");if(c){var d={name:c,namedFrom:null,svgNodeTagLower:s,el:l};i.push(d),s==="g"&&(u=d)}else o&&i.push({name:o.name,namedFrom:o,svgNodeTagLower:s,el:l});t.add(l)}}var p=uw[s];if(p&&H(uw,s)){var f=p.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=f)}}if(l&&l.isGroup)for(var v=e.firstChild;v;)v.nodeType===1?this._parseNode(v,l,i,u,r,a):v.nodeType===3&&a&&this._parseText(v,l),v=v.nextSibling},n.prototype._parseText=function(e,t){var i=new xa({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),xN(i,t);var o=i.style,r=o.fontSize;r&&r<9&&(o.fontSize=9,i.scaleX*=r/9,i.scaleY*=r/9);var a=(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ");o.font=a;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},n.internalField=function(){If={g:function(e,t){var i=new it;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new yt;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},circle:function(e,t){var i=new $n;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new qt;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},ellipse:function(e,t){var i=new Cl;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),o;i&&(o=pw(i));var r=new An({shape:{points:o||[]},silent:!0});return Xe(t,r),Ie(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var i=e.getAttribute("points"),o;i&&(o=pw(i));var r=new Be({shape:{points:o||[]},silent:!0});return Xe(t,r),Ie(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var i=new ee;return Xe(t,i),Ie(e,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",o=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(o)+parseFloat(a);var s=new it;return Xe(t,s),Ie(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),o=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),o!=null&&(this._textY=parseFloat(o));var r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",s=new it;return Xe(t,s),Ie(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(a),s},path:function(e,t){var i=e.getAttribute("d")||"",o=Om(i);return Xe(t,o),Ie(e,o,this._defsUsePending,!1,!1),o.silent=!0,o}}}(),n}(),uw={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),i=parseInt(n.getAttribute("x2")||"10",10),o=parseInt(n.getAttribute("y2")||"0",10),r=new Aa(e,t,i,o);return hw(n,r),cw(n,r),r},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),i=parseInt(n.getAttribute("r")||"0",10),o=new gp(e,t,i);return hw(n,o),cw(n,o),o}};function hw(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function cw(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),o=void 0;i&&i.indexOf("%")>0?o=parseInt(i,10)/100:i?o=parseFloat(i):o=0;var r={};gw(t,r,r);var a=r.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:o,color:a})}t=t.nextSibling}}function Xe(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),K(e.__inheritedStyle,n.__inheritedStyle))}function pw(n){for(var e=Ku(n),t=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);t.push([o,r])}return t}function Ie(n,e,t,i,o){var r=e,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};n.nodeType===1&&(MN(n,e),gw(n,a,s),i||TN(n,a,s)),r.style=r.style||{},a.fill!=null&&(r.style.fill=dw(r,"fill",a.fill,t)),a.stroke!=null&&(r.style.stroke=dw(r,"stroke",a.stroke,t)),M(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(r.style[l]=parseFloat(a[l]))}),M(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(r.style[l]=a[l])}),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=F(Ku(a.lineDash),function(l){return parseFloat(l)})),(a.visibility==="hidden"||a.visibility==="collapse")&&(r.invisible=!0),a.display==="none"&&(r.ignore=!0)}function xN(n,e){var t=e.__selfStyle;if(t){var i=t.textBaseline,o=i;!i||i==="auto"||i==="baseline"?o="alphabetic":i==="before-edge"||i==="text-before-edge"?o="top":i==="after-edge"||i==="text-after-edge"?o="bottom":(i==="central"||i==="mathematical")&&(o="middle"),n.style.textBaseline=o}var r=e.__inheritedStyle;if(r){var a=r.textAlign,s=a;a&&(a==="middle"&&(s="center"),n.style.textAlign=s)}}var _N=/^url\(\s*#(.*?)\)/;function dw(n,e,t,i){var o=t&&t.match(_N);if(o){var r=De(o[1]);i.push([n,e,r]);return}return t==="none"&&(t=null),t}function bN(n,e){for(var t=0;t<e.length;t++){var i=e[t];i[0].style[i[1]]=n[i[2]]}}var wN=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ku(n){return n.match(wN)||[]}var SN=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Af=Math.PI/180;function MN(n,e){var t=n.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],o=null;t.replace(SN,function(c,d,p){return i.push(d,p),""});for(var r=i.length-1;r>0;r-=2){var a=i[r],s=i[r-1],l=Ku(a);switch(o=o||me(),s){case"translate":vn(o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Es(o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":si(o,o,-parseFloat(l[0])*Af,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Af);gn(o,[1,0,u,1,0,0],o);break;case"skewY":var h=Math.tan(parseFloat(l[0])*Af);gn(o,[1,h,0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5]);break}}e.setLocalTransform(o)}}var fw=/([^\s:;]+)\s*:\s*([^:;]+)/g;function gw(n,e,t){var i=n.getAttribute("style");if(i){fw.lastIndex=0;for(var o;(o=fw.exec(i))!=null;){var r=o[1],a=H(ju,r)?ju[r]:null;a&&(e[a]=o[2]);var s=H(qu,r)?qu[r]:null;s&&(t[s]=o[2])}}}function TN(n,e,t){for(var i=0;i<sw.length;i++){var o=sw[i],r=n.getAttribute(o);r!=null&&(e[ju[o]]=r)}for(var i=0;i<lw.length;i++){var o=lw[i],r=n.getAttribute(o);r!=null&&(t[qu[o]]=r)}}function vw(n,e){var t=e.width/n.width,i=e.height/n.height,o=Math.min(t,i);return{scale:o,x:-(n.x+n.width/2)*o+(e.x+e.width/2),y:-(n.y+n.height/2)*o+(e.y+e.height/2)}}function CN(n,e){var t=new mN;return t.parse(n,e)}var IN=X(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),AN=function(){function n(e,t){this.type="geoSVG",this._usedGraphicMap=X(),this._freedGraphics=[],this._mapName=e,this._parsedXML=aw(t)}return n.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=kN(e.named),i=t.regions,o=t.regionsMap;this._regions=i,this._regionsMap=o}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(e){var t,i;try{t=e&&CN(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=t.root,Jt(i!=null)}catch(v){throw new Error(`Invalid svg format
- `+v.message)}var o=new it;o.add(i),o.isGeoSVGGraphicRoot=!0;var r=t.width,a=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,h=void 0,c=void 0,d=void 0;if(r!=null?(u=0,c=r):s&&(u=s.x,c=s.width),a!=null?(h=0,d=a):s&&(h=s.y,d=s.height),u==null||h==null){var p=i.getBoundingRect();u==null&&(u=p.x,c=p.width),h==null&&(h=p.y,d=p.height)}l=this._boundingRect=new ut(u,h,c,d)}if(s){var f=vw(s,l);i.scaleX=i.scaleY=f.scale,i.x=f.x,i.y=f.y}o.setClipPath(new yt({shape:l.plain()}));var g=[];return M(t.named,function(v){IN.get(v.svgNodeTagLower)!=null&&(g.push(v),DN(v.el))}),{root:o,boundingRect:l,named:g}},n.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i)},n.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);i&&(t.removeKey(e),this._freedGraphics.push(i))},n}();function DN(n){n.silent=!1,n.isGroup&&n.traverse(function(e){e.silent=!1})}function kN(n){var e=[],t=X();return M(n,function(i){if(i.namedFrom==null){var o=new HO(i.name,i.el);e.push(o),t.set(i.name,o)}}),{regions:e,regionsMap:t}}for(var Df=[126,25],yw="\u5357\u6D77\u8BF8\u5C9B",Co=[[[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]]],Io=0;Io<Co.length;Io++)for(var Ir=0;Ir<Co[Io].length;Ir++)Co[Io][Ir][0]/=10.5,Co[Io][Ir][1]/=-10.5/.75,Co[Io][Ir][0]+=Df[0],Co[Io][Ir][1]+=Df[1];function PN(n,e){if(n==="china"){for(var t=0;t<e.length;t++)if(e[t].name===yw)return;e.push(new O_(yw,F(Co,function(i){return{type:"polygon",exterior:i}}),Df))}}var LN={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function ON(n,e){if(n==="china"){var t=LN[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/(10.5/.75),e.setCenter(i)}}}var RN=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function NN(n,e){n==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:RN[0]})}var zN="name",BN=function(){function n(e,t,i){this.type="geoJSON",this._parsedMap=X(),this._mapName=e,this._specialAreas=i,this._geoJSON=VN(t)}return n.prototype.load=function(e,t){t=t||zN;var i=this._parsedMap.get(t);if(!i){var o=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:o,boundingRect:EN(o)})}var r=X(),a=[];return M(i.regions,function(s){var l=s.name;e&&H(e,l)&&(s=s.cloneShallow(l=e[l])),a.push(s),r.set(l,s)}),{regions:a,boundingRect:i.boundingRect||new ut(0,0,0,0),regionsMap:r}},n.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,o;try{o=i?N_(i,e):[]}catch(r){throw new Error(`Invalid geoJson format
- `+r.message)}return PN(t,o),M(o,function(r){var a=r.name;ON(t,r),NN(t,r);var s=this._specialAreas&&this._specialAreas[a];s&&r.transformTo(s.left,s.top,s.width,s.height)},this),o},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n}();function EN(n){for(var e,t=0;t<n.length;t++){var i=n[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function VN(n){return G(n)?typeof JSON<"u"&&JSON.parse?JSON.parse(n):new Function("return ("+n+");")():n}var fs=X();const ei={registerMap:function(n,e,t){if(e.svg){var i=new AN(n,e.svg);fs.set(n,i)}else{var o=e.geoJson||e.geoJSON;o&&!e.features?t=e.specialAreas:o=e;var i=new BN(n,o,t);fs.set(n,i)}},getGeoResource:function(n){return fs.get(n)},getMapForUser:function(n){var e=fs.get(n);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(n,e,t){var i=fs.get(n);if(i)return i.load(e,t)}};var kf=["rect","circle","line","ellipse","polygon","polyline","path"],FN=X(kf),WN=X(kf.concat(["g"])),GN=X(kf.concat(["g"])),mw=_t();function $u(n){var e=n.getItemStyle(),t=n.get("areaColor");return t!=null&&(e.fill=t),e}function xw(n){var e=n.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var HN=function(){function n(e){var t=new it;this.uid=ur("ec_map_draw"),this._controller=new Tf(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new it),t.add(this._svgGroup=new it)}return n.prototype.draw=function(e,t,i,o,r){var a=e.mainType==="geo",s=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,h=this.group,c=l.getTransformInfo(),d=c.raw,p=c.roam,f=!u.childAt(0)||r;f?(h.x=p.x,h.y=p.y,h.scaleX=p.scaleX,h.scaleY=p.scaleY,h.dirty()):Tt(h,p,e);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,v={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(v):l.resourceType==="geoSVG"&&this._buildSVG(v),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,o)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=X(),i=X(),o=this._regionsGroup,r=e.transformInfoRaw,a=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function h(p,f){return f&&(p=f(p)),p&&[p[0]*r.scaleX+r.x,p[1]*r.scaleY+r.y]}function c(p){for(var f=[],g=!u&&l&&l.project,v=0;v<p.length;++v){var y=h(p[v],g);y&&f.push(y)}return f}function d(p){return{shape:{points:c(p)}}}o.removeAll(),M(e.geo.regions,function(p){var f=p.name,g=t.get(f),v=i.get(f)||{},y=v.dataIdx,m=v.regionModel;g||(g=t.set(f,new it),o.add(g),y=s?s.indexOfName(f):null,m=e.isGeo?a.getRegionModel(f):s?s.getItemModel(y):null,i.set(f,{dataIdx:y,regionModel:m}));var x=[],_=[];M(p.geometries,function(S){if(S.type==="polygon"){var T=[S.exterior].concat(S.interiors||[]);u&&(T=Tw(T,u)),M(T,function(C){x.push(new An(d(C)))})}else{var I=S.points;u&&(I=Tw(I,u,!0)),M(I,function(C){_.push(new Be(d(C)))})}});var w=h(p.getCenter(),l&&l.project);function b(S,T){if(S.length){var I=new Dl({culling:!0,segmentIgnoreThreshold:1,shape:{paths:S}});g.add(I),_w(e,I,y,m),bw(e,I,f,m,a,y,w),T&&(xw(I),M(I.states,xw))}}b(x),b(_,!0)}),t.each(function(p,f){var g=i.get(f),v=g.dataIdx,y=g.regionModel;ww(e,p,f,y,a,v),Sw(e,p,f,y,a),Mw(e,p,f,y,a)},this)},n.prototype._buildSVG=function(e){var t=e.geo.map,i=e.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var o=this._svgDispatcherMap=X(),r=!1;M(this._svgGraphicRecord.named,function(a){var s=a.name,l=e.mapOrGeoModel,u=e.data,h=a.svgNodeTagLower,c=a.el,d=u?u.indexOfName(s):null,p=l.getRegionModel(s);if(FN.get(h)!=null&&c instanceof wn&&_w(e,c,d,p),c instanceof wn&&(c.culling=!0),c.z2EmphasisLift=0,!a.namedFrom&&(GN.get(h)!=null&&bw(e,c,s,p,l,d,null),ww(e,c,s,p,l,d),Sw(e,c,s,p,l),WN.get(h)!=null)){var f=Mw(e,c,s,p,l);f==="self"&&(r=!0);var g=o.get(s)||o.set(s,[]);g.push(c)}},this),this._enableBlurEntireSVG(r,e)},n.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var i=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),o=i.opacity;this._svgGraphicRecord.root.traverse(function(r){if(!r.isGroup){bl(r);var a=r.ensureState("blur").style||{};a.opacity==null&&o!=null&&(a.opacity=o),r.ensureState("emphasis")}})}},n.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},n.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var i=t.coordinateSystem;if(i.resourceType==="geoJSON"){var o=this._regionsGroupByName;if(o){var r=o.get(e);return r?[r]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},n.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},n.prototype._useSVG=function(e){var t=ei.getGeoResource(e);if(t&&t.type==="geoSVG"){var i=t.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=e}},n.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=ei.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},n.prototype._updateController=function(e,t,i){var o=e.coordinateSystem,r=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=o.getZoom(),r.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}r.off("pan").on("pan",function(u){this._mouseDownFlag=!1,ow(a,u.dx,u.dy),i.dispatchAction(N(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),r.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,rw(a,u.scale,u.originX,u.originY),i.dispatchAction(N(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),r.setPointerChecker(function(u,h,c){return o.containPoint([h,c])&&!Cf(u,i,e)})},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=mw(t).ignore)})},n.prototype._updateMapSelectHandler=function(e,t,i,o){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){r._mouseDownFlag=!0}),t.on("click",function(a){r._mouseDownFlag&&(r._mouseDownFlag=!1)}))},n}();function _w(n,e,t,i){var o=i.getModel("itemStyle"),r=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=$u(o),u=$u(r),h=$u(s),c=$u(a),d=n.data;if(d){var p=d.getItemVisual(t,"style"),f=d.getItemVisual(t,"decal");n.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=Ka(f,n.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=h,e.ensureState("blur").style=c,bl(e)}function bw(n,e,t,i,o,r,a){var s=n.data,l=n.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),r)),h=s&&s.getItemLayout(r);if(l||u||h&&h.showLabel){var c=l?t:r,d=void 0;(!s||r>=0)&&(d=o);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Dn(e,kn(i),{labelFetcher:d,labelDataIndex:c,defaultText:t},p);var f=e.getTextContent();if(f&&(mw(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function ww(n,e,t,i,o,r){n.data?n.data.setItemGraphicEl(r,e):rt(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:t,region:i&&i.option||{}}}function Sw(n,e,t,i,o){n.data||sr({el:e,componentModel:o,itemName:t,itemTooltipOption:i.get("tooltip")})}function Mw(n,e,t,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var r=i.getModel("emphasis"),a=r.get("focus");return nn(e,a,r.get("blurScope"),r.get("disabled")),n.isGeo&&BA(e,o,t),a}function Tw(n,e,t){var i=[],o;function r(){o=[]}function a(){o.length&&(i.push(o),o=[])}var s=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&o.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,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(),i}const Cw=HN;var YN=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){if(!(r&&r.type==="mapToggleSelect"&&r.from===this.uid)){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&r.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),r&&r.type==="geoRoam"&&r.componentType==="series"&&r.seriesId===t.id){var s=this._mapDraw;s&&a.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new Cw(o);a.add(s.group),s.draw(t,i,o,this,r),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(t,i,o)}}},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,i,o){var r=t.originalData,a=this.group;r.each(r.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=r.getItemLayout(l);if(!(!u||!u.point)){var h=u.point,c=u.offset,d=new $n({style:{fill:t.getData().getVisual("style").fill},shape:{cx:h[0]+c*9,cy:h[1],r:3},silent:!0,z2:8+(c?0:ip+1)});if(!c){var p=t.mainSeries.getData(),f=r.getName(l),g=p.indexOfName(f),v=r.getItemModel(l),y=v.getModel("label"),m=p.getItemGraphicEl(g);Dn(d,kn(v),{labelFetcher:{getFormattedLabel:function(x,_){return t.getFormattedLabel(g,_)}},defaultText:f}),d.disableLabelAnimation=!0,y.get("position")||d.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(x){_l(d,x)}}a.add(d)}}})},e.type="map",e}(oe);const UN=YN;var XN=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(i){if(i!=null){var o=this.getData().getName(i),r=this.coordinateSystem,a=r.getRegion(o);return a&&r.dataToPoint(a.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var i=cs(this,{coordDimensions:["value"],encodeDefaulter:pt(Hp,this)}),o=X(),r=[],a=0,s=i.count();a<s;a++){var l=i.getName(a);o.set(l,!0)}var u=ei.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return M(u.regions,function(h){var c=h.name;o.get(c)||r.push(c)}),i.appendValues([],r),i},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 i=this.getData();return i.get(i.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},e.prototype.formatTooltip=function(t,i,o){for(var r=this.getData(),a=this.getRawValue(t),s=r.getName(t),l=this.seriesGroup,u=[],h=0;h<l.length;h++){var c=l[h].originalData.indexOfName(s),d=r.mapDimension("value");isNaN(l[h].originalData.get(d,c))||u.push(l[h].name)}return sn("section",{header:u.join(", "),noHeader:!u.length,blocks:[sn("nameValue",{name:s,value:a})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var i=t.icon||"roundRect",o=Ft(i,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return o.setStyle(t.itemStyle),o.style.stroke="none",i.indexOf("empty")>-1&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),o},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}(Ce);const ZN=XN;function jN(n,e){var t={};return M(n,function(i){i.each(i.mapDimension("value"),function(o,r){var a="ec-"+i.getName(r);t[a]=t[a]||[],isNaN(o)||t[a].push(o)})}),n[0].map(n[0].mapDimension("value"),function(i,o){for(var r="ec-"+n[0].getName(o),a=0,s=1/0,l=-1/0,u=t[r].length,h=0;h<u;h++)s=Math.min(s,t[r][h]),l=Math.max(l,t[r][h]),a+=t[r][h];var c;return e==="min"?c=s:e==="max"?c=l:e==="average"?c=a/u:c=a,u===0?NaN:c})}function qN(n){var e={};n.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),o=i?"o"+i.id:"i"+t.getMapType();(e[o]=e[o]||[]).push(t)}),M(e,function(t,i){for(var o=jN(F(t,function(a){return a.getData()}),t[0].get("mapValueCalculation")),r=0;r<t.length;r++)t[r].originalData=t[r].getData();for(var r=0;r<t.length;r++)t[r].seriesGroup=t,t[r].needsDrawMap=r===0&&!t[r].getHostGeoModel(),t[r].setData(o.cloneShallow()),t[r].mainSeries=t[0]})}function KN(n){var e={};n.eachSeriesByType("map",function(t){var i=t.getMapType();if(!(t.getHostGeoModel()||e[i])){var o={};M(t.seriesGroup,function(a){var s=a.coordinateSystem,l=a.originalData;a.get("showLegendSymbol")&&n.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,h){var c=l.getName(h),d=s.getRegion(c);if(!(!d||isNaN(u))){var p=o[c]||0,f=s.dataToPoint(d.getCenter());o[c]=p+1,l.setItemLayout(h,{point:f,offset:p})}})});var r=t.getData();r.each(function(a){var s=r.getName(a),l=r.getItemLayout(a)||{};l.showLabel=!o[s],r.setItemLayout(a,l)}),e[i]=!0}})}var Iw=Ht,$N=function(n){z(e,n);function e(t){var i=n.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new pi,i._rawTransformable=new pi,i.name=t,i}return e.prototype.setBoundingRect=function(t,i,o,r){return this._rect=new ut(t,i,o,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,i,o,r){this._transformTo(t,i,o,r),this._viewRect=new ut(t,i,o,r)},e.prototype._transformTo=function(t,i,o,r){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new ut(t,i,o,r));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,i){t&&(this._center=[U(t[0],i.getWidth()),U(t[1],i.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var i=this.zoomLimit;i&&(i.max!=null&&(t=Math.min(i.max,t)),i.min!=null&&(t=Math.max(i.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),i=t.x+t.width/2,o=t.y+t.height/2;return[i,o]},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(),i=this._roamTransformable,o=this.getDefaultCenter(),r=this.getCenter(),a=this.getZoom();r=Ht([],r,t),o=Ht([],o,t),i.originX=r[0],i.originY=r[1],i.x=o[0]-r[0],i.y=o[1]-r[1],i.scaleX=i.scaleY=a,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,i=this._rawTransformable;i.parent=t,t.updateTransform(),i.updateTransform(),Bs(this.transform||(this.transform=[]),i.transform||me()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],zi(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,i=this._roamTransformable,o=new pi;return o.transform=i.transform,o.decomposeTransform(),{roam:{x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.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,i,o){var r=i?this._rawTransform:this.transform;return o=o||[],r?Iw(o,t,r):kh(o,t)},e.prototype.pointToData=function(t){var i=this.invTransform;return i?Iw([],t,i):[t[0],t[1]]},e.prototype.convertToPixel=function(t,i,o){var r=Aw(i);return r===this?r.dataToPoint(o):null},e.prototype.convertFromPixel=function(t,i,o){var r=Aw(i);return r===this?r.pointToData(o):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(pi);function Aw(n){var e=n.seriesModel;return e?e.coordinateSystem:null}const Pf=$N;var QN={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Dw=["lng","lat"],kw=function(n){z(e,n);function e(t,i,o){var r=n.call(this,t)||this;r.dimensions=Dw,r.type="geo",r._nameCoordMap=X(),r.map=i;var a=o.projection,s=ei.load(i,o.nameMap,o.nameProperty),l=ei.getGeoResource(i);r.resourceType=l?l.type:null;var u=r.regions=s.regions,h=QN[l.type];r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a;var c;if(a)for(var d=0;d<u.length;d++){var p=u[d].getBoundingRect(a);c=c||p.clone(),c.union(p)}else c=s.boundingRect;return r.setBoundingRect(c.x,c.y,c.width,c.height),r.aspectScale=a?1:J(o.aspectScale,h.aspectScale),r._invertLongitute=a?!1:h.invertLongitute,r}return e.prototype._transformTo=function(t,i,o,r){var a=this.getBoundingRect(),s=this._invertLongitute;a=a.clone(),s&&(a.y=-a.y-a.height);var l=this._rawTransformable;l.transform=a.calculateTransform(new ut(t,i,o,r));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 i=this.regions,o=0;o<i.length;o++){var r=i[o];if(r.type==="geoJSON"&&r.contain(t))return i[o]}},e.prototype.addGeoCoord=function(t,i){this._nameCoordMap.set(t,i)},e.prototype.getGeoCoord=function(t){var i=this._regionsMap.get(t);return this._nameCoordMap.get(t)||i&&i.getCenter()},e.prototype.dataToPoint=function(t,i,o){if(G(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,i,o)}},e.prototype.pointToData=function(t){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return n.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,i,o){return n.prototype.dataToPoint.call(this,t,i,o)},e.prototype.convertToPixel=function(t,i,o){var r=Pw(i);return r===this?r.dataToPoint(o):null},e.prototype.convertFromPixel=function(t,i,o){var r=Pw(i);return r===this?r.pointToData(o):null},e}(Pf);Ut(kw,Pf);function Pw(n){var e=n.geoModel,t=n.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Bt).models[0]||{}).coordinateSystem:null}const Lw=kw;function Ow(n,e){var t=n.get("boundingCoords");if(t!=null){var i=t[0],o=t[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])){var r=this.projection;if(r){var a=i[0],s=i[1],l=o[0],u=o[1];i=[1/0,1/0],o=[-1/0,-1/0];var h=function(b,S,T,I){for(var C=T-b,A=I-S,D=0;D<=100;D++){var k=D/100,P=r.project([b+C*k,S+A*k]);Wn(i,i,P),Gn(o,o,P)}};h(a,s,l,s),h(l,s,l,u),h(l,u,a,u),h(a,u,l,s)}this.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1])}}var c=this.getBoundingRect(),d=n.get("layoutCenter"),p=n.get("layoutSize"),f=e.getWidth(),g=e.getHeight(),v=c.width/c.height*this.aspectScale,y=!1,m,x;d&&p&&(m=[U(d[0],f),U(d[1],g)],x=U(p,Math.min(f,g)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(x)&&(y=!0));var _;if(y)_={},v>1?(_.width=x,_.height=x/v):(_.height=x,_.width=x*v),_.y=m[1]-_.height/2,_.x=m[0]-_.width/2;else{var w=n.getBoxLayoutParams();w.aspect=v,_=pe(w,{width:f,height:g})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function JN(n,e){M(e.get("geoCoord"),function(t,i){n.addGeoCoord(i,t)})}var tz=function(){function n(){this.dimensions=Dw}return n.prototype.create=function(e,t){var i=[];function o(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}e.eachComponent("geo",function(a,s){var l=a.get("map"),u=new Lw(l+s,l,N({nameMap:a.get("nameMap")},o(a)));u.zoomLimit=a.get("scaleLimit"),i.push(u),a.coordinateSystem=u,u.model=a,u.resize=Ow,u.resize(a,t)}),e.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=i[l]}});var r={};return e.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();r[s]=r[s]||[],r[s].push(a)}}),M(r,function(a,s){var l=F(a,function(h){return h.get("nameMap")}),u=new Lw(s,s,N({nameMap:Th(l)},o(a[0])));u.zoomLimit=fn.apply(null,F(a,function(h){return h.get("scaleLimit")})),i.push(u),u.resize=Ow,u.resize(a[0],t),M(a,function(h){h.coordinateSystem=u,JN(u,h)})}),i},n.prototype.getFilledRegions=function(e,t,i,o){for(var r=(e||[]).slice(),a=X(),s=0;s<r.length;s++)a.set(r[s].name,r[s]);var l=ei.load(t,i,o);return M(l.regions,function(u){var h=u.name;!a.get(h)&&r.push({name:h})}),r},n}(),ez=new tz;const Rw=ez;var nz=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,o){var r=ei.getGeoResource(t.map);if(r&&r.type==="geoJSON"){var a=t.itemStyle=t.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(t,o),pa(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,i=this.option;i.regions=Rw.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var o={};this._optionModelMap=Ae(i.regions||[],function(r,a){var s=a.name;return s&&(r.set(s,new Ot(a,t,t.ecModel)),a.selected&&(o[s]=!0)),r},X()),i.selectedMap||(i.selectedMap=o)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ot(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,i){var o=this.getRegionModel(t),r=i==="normal"?o.get(["label","formatter"]):o.get(["emphasis","label","formatter"]),a={name:t};if($(r))return a.status=i,r(a);if(G(r))return r.replace("{a}",t!=null?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 i=this.option,o=i.selectedMode;if(o){o!=="multiple"&&(i.selectedMap=null);var r=i.selectedMap||(i.selectedMap={});r[t]=!0}},e.prototype.unSelect=function(t){var i=this.option.selectedMap;i&&(i[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var i=this.option.selectedMap;return!!(i&&i[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}(ft);const iz=nz;function Nw(n,e){return n.pointToProjected?n.pointToProjected(e):n.pointToData(e)}function zw(n,e,t,i){var o=n.getZoom(),r=n.getCenter(),a=e.zoom,s=n.projectedToPoint?n.projectedToPoint(r):n.dataToPoint(r);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,n.setCenter(Nw(n,s),i)),a!=null){if(t){var l=t.min||0,u=t.max||1/0;a=Math.max(Math.min(o*a,u),l)/o}n.scaleX*=a,n.scaleY*=a;var h=(e.originX-n.x)*(a-1),c=(e.originY-n.y)*(a-1);n.x-=h,n.y-=c,n.updateTransform(),n.setCenter(Nw(n,s),i),n.setZoom(a*o)}return{center:n.getCenter(),zoom:n.getZoom()}}var oz=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,i){this._api=i},e.prototype.render=function(t,i,o,r){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Cw(o));var a=this._mapDraw;a.draw(t,i,o,this,r),a.group.on("click",this._handleRegionClick,this),a.group.silent=t.get("silent"),this.group.add(a.group),this.updateSelectStatus(t,i,o)},e.prototype._handleRegionClick=function(t){var i;xo(t.target,function(o){return(i=rt(o).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},e.prototype.updateSelectStatus=function(t,i,o){var r=this;this._mapDraw.group.traverse(function(a){var s=rt(a).eventData;if(s)return r._model.isSelected(s.name)?o.enterSelect(a):o.leaveSelect(a),!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}(zt);const rz=oz;function az(n,e,t){ei.registerMap(n,e,t)}function Bw(n){n.registerCoordinateSystem("geo",Rw),n.registerComponentModel(iz),n.registerComponentView(rz),n.registerImpl("registerMap",az),n.registerImpl("getMap",function(t){return ei.getMapForUser(t)});function e(t,i){i.update="geo:updateSelectStatus",n.registerAction(i,function(o,r){var a={},s=[];return r.eachComponent({mainType:"geo",query:o},function(l){l[t](o.name);var u=l.coordinateSystem;M(u.regions,function(c){a[c.name]=l.isSelected(c.name)||!1});var h=[];M(a,function(c,d){a[d]&&h.push(d)}),s.push({geoIndex:l.componentIndex,name:h})}),{selected:a,allSelected:s,name:o.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,i,o){var r=t.componentType||"series";i.eachComponent({mainType:r,query:t},function(a){var s=a.coordinateSystem;if(s.type==="geo"){var l=zw(s,t,a.get("scaleLimit"),o);a.setCenter&&a.setCenter(l.center),a.setZoom&&a.setZoom(l.zoom),r==="series"&&M(a.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function sz(n){$t(Bw),n.registerChartView(UN),n.registerSeriesModel(ZN),n.registerLayout(KN),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,qN),ex("map",n.registerAction)}var gs=M,lz=j,Qu=-1,Lf=function(){function n(e){var t=e.mappingMethod,i=e.type,o=this.option=q(e);this.type=i,this.mappingMethod=t,this._normalizeData=cz[t];var r=n.visualHandlers[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[t],t==="piecewise"?(Of(o),uz(o)):t==="category"?o.categories?hz(o):Of(o,!0):(Jt(t!=="linear"||o.dataExtent),Of(o))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return Y(this._normalizeData,this)},n.listVisualTypes=function(){return at(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,i){j(e)?M(e,t,i):t.call(i,e)},n.mapVisual=function(e,t,i){var o,r=V(e)?[]:j(e)?{}:(o=!0,null);return n.eachVisual(e,function(a,s){var l=t.call(i,a,s);o?r=l:r[s]=l}),r},n.retrieveVisuals=function(e){var t={},i;return e&&gs(n.visualHandlers,function(o,r){e.hasOwnProperty(r)&&(t[r]=e[r],i=!0)}),i?t:null},n.prepareVisualTypes=function(e){if(V(e))e=e.slice();else if(lz(e)){var t=[];gs(e,function(i,o){t.push(o)}),e=t}else return[];return e.sort(function(i,o){return o==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,i){for(var o,r=1/0,a=0,s=t.length;a<s;a++){var l=t[a].value;if(l!=null){if(l===e||G(l)&&l===e+"")return a;i&&d(l,a)}}for(var a=0,s=t.length;a<s;a++){var u=t[a],h=u.interval,c=u.close;if(h){if(h[0]===-1/0){if(th(c[1],e,h[1]))return a}else if(h[1]===1/0){if(th(c[0],h[0],e))return a}else if(th(c[0],h[0],e)&&th(c[1],e,h[1]))return a;i&&d(h[0],a),i&&d(h[1],a)}}if(i)return e===1/0?t.length-1:e===-1/0?0:o;function d(p,f){var g=Math.abs(p-e);g<r&&(r=g,o=f)}},n.visualHandlers={color:{applyVisual:vs("color"),getColorMapper:function(){var e=this.option;return Y(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),ys.call(this,t)}:function(t,i,o){var r=!!o;return!i&&(t=this._normalizeData(t)),o=na(t,e.parsedVisual,o),r?o:Je(o,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Je(na(e,this.option.parsedVisual),"rgba")},category:ys,piecewise:function(e,t){var i=Nf.call(this,t);return i==null&&(i=Je(na(e,this.option.parsedVisual),"rgba")),i},fixed:Ao}},colorHue:Ju(function(e,t){return ia(e,t)}),colorSaturation:Ju(function(e,t){return ia(e,null,t)}),colorLightness:Ju(function(e,t){return ia(e,null,null,t)}),colorAlpha:Ju(function(e,t){return nc(e,t)}),decal:{applyVisual:vs("decal"),_normalizedToVisual:{linear:null,category:ys,piecewise:null,fixed:null}},opacity:{applyVisual:vs("opacity"),_normalizedToVisual:Rf([0,1])},liftZ:{applyVisual:vs("liftZ"),_normalizedToVisual:{linear:Ao,category:Ao,piecewise:Ao,fixed:Ao}},symbol:{applyVisual:function(e,t,i){var o=this.mapValueToVisual(e);i("symbol",o)},_normalizedToVisual:{linear:Ew,category:ys,piecewise:function(e,t){var i=Nf.call(this,t);return i==null&&(i=Ew.call(this,e)),i},fixed:Ao}},symbolSize:{applyVisual:vs("symbolSize"),_normalizedToVisual:Rf([0,1])}},n}();function uz(n){var e=n.pieceList;n.hasSpecialVisual=!1,M(e,function(t,i){t.originIndex=i,t.visual!=null&&(n.hasSpecialVisual=!0)})}function hz(n){var e=n.categories,t=n.categoryMap={},i=n.visual;if(gs(e,function(a,s){t[a]=s}),!V(i)){var o=[];j(i)?gs(i,function(a,s){var l=t[s];o[l!=null?l:Qu]=a}):o[Qu]=i,i=Vw(n,o)}for(var r=e.length-1;r>=0;r--)i[r]==null&&(delete t[e[r]],e.pop())}function Of(n,e){var t=n.visual,i=[];j(t)?gs(t,function(r){i.push(r)}):t!=null&&i.push(t);var o={color:1,symbol:1};!e&&i.length===1&&!o.hasOwnProperty(n.type)&&(i[1]=i[0]),Vw(n,i)}function Ju(n){return{applyVisual:function(e,t,i){var o=this.mapValueToVisual(e);i("color",n(t("color"),o))},_normalizedToVisual:Rf([0,1])}}function Ew(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function vs(n){return function(e,t,i){i(n,this.mapValueToVisual(e))}}function ys(n){var e=this.option.visual;return e[this.option.loop&&n!==Qu?n%e.length:n]}function Ao(){return this.option.visual[0]}function Rf(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:ys,piecewise:function(e,t){var i=Nf.call(this,t);return i==null&&(i=xt(e,n,this.option.visual,!0)),i},fixed:Ao}}function Nf(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=Lf.findPieceIndex(n,t),o=t[i];if(o&&o.visual)return o.visual[this.type]}}function Vw(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=F(e,function(t){var i=ue(t);return i||[0,0,0,1]})),e}var cz={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=Lf.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e!=null?e:Qu},fixed:Et};function th(n,e,t){return n?e<=t:e<t}const ae=Lf;var pz=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),dz=function(n){z(e,n);function e(t){var i=n.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new pz},e.prototype.buildPath=function(t,i){var o=Math.cos,r=Math.sin,a=i.r,s=i.width,l=i.angle,u=i.x-o(l)*s*(s>=a/3?1:2),h=i.y-r(l)*s*(s>=a/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,h),t.lineTo(i.x+o(l)*s,i.y+r(l)*s),t.lineTo(i.x+o(i.angle)*a,i.y+r(i.angle)*a),t.lineTo(i.x-o(l)*s,i.y-r(l)*s),t.lineTo(u,h)},e}(gt);const fz=dz;function gz(n,e){var t=n.get("center"),i=e.getWidth(),o=e.getHeight(),r=Math.min(i,o),a=U(t[0],e.getWidth()),s=U(t[1],e.getHeight()),l=U(n.get("radius"),r/2);return{cx:a,cy:s,r:l}}function eh(n,e){var t=n==null?"":n+"";return e&&(G(e)?t=e.replace("{value}",t):$(e)&&(t=e(n))),t}var vz=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),a=gz(t,o);this._renderMain(t,i,o,r,a),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,o,r,a){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),d=c.get("roundCap"),p=d?Wu:ze,f=c.get("show"),g=c.getModel("lineStyle"),v=g.get("width"),y=[u,h];$c(y,!l),u=y[0],h=y[1];for(var m=h-u,x=u,_=[],w=0;f&&w<r.length;w++){var b=Math.min(Math.max(r[w][0],0),1);h=u+m*b;var S=new p({shape:{startAngle:x,endAngle:h,cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-v,r:a.r},silent:!0});S.setStyle({fill:r[w][1]}),S.setStyle(g.getLineStyle(["color","width"])),_.push(S),x=h}_.reverse(),M(_,function(I){return s.add(I)});var T=function(I){if(I<=0)return r[0][1];var C;for(C=0;C<r.length;C++)if(r[C][0]>=I&&(C===0?0:r[C-1][0])<I)return r[C][1];return r[C-1][1]};this._renderTicks(t,i,o,T,a,u,h,l,v),this._renderTitleAndDetail(t,i,o,T,a),this._renderAnchor(t,a),this._renderPointer(t,i,o,T,a,u,h,l,v)},e.prototype._renderTicks=function(t,i,o,r,a,s,l,u,h){for(var c=this.group,d=a.cx,p=a.cy,f=a.r,g=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),w=m.get("splitNumber"),b=U(y.get("length"),f),S=U(m.get("length"),f),T=s,I=(l-s)/_,C=I/w,A=y.getModel("lineStyle").getLineStyle(),D=m.getModel("lineStyle").getLineStyle(),k=y.get("distance"),P,L,O=0;O<=_;O++){if(P=Math.cos(T),L=Math.sin(T),y.get("show")){var E=k?k+h:h,R=new qt({shape:{x1:P*(f-E)+d,y1:L*(f-E)+p,x2:P*(f-b-E)+d,y2:L*(f-b-E)+p},style:A,silent:!0});A.stroke==="auto"&&R.setStyle({stroke:r(O/_)}),c.add(R)}if(x.get("show")){var E=x.get("distance")+k,B=eh(kt(O/_*(v-g)+g),x.get("formatter")),W=r(O/_),Z=P*(f-b-E)+d,Q=L*(f-b-E)+p,ot=x.get("rotate"),st=0;ot==="radial"?(st=-T+2*Math.PI,st>Math.PI/2&&(st+=Math.PI)):ot==="tangential"?st=-T-Math.PI/2:vt(ot)&&(st=ot*Math.PI/180),st===0?c.add(new dt({style:Ct(x,{text:B,x:Z,y:Q,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:W}),silent:!0})):c.add(new dt({style:Ct(x,{text:B,x:Z,y:Q,verticalAlign:"middle",align:"center"},{inheritColor:W}),silent:!0,originX:Z,originY:Q,rotation:st}))}if(m.get("show")&&O!==_){var E=m.get("distance");E=E?E+h:h;for(var St=0;St<=w;St++){P=Math.cos(T),L=Math.sin(T);var mt=new qt({shape:{x1:P*(f-E)+d,y1:L*(f-E)+p,x2:P*(f-S-E)+d,y2:L*(f-S-E)+p},silent:!0,style:D});D.stroke==="auto"&&mt.setStyle({stroke:r((O+St/w)/_)}),c.add(mt),T+=C}T-=C}else T+=I}},e.prototype._renderPointer=function(t,i,o,r,a,s,l,u,h){var c=this.group,d=this._data,p=this._progressEls,f=[],g=t.get(["pointer","show"]),v=t.getModel("progress"),y=v.get("show"),m=t.getData(),x=m.mapDimension("value"),_=+t.get("min"),w=+t.get("max"),b=[_,w],S=[s,l];function T(C,A){var D=m.getItemModel(C),k=D.getModel("pointer"),P=U(k.get("width"),a.r),L=U(k.get("length"),a.r),O=t.get(["pointer","icon"]),E=k.get("offsetCenter"),R=U(E[0],a.r),B=U(E[1],a.r),W=k.get("keepAspect"),Z;return O?Z=Ft(O,R-P/2,B-L,P,L,null,W):Z=new fz({shape:{angle:-Math.PI/2,width:P,r:L,x:R,y:B}}),Z.rotation=-(A+Math.PI/2),Z.x=a.cx,Z.y=a.cy,Z}function I(C,A){var D=v.get("roundCap"),k=D?Wu:ze,P=v.get("overlap"),L=P?v.get("width"):h/m.count(),O=P?a.r-L:a.r-(C+1)*L,E=P?a.r:a.r-C*L,R=new k({shape:{startAngle:s,endAngle:A,cx:a.cx,cy:a.cy,clockwise:u,r0:O,r:E}});return P&&(R.z2=w-m.get(x,C)%w),R}(y||g)&&(m.diff(d).add(function(C){var A=m.get(x,C);if(g){var D=T(C,s);Yt(D,{rotation:-((isNaN(+A)?S[0]:xt(A,b,S,!0))+Math.PI/2)},t),c.add(D),m.setItemGraphicEl(C,D)}if(y){var k=I(C,s),P=v.get("clip");Yt(k,{shape:{endAngle:xt(A,b,S,P)}},t),c.add(k),tp(t.seriesIndex,m.dataType,C,k),f[C]=k}}).update(function(C,A){var D=m.get(x,C);if(g){var k=d.getItemGraphicEl(A),P=k?k.rotation:s,L=T(C,P);L.rotation=P,Tt(L,{rotation:-((isNaN(+D)?S[0]:xt(D,b,S,!0))+Math.PI/2)},t),c.add(L),m.setItemGraphicEl(C,L)}if(y){var O=p[A],E=O?O.shape.endAngle:s,R=I(C,E),B=v.get("clip");Tt(R,{shape:{endAngle:xt(D,b,S,B)}},t),c.add(R),tp(t.seriesIndex,m.dataType,C,R),f[C]=R}}).execute(),m.each(function(C){var A=m.getItemModel(C),D=A.getModel("emphasis"),k=D.get("focus"),P=D.get("blurScope"),L=D.get("disabled");if(g){var O=m.getItemGraphicEl(C),E=m.getItemVisual(C,"style"),R=E.fill;if(O instanceof ee){var B=O.style;O.useStyle(N({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},E))}else O.useStyle(E),O.type!=="pointer"&&O.setColor(R);O.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",r(xt(m.get(x,C),b,[0,1],!0))),O.z2EmphasisLift=0,Kn(O,A),nn(O,k,P,L)}if(y){var W=f[C];W.useStyle(m.getItemVisual(C,"style")),W.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),W.z2EmphasisLift=0,Kn(W,A),nn(W,k,P,L)}}),this._progressEls=f)},e.prototype._renderAnchor=function(t,i){var o=t.getModel("anchor"),r=o.get("show");if(r){var a=o.get("size"),s=o.get("icon"),l=o.get("offsetCenter"),u=o.get("keepAspect"),h=Ft(s,i.cx-a/2+U(l[0],i.r),i.cy-a/2+U(l[1],i.r),a,a,null,u);h.z2=o.get("showAbove")?1:0,h.setStyle(o.getModel("itemStyle").getItemStyle()),this.group.add(h)}},e.prototype._renderTitleAndDetail=function(t,i,o,r,a){var s=this,l=t.getData(),u=l.mapDimension("value"),h=+t.get("min"),c=+t.get("max"),d=new it,p=[],f=[],g=t.isAnimationEnabled(),v=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){p[y]=new dt({silent:!0}),f[y]=new dt({silent:!0})}).update(function(y,m){p[y]=s._titleEls[m],f[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),x=l.get(u,y),_=new it,w=r(xt(x,[h,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var S=b.get("offsetCenter"),T=a.cx+U(S[0],a.r),I=a.cy+U(S[1],a.r),C=p[y];C.attr({z2:v?0:2,style:Ct(b,{x:T,y:I,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),_.add(C)}var A=m.getModel("detail");if(A.get("show")){var D=A.get("offsetCenter"),k=a.cx+U(D[0],a.r),P=a.cy+U(D[1],a.r),L=U(A.get("width"),a.r),O=U(A.get("height"),a.r),E=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,C=f[y],R=A.get("formatter");C.attr({z2:v?0:2,style:Ct(A,{x:k,y:P,text:eh(x,R),width:isNaN(L)?null:L,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:E})}),c0(C,{normal:A},x,function(W){return eh(W,R)}),g&&p0(C,y,l,t,{getFormattedLabel:function(W,Z,Q,ot,st,St){return eh(St?St.interpolatedValue:x,R)}}),_.add(C)}d.add(_)}),this.group.add(d),this._titleEls=p,this._detailEls=f},e.type="gauge",e}(oe);const yz=vz;var mz=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return cs(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Ce);const xz=mz;function _z(n){n.registerChartView(yz),n.registerSeriesModel(xz)}function bz(n){wz(n),Sz(n)}function wz(n){if(!n.parallel){var e=!1;M(n.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(n.parallel=[{}])}}function Sz(n){var e=Dt(n.parallelAxis);M(e,function(t){if(j(t)){var i=t.parallelIndex||0,o=Dt(n.parallel)[i];o&&o.parallelAxisDefault&&et(t,o.parallelAxisDefault,!1)}})}var Mz=5,Tz=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this._model=t,this._api=o,this._handlers||(this._handlers={},M(Cz,function(r,a){o.getZr().on(a,this._handlers[a]=Y(r,this))},this)),xr(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){Ua(this,"_throttledDispatchExpand"),M(this._handlers,function(o,r){i.getZr().off(r,o)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(N({type:"parallelAxisExpand"},t))},e.type="parallel",e}(zt),Cz={mousedown:function(n){zf(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var e=this._mouseDownPoint;if(zf(this,"click")&&e){var t=[n.offsetX,n.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>Mz)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);o.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!zf(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function zf(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const Iz=Tz;var Az=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&et(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var o=t.get("parallelIndex");return o!=null&&i.getComponent("parallel",o)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],o=At(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(r){return(r.get("parallelIndex")||0)===this.componentIndex},this);M(o,function(r){t.push("dim"+r.get("dim")),i.push(r.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(ft);const Dz=Az;var kz=function(n){z(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.type=r||"value",s.axisIndex=a,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cn);const Pz=kz;function Do(n,e,t,i,o,r){n=n||0;var a=t[1]-t[0];if(o!=null&&(o=Ar(o,[0,a])),r!=null&&(r=Math.max(r,o!=null?o:0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=Ar(s,[0,a]),o=r=Ar(s,[o,r]),i=0}e[0]=Ar(e[0],t),e[1]=Ar(e[1],t);var l=Bf(e,i);e[i]+=n;var u=o||0,h=t.slice();l.sign<0?h[0]+=u:h[1]-=u,e[i]=Ar(e[i],h);var c;return c=Bf(e,i),o!=null&&(c.sign!==l.sign||c.span<o)&&(e[1-i]=e[i]+l.sign*o),c=Bf(e,i),r!=null&&c.span>r&&(e[1-i]=e[i]+c.sign*r),e}function Bf(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ar(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var Ef=M,Fw=Math.min,Ww=Math.max,Gw=Math.floor,Lz=Math.ceil,Hw=kt,Oz=Math.PI,Rz=function(){function n(e,t,i){this.type="parallel",this._axesMap=X(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return n.prototype._init=function(e,t,i){var o=e.dimensions,r=e.parallelAxisIndex;Ef(o,function(a,s){var l=r[s],u=t.getComponent("parallelAxis",l),h=this._axesMap.set(a,new Pz(a,Ou(u),[0,0],u.get("type"),l)),c=h.type==="category";h.onBand=c&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,o=t.layoutBase,r=t.pixelDimIndex,a=e[1-r],s=e[r];return a>=i&&a<=i+t.axisLength&&s>=o&&s<=o+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var o=i.getData();Ef(this.dimensions,function(r){var a=this._axesMap.get(r);a.scale.unionExtentFromData(o,o.mapDimension(r)),Sr(a.scale,a.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=pe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],o=["width","height"],r=e.get("layout"),a=r==="horizontal"?0:1,s=t[o[a]],l=[0,s],u=this.dimensions.length,h=nh(e.get("axisExpandWidth"),l),c=nh(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,p=e.get("axisExpandWindow"),f;if(p)f=nh(p[1]-p[0],l),p[1]=p[0]+f;else{f=nh(h*(c-1),l);var g=e.get("axisExpandCenter")||Gw(u/2);p=[h*g-f/2],p[1]=p[0]+f}var v=(s-f)/(u-c);v<3&&(v=0);var y=[Gw(Hw(p[0]/h,1))+1,Lz(Hw(p[1]/h,1))-1],m=v/h*p[0];return{layout:r,pixelDimIndex:a,layoutBase:t[i[a]],layoutLength:s,axisBase:t[i[1-a]],axisLength:t[o[1-a]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:v,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,o=this._makeLayoutInfo(),r=o.layout;t.each(function(a){var s=[0,o.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),Ef(i,function(a,s){var l=(o.axisExpandable?zz:Nz)(s,o),u={horizontal:{x:l.position,y:o.axisLength},vertical:{x:0,y:l.position}},h={horizontal:Oz/2,vertical:0},c=[u[r].x+e.x,u[r].y+e.y],d=h[r],p=me();si(p,p,d),vn(p,p,c),this._axesLayout[a]={position:c,rotation:d,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,i,o){i==null&&(i=0),o==null&&(o=e.count());var r=this._axesMap,a=this.dimensions,s=[],l=[];M(a,function(v){s.push(e.mapDimension(v)),l.push(r.get(v).model)});for(var u=this.hasAxisBrushed(),h=i;h<o;h++){var c=void 0;if(!u)c="normal";else{c="active";for(var d=e.getValues(s,h),p=0,f=a.length;p<f;p++){var g=l[p].getActiveState(d[p]);if(g==="inactive"){c="inactive";break}}}t(c,h)}},n.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,i=!1,o=0,r=e.length;o<r;o++)t.get(e[o]).model.getActiveState()!=="normal"&&(i=!0);return i},n.prototype.axisCoordToPoint=function(e,t){var i=this._axesLayout[t];return rn([e,0],i.transform)},n.prototype.getAxisLayout=function(e){return q(this._axesLayout[e])},n.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,o=t.axisExpandWindow.slice(),r=o[1]-o[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:o};var s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",h=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),d=c[0]!=null;if(h)d&&h&&s<r*c[0]?(u="jump",l=s-r*c[2]):d&&h&&s>r*(1-c[0])?(u="jump",l=s-r*(1-c[2])):(l=s-r*c[1])>=0&&(l=s-r*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/h,l?Do(l,o,a,"all"):u="none";else{var p=o[1]-o[0],f=a[1]*s/p;o=[Ww(0,f-p/2)],o[1]=Fw(a[1],o[0]+p),o[0]=o[1]-p}return{axisExpandWindow:o,behavior:u}},n}();function nh(n,e){return Fw(Ww(n,e[0]),e[1])}function Nz(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function zz(n,e){var t=e.layoutLength,i=e.axisExpandWidth,o=e.axisCount,r=e.axisCollapseWidth,a=e.winInnerIndices,s,l=r,u=!1,h;return n<a[0]?(s=n*r,h=r):n<=a[1]?(s=e.axisExpandWindow0Pos+n*i-e.axisExpandWindow[0],l=i,u=!0):(s=t-(o-1-n)*r,h=r),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:h}}const Bz=Rz;function Ez(n,e){var t=[];return n.eachComponent("parallel",function(i,o){var r=new Bz(i,n,e);r.name="parallel_"+o,r.resize(i,e),i.coordinateSystem=r,r.model=i,t.push(r)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="parallel"){var o=i.getReferringComponents("parallel",Bt).models[0];i.coordinateSystem=o.coordinateSystem}}),t}var Vz={create:Ez};const Fz=Vz;var Yw=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Zi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var i=this.activeIntervals=q(t);if(i)for(var o=i.length-1;o>=0;o--)xn(i[o])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var o=i[0];if(o[0]<=t&&t<=o[1])return"active"}else for(var r=0,a=i.length;r<a;r++)if(i[r][0]<=t&&t<=i[r][1])return"active";return"inactive"},e}(ft);Ut(Yw,ss);const Uw=Yw;var ko=!0,ms=Math.min,Dr=Math.max,Wz=Math.pow,Gz=1e4,Hz=6,Yz=6,Xw="globalPan",Uz={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Xz={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Zw={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Zz=0,jz=function(n){z(e,n);function e(t){var i=n.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=t,i.group=new it,i._uid="brushController_"+Zz++,M(eB,function(o,r){this._handlers[r]=Y(o,this)},i),i}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var i=this._zr;this._enableGlobalPan||fN(i,Xw,this._uid),M(this._handlers,function(o,r){i.on(r,o)}),this._brushType=t.brushType,this._brushOption=et(q(Zw),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;gN(t,Xw,this._uid),M(this._handlers,function(i,o){t.off(o,i)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var i=this._panels={};M(t,function(o){i[o.panelId]=q(o)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=i.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=F(t,function(d){return et(q(Zw),d,!0)});var i="\0-brush-index-",o=this._covers,r=this._covers=[],a=this,s=this._creatingCover;return new _u(o,t,u,l).add(h).update(h).remove(c).execute(),this;function l(d,p){return(d.id!=null?d.id:i+p)+"-"+d.brushType}function u(d,p){return l(d.__brushOption,p)}function h(d,p){var f=t[d];if(p!=null&&o[p]===s)r[d]=o[p];else{var g=r[d]=p!=null?(o[p].__brushOption=f,o[p]):qw(a,jw(a,f));Vf(a,g)}}function c(d){o[d]!==s&&a.group.remove(o[d])}},e.prototype.unmount=function(){return this.enableBrush(!1),Gf(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(ke);function jw(n,e){var t=ih[e.brushType].createCover(n,e);return t.__brushOption=e,$w(t,e),n.group.add(t),t}function qw(n,e){var t=Ff(e);return t.endCreating&&(t.endCreating(n,e),$w(e,e.__brushOption)),e}function Kw(n,e){var t=e.__brushOption;Ff(e).updateCoverShape(n,e,t.range,t)}function $w(n,e){var t=e.z;t==null&&(t=Gz),n.traverse(function(i){i.z=t,i.z2=t})}function Vf(n,e){Ff(e).updateCommon(n,e),Kw(n,e)}function Ff(n){return ih[n.__brushOption.brushType]}function Wf(n,e,t){var i=n._panels;if(!i)return ko;var o,r=n._transform;return M(i,function(a){a.isTargetByCursor(e,t,r)&&(o=a)}),o}function Qw(n,e){var t=n._panels;if(!t)return ko;var i=e.__brushOption.panelId;return i!=null?t[i]:ko}function Gf(n){var e=n._covers,t=e.length;return M(e,function(i){n.group.remove(i)},n),e.length=0,!!t}function Po(n,e){var t=F(n._covers,function(i){var o=i.__brushOption,r=q(o.range);return{brushType:o.brushType,panelId:o.panelId,range:r}});n.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function qz(n){var e=n._track;if(!e.length)return!1;var t=e[e.length-1],i=e[0],o=t[0]-i[0],r=t[1]-i[1],a=Wz(o*o+r*r,.5);return a>Hz}function Jw(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function tS(n,e,t,i){var o=new it;return o.add(new yt({name:"main",style:Yf(t),silent:!0,draggable:!0,cursor:"move",drift:pt(iS,n,e,o,["n","s","w","e"]),ondragend:pt(Po,e,{isEnd:!0})})),M(i,function(r){o.add(new yt({name:r.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:pt(iS,n,e,o,r),ondragend:pt(Po,e,{isEnd:!0})}))}),o}function eS(n,e,t,i){var o=i.brushStyle.lineWidth||0,r=Dr(o,Yz),a=t[0][0],s=t[1][0],l=a-o/2,u=s-o/2,h=t[0][1],c=t[1][1],d=h-r+o/2,p=c-r+o/2,f=h-a,g=c-s,v=f+o,y=g+o;ni(n,e,"main",a,s,f,g),i.transformable&&(ni(n,e,"w",l,u,r,y),ni(n,e,"e",d,u,r,y),ni(n,e,"n",l,u,v,r),ni(n,e,"s",l,p,v,r),ni(n,e,"nw",l,u,r,r),ni(n,e,"ne",d,u,r,r),ni(n,e,"sw",l,p,r,r),ni(n,e,"se",d,p,r,r))}function Hf(n,e){var t=e.__brushOption,i=t.transformable,o=e.childAt(0);o.useStyle(Yf(t)),o.attr({silent:!i,cursor:i?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(r){var a=e.childOfName(r.join("")),s=r.length===1?Uf(n,r[0]):$z(n,r);a&&a.attr({silent:!i,invisible:!i,cursor:i?Xz[s]+"-resize":null})})}function ni(n,e,t,i,o,r,a){var s=e.childOfName(t);s&&s.setShape(Jz(Xf(n,e,[[i,o],[i+r,o+a]])))}function Yf(n){return K({strokeNoScale:!0},n.brushStyle)}function nS(n,e,t,i){var o=[ms(n,t),ms(e,i)],r=[Dr(n,t),Dr(e,i)];return[[o[0],r[0]],[o[1],r[1]]]}function Kz(n){return yi(n.group)}function Uf(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},o=Bl(t[e],Kz(n));return i[o]}function $z(n,e){var t=[Uf(n,e[0]),Uf(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function iS(n,e,t,i,o,r){var a=t.__brushOption,s=n.toRectRange(a.range),l=oS(e,o,r);M(i,function(u){var h=Uz[u];s[h[0]][h[1]]+=l[h[0]]}),a.range=n.fromRectRange(nS(s[0][0],s[1][0],s[0][1],s[1][1])),Vf(e,t),Po(e,{isEnd:!1})}function Qz(n,e,t,i){var o=e.__brushOption.range,r=oS(n,t,i);M(o,function(a){a[0]+=r[0],a[1]+=r[1]}),Vf(n,e),Po(n,{isEnd:!1})}function oS(n,e,t){var i=n.group,o=i.transformCoordToLocal(e,t),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function Xf(n,e,t){var i=Qw(n,e);return i&&i!==ko?i.clipPath(t,n._transform):q(t)}function Jz(n){var e=ms(n[0][0],n[1][0]),t=ms(n[0][1],n[1][1]),i=Dr(n[0][0],n[1][0]),o=Dr(n[0][1],n[1][1]);return{x:e,y:t,width:i-e,height:o-t}}function tB(n,e,t){if(!(!n._brushType||nB(n,e.offsetX,e.offsetY))){var i=n._zr,o=n._covers,r=Wf(n,e,t);if(!n._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===ko||s.panelId===r.panelId)&&ih[s.brushType].contain(o[a],t[0],t[1]))return}r&&i.setCursorStyle("crosshair")}}function Zf(n){var e=n.event;e.preventDefault&&e.preventDefault()}function jf(n,e,t){return n.childOfName("main").contain(e,t)}function rS(n,e,t,i){var o=n._creatingCover,r=n._creatingPanel,a=n._brushOption,s;if(n._track.push(t.slice()),qz(n)||o){if(r&&!o){a.brushMode==="single"&&Gf(n);var l=q(a);l.brushType=aS(l.brushType,r),l.panelId=r===ko?null:r.panelId,o=n._creatingCover=jw(n,l),n._covers.push(o)}if(o){var u=ih[aS(n._brushType,r)],h=o.__brushOption;h.range=u.getCreatingRange(Xf(n,o,n._track)),i&&(qw(n,o),u.updateCommon(n,o)),Kw(n,o),s={isEnd:i}}}else i&&a.brushMode==="single"&&a.removeOnClick&&Wf(n,e,t)&&Gf(n)&&(s={isEnd:i,removeOnClick:!0});return s}function aS(n,e){return n==="auto"?e.defaultBrushType:n}var eB={mousedown:function(n){if(this._dragging)sS(this,n);else if(!n.target||!n.target.draggable){Zf(n);var e=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null;var t=this._creatingPanel=Wf(this,n,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(n){var e=n.offsetX,t=n.offsetY,i=this.group.transformCoordToLocal(e,t);if(tB(this,n,i),this._dragging){Zf(n);var o=rS(this,n,i,!1);o&&Po(this,o)}},mouseup:function(n){sS(this,n)}};function sS(n,e){if(n._dragging){Zf(e);var t=e.offsetX,i=e.offsetY,o=n.group.transformCoordToLocal(t,i),r=rS(n,e,o,!0);n._dragging=!1,n._track=[],n._creatingCover=null,r&&Po(n,r)}}function nB(n,e,t){var i=n._zr;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var ih={lineX:lS(0),lineY:lS(1),rect:{createCover:function(n,e){function t(i){return i}return tS({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=Jw(n);return nS(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,i){eS(n,e,t,i)},updateCommon:Hf,contain:jf},polygon:{createCover:function(n,e){var t=new it;return t.add(new Be({name:"main",style:Yf(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new An({name:"main",draggable:!0,drift:pt(Qz,n,e),ondragend:pt(Po,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,i){e.childAt(0).setShape({points:Xf(n,e,t)})},updateCommon:Hf,contain:jf}};function lS(n){return{createCover:function(e,t){return tS({toRectRange:function(i){var o=[i,[0,100]];return n&&o.reverse(),o},fromRectRange:function(i){return i[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=Jw(e),i=ms(t[0][n],t[1][n]),o=Dr(t[0][n],t[1][n]);return[i,o]},updateCoverShape:function(e,t,i,o){var r,a=Qw(e,t);if(a!==ko&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(n);else{var s=e._zr;r=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[i,r];n&&l.reverse(),eS(e,t,l,o)},updateCommon:Hf,contain:jf}}const qf=jz;function uS(n){return n=Kf(n),function(e){return bp(e,n)}}function hS(n,e){return n=Kf(n),function(t){var i=e!=null?e:t,o=i?n.width:n.height,r=i?n.x:n.y;return[r,r+(o||0)]}}function cS(n,e,t){var i=Kf(n);return function(o,r){return i.contain(r[0],r[1])&&!Cf(o,e,t)}}function Kf(n){return ut.create(n)}var iB=["axisLine","axisTickLabel","axisName"],oB=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){n.prototype.init.apply(this,arguments),(this._brushController=new qf(i.getZr())).on("brush",Y(this._onBrush,this))},e.prototype.render=function(t,i,o,r){if(!rB(t,i,r)){this.axisModel=t,this.api=o,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!t.get("show")){var s=sB(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),h=u.width,c=t.axis.dim,d=l.getAxisLayout(c),p=N({strokeContainThreshold:h},d),f=new ti(t,p);M(iB,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(p,u,t,s,h,o),ka(a,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,o,r,a,s){var l=o.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,Math.abs(u)*.1),c=ut.create({x:l[0],y:-a/2,width:u,height:a});c.x-=h,c.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:uS(c),isTargetByCursor:cS(c,s,r),getLinearBrushOtherExtent:hS(c,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(aB(o))},e.prototype._onBrush=function(t){var i=t.areas,o=this.axisModel,r=o.axis,a=F(i,function(s){return[r.coordToData(s.range[0],!0),r.coordToData(s.range[1],!0)]});(!o.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:o.id,intervals:a})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(zt);function rB(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function aB(n){var e=n.axis;return F(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function sB(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const lB=oB;var uB={type:"axisAreaSelect",event:"axisAreaSelected"};function hB(n){n.registerAction(uB,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var cB={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function pB(n){n.registerComponentView(Iz),n.registerComponentModel(Dz),n.registerCoordinateSystem("parallel",Fz),n.registerPreprocessor(bz),n.registerComponentModel(Uw),n.registerComponentView(lB),Tr(n,"parallel",Uw,cB),hB(n)}var dB=["itemStyle","borderWidth"],pS=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],$f=new $n,fB=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),h=u.isHorizontal(),c=l.master.getRect(),d={ecSize:{width:o.getWidth(),height:o.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:h,valueDim:pS[+h],categoryDim:pS[1-+h]};a.diff(s).add(function(f){if(a.hasValue(f)){var g=xS(a,f),v=dS(a,f,g,d),y=_S(a,d,v);a.setItemGraphicEl(f,y),r.add(y),SS(y,d,v)}}).update(function(f,g){var v=s.getItemGraphicEl(g);if(!a.hasValue(f)){r.remove(v);return}var y=xS(a,f),m=dS(a,f,y,d),x=wS(a,m);v&&x!==v.__pictorialShapeStr&&(r.remove(v),a.setItemGraphicEl(f,null),v=null),v?bB(v,d,m):v=_S(a,d,m,!0),a.setItemGraphicEl(f,v),v.__pictorialSymbolMeta=m,r.add(v),SS(v,d,m)}).remove(function(f){var g=s.getItemGraphicEl(f);g&&bS(s,f,g.__pictorialSymbolMeta.animationModel,g)}).execute();var p=t.get("clip",!0)?af(t.coordinateSystem,!1,t):null;return p?r.setClipPath(p):r.removeClipPath(),this._data=a,this.group},e.prototype.remove=function(t,i){var o=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl(function(a){bS(r,rt(a).dataIndex,t,a)}):o.removeAll()},e.type="pictorialBar",e}(oe);function dS(n,e,t,i){var o=n.getItemLayout(e),r=t.get("symbolRepeat"),a=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,h=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),d={dataIndex:e,layout:o,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:r,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};gB(t,r,o,i,d),vB(n,e,o,r,a,d.boundingLength,d.pxSign,h,i,d),yB(t,d.symbolScale,u,i,d);var p=d.symbolSize,f=ja(t.get("symbolOffset"),p);return mB(t,p,o,r,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function gB(n,e,t,i,o){var r=i.valueDim,a=n.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[r.wh]<=0),h;if(V(a)){var c=[Qf(s,a[0])-l,Qf(s,a[1])-l];c[1]<c[0]&&c.reverse(),h=c[u]}else a!=null?h=Qf(s,a)-l:e?h=i.coordSysExtent[r.index][u]-l:h=t[r.wh];o.boundingLength=h,e&&(o.repeatCutLength=t[r.wh]),o.pxSign=h>0?1:-1}function Qf(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function vB(n,e,t,i,o,r,a,s,l,u){var h=l.valueDim,c=l.categoryDim,d=Math.abs(t[c.wh]),p=n.getItemVisual(e,"symbolSize"),f;V(p)?f=p.slice():p==null?f=["100%","100%"]:f=[p,p],f[c.index]=U(f[c.index],d),f[h.index]=U(f[h.index],i?d:Math.abs(r)),u.symbolSize=f;var g=u.symbolScale=[f[0]/s,f[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}function yB(n,e,t,i,o){var r=n.get(dB)||0;r&&($f.attr({scaleX:e[0],scaleY:e[1],rotation:t}),$f.updateTransform(),r/=$f.getLineScale(),r*=e[i.valueDim.index]),o.valueLineWidth=r||0}function mB(n,e,t,i,o,r,a,s,l,u,h,c){var d=h.categoryDim,p=h.valueDim,f=c.pxSign,g=Math.max(e[p.index]+s,0),v=g;if(i){var y=Math.abs(l),m=fn(n.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=U(m,e[p.index]),w=Math.max(g+_*2,0),b=x?0:_*2,S=Oc(i),T=S?i:MS((y+b)/w),I=y-T*g;_=I/2/(x?T:Math.max(T-1,1)),w=g+_*2,b=x?0:_*2,!S&&i!=="fixed"&&(T=u?MS((Math.abs(u)+b)/w):0),v=T*w-b,c.repeatTimes=T,c.symbolMargin=_}var C=f*(v/2),A=c.pathPosition=[];A[d.index]=t[d.wh]/2,A[p.index]=a==="start"?C:a==="end"?l-C:l/2,r&&(A[0]+=r[0],A[1]+=r[1]);var D=c.bundlePosition=[];D[d.index]=t[d.xy],D[p.index]=t[p.xy];var k=c.barRectShape=N({},t);k[p.wh]=f*Math.max(Math.abs(t[p.wh]),Math.abs(A[p.index]+C)),k[d.wh]=t[d.wh];var P=c.clipShape={};P[d.xy]=-t[d.xy],P[d.wh]=h.ecSize[d.wh],P[p.xy]=0,P[p.wh]=t[p.wh]}function fS(n){var e=n.symbolPatternSize,t=Ft(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function gS(n,e,t,i){var o=n.__pictorialBundle,r=t.symbolSize,a=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,h=0,c=r[e.valueDim.index]+a+t.symbolMargin*2;for(Jf(n,function(g){g.__pictorialAnimationIndex=h,g.__pictorialRepeatTimes=u,h<u?kr(g,null,f(h),t,i):kr(g,null,{scaleX:0,scaleY:0},t,i,function(){o.remove(g)}),h++});h<u;h++){var d=fS(t);d.__pictorialAnimationIndex=h,d.__pictorialRepeatTimes=u,o.add(d);var p=f(h);kr(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},t,i)}function f(g){var v=s.slice(),y=t.pxSign,m=g;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-g),v[l.index]=c*(m-u/2+.5)+s[l.index],{x:v[0],y:v[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function vS(n,e,t,i){var o=n.__pictorialBundle,r=n.__pictorialMainPath;r?kr(r,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(r=n.__pictorialMainPath=fS(t),o.add(r),kr(r,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function yS(n,e,t){var i=N({},e.barRectShape),o=n.__pictorialBarRect;o?kr(o,null,{shape:i},e,t):(o=n.__pictorialBarRect=new yt({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.disableMorphing=!0,n.add(o))}function mS(n,e,t,i){if(t.symbolClip){var o=n.__pictorialClipPath,r=N({},t.clipShape),a=e.valueDim,s=t.animationModel,l=t.dataIndex;if(o)Tt(o,{shape:r},s,l);else{r[a.wh]=0,o=new yt({shape:r}),n.__pictorialBundle.setClipPath(o),n.__pictorialClipPath=o;var u={};u[a.wh]=t.clipShape[a.wh],uo[i?"updateProps":"initProps"](o,{shape:u},s,l)}}}function xS(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=xB,t.isAnimationEnabled=_B,t}function xB(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function _B(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function _S(n,e,t,i){var o=new it,r=new it;return o.add(r),o.__pictorialBundle=r,r.x=t.bundlePosition[0],r.y=t.bundlePosition[1],t.symbolRepeat?gS(o,e,t):vS(o,e,t),yS(o,t,i),mS(o,e,t,i),o.__pictorialShapeStr=wS(n,t),o.__pictorialSymbolMeta=t,o}function bB(n,e,t){var i=t.animationModel,o=t.dataIndex,r=n.__pictorialBundle;Tt(r,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,o),t.symbolRepeat?gS(n,e,t,!0):vS(n,e,t,!0),yS(n,t,!0),mS(n,e,t,!0)}function bS(n,e,t,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var r=[];Jf(i,function(a){r.push(a)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),M(r,function(a){ir(a,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),n.setItemGraphicEl(e,null)}function wS(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Jf(n,e,t){M(n.__pictorialBundle.children(),function(i){i!==n.__pictorialBarRect&&e.call(t,i)})}function kr(n,e,t,i,o,r){e&&n.attr(e),i.symbolClip&&!o?t&&n.attr(t):t&&uo[o?"updateProps":"initProps"](n,t,i.animationModel,i.dataIndex,r)}function SS(n,e,t){var i=t.dataIndex,o=t.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),u=o.getShallow("cursor"),h=r.get("focus"),c=r.get("blurScope"),d=r.get("scale");Jf(n,function(g){if(g instanceof ee){var v=g.style;g.useStyle(N({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=a,d&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var p=e.valueDim.posDesc[+(t.boundingLength>0)],f=n.__pictorialBarRect;f.ignoreClip=!0,Dn(f,kn(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:hs(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:p}),nn(n,h,c,r.get("disabled"))}function MS(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const wB=fB;var SB=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=mi(Fu.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Fu);const MB=SB;function TB(n){n.registerChartView(wB),n.registerSeriesModel(MB),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,pt(g_,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,v_("pictorialBar"))}function TS(n,e,t,i){return n&&(n.legacy||n.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||H(n,"text")))}function CS(n,e,t){var i=n,o,r,a;if(e==="text")a=i;else{a={},H(i,"text")&&(a.text=i.text),H(i,"rich")&&(a.rich=i.rich),H(i,"textFill")&&(a.fill=i.textFill),H(i,"textStroke")&&(a.stroke=i.textStroke),H(i,"fontFamily")&&(a.fontFamily=i.fontFamily),H(i,"fontSize")&&(a.fontSize=i.fontSize),H(i,"fontStyle")&&(a.fontStyle=i.fontStyle),H(i,"fontWeight")&&(a.fontWeight=i.fontWeight),r={type:"text",style:a,silent:!0},o={};var s=H(i,"textPosition");t?o.position=s?i.textPosition:"inside":s&&(o.position=i.textPosition),H(i,"textPosition")&&(o.position=i.textPosition),H(i,"textOffset")&&(o.offset=i.textOffset),H(i,"textRotation")&&(o.rotation=i.textRotation),H(i,"textDistance")&&(o.distance=i.textDistance)}return IS(a,n),M(a.rich,function(l){IS(l,l)}),{textConfig:o,textContent:r}}function IS(n,e){e&&(e.font=e.textFont||e.font,H(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),H(e,"textAlign")&&(n.align=e.textAlign),H(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),H(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),H(e,"textWidth")&&(n.width=e.textWidth),H(e,"textHeight")&&(n.height=e.textHeight),H(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),H(e,"textPadding")&&(n.padding=e.textPadding),H(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),H(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),H(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),H(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),H(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),H(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),H(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function CB(n,e,t){var i=n;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var o=i.textPosition.indexOf("inside")>=0,r=n.fill||"#000";AS(i,e);var a=i.textFill==null;return o?a&&(i.textFill=t.insideFill||"#fff",!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=r),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(a&&(i.textFill=n.fill||t.outsideFill||"#000"),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,M(e.rich,function(s){AS(s,s)}),i}function AS(n,e){e&&(H(e,"fill")&&(n.textFill=e.fill),H(e,"stroke")&&(n.textStroke=e.fill),H(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),H(e,"font")&&(n.font=e.font),H(e,"fontStyle")&&(n.fontStyle=e.fontStyle),H(e,"fontWeight")&&(n.fontWeight=e.fontWeight),H(e,"fontSize")&&(n.fontSize=e.fontSize),H(e,"fontFamily")&&(n.fontFamily=e.fontFamily),H(e,"align")&&(n.textAlign=e.align),H(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),H(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),H(e,"width")&&(n.textWidth=e.width),H(e,"height")&&(n.textHeight=e.height),H(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),H(e,"padding")&&(n.textPadding=e.padding),H(e,"borderColor")&&(n.textBorderColor=e.borderColor),H(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),H(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),H(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),H(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),H(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),H(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),H(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),H(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),H(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),H(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var DS={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},kS=at(DS);Ae(mn,function(n,e){return n[e]=1,n},{}),mn.join(", ");var oh=["","style","shape","extra"],Pr=_t();function tg(n,e,t,i,o){var r=n+"Animation",a=Ol(n,i,o)||{},s=Pr(e).userDuring;return a.duration>0&&(a.during=s?Y(PB,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=n),N(a,t[r]),a}function rh(n,e,t,i){i=i||{};var o=i.dataIndex,r=i.isInit,a=i.clearStyle,s=t.isAnimationEnabled(),l=Pr(n),u=e.style;l.userDuring=e.during;var h={},c={};if(OB(n,e,c),RS("shape",e,c),RS("extra",e,c),!r&&s&&(LB(n,e,h),OS("shape",n,e,h),OS("extra",n,e,h),RB(n,e,u,h)),c.style=u,IB(n,c,a),DB(n,e),s)if(r){var d={};M(oh,function(f){var g=f?e[f]:e;g&&g.enterFrom&&(f&&(d[f]=d[f]||{}),N(f?d[f]:d,g.enterFrom))});var p=tg("enter",n,e,t,o);p.duration>0&&n.animateFrom(d,p)}else AB(n,e,o||0,t,h);PS(n,e),u?n.dirty():n.markRedraw()}function PS(n,e){for(var t=Pr(n).leaveToProps,i=0;i<oh.length;i++){var o=oh[i],r=o?e[o]:e;r&&r.leaveTo&&(t||(t=Pr(n).leaveToProps={}),o&&(t[o]=t[o]||{}),N(o?t[o]:t,r.leaveTo))}}function LS(n,e,t,i){if(n){var o=n.parent,r=Pr(n).leaveToProps;if(r){var a=tg("update",n,e,t,0);a.done=function(){o.remove(n),i&&i()},n.animateTo(r,a)}else o.remove(n),i&&i()}}function Lo(n){return n==="all"}function IB(n,e,t){var i=e.style;if(!n.isGroup&&i){if(t){n.useStyle({});for(var o=n.animators,r=0;r<o.length;r++){var a=o[r];a.targetName==="style"&&a.changeTarget(n.style)}}n.setStyle(i)}e&&(e.style=null,e&&n.attr(e),e.style=i)}function AB(n,e,t,i,o){if(o){var r=tg("update",n,e,i,t);r.duration>0&&n.animateFrom(o,r)}}function DB(n,e){H(e,"silent")&&(n.silent=e.silent),H(e,"ignore")&&(n.ignore=e.ignore),n instanceof wn&&H(e,"invisible")&&(n.invisible=e.invisible),n instanceof gt&&H(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var zn={},kB={setTransform:function(n,e){return zn.el[n]=e,this},getTransform:function(n){return zn.el[n]},setShape:function(n,e){var t=zn.el,i=t.shape||(t.shape={});return i[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=zn.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=zn.el,i=t.style;return i&&(i[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=zn.el.style;if(e)return e[n]},setExtra:function(n,e){var t=zn.el.extra||(zn.el.extra={});return t[n]=e,this},getExtra:function(n){var e=zn.el.extra;if(e)return e[n]}};function PB(){var n=this,e=n.el;if(e){var t=Pr(e).userDuring,i=n.userDuring;if(t!==i){n.el=n.userDuring=null;return}zn.el=e,i(kB)}}function OS(n,e,t,i){var o=t[n];if(o){var r=e[n],a;if(r){var s=t.transition,l=o.transition;if(l)if(!a&&(a=i[n]={}),Lo(l))N(a,r);else for(var u=Dt(l),h=0;h<u.length;h++){var c=u[h],d=r[c];a[c]=d}else if(Lo(s)||lt(s,n)>=0){!a&&(a=i[n]={});for(var p=at(r),h=0;h<p.length;h++){var c=p[h],d=r[c];NB(o[c],d)&&(a[c]=d)}}}}}function RS(n,e,t){var i=e[n];if(i)for(var o=t[n]={},r=at(i),a=0;a<r.length;a++){var s=r[a];o[s]=aa(i[s])}}function LB(n,e,t){for(var i=e.transition,o=Lo(i)?mn:Dt(i||[]),r=0;r<o.length;r++){var a=o[r];if(!(a==="style"||a==="shape"||a==="extra")){var s=n[a];t[a]=s}}}function OB(n,e,t){for(var i=0;i<kS.length;i++){var o=kS[i],r=DS[o],a=e[o];a&&(t[r[0]]=a[0],t[r[1]]=a[1])}for(var i=0;i<mn.length;i++){var s=mn[i];e[s]!=null&&(t[s]=e[s])}}function RB(n,e,t,i){if(t){var o=n.style,r;if(o){var a=t.transition,s=e.transition;if(a&&!Lo(a)){var l=Dt(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var h=l[u],c=o[h];r[h]=c}}else if(n.getAnimationStyleProps&&(Lo(s)||Lo(a)||lt(s,"style")>=0)){var d=n.getAnimationStyleProps(),p=d?d.style:null;if(p){!r&&(r=i.style={});for(var f=at(t),u=0;u<f.length;u++){var h=f[u];if(p[h]){var c=o[h];r[h]=c}}}}}}}function NB(n,e){return Xt(n)?n!==e:n!=null&&isFinite(n)}var NS=_t(),zB=["percent","easing","shape","style","extra"];function zS(n){n.stopAnimation("keyframe"),n.attr(NS(n))}function ah(n,e,t){if(!(!t.isAnimationEnabled()||!e)){if(V(e)){M(e,function(s){ah(n,s,t)});return}var i=e.keyframes,o=e.duration;if(t&&o==null){var r=Ol("enter",t,0);o=r&&r.duration}if(!(!i||!o)){var a=NS(n);M(oh,function(s){if(!(s&&!n[s])){var l;i.sort(function(u,h){return u.percent-h.percent}),M(i,function(u){var h=n.animators,c=s?u[s]:u;if(c){var d=at(c);if(s||(d=At(d,function(g){return lt(zB,g)<0})),!!d.length){l||(l=n.animate(s,e.loop,!0),l.scope="keyframe");for(var p=0;p<h.length;p++)h[p]!==l&&h[p].targetName===l.targetName&&h[p].stopTracks(d);s&&(a[s]=a[s]||{});var f=s?a[s]:a;M(d,function(g){f[g]=((s?n[s]:n)||{})[g]}),l.whenWithKeys(o*u.percent,c,d,u.easing)}}}),l&&l.delay(e.delay||0).duration(o).start(e.easing)}})}}}var Oo=_t(),BS=q,eg=Y,BB=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,i,o){var r=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!o&&this._lastValue===r&&this._lastStatus===a)){this._lastValue=r,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,r,e,t,i);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new it,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var d=pt(ES,t,c);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,t)}WS(s,t,!0),this._renderHandle(r)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var i=t.get("animation"),o=e.axis,r=o.type==="category",a=t.get("snap");if(!a&&!r)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(r&&o.getBandWidth()>s)return!0;if(a){var l=_f(e).seriesDataCount,u=o.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(e,t,i,o,r){},n.prototype.createPointerEl=function(e,t,i,o){var r=t.pointer;if(r){var a=Oo(e).pointerEl=new uo[r.type](BS(t.pointer));e.add(a)}},n.prototype.createLabelEl=function(e,t,i,o){if(t.label){var r=Oo(e).labelEl=new dt(BS(t.label));e.add(r),FS(r,o)}},n.prototype.updatePointerEl=function(e,t,i){var o=Oo(e).pointerEl;o&&t.pointer&&(o.setStyle(t.pointer.style),i(o,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,i,o){var r=Oo(e).labelEl;r&&(r.setStyle(t.label.style),i(r,{x:t.label.x,y:t.label.y}),FS(r,o))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=t.getModel("handle"),a=t.get("status");if(!r.get("show")||!a||a==="hide"){o&&i.remove(o),this._handle=null;return}var s;this._handle||(s=!0,o=this._handle=ar(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Hn(u.event)},onmousedown:eg(this._onHandleDragMove,this,0,0),drift:eg(this._onHandleDragMove,this),ondragend:eg(this._onHandleDragEnd,this)}),i.add(o)),WS(o,t,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=r.get("size");V(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,xr(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){ES(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ng(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var o=this.updateHandleTransform(ng(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=o,i.stopAnimation(),i.attr(ng(o)),Oo(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},n.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"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,o=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),o&&t.remove(o),this._group=null,this._handle=null,this._payloadInfo=null),Ua(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},n}();function ES(n,e,t,i){VS(Oo(t).lastProp,i)||(Oo(t).lastProp=i,e?Tt(t,i,n):(t.stopAnimation(),t.attr(i)))}function VS(n,e){if(j(n)&&j(e)){var t=!0;return M(e,function(i,o){t=t&&VS(n[o],i)}),!!t}else return n===e}function FS(n,e){n[e.get(["label","show"])?"show":"hide"]()}function ng(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function WS(n,e,t){var i=e.get("z"),o=e.get("zlevel");n&&n.traverse(function(r){r.type!=="group"&&(i!=null&&(r.z=i),o!=null&&(r.zlevel=o),r.silent=t)})}const ig=BB;function og(n){var e=n.get("type"),t=n.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function GS(n,e,t,i,o){var r=t.get("value"),a=HS(r,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=co(s.get("padding")||0),u=s.getFont(),h=ua(a,u),c=o.position,d=h.width+l[1]+l[3],p=h.height+l[0]+l[2],f=o.align;f==="right"&&(c[0]-=d),f==="center"&&(c[0]-=d/2);var g=o.verticalAlign;g==="bottom"&&(c[1]-=p),g==="middle"&&(c[1]-=p/2),EB(c,d,p,i);var v=s.get("backgroundColor");(!v||v==="auto")&&(v=e.get(["axisLine","lineStyle","color"])),n.label={x:c[0],y:c[1],style:Ct(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function EB(n,e,t,i){var o=i.getWidth(),r=i.getHeight();n[0]=Math.min(n[0]+e,o)-e,n[1]=Math.min(n[1]+t,r)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function HS(n,e,t,i,o){n=e.scale.parse(n);var r=e.scale.getLabel({value:n},{precision:o.precision}),a=o.formatter;if(a){var s={value:Kd(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,c=u&&u.getDataParams(h);c&&s.seriesData.push(c)}),G(a)?r=a.replace("{value}",r):$(a)&&(r=a(s))}return r}function rg(n,e,t){var i=me();return si(i,i,t.rotation),vn(i,i,t.position),rn([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function YS(n,e,t,i,o,r){var a=ti.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=o.get(["label","margin"]),GS(e,i,o,r,{position:rg(i.axis,n,t),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function ag(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function US(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function XS(n,e,t,i,o,r){return{cx:n,cy:e,r0:t,r:i,startAngle:o,endAngle:r,clockwise:!0}}var VB=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis,l=s.grid,u=r.get("type"),h=ZS(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var d=og(r),p=FB[u](s,c,h);p.style=d,t.graphicKey=p.type,t.pointer=p}var f=vf(l.model,o);YS(i,t,f,o,r,a)},e.prototype.getHandleTransform=function(t,i,o){var r=vf(i.axis.grid.model,i,{labelInside:!1});r.labelMargin=o.get(["handle","margin"]);var a=rg(i.axis,t,r);return{x:a[0],y:a[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,o,r){var a=o.axis,s=a.grid,l=a.getGlobalExtent(!0),u=ZS(s,a).getOtherAxis(a).getGlobalExtent(),h=a.dim==="x"?0:1,c=[t.x,t.y];c[h]+=i[h],c[h]=Math.min(l[1],c[h]),c[h]=Math.max(l[0],c[h]);var d=(u[1]+u[0])/2,p=[d,d];p[h]=c[h];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:p,tooltipOption:f[h]}},e}(ig);function ZS(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var FB={line:function(n,e,t){var i=ag([e,t[0]],[e,t[1]],jS(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,e,t){var i=Math.max(1,n.getBandWidth()),o=t[1]-t[0];return{type:"Rect",shape:US([e-i/2,t[0]],[i,o],jS(n))}}};function jS(n){return n.dim==="x"?0:1}const WB=VB;var GB=function(n){z(e,n);function e(){var t=n!==null&&n.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}(ft);const HB=GB;var ii=_t(),YB=M;function qS(n,e,t){if(!ct.node){var i=e.getZr();ii(i).records||(ii(i).records={}),UB(i,e);var o=ii(i).records[n]||(ii(i).records[n]={});o.handler=t}}function UB(n,e){if(ii(n).initialized)return;ii(n).initialized=!0,t("click",pt(KS,"click")),t("mousemove",pt(KS,"mousemove")),t("globalout",ZB);function t(i,o){n.on(i,function(r){var a=jB(e);YB(ii(n).records,function(s){s&&o(s,r,a.dispatchAction)}),XB(a.pendings,e)})}}function XB(n,e){var t=n.showTip.length,i=n.hideTip.length,o;t?o=n.showTip[t-1]:i&&(o=n.hideTip[i-1]),o&&(o.dispatchAction=null,e.dispatchAction(o))}function ZB(n,e,t){n.handler("leave",null,t)}function KS(n,e,t,i){e.handler(n,t,i)}function jB(n){var e={showTip:[],hideTip:[]},t=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=t,n.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function sg(n,e){if(!ct.node){var t=e.getZr(),i=(ii(t).records||{})[n];i&&(ii(t).records[n]=null)}}var qB=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=i.getComponent("tooltip"),a=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";qS("axisPointer",o,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,i){sg("axisPointer",i)},e.prototype.dispose=function(t,i){sg("axisPointer",i)},e.type="axisPointer",e}(zt);const KB=qB;function $S(n,e){var t=[],i=n.seriesIndex,o;if(i==null||!(o=e.getSeriesByIndex(i)))return{point:[]};var r=o.getData(),a=Ui(r,n);if(a==null||a<0||V(a))return{point:[]};var s=r.getItemGraphicEl(a),l=o.coordinateSystem;if(o.getTooltipPosition)t=o.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,d=u.dim,p=c==="x"||c==="radius"?1:0,f=r.mapDimension(d),g=[];g[p]=r.get(f,a),g[1-p]=r.get(r.getCalculationInfo("stackResultDimension"),a),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(r.getValues(F(l.dimensions,function(y){return r.mapDimension(y)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),t=[v.x+v.width/2,v.y+v.height/2]}return{point:t,el:s}}var QS=_t();function $B(n,e,t){var i=n.currTrigger,o=[n.x,n.y],r=n,a=n.dispatchAction||Y(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){sh(o)&&(o=$S({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},e).point);var l=sh(o),u=r.axesInfo,h=s.axesInfo,c=i==="leave"||sh(o),d={},p={},f={list:[],map:{}},g={showPointer:pt(JB,p),showTooltip:pt(tE,f)};M(s.coordSysMap,function(y,m){var x=l||y.containPoint(o);M(s.coordSysAxesInfo[m],function(_,w){var b=_.axis,S=oE(u,_);if(!c&&x&&(!u||S)){var T=S&&S.value;T==null&&!l&&(T=b.pointToData(o)),T!=null&&JS(_,T,g,!1,d)}})});var v={};return M(h,function(y,m){var x=y.linkGroup;x&&!p[m]&&M(x.axesInfo,function(_,w){var b=p[w];if(_!==y&&b){var S=b.value;x.mapper&&(S=y.axis.scale.parse(x.mapper(S,tM(_),tM(y)))),v[y.key]=S}})}),M(v,function(y,m){JS(h[m],y,g,!0,d)}),eE(p,h,d),nE(f,o,n,a),iE(h,a,t),d}}function JS(n,e,t,i,o){var r=n.axis;if(!(r.scale.isBlank()||!r.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var a=QB(e,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&o.seriesIndex==null&&N(o,s[0]),!i&&n.snap&&r.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,a,l)}}function QB(n,e){var t=e.axis,i=t.dim,o=n,r=[],a=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var h=l.getData().mapDimensionsAll(i),c,d;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(h,n,t);d=p.dataIndices,c=p.nestestValue}else{if(d=l.getData().indicesOfNearest(h[0],n,t.type==="category"?.5:null),!d.length)return;c=l.getData().get(h[0],d[0])}if(!(c==null||!isFinite(c))){var f=n-c,g=Math.abs(f);g<=a&&((g<a||f>=0&&s<0)&&(a=g,s=f,o=c,r.length=0),M(d,function(v){r.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:r,snapToValue:o}}function JB(n,e,t,i){n[e.key]={value:t,payloadBatch:i}}function tE(n,e,t,i){var o=t.payloadBatch,r=e.axis,a=r.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!o.length)){var l=e.coordSys.model,u=ps(l),h=n.map[u];h||(h=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(h)),h.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function eE(n,e,t){var i=t.axesInfo=[];M(e,function(o,r){var a=o.axisPointerModel.option,s=n[r];s?(!o.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!o.useHandle&&(a.status="hide"),a.status==="show"&&i.push({axisDim:o.axis.dim,axisIndex:o.axis.model.componentIndex,value:a.value})})}function nE(n,e,t,i){if(sh(e)||!n.list.length){i({type:"hideTip"});return}var o=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:n.list})}function iE(n,e,t){var i=t.getZr(),o="axisPointerLastHighlights",r=QS(i)[o]||{},a=QS(i)[o]={};M(n,function(u,h){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&M(c.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;a[p]=d})});var s=[],l=[];M(r,function(u,h){!a[h]&&l.push(u)}),M(a,function(u,h){!r[h]&&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 oE(n,e){for(var t=0;t<(n||[]).length;t++){var i=n[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function tM(n){var e=n.axis.model,t={},i=t.axisDim=n.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function sh(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function lh(n){Cr.registerAxisPointerClass("CartesianAxisPointer",WB),n.registerComponentModel(HB),n.registerComponentView(KB),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!V(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=E5(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$B)}function rE(n){$t($b),$t(lh)}var aE=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),h=u.getExtent(),c=s.dataToCoord(i),d=r.get("type");if(d&&d!=="none"){var p=og(r),f=lE[d](s,l,c,h);f.style=p,t.graphicKey=f.type,t.pointer=f}var g=r.get(["label","margin"]),v=sE(i,o,r,l,g);GS(t,o,r,a,v)},e}(ig);function sE(n,e,t,i,o){var r=e.axis,a=r.dataToCoord(n),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,h,c;if(r.dim==="radius"){var d=me();si(d,d,s),vn(d,d,[i.cx,i.cy]),u=rn([a,-o],d);var p=e.getModel("axisLabel").get("rotate")||0,f=ti.innerTextLayout(s,p*Math.PI/180,-1);h=f.textAlign,c=f.textVerticalAlign}else{var g=l[1];u=i.coordToPoint([g+o,a]);var v=i.cx,y=i.cy;h=Math.abs(u[0]-v)/g<.3?"center":u[0]>v?"left":"right",c=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:h,verticalAlign:c}}var lE={line:function(n,e,t,i){return n.dim==="angle"?{type:"Line",shape:ag(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,i){var o=Math.max(1,n.getBandWidth()),r=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:XS(e.cx,e.cy,i[0],i[1],(-t-o/2)*r,(-t+o/2)*r)}:{type:"Sector",shape:XS(e.cx,e.cy,t-o/2,t+o/2,0,Math.PI*2)}}};const uE=aE;var hE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,o=this.ecModel;return o.eachComponent(t,function(r){r.getCoordSysModel()===this&&(i=r)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(ft);const cE=hE;var lg=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Bt).models[0]},e.type="polarAxis",e}(ft);Ut(lg,ss);var pE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(lg),dE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(lg),ug=function(n){z(e,n);function e(t,i){return n.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(cn);ug.prototype.dataToRadius=cn.prototype.dataToCoord,ug.prototype.radiusToData=cn.prototype.coordToData;const fE=ug;var gE=_t(),hg=function(n){z(e,n);function e(t,i){return n.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),o=t.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=r[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),h=ua(s==null?"":s+"",i.getFont(),"center","top"),c=Math.max(h.height,7),d=c/u;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),f=gE(t.model),g=f.lastAutoInterval,v=f.lastTickCount;return g!=null&&v!=null&&Math.abs(g-p)<=1&&Math.abs(v-a)<=1&&g>p?p=g:(f.lastTickCount=a,f.lastAutoInterval=p),p},e}(cn);hg.prototype.dataToAngle=cn.prototype.dataToCoord,hg.prototype.angleToData=cn.prototype.coordToData;const vE=hg;var eM=["radius","angle"],yE=function(){function n(e){this.dimensions=eM,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new fE,this._angleAxis=new vE,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,o=this._radiusAxis;return i.scale.type===e&&t.push(i),o.scale.type===e&&t.push(o),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,o=this.getAngleAxis(),r=o.getExtent(),a=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);o.inverse?a=s-360:s=a+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,h=u<a?1:-1;u<a||u>s;)u+=h*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,o=Math.cos(i)*t+this.cx,r=-Math.sin(i)*t+this.cy;return[o,r]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var o=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-o[0]*r,endAngle:-o[1]*r,clockwise:e.inverse,contain:function(a,s){var l=a-this.cx,u=s-this.cy,h=l*l+u*u-1e-4,c=this.r,d=this.r0;return h<=c*c&&h>=d*d}}},n.prototype.convertToPixel=function(e,t,i){var o=nM(t);return o===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=nM(t);return o===this?this.pointToData(i):null},n}();function nM(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const mE=yE;function xE(n,e,t){var i=e.get("center"),o=t.getWidth(),r=t.getHeight();n.cx=U(i[0],o),n.cy=U(i[1],r);var a=n.getRadiusAxis(),s=Math.min(o,r)/2,l=e.get("radius");l==null?l=[0,"100%"]:V(l)||(l=[0,l]);var u=[U(l[0],s),U(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function _E(n,e){var t=this,i=t.getAngleAxis(),o=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(Ru(l,"radius"),function(u){o.scale.unionExtentFromData(l,u)}),M(Ru(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),Sr(i.scale,i.model),Sr(o.scale,o.model),i.type==="category"&&!i.onBand){var r=i.getExtent(),a=360/i.scale.count();i.inverse?r[1]+=a:r[1]-=a,i.setExtent(r[0],r[1])}}function bE(n){return n.mainType==="angleAxis"}function iM(n,e){var t;if(n.type=e.get("type"),n.scale=Ou(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),bE(e)){n.inverse=n.inverse!==e.get("clockwise");var i=e.get("startAngle"),o=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(n.inverse?-360:360);n.setExtent(i,o)}e.axis=n,n.model=e}var wE={dimensions:eM,create:function(n,e){var t=[];return n.eachComponent("polar",function(i,o){var r=new mE(o+"");r.update=_E;var a=r.getRadiusAxis(),s=r.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");iM(a,l),iM(s,u),xE(r,i,e),t.push(r),i.coordinateSystem=r,r.model=i}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var o=i.getReferringComponents("polar",Bt).models[0];i.coordinateSystem=o.coordinateSystem}}),t}};const SE=wE;var ME=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function uh(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=n.coordToPoint([e[0],t]),o=n.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function hh(n){var e=n.getRadiusAxis();return e.inverse?0:1}function oM(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var TE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var o=t.axis,r=o.polar,a=r.getRadiusAxis().getExtent(),s=o.getTicksCoords(),l=o.getMinorTicksCoords(),u=F(o.getViewLabels(),function(h){h=q(h);var c=o.scale,d=c.type==="ordinal"?c.getRawOrdinalNumber(h.tickValue):h.tickValue;return h.coord=o.dataToCoord(d),h});oM(u),oM(s),M(ME,function(h){t.get([h,"show"])&&(!o.scale.isBlank()||h==="axisLine")&&CE[h](this.group,t,r,s,l,a,u)},this)}},e.type="angleAxis",e}(Cr),CE={axisLine:function(n,e,t,i,o,r){var a=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),h=hh(t),c=h?0:1,d,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";r[c]===0?d=new uo[p]({shape:{cx:t.cx,cy:t.cy,r:r[h],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:a.getLineStyle(),z2:1,silent:!0}):d=new Ia({shape:{cx:t.cx,cy:t.cy,r:r[h],r0:r[c]},style:a.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,n.add(d)},axisTick:function(n,e,t,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[hh(t)],u=F(i,function(h){return new qt({shape:uh(t,[l,l+s],h.coord)})});n.add(Ve(u,{style:K(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[hh(t)],h=[],c=0;c<o.length;c++)for(var d=0;d<o[c].length;d++)h.push(new qt({shape:uh(t,[u,u+l],o[c][d].coord)}));n.add(Ve(h,{style:K(s.getModel("lineStyle").getLineStyle(),K(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,e,t,i,o,r,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),h=e.get("triggerEvent");M(a,function(c,d){var p=l,f=c.tickValue,g=r[hh(t)],v=t.coordToPoint([g+u,c.coord]),y=t.cx,m=t.cy,x=Math.abs(v[0]-y)/g<.3?"center":v[0]>y?"left":"right",_=Math.abs(v[1]-m)/g<.3?"middle":v[1]>m?"top":"bottom";if(s&&s[f]){var w=s[f];j(w)&&w.textStyle&&(p=new Ot(w.textStyle,l,l.ecModel))}var b=new dt({silent:ti.isLabelSilent(e),style:Ct(p,{x:v[0],y:v[1],fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:x,verticalAlign:_})});if(n.add(b),h){var S=ti.makeAxisEventDataBase(e);S.targetType="axisLabel",S.value=c.rawLabel,rt(b).eventData=S}},this)},splitLine:function(n,e,t,i,o,r){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=0;c<i.length;c++){var d=u++%l.length;h[d]=h[d]||[],h[d].push(new qt({shape:uh(t,r,i[c].coord)}))}for(var c=0;c<h.length;c++)n.add(Ve(h[c],{style:K({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(n,e,t,i,o,r){if(o.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<o.length;u++)for(var h=0;h<o[u].length;h++)l.push(new qt({shape:uh(t,r,o[u][h].coord)}));n.add(Ve(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(n,e,t,i,o,r){if(i.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=Math.PI/180,d=-i[0].coord*c,p=Math.min(r[0],r[1]),f=Math.max(r[0],r[1]),g=e.get("clockwise"),v=1,y=i.length;v<=y;v++){var m=v===y?i[0].coord:i[v].coord,x=u++%l.length;h[x]=h[x]||[],h[x].push(new ze({shape:{cx:t.cx,cy:t.cy,r0:p,r:f,startAngle:d,endAngle:-m*c,clockwise:g},silent:!0})),d=-m*c}for(var v=0;v<h.length;v++)n.add(Ve(h[v],{style:K({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};const IE=TE;var AE=["axisLine","axisTickLabel","axisName"],DE=["splitLine","splitArea","minorSplitLine"],kE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var o=this._axisGroup,r=this._axisGroup=new it;this.group.add(r);var a=t.axis,s=a.polar,l=s.getAngleAxis(),u=a.getTicksCoords(),h=a.getMinorTicksCoords(),c=l.getExtent()[0],d=a.getExtent(),p=LE(s,t,c),f=new ti(t,p);M(AE,f.add,f),r.add(f.getGroup()),ka(o,r,t),M(DE,function(g){t.get([g,"show"])&&!a.scale.isBlank()&&PE[g](this.group,t,s,c,d,u,h)},this)}},e.type="radiusAxis",e}(Cr),PE={splitLine:function(n,e,t,i,o,r){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0,h=t.getAngleAxis(),c=Math.PI/180,d=h.getExtent(),p=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var f=[],g=0;g<r.length;g++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new uo[p]({shape:{cx:t.cx,cy:t.cy,r:Math.max(r[g].coord,0),startAngle:-d[0]*c,endAngle:-d[1]*c,clockwise:h.inverse}}))}for(var g=0;g<f.length;g++)n.add(Ve(f[g],{style:K({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(n,e,t,i,o,r,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],h=0;h<a.length;h++)for(var c=0;c<a[h].length;c++)u.push(new $n({shape:{cx:t.cx,cy:t.cy,r:a[h][c].coord}}));n.add(Ve(u,{style:K({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(n,e,t,i,o,r){if(r.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=r[0].coord,d=1;d<r.length;d++){var p=u++%l.length;h[p]=h[p]||[],h[p].push(new ze({shape:{cx:t.cx,cy:t.cy,r0:c,r:r[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=r[d].coord}for(var d=0;d<h.length;d++)n.add(Ve(h[d],{style:K({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function LE(n,e,t){return{position:[n.cx,n.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const OE=kE;function rM(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}function aM(n,e){return e.dim+n.model.componentIndex}function RE(n,e,t){var i={},o=NE(At(e.getSeriesByType(n),function(r){return!e.isSeriesFiltered(r)&&r.coordinateSystem&&r.coordinateSystem.type==="polar"}));e.eachSeriesByType(n,function(r){if(r.coordinateSystem.type==="polar"){var a=r.getData(),s=r.coordinateSystem,l=s.getBaseAxis(),u=aM(s,l),h=rM(r),c=o[u][h],d=c.offset,p=c.width,f=s.getOtherAxis(l),g=r.coordinateSystem.cx,v=r.coordinateSystem.cy,y=r.get("barMinHeight")||0,m=r.get("barMinAngle")||0;i[h]=i[h]||[];for(var x=a.mapDimension(f.dim),_=a.mapDimension(l.dim),w=Ti(a,x),b=l.dim!=="radius"||!r.get("roundCap",!0),S=f.dataToCoord(0),T=0,I=a.count();T<I;T++){var C=a.get(x,T),A=a.get(_,T),D=C>=0?"p":"n",k=S;w&&(i[h][A]||(i[h][A]={p:S,n:S}),k=i[h][A][D]);var P=void 0,L=void 0,O=void 0,E=void 0;if(f.dim==="radius"){var R=f.dataToCoord(C)-S,B=l.dataToCoord(A);Math.abs(R)<y&&(R=(R<0?-1:1)*y),P=k,L=k+R,O=B-d,E=O-p,w&&(i[h][A][D]=L)}else{var W=f.dataToCoord(C,b)-S,Z=l.dataToCoord(A);Math.abs(W)<m&&(W=(W<0?-1:1)*m),P=Z+d,L=P+p,O=k,E=k+W,w&&(i[h][A][D]=E)}a.setItemLayout(T,{cx:g,cy:v,r0:P,r:L,startAngle:-O*Math.PI/180,endAngle:-E*Math.PI/180,clockwise:O>=E})}}})}function NE(n){var e={};M(n,function(i,o){var r=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=aM(a,s),u=s.getExtent(),h=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/r.count(),c=e[l]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=c.stacks;e[l]=c;var p=rM(i);d[p]||c.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var f=U(i.get("barWidth"),h),g=U(i.get("barMaxWidth"),h),v=i.get("barGap"),y=i.get("barCategoryGap");f&&!d[p].width&&(f=Math.min(c.remainedWidth,f),d[p].width=f,c.remainedWidth-=f),g&&(d[p].maxWidth=g),v!=null&&(c.gap=v),y!=null&&(c.categoryGap=y)});var t={};return M(e,function(i,o){t[o]={};var r=i.stacks,a=i.bandWidth,s=U(i.categoryGap,a),l=U(i.gap,1),u=i.remainedWidth,h=i.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),M(r,function(g,v){var y=g.maxWidth;y&&y<c&&(y=Math.min(y,u),g.width&&(y=Math.min(y,g.width)),u-=y,g.width=y,h--)}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var d=0,p;M(r,function(g,v){g.width||(g.width=c),p=g,d+=g.width*(1+l)}),p&&(d-=p.width*l);var f=-d/2;M(r,function(g,v){t[o][v]=t[o][v]||{offset:f,width:g.width},f+=g.width*(1+l)})}),t}var zE={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},BE={splitNumber:5},EE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(zt);function VE(n){$t(lh),Cr.registerAxisPointerClass("PolarAxisPointer",uE),n.registerCoordinateSystem("polar",SE),n.registerComponentModel(cE),n.registerComponentView(EE),Tr(n,"angle",pE,zE),Tr(n,"radius",dE,BE),n.registerComponentView(IE),n.registerComponentView(OE),n.registerLayout(pt(RE,"bar"))}var FE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,o){var r=dr(t);n.prototype.init.apply(this,arguments),sM(t,r)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),sM(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(ft);function sM(n,e){var t=n.cellSize,i;V(t)?i=t:i=n.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var o=F([0,1],function(r){return UD(e,r)&&(i[r]="auto"),i[r]!=null&&i[r]!=="auto"});xi(n,e,{type:"box",ignoreSize:o})}const WE=FE;var GE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group;r.removeAll();var a=t.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,r),this._renderLines(t,s,l,r),this._renderYearText(t,s,l,r),this._renderMonthText(t,u,l,r),this._renderWeekText(t,u,s,l,r)},e.prototype._renderDayRect=function(t,i,o){for(var r=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),s=r.getCellWidth(),l=r.getCellHeight(),u=i.start.time;u<=i.end.time;u=r.getNextNDay(u,1).time){var h=r.dataToRect([u],!1).tl,c=new yt({shape:{x:h[0],y:h[1],width:s,height:l},cursor:"default",style:a});o.add(c)}},e.prototype._renderLines=function(t,i,o,r){var a=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),h=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=i.start,d=0;c.time<=i.end.time;d++){f(c.formatedDate),d===0&&(c=s.getDateInfo(i.start.y+"-"+i.start.m));var p=c.date;p.setMonth(p.getMonth()+1),c=s.getDateInfo(p)}f(s.getNextNDay(i.end.time,1).formatedDate);function f(g){a._firstDayOfMonth.push(s.getDateInfo(g)),a._firstDayPoints.push(s.dataToRect([g],!1).tl);var v=a._getLinePointsOfOneWeek(t,g,o);a._tlpoints.push(v[0]),a._blpoints.push(v[v.length-1]),u&&a._drawSplitline(v,l,r)}u&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,h,o),l,r),u&&this._drawSplitline(a._getEdgesPoints(a._blpoints,h,o),l,r)},e.prototype._getEdgesPoints=function(t,i,o){var r=[t[0].slice(),t[t.length-1].slice()],a=o==="horizontal"?0:1;return r[0][a]=r[0][a]-i/2,r[1][a]=r[1][a]+i/2,r},e.prototype._drawSplitline=function(t,i,o){var r=new Be({z2:20,shape:{points:t},style:i});o.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,i,o){for(var r=t.coordinateSystem,a=r.getDateInfo(i),s=[],l=0;l<7;l++){var u=r.getNextNDay(a.time,l),h=r.dataToRect([u.time],!1);s[2*u.day]=h.tl,s[2*u.day+1]=h[o==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return G(t)&&t?WD(t,i):$(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,o,r,a){var s=i[0],l=i[1],u=["center","bottom"];r==="bottom"?(l+=a,u=["center","top"]):r==="left"?s-=a:r==="right"?(s+=a,u=["center","top"]):l-=a;var h=0;return(r==="left"||r==="right")&&(h=Math.PI/2),{rotation:h,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,o,r){var a=t.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=o!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,d=o==="horizontal"?0:1,p={top:[h,u[d][1]],bottom:[h,u[1-d][1]],left:[u[1-d][0],c],right:[u[d][0],c]},f=i.start.y;+i.end.y>+i.start.y&&(f=f+"-"+i.end.y);var g=a.get("formatter"),v={start:i.start.y,end:i.end.y,nameMap:f},y=this._formatterLabel(g,v),m=new dt({z2:30,style:Ct(a,{text:y})});m.attr(this._yearTextPositionControl(m,p[l],o,l,s)),r.add(m)}},e.prototype._monthTextPositionControl=function(t,i,o,r,a){var s="left",l="top",u=t[0],h=t[1];return o==="horizontal"?(h=h+a,i&&(s="center"),r==="start"&&(l="bottom")):(u=u+a,i&&(l="middle"),r==="start"&&(s="right")),{x:u,y:h,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,o,r){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),h=a.get("align"),c=[this._tlpoints,this._blpoints];(!s||G(s))&&(s&&(i=Pp(s)||i),s=i.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=o==="horizontal"?0:1;l=u==="start"?-l:l;for(var f=h==="center",g=0;g<c[d].length-1;g++){var v=c[d][g].slice(),y=this._firstDayOfMonth[g];if(f){var m=this._firstDayPoints[g];v[p]=(m[p]+c[0][g+1][p])/2}var x=a.get("formatter"),_=s[+y.m-1],w={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:_},b=this._formatterLabel(x,w),S=new dt({z2:30,style:N(Ct(a,{text:b}),this._monthTextPositionControl(v,f,o,u,l))});r.add(S)}}},e.prototype._weekTextPositionControl=function(t,i,o,r,a){var s="center",l="middle",u=t[0],h=t[1],c=o==="start";return i==="horizontal"?(u=u+r+(c?1:-1)*a[0]/2,s=c?"right":"left"):(h=h+r+(c?1:-1)*a[1]/2,l=c?"bottom":"top"),{x:u,y:h,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,i,o,r,a){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),h=s.get("nameMap"),c=s.get("margin"),d=l.getFirstDayOfWeek();if(!h||G(h)){h&&(i=Pp(h)||i);var p=i.get(["time","dayOfWeekShort"]);h=p||F(i.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var f=l.getNextNDay(o.end.time,7-o.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];c=U(c,Math.min(g[1],g[0])),u==="start"&&(f=l.getNextNDay(o.start.time,-(7+o.fweek)).time,c=-c);for(var v=0;v<7;v++){var y=l.getNextNDay(f,v),m=l.dataToRect([y.time],!1).center,x=v;x=Math.abs((v+d)%7);var _=new dt({z2:30,style:N(Ct(s,{text:h[x]}),this._weekTextPositionControl(m,r,u,c,g))});a.add(_)}}},e.type="calendar",e}(zt);const HE=GE;var cg=864e5,YE=function(){function n(e,t,i){this.type="calendar",this.dimensions=n.dimensions,this.getDimensionsInfo=n.getDimensionsInfo,this._model=e}return n.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},n.prototype.getRangeInfo=function(){return this._rangeInfo},n.prototype.getModel=function(){return this._model},n.prototype.getRect=function(){return this._rect},n.prototype.getCellWidth=function(){return this._sw},n.prototype.getCellHeight=function(){return this._sh},n.prototype.getOrient=function(){return this._orient},n.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},n.prototype.getDateInfo=function(e){e=Re(e);var t=e.getFullYear(),i=e.getMonth()+1,o=i<10?"0"+i:""+i,r=e.getDate(),a=r<10?"0"+r:""+r,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:o,d:a,day:s,time:e.getTime(),formatedDate:t+"-"+o+"-"+a,date:e}},n.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},n.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,o=["width","height"],r=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];M([0,1],function(c){h(r,c)&&(a[o[c]]=r[c]*s[c])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=pe(a,l);M([0,1],function(c){h(r,c)||(r[c]=u[o[c]]/s[c])});function h(c,d){return c[d]!=null&&c[d]!=="auto"}this._sw=r[0],this._sh=r[1]},n.prototype.dataToPoint=function(e,t){V(e)&&(e=e[0]),t==null&&(t=!0);var i=this.getDateInfo(e),o=this._rangeInfo,r=i.formatedDate;if(t&&!(i.time>=o.start.time&&i.time<o.end.time+cg))return[NaN,NaN];var a=i.day,s=this._getRangeInfo([o.start.time,r]).nthWeek;return this._orient==="vertical"?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},n.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},n.prototype.dataToRect=function(e,t){var i=this.dataToPoint(e,t);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},n.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,o=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,t-1,o):this._getDateByWeeksAndDay(t,i-1,o)},n.prototype.convertToPixel=function(e,t,i){var o=lM(t);return o===this?o.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=lM(t);return o===this?o.pointToData(i):null},n.prototype.containPoint=function(e){return!1},n.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(V(e)&&e.length===1&&(e=e[0]),V(e))t=e;else{var i=e.toString();if(/^\d{4}$/.test(i)&&(t=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var o=this.getDateInfo(i),r=o.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);t=[o.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(t=[i,i])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var o=Math.floor(t[1].time/cg)-Math.floor(t[0].time/cg)+1,r=new Date(t[0].time),a=r.getDate(),s=t[1].date.getDate();r.setDate(a+o-1);var l=r.getDate();if(l!==s)for(var u=r.getTime()-t[1].time>0?1:-1;(l=r.getDate())!==s&&(r.getTime()-t[1].time)*u>0;)o-=u,r.setDate(l-u);var h=Math.floor((o+t[0].day+6)/7),c=i?-h+1:h-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:o,weeks:h,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,i){var o=this._getRangeInfo(i);if(e>o.weeks||e===0&&t<o.fweek||e===o.weeks&&t>o.lweek)return null;var r=(e-1)*7-o.fweek+t,a=new Date(o.start.time);return a.setDate(+o.start.d+r),this.getDateInfo(a)},n.create=function(e,t){var i=[];return e.eachComponent("calendar",function(o){var r=new n(o);i.push(r),o.coordinateSystem=r}),e.eachSeries(function(o){o.get("coordinateSystem")==="calendar"&&(o.coordinateSystem=i[o.get("calendarIndex")||0])}),i},n.dimensions=["time","value"],n}();function lM(n){var e=n.calendarModel,t=n.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}const UE=YE;function XE(n){n.registerComponentModel(WE),n.registerComponentView(HE),n.registerCoordinateSystem("calendar",UE)}function ZE(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function uM(n,e){var t;return M(e,function(i){n[i]!=null&&n[i]!=="auto"&&(t=!0)}),t}function jE(n,e,t){var i=N({},t),o=n[e],r=t.$action||"merge";r==="merge"?o?(et(o,i,!0),xi(o,i,{ignoreSize:!0}),k0(t,o),ch(t,o),ch(t,o,"shape"),ch(t,o,"style"),ch(t,o,"extra"),t.clipPath=o.clipPath):n[e]=i:r==="replace"?n[e]=i:r==="remove"&&o&&(n[e]=null)}var hM=["transition","enterFrom","leaveTo"],qE=hM.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ch(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var i=t?hM:qE,o=0;o<i.length;o++){var r=i[o];n[r]==null&&e[r]!=null&&(n[r]=e[r])}}function KE(n,e){if(n&&(n.hv=e.hv=[uM(e,["left","right"]),uM(e,["top","bottom"])],n.type==="group")){var t=n,i=e;t.width==null&&(t.width=i.width=0),t.height==null&&(t.height=i.height=0)}}var $E=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,i){var o=this.option.elements;this.option.elements=null,n.prototype.mergeOption.call(this,t,i),this.option.elements=o},e.prototype.optionUpdated=function(t,i){var o=this.option,r=(i?o:t).elements,a=o.elements=i?[]:o.elements,s=[];this._flatten(r,s,null);var l=Ty(a,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(h,c){var d=h.newOption;d&&(u.push(d),ZE(h,d),jE(a,c,d),KE(a[c],d))},this),o.elements=At(a,function(h){return h&&delete h.$action,h!=null})},e.prototype._flatten=function(t,i,o){M(t,function(r){if(r){o&&(r.parentOption=o),i.push(r);var a=r.children;a&&a.length&&this._flatten(a,i,r),delete r.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(ft),cM={path:null,compoundPath:null,group:it,image:ee,text:dt},Ze=_t(),QE=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=X()},e.prototype.render=function(t,i,o){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,o)},e.prototype._updateElements=function(t){var i=t.useElOptionsToUpdate();if(i){var o=this._elMap,r=this.group,a=t.get("z"),s=t.get("zlevel");M(i,function(l){var u=jt(l.id,null),h=u!=null?o.get(u):null,c=jt(l.parentId,null),d=c!=null?o.get(c):r,p=l.type,f=l.style;p==="text"&&f&&l.hv&&l.hv[1]&&(f.textVerticalAlign=f.textBaseline=f.verticalAlign=f.align=null);var g=l.textContent,v=l.textConfig;if(f&&TS(f,p,!!v,!!g)){var y=CS(f,p,!0);!v&&y.textConfig&&(v=l.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var m=JE(l),x=l.$action||"merge",_=x==="merge",w=x==="replace";if(_){var b=!h,S=h;b?S=pM(u,d,l.type,o):(S&&(Ze(S).isNew=!1),zS(S)),S&&(rh(S,m,t,{isInit:b}),dM(S,l,a,s))}else if(w){ph(h,l,o,t);var T=pM(u,d,l.type,o);T&&(rh(T,m,t,{isInit:!0}),dM(T,l,a,s))}else x==="remove"&&(PS(h,l),ph(h,l,o,t));var I=o.get(u);if(I&&g)if(_){var C=I.getTextContent();C?C.attr(g):I.setTextContent(new dt(g))}else w&&I.setTextContent(new dt(g));if(I){var A=l.clipPath;if(A){var D=A.type,k=void 0,b=!1;if(_){var P=I.getClipPath();b=!P||Ze(P).type!==D,k=b?pg(D):P}else w&&(b=!0,k=pg(D));I.setClipPath(k),rh(k,A,t,{isInit:b}),ah(k,A.keyframeAnimation,t)}var L=Ze(I);I.setTextConfig(v),L.option=l,t3(I,t,l),sr({el:I,componentModel:t,itemName:I.name,itemTooltipOption:l.tooltip}),ah(I,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,i){for(var o=t.option.elements,r=this.group,a=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],h=0;h<o.length;h++){var c=o[h],d=jt(c.id,null),p=d!=null?a.get(d):null;if(!(!p||!p.isGroup)){var f=p.parent,g=f===r,v=Ze(p),y=Ze(f);v.width=U(v.option.width,g?s:y.width)||0,v.height=U(v.option.height,g?l:y.height)||0}}for(var h=o.length-1;h>=0;h--){var c=o[h],d=jt(c.id,null),p=d!=null?a.get(d):null;if(p){var f=p.parent,y=Ze(f),m=f===r?{width:s,height:l}:{width:y.width,height:y.height},x={},_=Zl(p,c,m,null,{hv:c.hv,boundingMode:c.bounding},x);if(!Ze(p).isNew&&_){for(var w=c.transition,b={},S=0;S<u.length;S++){var T=u[S],I=x[T];w&&(Lo(w)||lt(w,T)>=0)?b[T]=I:p[T]=I}Tt(p,b,t,0)}else p.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(o){ph(o,Ze(o).option,i,t._lastGraphicModel)}),this._elMap=X()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(zt);function pg(n){var e=H(cM,n)?cM[n]:mp(n),t=new e({});return Ze(t).type=n,t}function pM(n,e,t,i){var o=pg(t);return e.add(o),i.set(n,o),Ze(o).id=n,Ze(o).isNew=!0,o}function ph(n,e,t,i){var o=n&&n.parent;o&&(n.type==="group"&&n.traverse(function(r){ph(r,e,t,i)}),LS(n,e,i),t.removeKey(Ze(n).id))}function dM(n,e,t,i){n.isGroup||M([["cursor",wn.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(o){var r=o[0];H(e,r)?n[r]=J(e[r],o[1]):n[r]==null&&(n[r]=o[1])}),M(at(e),function(o){if(o.indexOf("on")===0){var r=e[o];n[o]=$(r)?r:null}}),H(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function JE(n){return n=N({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(D0),function(e){delete n[e]}),n}function t3(n,e,t){var i=rt(n).eventData;!n.silent&&!n.ignore&&!i&&(i=rt(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),i&&(i.info=t.info)}function e3(n){n.registerComponentModel($E),n.registerComponentView(QE),n.registerPreprocessor(function(e){var t=e.graphic;V(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var fM=["x","y","radius","angle","single"],n3=["cartesian2d","polar","singleAxis"];function i3(n){var e=n.get("coordinateSystem");return lt(n3,e)>=0}function Pi(n){return n+"Axis"}function o3(n,e){var t=X(),i=[],o=X();n.eachComponent({mainType:"dataZoom",query:e},function(h){o.get(h.uid)||s(h)});var r;do r=!1,n.eachComponent("dataZoom",a);while(r);function a(h){!o.get(h.uid)&&l(h)&&(s(h),r=!0)}function s(h){o.set(h.uid,!0),i.push(h),u(h)}function l(h){var c=!1;return h.eachTargetAxis(function(d,p){var f=t.get(d);f&&f[p]&&(c=!0)}),c}function u(h){h.eachTargetAxis(function(c,d){(t.get(c)||t.set(c,[]))[d]=!0})}return i}function gM(n){var e=n.ecModel,t={infoList:[],infoMap:X()};return n.eachTargetAxis(function(i,o){var r=e.getComponent(Pi(i),o);if(r){var a=r.getCoordSysModel();if(a){var s=a.uid,l=t.infoMap.get(s);l||(l={model:a,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(r)}}}),t}var dg=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),r3=function(n){z(e,n);function e(){var t=n!==null&&n.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,i,o){var r=vM(t);this.settledOption=r,this.mergeDefaultAndTheme(t,o),this._doInit(r)},e.prototype.mergeOption=function(t){var i=vM(t);et(this.option,t,!0),et(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var o=this.settledOption;M([["start","startValue"],["end","endValue"]],function(r,a){this._rangePropMode[a]==="value"&&(i[r[0]]=o[r[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=X(),o=this._fillSpecifiedTargetAxis(i);o?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(r){r.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return M(fM,function(o){var r=this.getReferringComponents(Pi(o),wI);if(r.specified){i=!0;var a=new dg;M(r.models,function(s){a.add(s.componentIndex)}),t.set(o,a)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var o=this.ecModel,r=!0;if(r){var a=i==="vertical"?"y":"x",s=o.findComponents({mainType:a+"Axis"});l(s,a)}if(r){var s=o.findComponents({mainType:"singleAxis",filter:function(h){return h.get("orient",!0)===i}});l(s,"single")}function l(u,h){var c=u[0];if(c){var d=new dg;if(d.add(c.componentIndex),t.set(h,d),r=!1,h==="x"||h==="y"){var p=c.getReferringComponents("grid",Bt).models[0];p&&M(u,function(f){c.componentIndex!==f.componentIndex&&p===f.getReferringComponents("grid",Bt).models[0]&&d.add(f.componentIndex)})}}}r&&M(fM,function(u){if(r){var h=o.findComponents({mainType:Pi(u),filter:function(d){return d.get("type",!0)==="category"}});if(h[0]){var c=new dg;c.add(h[0].componentIndex),t.set(u,c),r=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,o=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(r,a){var s=t[r[0]]!=null,l=t[r[1]]!=null;s&&!l?i[a]="percent":!s&&l?i[a]="value":o?i[a]=o[a]:s&&(i[a]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,o){t==null&&(t=this.ecModel.getComponent(Pi(i),o))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(o,r){M(o.indexList,function(a){t.call(i,r,a)})})},e.prototype.getAxisProxy=function(t,i){var o=this.getAxisModel(t,i);if(o)return o.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){var o=this._targetAxisInfoMap.get(t);if(o&&o.indexMap[i])return this.ecModel.getComponent(Pi(t),i)},e.prototype.setRawRange=function(t){var i=this.option,o=this.settledOption;M([["start","startValue"],["end","endValue"]],function(r){(t[r[0]]!=null||t[r[1]]!=null)&&(i[r[0]]=o[r[0]]=t[r[0]],i[r[1]]=o[r[1]]=t[r[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;M(["start","startValue","end","endValue"],function(o){i[o]=t[o]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var o=this.findRepresentativeAxisProxy();if(o)return o.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,o=this._targetAxisInfoMap.keys(),r=0;r<o.length;r++)for(var a=o[r],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(a,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},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}(ft);function vM(n){var e={};return M(["start","end","startValue","endValue","throttle"],function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}const xs=r3;var a3=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(xs);const s3=a3;var l3=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){this.dataZoomModel=t,this.ecModel=i,this.api=o},e.type="dataZoom",e}(zt);const fg=l3;var u3=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(fg);const h3=u3;var Lr=M,yM=xn,c3=function(){function n(e,t,i,o){this._dimName=e,this._axisIndex=t,this.ecModel=o,this._dataZoomModel=i}return n.prototype.hostedBy=function(e){return this._dataZoomModel===e},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(i3(t)){var i=Pi(this._dimName),o=t.getReferringComponents(i,Bt).models[0];o&&this._axisIndex===o.componentIndex&&e.push(t)}},this),e},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return q(this._minMaxSpan)},n.prototype.calculateDataWindow=function(e){var t=this._dataExtent,i=this.getAxisModel(),o=i.axis.scale,r=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],u;Lr(["start","end"],function(d,p){var f=e[d],g=e[d+"Value"];r[p]==="percent"?(f==null&&(f=a[p]),g=o.parse(xt(f,a,t))):(u=!0,g=g==null?t[p]:o.parse(g),f=xt(g,t,a)),l[p]=g==null||isNaN(g)?t[p]:g,s[p]=f==null||isNaN(f)?a[p]:f}),yM(l),yM(s);var h=this._minMaxSpan;u?c(l,s,t,a,!1):c(s,l,a,t,!0);function c(d,p,f,g,v){var y=v?"Span":"ValueSpan";Do(0,d,f,"all",h["min"+y],h["max"+y]);for(var m=0;m<2;m++)p[m]=xt(d[m],f,g,!0),v&&(p[m]=o.parse(p[m]))}return{valueWindow:l,percentWindow:s}},n.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=p3(this,this._dimName,t),this._updateMinMaxSpan();var i=this.calculateDataWindow(e.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var i=this._dimName,o=this.getTargetSeriesModels(),r=e.get("filterMode"),a=this._valueWindow;if(r==="none")return;Lr(o,function(l){var u=l.getData(),h=u.mapDimensionsAll(i);if(h.length){if(r==="weakFilter"){var c=u.getStore(),d=F(h,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var f,g,v,y=0;y<h.length;y++){var m=c.get(d[y],p),x=!isNaN(m),_=m<a[0],w=m>a[1];if(x&&!_&&!w)return!0;x&&(v=!0),_&&(f=!0),w&&(g=!0)}return v&&f&&g})}else Lr(h,function(p){if(r==="empty")l.setData(u=u.map(p,function(g){return s(g)?g:NaN}));else{var f={};f[p]=a,u.selectRange(f)}});Lr(h,function(p){u.setApproximateExtent(a,p)})}});function s(l){return l>=a[0]&&l<=a[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;Lr(["min","max"],function(o){var r=t.get(o+"Span"),a=t.get(o+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?r=xt(i[0]+a,i,[0,100],!0):r!=null&&(a=xt(r,[0,100],i,!0)-i[0]),e[o+"Span"]=r,e[o+"ValueSpan"]=a},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var o=Dc(i,[0,500]);o=Math.min(o,20);var r=e.axis.scale.rawExtentInfo;t[0]!==0&&r.setDeterminedMinMax("min",+i[0].toFixed(o)),t[1]!==100&&r.setDeterminedMinMax("max",+i[1].toFixed(o)),r.freeze()}},n}();function p3(n,e,t){var i=[1/0,-1/0];Lr(t,function(a){EO(i,a.getData(),e)});var o=n.getAxisModel(),r=M_(o.axis.scale,o,i).calculate();return[r.min,r.max]}const d3=c3;var f3={getTargetSeries:function(n){function e(o){n.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(a,s){var l=n.getComponent(Pi(a),s);o(a,s,l,r)})})}e(function(o,r,a,s){a.__dzAxisProxy=null});var t=[];e(function(o,r,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new d3(o,r,s,n),t.push(a.__dzAxisProxy))});var i=X();return M(t,function(o){M(o.getTargetSeriesModels(),function(r){i.set(r.uid,r)})}),i},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,o){t.getAxisProxy(i,o).reset(t)}),t.eachTargetAxis(function(i,o){t.getAxisProxy(i,o).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var o=i.getDataPercentWindow(),r=i.getDataValueWindow();t.setCalculatedRange({start:o[0],end:o[1],startValue:r[0],endValue:r[1]})}})}};const g3=f3;function v3(n){n.registerAction("dataZoom",function(e,t){var i=o3(t,e);M(i,function(o){o.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var mM=!1;function gg(n){mM||(mM=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,g3),v3(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function y3(n){n.registerComponentModel(s3),n.registerComponentView(h3),gg(n)}var je=function(){function n(){}return n}(),xM={};function Or(n,e){xM[n]=e}function _M(n){return xM[n]}var m3=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(i,o){var r=_M(o);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),et(i,r.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}(ft);const x3=m3;function _3(n,e,t){var i=e.getBoxLayoutParams(),o=e.get("padding"),r={width:t.getWidth(),height:t.getHeight()},a=pe(i,r,o);go(e.get("orient"),n,e.get("itemGap"),a.width,a.height),Zl(n,i,r,o)}function bM(n,e){var t=co(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),n=new yt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),n}var b3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o,r){var a=this.group;if(a.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},h=this._features||(this._features={}),c=[];M(u,function(f,g){c.push(g)}),new _u(this._featureNames||[],c).add(d).update(d).remove(pt(d,null)).execute(),this._featureNames=c;function d(f,g){var v=c[f],y=c[g],m=u[v],x=new Ot(m,t,t.ecModel),_;if(r&&r.newTitle!=null&&r.featureName===v&&(m.title=r.newTitle),v&&!y){if(w3(v))_={onclick:x.option.onclick,featureName:v};else{var w=_M(v);if(!w)return;_=new w}h[v]=_}else if(_=h[y],!_)return;_.uid=ur("toolbox-feature"),_.model=x,_.ecModel=i,_.api=o;var b=_ instanceof je;if(!v&&y){b&&_.dispose&&_.dispose(i,o);return}if(!x.get("show")||b&&_.unusable){b&&_.remove&&_.remove(i,o);return}p(x,_,v),x.setIconStatus=function(S,T){var I=this.option,C=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[S]=T,C[S]&&(T==="emphasis"?oo:ro)(C[S])},_ instanceof je&&_.render&&_.render(x,i,o,r)}function p(f,g,v){var y=f.getModel("iconStyle"),m=f.getModel(["emphasis","iconStyle"]),x=g instanceof je&&g.getIcons?g.getIcons():f.get("icon"),_=f.get("title")||{},w,b;G(x)?(w={},w[v]=x):w=x,G(_)?(b={},b[v]=_):b=_;var S=f.iconPaths={};M(w,function(T,I){var C=ar(T,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var A=C.ensureState("emphasis");A.style=m.getItemStyle();var D=new dt({style:{text:b[I],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:Tp({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},i)},ignore:!0});C.setTextContent(D),sr({el:C,componentModel:t,itemName:I,formatterParamsExtra:{title:b[I]}}),C.__title=b[I],C.on("mouseover",function(){var k=m.getItemStyle(),P=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";D.setStyle({fill:m.get("textFill")||k.fill||k.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),C.setTextConfig({position:m.get("textPosition")||P}),D.ignore=!t.get("showTitle"),o.enterEmphasis(this)}).on("mouseout",function(){f.get(["iconStatus",I])!=="emphasis"&&o.leaveEmphasis(this),D.hide()}),(f.get(["iconStatus",I])==="emphasis"?oo:ro)(C),a.add(C),C.on("click",Y(g.onclick,g,i,o,I)),S[I]=C})}_3(a,t,o),a.add(bM(a.getBoundingRect(),t)),l||a.eachChild(function(f){var g=f.__title,v=f.ensureState("emphasis"),y=v.textConfig||(v.textConfig={}),m=f.getTextContent(),x=m&&m.ensureState("emphasis");if(x&&!$(x)&&g){var _=x.style||(x.style={}),w=ua(g,dt.makeFont(_)),b=f.x+a.x,S=f.y+a.y+s,T=!1;S+w.height>o.getHeight()&&(y.position="top",T=!0);var I=T?-5-w.height:s+10;b+w.width/2>o.getWidth()?(y.position=["100%",I],_.align="right"):b-w.width/2<0&&(y.position=[0,I],_.align="left")}})},e.prototype.updateView=function(t,i,o,r){M(this._features,function(a){a instanceof je&&a.updateView&&a.updateView(a.model,i,o,r)})},e.prototype.remove=function(t,i){M(this._features,function(o){o instanceof je&&o.remove&&o.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){M(this._features,function(o){o instanceof je&&o.dispose&&o.dispose(t,i)})},e.type="toolbox",e}(zt);function w3(n){return n.indexOf("my")===0}const S3=b3;var M3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var o=this.model,r=o.get("name")||t.get("title.0.text")||"echarts",a=i.getZr().painter.getType()==="svg",s=a?"svg":o.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:o.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:o.get("connectedBackgroundColor"),excludeComponents:o.get("excludeComponents"),pixelRatio:o.get("pixelRatio")}),u=ct.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var h=document.createElement("a");h.download=r+"."+s,h.target="_blank",h.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});h.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||a){var d=l.split(","),p=d[0].indexOf("base64")>-1,f=a?decodeURIComponent(d[1]):d[1];p&&(f=window.atob(f));var g=r+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var v=f.length,y=new Uint8Array(v);v--;)y[v]=f.charCodeAt(v);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,w=_.document;w.open("image/svg+xml","replace"),w.write(f),w.close(),_.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var b=o.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',T=window.open();T.document.write(S),T.document.title=r}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(je);const T3=M3;var wM="__ec_magicType_stack__",C3=[["line","bar"],["stack"]],I3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),o={};return M(t.get("type"),function(r){i[r]&&(o[r]=i[r])}),o},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,o){var r=this.model,a=r.get(["seriesIndex",o]);if(SM[o]){var s={series:[]},l=function(c){var d=c.subType,p=c.id,f=SM[o](d,p,c,r);f&&(K(f,c.option),s.series.push(f));var g=c.coordinateSystem;if(g&&g.type==="cartesian2d"&&(o==="line"||o==="bar")){var v=g.getAxesByScale("ordinal")[0];if(v){var y=v.dim,m=y+"Axis",x=c.getReferringComponents(m,Bt).models[0],_=x.componentIndex;s[m]=s[m]||[];for(var w=0;w<=_;w++)s[m][_]=s[m][_]||{};s[m][_].boundaryGap=o==="bar"}}};M(C3,function(c){lt(c,o)>=0&&M(c,function(d){r.setIconStatus(d,"normal")})}),r.setIconStatus(o,"emphasis"),t.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var u,h=o;o==="stack"&&(u=et({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get(["iconStatus",o])!=="emphasis"&&(h="tiled")),i.dispatchAction({type:"changeMagicType",currentType:h,newOption:s,newTitle:u,featureName:"magicType"})}},e}(je),SM={line:function(n,e,t,i){if(n==="bar")return et({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(n,e,t,i){if(n==="line")return et({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(n,e,t,i){var o=t.get("stack")===wM;if(n==="line"||n==="bar")return i.setIconStatus("stack",o?"normal":"emphasis"),et({id:e,stack:o?"":wM},i.get(["option","stack"])||{},!0)}};un({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const A3=I3;var dh=new Array(60).join("-"),Rr=" ";function D3(n){var e={},t=[],i=[];return n.eachRawSeries(function(o){var r=o.coordinateSystem;if(r&&(r.type==="cartesian2d"||r.type==="polar")){var a=r.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;e[s]||(e[s]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[s].series.push(o)}else t.push(o)}else t.push(o)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function k3(n){var e=[];return M(n,function(t,i){var o=t.categoryAxis,r=t.valueAxis,a=r.dim,s=[" "].concat(F(t.series,function(p){return p.name})),l=[o.model.getCategories()];M(t.series,function(p){var f=p.getRawData();l.push(p.getRawData().mapArray(f.mapDimension(a),function(g){return g}))});for(var u=[s.join(Rr)],h=0;h<l[0].length;h++){for(var c=[],d=0;d<l.length;d++)c.push(l[d][h]);u.push(c.join(Rr))}e.push(u.join(`
- `))}),e.join(`
- `+dh+`
- `)}function P3(n){return F(n,function(e){var t=e.getRawData(),i=[e.name],o=[];return t.each(t.dimensions,function(){for(var r=arguments.length,a=arguments[r-1],s=t.getName(a),l=0;l<r-1;l++)o[l]=arguments[l];i.push((s?s+Rr:"")+o.join(Rr))}),i.join(`
- `)}).join(`
- `+dh+`
- `)}function L3(n){var e=D3(n);return{value:At([k3(e.seriesGroupByCategoryAxis),P3(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
- `+dh+`
- `),meta:e.meta}}function fh(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function O3(n){var e=n.slice(0,n.indexOf(`
- `));if(e.indexOf(Rr)>=0)return!0}var vg=new RegExp("["+Rr+"]+","g");function R3(n){for(var e=n.split(/\n+/g),t=fh(e.shift()).split(vg),i=[],o=F(t,function(l){return{name:l,data:[]}}),r=0;r<e.length;r++){var a=fh(e[r]).split(vg);i.push(a.shift());for(var s=0;s<a.length;s++)o[s]&&(o[s].data[r]=a[s])}return{series:o,categories:i}}function N3(n){for(var e=n.split(/\n+/g),t=fh(e.shift()),i=[],o=0;o<e.length;o++){var r=fh(e[o]);if(r){var a=r.split(vg),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[o]={name:s,value:[]},l=i[o].value):l=i[o]=[];for(var h=0;h<a.length;h++)l.push(+a[h]);l.length===1&&(u?i[o].value=l[0]:i[o]=l[0])}}return{name:t,data:i}}function z3(n,e){var t=n.split(new RegExp(`
- *`+dh+`
- *`,"g")),i={series:[]};return M(t,function(o,r){if(O3(o)){var a=R3(o),s=e[r],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else{var a=N3(o);i.series.push(a)}}),i}var B3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var o=i.getDom(),r=this.model;this._dom&&o.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=r.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=r.get("lang")||[];s.innerHTML=l[0]||r.get("title"),s.style.cssText="margin:10px 20px",s.style.color=r.get("textColor");var u=document.createElement("div"),h=document.createElement("textarea");u.style.cssText="overflow:auto";var c=r.get("optionToContent"),d=r.get("contentToOption"),p=L3(t);if($(c)){var f=c(i.getOption());G(f)?u.innerHTML=f:Ri(f)&&u.appendChild(f)}else{h.readOnly=r.get("readOnly");var g=h.style;g.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",g.color=r.get("textColor"),g.borderColor=r.get("textareaBorderColor"),g.backgroundColor=r.get("textareaColor"),h.value=p.value,u.appendChild(h)}var v=p.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",x=document.createElement("div"),_=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var w=this;function b(){o.removeChild(a),w._dom=null}Gh(x,"click",b),Gh(_,"click",function(){if(d==null&&c!=null||d!=null&&c==null){b();return}var S;try{$(d)?S=d(u,i.getOption()):S=z3(h.value,v)}catch(T){throw b(),new Error("Data view format error "+T)}S&&i.dispatchAction({type:"changeDataView",newOption:S}),b()}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=m,!r.get("readOnly")&&y.appendChild(_),y.appendChild(x),a.appendChild(s),a.appendChild(u),a.appendChild(y),u.style.height=o.clientHeight-80+"px",o.appendChild(a),this._dom=a},e.prototype.remove=function(t,i){this._dom&&i.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.getDefaultOption=function(t){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title: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 i},e}(je);function E3(n,e){return F(n,function(t,i){var o=e&&e[i];if(j(o)&&!V(o)){var r=j(t)&&!V(t);r||(t={value:t});var a=o.name!=null&&t.name==null;return t=K(t,o),a&&delete t.name,t}else return t})}un({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,e){var t=[];M(n.newOption.series,function(i){var o=e.getSeriesByName(i.name)[0];if(!o)t.push(N({type:"scatter"},i));else{var r=o.get("data");t.push({name:i.name,data:E3(i.data,r)})}}),e.mergeOption(K({series:t},n.newOption))});const V3=B3;var MM=M,TM=_t();function F3(n,e){var t=yg(n);MM(e,function(i,o){for(var r=t.length-1;r>=0;r--){var a=t[r];if(a[o])break}if(r<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:o})[0];if(s){var l=s.getPercentRange();t[0][o]={dataZoomId:o,start:l[0],end:l[1]}}}}),t.push(e)}function W3(n){var e=yg(n),t=e[e.length-1];e.length>1&&e.pop();var i={};return MM(t,function(o,r){for(var a=e.length-1;a>=0;a--)if(o=e[a][r],o){i[r]=o;break}}),i}function G3(n){TM(n).snapshots=null}function H3(n){return yg(n).length}function yg(n){var e=TM(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Y3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){G3(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(je);un({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const U3=Y3;var X3=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Z3=function(){function n(e,t,i){var o=this;this._targetInfoList=[];var r=CM(t,e);M(j3,function(a,s){(!i||!i.include||lt(i.include,s)>=0)&&a(r,o._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,o,r){if((i.coordRanges||(i.coordRanges=[])).push(o),!i.coordRange){i.coordRange=o;var a=xg[i.brushType](0,r,o);i.__rangeOffset={offset:kM[i.brushType](a.values,i.range,[1,1]),xyMinMax:a.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,i){M(e,function(o){var r=this.findTargetInfo(o,t);r&&r!==!0&&M(r.coordSyses,function(a){var s=xg[o.brushType](1,a,o.range,!0);i(o,s.values,a,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(i){var o=this.findTargetInfo(i,t);if(i.range=i.range||[],o&&o!==!0){i.panelId=o.panelId;var r=xg[i.brushType](0,o.coordSys,i.coordRange),a=i.__rangeOffset;i.range=a?kM[i.brushType](r.values,a.offset,q3(r.xyMinMax,a.xyMinMax)):r.values}},this)},n.prototype.makePanelOpts=function(e,t){return F(this._targetInfoList,function(i){var o=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:uS(o),isTargetByCursor:cS(o,e,i.coordSysModel),getLinearBrushOtherExtent:hS(o)}})},n.prototype.controlSeries=function(e,t,i){var o=this.findTargetInfo(e,i);return o===!0||o&<(o.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,o=CM(t,e),r=0;r<i.length;r++){var a=i[r],s=e.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<IM.length;l++)if(IM[l](o,a))return a}return!0},n}();function mg(n){return n[0]>n[1]&&n.reverse(),n}function CM(n,e){return ga(n,e,{includeMainTypes:X3})}var j3={grid:function(n,e){var t=n.xAxisModels,i=n.yAxisModels,o=n.gridModels,r=X(),a={},s={};!t&&!i&&!o||(M(t,function(l){var u=l.axis.grid.model;r.set(u.id,u),a[u.id]=!0}),M(i,function(l){var u=l.axis.grid.model;r.set(u.id,u),s[u.id]=!0}),M(o,function(l){r.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),r.each(function(l){var u=l.coordinateSystem,h=[];M(u.getCartesians(),function(c,d){(lt(t,c.getAxis("x").model)>=0||lt(i,c.getAxis("y").model)>=0)&&h.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:h[0],coordSyses:h,getPanelRect:AM.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:AM.geo})})}},IM=[function(n,e){var t=n.xAxisModel,i=n.yAxisModel,o=n.gridModel;return!o&&t&&(o=t.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],AM={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(yi(n)),e}},xg={lineX:pt(DM,0),lineY:pt(DM,1),rect:function(n,e,t,i){var o=n?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),r=n?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),a=[mg([o[0],r[0]]),mg([o[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(n,e,t,i){var o=[[1/0,-1/0],[1/0,-1/0]],r=F(t,function(a){var s=n?e.pointToData(a,i):e.dataToPoint(a,i);return o[0][0]=Math.min(o[0][0],s[0]),o[1][0]=Math.min(o[1][0],s[1]),o[0][1]=Math.max(o[0][1],s[0]),o[1][1]=Math.max(o[1][1],s[1]),s});return{values:r,xyMinMax:o}}};function DM(n,e,t,i){var o=t.getAxis(["x","y"][n]),r=mg(F([0,1],function(s){return e?o.coordToData(o.toLocalCoord(i[s]),!0):o.toGlobalCoord(o.dataToCoord(i[s]))})),a=[];return a[n]=r,a[1-n]=[NaN,NaN],{values:r,xyMinMax:a}}var kM={lineX:pt(PM,0),lineY:pt(PM,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return F(n,function(i,o){return[i[0]-t[0]*e[o][0],i[1]-t[1]*e[o][1]]})}};function PM(n,e,t,i){return[e[0]-i[n]*t[0],e[1]-i[n]*t[1]]}function q3(n,e){var t=LM(n),i=LM(e),o=[t[0]/i[0],t[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function LM(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const _g=Z3;var bg=M,K3=yI("toolbox-dataZoom_"),$3=function(n){z(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o,r){this._brushController||(this._brushController=new qf(o.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),tV(t,i,this,r,o),J3(t,i)},e.prototype.onclick=function(t,i,o){Q3[o].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var o={},r=this.ecModel;this._brushController.updateCovers([]);var a=new _g(wg(this.model),r,{include:["grid"]});a.matchOutputRanges(i,r,function(u,h,c){if(c.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",c,h[0]),s("y",c,h[1])):s({lineX:"x",lineY:"y"}[d],c,h)}}),F3(r,o),this._dispatchZoomAction(o);function s(u,h,c){var d=h.getAxis(u),p=d.model,f=l(u,p,r),g=f.findRepresentativeAxisProxy(p).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(c=Do(0,c.slice(),d.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),f&&(o[f.id]={dataZoomId:f.id,startValue:c[0],endValue:c[1]})}function l(u,h,c){var d;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var f=p.getAxisModel(u,h.componentIndex);f&&(d=p)}),d}},e.prototype._dispatchZoomAction=function(t){var i=[];bg(t,function(o,r){i.push(q(o))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(je),Q3={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(W3(this.ecModel))}};function wg(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function J3(n,e){n.setIconStatus("back",H3(e)>1?"emphasis":"normal")}function tV(n,e,t,i,o){var r=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(r=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=r,n.setIconStatus("zoom",r?"emphasis":"normal");var a=new _g(wg(n),e,{include:["grid"]}),s=a.makePanelOpts(o,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(r&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}$D("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),o=[],r=wg(i),a=ga(n,r);bg(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),bg(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,h){var c=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:K3+u+c};d[h]=c,o.push(d)}return o});const eV=$3;function nV(n){n.registerComponentModel(x3),n.registerComponentView(S3),Or("saveAsImage",T3),Or("magicType",A3),Or("dataView",V3),Or("dataZoom",eV),Or("restore",U3),$t(y3)}var iV=function(n){z(e,n);function e(){var t=n!==null&&n.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}(ft);const oV=iV;function OM(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function RM(n){if(ct.domSupported){for(var e=document.documentElement.style,t=0,i=n.length;t<i;t++)if(n[t]in e)return n[t]}}var NM=RM(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),rV=RM(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function zM(n,e){if(!n)return e;e=Bp(e,!0);var t=n.indexOf(e);return n=t===-1?e:"-"+n.slice(0,t)+"-"+e,n.toLowerCase()}function aV(n,e){var t=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n);return t?e?t[e]:t:null}var sV=zM(rV,"transition"),Sg=zM(NM,"transform"),lV="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ct.transform3dSupported?"will-change:transform;":"");function uV(n){return n=n==="left"?"right":n==="right"?"left":n==="top"?"bottom":"top",n}function hV(n,e,t){if(!G(t)||t==="inside")return"";var i=n.get("backgroundColor"),o=n.get("borderWidth");e=po(e);var r=uV(t),a=Math.max(Math.round(o)*1.5,6),s="",l=Sg+":",u;lt(["left","right"],r)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=r==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=r==="top"?225:45)+"deg)");var h=u*Math.PI/180,c=a+o,d=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),p=Math.round(((d-Math.SQRT2*o)/2+Math.SQRT2*o-(d-c)/2)*100)/100;s+=";"+r+":-"+p+"px";var f=e+" solid "+o+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function cV(n,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+n/2+"s "+t,o="opacity"+i+",visibility"+i;return e||(i=" "+n+"s "+t,o+=ct.transformSupported?","+Sg+i:",left"+i+",top"+i),sV+":"+o}function BM(n,e,t){var i=n.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!ct.transformSupported)return t?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var r=ct.transform3dSupported,a="translate"+(r?"3d":"")+"("+i+","+o+(r?",0":"")+")";return t?"top:0;left:0;"+Sg+":"+a+";":[["top",0],["left",0],[NM,a]]}function pV(n){var e=[],t=n.get("fontSize"),i=n.getTextColor();i&&e.push("color:"+i),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var o=n.get("textShadowColor"),r=n.get("textShadowBlur")||0,a=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return o&&r&&e.push("text-shadow:"+a+"px "+s+"px "+r+"px "+o),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function dV(n,e,t){var i=[],o=n.get("transitionDuration"),r=n.get("backgroundColor"),a=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),h=n.getModel("textStyle"),c=P1(n,"html"),d=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+d),e&&o&&i.push(cV(o,t)),r&&i.push("background-color:"+r),M(["width","color","radius"],function(p){var f="border-"+p,g=Bp(f),v=n.get(g);v!=null&&i.push(f+":"+v+(p==="color"?"":"px"))}),i.push(pV(h)),c!=null&&i.push("padding:"+co(c).join("px ")+"px"),i.join(";")+";"}function EM(n,e,t,i,o){var r=e&&e.painter;if(t){var a=r&&r.getViewportRoot();a&&O2(n,a,t,i,o)}else{n[0]=i,n[1]=o;var s=r&&r.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var fV=function(){function n(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ct.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var o=this._zr=e.getZr(),r=t.appendTo,a=r&&(G(r)?document.querySelector(r):Ri(r)?r:$(r)&&r(e.getDom()));EM(this._styleCoord,o,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(i),this._api=e,this._container=a;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=o.handler,h=o.painter.getViewportRoot();Pe(h,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=aV(t,"position"),o=t.style;o.position!=="absolute"&&i!=="absolute"&&(o.position="relative")}var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,o=i.style,r=this._styleCoord;i.innerHTML?o.cssText=lV+dV(e,!this._firstShow,this._longHide)+BM(r[0],r[1],!0)+("border-color:"+po(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,i,o,r){var a=this.el;if(e==null){a.innerHTML="";return}var s="";if(G(r)&&i.get("trigger")==="item"&&!OM(i)&&(s=hV(i,o,r)),G(e))a.innerHTML=e+s;else if(e){a.innerHTML="",V(e)||(e=[e]);for(var l=0;l<e.length;l++)Ri(e[l])&&e[l].parentNode!==a&&a.appendChild(e[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},n.prototype.moveTo=function(e,t){var i=this._styleCoord;if(EM(i,this._zr,this._container,e,t),i[0]!=null&&i[1]!=null){var o=this.el.style,r=BM(i[0],i[1]);M(r,function(a){o[a[0]]=a[1]})}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",ct.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},n}();const gV=fV;var vV=function(){function n(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),FM(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return n.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(e,t,i,o,r){var a=this;j(e)&&te(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new dt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:o,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:P1(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=i.get(u)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.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})},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=VM(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},n.prototype.moveTo=function(e,t){var i=this.el;if(i){var o=this._styleCoord;FM(o,this._zr,e,t),e=o[0],t=o[1];var r=i.style,a=Li(r.borderWidth||0),s=VM(r);i.x=e+a+s.left,i.y=t+a+s.top,i.markRedraw()}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();function Li(n){return Math.max(0,n)}function VM(n){var e=Li(n.shadowBlur||0),t=Li(n.shadowOffsetX||0),i=Li(n.shadowOffsetY||0);return{left:Li(e-t),right:Li(e+t),top:Li(e-i),bottom:Li(e+i)}}function FM(n,e,t,i){n[0]=t,n[1]=i,n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}const yV=vV;var mV=new yt({shape:{x:-1,y:-1,width:2,height:2}}),xV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(!(ct.node||!i.getDom())){var o=t.getComponent("tooltip"),r=this._renderMode=MI(o.get("renderMode"));this._tooltipContent=r==="richText"?new yV(i):new gV(i,{appendTo:o.get("appendToBody",!0)?"body":o.get("appendTo",!0)})}},e.prototype.render=function(t,i,o){if(!(ct.node||!o.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=o;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?xr(this,"_updatePosition",50,"fixRate"):Ua(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");qS("itemTooltip",this._api,Y(function(o,r,a){i!=="none"&&(i.indexOf(o)>=0?this._tryShow(r,a):o==="leave"&&this._hide(a))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,o=this._api,r=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&r!=="none"&&r!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!o.isDisposed()&&a.manuallyShowTip(t,i,o,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,o,r){if(!(r.from===this.uid||ct.node||!o.getDom())){var a=WM(r,o);this._ticket="";var s=r.dataByCoordSys,l=SV(r,i,o);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:r.position,positionDefault:"bottom"},a)}else if(r.tooltip&&r.x!=null&&r.y!=null){var h=mV;h.x=r.x,h.y=r.y,h.update(),rt(h).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:h},a)}else if(s)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:s,tooltipOption:r.tooltipOption},a);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,o,r))return;var c=$S(r,i),d=c.point[0],p=c.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,target:c.el,position:r.position,positionDefault:"bottom"},a)}else r.x!=null&&r.y!=null&&(o.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:o.getZr().findHover(r.x,r.y).target},a))}},e.prototype.manuallyHideTip=function(t,i,o,r){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(WM(r,o))},e.prototype._manuallyAxisShowTip=function(t,i,o,r){var a=r.seriesIndex,s=r.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=i.getSeriesByIndex(a);if(u){var h=u.getData(),c=_s([h.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return o.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:r.position}),!0}}},e.prototype._tryShow=function(t,i){var o=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var a=t.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,t);else if(o){var s=rt(o);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;xo(o,function(h){if(rt(h).dataIndex!=null)return l=h,!0;if(rt(h).tooltipConfig!=null)return u=h,!0},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var o=t.get("showDelay");i=Y(i,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(i,o):i()},e.prototype._showAxisTooltip=function(t,i){var o=this._ecModel,r=this._tooltipModel,a=[i.offsetX,i.offsetY],s=_s([i.tooltipOption],r),l=this._renderMode,u=[],h=sn("section",{blocks:[],noHeader:!0}),c=[],d=new ld;M(t,function(m){M(m.dataByAxis,function(x){var _=o.getComponent(x.axisDim+"Axis",x.axisIndex),w=x.value;if(!(!_||w==null)){var b=HS(w,_.axis,o,x.seriesDataIndices,x.valueLabelOpt),S=sn("section",{header:b,noHeader:!De(b),sortBlocks:!0,blocks:[]});h.blocks.push(S),M(x.seriesDataIndices,function(T){var I=o.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,A=I.getDataParams(C);if(!(A.dataIndex<0)){A.axisDim=x.axisDim,A.axisIndex=x.axisIndex,A.axisType=x.axisType,A.axisId=x.axisId,A.axisValue=Kd(_.axis,{value:w}),A.axisValueLabel=b,A.marker=d.makeTooltipMarker("item",po(A.color),l);var D=d1(I.formatTooltip(C,!0,null)),k=D.frag;if(k){var P=_s([I],r).get("valueFormatter");S.blocks.push(P?N({valueFormatter:P},k):k)}D.text&&c.push(D.text),u.push(A)}})}})}),h.blocks.reverse(),c.reverse();var p=i.position,f=s.get("order"),g=A1(h,d,l,f,o.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var v=l==="richText"?`
- `:"<br/>",y=c.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,p,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],p,null,d)})},e.prototype._showSeriesItemTooltip=function(t,i,o){var r=this._ecModel,a=rt(i),s=a.seriesIndex,l=r.getSeriesByIndex(s),u=a.dataModel||l,h=a.dataIndex,c=a.dataType,d=u.getData(c),p=this._renderMode,f=t.positionDefault,g=_s([d.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),v=g.get("trigger");if(!(v!=null&&v!=="item")){var y=u.getDataParams(h,c),m=new ld;y.marker=m.makeTooltipMarker("item",po(y.color),p);var x=d1(u.formatTooltip(h,!1,c)),_=g.get("order"),w=g.get("valueFormatter"),b=x.frag,S=b?A1(w?N({valueFormatter:w},b):b,m,p,_,r.get("useUTC"),g.get("textStyle")):x.text,T="item_"+u.name+"_"+h;this._showOrMove(g,function(){this._showTooltipContent(g,S,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),o({type:"showTip",dataIndexInside:h,dataIndex:d.getRawIndex(h),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,o){var r=rt(i),a=r.tooltipConfig,s=a.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],h=this._ecModel.getComponent(r.componentMainType,r.componentIndex);h&&u.push(h),u.push({formatter:s.content});var c=t.positionDefault,d=_s(u,this._tooltipModel,c?{position:c}:null),p=d.get("content"),f=Math.random()+"",g=new ld;this._showOrMove(d,function(){var v=q(d.get("formatterParams")||{});this._showTooltipContent(d,p,v,f,t.offsetX,t.offsetY,t.position,i,g)}),o({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,o,r,a,s,l,u,h){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var d=t.get("formatter");l=l||t.get("position");var p=i,f=this._getNearestPoint([a,s],o,t.get("trigger"),t.get("borderColor")),g=f.color;if(d)if(G(d)){var v=t.ecModel.get("useUTC"),y=V(o)?o[0]:o,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;p=d,m&&(p=Ra(y.axisValue,p,v)),p=Fp(p,o,!0)}else if($(d)){var x=Y(function(_,w){_===this._ticket&&(c.setContent(w,h,t,g,l),this._updatePosition(t,l,a,s,c,o,u))},this);this._ticket=r,p=d(o,r,x)}else p=d;c.setContent(p,h,t,g,l),c.show(t,g),this._updatePosition(t,l,a,s,c,o,u)}},e.prototype._getNearestPoint=function(t,i,o,r){if(o==="axis"||V(i))return{color:r||(this._renderMode==="html"?"#fff":"none")};if(!V(i))return{color:r||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,o,r,a,s,l){var u=this._api.getWidth(),h=this._api.getHeight();i=i||t.get("position");var c=a.getSize(),d=t.get("align"),p=t.get("verticalAlign"),f=l&&l.getBoundingRect().clone();if(l&&f.applyTransform(l.transform),$(i)&&(i=i([o,r],s,a.el,f,{viewSize:[u,h],contentSize:c.slice()})),V(i))o=U(i[0],u),r=U(i[1],h);else if(j(i)){var g=i;g.width=c[0],g.height=c[1];var v=pe(g,{width:u,height:h});o=v.x,r=v.y,d=null,p=null}else if(G(i)&&l){var y=wV(i,f,c,t.get("borderWidth"));o=y[0],r=y[1]}else{var y=_V(o,r,a,u,h,d?null:20,p?null:20);o=y[0],r=y[1]}if(d&&(o-=GM(d)?c[0]/2:d==="right"?c[0]:0),p&&(r-=GM(p)?c[1]/2:p==="bottom"?c[1]:0),OM(t)){var y=bV(o,r,a,u,h);o=y[0],r=y[1]}a.moveTo(o,r)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var o=this._lastDataByCoordSys,r=this._cbParamsList,a=!!o&&o.length===t.length;return a&&M(o,function(s,l){var u=s.dataByAxis||[],h=t[l]||{},c=h.dataByAxis||[];a=a&&u.length===c.length,a&&M(u,function(d,p){var f=c[p]||{},g=d.seriesDataIndices||[],v=f.seriesDataIndices||[];a=a&&d.value===f.value&&d.axisType===f.axisType&&d.axisId===f.axisId&&g.length===v.length,a&&M(g,function(y,m){var x=v[m];a=a&&y.seriesIndex===x.seriesIndex&&y.dataIndex===x.dataIndex}),r&&M(d.seriesDataIndices,function(y){var m=y.seriesIndex,x=i[m],_=r[m];x&&_&&_.data!==x.data&&(a=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!a},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){ct.node||!i.getDom()||(Ua(this,"_updatePosition"),this._tooltipContent.dispose(),sg("itemTooltip",i))},e.type="tooltip",e}(zt);function _s(n,e,t){var i=e.ecModel,o;t?(o=new Ot(t,i,i),o=new Ot(e.option,o,i)):o=e;for(var r=n.length-1;r>=0;r--){var a=n[r];a&&(a instanceof Ot&&(a=a.get("tooltip",!0)),G(a)&&(a={formatter:a}),a&&(o=new Ot(a,o,i)))}return o}function WM(n,e){return n.dispatchAction||Y(e.dispatchAction,e)}function _V(n,e,t,i,o,r,a){var s=t.getSize(),l=s[0],u=s[1];return r!=null&&(n+l+r+2>i?n-=l+r:n+=r),a!=null&&(e+u+a>o?e-=u+a:e+=a),[n,e]}function bV(n,e,t,i,o){var r=t.getSize(),a=r[0],s=r[1];return n=Math.min(n+a,i)-a,e=Math.min(e+s,o)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function wV(n,e,t,i){var o=t[0],r=t[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(n){case"inside":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}function GM(n){return n==="center"||n==="middle"}function SV(n,e,t){var i=Nc(n).queryOptionMap,o=i.keys()[0];if(!(!o||o==="series")){var r=va(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(a){var s=t.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var h=rt(u).tooltipConfig;if(h&&h.name===n.name)return l=u,!0}),l)return{componentMainType:o,componentIndex:a.componentIndex,el:l}}}}const MV=xV;function TV(n){$t(lh),n.registerComponentModel(oV),n.registerComponentView(MV),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Et),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Et)}var HM=M;function YM(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function Mg(n,e,t){var i={};return HM(e,function(r){var a=i[r]=o();HM(n[r],function(s,l){if(ae.isValidType(l)){var u={type:l,visual:s};t&&t(u,r),a[l]=new ae(u),l==="opacity"&&(u=q(u),u.type="colorAlpha",a.__hidden.__alphaForOpacity=new ae(u))}})}),i;function o(){var r=function(){};r.prototype.__hidden=r.prototype;var a=new r;return a}}function UM(n,e,t){var i;M(t,function(o){e.hasOwnProperty(o)&&YM(e[o])&&(i=!0)}),i&&M(t,function(o){e.hasOwnProperty(o)&&YM(e[o])?n[o]=q(e[o]):delete n[o]})}function CV(n,e,t,i,o,r){var a={};M(n,function(c){var d=ae.prepareVisualTypes(e[c]);a[c]=d});var s;function l(c){return dd(t,s,c)}function u(c,d){tx(t,s,c,d)}r==null?t.each(h):t.each([r],h);function h(c,d){s=r==null?c:d;var p=t.getRawDataItem(s);if(!(p&&p.visualMap===!1))for(var f=i.call(o,c),g=e[f],v=a[f],y=0,m=v.length;y<m;y++){var x=v[y];g[x]&&g[x].applyVisual(c,l,u)}}}function IV(n,e,t,i){var o={};return M(n,function(r){var a=ae.prepareVisualTypes(e[r]);o[r]=a}),{progress:function(r,a){var s;i!=null&&(s=a.getDimensionIndex(i));function l(_){return dd(a,h,_)}function u(_,w){tx(a,h,_,w)}for(var h,c=a.getStore();(h=r.next())!=null;){var d=a.getRawDataItem(h);if(!(d&&d.visualMap===!1))for(var p=i!=null?c.get(s,h):h,f=t(p),g=e[f],v=o[f],y=0,m=v.length;y<m;y++){var x=v[y];g[x]&&g[x].applyVisual(p,l,u)}}}}}var AV=function(n){z(e,n);function e(){var t=n!==null&&n.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}(ft),DV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){if(this.group.removeAll(),!!t.get("show")){var r=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=J(t.get("textBaseline"),t.get("textVerticalAlign")),h=new dt({style:Ct(a,{text:t.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),c=h.getBoundingRect(),d=t.get("subtext"),p=new dt({style:Ct(s,{text:d,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),g=t.get("sublink"),v=t.get("triggerEvent",!0);h.silent=!f&&!v,p.silent=!g&&!v,f&&h.on("click",function(){Wp(f,"_"+t.get("target"))}),g&&p.on("click",function(){Wp(g,"_"+t.get("subtarget"))}),rt(h).eventData=rt(p).eventData=v?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(h),d&&r.add(p);var y=r.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var x=pe(m,{width:o.getWidth(),height:o.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),r.x=x.x,r.y=x.y,r.markRedraw();var _={align:l,verticalAlign:u};h.setStyle(_),p.setStyle(_),y=r.getBoundingRect();var w=x.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var S=new yt({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});r.add(S)}},e.type="title",e}(zt);function kV(n){n.registerComponentModel(AV),n.registerComponentView(DV)}var PV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],o=t.axisType,r=this._names=[],a;o==="category"?(a=[],M(i,function(u,h){var c=jt($o(u),""),d;j(u)?(d=q(u),d.value=h):d=h,a.push(d),r.push(c)})):a=i;var s={category:"ordinal",time:"time",value:"number"}[o]||"number",l=this._data=new Mu([{name:"value",type:s}],this);l.initData(a,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ft);const XM=PV;var ZM=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=mi(XM.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(XM);Ut(ZM,nd.prototype);const LV=ZM;var OV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(zt);const RV=OV;var NV=function(n){z(e,n);function e(t,i,o,r){var a=n.call(this,t,i,o)||this;return a.type=r||"value",a}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cn);const zV=NV;var Tg=Math.PI,jM=_t(),BV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,o){if(this.model=t,this.api=o,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,o),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(r,t);t.formatTooltip=function(u){var h=l.scale.getLabel({value:u});return sn("nameValue",{noName:!0,value:h})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](r,a,l,t)},this),this._renderAxisLabel(r,s,l,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var o=t.get(["label","position"]),r=t.get("orient"),a=VV(t,i),s;o==null||o==="auto"?s=r==="horizontal"?a.y+a.height/2<i.getHeight()/2?"-":"+":a.x+a.width/2<i.getWidth()/2?"+":"-":G(o)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][o]:s=o;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:Tg/2},c=r==="vertical"?a.height:a.width,d=t.getModel("controlStyle"),p=d.get("show",!0),f=p?d.get("itemSize"):0,g=p?d.get("itemGap"):0,v=f+g,y=t.get(["label","rotate"])||0;y=y*Tg/180;var m,x,_,w=d.get("position",!0),b=p&&d.get("showPlayBtn",!0),S=p&&d.get("showPrevBtn",!0),T=p&&d.get("showNextBtn",!0),I=0,C=c;w==="left"||w==="bottom"?(b&&(m=[0,0],I+=v),S&&(x=[I,0],I+=v),T&&(_=[C-f,0],C-=v)):(b&&(m=[C-f,0],C-=v),S&&(x=[0,0],I+=v),T&&(_=[C-f,0],C-=v));var A=[I,C];return t.get("inverse")&&A.reverse(),{viewRect:a,mainLength:c,orient:r,rotation:h[r],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[r],playPosition:m,prevBtnPosition:x,nextBtnPosition:_,axisExtent:A,controlSize:f,controlGap:g}},e.prototype._position=function(t,i){var o=this._mainGroup,r=this._labelGroup,a=t.viewRect;if(t.orient==="vertical"){var s=me(),l=a.x,u=a.y+a.height;vn(s,s,[-l,-u]),si(s,s,-Tg/2),vn(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var h=m(a),c=m(o.getBoundingRect()),d=m(r.getBoundingRect()),p=[o.x,o.y],f=[r.x,r.y];f[0]=p[0]=h[0][0];var g=t.labelPosOpt;if(g==null||G(g)){var v=g==="+"?0:1;x(p,c,h,1,v),x(f,d,h,1,1-v)}else{var v=g>=0?0:1;x(p,c,h,1,v),f[1]=p[1]+g}o.setPosition(p),r.setPosition(f),o.rotation=r.rotation=t.rotation,y(o),y(r);function y(_){_.originX=h[0][0]-_.x,_.originY=h[1][0]-_.y}function m(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,w,b,S,T){_[S]+=b[S][T]-w[S][T]}},e.prototype._createAxis=function(t,i){var o=i.getData(),r=i.get("axisType"),a=EV(i,r);a.getTicks=function(){return o.mapArray(["value"],function(u){return{value:u}})};var s=o.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new zV("value",a,t.axisExtent,r);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new it;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,o,r){var a=o.getExtent();if(r.get(["lineStyle","show"])){var s=new qt({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:N({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new qt({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:K({lineCap:"round",lineWidth:s.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,o,r){var a=this,s=r.getData(),l=o.scale.getTicks();this._tickSymbols=[],M(l,function(u){var h=o.dataToCoord(u.value),c=s.getItemModel(u.value),d=c.getModel("itemStyle"),p=c.getModel(["emphasis","itemStyle"]),f=c.getModel(["progress","itemStyle"]),g={x:h,y:0,onclick:Y(a._changeTimeline,a,u.value)},v=qM(c,d,i,g);v.ensureState("emphasis").style=p.getItemStyle(),v.ensureState("progress").style=f.getItemStyle(),vi(v);var y=rt(v);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=r):y.dataIndex=y.dataModel=null,a._tickSymbols.push(v)})},e.prototype._renderAxisLabel=function(t,i,o,r){var a=this,s=o.getLabelModel();if(s.get("show")){var l=r.getData(),u=o.getViewLabels();this._tickLabels=[],M(u,function(h){var c=h.tickValue,d=l.getItemModel(c),p=d.getModel("label"),f=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),v=o.dataToCoord(h.tickValue),y=new dt({x:v,y:0,rotation:t.labelRotation-t.rotation,onclick:Y(a._changeTimeline,a,c),silent:!1,style:Ct(p,{text:h.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ct(f),y.ensureState("progress").style=Ct(g),i.add(y),vi(y),jM(y).dataIndex=c,a._tickLabels.push(y)})}},e.prototype._renderControl=function(t,i,o,r){var a=t.controlSize,s=t.rotation,l=r.getModel("controlStyle").getItemStyle(),u=r.getModel(["emphasis","controlStyle"]).getItemStyle(),h=r.getPlayState(),c=r.get("inverse",!0);d(t.nextBtnPosition,"next",Y(this._changeTimeline,this,c?"-":"+")),d(t.prevBtnPosition,"prev",Y(this._changeTimeline,this,c?"+":"-")),d(t.playPosition,h?"stop":"play",Y(this._handlePlayClick,this,!h),!0);function d(p,f,g,v){if(p){var y=en(J(r.get(["controlStyle",f+"BtnSize"]),a),a),m=[0,-y/2,y,y],x=FV(r,f+"Icon",m,{x:p[0],y:p[1],originX:a/2,originY:0,rotation:v?-s:0,rectHover:!0,style:l,onclick:g});x.ensureState("emphasis").style=u,i.add(x),vi(x)}}},e.prototype._renderCurrentPointer=function(t,i,o,r){var a=r.getData(),s=r.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,h={onCreate:function(c){c.draggable=!0,c.drift=Y(u._handlePointerDrag,u),c.ondragend=Y(u._handlePointerDragend,u),KM(c,u._progressLine,s,o,r,!0)},onUpdate:function(c){KM(c,u._progressLine,s,o,r)}};this._currentPointer=qM(l,l,this._mainGroup,{},this._currentPointer,h)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,o){this._clearTimer(),this._pointerChangeTimeline([o.offsetX,o.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var o=this._toAxisCoord(t)[0],r=this._axis,a=xn(r.getExtent().slice());o>a[1]&&(o=a[1]),o<a[0]&&(o=a[0]),this._currentPointer.x=o,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=o,s.dirty());var l=this._findNearestTick(o),u=this.model;(i||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=t.model;t._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var i=this._mainGroup.getLocalTransform();return rn(t,i,!0)},e.prototype._findNearestTick=function(t){var i=this.model.getData(),o=1/0,r,a=this._axis;return i.each(["value"],function(s,l){var u=a.dataToCoord(s),h=Math.abs(u-t);h<o&&(o=h,r=l)}),r},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var i=this.model.getCurrentIndex();t==="+"?t=i+1:t==="-"&&(t=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),i=this._tickSymbols,o=this._tickLabels;if(i)for(var r=0;r<i.length;r++)i&&i[r]&&i[r].toggleState("progress",r<t);if(o)for(var r=0;r<o.length;r++)o&&o[r]&&o[r].toggleState("progress",jM(o[r]).dataIndex<=t)},e.type="timeline.slider",e}(RV);function EV(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new Ud({ordinalMeta:n.getCategories(),extent:[1/0,-1/0]});case"time":return new b_({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new Ci}}function VV(n,e){return pe(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},n.get("padding"))}function FV(n,e,t,i){var o=i.style,r=ar(n.get(["controlStyle",e]),i||{},new ut(t[0],t[1],t[2],t[3]));return o&&r.setStyle(o),r}function qM(n,e,t,i,o,r){var a=e.get("color");if(o)o.setColor(a),t.add(o),r&&r.onUpdate(o);else{var s=n.get("symbol");o=Ft(s,-1,-1,2,2,a),o.setStyle("strokeNoScale",!0),t.add(o),r&&r.onCreate(o)}var l=e.getItemStyle(["color"]);o.setStyle(l),i=et({rectHover:!0,z2:100},i,!0);var u=su(n.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var h=ja(n.get("symbolOffset"),u);h&&(i.x=(i.x||0)+h[0],i.y=(i.y||0)+h[1]);var c=n.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function KM(n,e,t,i,o,r){if(!n.dragging){var a=o.getModel("checkpointStyle"),s=i.dataToCoord(o.getData().get("value",t));if(r||!a.get("animation",!0))n.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};n.stopAnimation(null,!0),n.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const WV=BV;function GV(n){n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,i){var o=t.getComponent("timeline");return o&&e.currentIndex!=null&&(o.setCurrentIndex(e.currentIndex),!o.get("loop",!0)&&o.isIndexMax()&&o.getPlayState()&&(o.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:o.get("replaceMerge",!0)}),K({currentIndex:o.option.currentIndex},e)}),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var i=t.getComponent("timeline");i&&e.playState!=null&&i.setPlayState(e.playState)})}function HV(n){var e=n&&n.timeline;V(e)||(e=e?[e]:[]),M(e,function(t){t&&YV(t)})}function YV(n){var e=n.type,t={number:"value",time:"time"};if(t[e]&&(n.axisType=t[e],delete n.type),$M(n),Ro(n,"controlPosition")){var i=n.controlStyle||(n.controlStyle={});Ro(i,"position")||(i.position=n.controlPosition),i.position==="none"&&!Ro(i,"show")&&(i.show=!1,delete i.position),delete n.controlPosition}M(n.data||[],function(o){j(o)&&!V(o)&&(!Ro(o,"value")&&Ro(o,"name")&&(o.value=o.name),$M(o))})}function $M(n){var e=n.itemStyle||(n.itemStyle={}),t=e.emphasis||(e.emphasis={}),i=n.label||n.label||{},o=i.normal||(i.normal={}),r={normal:1,emphasis:1};M(i,function(a,s){!r[s]&&!Ro(o,s)&&(o[s]=a)}),t.label&&!Ro(i,"emphasis")&&(i.emphasis=t.label,delete t.label)}function Ro(n,e){return n.hasOwnProperty(e)}function UV(n){n.registerComponentModel(LV),n.registerComponentView(WV),n.registerSubTypeDefaulter("timeline",function(){return"slider"}),GV(n),n.registerPreprocessor(HV)}var XV=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},ZV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,o=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),V(i)&&M(i,function(r,a){G(r)&&(r={type:r}),i[a]=et(r,XV(o,r.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,o=0;o<t.length;o++){var r=t[o].get("name");if(this.isSelected(r)){this.select(r),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],o=[];t.eachRawSeries(function(l){var u=l.name;o.push(u);var h;if(l.legendVisualProvider){var c=l.legendVisualProvider,d=c.getAllNames();t.isSeriesFiltered(l)||(o=o.concat(d)),d.length?i=i.concat(d):h=!0}else h=!0;h&&Rc(l)&&i.push(l.name)}),this._availableNames=o;var r=this.get("data")||i,a=X(),s=F(r,function(l){return(G(l)||vt(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new Ot(l,this,this.ecModel))},this);this._data=At(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,o=this.get("selectedMode");if(o==="single"){var r=this._data;M(r,function(a){i[a.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var i=this.option.selected;i.hasOwnProperty(t)||(i[t]=!0),this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;M(t,function(o){i[o.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;M(t,function(o){var r=o.get("name",!0);i.hasOwnProperty(r)||(i[r]=!0),i[r]=!i[r]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&<(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}(ft);const Cg=ZV;var Nr=pt,Ig=M,gh=it,jV=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new gh),this.group.add(this._selectorGroup=new gh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,o){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var a=t.get("align"),s=t.get("orient");(!a||a==="auto")&&(a=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(a,t,i,o,l,s,u);var h=t.getBoxLayoutParams(),c={width:o.getWidth(),height:o.getHeight()},d=t.get("padding"),p=pe(h,c,d),f=this.layoutInner(t,a,p,r,l,u),g=pe(K({width:f.width,height:f.height},h),c,d);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=bM(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,o,r,a,s,l){var u=this.getContentGroup(),h=X(),c=i.get("selectedMode"),d=[];o.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),Ig(i.getData(),function(p,f){var g=p.get("name");if(!this.newlineDisabled&&(g===""||g===`
- `)){var v=new gh;v.newline=!0,u.add(v);return}var y=o.getSeriesByName(g)[0];if(!h.get(g))if(y){var m=y.getData(),x=m.getVisual("legendLineStyle")||{},_=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,g,f,p,i,t,x,w,_,c,r);b.on("click",Nr(QM,g,null,r,d)).on("mouseover",Nr(Ag,y.name,null,r,d)).on("mouseout",Nr(Dg,y.name,null,r,d)),o.ssr&&b.eachChild(function(S){var T=rt(S);T.seriesIndex=y.seriesIndex,T.dataIndex=f,T.ssrType="legend"}),h.set(g,!0)}else o.eachRawSeries(function(S){if(!h.get(g)&&S.legendVisualProvider){var T=S.legendVisualProvider;if(!T.containName(g))return;var I=T.indexOfName(g),C=T.getItemVisual(I,"style"),A=T.getItemVisual(I,"legendIcon"),D=ue(C.fill);D&&D[3]===0&&(D[3]=.2,C=N(N({},C),{fill:Je(D,"rgba")}));var k=this._createItem(S,g,f,p,i,t,{},C,A,c,r);k.on("click",Nr(QM,null,g,r,d)).on("mouseover",Nr(Ag,null,g,r,d)).on("mouseout",Nr(Dg,null,g,r,d)),o.ssr&&k.eachChild(function(P){var L=rt(P);L.seriesIndex=S.seriesIndex,L.dataIndex=f,L.ssrType="legend"}),h.set(g,!0)}},this)},this),a&&this._createSelector(a,i,r,s,l)},e.prototype._createSelector=function(t,i,o,r,a){var s=this.getSelectorGroup();Ig(t,function(l){var u=l.type,h=new dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=i.getModel("selectorLabel"),d=i.getModel(["emphasis","selectorLabel"]);Dn(h,{normal:c,emphasis:d},{defaultText:l.title}),vi(h)})},e.prototype._createItem=function(t,i,o,r,a,s,l,u,h,c,d){var p=t.visualDrawType,f=a.get("itemWidth"),g=a.get("itemHeight"),v=a.isSelected(i),y=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),x=r.get("icon");h=x||h||"roundRect";var _=qV(h,r,l,u,p,v,d),w=new gh,b=r.getModel("textStyle");if($(t.getLegendIcon)&&(!x||x==="inherit"))w.add(t.getLegendIcon({itemWidth:f,itemHeight:g,icon:h,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));else{var S=x==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(KV({itemWidth:f,itemHeight:g,icon:h,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?f+5:-5,I=s,C=a.get("formatter"),A=i;G(C)&&C?A=C.replace("{name}",i!=null?i:""):$(C)&&(A=C(i));var D=v?b.getTextColor():r.get("inactiveColor");w.add(new dt({style:Ct(b,{text:A,x:T,y:g/2,fill:D,align:I,verticalAlign:"middle"},{inheritColor:D})}));var k=new yt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=r.getModel("tooltip");return P.get("show")&&sr({el:k,componentModel:a,itemName:i,itemTooltipOption:P.option}),w.add(k),w.eachChild(function(L){L.silent=!0}),k.silent=!c,this.getContentGroup().add(w),vi(w),w.__legendDataIndex=o,w},e.prototype.layoutInner=function(t,i,o,r,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();go(t.get("orient"),l,t.get("itemGap"),o.width,o.height);var h=l.getBoundingRect(),c=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),a){go("horizontal",u,t.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],f=t.get("selectorButtonGap",!0),g=t.getOrient().index,v=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?p[g]+=h[v]+f:c[g]+=d[v]+f,p[1-g]+=h[y]/2-d[y]/2,u.x=p[0],u.y=p[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[v]=h[v]+f+d[v],x[y]=Math.max(h[y],d[y]),x[m]=Math.min(0,d[m]+p[1-g]),x}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(zt);function qV(n,e,t,i,o,r,a){function s(v,y){v.lineWidth==="auto"&&(v.lineWidth=y.lineWidth>0?2:0),Ig(v,function(m,x){v[x]==="inherit"&&(v[x]=y[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=n.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:Ka(c,a),u.fill==="inherit"&&(u.fill=i[o]),u.stroke==="inherit"&&(u.stroke=i[h]),u.opacity==="inherit"&&(u.opacity=(o==="fill"?i:t).opacity),s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),p.stroke==="auto"&&(p.stroke=i.fill),!r){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth=f==="auto"?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function KV(n){var e=n.icon||"roundRect",t=Ft(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function QM(n,e,t,i){Dg(n,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:n!=null?n:e}),Ag(n,e,t,i)}function JM(n){for(var e=n.getZr().storage.getDisplayList(),t,i=0,o=e.length;i<o&&!(t=e[i].states.emphasis);)i++;return t&&t.hoverLayer}function Ag(n,e,t,i){JM(t)||t.dispatchAction({type:"highlight",seriesName:n,name:e,excludeSeriesId:i})}function Dg(n,e,t,i){JM(t)||t.dispatchAction({type:"downplay",seriesName:n,name:e,excludeSeriesId:i})}const tT=jV;function $V(n){var e=n.findComponents({mainType:"legend"});e&&e.length&&n.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function bs(n,e,t){var i={},o=n==="toggleSelected",r;return t.eachComponent("legend",function(a){o&&r!=null?a[r?"select":"unSelect"](e.name):n==="allSelect"||n==="inverseSelect"?a[n]():(a[n](e.name),r=a.isSelected(e.name));var s=a.getData();M(s,function(l){var u=l.get("name");if(!(u===`
- `||u==="")){var h=a.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&h:i[u]=h}})}),n==="allSelect"||n==="inverseSelect"?{selected:i}:{name:e.name,selected:i}}function QV(n){n.registerAction("legendToggleSelect","legendselectchanged",pt(bs,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",pt(bs,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",pt(bs,"inverseSelect")),n.registerAction("legendSelect","legendselected",pt(bs,"select")),n.registerAction("legendUnSelect","legendunselected",pt(bs,"unSelect"))}function eT(n){n.registerComponentModel(Cg),n.registerComponentView(tT),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,$V),n.registerSubTypeDefaulter("legend",function(){return"plain"}),QV(n)}var JV=function(n){z(e,n);function e(){var t=n!==null&&n.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,i,o){var r=dr(t);n.prototype.init.call(this,t,i,o),nT(this,t,r)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),nT(this,this.option,t)},e.type="legend.scroll",e.defaultOption=mi(Cg.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}(Cg);function nT(n,e,t){var i=n.getOrient(),o=[1,1];o[i.index]=0,xi(e,t,{type:"box",ignoreSize:!!o})}const tF=JV;var iT=it,kg=["width","height"],Pg=["x","y"],eF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new iT),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new iT)},e.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,o,r,a,s,l){var u=this;n.prototype.renderInner.call(this,t,i,o,r,a,s,l);var h=this._controllerGroup,c=i.get("pageIconSize",!0),d=V(c)?c:[c,c];f("pagePrev",0);var p=i.getModel("pageTextStyle");h.add(new dt({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1);function f(g,v){var y=g+"DataIndex",m=ar(i.get("pageIcons",!0)[i.getOrient().name][v],{onclick:Y(u._pageGo,u,y,i,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});m.name=g,h.add(m)}},e.prototype.layoutInner=function(t,i,o,r,a,s){var l=this.getSelectorGroup(),u=t.getOrient().index,h=kg[u],c=Pg[u],d=kg[1-u],p=Pg[1-u];a&&go("horizontal",l,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),g=l.getBoundingRect(),v=[-g.x,-g.y],y=q(o);a&&(y[h]=o[h]-g[h]-f);var m=this._layoutContentAndController(t,r,y,u,h,d,p,c);if(a){if(s==="end")v[u]+=m[h]+f;else{var x=g[h]+f;v[u]-=x,m[c]-=x}m[h]+=g[h]+f,v[1-u]+=m[p]+m[d]/2-g[d]/2,m[d]=Math.max(m[d],g[d]),m[p]=Math.min(m[p],g[p]+v[1-u]),l.x=v[0],l.y=v[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,i,o,r,a,s,l,u){var h=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;go(t.get("orient"),h,t.get("itemGap"),r?o.width:null,r?null:o.height),go("horizontal",d,t.get("pageButtonItemGap",!0));var p=h.getBoundingRect(),f=d.getBoundingRect(),g=this._showController=p[a]>o[a],v=[-p.x,-p.y];i||(v[r]=h[u]);var y=[0,0],m=[-f.x,-f.y],x=J(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var _=t.get("pageButtonPosition",!0);_==="end"?m[r]+=o[a]-f[a]:y[r]+=f[a]+x}m[1-r]+=p[s]/2-f[s]/2,h.setPosition(v),c.setPosition(y),d.setPosition(m);var w={x:0,y:0};if(w[a]=g?o[a]:p[a],w[s]=Math.max(p[s],f[s]),w[l]=Math.min(0,f[l]+m[1-r]),c.__rectSize=o[a],g){var b={x:0,y:0};b[a]=Math.max(o[a]-f[a]-x,0),b[s]=w[s],c.setClipPath(new yt({shape:b})),c.__rectSize=b[a]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(t);return S.pageIndex!=null&&Tt(h,{x:S.contentPosition[0],y:S.contentPosition[1]},g?t:null),this._updatePageInfoView(t,S),w},e.prototype._pageGo=function(t,i,o){var r=this._getPageInfo(i)[t];r!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var o=this._controllerGroup;M(["pagePrev","pageNext"],function(h){var c=h+"DataIndex",d=i[c]!=null,p=o.childOfName(h);p&&(p.setStyle("fill",d?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),p.cursor=d?"pointer":"default")});var r=o.childOfName("pageText"),a=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;r&&a&&r.setStyle("text",G(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),o=this.getContentGroup(),r=this._containerGroup.__rectSize,a=t.getOrient().index,s=kg[a],l=Pg[a],u=this._findTargetItemIndex(i),h=o.children(),c=h[u],d=h.length,p=d?1:0,f={contentPosition:[o.x,o.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[a]=-g.s;for(var v=u+1,y=g,m=g,x=null;v<=d;++v)x=_(h[v]),(!x&&m.e>y.s+r||x&&!w(x,y.s))&&(m.i>y.i?y=m:y=x,y&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=y.i),++f.pageCount)),m=x;for(var v=u-1,y=g,m=g,x=null;v>=-1;--v)x=_(h[v]),(!x||!w(m,x.s))&&y.i<m.i&&(m=y,f.pagePrevDataIndex==null&&(f.pagePrevDataIndex=y.i),++f.pageCount,++f.pageIndex),y=x;return f;function _(b){if(b){var S=b.getBoundingRect(),T=S[l]+b[l];return{s:T,e:T+S[s],i:b.__legendDataIndex}}}function w(b,S){return b.e>=S&&b.s<=S+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,o=this.getContentGroup(),r;return o.eachChild(function(a,s){var l=a.__legendDataIndex;r==null&&l!=null&&(r=s),l===t&&(i=s)}),i!=null?i:r},e.type="legend.scroll",e}(tT);const nF=eF;function iF(n){n.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(o){o.setScrollDataIndex(i)})})}function oF(n){$t(eT),n.registerComponentModel(tF),n.registerComponentView(nF),iF(n)}function rF(n){$t(eT),$t(oF)}var aF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=mi(xs.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(xs);const sF=aF;var Lg=_t();function lF(n,e,t){Lg(n).coordSysRecordMap.each(function(i){var o=i.dataZoomInfoMap.get(e.uid);o&&(o.getRange=t)})}function uF(n,e){for(var t=Lg(n).coordSysRecordMap,i=t.keys(),o=0;o<i.length;o++){var r=i[o],a=t.get(r),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||oT(t,a))}}}function oT(n,e){if(e){n.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function hF(n,e){var t={model:e,containsPoint:pt(pF,e),dispatchAction:pt(cF,n),dataZoomInfoMap:null,controller:null},i=t.controller=new Tf(n.getZr());return M(["pan","zoom","scrollMove"],function(o){i.on(o,function(r){var a=[];t.dataZoomInfoMap.each(function(s){if(r.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[o],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,r);!s.model.get("disabled",!0)&&u&&a.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),a.length&&t.dispatchAction(a)})}),t}function cF(n,e){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function pF(n,e,t,i){return n.coordinateSystem.containPoint([t,i])}function dF(n){var e,t="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return n.each(function(r){var a=r.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;i[t+s]>i[t+e]&&(e=s),o=o&&a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function fF(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=Lg(t),o=i.coordSysRecordMap||(i.coordSysRecordMap=X());o.each(function(r){r.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(r){var a=gM(r);M(a.infoList,function(s){var l=s.model.uid,u=o.get(l)||o.set(l,hF(t,s.model)),h=u.dataZoomInfoMap||(u.dataZoomInfoMap=X());h.set(r.uid,{dzReferCoordSysInfo:s,model:r,getRange:null})})}),o.each(function(r){var a=r.controller,s,l=r.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){oT(o,r);return}var h=dF(l);a.enable(h.controlType,h.opt),a.setPointerChecker(r.containsPoint),xr(r,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var gF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,o){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),lF(o,t,{pan:Y(Og.pan,this),zoom:Y(Og.zoom,this),scrollMove:Y(Og.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){uF(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(fg),Og={zoom:function(n,e,t,i){var o=this.range,r=o.slice(),a=n.axisModels[0];if(a){var s=Rg[e](null,[i.originX,i.originY],a,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],u=Math.max(1/i.scale,0);r[0]=(r[0]-l)*u+l,r[1]=(r[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Do(0,r,[0,100],0,h.minSpan,h.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1])return r}},pan:rT(function(n,e,t,i,o,r){var a=Rg[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,t);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:rT(function(n,e,t,i,o,r){var a=Rg[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,t);return a.signal*(n[1]-n[0])*r.scrollDelta})};function rT(n){return function(e,t,i,o){var r=this.range,a=r.slice(),s=e.axisModels[0];if(s){var l=n(a,s,e,t,i,o);if(Do(l,a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1])return a}}}var Rg={grid:function(n,e,t,i,o){var r=t.axis,a={},s=o.model.coordinateSystem.getRect();return n=n||[0,0],r.dim==="x"?(a.pixel=e[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(n,e,t,i,o){var r=t.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(a.pixel=e[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(n,e,t,i,o){var r=t.axis,a=o.model.coordinateSystem.getRect(),s={};return n=n||[0,0],r.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}};const vF=gF;function aT(n){gg(n),n.registerComponentModel(sF),n.registerComponentView(vF),fF(n)}var yF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=mi(xs.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(xs);const mF=yF;var ws=yt,sT=7,xF=1,Ng=30,_F=7,Ss="horizontal",lT="vertical",bF=5,wF=["line","bar","candlestick","scatter"],SF={easing:"cubicOut",duration:100,delay:0},MF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=Y(this._onBrush,this),this._onBrushEnd=Y(this._onBrushEnd,this)},e.prototype.render=function(t,i,o,r){if(n.prototype.render.apply(this,arguments),xr(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}(!r||r.type!=="dataZoom"||r.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ua(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 i=this._displayables.sliderGroup=new it;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,o=t.get("brushSelect"),r=o?_F:0,a=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===Ss?{right:s.width-a.x-a.width,top:s.height-Ng-sT-r,width:a.width,height:Ng}:{right:sT,top:a.y,width:Ng,height:a.height},u=dr(t.option);M(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var h=pe(u,s);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],this._orient===lT&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,o=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),a=r&&r.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(o===Ss&&!a?{scaleY:l?1:-1,scaleX:1}:o===Ss&&a?{scaleY:l?1:-1,scaleX:-1}:o===lT&&!a?{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=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,o=this._displayables.sliderGroup,r=t.get("brushSelect");o.add(new ws({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var a=new ws({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:Y(this._onClickPanel,this)}),s=this.api.getZr();r?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),o.add(a)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,o=this._shadowSize||[],r=t.series,a=r.getRawData(),s=r.getShadowDim&&r.getShadowDim(),l=s&&a.getDimensionInfo(s)?r.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,h=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==o[0]||i[1]!==o[1]){var c=a.getDataExtent(l),d=(c[1]-c[0])*.3;c=[c[0]-d,c[1]+d];var p=[0,i[1]],f=[0,i[0]],g=[[i[0],0],[0,0]],v=[],y=f[1]/(a.count()-1),m=0,x=Math.round(a.count()/i[0]),_;a.each([l],function(I,C){if(x>0&&C%x){m+=y;return}var A=I==null||isNaN(I)||I==="",D=A?0:xt(I,c,p,!0);A&&!_&&C?(g.push([g[g.length-1][0],0]),v.push([v[v.length-1][0],0])):!A&&_&&(g.push([m,0]),v.push([m,0])),g.push([m,D]),v.push([m,D]),m+=y,_=A}),u=this._shadowPolygonPts=g,h=this._shadowPolylinePts=v}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var w=this.dataZoomModel;function b(I){var C=w.getModel(I?"selectedDataBackground":"dataBackground"),A=new it,D=new An({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new Be({shape:{points:h},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(D),A.add(k),A}for(var S=0;S<3;S++){var T=b(S===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var o,r=this.ecModel;return t.eachTargetAxis(function(a,s){var l=t.getAxisProxy(a,s).getTargetSeriesModels();M(l,function(u){if(!o&&!(i!==!0&<(wF,u.get("type"))<0)){var h=r.getComponent(Pi(a),s).axis,c=TF(a),d,p=u.coordinateSystem;c!=null&&p.getOtherAxis&&(d=p.getOtherAxis(h).inverse),c=u.getData().mapDimension(c),o={thisAxis:h,series:u,thisDim:a,otherDim:c,otherAxisInverse:d}}},this)},this),o}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,o=i.handles=[null,null],r=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),d=i.filler=new ws({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(d),a.add(new ws({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:xF,fill:"rgba(0,0,0,0)"}})),M([0,1],function(x){var _=l.get("handleIcon");!au[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var w=Ft(_,-1,0,2,2,null,!0);w.attr({cursor:uT(this._orient),draggable:!0,drift:Y(this._onDragMove,this,x),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1),z2:5});var b=w.getBoundingRect(),S=l.get("handleSize");this._handleHeight=U(S,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(),vi(w);var T=l.get("handleColor");T!=null&&(w.style.fill=T),a.add(o[x]=w);var I=l.getModel("textStyle");t.add(r[x]=new dt({silent:!0,invisible:!0,style:Ct(I,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:I.getTextColor(),font:I.getFont()}),z2:10}))},this);var p=d;if(c){var f=U(l.get("moveHandleSize"),s[1]),g=i.moveHandle=new yt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:f}}),v=f*.8,y=i.moveHandleIcon=Ft(l.get("moveHandleIcon"),-v/2,-v/2,v,v,"#fff",!0);y.silent=!0,y.y=s[1]+f/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(f,10));p=i.moveZone=new yt({invisible:!0,shape:{y:s[1]-m,height:f+m}}),p.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),a.add(g),a.add(y),a.add(p)}p.attr({draggable:!0,cursor:uT(this._orient),drift:Y(this._onDragMove,this,"all"),ondragstart:Y(this._showDataInfo,this,!0),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],i,!0),xt(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var o=this.dataZoomModel,r=this._handleEnds,a=this._getViewExtent(),s=o.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Do(i,r,a,o.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,a,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,a,!0):null);var u=this._range,h=this._range=xn([xt(r[0],a,l,!0),xt(r[1],a,l,!0)]);return!u||u[0]!==h[0]||u[1]!==h[1]},e.prototype._updateView=function(t){var i=this._displayables,o=this._handleEnds,r=xn(o.slice()),a=this._size;M([0,1],function(p){var f=i.handles[p],g=this._handleHeight;f.attr({scaleX:g/2,scaleY:g/2,x:o[p]+(p?-1:1),y:a[1]/2-g/2})},this),i.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:a[1]});var s={x:r[0],width:r[1]-r[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,r[0],r[1],a[0]],h=0;h<l.length;h++){var c=l[h],d=c.getClipPath();d||(d=new yt,c.setClipPath(d)),d.setShape({x:u[h],y:0,width:u[h+1]-u[h],height:a[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,h=this._range,c=t?l.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var d=xn(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(f){var g=yi(o.handles[f].parent,this.group),v=Bl(f===0?"right":"left",g),y=this._handleWidth/2+bF,m=rn([d[f]+(f===0?-y:y),this._size[1]/2],g);r[f].setStyle({x:m[0],y:m[1],verticalAlign:a===Ss?"middle":v,align:a===Ss?v:"center",text:s[f]})}},e.prototype._formatLabel=function(t,i){var o=this.dataZoomModel,r=o.get("labelFormatter"),a=o.get("labelPrecision");(a==null||a==="auto")&&(a=i.getPixelPrecision());var s=t==null||isNaN(t)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(a,20));return $(r)?r(t,s):G(r)?r.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var i=this._displayables,o=i.handleLabels;o[0].attr("invisible",!t),o[1].attr("invisible",!t),i.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},e.prototype._onDragMove=function(t,i,o,r){this._dragging=!0,Hn(r.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=rn([i,o],a,!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 i=this._size,o=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(o[0]<0||o[0]>i[0]||o[1]<0||o[1]>i[1])){var r=this._handleEnds,a=(r[0]+r[1])/2,s=this._updateInterval("all",o[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,o=t.offsetY;this._brushStart=new nt(i,o),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var o=i.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(o.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=xn([xt(o.x,a,s,!0),xt(o.x+o.width,a,s,!0)]),this._handleEnds=[o.x,o.x+o.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Hn(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var o=this._displayables,r=this.dataZoomModel,a=o.brushRect;a||(a=o.brushRect=new ws({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),o.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),h=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),a.setShape({x:h[0],y:0,width:u[0]-h[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?SF:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=gM(this.dataZoomModel).infoList;if(!t&&i.length){var o=i[0].model.coordinateSystem;t=o.getRect&&o.getRect()}if(!t){var r=this.api.getWidth(),a=this.api.getHeight();t={x:r*.2,y:a*.2,width:r*.6,height:a*.6}}return t},e.type="dataZoom.slider",e}(fg);function TF(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function uT(n){return n==="vertical"?"ns-resize":"ew-resize"}const CF=MF;function hT(n){n.registerComponentModel(mF),n.registerComponentView(CF),gg(n)}function IF(n){$t(aT),$t(hT)}var AF={get:function(n,e,t){var i=q((DF[n]||{})[e]);return t&&V(i)?i[i.length-1]:i}},DF={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]}};const cT=AF;var pT=ae.mapVisual,kF=ae.eachVisual,PF=V,dT=M,LF=xn,OF=xt,RF=function(n){z(e,n);function e(){var t=n!==null&&n.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,i,o){this.mergeDefaultAndTheme(t,o)},e.prototype.optionUpdated=function(t,i){var o=this.option;!i&&UM(o,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=Y(t,this),this.controllerVisuals=Mg(this.option.controller,i,t),this.targetVisuals=Mg(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(o,r){i.push(r)}):i=Dt(t),i},e.prototype.eachTargetSeries=function(t,i){M(this.getTargetSeriesIndices(),function(o){var r=this.ecModel.getSeriesByIndex(o);r&&t.call(i,r)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(o){o===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,o){var r=this.option,a=r.precision,s=this.dataBound,l=r.formatter,u;o=o||["<",">"],V(t)&&(t=t.slice(),u=!0);var h=i?t:u?[c(t[0]),c(t[1])]:c(t);if(G(l))return l.replace("{value}",u?h[0]:h).replace("{value2}",u?h[1]:h);if($(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?o[0]+" "+h[1]:t[1]===s[1]?o[1]+" "+h[0]:h[0]+" - "+h[1];return h;function c(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,i=LF([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var o=t.dimensions,r=o.length-1;r>=0;r--){var a=o[r],s=t.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,o={inRange:i.inRange,outOfRange:i.outOfRange},r=i.target||(i.target={}),a=i.controller||(i.controller={});et(r,o),et(a,o);var s=this.isCategory();l.call(this,r),l.call(this,a),u.call(this,r,"inRange","outOfRange"),h.call(this,a);function l(c){PF(i.color)&&!c.inRange&&(c.inRange={color:i.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,d,p){var f=c[d],g=c[p];f&&!g&&(g=c[p]={},dT(f,function(v,y){if(ae.isValidType(y)){var m=cT.get(y,"inactive",s);m!=null&&(g[y]=m,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function h(c){var d=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,p=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,f=this.get("inactiveColor"),g=this.getItemSymbol(),v=g||"roundRect";dT(this.stateList,function(y){var m=this.itemSize,x=c[y];x||(x=c[y]={color:s?f:[f]}),x.symbol==null&&(x.symbol=d&&q(d)||(s?v:[v])),x.symbolSize==null&&(x.symbolSize=p&&q(p)||(s?m[0]:[m[0],m[0]])),x.symbol=pT(x.symbol,function(b){return b==="none"?v:b});var _=x.symbolSize;if(_!=null){var w=-1/0;kF(_,function(b){b>w&&(w=b)}),x.symbolSize=pT(_,function(b){return OF(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}(ft);const vh=RF;var fT=[20,140],NF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(o){o.mappingMethod="linear",o.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=fT[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=fT[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):V(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=xn((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]<t[0]&&(i[0]=t[0]),i[1]<t[0]&&(i[1]=t[0]),i},e.prototype.getValueState=function(t){var i=this.option.range,o=this.getExtent();return(i[0]<=o[0]||i[0]<=t)&&(i[1]>=o[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(o){var r=[],a=o.getData();a.each(this.getDataDimensionIndex(a),function(s,l){t[0]<=s&&s<=t[1]&&r.push(l)},this),i.push({seriesId:o.id,dataIndex:r})},this),i},e.prototype.getVisualMeta=function(t){var i=gT(this,"outOfRange",this.getExtent()),o=gT(this,"inRange",this.option.range.slice()),r=[];function a(p,f){r.push({value:p,color:t(p,f)})}for(var s=0,l=0,u=o.length,h=i.length;l<h&&(!o.length||i[l]<=o[0]);l++)i[l]<o[s]&&a(i[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&r.length&&a(o[s],"outOfRange"),a(o[s],"inRange");for(var c=1;l<h;l++)(!o.length||o[o.length-1]<i[l])&&(c&&(r.length&&a(r[r.length-1].value,"outOfRange"),c=0),a(i[l],"outOfRange"));var d=r.length;return{stops:r,outerColors:[d?r[0].color:"transparent",d?r[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=mi(vh.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}(vh);function gT(n,e,t){if(t[0]===t[1])return t.slice();for(var i=200,o=(t[1]-t[0])/i,r=t[0],a=[],s=0;s<=i&&r<t[1];s++)a.push(r),r+=o;return a.push(t[1]),a}const zF=NF;var BF=function(n){z(e,n);function e(){var t=n!==null&&n.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,i){this.ecModel=t,this.api=i},e.prototype.render=function(t,i,o,r){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,i,o,r)},e.prototype.renderBackground=function(t){var i=this.visualMapModel,o=co(i.get("padding")||0),r=t.getBoundingRect();t.add(new yt({z2:-1,silent:!0,shape:{x:r.x-o[3],y:r.y-o[0],width:r.width+o[3]+o[1],height:r.height+o[0]+o[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,i,o){o=o||{};var r=o.forceState,a=this.visualMapModel,s={};if(i==="color"){var l=a.get("contentColor");s.color=l}function u(p){return s[p]}function h(p,f){s[p]=f}var c=a.controllerVisuals[r||a.getValueState(t)],d=ae.prepareVisualTypes(c);return M(d,function(p){var f=c[p];o.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",f=c.__alphaForOpacity),ae.dependsOn(p,i)&&f&&f.applyVisual(t,u,h)}),s[i]},e.prototype.positionGroup=function(t){var i=this.visualMapModel,o=this.api;Zl(t,i.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})},e.prototype.doRender=function(t,i,o,r){},e.type="visualMap",e}(zt);const vT=BF;var yT=[["left","right","width"],["top","bottom","height"]];function mT(n,e,t){var i=n.option,o=i.align;if(o!=null&&o!=="auto")return o;for(var r={width:e.getWidth(),height:e.getHeight()},a=i.orient==="horizontal"?1:0,s=yT[a],l=[0,null,10],u={},h=0;h<3;h++)u[yT[1-a][h]]=l[h],u[s[h]]=h===2?t[0]:i[s[h]];var c=[["x","width",3],["y","height",0]][a],d=pe(u,r,i.padding);return s[(d.margin[c[2]]||0)+d[c[0]]+d[c[1]]*.5<r[c[1]]*.5?0:1]}function yh(n,e){return M(n||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),n}var Bn=xt,EF=M,xT=Math.min,zg=Math.max,VF=12,FF=6,WF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,i){n.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=Y(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Y(this._hideIndicator,this)},e.prototype.doRender=function(t,i,o,r){(!r||r.type!=="selectDataRange"||r.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,i=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(i);var o=t.get("text");this._renderEndsText(i,o,0),this._renderEndsText(i,o,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(t,i,o){if(i){var r=i[1-o];r=r!=null?r+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,u=this._shapes.mainGroup,h=this._applyTransform([l[0]/2,o===0?-s:l[1]+s],u),c=this._applyTransform(o===0?"bottom":"top",u),d=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new dt({style:Ct(p,{x:h[0],y:h[1],verticalAlign:d==="horizontal"?"middle":c,align:d==="horizontal"?c:"center",text:r})}))}},e.prototype._renderBar=function(t){var i=this.visualMapModel,o=this._shapes,r=i.itemSize,a=this._orient,s=this._useHandle,l=mT(i,this.api,r),u=o.mainGroup=this._createBarGroup(l),h=new it;u.add(h),h.add(o.outOfRange=_T()),h.add(o.inRange=_T(null,s?wT(this._orient):null,Y(this._dragHandle,this,"all",!1),Y(this._dragHandle,this,"all",!0))),h.setClipPath(new yt({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var c=i.textStyleModel.getTextRect("\u56FD"),d=zg(c.width,c.height);s&&(o.handleThumbs=[],o.handleLabels=[],o.handleLabelPoints=[],this._createHandle(i,u,0,r,d,a),this._createHandle(i,u,1,r,d,a)),this._createIndicator(i,u,r,d,a),t.add(u)},e.prototype._createHandle=function(t,i,o,r,a,s){var l=Y(this._dragHandle,this,o,!1),u=Y(this._dragHandle,this,o,!0),h=en(t.get("handleSize"),r[0]),c=Ft(t.get("handleIcon"),-h/2,-h/2,h,h,null,!0),d=wT(this._orient);c.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Hn(y.event)}}),c.x=r[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),wl(c,!0),i.add(c);var p=this.visualMapModel.textStyleModel,f=new dt({cursor:d,draggable:!0,drift:l,onmousemove:function(y){Hn(y.event)},ondragend:u,style:Ct(p,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var g=[h,0],v=this._shapes;v.handleThumbs[o]=c,v.handleLabelPoints[o]=g,v.handleLabels[o]=f},e.prototype._createIndicator=function(t,i,o,r,a){var s=en(t.get("indicatorSize"),o[0]),l=Ft(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:o[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof ee){var h=l.style;l.useStyle(N({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else l.useStyle(u);i.add(l);var c=this.visualMapModel.textStyleModel,d=new dt({silent:!0,invisible:!0,style:Ct(c,{x:0,y:0,text:""})});this.group.add(d);var p=[(a==="horizontal"?r/2:FF)+o[0]/2,0],f=this._shapes;f.indicator=l,f.indicatorLabel=d,f.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,i,o,r){if(this._useHandle){if(this._dragging=!i,!i){var a=this._applyTransform([o,r],this._shapes.mainGroup,!0);this._updateInterval(t,a[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():bT(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,i=this._dataInterval=t.getSelected(),o=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[Bn(i[0],o,r,!0),Bn(i[1],o,r,!0)]},e.prototype._updateInterval=function(t,i){i=i||0;var o=this.visualMapModel,r=this._handleEnds,a=[0,o.itemSize[1]];Do(i,r,a,t,0);var s=o.getExtent();this._dataInterval=[Bn(r[0],a,s,!0),Bn(r[1],a,s,!0)]},e.prototype._updateView=function(t){var i=this.visualMapModel,o=i.getExtent(),r=this._shapes,a=[0,i.itemSize[1]],s=t?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,o,s,"inRange"),u=this._createBarVisual(o,o,a,"outOfRange");r.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),r.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,i,o,r){var a={forceState:r,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,a),l=[this.getControllerVisual(t[0],"symbolSize",a),this.getControllerVisual(t[1],"symbolSize",a)],u=this._createBarPoints(o,l);return{barColor:new Aa(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,i){var o=100,r=[],a=(t[1]-t[0])/o;r.push({color:this.getControllerVisual(t[0],"color",i),offset:0});for(var s=1;s<o;s++){var l=t[0]+a*s;if(l>t[1])break;r.push({color:this.getControllerVisual(l,"color",i),offset:s/o})}return r.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),r},e.prototype._createBarPoints=function(t,i){var o=this.visualMapModel.itemSize;return[[o[0]-i[0],t[0]],[o[0],t[0]],[o[0],t[1]],[o[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,o=this.visualMapModel.get("inverse");return new it(i==="horizontal"&&!o?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&o?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!o?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var o=this._shapes,r=this.visualMapModel,a=o.handleThumbs,s=o.handleLabels,l=r.itemSize,u=r.getExtent();EF([0,1],function(h){var c=a[h];c.setStyle("fill",i.handlesColor[h]),c.y=t[h];var d=Bn(t[h],[0,l[1]],u,!0),p=this.getControllerVisual(d,"symbolSize");c.scaleX=c.scaleY=p/l[0],c.x=l[0]-p/2;var f=rn(o.handleLabelPoints[h],yi(c,this.group));s[h].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",o.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,o,r){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],h=this._shapes,c=h.indicator;if(c){c.attr("invisible",!1);var d={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",d),f=this.getControllerVisual(t,"symbolSize"),g=Bn(t,s,u,!0),v=l[0]-f/2,y={x:c.x,y:c.y};c.y=g,c.x=v;var m=rn(h.indicatorLabelPoint,yi(c,this.group)),x=h.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",h.mainGroup),w=this._orient,b=w==="horizontal";x.setStyle({text:(o||"")+a.formatValueText(i),verticalAlign:b?_:"middle",align:b?"center":_});var S={x:v,y:g,style:{fill:p}},T={style:{x:m[0],y:m[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var I={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(S,I),x.animateTo(T,I)}else c.attr(S),x.attr(T);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var A=0;A<C.length;A++)this.api.enterBlur(C[A])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(i){if(t._hovering=!0,!t._dragging){var o=t.visualMapModel.itemSize,r=t._applyTransform([i.offsetX,i.offsetY],t._shapes.mainGroup,!0,!0);r[1]=xT(zg(0,r[1]),o[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=o[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,i){var o=this.visualMapModel,r=o.itemSize;if(o.option.hoverLink){var a=[0,r[1]],s=o.getExtent();t=xT(zg(a[0],t),a[1]);var l=GF(o,s,a),u=[t-l,t+l],h=Bn(t,a,s,!0),c=[Bn(u[0],a,s,!0),Bn(u[1],a,s,!0)];u[0]<a[0]&&(c[0]=-1/0),u[1]>a[1]&&(c[1]=1/0),i&&(c[0]===-1/0?this._showIndicator(h,c[1],"< ",l):c[1]===1/0?this._showIndicator(h,c[0],"> ",l):this._showIndicator(h,h,"\u2248 ",l));var d=this._hoverLinkDataIndices,p=[];(i||bT(o))&&(p=this._hoverLinkDataIndices=o.findTargetDataIndices(c));var f=_I(d,p);this._dispatchHighDown("downplay",yh(f[0],o)),this._dispatchHighDown("highlight",yh(f[1],o))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(xo(t.target,function(l){var u=rt(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var o=this.ecModel.getSeriesByIndex(i.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(o)){var a=o.getData(i.dataType),s=a.getStore().get(r.getDataDimensionIndex(a),i.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 i=this._shapes.handleLabels;if(i)for(var o=0;o<i.length;o++)this.api.leaveBlur(i[o])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",yh(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,i,o,r){var a=yi(i,r?null:this.group);return V(t)?rn(t,a,o):Bl(t,a,o)},e.prototype._dispatchHighDown=function(t,i){i&&i.length&&this.api.dispatchAction({type:t,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(vT);function _T(n,e,t,i){return new An({shape:{points:n},draggable:!!t,cursor:e,drift:t,onmousemove:function(o){Hn(o.event)},ondragend:i})}function GF(n,e,t){var i=VF/2,o=n.get("hoverLinkDataSize");return o&&(i=Bn(o,e,t,!0)/2),i}function bT(n){var e=n.get("hoverLinkOnHandle");return!!(e!=null?e:n.get("realtime"))}function wT(n){return n==="vertical"?"ns-resize":"ew-resize"}const HF=WF;var YF={type:"selectDataRange",event:"dataRangeSelected",update:"update"},UF=function(n,e){e.eachComponent({mainType:"visualMap",query:n},function(t){t.setSelected(n.selected)})},XF=[{createOnAllSeries:!0,reset:function(n,e){var t=[];return e.eachComponent("visualMap",function(i){var o=n.pipelineContext;!i.isTargetSeries(n)||o&&o.large||t.push(IV(i.stateList,i.targetVisuals,Y(i.getValueState,i),i.getDataDimensionIndex(n.getData())))}),t}},{createOnAllSeries:!0,reset:function(n,e){var t=n.getData(),i=[];e.eachComponent("visualMap",function(o){if(o.isTargetSeries(n)){var r=o.getVisualMeta(Y(ZF,null,n,o))||{stops:[],outerColors:[]},a=o.getDataDimensionIndex(t);a>=0&&(r.dimension=a,i.push(r))}}),n.getData().setVisual("visualMeta",i)}}];function ZF(n,e,t,i){for(var o=e.targetVisuals[i],r=ae.prepareVisualTypes(o),a={color:fd(n.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],h=o[u==="opacity"?"__alphaForOpacity":u];h&&h.applyVisual(t,c,d)}return a.color;function c(p){return a[p]}function d(p,f){a[p]=f}}var ST=M;function jF(n){var e=n&&n.visualMap;V(e)||(e=e?[e]:[]),ST(e,function(t){if(t){zr(t,"splitList")&&!zr(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var i=t.pieces;i&&V(i)&&ST(i,function(o){j(o)&&(zr(o,"start")&&!zr(o,"min")&&(o.min=o.start),zr(o,"end")&&!zr(o,"max")&&(o.max=o.end))})}})}function zr(n,e){return n&&n.hasOwnProperty&&n.hasOwnProperty(e)}var MT=!1;function TT(n){MT||(MT=!0,n.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(YF,UF),M(XF,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(jF))}function CT(n){n.registerComponentModel(zF),n.registerComponentView(HF),TT(n)}var qF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],KF[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var r=this.option.categories;this.resetVisual(function(a,s){o==="categories"?(a.mappingMethod="category",a.categories=q(r)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=F(this._pieceList,function(l){return l=q(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},o=ae.listVisualTypes(),r=this.isCategory();M(t.pieces,function(s){M(o,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),M(i,function(s,l){var u=!1;M(this.stateList,function(h){u=u||a(t,h,l)||a(t.target,h,l)},this),!u&&M(this.stateList,function(h){(t[h]||(t[h]={}))[l]=cT.get(l,h==="inRange"?"active":"inactive",r)})},this);function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var o=this.option,r=this._pieceList,a=(i?o:t).selected||{};if(o.selected=a,M(r,function(l,u){var h=this.getSelectedMapKey(l);a.hasOwnProperty(h)||(a[h]=!0)},this),o.selectedMode==="single"){var s=!1;M(r,function(l,u){var h=this.getSelectedMapKey(l);a[h]&&(s?a[h]=!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=q(t)},e.prototype.getValueState=function(t){var i=ae.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],o=this._pieceList;return this.eachTargetSeries(function(r){var a=[],s=r.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var h=ae.findPieceIndex(l,o);h===t&&a.push(u)},this),i.push({seriesId:r.id,dataIndex:a})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var o=t.interval||[];i=o[0]===-1/0&&o[1]===1/0?0:(o[0]+o[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],o=["",""],r=this;function a(h,c){var d=r.getRepresentValue({interval:h});c||(c=r.getValueState(d));var p=t(d,c);h[0]===-1/0?o[0]=p:h[1]===1/0?o[1]=p:i.push({value:h[0],color:p},{value:h[1],color:p})}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 M(s,function(h){var c=h.interval;c&&(c[0]>u&&a([u,c[0]],"outOfRange"),a(c.slice()),u=c[1])},this),{stops:i,outerColors:o}},e.type="visualMap.piecewise",e.defaultOption=mi(vh.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}(vh),KF={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(t)!==r&&t<5;)t++;e.precision=t,r=+r.toFixed(t),e.minOpen&&n.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<o;s+=r,a++){var l=a===o-1?i[1]:s+r;n.push({interval:[s,l],close:[1,1]})}e.maxOpen&&n.push({interval:[i[1],1/0],close:[0,0]}),Lc(n),M(n,function(u,h){u.index=h,u.text=this.formatValueText(u.interval)},this)},categories:function(n){var e=this.option;M(e.categories,function(t){n.push({text:this.formatValueText(t,!0),value:t})},this),IT(e,n)},pieces:function(n){var e=this.option;M(e.pieces,function(t,i){j(t)||(t={value:t});var o={text:"",index:i};if(t.label!=null&&(o.text=t.label),t.hasOwnProperty("value")){var r=o.value=t.value;o.interval=[r,r],o.close=[1,1]}else{for(var a=o.interval=[],s=o.close=[0,0],l=[1,0,1],u=[-1/0,1/0],h=[],c=0;c<2;c++){for(var d=[["gte","gt","min"],["lte","lt","max"]][c],p=0;p<3&&a[c]==null;p++)a[c]=t[d[p]],s[c]=l[p],h[c]=p===2;a[c]==null&&(a[c]=u[c])}h[0]&&a[1]===1/0&&(s[0]=0),h[1]&&a[0]===-1/0&&(s[1]=0),a[0]===a[1]&&s[0]&&s[1]&&(o.value=a[0])}o.visual=ae.retrieveVisuals(t),n.push(o)},this),IT(e,n),Lc(n),M(n,function(t){var i=t.close,o=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,o)},this)}};function IT(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const $F=qF;var QF=function(n){z(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,o=i.get("textGap"),r=i.textStyleModel,a=r.getFont(),s=r.getTextColor(),l=this._getItemAlign(),u=i.itemSize,h=this._getViewData(),c=h.endsText,d=fn(i.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],u,d,l),M(h.viewPieceList,function(p){var f=p.piece,g=new it;g.onclick=Y(this._onItemClick,this,f),this._enableHoverLink(g,p.indexInModelPieceList);var v=i.getRepresentValue(f);if(this._createItemSymbol(g,v,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(v);g.add(new dt({style:{x:l==="right"?-o:u[0]+o,y:u[1]/2,text:f.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),c&&this._renderEndsText(t,c[1],u,d,l),go(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var o=this;t.on("mouseover",function(){return r("highlight")}).on("mouseout",function(){return r("downplay")});var r=function(a){var s=o.visualMapModel;s.option.hoverLink&&o.api.dispatchAction({type:a,batch:yh(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return mT(t,this.api,t.itemSize);var o=i.align;return(!o||o==="auto")&&(o="left"),o},e.prototype._renderEndsText=function(t,i,o,r,a){if(i){var s=new it,l=this.visualMapModel.textStyleModel;s.add(new dt({style:Ct(l,{x:r?a==="right"?o[0]:0:o[0]/2,y:o[1]/2,verticalAlign:"middle",align:r?a:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=F(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),o=t.get("text"),r=t.get("orient"),a=t.get("inverse");return(r==="horizontal"?a:!a)?i.reverse():o&&(o=o.slice().reverse()),{viewPieceList:i,endsText:o}},e.prototype._createItemSymbol=function(t,i,o){t.add(Ft(this.getControllerVisual(i,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(i,"color")))},e.prototype._onItemClick=function(t){var i=this.visualMapModel,o=i.option,r=o.selectedMode;if(r){var a=q(o.selected),s=i.getSelectedMapKey(t);r==="single"||r===!0?(a[s]=!0,M(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},e.type="visualMap.piecewise",e}(vT);const JF=QF;function AT(n){n.registerComponentModel($F),n.registerComponentView(JF),TT(n)}function t4(n){$t(CT),$t(AT)}var e4={label:{enabled:!0},decal:{show:!1}},DT=_t(),n4={};function i4(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var i=q(e4);et(i.label,n.getLocaleModel().get("aria"),!1),et(t.option,i,!1),o(),r();function o(){var u=t.getModel("decal"),h=u.get("show");if(h){var c=X();n.eachSeries(function(d){if(!d.isColorBySeries()){var p=c.get(d.type);p||(p={},c.set(d.type,p)),DT(d).scope=p}}),n.eachRawSeries(function(d){if(n.isSeriesFiltered(d))return;if($(d.enableAriaDecal)){d.enableAriaDecal();return}var p=d.getData();if(d.isColorBySeries()){var f=Zp(d.ecModel,d.name,n4,n.getSeriesCount()),g=p.getVisual("decal");p.setVisual("decal",_(g,f))}else{var v=d.getRawData(),y={},m=DT(d).scope;p.each(function(w){var b=p.getRawIndex(w);y[b]=w});var x=v.count();v.each(function(w){var b=y[w],S=v.getName(w)||w+"",T=Zp(d.ecModel,S,m,x),I=p.getItemVisual(b,"decal");p.setItemVisual(b,"decal",_(I,T))})}function _(w,b){var S=w?N(N({},b),w):b;return S.dirty=!0,S}})}}function r(){var u=n.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=K(h.option,u),!!h.get("enabled")){var c=e.getZr().dom;if(h.get("description")){c.setAttribute("aria-label",h.get("description"));return}var d=n.getSeriesCount(),p=h.get(["data","maxCount"])||10,f=h.get(["series","maxCount"])||10,g=Math.min(d,f),v;if(!(d<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);v=a(m,{title:y})}else v=h.get(["general","withoutTitle"]);var x=[],_=d>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);v+=a(_,{seriesCount:d}),n.eachSeries(function(T,I){if(I<g){var C=void 0,A=T.get("name"),D=A?"withName":"withoutName";C=d>1?h.get(["series","multiple",D]):h.get(["series","single",D]),C=a(C,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var k=T.getData();if(k.count()>p){var P=h.get(["data","partialData"]);C+=a(P,{displayCnt:p})}else C+=h.get(["data","allData"]);for(var L=h.get(["data","separator","middle"]),O=h.get(["data","separator","end"]),E=[],R=0;R<k.count();R++)if(R<p){var B=k.getName(R),W=k.getValues(R),Z=h.get(["data",B?"withName":"withoutName"]);E.push(a(Z,{name:B,value:W.join(L)}))}C+=E.join(L)+O,x.push(C)}});var w=h.getModel(["series","multiple","separator"]),b=w.get("middle"),S=w.get("end");v+=x.join(b)+S,c.setAttribute("aria-label",v)}}}function a(u,h){if(!G(u))return u;var c=u;return M(h,function(d,p){c=c.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),d)}),c}function s(){var u=n.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var h=n.getLocaleModel().get(["series","typeNames"]);return h[u]||h.chart}}function o4(n){if(!(!n||!n.aria)){var e=n.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},M(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function r4(n){n.registerPreprocessor(o4),n.registerVisual(n.PRIORITY.VISUAL.ARIA,i4)}var Bg=Math.sin,Eg=Math.cos,kT=Math.PI,No=Math.PI*2,a4=180/kT,s4=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,i,o,r,a){this._add("C",e,t,i,o,r,a)},n.prototype.quadraticCurveTo=function(e,t,i,o){this._add("Q",e,t,i,o)},n.prototype.arc=function(e,t,i,o,r,a){this.ellipse(e,t,i,i,0,o,r,a)},n.prototype.ellipse=function(e,t,i,o,r,a,s,l){var u=s-a,h=!l,c=Math.abs(u),d=ci(c-No)||(h?u>=No:-u>=No),p=u>0?u%No:u%No+No,f=!1;d?f=!0:ci(c)?f=!1:f=p>=kT==!!h;var g=e+i*Eg(a),v=t+o*Bg(a);this._start&&this._add("M",g,v);var y=Math.round(r*a4);if(d){var m=1/this._p,x=(h?1:-1)*(No-m);this._add("A",i,o,y,1,+h,e+i*Eg(a+x),t+o*Bg(a+x)),m>.01&&this._add("A",i,o,y,0,+h,g,v)}else{var _=e+i*Eg(s),w=t+o*Bg(s);this._add("A",i,o,y,+f,+h,_,w)}},n.prototype.rect=function(e,t,i,o){this._add("M",e,t),this._add("l",i,0),this._add("l",0,o),this._add("l",-i,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,i,o,r,a,s,l,u){for(var h=[],c=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p)){this._invalid=!0;return}h.push(Math.round(p*c)/c)}this._d.push(e+h.join(" ")),this._start=e==="Z"},n.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},n.prototype.getStr=function(){return this._str},n}();const PT=s4;var Ms="none",l4=Math.round;function u4(n){var e=n.fill;return e!=null&&e!==Ms}function h4(n){var e=n.stroke;return e!=null&&e!==Ms}var Vg=["lineCap","miterLimit","lineJoin"],c4=F(Vg,function(n){return"stroke-"+n.toLowerCase()});function p4(n,e,t,i){var o=e.opacity==null?1:e.opacity;if(t instanceof ee){n("opacity",o);return}if(u4(e)){var r=ra(e.fill);n("fill",r.color);var a=e.fillOpacity!=null?e.fillOpacity*r.opacity*o:r.opacity*o;(i||a<1)&&n("fill-opacity",a)}else n("fill",Ms);if(h4(e)){var s=ra(e.stroke);n("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,h=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*o:s.opacity*o,c=e.strokeFirst;if((i||u!==1)&&n("stroke-width",u),(i||c)&&n("paint-order",c?"stroke":"fill"),(i||h<1)&&n("stroke-opacity",h),e.lineDash){var d=yd(t),p=d[0],f=d[1];p&&(f=l4(f||0),n("stroke-dasharray",p.join(",")),(f||i)&&n("stroke-dashoffset",f))}else i&&n("stroke-dasharray",Ms);for(var g=0;g<Vg.length;g++){var v=Vg[g];if(i||e[v]!==gl[v]){var y=e[v]||gl[v];y&&n(c4[g],y)}}}else i&&n("stroke",Ms)}var LT="http://www.w3.org/2000/svg",OT="http://www.w3.org/1999/xlink",d4="http://www.w3.org/2000/xmlns/",f4="http://www.w3.org/XML/1998/namespace",RT="ecmeta_";function NT(n){return document.createElementNS(LT,n)}function Wt(n,e,t,i,o){return{tag:n,attrs:t||{},children:i,text:o,key:e}}function g4(n,e){var t=[];if(e)for(var i in e){var o=e[i],r=i;o!==!1&&(o!==!0&&o!=null&&(r+='="'+o+'"'),t.push(r))}return"<"+n+" "+t.join(" ")+">"}function v4(n){return"</"+n+">"}function Fg(n,e){e=e||{};var t=e.newline?`
- `:"";function i(o){var r=o.children,a=o.tag,s=o.attrs,l=o.text;return g4(a,s)+(a!=="style"?le(l):l||"")+(r?""+t+F(r,function(u){return i(u)}).join(t)+t:"")+v4(a)}return i(n)}function y4(n,e,t){t=t||{};var i=t.newline?`
- `:"",o=" {"+i,r=i+"}",a=F(at(n),function(l){return l+o+F(at(n[l]),function(u){return u+":"+n[l][u]+";"}).join(i)+r}).join(i),s=F(at(e),function(l){return"@keyframes "+l+o+F(at(e[l]),function(u){return u+o+F(at(e[l][u]),function(h){var c=e[l][u][h];return h==="d"&&(c='path("'+c+'")'),h+":"+c+";"}).join(i)+r}).join(i)+r}).join(i);return!a&&!s?"":["<![CDATA[",a,s,"]]>"].join(i)}function Wg(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zT(n,e,t,i){return Wt("svg","root",{width:n,height:e,xmlns:LT,"xmlns:xlink":OT,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+n+" "+e:!1},t)}var m4=0;function BT(){return m4++}var ET={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},zo="transform-origin";function x4(n,e,t){var i=N({},n.shape);N(i,e),n.buildPath(t,i);var o=new PT;return o.reset(Uv(n)),t.rebuildPath(o,1),o.generateStr(),o.getStr()}function _4(n,e){var t=e.originX,i=e.originY;(t||i)&&(n[zo]=t+"px "+i+"px")}var b4={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function VT(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function w4(n,e,t){var i=n.shape.paths,o={},r,a;if(M(i,function(l){var u=Wg(t.zrId);u.animation=!0,mh(l,{},u,!0);var h=u.cssAnims,c=u.cssNodes,d=at(h),p=d.length;if(p){a=d[p-1];var f=h[a];for(var g in f){var v=f[g];o[g]=o[g]||{d:""},o[g].d+=v.d||""}for(var y in c){var m=c[y].animation;m.indexOf(a)>=0&&(r=m)}}}),!!r){e.d=!1;var s=VT(o,t);return r.replace(a,s)}}function FT(n){return G(n)?ET[n]?"cubic-bezier("+ET[n]+")":Kh(n)?n:"":""}function mh(n,e,t,i){var o=n.animators,r=o.length,a=[];if(n instanceof Dl){var s=w4(n,e,t);if(s)a.push(s);else if(!r)return}else if(!r)return;for(var l={},u=0;u<r;u++){var h=o[u],c=[h.getMaxTime()/1e3+"s"],d=FT(h.getClip().easing),p=h.getDelay();d?c.push(d):c.push("linear"),p&&c.push(p/1e3+"s"),h.getLoop()&&c.push("infinite");var f=c.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(h)}function g(m){var x=m[1],_=x.length,w={},b={},S={},T="animation-timing-function";function I(Gt,Pt,It){for(var tt=Gt.getTracks(),ht=Gt.getMaxTime(),ve=0;ve<tt.length;ve++){var Lt=tt[ve];if(Lt.needsAnimate()){var qe=Lt.keyframes,ye=Lt.propName;if(It&&(ye=It(ye)),ye)for(var Vn=0;Vn<qe.length;Vn++){var Eo=qe[Vn],Ke=Math.round(Eo.time/ht*100)+"%",As=FT(Eo.easing),Vo=Eo.rawValue;(G(Vo)||vt(Vo))&&(Pt[Ke]=Pt[Ke]||{},Pt[Ke][ye]=Eo.rawValue,As&&(Pt[Ke][T]=As))}}}}for(var C=0;C<_;C++){var A=x[C],D=A.targetName;D?D==="shape"&&I(A,b):!i&&I(A,w)}for(var k in w){var P={};oy(P,n),N(P,w[k]);var L=Xv(P),O=w[k][T];S[k]=L?{transform:L}:{},_4(S[k],P),O&&(S[k][T]=O)}var E,R=!0;for(var k in b){S[k]=S[k]||{};var B=!E,O=b[k][T];B&&(E=new Cn);var W=E.len();E.reset(),S[k].d=x4(n,b[k],E);var Z=E.len();if(!B&&W!==Z){R=!1;break}O&&(S[k][T]=O)}if(!R)for(var k in S)delete S[k].d;if(!i)for(var C=0;C<_;C++){var A=x[C],D=A.targetName;D==="style"&&I(A,S,function(tt){return b4[tt]})}for(var Q=at(S),ot=!0,st,C=1;C<Q.length;C++){var St=Q[C-1],mt=Q[C];if(S[St][zo]!==S[mt][zo]){ot=!1;break}st=S[St][zo]}if(ot&&st){for(var k in S)S[k][zo]&&delete S[k][zo];e[zo]=st}if(At(Q,function(Gt){return at(S[Gt]).length>0}).length){var Qt=VT(S,t);return Qt+" "+m[0]+" both"}}for(var v in l){var s=g(l[v]);s&&a.push(s)}if(a.length){var y=t.zrId+"-cls-"+BT();t.cssNodes["."+y]={animation:a.join(",")},e.class=y}}function S4(n,e,t){if(!n.ignore)if(n.isSilent()){var i={"pointer-events":"none"};WT(i,e,t,!0)}else{var o=n.states.emphasis&&n.states.emphasis.style?n.states.emphasis.style:{},r=o.fill;if(!r){var a=n.style&&n.style.fill,s=n.states.select&&n.states.select.style&&n.states.select.style.fill,l=n.currentStates.indexOf("select")>=0&&s||a;l&&(r=qs(l))}var u=o.lineWidth;if(u){var h=!o.strokeNoScale&&n.transform?n.transform[0]:1;u=u/h}var i={cursor:"pointer"};r&&(i.fill=r),o.stroke&&(i.stroke=o.stroke),u&&(i["stroke-width"]=u),WT(i,e,t,!0)}}function WT(n,e,t,i){var o=JSON.stringify(n),r=t.cssStyleCache[o];r||(r=t.zrId+"-cls-"+BT(),t.cssStyleCache[o]=r,t.cssNodes["."+r+(i?":hover":"")]=n),e.class=e.class?e.class+" "+r:r}var Ts=Math.round;function GT(n){return n&&G(n.src)}function HT(n){return n&&$(n.toDataURL)}function Gg(n,e,t,i){p4(function(o,r){var a=o==="fill"||o==="stroke";a&&Yv(r)?qT(e,n,o,i):a&&oc(r)?KT(t,n,o,i):a&&r==="none"?n[o]="transparent":n[o]=r},e,t,!1),k4(t,n,i)}function Hg(n,e){var t=cy(e);t&&(t.each(function(i,o){i!=null&&(n[(RT+o).toLowerCase()]=i+"")}),e.isSilent()&&(n[RT+"silent"]="true"))}function YT(n){return ci(n[0]-1)&&ci(n[1])&&ci(n[2])&&ci(n[3]-1)}function M4(n){return ci(n[4])&&ci(n[5])}function Yg(n,e,t){if(e&&!(M4(e)&&YT(e))){var i=t?10:1e4;n.transform=YT(e)?"translate("+Ts(e[4]*i)/i+" "+Ts(e[5]*i)/i+")":xC(e)}}function UT(n,e,t){for(var i=n.points,o=[],r=0;r<i.length;r++)o.push(Ts(i[r][0]*t)/t),o.push(Ts(i[r][1]*t)/t);e.points=o.join(" ")}function XT(n){return!n.smooth}function T4(n){var e=F(n,function(t){return typeof t=="string"?[t,t]:t});return function(t,i,o){for(var r=0;r<e.length;r++){var a=e[r],s=t[a[0]];s!=null&&(i[a[1]]=Ts(s*o)/o)}}}var C4={circle:[T4(["cx","cy","r"])],polyline:[UT,XT],polygon:[UT,XT]};function I4(n){for(var e=n.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function ZT(n,e){var t=n.style,i=n.shape,o=C4[n.type],r={},a=e.animation,s="path",l=n.style.strokePercent,u=e.compress&&Uv(n)||4;if(o&&!e.willUpdate&&!(o[1]&&!o[1](i))&&!(a&&I4(n))&&!(l<1)){s=n.type;var h=Math.pow(10,u);o[0](i,r,h)}else{var c=!n.path||n.shapeChanged();n.path||n.createPathProxy();var d=n.path;c&&(d.beginPath(),n.buildPath(d,n.shape),n.pathUpdated());var p=d.getVersion(),f=n,g=f.__svgPathBuilder;(f.__svgPathVersion!==p||!g||l!==f.__svgPathStrokePercent)&&(g||(g=f.__svgPathBuilder=new PT),g.reset(u),d.rebuildPath(g,l),g.generateStr(),f.__svgPathVersion=p,f.__svgPathStrokePercent=l),r.d=g.getStr()}return Yg(r,n.transform),Gg(r,t,n,e),Hg(r,n),e.animation&&mh(n,r,e),e.emphasis&&S4(n,r,e),Wt(s,n.id+"",r)}function A4(n,e){var t=n.style,i=t.image;if(i&&!G(i)&&(GT(i)?i=i.src:HT(i)&&(i=i.toDataURL())),!!i){var o=t.x||0,r=t.y||0,a=t.width,s=t.height,l={href:i,width:a,height:s};return o&&(l.x=o),r&&(l.y=r),Yg(l,n.transform),Gg(l,t,n,e),Hg(l,n),e.animation&&mh(n,l,e),Wt("image",n.id+"",l)}}function D4(n,e){var t=n.style,i=t.text;if(i!=null&&(i+=""),!(!i||isNaN(t.x)||isNaN(t.y))){var o=t.font||oi,r=t.x||0,a=bC(t.y||0,rl(o),t.textBaseline),s=_C[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(em(t)){var u="",h=t.fontStyle,c=Jy(t.fontSize);if(!parseFloat(c))return;var d=t.fontFamily||qg,p=t.fontWeight;u+="font-size:"+c+";font-family:"+d+";",h&&h!=="normal"&&(u+="font-style:"+h+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+o;return i.match(/\s/)&&(l["xml:space"]="preserve"),r&&(l.x=r),a&&(l.y=a),Yg(l,n.transform),Gg(l,t,n,e),Hg(l,n),e.animation&&mh(n,l,e),Wt("text",n.id+"",l,void 0,i)}}function jT(n,e){if(n instanceof gt)return ZT(n,e);if(n instanceof ee)return A4(n,e);if(n instanceof xa)return D4(n,e)}function k4(n,e,t){var i=n.style;if(wC(i)){var o=SC(n),r=t.shadowCache,a=r[o];if(!a){var s=n.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var h=i.shadowOffsetX||0,c=i.shadowOffsetY||0,d=i.shadowBlur,p=ra(i.shadowColor),f=p.opacity,g=p.color,v=d/2/l,y=d/2/u,m=v+" "+y;a=t.zrId+"-s"+t.shadowIdx++,t.defs[a]=Wt("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Wt("feDropShadow","",{dx:h/l,dy:c/u,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),r[o]=a}e.filter=Qs(a)}}function qT(n,e,t,i){var o=n[t],r,a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Gv(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else if(Hv(o))r="radialGradient",a.cx=J(o.x,.5),a.cy=J(o.y,.5),a.r=J(o.r,.5);else return;for(var s=o.colorStops,l=[],u=0,h=s.length;u<h;++u){var c=ic(s[u].offset)*100+"%",d=s[u].color,p=ra(d),f=p.color,g=p.opacity,v={offset:c};v["stop-color"]=f,g<1&&(v["stop-opacity"]=g),l.push(Wt("stop",u+"",v))}var y=Wt(r,"",a,l),m=Fg(y),x=i.gradientCache,_=x[m];_||(_=i.zrId+"-g"+i.gradientIdx++,x[m]=_,a.id=_,i.defs[_]=Wt(r,_,a,l)),e[t]=Qs(_)}function KT(n,e,t,i){var o=n.style[t],r=n.getBoundingRect(),a={},s=o.repeat,l=s==="no-repeat",u=s==="repeat-x",h=s==="repeat-y",c;if(Wv(o)){var d=o.imageWidth,p=o.imageHeight,f=void 0,g=o.image;if(G(g)?f=g:GT(g)?f=g.src:HT(g)&&(f=g.toDataURL()),typeof Image>"u"){var v="Image width/height must been given explictly in svg-ssr renderer.";Jt(d,v),Jt(p,v)}else if(d==null||p==null){var y=function(C,A){if(C){var D=C.elm,k=d||A.width,P=p||A.height;C.tag==="pattern"&&(u?(P=1,k/=r.width):h&&(k=1,P/=r.height)),C.attrs.width=k,C.attrs.height=P,D&&(D.setAttribute("width",k),D.setAttribute("height",P))}},m=Ec(f,null,n,function(C){l||y(b,C),y(c,C)});m&&m.width&&m.height&&(d=d||m.width,p=p||m.height)}c=Wt("image","img",{href:f,width:d,height:p}),a.width=d,a.height=p}else o.svgElement&&(c=q(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(c){var x,_;l?x=_=1:u?(_=1,x=a.width/r.width):h?(x=1,_=a.height/r.height):a.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(a.width=x),_!=null&&!isNaN(_)&&(a.height=_);var w=Xv(o);w&&(a.patternTransform=w);var b=Wt("pattern","",a,[c]),S=Fg(b),T=i.patternCache,I=T[S];I||(I=i.zrId+"-p"+i.patternIdx++,T[S]=I,a.id=I,b=i.defs[I]=Wt("pattern",I,a,[c])),e[t]=Qs(I)}}function P4(n,e,t){var i=t.clipPathCache,o=t.defs,r=i[n.id];if(!r){r=t.zrId+"-c"+t.clipPathIdx++;var a={id:r};i[n.id]=r,o[r]=Wt("clipPath",r,a,[ZT(n,t)])}e["clip-path"]=Qs(r)}function $T(n){return document.createTextNode(n)}function Bo(n,e,t){n.insertBefore(e,t)}function QT(n,e){n.removeChild(e)}function JT(n,e){n.appendChild(e)}function t2(n){return n.parentNode}function e2(n){return n.nextSibling}function Ug(n,e){n.textContent=e}var n2=58,L4=120,O4=Wt("","");function Xg(n){return n===void 0}function En(n){return n!==void 0}function R4(n,e,t){for(var i={},o=e;o<=t;++o){var r=n[o].key;r!==void 0&&(i[r]=o)}return i}function Cs(n,e){var t=n.key===e.key,i=n.tag===e.tag;return i&&t}function Is(n){var e,t=n.children,i=n.tag;if(En(i)){var o=n.elm=NT(i);if(Zg(O4,n),V(t))for(e=0;e<t.length;++e){var r=t[e];r!=null&&JT(o,Is(r))}else En(n.text)&&!j(n.text)&&JT(o,$T(n.text))}else n.elm=$T(n.text);return n.elm}function i2(n,e,t,i,o){for(;i<=o;++i){var r=t[i];r!=null&&Bo(n,Is(r),e)}}function xh(n,e,t,i){for(;t<=i;++t){var o=e[t];if(o!=null)if(En(o.tag)){var r=t2(o.elm);QT(r,o.elm)}else QT(n,o.elm)}}function Zg(n,e){var t,i=e.elm,o=n&&n.attrs||{},r=e.attrs||{};if(o!==r){for(t in r){var a=r[t],s=o[t];s!==a&&(a===!0?i.setAttribute(t,""):a===!1?i.removeAttribute(t):t==="style"?i.style.cssText=a:t.charCodeAt(0)!==L4?i.setAttribute(t,a):t==="xmlns:xlink"||t==="xmlns"?i.setAttributeNS(d4,t,a):t.charCodeAt(3)===n2?i.setAttributeNS(f4,t,a):t.charCodeAt(5)===n2?i.setAttributeNS(OT,t,a):i.setAttribute(t,a))}for(t in o)t in r||i.removeAttribute(t)}}function N4(n,e,t){for(var i=0,o=0,r=e.length-1,a=e[0],s=e[r],l=t.length-1,u=t[0],h=t[l],c,d,p,f;i<=r&&o<=l;)a==null?a=e[++i]:s==null?s=e[--r]:u==null?u=t[++o]:h==null?h=t[--l]:Cs(a,u)?(Br(a,u),a=e[++i],u=t[++o]):Cs(s,h)?(Br(s,h),s=e[--r],h=t[--l]):Cs(a,h)?(Br(a,h),Bo(n,a.elm,e2(s.elm)),a=e[++i],h=t[--l]):Cs(s,u)?(Br(s,u),Bo(n,s.elm,a.elm),s=e[--r],u=t[++o]):(Xg(c)&&(c=R4(e,i,r)),d=c[u.key],Xg(d)?Bo(n,Is(u),a.elm):(p=e[d],p.tag!==u.tag?Bo(n,Is(u),a.elm):(Br(p,u),e[d]=void 0,Bo(n,p.elm,a.elm))),u=t[++o]);(i<=r||o<=l)&&(i>r?(f=t[l+1]==null?null:t[l+1].elm,i2(n,f,t,o,l)):xh(n,e,i,r))}function Br(n,e){var t=e.elm=n.elm,i=n.children,o=e.children;n!==e&&(Zg(n,e),Xg(e.text)?En(i)&&En(o)?i!==o&&N4(t,i,o):En(o)?(En(n.text)&&Ug(t,""),i2(t,null,o,0,o.length-1)):En(i)?xh(t,i,0,i.length-1):En(n.text)&&Ug(t,""):n.text!==e.text&&(En(i)&&xh(t,i,0,i.length-1),Ug(t,e.text)))}function z4(n,e){if(Cs(n,e))Br(n,e);else{var t=n.elm,i=t2(t);Is(e),i!==null&&(Bo(i,e.elm,e2(t)),xh(i,[n],0,0))}return e}var B4=0,E4=function(){function n(e,t,i){if(this.type="svg",this.refreshHover=o2(),this.configLayer=o2(),this.storage=t,this._opts=i=N({},i),this.root=e,this._id="zr"+B4++,this._oldVNode=zT(i.width,i.height),e&&!i.ssr){var o=this._viewport=document.createElement("div");o.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=NT("svg");Zg(null,this._oldVNode),o.appendChild(r),e.appendChild(o)}this.resize(i.width,i.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",z4(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return jT(e,Wg(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,o=this._height,r=Wg(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress,r.emphasis=e.emphasis;var a=[],s=this._bgVNode=V4(i,o,this._backgroundColor,r);s&&a.push(s);var l=e.compress?null:this._mainVNode=Wt("g","main",{},[]);this._paintList(t,r,l?l.children:a),l&&a.push(l);var u=F(at(r.defs),function(d){return r.defs[d]});if(u.length&&a.push(Wt("defs","defs",{},u)),e.animation){var h=y4(r.cssNodes,r.cssAnims,{newline:!0});if(h){var c=Wt("style","stl",{},[],h);a.push(c)}}return zT(i,o,a,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},Fg(this.renderToVNode({animation:J(e.cssAnimation,!0),emphasis:J(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:J(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,i){for(var o=e.length,r=[],a=0,s,l,u=0,h=0;h<o;h++){var c=e[h];if(!c.invisible){var d=c.__clipPaths,p=d&&d.length||0,f=l&&l.length||0,g=void 0;for(g=Math.max(p-1,f-1);g>=0&&!(d&&l&&d[g]===l[g]);g--);for(var v=f-1;v>g;v--)a--,s=r[a-1];for(var y=g+1;y<p;y++){var m={};P4(d[y],m,t);var x=Wt("g","clip-g-"+u++,m,[]);(s?s.children:i).push(x),r[a++]=x,s=x}l=d;var _=jT(c,t);_&&(s?s.children:i).push(_)}}},n.prototype.resize=function(e,t){var i=this._opts,o=this.root,r=this._viewport;if(e!=null&&(i.width=e),t!=null&&(i.height=t),o&&r&&(r.style.display="none",e=vd(o,0,i),t=vd(o,1,i),r.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,r){var a=r.style;a.width=e+"px",a.height=t+"px"}if(oc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},n.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},n.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";return e?(t=TC(t),t&&i+"base64,"+t):i+"charset=UTF-8,"+encodeURIComponent(t)},n}();function o2(n){return function(){}}function V4(n,e,t,i){var o;if(t&&t!=="none")if(o=Wt("rect","bg",{width:n,height:e,x:"0",y:"0"}),Yv(t))qT({fill:t},o.attrs,"fill",i);else if(oc(t))KT({style:{fill:t},dirty:Et,getBoundingRect:function(){return{width:n,height:e}}},o.attrs,"fill",i);else{var r=ra(t),a=r.color,s=r.opacity;o.attrs.fill=a,s<1&&(o.attrs["fill-opacity"]=s)}return o}const F4=E4;function W4(n){n.registerPainter("svg",F4)}export{bp as $,ss as A,uI as B,yy as C,ll as D,Lc as E,kc as F,kt as G,Ra as H,Al as I,fp as J,ut as K,$n as L,Ot as M,Dl as N,Cl as O,it as P,ee as Q,jm as R,qt as S,Aa as T,An as U,Be as V,gp as W,yt as X,Ia as Y,dt as Z,ze as _,Ou as a,Ux as a$,n0 as a0,ar as a1,Qm as a2,$m as a3,mp as a4,yi as a5,Yt as a6,xp as a7,zl as a8,Ve as a9,et as aA,Ae as aB,ft as aC,zt as aD,Ce as aE,oe as aF,cn as aG,Mu as aH,Cx as aI,mC as aJ,PL as aK,EL as aL,dL as aM,LL as aN,Wx as aO,OL as aP,ct as aQ,NL as aR,Od as aS,RL as aT,BL as aU,kL as aV,fx as aW,Y2 as aX,N_ as aY,un as aZ,Yx as a_,Ee as aa,_p as ab,Tt as ac,zp as ad,HD as ae,le as af,GD as ag,Fp as ah,A0 as ai,co as aj,Bp as ak,Ly as al,Y as am,q as an,pt as ao,K as ap,M as aq,N as ar,At as as,lt as at,Ch as au,V as av,$ as aw,j as ax,G as ay,F as az,Ct as b,ow as b$,Ed as b0,kp as b1,Gx as b2,Hx as b3,Nd as b4,zd as b5,Rd as b6,jx as b7,xu as b8,Si as b9,UV as bA,XE as bB,e3 as bC,$5 as bD,_z as bE,pi as bF,_t as bG,Zn as bH,at as bI,U as bJ,j_ as bK,uR as bL,K_ as bM,$_ as bN,X_ as bO,Z_ as bP,aR as bQ,nr as bR,lr as bS,J as bT,p0 as bU,z as bV,gt as bW,Tf as bX,qI as bY,Pf as bZ,Cf as b_,zL as ba,Kg as bb,nu as bc,$t as bd,A2 as be,pL as bf,b2 as bg,iI as bh,rF as bi,kV as bj,TV as bk,rE as bl,VE as bm,r4 as bn,pB as bo,$R as bp,OR as bq,h5 as br,sz as bs,dN as bt,W4 as bu,TB as bv,tw as bw,nV as bx,IF as by,t4 as bz,os as c,or as c$,rw as c0,Bu as c1,Ah as c2,_a as c3,_l as c4,Kn as c5,bl as c6,ir as c7,Jt as c8,jt as c9,ae as cA,fn as cB,vt as cC,Ni as cD,Ph as cE,Nh as cF,Hr as cG,ri as cH,Oh as cI,Ns as cJ,sv as cK,kh as cL,lv as cM,Te as cN,oo as cO,ro as cP,su as cQ,ja as cR,Pa as cS,Jr as cT,Zt as cU,ai as cV,of as cW,Ea as cX,pf as cY,pa as cZ,L1 as c_,Tu as ca,sn as cb,zw as cc,Et as cd,Zp as ce,X as cf,Dt as cg,Zl as ch,YD as ci,ip as cj,nn as ck,Zi as cl,_u as cm,vn as cn,Es as co,Wp as cp,me as cq,Sl as cr,wl as cs,wm as ct,Dn as cu,kn as cv,Rs as cw,wn as cx,ia as cy,nc as cz,$L as d,xr as d$,nt as d0,Da as d1,cs as d2,Hp as d3,hf as d4,Wo as d5,TI as d6,Kx as d7,N0 as d8,uo as d9,H as dA,gO as dB,Tp as dC,TS as dD,CS as dE,zS as dF,rh as dG,ah as dH,ti as dI,ka as dJ,Zb as dK,Cr as dL,rr as dM,Xb as dN,og as dO,YS as dP,rg as dQ,ig as dR,ag as dS,US as dT,lh as dU,Tr as dV,Qd as dW,i0 as dX,Mg as dY,CV as dZ,_g as d_,de as da,te as db,af as dc,tu as dd,t0 as de,On as df,Vu as dg,vv as dh,Yr as di,qh as dj,to as dk,Wy as dl,Th as dm,Fn as dn,Eu as dp,ob as dq,Bt as dr,Ka as ds,Mr as dt,ba as du,js as dv,LS as dw,hs as dx,Mp as dy,CB as dz,o_ as e,qf as e0,UM as e1,je as e2,Or as e3,nd as e4,Ha as e5,vm as e6,ap as e7,fd as e8,Ok as e9,O1 as eA,vD as eB,Bw as eC,aT as eD,hT as eE,CT as eF,AT as eG,zk as ea,Xt as eb,nv as ec,v1 as ed,Ge as ee,w1 as ef,Kk as eg,Ln as eh,Mt as ei,av as ej,$e as ek,ke as el,vc as em,Vr as en,gd as eo,ev as ep,md as eq,cu as er,jh as es,Ps as et,vd as eu,Cn as ev,Qr as ew,ZA as ex,Ur as ey,Ol as ez,Ft as f,r_ as g,vi as h,Ti as i,rt as j,pe as k,sI as l,Ut as m,Sr as n,xn as o,rI as p,Dc as q,Zx as r,_n as s,gy as t,Oc as u,ca as v,xt as w,Pc as x,Un as y,Re as z};
|